Files
ChuXun c5283850db 1
2025-10-18 15:32:16 +08:00

3 lines
2.3 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see renderer.js.LICENSE.txt */
(()=>{var e={7626:(e,t,n)=>{"use strict";n(8734);const r=async e=>{throw new Error("macOS only")};e.exports=r,e.exports.default=r,e.exports.sync=e=>{throw new Error("macOS only")}},9159:(e,t,n)=>{e.exports={default:n(1958),__esModule:!0}},9364:(e,t,n)=>{e.exports={default:n(5417),__esModule:!0}},6521:(e,t,n)=>{e.exports={default:n(9460),__esModule:!0}},9042:(e,t,n)=>{e.exports={default:n(2665),__esModule:!0}},1698:(e,t,n)=>{e.exports={default:n(8013),__esModule:!0}},4578:(e,t,n)=>{e.exports={default:n(292),__esModule:!0}},7133:(e,t,n)=>{e.exports={default:n(6171),__esModule:!0}},659:(e,t,n)=>{e.exports={default:n(8481),__esModule:!0}},6684:(e,t,n)=>{e.exports={default:n(5738),__esModule:!0}},5682:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},5256:(e,t,n)=>{"use strict";var r,i=(r=n(6521))&&r.__esModule?r:{default:r};t.Z=function(){function e(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),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},6218:(e,t,n)=>{"use strict";var r,i=(r=n(9159))&&r.__esModule?r:{default:r};t.Z=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},4122:(e,t,n)=>{"use strict";var r=o(n(7133)),i=o(n(9364)),s=o(n(7158));function o(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,s.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},9326:(e,t)=>{"use strict";t.Z=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},9002:(e,t,n)=>{"use strict";var r,i=(r=n(7158))&&r.__esModule?r:{default:r};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},7158:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(6684)),i=o(n(659)),s="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===s(r.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":s(e)}},8122:(e,t,n)=>{var r=n(2781),i=n(3837),s=n(9512);function o(e,t){if(!e)throw new Error("expected readStream");if(!e.readable)throw new Error("readStream must be readable");var n=new a(t);return e.pipe(n),n}function a(e){r.Transform.call(this,e),e=e||{},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1;var t=this;this.on("pipe",(function(e){t.encoding||e instanceof r.Readable&&(t.encoding=e._readableState.encoding)}))}e.exports=function(t,n){return e.exports.createStream(t,n)},e.exports.createStream=function(e,t){return e?o(e,t):new a(t)},e.exports.createLineStream=function(e){return console.log("WARNING: byline#createLineStream is deprecated and will be removed soon"),o(e)},e.exports.LineStream=a,i.inherits(a,r.Transform),a.prototype._transform=function(e,t,n){t=t||"utf8",Buffer.isBuffer(e)&&("buffer"==t?(e=e.toString(),t="utf8"):e=e.toString(t)),this._chunkEncoding=t;var r=e.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);this._lastChunkEndedWithCR&&"\n"==e[0]&&r.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=r[0],r.shift()),this._lastChunkEndedWithCR="\r"==e[e.length-1],this._lineBuffer=this._lineBuffer.concat(r),this._pushBuffer(t,1,n)},a.prototype._pushBuffer=function(e,t,n){for(;this._lineBuffer.length>t;){var r=this._lineBuffer.shift();if((this._keepEmptyLines||r.length>0)&&!this.push(this._reencode(r,e))){var i=this;return void s.setImmediate((function(){i._pushBuffer(e,t,n)}))}}n()},a.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)},a.prototype._reencode=function(e,t){return this.encoding&&this.encoding!=t?new Buffer(e,t).toString(this.encoding):this.encoding?e:new Buffer(e,t)}},5402:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},8076:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n))e.push(i.apply(null,n));else if("object"===s)for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?e.exports=i:void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},7492:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,r=e.replace(/^v/,"").replace(/\+.*$/,""),i=(n="-",-1===(t=r).indexOf(n)?t.length:t.indexOf(n)),s=r.substring(0,i).split(".");return s.push(r.substring(i+1)),s}function n(e){return isNaN(Number(e))?e:Number(e)}function r(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function i(e,i){[e,i].forEach(r);for(var s=t(e),o=t(i),a=0;a<Math.max(s.length-1,o.length-1);a++){var l=parseInt(s[a]||0,10),c=parseInt(o[a]||0,10);if(l>c)return 1;if(c>l)return-1}var u=s[s.length-1],h=o[o.length-1];if(u&&h){var p=u.split(".").map(n),d=h.split(".").map(n);for(a=0;a<Math.max(p.length,d.length);a++){if(void 0===p[a]||"string"==typeof d[a]&&"number"==typeof p[a])return-1;if(void 0===d[a]||"string"==typeof p[a]&&"number"==typeof d[a])return 1;if(p[a]>d[a])return 1;if(d[a]>p[a])return-1}}else if(u||h)return u?-1:1;return 0}var s=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return i.validate=function(t){return"string"==typeof t&&e.test(t)},i.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===s.indexOf(e))throw new TypeError("Invalid operator, expected one of "+s.join("|"))}(n);var r=i(e,t);return o[n].indexOf(r)>-1},i})?n.apply(t,[]):n)||(e.exports=r)},1958:(e,t,n)=>{n(7138),e.exports=n(4386).Object.assign},5417:(e,t,n)=>{n(9036);var r=n(4386).Object;e.exports=function(e,t){return r.create(e,t)}},9460:(e,t,n)=>{n(6019);var r=n(4386).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},2665:(e,t,n)=>{n(8511);var r=n(4386).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},8013:(e,t,n)=>{n(7141),e.exports=n(4386).Object.getPrototypeOf},292:(e,t,n)=>{n(2360),e.exports=n(4386).Object.keys},6171:(e,t,n)=>{n(7025),e.exports=n(4386).Object.setPrototypeOf},8481:(e,t,n)=>{n(3218),n(7394),n(4616),n(5174),e.exports=n(4386).Symbol},5738:(e,t,n)=>{n(1586),n(5130),e.exports=n(9232).f("iterator")},5425:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},6137:e=>{e.exports=function(){}},781:(e,t,n)=>{var r=n(1246);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},8363:(e,t,n)=>{var r=n(6917),i=n(4434),s=n(7339);e.exports=function(e){return function(t,n,o){var a,l=r(t),c=i(l.length),u=s(o,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},5454:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4386:e=>{var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},4717:(e,t,n)=>{var r=n(5425);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},3111:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},477:(e,t,n)=>{e.exports=!n(3038)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1455:(e,t,n)=>{var r=n(1246),i=n(3908).document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7352:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3871:(e,t,n)=>{var r=n(7906),i=n(6130),s=n(5032);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,a=n(e),l=s.f,c=0;a.length>c;)l.call(e,o=a[c++])&&t.push(o);return t}},1290:(e,t,n)=>{var r=n(3908),i=n(4386),s=n(4717),o=n(1655),a=function(e,t,n){var l,c,u,h=e&a.F,p=e&a.G,d=e&a.S,m=e&a.P,f=e&a.B,g=e&a.W,y=p?i:i[t]||(i[t]={}),w=y.prototype,b=p?r:d?r[t]:(r[t]||{}).prototype;for(l in p&&(n=t),n)(c=!h&&b&&void 0!==b[l])&&l in y||(u=c?b[l]:n[l],y[l]=p&&"function"!=typeof b[l]?n[l]:f&&c?s(u,r):g&&b[l]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):m&&"function"==typeof u?s(Function.call,u):u,m&&((y.virtual||(y.virtual={}))[l]=u,e&a.R&&w&&!w[l]&&o(w,l,u)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},3038:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3908:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},1820:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1655:(e,t,n)=>{var r=n(8348),i=n(9759);e.exports=n(477)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},5394:(e,t,n)=>{var r=n(3908).document;e.exports=r&&r.documentElement},303:(e,t,n)=>{e.exports=!n(477)&&!n(3038)((function(){return 7!=Object.defineProperty(n(1455)("div"),"a",{get:function(){return 7}}).a}))},9201:(e,t,n)=>{var r=n(5454);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},3542:(e,t,n)=>{var r=n(5454);e.exports=Array.isArray||function(e){return"Array"==r(e)}},1246:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5e3:(e,t,n)=>{"use strict";var r=n(5813),i=n(9759),s=n(4236),o={};n(1655)(o,n(6384)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),s(e,t+" Iterator")}},7673:(e,t,n)=>{"use strict";var r=n(7636),i=n(1290),s=n(7691),o=n(1655),a=n(1820),l=n(622),c=n(5e3),u=n(4236),h=n(233),p=n(6384)("iterator"),d=!([].keys&&"next"in[].keys()),m="keys",f="values",g=function(){return this};e.exports=function(e,t,n,y,w,b,v){c(n,t,y);var C,S,E,k=function(e){if(!d&&e in x)return x[e];switch(e){case m:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},R=t+" Iterator",T=w==f,A=!1,x=e.prototype,D=x[p]||x["@@iterator"]||w&&x[w],_=D||k(w),M=w?T?k("entries"):_:void 0,P="Array"==t&&x.entries||D;if(P&&(E=h(P.call(new e)))!==Object.prototype&&E.next&&(u(E,R,!0),r||a(E,p)||o(E,p,g)),T&&D&&D.name!==f&&(A=!0,_=function(){return D.call(this)}),r&&!v||!d&&!A&&x[p]||o(x,p,_),l[t]=_,l[R]=g,w)if(C={values:T?_:k(f),keys:b?_:k(m),entries:M},v)for(S in C)S in x||s(x,S,C[S]);else i(i.P+i.F*(d||A),t,C);return C}},8942:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},622:e=>{e.exports={}},7636:e=>{e.exports=!0},9603:(e,t,n)=>{var r=n(1167)("meta"),i=n(1246),s=n(1820),o=n(8348).f,a=0,l=Object.isExtensible||function(){return!0},c=!n(3038)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++a,w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!s(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&h.NEED&&l(e)&&!s(e,r)&&u(e),e}}},7606:(e,t,n)=>{"use strict";var r=n(7906),i=n(6130),s=n(5032),o=n(9012),a=n(9201),l=Object.assign;e.exports=!l||n(3038)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=i.f,h=s.f;l>c;)for(var p,d=a(arguments[c++]),m=u?r(d).concat(u(d)):r(d),f=m.length,g=0;f>g;)h.call(d,p=m[g++])&&(n[p]=d[p]);return n}:l},5813:(e,t,n)=>{var r=n(781),i=n(9475),s=n(7352),o=n(3889)("IE_PROTO"),a=function(){},l=function(){var e,t=n(1455)("iframe"),r=s.length;for(t.style.display="none",n(5394).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[s[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},8348:(e,t,n)=>{var r=n(781),i=n(303),s=n(9067),o=Object.defineProperty;t.f=n(477)?Object.defineProperty:function(e,t,n){if(r(e),t=s(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},9475:(e,t,n)=>{var r=n(8348),i=n(781),s=n(7906);e.exports=n(477)?Object.defineProperties:function(e,t){i(e);for(var n,o=s(t),a=o.length,l=0;a>l;)r.f(e,n=o[l++],t[n]);return e}},3106:(e,t,n)=>{var r=n(5032),i=n(9759),s=n(6917),o=n(9067),a=n(1820),l=n(303),c=Object.getOwnPropertyDescriptor;t.f=n(477)?c:function(e,t){if(e=s(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},6286:(e,t,n)=>{var r=n(6917),i=n(3308).f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==s.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},3308:(e,t,n)=>{var r=n(2764),i=n(7352).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},6130:(e,t)=>{t.f=Object.getOwnPropertySymbols},233:(e,t,n)=>{var r=n(1820),i=n(9012),s=n(3889)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},2764:(e,t,n)=>{var r=n(1820),i=n(6917),s=n(8363)(!1),o=n(3889)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,c=[];for(n in a)n!=o&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~s(c,n)||c.push(n));return c}},7906:(e,t,n)=>{var r=n(2764),i=n(7352);e.exports=Object.keys||function(e){return r(e,i)}},5032:(e,t)=>{t.f={}.propertyIsEnumerable},9273:(e,t,n)=>{var r=n(1290),i=n(4386),s=n(3038);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*s((function(){n(1)})),"Object",o)}},9759:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7691:(e,t,n)=>{e.exports=n(1655)},283:(e,t,n)=>{var r=n(1246),i=n(781),s=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(4717)(Function.call,n(3106).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return s(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:s}},4236:(e,t,n)=>{var r=n(8348).f,i=n(1820),s=n(6384)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}},3889:(e,t,n)=>{var r=n(9609)("keys"),i=n(1167);e.exports=function(e){return r[e]||(r[e]=i(e))}},9609:(e,t,n)=>{var r=n(3908),i="__core-js_shared__",s=r[i]||(r[i]={});e.exports=function(e){return s[e]||(s[e]={})}},5677:(e,t,n)=>{var r=n(2931),i=n(3111);e.exports=function(e){return function(t,n){var s,o,a=String(i(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(s=a.charCodeAt(l))<55296||s>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?e?a.charAt(l):s:e?a.slice(l,l+2):o-56320+(s-55296<<10)+65536}}},7339:(e,t,n)=>{var r=n(2931),i=Math.max,s=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):s(e,t)}},2931:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},6917:(e,t,n)=>{var r=n(9201),i=n(3111);e.exports=function(e){return r(i(e))}},4434:(e,t,n)=>{var r=n(2931),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},9012:(e,t,n)=>{var r=n(3111);e.exports=function(e){return Object(r(e))}},9067:(e,t,n)=>{var r=n(1246);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},1167:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},1191:(e,t,n)=>{var r=n(3908),i=n(4386),s=n(7636),o=n(9232),a=n(8348).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=s?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},9232:(e,t,n)=>{t.f=n(6384)},6384:(e,t,n)=>{var r=n(9609)("wks"),i=n(1167),s=n(3908).Symbol,o="function"==typeof s;(e.exports=function(e){return r[e]||(r[e]=o&&s[e]||(o?s:i)("Symbol."+e))}).store=r},6058:(e,t,n)=>{"use strict";var r=n(6137),i=n(8942),s=n(622),o=n(6917);e.exports=n(7673)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},7138:(e,t,n)=>{var r=n(1290);r(r.S+r.F,"Object",{assign:n(7606)})},9036:(e,t,n)=>{var r=n(1290);r(r.S,"Object",{create:n(5813)})},6019:(e,t,n)=>{var r=n(1290);r(r.S+r.F*!n(477),"Object",{defineProperty:n(8348).f})},8511:(e,t,n)=>{var r=n(6917),i=n(3106).f;n(9273)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},7141:(e,t,n)=>{var r=n(9012),i=n(233);n(9273)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},2360:(e,t,n)=>{var r=n(9012),i=n(7906);n(9273)("keys",(function(){return function(e){return i(r(e))}}))},7025:(e,t,n)=>{var r=n(1290);r(r.S,"Object",{setPrototypeOf:n(283).set})},7394:()=>{},1586:(e,t,n)=>{"use strict";var r=n(5677)(!0);n(7673)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},3218:(e,t,n)=>{"use strict";var r=n(3908),i=n(1820),s=n(477),o=n(1290),a=n(7691),l=n(9603).KEY,c=n(3038),u=n(9609),h=n(4236),p=n(1167),d=n(6384),m=n(9232),f=n(1191),g=n(3871),y=n(3542),w=n(781),b=n(6917),v=n(9067),C=n(9759),S=n(5813),E=n(6286),k=n(3106),R=n(8348),T=n(7906),A=k.f,x=R.f,D=E.f,_=r.Symbol,M=r.JSON,P=M&&M.stringify,I=d("_hidden"),O=d("toPrimitive"),N={}.propertyIsEnumerable,L=u("symbol-registry"),B=u("symbols"),F=u("op-symbols"),H=Object.prototype,U="function"==typeof _,Z=r.QObject,$=!Z||!Z.prototype||!Z.prototype.findChild,W=s&&c((function(){return 7!=S(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(H,t);r&&delete H[t],x(e,t,n),r&&e!==H&&x(H,t,r)}:x,q=function(e){var t=B[e]=S(_.prototype);return t._k=e,t},V=U&&"symbol"==typeof _.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof _},G=function(e,t,n){return e===H&&G(F,t,n),w(e),t=v(t,!0),w(n),i(B,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:C(0,!1)})):(i(e,I)||x(e,I,C(1,{})),e[I][t]=!0),W(e,t,n)):x(e,t,n)},z=function(e,t){w(e);for(var n,r=g(t=b(t)),i=0,s=r.length;s>i;)G(e,n=r[i++],t[n]);return e},j=function(e){var t=N.call(this,e=v(e,!0));return!(this===H&&i(B,e)&&!i(F,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,I)&&this[I][e])||t)},K=function(e,t){if(e=b(e),t=v(t,!0),e!==H||!i(B,t)||i(F,t)){var n=A(e,t);return!n||!i(B,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},Y=function(e){for(var t,n=D(b(e)),r=[],s=0;n.length>s;)i(B,t=n[s++])||t==I||t==l||r.push(t);return r},X=function(e){for(var t,n=e===H,r=D(n?F:b(e)),s=[],o=0;r.length>o;)!i(B,t=r[o++])||n&&!i(H,t)||s.push(B[t]);return s};U||(a((_=function(){if(this instanceof _)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),W(this,e,C(1,n))};return s&&$&&W(H,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",(function(){return this._k})),k.f=K,R.f=G,n(3308).f=E.f=Y,n(5032).f=j,n(6130).f=X,s&&!n(7636)&&a(H,"propertyIsEnumerable",j,!0),m.f=function(e){return q(d(e))}),o(o.G+o.W+o.F*!U,{Symbol:_});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;Q.length>J;)d(Q[J++]);for(var ee=T(d.store),te=0;ee.length>te;)f(ee[te++]);o(o.S+o.F*!U,"Symbol",{for:function(e){return i(L,e+="")?L[e]:L[e]=_(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),o(o.S+o.F*!U,"Object",{create:function(e,t){return void 0===t?S(e):z(S(e),t)},defineProperty:G,defineProperties:z,getOwnPropertyDescriptor:K,getOwnPropertyNames:Y,getOwnPropertySymbols:X}),M&&o(o.S+o.F*(!U||c((function(){var e=_();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){if(void 0!==e&&!V(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return"function"==typeof(t=r[1])&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,P.apply(M,r)}}}),_.prototype[O]||n(1655)(_.prototype,O,_.prototype.valueOf),h(_,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},4616:(e,t,n)=>{n(1191)("asyncIterator")},5174:(e,t,n)=>{n(1191)("observable")},5130:(e,t,n)=>{n(6058);for(var r=n(3908),i=n(1655),s=n(622),o=n(6384)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=r[c],h=u&&u.prototype;h&&!h[o]&&i(h,o,c),s[c]=s.Array}},3861:(e,t,n)=>{"use strict";const r=n(2081),i=n(8032),s=n(463);function o(e,t,n){const o=i(e,t,n),a=r.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,n){const o=i(e,t,n),a=r.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},e.exports._parse=i,e.exports._enoent=s},463:e=>{"use strict";e.exports={hookChildProcess:function(e,t){},verifyENOENT:function(e,t){return null},verifyENOENTSync:function(e,t){return null},notFoundError:function(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}}},8032:(e,t,n)=>{"use strict";n(1017);const r=n(5419),i=(n(9573),n(546),n(5339),n(7891)),s=r((()=>i.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0)))||!1;e.exports=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const r={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?function(e){if(s)return e;const t=[e.command].concat(e.args).join(" ");return"string"==typeof e.options.shell?e.command=e.options.shell:e.command="/bin/sh",e.args=["-c",t],e}(r):r}},546:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},5339:(e,t,n)=>{"use strict";const r=n(7147),i=n(7306);e.exports=function(e){let t,n;Buffer.alloc?t=Buffer.alloc(150):(t=new Buffer(150),t.fill(0));try{n=r.openSync(e,"r"),r.readSync(n,t,0,150,0),r.closeSync(n)}catch(e){}return i(t.toString())}},9573:(e,t,n)=>{"use strict";const r=n(1017),i=n(9891),s=n(5620)();function o(e,t){const n=process.cwd(),o=null!=e.options.cwd;if(o)try{process.chdir(e.options.cwd)}catch(e){}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?r.delimiter:void 0})}catch(e){}finally{process.chdir(n)}return a&&(a=r.resolve(o?e.options.cwd:"",a)),a}e.exports=function(e){return o(e)||o(e,!0)}},9177:(e,t,n)=>{var r=Array.prototype.slice,i=n(5674),s=n(1031),o=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return!!s(t)&&(e=r.call(e),t=r.call(t),o(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var h=i(e),p=i(t)}catch(e){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),c=h.length-1;c>=0;c--)if(h[c]!=p[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!o(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},1031:(e,t)=>{var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},5674:(e,t)=>{function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},9379:(e,t,n)=>{"use strict";var r=n(7231);Object.defineProperty(t,"X",{enumerable:!0,get:function(){return r.getNotificationsPermission}}),Object.defineProperty(t,"QJ",{enumerable:!0,get:function(){return r.requestNotificationsPermission}});var i=n(7344);Object.defineProperty(t,"VB",{enumerable:!0,get:function(){return i.supportsNotifications}}),Object.defineProperty(t,"YF",{enumerable:!0,get:function(){return i.supportsNotificationsPermissionRequest}});var s=n(7838);Object.defineProperty(t,"Y4",{enumerable:!0,get:function(){return s.getNotificationSettingsUrl}});n(4747)},7231:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.closeNotification=t.showNotification=t.requestNotificationsPermission=t.getNotificationsPermission=t.terminateNotifications=t.initializeNotifications=void 0;const i=n(7344),s=n(4747),o=n(6776);let a;function l(){return void 0!==a||(a=i.supportsNotifications()?n(33):null),a}t.initializeNotifications=e=>{var t;return null===(t=l())||void 0===t?void 0:t.initializeNotifications(s.notificationCallback,e)},t.terminateNotifications=()=>{var e;return null===(e=l())||void 0===e?void 0:e.terminateNotifications()},t.getNotificationsPermission=()=>{var e;return null===(e=l())||void 0===e?void 0:e.getNotificationsPermission()},t.requestNotificationsPermission=()=>{var e;return null===(e=l())||void 0===e?void 0:e.requestNotificationsPermission()},t.showNotification=(...e)=>r(void 0,void 0,void 0,(function*(){var t;const n=o.v4();try{yield null===(t=l())||void 0===t?void 0:t.showNotification(n,...e)}catch(e){return null}return n})),t.closeNotification=(...e)=>{var t;return null===(t=l())||void 0===t?void 0:t.closeNotification(...e)}},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onNotificationEvent=t.notificationCallback=void 0;let n=null;t.notificationCallback=(...e)=>null==n?void 0:n(...e),t.onNotificationEvent=e=>{n=e}},7838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNotificationSettingsUrl=void 0;const r=n(7344);t.getNotificationSettingsUrl=function(){return r.supportsNotifications()?"ms-settings:notifications":null}},7344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsNotificationsPermissionRequest=t.supportsNotifications=void 0,n(2037),t.supportsNotifications=function(){return!1},t.supportsNotificationsPermissionRequest=function(){return!1}},6776:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>_,parse:()=>g,stringify:()=>u,v1:()=>f,v3:()=>R,v4:()=>T,v5:()=>D,validate:()=>a,version:()=>M});var i=new Uint8Array(16);function s(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(e){return"string"==typeof e&&o.test(e)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n};var h,p,d=0,m=0;const f=function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||h,a=void 0!==e.clockseq?e.clockseq:p;if(null==o||null==a){var l=e.random||(e.rng||s)();null==o&&(o=h=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==a&&(a=p=16383&(l[6]<<8|l[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:m+1,g=c-d+(f-m)/1e4;if(g<0&&void 0===e.clockseq&&(a=a+1&16383),(g<0||c>d)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=c,m=f,p=a;var y=(1e4*(268435455&(c+=122192928e5))+f)%4294967296;i[r++]=y>>>24&255,i[r++]=y>>>16&255,i[r++]=y>>>8&255,i[r++]=255&y;var w=c/4294967296*1e4&268435455;i[r++]=w>>>8&255,i[r++]=255&w,i[r++]=w>>>24&15|16,i[r++]=w>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var b=0;b<6;++b)i[r+b]=o[b];return t||u(i)},g=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function y(e,t,n){function r(e,r,i,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){s=s||0;for(var a=0;a<16;++a)i[s+a]=o[a];return i}return u(o)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function w(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t,n,r,i,s){return b((o=b(b(t,e),b(r,s)))<<(a=i)|o>>>32-a,n);var o,a}function C(e,t,n,r,i,s,o){return v(t&n|~t&r,e,t,i,s,o)}function S(e,t,n,r,i,s,o){return v(t&r|n&~r,e,t,i,s,o)}function E(e,t,n,r,i,s,o){return v(t^n^r,e,t,i,s,o)}function k(e,t,n,r,i,s,o){return v(n^(t|~r),e,t,i,s,o)}const R=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var s=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(s>>>4&15)+r.charAt(15&s),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[w(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,s=271733878,o=0;o<e.length;o+=16){var a=n,l=r,c=i,u=s;n=C(n,r,i,s,e[o],7,-680876936),s=C(s,n,r,i,e[o+1],12,-389564586),i=C(i,s,n,r,e[o+2],17,606105819),r=C(r,i,s,n,e[o+3],22,-1044525330),n=C(n,r,i,s,e[o+4],7,-176418897),s=C(s,n,r,i,e[o+5],12,1200080426),i=C(i,s,n,r,e[o+6],17,-1473231341),r=C(r,i,s,n,e[o+7],22,-45705983),n=C(n,r,i,s,e[o+8],7,1770035416),s=C(s,n,r,i,e[o+9],12,-1958414417),i=C(i,s,n,r,e[o+10],17,-42063),r=C(r,i,s,n,e[o+11],22,-1990404162),n=C(n,r,i,s,e[o+12],7,1804603682),s=C(s,n,r,i,e[o+13],12,-40341101),i=C(i,s,n,r,e[o+14],17,-1502002290),n=S(n,r=C(r,i,s,n,e[o+15],22,1236535329),i,s,e[o+1],5,-165796510),s=S(s,n,r,i,e[o+6],9,-1069501632),i=S(i,s,n,r,e[o+11],14,643717713),r=S(r,i,s,n,e[o],20,-373897302),n=S(n,r,i,s,e[o+5],5,-701558691),s=S(s,n,r,i,e[o+10],9,38016083),i=S(i,s,n,r,e[o+15],14,-660478335),r=S(r,i,s,n,e[o+4],20,-405537848),n=S(n,r,i,s,e[o+9],5,568446438),s=S(s,n,r,i,e[o+14],9,-1019803690),i=S(i,s,n,r,e[o+3],14,-187363961),r=S(r,i,s,n,e[o+8],20,1163531501),n=S(n,r,i,s,e[o+13],5,-1444681467),s=S(s,n,r,i,e[o+2],9,-51403784),i=S(i,s,n,r,e[o+7],14,1735328473),n=E(n,r=S(r,i,s,n,e[o+12],20,-1926607734),i,s,e[o+5],4,-378558),s=E(s,n,r,i,e[o+8],11,-2022574463),i=E(i,s,n,r,e[o+11],16,1839030562),r=E(r,i,s,n,e[o+14],23,-35309556),n=E(n,r,i,s,e[o+1],4,-1530992060),s=E(s,n,r,i,e[o+4],11,1272893353),i=E(i,s,n,r,e[o+7],16,-155497632),r=E(r,i,s,n,e[o+10],23,-1094730640),n=E(n,r,i,s,e[o+13],4,681279174),s=E(s,n,r,i,e[o],11,-358537222),i=E(i,s,n,r,e[o+3],16,-722521979),r=E(r,i,s,n,e[o+6],23,76029189),n=E(n,r,i,s,e[o+9],4,-640364487),s=E(s,n,r,i,e[o+12],11,-421815835),i=E(i,s,n,r,e[o+15],16,530742520),n=k(n,r=E(r,i,s,n,e[o+2],23,-995338651),i,s,e[o],6,-198630844),s=k(s,n,r,i,e[o+7],10,1126891415),i=k(i,s,n,r,e[o+14],15,-1416354905),r=k(r,i,s,n,e[o+5],21,-57434055),n=k(n,r,i,s,e[o+12],6,1700485571),s=k(s,n,r,i,e[o+3],10,-1894986606),i=k(i,s,n,r,e[o+10],15,-1051523),r=k(r,i,s,n,e[o+1],21,-2054922799),n=k(n,r,i,s,e[o+8],6,1873313359),s=k(s,n,r,i,e[o+15],10,-30611744),i=k(i,s,n,r,e[o+6],15,-1560198380),r=k(r,i,s,n,e[o+13],21,1309151649),n=k(n,r,i,s,e[o+4],6,-145523070),s=k(s,n,r,i,e[o+11],10,-1120210379),i=k(i,s,n,r,e[o+2],15,718787259),r=k(r,i,s,n,e[o+9],21,-343485551),n=b(n,a),r=b(r,l),i=b(i,c),s=b(s,u)}return[n,r,i,s]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(w(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),T=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return u(r)};function A(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}const D=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,o=Math.ceil(s/16),a=new Array(o),l=0;l<o;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];a[l]=c}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<o;++h){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[h][d];for(var m=16;m<80;++m)p[m]=x(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);for(var f=n[0],g=n[1],y=n[2],w=n[3],b=n[4],v=0;v<80;++v){var C=Math.floor(v/20),S=x(f,5)+A(C,g,y,w)+b+t[C]+p[v]>>>0;b=w,w=y,y=x(g,30)>>>0,g=f,f=S}n[0]=n[0]+f>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),_="00000000-0000-0000-0000-000000000000",M=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},2750:(e,t,n)=>{const r=n(1017);function i(){return"desktop-askpass-trampoline"}function s(){return"desktop-credential-helper-trampoline"}function o(){return"ssh-wrapper"}e.exports={getDesktopAskpassTrampolinePath:function(){return r.join(__dirname,"build","Release","desktop-askpass-trampoline")},getDesktopAskpassTrampolineFilename:i,getDesktopCredentialHelperTrampolinePath:function(){return r.join(__dirname,"build","Release","desktop-credential-helper-trampoline")},getDesktopCredentialHelperTrampolineFilename:s,getSSHWrapperPath:function(){return r.join(__dirname,"build","Release","ssh-wrapper")},getSSHWrapperFilename:o}},2843:(e,t,n)=>{"use strict";var r=n(1553);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(6295));e.exports=t.default},6295:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},3199:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},1553:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1721:(e,t,n)=>{"use strict";var r=n(1553);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,s,o,a,l,c,u,h,p,d,m,f=r(n(2184)),g="transform";if(t.transform=g,t.animationEnd=o,t.transitionEnd=s,t.transitionDelay=u,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=m,t.animationTiming=d,t.animationDuration=p,t.animationName=h,f.default){var y=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),s="",o=0;o<i.length;o++){var a=i[o];if(a+"TransitionProperty"in n){s="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:s}}();i=y.prefix,t.transitionEnd=s=y.transitionEnd,t.animationEnd=o=y.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=a=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=h=i+"-animation-name",t.animationDuration=p=i+"-animation-duration",t.animationTiming=d=i+"-animation-delay",t.animationDelay=m=i+"-animation-timing-function"}var w={transform:g,end:s,property:a,timing:c,delay:u,duration:l};t.default=w},2184:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},1388:(e,t,n)=>{"use strict";var r=n(1553);t.__esModule=!0,t.default=void 0;var i,s=r(n(2184)),o="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};s.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return o=l(e,"cancel"),a=function(e){return window[t](e)}}));var c=(new Date).getTime();(i=function(e){return a(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)};var u=i;t.default=u,e.exports=t.default},6328:(e,t,n)=>{"use strict";var r=n(1553);t.__esModule=!0,t.default=function(e){if((!i&&0!==i||e)&&s.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),i=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return i};var i,s=r(n(2184));e.exports=t.default},746:function(e){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,s=Object.freeze,o=Object.seal,a=Object.create,l="undefined"!=typeof Reflect&&Reflect,c=l.apply,u=l.construct;c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e){return e}),o||(o=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var h,p=S(Array.prototype.forEach),d=S(Array.prototype.pop),m=S(Array.prototype.push),f=S(String.prototype.toLowerCase),g=S(String.prototype.match),y=S(String.prototype.replace),w=S(String.prototype.indexOf),b=S(String.prototype.trim),v=S(RegExp.prototype.test),C=(h=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(h,t)});function S(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return c(e,t,r)}}function E(e,r){t&&t(e,null);for(var i=r.length;i--;){var s=r[i];if("string"==typeof s){var o=f(s);o!==s&&(n(r)||(r[i]=o),s=o)}e[s]=!0}return e}function k(t){var n=a(null),r=void 0;for(r in t)c(e,t,[r])&&(n[r]=t[r]);return n}function R(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}var T=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),A=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=s(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=s(["#text"]),I=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),O=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=o(/<%[\s\S]*|[\s\S]*%>/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),U=o(/^aria-[\-\w]+$/),Z=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=o(/^(?:\w+script|data):/i),W=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="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};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var G=function(){return"undefined"==typeof window?null:window},z=function(e,t){if("object"!==(void 0===e?"undefined":q(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G(),n=function(t){return e(t)};if(n.version="2.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,a=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,h=t.NamedNodeMap,S=void 0===h?t.NamedNodeMap||t.MozNamedAttrMap:h,j=t.Text,K=t.Comment,Y=t.DOMParser,X=t.trustedTypes,Q=c.prototype,J=R(Q,"cloneNode"),ee=R(Q,"nextSibling"),te=R(Q,"childNodes"),ne=R(Q,"parentNode");if("function"==typeof a){var re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}var ie=z(X,r),se=ie&&Be?ie.createHTML(""):"",oe=i,ae=oe.implementation,le=oe.createNodeIterator,ce=oe.createDocumentFragment,ue=oe.getElementsByTagName,he=r.importNode,pe={};try{pe=k(i).documentMode?i.documentMode:{}}catch(e){}var de={};n.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==pe;var me=B,fe=F,ge=H,ye=U,we=$,be=W,ve=Z,Ce=null,Se=E({},[].concat(V(T),V(A),V(x),V(_),V(P))),Ee=null,ke=E({},[].concat(V(I),V(O),V(N),V(L))),Re=null,Te=null,Ae=!0,xe=!0,De=!1,_e=!1,Me=!1,Pe=!1,Ie=!1,Oe=!1,Ne=!1,Le=!0,Be=!1,Fe=!0,He=!0,Ue=!1,Ze={},$e=null,We=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ve=E({},["audio","video","img","source","image","track"]),Ge=null,ze=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Xe=Ye,Qe=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,it=i.createElement("form"),st=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":q(e))||(e={}),e=k(e),Ce="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS):Se,Ee="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR):ke,Ge="ADD_URI_SAFE_ATTR"in e?E(k(ze),e.ADD_URI_SAFE_ATTR):ze,qe="ADD_DATA_URI_TAGS"in e?E(k(Ve),e.ADD_DATA_URI_TAGS):Ve,$e="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS):We,Re="FORBID_TAGS"in e?E({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?E({},e.FORBID_ATTR):{},Ze="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,xe=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=e.SAFE_FOR_TEMPLATES||!1,Me=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Le=!1!==e.RETURN_DOM_IMPORT,Be=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,Xe=e.NAMESPACE||Ye,Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:f,_e&&(xe=!1),Ne&&(Oe=!0),Ze&&(Ce=E({},[].concat(V(P))),Ee=[],!0===Ze.html&&(E(Ce,T),E(Ee,I)),!0===Ze.svg&&(E(Ce,A),E(Ee,O),E(Ee,L)),!0===Ze.svgFilters&&(E(Ce,x),E(Ee,O),E(Ee,L)),!0===Ze.mathMl&&(E(Ce,_),E(Ee,N),E(Ee,L))),e.ADD_TAGS&&(Ce===Se&&(Ce=k(Ce)),E(Ce,e.ADD_TAGS)),e.ADD_ATTR&&(Ee===ke&&(Ee=k(Ee)),E(Ee,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&E(Ge,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&($e===We&&($e=k($e)),E($e,e.FORBID_CONTENTS)),He&&(Ce["#text"]=!0),Me&&E(Ce,["html","head","body"]),Ce.table&&(E(Ce,["tbody"]),delete Re.tbody),s&&s(e),rt=e)},ot=E({},["mi","mo","mn","ms","mtext"]),at=E({},["foreignobject","desc","title","annotation-xml"]),lt=E({},A);E(lt,x),E(lt,D);var ct=E({},_);E(ct,M);var ut=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=f(e.tagName),r=f(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===je?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]);if(e.namespaceURI===je)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Ke?"math"===n&&at[r]:Boolean(ct[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ke&&!at[r])return!1;if(t.namespaceURI===je&&!ot[r])return!1;var i=E({},["title","style","font","a","script"]);return!ct[n]&&(i[n]||!lt[n])}return!1},ht=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},pt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Oe||Ne)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){var t=void 0,n=void 0;if(Ie)e="<remove></remove>"+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var s=ie?ie.createHTML(e):e;if(Xe===Ye)try{t=(new Y).parseFromString(s,Je)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Qe?"":s}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Xe===Ye?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:o},mt=function(e){return le.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ft=function(e){return!(e instanceof j||e instanceof K||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof S&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},gt=function(e){return"object"===(void 0===l?"undefined":q(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":q(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,t,r){de[e]&&p(de[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t=void 0;if(yt("beforeSanitizeElements",e,null),ft(e))return ht(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ht(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===r&&v(/<template/i,e.innerHTML))return ht(e),!0;if(!Ce[r]||Re[r]){if(He&&!$e[r]){var i=ne(e)||e.parentNode,s=te(e)||e.childNodes;if(s&&i)for(var o=s.length-1;o>=0;--o)i.insertBefore(J(s[o],!0),ee(e))}return ht(e),!0}return e instanceof c&&!ut(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r||!v(/<\/no(script|embed)/i,e.innerHTML)?(_e&&3===e.nodeType&&(t=e.textContent,t=y(t,me," "),t=y(t,fe," "),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(ht(e),!0)},bt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in it))return!1;if(xe&&!Te[t]&&v(ge,t));else if(Ae&&v(ye,t));else{if(!Ee[t]||Te[t])return!1;if(Ge[t]);else if(v(ve,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!qe[e])if(De&&!v(we,y(n,be,"")));else if(n)return!1}return!0},vt=function(e){var t=void 0,r=void 0,i=void 0,s=void 0;yt("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(s=o.length;s--;){var l=t=o[s],c=l.name,u=l.namespaceURI;if(r=b(t.value),i=nt(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(pt(c,e),a.keepAttr))if(v(/\/>/i,r))pt(c,e);else{_e&&(r=y(r,me," "),r=y(r,fe," "));var h=nt(e.nodeName);if(bt(h,i,r))try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),d(n.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},Ct=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof o&&e(n.content),vt(n));yt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var s=void 0,a=void 0,c=void 0,u=void 0,h=void 0;if((Qe=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported){if("object"===q(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(gt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Pe||st(i),n.removed=[],"string"==typeof e&&(Ue=!1),Ue);else if(e instanceof l)1===(a=(s=dt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?s=a:s.appendChild(a);else{if(!Oe&&!_e&&!Me&&-1===e.indexOf("<"))return ie&&Be?ie.createHTML(e):e;if(!(s=dt(e)))return Oe?null:se}s&&Ie&&ht(s.firstChild);for(var p=mt(Ue?e:s);c=p.nextNode();)3===c.nodeType&&c===u||wt(c)||(c.content instanceof o&&Ct(c.content),vt(c),u=c);if(u=null,Ue)return e;if(Oe){if(Ne)for(h=ce.call(s.ownerDocument);s.firstChild;)h.appendChild(s.firstChild);else h=s;return Le&&(h=he.call(r,h,!0)),h}var d=Me?s.outerHTML:s.innerHTML;return _e&&(d=y(d,me," "),d=y(d,fe," ")),ie&&Be?ie.createHTML(d):d},n.setConfig=function(e){st(e),Pe=!0},n.clearConfig=function(){rt=null,Pe=!1},n.isValidAttribute=function(e,t,n){rt||st({});var r=nt(e),i=nt(t);return bt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],m(de[e],t))},n.removeHook=function(e){de[e]&&d(de[e])},n.removeHooks=function(e){de[e]&&(de[e]=[])},n.removeAllHooks=function(){de={}},n}()}()},9969:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RepositoryDoesNotExistErrorCode=t.GitNotFoundErrorCode=t.GitErrorRegexes=t.GitError=void 0,function(e){e[e.BadConfigValue=0]="BadConfigValue",e[e.SSHKeyAuditUnverified=1]="SSHKeyAuditUnverified",e[e.SSHAuthenticationFailed=2]="SSHAuthenticationFailed",e[e.SSHPermissionDenied=3]="SSHPermissionDenied",e[e.HTTPSAuthenticationFailed=4]="HTTPSAuthenticationFailed",e[e.RemoteDisconnection=5]="RemoteDisconnection",e[e.HostDown=6]="HostDown",e[e.RebaseConflicts=7]="RebaseConflicts",e[e.MergeConflicts=8]="MergeConflicts",e[e.HTTPSRepositoryNotFound=9]="HTTPSRepositoryNotFound",e[e.SSHRepositoryNotFound=10]="SSHRepositoryNotFound",e[e.PushNotFastForward=11]="PushNotFastForward",e[e.BranchDeletionFailed=12]="BranchDeletionFailed",e[e.DefaultBranchDeletionFailed=13]="DefaultBranchDeletionFailed",e[e.RevertConflicts=14]="RevertConflicts",e[e.EmptyRebasePatch=15]="EmptyRebasePatch",e[e.NoMatchingRemoteBranch=16]="NoMatchingRemoteBranch",e[e.NoExistingRemoteBranch=17]="NoExistingRemoteBranch",e[e.NothingToCommit=18]="NothingToCommit",e[e.NoSubmoduleMapping=19]="NoSubmoduleMapping",e[e.SubmoduleRepositoryDoesNotExist=20]="SubmoduleRepositoryDoesNotExist",e[e.InvalidSubmoduleSHA=21]="InvalidSubmoduleSHA",e[e.LocalPermissionDenied=22]="LocalPermissionDenied",e[e.InvalidMerge=23]="InvalidMerge",e[e.InvalidRebase=24]="InvalidRebase",e[e.NonFastForwardMergeIntoEmptyHead=25]="NonFastForwardMergeIntoEmptyHead",e[e.PatchDoesNotApply=26]="PatchDoesNotApply",e[e.BranchAlreadyExists=27]="BranchAlreadyExists",e[e.BadRevision=28]="BadRevision",e[e.NotAGitRepository=29]="NotAGitRepository",e[e.CannotMergeUnrelatedHistories=30]="CannotMergeUnrelatedHistories",e[e.LFSAttributeDoesNotMatch=31]="LFSAttributeDoesNotMatch",e[e.BranchRenameFailed=32]="BranchRenameFailed",e[e.PathDoesNotExist=33]="PathDoesNotExist",e[e.InvalidObjectName=34]="InvalidObjectName",e[e.OutsideRepository=35]="OutsideRepository",e[e.LockFileAlreadyExists=36]="LockFileAlreadyExists",e[e.NoMergeToAbort=37]="NoMergeToAbort",e[e.LocalChangesOverwritten=38]="LocalChangesOverwritten",e[e.UnresolvedConflicts=39]="UnresolvedConflicts",e[e.GPGFailedToSignData=40]="GPGFailedToSignData",e[e.ConflictModifyDeletedInBranch=41]="ConflictModifyDeletedInBranch",e[e.PushWithFileSizeExceedingLimit=42]="PushWithFileSizeExceedingLimit",e[e.HexBranchNameRejected=43]="HexBranchNameRejected",e[e.ForcePushRejected=44]="ForcePushRejected",e[e.InvalidRefLength=45]="InvalidRefLength",e[e.ProtectedBranchRequiresReview=46]="ProtectedBranchRequiresReview",e[e.ProtectedBranchForcePush=47]="ProtectedBranchForcePush",e[e.ProtectedBranchDeleteRejected=48]="ProtectedBranchDeleteRejected",e[e.ProtectedBranchRequiredStatus=49]="ProtectedBranchRequiredStatus",e[e.PushWithPrivateEmail=50]="PushWithPrivateEmail",e[e.ConfigLockFileAlreadyExists=51]="ConfigLockFileAlreadyExists",e[e.RemoteAlreadyExists=52]="RemoteAlreadyExists",e[e.TagAlreadyExists=53]="TagAlreadyExists",e[e.MergeWithLocalChanges=54]="MergeWithLocalChanges",e[e.RebaseWithLocalChanges=55]="RebaseWithLocalChanges",e[e.MergeCommitNoMainlineOption=56]="MergeCommitNoMainlineOption",e[e.UnsafeDirectory=57]="UnsafeDirectory",e[e.PathExistsButNotInRef=58]="PathExistsButNotInRef"}(n||(t.GitError=n={})),t.GitErrorRegexes={"fatal: bad (?:numeric|boolean) config value '(.+)' for '(.+)'":n.BadConfigValue,"ERROR: ([\\s\\S]+?)\\n+\\[EPOLICYKEYAGE\\]\\n+fatal: Could not read from remote repository.":n.SSHKeyAuditUnverified,"fatal: Authentication failed for 'https?://":n.HTTPSAuthenticationFailed,"fatal: Authentication failed":n.SSHAuthenticationFailed,"fatal: Could not read from remote repository.":n.SSHPermissionDenied,"The requested URL returned error: 403":n.HTTPSAuthenticationFailed,"fatal: [Tt]he remote end hung up unexpectedly":n.RemoteDisconnection,"fatal: unable to access '(.+)': Failed to connect to (.+): Host is down":n.HostDown,"Cloning into '(.+)'...\nfatal: unable to access '(.+)': Could not resolve host: (.+)":n.HostDown,"Resolve all conflicts manually, mark them as resolved with":n.RebaseConflicts,"(Merge conflict|Automatic merge failed; fix conflicts and then commit the result)":n.MergeConflicts,"fatal: repository '(.+)' not found":n.HTTPSRepositoryNotFound,"ERROR: Repository not found":n.SSHRepositoryNotFound,"\\((non-fast-forward|fetch first)\\)\nerror: failed to push some refs to '.*'":n.PushNotFastForward,"error: unable to delete '(.+)': remote ref does not exist":n.BranchDeletionFailed,"\\[remote rejected\\] (.+) \\(deletion of the current branch prohibited\\)":n.DefaultBranchDeletionFailed,"error: could not revert .*\nhint: after resolving the conflicts, mark the corrected paths\nhint: with 'git add <paths>' or 'git rm <paths>'\nhint: and commit the result with 'git commit'":n.RevertConflicts,"Applying: .*\nNo changes - did you forget to use 'git add'\\?\nIf there is nothing left to stage, chances are that something else\n.*":n.EmptyRebasePatch,"There are no candidates for (rebasing|merging) among the refs that you just fetched.\nGenerally this means that you provided a wildcard refspec which had no\nmatches on the remote end.":n.NoMatchingRemoteBranch,"Your configuration specifies to merge with the ref '(.+)'\nfrom the remote, but no such ref was fetched.":n.NoExistingRemoteBranch,"nothing to commit":n.NothingToCommit,"[Nn]o submodule mapping found in .gitmodules for path '(.+)'":n.NoSubmoduleMapping,"fatal: repository '(.+)' does not exist\nfatal: clone of '.+' into submodule path '(.+)' failed":n.SubmoduleRepositoryDoesNotExist,"Fetched in submodule path '(.+)', but it did not contain (.+). Direct fetching of that commit failed.":n.InvalidSubmoduleSHA,"fatal: could not create work tree dir '(.+)'.*: Permission denied":n.LocalPermissionDenied,"merge: (.+) - not something we can merge":n.InvalidMerge,"invalid upstream (.+)":n.InvalidRebase,"fatal: Non-fast-forward commit does not make sense into an empty head":n.NonFastForwardMergeIntoEmptyHead,"error: (.+): (patch does not apply|already exists in working directory)":n.PatchDoesNotApply,"fatal: [Aa] branch named '(.+)' already exists.?":n.BranchAlreadyExists,"fatal: bad revision '(.*)'":n.BadRevision,"fatal: [Nn]ot a git repository \\(or any of the parent directories\\): (.*)":n.NotAGitRepository,"fatal: refusing to merge unrelated histories":n.CannotMergeUnrelatedHistories,"The .+ attribute should be .+ but is .+":n.LFSAttributeDoesNotMatch,"fatal: Branch rename failed":n.BranchRenameFailed,"fatal: path '(.+)' does not exist .+":n.PathDoesNotExist,"fatal: invalid object name '(.+)'.":n.InvalidObjectName,"fatal: .+: '(.+)' is outside repository":n.OutsideRepository,"Another git process seems to be running in this repository, e.g.":n.LockFileAlreadyExists,"fatal: There is no merge to abort":n.NoMergeToAbort,"error: (?:Your local changes to the following|The following untracked working tree) files would be overwritten by checkout:":n.LocalChangesOverwritten,"You must edit all merge conflicts and then\nmark them as resolved using git add|fatal: Exiting because of an unresolved conflict":n.UnresolvedConflicts,"error: gpg failed to sign the data":n.GPGFailedToSignData,"CONFLICT \\(modify/delete\\): (.+) deleted in (.+) and modified in (.+)":n.ConflictModifyDeletedInBranch,"error: GH001: ":n.PushWithFileSizeExceedingLimit,"error: GH002: ":n.HexBranchNameRejected,"error: GH003: Sorry, force-pushing to (.+) is not allowed.":n.ForcePushRejected,"error: GH005: Sorry, refs longer than (.+) bytes are not allowed":n.InvalidRefLength,"error: GH006: Protected branch update failed for (.+)\nremote: error: At least one approved review is required":n.ProtectedBranchRequiresReview,"error: GH006: Protected branch update failed for (.+)\nremote: error: Cannot force-push to a protected branch":n.ProtectedBranchForcePush,"error: GH006: Protected branch update failed for (.+)\nremote: error: Cannot delete a protected branch":n.ProtectedBranchDeleteRejected,'error: GH006: Protected branch update failed for (.+).\nremote: error: Required status check "(.+)" is expected':n.ProtectedBranchRequiredStatus,"error: GH007: Your push would publish a private email address.":n.PushWithPrivateEmail,"error: could not lock config file (.+): File exists":n.ConfigLockFileAlreadyExists,"error: remote (.+) already exists.":n.RemoteAlreadyExists,"fatal: tag '(.+)' already exists":n.TagAlreadyExists,"error: Your local changes to the following files would be overwritten by merge:\n":n.MergeWithLocalChanges,"error: cannot (pull with rebase|rebase): You have unstaged changes\\.\n\\s*error: [Pp]lease commit or stash them\\.":n.RebaseWithLocalChanges,"error: commit (.+) is a merge but no -m option was given":n.MergeCommitNoMainlineOption,"fatal: detected dubious ownership in repository at (.+)":n.UnsafeDirectory,"fatal: path '(.+)' exists on disk, but not in '(.+)'":n.PathExistsButNotInRef},t.GitNotFoundErrorCode="git-not-found-error",t.RepositoryDoesNotExistErrorCode="repository-does-not-exist-error"},3982:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setupEnvironment=t.resolveGitExecPath=t.resolveGitBinary=t.resolveGitDir=t.resolveEmbeddedGitDir=void 0;const o=s(n(1017));function a(){{const e=o.sep;return o.resolve(__dirname,"..","..","git").replace(/[\\\/]app.asar[\\\/]/,`${e}app.asar.unpacked${e}`)}}function l(e){return null!=e.LOCAL_GIT_DIRECTORY?o.resolve(e.LOCAL_GIT_DIRECTORY):a()}function c(e){const t=l(e);return o.join(t,"bin","git")}function u(e){if(e.GIT_EXEC_PATH)return o.resolve(e.GIT_EXEC_PATH);const t=l(e);return o.join(t,"libexec","git-core")}t.resolveEmbeddedGitDir=a,t.resolveGitDir=l,t.resolveGitBinary=c,t.resolveGitExecPath=u,t.setupEnvironment=function(e){const t=process.env.PATH,n={...Object.fromEntries(Object.entries(process.env).filter((([e])=>"PATH"!==e.toUpperCase()))),...t?{PATH:t}:{},...e},r=c(n),i=l(n);n.GIT_EXEC_PATH=u(n),n.GIT_CONFIG_SYSTEM||(n.GIT_CONFIG_SYSTEM=o.join(i,"etc","gitconfig"));{const e=`${i}/share/git-core/templates`;n.GIT_TEMPLATE_DIR=e}if(n.PREFIX=i,!n.GIT_SSL_CAINFO&&!n.LOCAL_GIT_DIRECTORY){const e=`${a()}/ssl/cacert.pem`;n.GIT_SSL_CAINFO=e}return{env:n,gitLocation:r}}},3004:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GitTaskCancelResult=t.GitProcess=void 0;const o=s(n(7147)),a=n(7282),l=n(2081),c=n(9969),u=n(3982);class h{static pathExists(e){try{return o.accessSync(e,o.F_OK),!0}catch{return!1}}static spawn(e,t,n){let r={};n&&n.env&&(r=n.env);const{env:i,gitLocation:s}=(0,u.setupEnvironment)(r),o={env:i,cwd:t},a=(0,l.spawn)(s,e,o);return p(a),a}static exec(e,t,n){return this.execTask(e,t,n).result}static execTask(e,t,n){let r;const i=new Promise((function(e){r=e}));let s=new m(new Promise((function(i,o){let a={};n&&n.env&&(a=n.env);const{env:d,gitLocation:m}=(0,u.setupEnvironment)(a),f={cwd:t,encoding:"utf8",maxBuffer:n?n.maxBuffer:10485760,env:d},g=(0,l.execFile)(m,e,f,(function(e,n,r){if(s.updateProcessEnded(),!e)return void i({stdout:n,stderr:r,exitCode:0});let a=e.code;if("string"!=typeof a)"number"!=typeof a?"stdout maxBuffer exceeded"===e.message?o(new Error(`The output from the command could not fit into the allocated stdout buffer. Set options.maxBuffer to a larger value than ${f.maxBuffer} bytes`)):o(e):i({stdout:n,stderr:r,exitCode:a});else if("ENOENT"===a){let n=e.message;!1===h.pathExists(t)?(n="Unable to find path to repository on disk.",a=c.RepositoryDoesNotExistErrorCode):(n=`Git could not be found at the expected path: '${m}'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.`,a=c.GitNotFoundErrorCode);const r=new Error(n);r.name=e.name,r.code=a,o(r)}else o(e)}));r(g.pid),p(g),n&&void 0!==n.stdin&&g.stdin&&(n.stdinEncoding?g.stdin.end(n.stdin,n.stdinEncoding):g.stdin.end(n.stdin)),n&&n.processCallback&&n.processCallback(g)})),i);return s}static parseError(e){for(const[t,n]of Object.entries(c.GitErrorRegexes))if(e.match(t))return n;return null}static parseBadConfigValueErrorInfo(e){const t=Object.entries(c.GitErrorRegexes).find((([e,t])=>t===c.GitError.BadConfigValue));if(void 0===t)return null;const n=e.match(t[0]);return null===n?null:n[1]&&n[2]?{key:n[2],value:n[1]}:null}}function p({stdin:e}){e&&e.on("error",(t=>{const n=t.code;if("EPIPE"!==n&&"EOF"!==n&&"ECONNRESET"!==n&&e.listeners("error").length<=1)throw t}))}var d;t.GitProcess=h,function(e){e[e.successfulCancel=0]="successfulCancel",e[e.processAlreadyEnded=1]="processAlreadyEnded",e[e.noProcessIdDefined=2]="noProcessIdDefined",e[e.failedToCancel=3]="failedToCancel"}(d||(t.GitTaskCancelResult=d={}));class m{constructor(e,t){this.result=e,this.pid=t,this.processEnded=!1}pid;processEnded;result;updateProcessEnded(){this.processEnded=!0}async cancel(){if(this.processEnded)return d.processAlreadyEnded;const e=await this.pid;if(void 0===e)return d.noProcessIdDefined;try{return(0,a.kill)(e),d.successfulCancel}catch(e){}return d.failedToCancel}}},4682:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.GitNotFoundErrorCode=t.RepositoryDoesNotExistErrorCode=t.GitError=t.GitTaskCancelResult=t.GitProcess=void 0;var s=n(3004);Object.defineProperty(t,"GitProcess",{enumerable:!0,get:function(){return s.GitProcess}}),Object.defineProperty(t,"GitTaskCancelResult",{enumerable:!0,get:function(){return s.GitTaskCancelResult}});var o=n(9969);Object.defineProperty(t,"GitError",{enumerable:!0,get:function(){return o.GitError}}),Object.defineProperty(t,"RepositoryDoesNotExistErrorCode",{enumerable:!0,get:function(){return o.RepositoryDoesNotExistErrorCode}}),Object.defineProperty(t,"GitNotFoundErrorCode",{enumerable:!0,get:function(){return o.GitNotFoundErrorCode}}),i(n(3982),t)},3558:(e,t,n)=>{var r=n(3417),i=function(){},s=function(e,t,n){if("function"==typeof t)return s(e,null,t);t||(t={}),n=r(n||i);var o=e._writableState,a=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},h=function(){c=!1,l||n.call(e)},p=function(){l=!1,c||n.call(e)},d=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},f=function(){return(!l||a&&a.ended)&&(!c||o&&o.ended)?void 0:n.call(e,new Error("premature close"))},g=function(){e.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",h),e.on("abort",f),e.req?g():e.on("request",g)):c&&!o&&(e.on("end",u),e.on("close",u)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",d),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",f),function(){e.removeListener("complete",h),e.removeListener("abort",f),e.removeListener("request",g),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("exit",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",f)}};e.exports=s},7750:function(e,t,n){(function(){var t,r;t=null,e.exports=function(){function e(){var e,t,n;for(this.disposables=new Set,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.add(e)}return e.prototype.disposed=!1,e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposables.forEach((function(e){return e.dispose()})),this.disposables=null)},e.prototype.add=function(){var e,t,n;if(!this.disposed)for(t=0,n=arguments.length;t<n;t+=1)r(e=arguments[t]),this.disposables.add(e)},e.prototype.remove=function(e){this.disposed||this.disposables.delete(e)},e.prototype.delete=function(e){this.remove(e)},e.prototype.clear=function(){this.disposed||this.disposables.clear()},e}(),r=function(e){if(null==t&&(t=n(6122)),!t.isDisposable(e))throw new TypeError("Arguments to CompositeDisposable.add must have a .dispose() method")}}).call(this)},6122:function(e){(function(){e.exports=function(){function e(e){this.disposalAction=e}return e.prototype.disposed=!1,e.isDisposable=function(e){return"function"==typeof(null!=e?e.dispose:void 0)},e.prototype.dispose=function(){this.disposed||(this.disposed=!0,"function"==typeof this.disposalAction&&this.disposalAction(),this.disposalAction=null)},e}()}).call(this)},7601:function(e,t,n){(function(){var t;t=n(6122),e.exports=function(){function e(){this.clear()}return e.exceptionHandlers=[],e.onEventHandlerException=function(e){return 0===this.exceptionHandlers.length&&(this.dispatch=this.exceptionHandlingDispatch),this.exceptionHandlers.push(e),new t((n=this,function(){if(n.exceptionHandlers.splice(n.exceptionHandlers.indexOf(e),1),0===n.exceptionHandlers.length)return n.dispatch=n.simpleDispatch}));var n},e.simpleDispatch=function(e,t){return e(t)},e.exceptionHandlingDispatch=function(e,t){var n,r,i,s,o,a;try{return e(t)}catch(e){for(n=e,a=[],i=0,s=(o=this.exceptionHandlers).length;i<s;i++)r=o[i],a.push(r(n));return a}},e.dispatch=e.simpleDispatch,e.prototype.disposed=!1,e.prototype.clear=function(){return this.handlersByEventName={}},e.prototype.dispose=function(){return this.handlersByEventName=null,this.disposed=!0},e.prototype.on=function(e,n,r){var i;if(null==r&&(r=!1),this.disposed)throw new Error("Emitter has been disposed");if("function"!=typeof n)throw new Error("Handler must be a function");return(i=this.handlersByEventName[e])?this.handlersByEventName[e]=r?[n].concat(i):i.concat(n):this.handlersByEventName[e]=[n],new t(this.off.bind(this,e,n))},e.prototype.once=function(e,t,n){var r,i;return null==n&&(n=!1),i=function(e){return r.dispose(),t(e)},r=this.on(e,i,n)},e.prototype.preempt=function(e,t){return this.on(e,t,!0)},e.prototype.off=function(e,t){var n,r,i,s,o;if(!this.disposed&&(i=this.handlersByEventName[e])){for(r=[],s=0,o=i.length;s<o;s++)(n=i[s])!==t&&r.push(n);r.length>0?this.handlersByEventName[e]=r:delete this.handlersByEventName[e]}},e.prototype.emit=function(e,t){var n,r,i,s,o;if(r=null!=(o=this.handlersByEventName)?o[e]:void 0)for(i=0,s=r.length;i<s;i++)n=r[i],this.constructor.dispatch(n,t)},e.prototype.emitAsync=function(e,t){var n,r,i,s;return(r=null!=(s=this.handlersByEventName)?s[e]:void 0)?(i=function(){var e,i,s;for(s=[],e=0,i=r.length;e<i;e++)n=r[e],s.push(this.constructor.dispatch(n,t));return s}.call(this),Promise.all(i).then((function(){}))):Promise.resolve()},e.prototype.getEventNames=function(){return Object.keys(this.handlersByEventName)},e.prototype.listenerCountForEventName=function(e){var t,n;return null!=(t=null!=(n=this.handlersByEventName[e])?n.length:void 0)?t:0},e.prototype.getTotalListenerCount=function(){var e,t,n,r,i;for(t=0,n=0,r=(i=Object.keys(this.handlersByEventName)).length;n<r;n++)e=i[n],t+=this.handlersByEventName[e].length;return t},e}()}).call(this)},1391:function(e,t,n){(function(){t.Emitter=n(7601),t.Disposable=n(6122),t.CompositeDisposable=n(7750)}).call(this)},8734:(e,t,n)=>{"use strict";n(1017);const r=n(2081),i=n(3861),s=n(6097),o=n(1829),a=n(697),l=n(3675),c=n(8911),u=n(8419),h=n(8047),p=n(5709);function d(e,t,n){let r;return(n=Object.assign({extendEnv:!0,env:{}},n)).extendEnv&&(n.env=Object.assign({},process.env,n.env)),!0===n.__winShell?(delete n.__winShell,r={command:e,args:t,options:n,file:e,original:{cmd:e,args:t}}):r=i._parse(e,t,n),(n=Object.assign({maxBuffer:1e7,buffer:!0,stripEof:!0,preferLocal:!0,localDir:r.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},r.options)).stdio=p(n),n.preferLocal&&(n.env=o.env(Object.assign({},n,{cwd:n.localDir}))),n.detached&&(n.cleanup=!1),{cmd:r.command,args:r.args,opts:n,parsed:r}}function m(e,t){return t&&e.stripEof&&(t=s(t)),t}function f(e,t,n){let r="/bin/sh",i=["-c",t];return(n=Object.assign({},n)).shell&&(r=n.shell,delete n.shell),e(r,i,n)}function g(e,t,{encoding:n,buffer:r,maxBuffer:i}){if(!e[t])return null;let s;return s=r?n?l(e[t],{encoding:n,maxBuffer:i}):l.buffer(e[t],{maxBuffer:i}):new Promise(((n,r)=>{e[t].once("end",n).once("error",r)})),s.catch((e=>{throw e.stream=t,e.message=`${t} ${e.message}`,e}))}function y(e,t){const{stdout:n,stderr:r}=e;let i=e.error;const{code:s,signal:o}=e,{parsed:a,joinedCmd:l}=t,c=t.timedOut||!1;if(!i){let e="";Array.isArray(a.opts.stdio)?("inherit"!==a.opts.stdio[2]&&(e+=e.length>0?r:`\n${r}`),"inherit"!==a.opts.stdio[1]&&(e+=`\n${n}`)):"inherit"!==a.opts.stdio&&(e=`\n${r}${n}`),i=new Error(`Command failed: ${l}${e}`),i.code=s<0?h(s):s}return i.stdout=n,i.stderr=r,i.failed=!0,i.signal=o||null,i.cmd=l,i.timedOut=c,i}function w(e,t){let n=e;return Array.isArray(t)&&t.length>0&&(n+=" "+t.join(" ")),n}e.exports=(e,t,n)=>{const s=d(e,t,n),{encoding:o,buffer:l,maxBuffer:h}=s.opts,p=w(e,t);let f,b;try{f=r.spawn(s.cmd,s.args,s.opts)}catch(e){return Promise.reject(e)}s.opts.cleanup&&(b=u((()=>{f.kill()})));let v=null,C=!1;const S=()=>{v&&(clearTimeout(v),v=null),b&&b()};s.opts.timeout>0&&(v=setTimeout((()=>{v=null,C=!0,f.kill(s.opts.killSignal)}),s.opts.timeout));const E=new Promise((e=>{f.on("exit",((t,n)=>{S(),e({code:t,signal:n})})),f.on("error",(t=>{S(),e({error:t})})),f.stdin&&f.stdin.on("error",(t=>{S(),e({error:t})}))}));function k(){f.stdout&&f.stdout.destroy(),f.stderr&&f.stderr.destroy()}const R=()=>c(Promise.all([E,g(f,"stdout",{encoding:o,buffer:l,maxBuffer:h}),g(f,"stderr",{encoding:o,buffer:l,maxBuffer:h})]).then((e=>{const t=e[0];if(t.stdout=e[1],t.stderr=e[2],t.error||0!==t.code||null!==t.signal){const e=y(t,{joinedCmd:p,parsed:s,timedOut:C});if(e.killed=e.killed||f.killed,!s.opts.reject)return e;throw e}return{stdout:m(s.opts,t.stdout),stderr:m(s.opts,t.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:p,timedOut:!1}})),k);return i._enoent.hookChildProcess(f,s.parsed),function(e,t){null!=t&&(a(t)?t.pipe(e.stdin):e.stdin.end(t))}(f,s.opts.input),f.then=(e,t)=>R().then(e,t),f.catch=e=>R().catch(e),f},e.exports.stdout=(...t)=>e.exports(...t).then((e=>e.stdout)),e.exports.stderr=(...t)=>e.exports(...t).then((e=>e.stderr)),e.exports.shell=(t,n)=>f(e.exports,t,n),e.exports.sync=(e,t,n)=>{const i=d(e,t,n),s=w(e,t);if(a(i.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const o=r.spawnSync(i.cmd,i.args,i.opts);if(o.code=o.status,o.error||0!==o.status||null!==o.signal){const e=y(o,{joinedCmd:s,parsed:i});if(!i.opts.reject)return e;throw e}return{stdout:m(i.opts,o.stdout),stderr:m(i.opts,o.stderr),code:0,failed:!1,signal:null,cmd:s,timedOut:!1}},e.exports.shellSync=(t,n)=>f(e.exports.sync,t,n)},8047:(e,t,n)=>{"use strict";const r=n(3837);let i;if("function"==typeof r.getSystemErrorName)e.exports=r.getSystemErrorName;else{try{if(i=process.binding("uv"),"function"!=typeof i.errname)throw new TypeError("uv.errname is not a function")}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e),i=null}e.exports=e=>s(i,e)}function s(e,t){if(e)return e.errname(t);if(!(t<0))throw new Error("err >= 0");return`Unknown system error ${t}`}e.exports.__test__=s},5709:e=>{"use strict";const t=["stdin","stdout","stderr"];e.exports=e=>{if(!e)return null;if(e.stdio&&(e=>t.some((t=>Boolean(e[t]))))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e.stdio)return e.stdio;const n=e.stdio||[];if(!Array.isArray(n))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``);const r=[],i=Math.max(n.length,t.length);for(let s=0;s<i;s++){let i=null;void 0!==n[s]?i=n[s]:void 0!==e[t[s]]&&(i=e[t[s]]),r[s]=i}return r}},697:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},3318:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}function i(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)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c=n(6826),u=n(2623),h=n(3470),p=n(4974).createFocusTrap,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,n,r,h,p=(r=d,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(r);if(h){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function d(e){var t,n,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i=function(e){t.focusTrapElement=e},(r="setFocusTrapElement")in(n=a(t=p.call(this,e)))?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,"undefined"!=typeof document&&(t.previouslyFocusedElement=document.activeElement),t}return t=d,(n=[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"returnFocusOnDeactivate"!==n&&(t[n]=e[n]);var r=u.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t={returnFocus:this.props.focusTrapOptions.returnFocusOnDeactivate||!1};this.focusTrap.deactivate(t)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var e=this,t=c.Children.only(this.props.children);return c.cloneElement(t,{ref:function(n){e.setFocusTrapElement(n),"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)}})}}])&&i(t.prototype,n),d}(c.Component),m="undefined"==typeof Element?Function:Element;d.propTypes={active:h.bool,paused:h.bool,focusTrapOptions:h.shape({onActivate:h.func,onDeactivate:h.func,initialFocus:h.oneOfType([h.instanceOf(m),h.string,h.func]),fallbackFocus:h.oneOfType([h.instanceOf(m),h.string,h.func]),escapeDeactivates:h.bool,clickOutsideDeactivates:h.bool,returnFocusOnDeactivate:h.bool,setReturnFocus:h.oneOfType([h.instanceOf(m),h.string,h.func]),allowOutsideClick:h.oneOfType([h.bool,h.func]),preventScroll:h.bool}),children:h.oneOfType([h.element,h.instanceOf(m)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:p},e.exports=d},4974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>g});let r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary"],i=r.join(","),s="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e){return!(!a(e)||function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;let t=function(e,t){for(let n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}((e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),e.form);return!t||t===e}(e)}(e)||u(e)<0)}function a(e){return!(e.disabled||function(e){return p(e)&&"hidden"===e.type}(e)||function(e){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(e))}let l=r.concat("iframe").join(",");function c(e){if(!e)throw new Error("No node provided");return!1!==s.call(e,l)&&a(e)}function u(e){let t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t}function h(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function p(e){return"INPUT"===e.tagName}var d,m,f=(m=[],{activateTrap:function(e){if(m.length>0){var t=m[m.length-1];t!==e&&t.pause()}var n=m.indexOf(e);-1===n||m.splice(n,1),m.push(e)},deactivateTrap:function(e){var t=m.indexOf(e);-1!==t&&m.splice(t,1),m.length>0&&m[m.length-1].unpause()}});function g(e,t){var n=document,r="string"==typeof e?n.querySelector(e):e,a={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,...t},l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},p={activate:function(e){if(!l.active){R(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:a.onActivate;return t&&t(),g(),p}},deactivate:m,pause:function(){!l.paused&&l.active&&(l.paused=!0,w())},unpause:function(){l.paused&&l.active&&(l.paused=!1,R(),g())}};return p;function m(e){if(l.active){clearTimeout(d),w(),l.active=!1,l.paused=!1,f.deactivateTrap(p);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:a.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:a.returnFocusOnDeactivate)&&y((function(){var e;T((e=l.nodeFocusedBeforeActivation,b("setReturnFocus")||e))})),p}}function g(){if(l.active)return f.activateTrap(p),d=a.delayInitialFocus?y((function(){T(v())})):T(v()),n.addEventListener("focusin",S,!0),n.addEventListener("mousedown",C,{capture:!0,passive:!1}),n.addEventListener("touchstart",C,{capture:!0,passive:!1}),n.addEventListener("click",k,{capture:!0,passive:!1}),n.addEventListener("keydown",E,{capture:!0,passive:!1}),p}function w(){if(l.active)return n.removeEventListener("focusin",S,!0),n.removeEventListener("mousedown",C,!0),n.removeEventListener("touchstart",C,!0),n.removeEventListener("click",k,!0),n.removeEventListener("keydown",E,!0),p}function b(e){var t=a[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function v(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):r.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function C(e){r.contains(e.target)||(a.clickOutsideDeactivates?m({returnFocus:!c(e.target)}):a.allowOutsideClick&&("boolean"==typeof a.allowOutsideClick?a.allowOutsideClick:a.allowOutsideClick(e))||e.preventDefault())}function S(e){r.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),T(l.mostRecentlyFocusedNode||v()))}function E(e){if(!1!==a.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void m();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(R(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void T(l.lastTabbableNode);e.shiftKey||e.target!==l.lastTabbableNode||(e.preventDefault(),T(l.firstTabbableNode))}(e)}function k(e){a.clickOutsideDeactivates||r.contains(e.target)||a.allowOutsideClick&&("boolean"==typeof a.allowOutsideClick?a.allowOutsideClick:a.allowOutsideClick(e))||(e.preventDefault(),e.stopImmediatePropagation())}function R(){var e=function(e,t){let n=[],r=[];return function(e,t,n){let r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&s.call(e,i)&&r.unshift(e),r=r.filter(n),r}(e,(t=t||{}).includeContainer,o).forEach((function(e,t){let i=u(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(h).map((e=>e.node)).concat(n)}(r);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function T(e){e!==n.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):T(v()))}}function y(e){return setTimeout(e,0)}},3518:(e,t,n)=>{n(7147);const{spawn:r,spawnSync:i}=n(2081),s=n(2361),o=(n(6980),e.exports);o.testMode=!1,Object.assign(o,{clearAuthorizationCache(){i("/bin/pkcheck",["--revoke-temp"])},createWriteStream(e){if(!o.testMode){const e=i("/usr/bin/pkexec",["/bin/dd"]);if(e.error||0!==e.status){const e=new s;return e.write=e.end=function(){},process.nextTick((()=>{e.emit("error",new Error("Failed to obtain credentials"))})),e}}const t=o.testMode?r("/bin/dd",["of="+e]):r("/usr/bin/pkexec",["/bin/dd","of="+e]),n=new s;return n.write=(e,n,r)=>{t.stdin.write(e,n,r)},n.end=e=>{e&&n.on("finish",e),t.stdin.end()},t.on("exit",(e=>{0!==e&&n.emit("error",new Error("dd exited with code "+e)),n.emit("finish")})),n}})},4049:function(e,t,n){(function(){var t,r,i,s;i=n(9247),t=n(7762),n(237),r=function(e){return e.candidate},s=function(e,t){return t.score-e.score},e.exports=function(e,n,o){var a,l,c,u,h,p,d,m,f,g,y,w,b;for(m=[],c=o.key,h=o.maxResults,u=o.maxInners,y=o.usePathScoring,f=null!=u&&u>0?u:e.length+1,a=null!=c,d=y?t:i,w=0,b=e.length;w<b&&(l=e[w],!((g=a?l[c]:l)&&(p=d.score(g,n,o))>0)||(m.push({candidate:l,score:p}),--f));w++);return m.sort(s),e=m.map(r),null!=h&&(e=e.slice(0,h)),e}}).call(this)},5170:function(e,t,n){(function(){var t,r,i,s,o,a,l,c;i=n(4049),s=n(6607),c=n(9247),a=n(7762),t=n(237),l=null,r="win32"===("undefined"!=typeof process&&null!==process?"linux":void 0)?"\\":"/",e.exports={filter:function(e,t,n){return null==n&&(n={}),(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)?(n=o(n,t),i(e,t,n)):[]},score:function(e,t,n){return null==n&&(n={}),(null!=e?e.length:void 0)&&(null!=t?t.length:void 0)?(n=o(n,t)).usePathScoring?a.score(e,t,n):c.score(e,t,n):0},match:function(e,t,n){var r;return null==n&&(n={}),e&&t?e===t?function(){r=[];for(var t=0,n=e.length;0<=n?t<n:t>n;0<=n?t++:t--)r.push(t);return r}.apply(this):(n=o(n,t),s.match(e,t,n)):[]},wrap:function(e,t,n){return null==n&&(n={}),e&&t?(n=o(n,t),s.wrap(e,t,n)):[]},prepareQuery:function(e,t){return null==t&&(t={}),(t=o(t,e)).preparedQuery}},o=function(e,n){return null==e.allowErrors&&(e.allowErrors=!1),null==e.usePathScoring&&(e.usePathScoring=!0),null==e.useExtensionBonus&&(e.useExtensionBonus=!1),null==e.pathSeparator&&(e.pathSeparator=r),null==e.optCharRegEx&&(e.optCharRegEx=null),null==e.wrap&&(e.wrap=null),null==e.preparedQuery&&(e.preparedQuery=l&&l.query===n?l:l=new t(n,e)),e}}).call(this)},6607:function(e,t,n){(function(){var e,r,i,s,o,a,l,c,u,h;h=n(9247),i=h.isMatch,s=h.isWordStart,u=h.scoreConsecutives,c=h.scoreCharacter,l=h.scoreAcronyms,t.match=o=function(t,n,s){var o,l,c,u,h,p;return o=s.allowErrors,h=s.preparedQuery,u=s.pathSeparator,o||i(t,h.core_lw,h.core_up)?(p=t.toLowerCase(),0===(c=r(t,p,h)).length||t.indexOf(u)>-1&&(l=e(t,p,h,u),c=a(c,l)),c):[]},t.wrap=function(e,t,n){var r,i,s,a,l,c,u,h,p;if(null!=n.wrap&&(c=(p=n.wrap).tagClass,h=p.tagOpen,u=p.tagClose),null==c&&(c="highlight"),null==h&&(h='<strong class="'+c+'">'),null==u&&(u="</strong>"),e===t)return h+e+u;if(0===(s=o(e,0,n)).length)return e;for(a="",r=-1,l=0;++r<s.length;){for((i=s[r])>l&&(a+=e.substring(l,i),l=i);++r<s.length;){if(s[r]!==i+1){r--;break}i++}++i>l&&(a+=h,a+=e.substring(l,i),a+=u,l=i)}return l<=e.length-1&&(a+=e.substring(l)),a},e=function(e,t,n,i){var s,o,a;for(a=e.length-1;e[a]===i;)a--;if(-1===(s=e.lastIndexOf(i,a)))return[];for(o=n.depth;o-- >0;)if(-1===(s=e.lastIndexOf(i,s-1)))return[];return s++,a++,r(e.slice(s,a),t.slice(s,a),n,s)},a=function(e,t){var n,r,i,s,o,a,l;if(o=e.length,0===(a=t.length))return e.slice();if(0===o)return t.slice();for(i=-1,r=t[s=0],l=[];++i<o;){for(n=e[i];r<=n&&++s<a;)r<n&&l.push(r),r=t[s];l.push(n)}for(;s<a;)l.push(t[s++]);return l},r=function(e,t,n,r){var i,o,a,h,p,d,m,f,g,y,w,b,v,C,S,E,k,R,T,A,x,D;for(null==r&&(r=0),C=n.query,S=n.query_lw,g=e.length,b=C.length,i=l(e,t,C,S).score,R=new Array(b),p=new Array(b),D=new Array(g*b),v=-1,f=-1;++f<b;)R[f]=0,p[f]=0;for(m=-1;++m<g;)for(E=0,T=0,h=0,A=t[m],f=-1;++f<b;)d=0,o=0,k=T,S[f]===A&&(x=s(m,e,t),d=h>0?h:u(e,t,C,S,m,f,x),o=k+c(m,f,x,i,d)),T=R[f],h=p[f],E>T?w=2:(E=T,w=1),o>E?(E=o,w=3):d=0,R[f]=E,p[f]=d,D[++v]=E>0?w:0;for(v=(m=g-1)*b+(f=b-1),a=!0,y=[];a&&m>=0&&f>=0;)switch(D[v]){case 1:m--,v-=b;break;case 2:f--,v--;break;case 3:y.push(m+r),f--,m--,v-=b+1;break;default:a=!1}return y.reverse(),y}}).call(this)},7762:function(e,t,n){(function(){var e,r,i,s,o,a,l;l=n(9247),s=l.isMatch,e=l.computeScore,a=l.scoreSize,t.score=function(t,n,r){var i,a,l;return i=r.preparedQuery,r.allowErrors||s(t,i.core_lw,i.core_up)?(l=t.toLowerCase(),a=e(t,l,i),a=o(t,l,a,r),Math.ceil(a)):0},o=function(t,n,s,o){var l,c,u,h,p,d,m,f,g,y;if(0===s)return 0;for(g=o.preparedQuery,y=o.useExtensionBonus,f=o.pathSeparator,p=t.length-1;t[p]===f;)p--;if(m=p-(u=t.lastIndexOf(f,p)),d=1,y&&(s*=d+=i(n,g.ext,u,p,2)),-1===u)return s;for(h=g.depth;u>-1&&h-- >0;)u=t.lastIndexOf(f,u-1);return c=-1===u?s:d*e(t.slice(u+1,p+1),n.slice(u+1,p+1),g),(l=10/(20+r(t,p+1,f)))*c+(1-l)*s*a(0,2.5*m)},t.countDir=r=function(e,t,n){var r,i;if(t<1)return 0;for(r=0,i=-1;++i<t&&e[i]===n;);for(;++i<t;)if(e[i]===n)for(r++;++i<t&&e[i]===n;);return r},t.getExtension=function(e){var t;return(t=e.lastIndexOf("."))<0?"":e.substr(t+1)},i=function(e,t,n,r,s){var o,a,l,c;if(!t.length)return 0;if(!((c=e.lastIndexOf(".",r))>n))return 0;for((o=r-c)<(l=t.length)&&(l=o,o=t.length),c++,a=-1;++a<l&&e[c+a]===t[a];);return 0===a&&s>0?.9*i(e,t,n,c-2,s-1):a/o}}).call(this)},237:function(e,t,n){(function(){var t,r,i,s,o,a,l;l=n(7762),r=l.countDir,s=l.getExtension,e.exports=function(e,n){var o,l,c;if(o=(c=null!=n?n:{}).optCharRegEx,l=c.pathSeparator,!e||!e.length)return null;this.query=e,this.query_lw=e.toLowerCase(),this.core=t(e,o),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=r(e,e.length,l),this.ext=s(this.query_lw),this.charCodes=i(this.query_lw)},o=/[ _\-:\/\\]/g,t=function(e,t){return null==t&&(t=o),e.replace(t,"")},a=function(e){var t,n,r;for(t="",n=0,r=e.length;n<r;n++)t+=e[n].toUpperCase()[0];return t},i=function(e){var t,n,r;for(r=e.length,n=-1,t=[];++n<r;)t[e.charCodeAt(n)]=!0;return t}}).call(this)},9247:function(e,t){(function(){var e,n,r,i,s,o,a,l,c,u,h,p,d,m,f,g;t.score=function(e,t,r){var i,o,a;return i=r.preparedQuery,r.allowErrors||s(e,i.core_lw,i.core_up)?(a=e.toLowerCase(),o=n(e,a,i),Math.ceil(o)):0},t.isMatch=s=function(e,t,n){var r,i,s,o,a,l,c;if(s=e.length,o=t.length,!s||o>s)return!1;for(r=-1,i=-1;++i<o;){for(a=t.charCodeAt(i),l=n.charCodeAt(i);++r<s&&(c=e.charCodeAt(r))!==a&&c!==l;);if(r===s)return!1}return!0},t.computeScore=n=function(e,t,n){var r,i,s,o,a,m,f,y,w,b,v,C,S,E,k,R,T,A,x,D,_,M,P,I;if(k=n.query,R=n.query_lw,b=e.length,S=k.length,i=(r=c(e,t,k,R)).score,r.count===S)return p(S,b,i,r.pos);if((E=t.indexOf(R))>-1)return d(e,t,k,R,E,S,b);for(D=new Array(S),a=new Array(S),I=g(S,b),C=v=Math.ceil(.75*S)+5,f=!0,w=-1;++w<S;)D[w]=0,a[w]=0;for(y=-1;++y<b;)if(!(M=t[y]).charCodeAt(0)in n.charCodes){if(f){for(w=-1;++w<S;)a[w]=0;f=!1}}else for(A=0,x=0,o=0,T=!0,f=!0,w=-1;++w<S;){if((_=D[w])>A&&(A=_),m=0,R[w]===M)if(P=l(y,e,t),m=o>0?o:h(e,t,k,R,y,w,P),(s=x+u(y,w,P,i,m))>A)A=s,C=v;else{if(T&&--C<=0)return Math.max(A,D[S-1])*I;T=!1}x=_,o=a[w],a[w]=m,D[w]=A}return(A=D[S-1])*I},t.isWordStart=l=function(e,t,n){var r,i;return 0===e||(r=t[e],i=t[e-1],o(i)||r!==n[e]&&i===n[e-1])},t.isWordEnd=a=function(e,t,n,r){var i,s;return e===r-1||(i=t[e],s=t[e+1],o(s)||i===n[e]&&s!==n[e+1])},o=function(e){return" "===e||"."===e||"-"===e||"_"===e||"/"===e||"\\"===e},f=function(e){var t;return e<20?100+(t=20-e)*t:Math.max(120-e,0)},t.scoreSize=g=function(e,t){return 150/(150+Math.abs(t-e))},p=function(e,t,n,r){return 2*e*(150*n+f(r))*g(e,t)},t.scorePattern=m=function(e,t,n,r,i){var s,o;return o=e,s=6,n===e&&(s+=2),r&&(s+=3),i&&(s+=1),e===t&&(r&&(o+=n===t?2:1),i&&(s+=1)),n+o*(o+s)},t.scoreCharacter=u=function(e,t,n,r,i){var s;return s=f(e),n?s+150*((r>i?r:i)+10):s+150*i},t.scoreConsecutives=h=function(e,t,n,r,i,s,o){var l,c,u,h,p,d,f;for(l=(u=(c=e.length)-i)<(p=(h=n.length)-s)?u:p,d=0,f=0,n[s]===e[i]&&d++;++f<l&&r[++s]===t[++i];)n[s]===e[i]&&d++;return f<l&&i--,1===f?1+2*d:m(f,h,d,o,a(i,e,t,c))},t.scoreExactMatch=d=function(e,t,n,r,i,s,o){var c,u,h,d,f;for((f=l(i,e,t))||(h=t.indexOf(r,i+1))>-1&&(f=l(h,e,t))&&(i=h),u=-1,d=0;++u<s;)n[i+u]===e[u]&&d++;return c=a(i+s-1,e,t,o),p(s,o,m(s,s,d,f,c),i)},r=new(e=function(e,t,n){this.score=e,this.pos=t,this.count=n})(0,.1,0),t.scoreAcronyms=c=function(t,n,s,a){var c,u,h,p,d,f,g,y,w,b,v;if(d=t.length,f=s.length,!(d>1&&f>1))return r;for(c=0,b=0,v=0,y=0,h=-1,p=-1;++p<f;){if(g=a[p],o(g)){if((h=n.indexOf(g,h+1))>-1){b++;continue}break}for(;++h<d;)if(g===n[h]&&l(h,t,n)){s[p]===t[h]&&y++,v+=h,c++;break}if(h===d)break}return c<2?r:(u=c===f&&i(t,n,s,c),w=m(c,f,y,!0,u),new e(w,v/c,c+b))},i=function(e,t,n,r){var i,s,o;if(i=0,(o=e.length)>12*n.length)return!1;for(s=-1;++s<o;)if(l(s,e,t)&&++i>r)return!1;return!0}}).call(this)},3603:(e,t,n)=>{"use strict";const{PassThrough:r}=n(2781);e.exports=e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:n}=e;const i="buffer"===n;let s=!1;t?s=!(n||i):n=n||"utf8",i&&(n=null);let o=0;const a=[],l=new r({objectMode:s});return n&&l.setEncoding(n),l.on("data",(e=>{a.push(e),s?o=a.length:o+=e.length})),l.getBufferedValue=()=>t?a:i?Buffer.concat(a,o):a.join(""),l.getBufferedLength=()=>o,l}},3675:(e,t,n)=>{"use strict";const r=n(3021),i=n(3603);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function o(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);const{maxBuffer:n}=t;let o;return new Promise(((a,l)=>{const c=e=>{e&&(e.bufferedData=o.getBufferedValue()),l(e)};o=r(e,i(t),(e=>{e?c(e):a()})),o.on("data",(()=>{o.getBufferedLength()>n&&c(new s)}))})).then((()=>o.getBufferedValue()))}e.exports=o,e.exports.buffer=(e,t)=>o(e,Object.assign({},t,{encoding:"buffer"})),e.exports.array=(e,t)=>o(e,Object.assign({},t,{array:!0})),e.exports.MaxBufferError=s},557:(e,t,n)=>{var r;function i(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){i(e,t||{},(function(e,t){e?r(e):n(t)}))}))}r(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}n(7147),r=global.TESTING_WINDOWS?n(1905):n(61),e.exports=i,i.sync=function(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},61:(e,t,n)=>{e.exports=i,i.sync=function(e,t){return s(r.statSync(e),t)};var r=n(7147);function i(e,t,n){r.stat(e,(function(e,r){n(e,!e&&s(r,t))}))}function s(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8);return n&parseInt("001",8)||n&l&&i===o||n&a&&r===s||n&(a|l)&&0===s}(e,t)}},1905:(e,t,n)=>{e.exports=s,s.sync=function(e,t){return i(r.statSync(e),e,t)};var r=n(7147);function i(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,n)}function s(e,t,n){r.stat(e,(function(r,s){n(r,!r&&i(s,e,t))}))}},193:(e,t,n)=>{var r=n(8469);function i(e,t){if(!e||e.length<=0)throw new Error(t+" is required.")}e.exports={getPassword:function(e,t){return i(e,"Service"),i(t,"Account"),r.getPassword(e,t)},setPassword:function(e,t,n){return i(e,"Service"),i(t,"Account"),i(n,"Password"),r.setPassword(e,t,n)},deletePassword:function(e,t){return i(e,"Service"),i(t,"Account"),r.deletePassword(e,t)},findPassword:function(e){return i(e,"Service"),r.findPassword(e)},findCredentials:function(e){return i(e,"Service"),r.findCredentials(e)}}},1351:(e,t,n)=>{var r=n(9275)(n(1794),"DataView");e.exports=r},4521:(e,t,n)=>{var r=n(5460),i=n(9722),s=n(2515),o=n(8959),a=n(5505);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},7524:(e,t,n)=>{var r=n(1166),i=n(5498),s=n(5294),o=n(9624),a=n(8377);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},2197:(e,t,n)=>{var r=n(9275)(n(1794),"Map");e.exports=r},3291:(e,t,n)=>{var r=n(6465),i=n(859),s=n(4926),o=n(2611),a=n(798);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},5869:(e,t,n)=>{var r=n(9275)(n(1794),"Promise");e.exports=r},1226:(e,t,n)=>{var r=n(9275)(n(1794),"Set");e.exports=r},6506:(e,t,n)=>{var r=n(3291),i=n(9080),s=n(5843);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=s,e.exports=o},5603:(e,t,n)=>{var r=n(7524),i=n(7125),s=n(6881),o=n(9801),a=n(1744),l=n(1446);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=a,c.prototype.set=l,e.exports=c},7325:(e,t,n)=>{var r=n(1794).Symbol;e.exports=r},5569:(e,t,n)=>{var r=n(1794).Uint8Array;e.exports=r},7469:(e,t,n)=>{var r=n(9275)(n(1794),"WeakMap");e.exports=r},3965:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1627:e=>{e.exports=function(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}},9406:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}},8268:(e,t,n)=>{var r=n(4158);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},4197:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},8022:(e,t,n)=>{var r=n(7538),i=n(6369),s=n(2441),o=n(5453),a=n(6771),l=n(1575),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),u=!n&&i(e),h=!n&&!u&&o(e),p=!n&&!u&&!h&&l(e),d=n||u||h||p,m=d?r(e.length,String):[],f=m.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,f))||m.push(g);return m}},9382:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},1079:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},6919:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},8697:(e,t,n)=>{var r=n(8009);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3601:(e,t,n)=>{var r=n(4676);e.exports=function(e,t,n,i){return r(e,(function(e,r,s){t(i,e,n(e),s)})),i}},9865:(e,t,n)=>{var r=n(5900);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},4647:(e,t,n)=>{var r=n(6506),i=n(8268),s=n(4197),o=n(9382),a=n(2265),l=n(1243);e.exports=function(e,t,n,c){var u=-1,h=i,p=!0,d=e.length,m=[],f=t.length;if(!d)return m;n&&(t=o(t,a(n))),c?(h=s,p=!1):t.length>=200&&(h=l,p=!1,t=new r(t));e:for(;++u<d;){var g=e[u],y=null==n?g:n(g);if(g=c||0!==g?g:0,p&&y==y){for(var w=f;w--;)if(t[w]===y)continue e;m.push(g)}else h(t,y,c)||m.push(g)}return m}},4676:(e,t,n)=>{var r=n(6299),i=n(2936)(r);e.exports=i},9046:e=>{e.exports=function(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}},7802:(e,t,n)=>{var r=n(1079),i=n(7092);e.exports=function e(t,n,s,o,a){var l=-1,c=t.length;for(s||(s=i),a||(a=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,o,a):r(a,u):o||(a[a.length]=u)}return a}},6428:(e,t,n)=>{var r=n(6903)();e.exports=r},6299:(e,t,n)=>{var r=n(6428),i=n(5351);e.exports=function(e,t){return e&&r(e,t,i)}},4743:(e,t,n)=>{var r=n(2366),i=n(218);e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n<s;)e=e[i(t[n++])];return n&&n==s?e:void 0}},5985:(e,t,n)=>{var r=n(1079),i=n(2441);e.exports=function(e,t,n){var s=t(e);return i(e)?s:r(s,n(e))}},5635:(e,t,n)=>{var r=n(7325),i=n(7926),s=n(3792),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},9679:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},4158:(e,t,n)=>{var r=n(9046),i=n(2868),s=n(1322);e.exports=function(e,t,n){return t==t?s(e,t,n):r(e,i,n)}},969:(e,t,n)=>{var r=n(5635),i=n(8863);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},7896:(e,t,n)=>{var r=n(428),i=n(8863);e.exports=function e(t,n,s,o,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,s,o,e,a))}},428:(e,t,n)=>{var r=n(5603),i=n(3249),s=n(3815),o=n(1513),a=n(7553),l=n(2441),c=n(5453),u=n(1575),h="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,y){var w=l(e),b=l(t),v=w?p:a(e),C=b?p:a(t),S=(v=v==h?d:v)==d,E=(C=C==h?d:C)==d,k=v==C;if(k&&c(e)){if(!c(t))return!1;w=!0,S=!1}if(k&&!S)return y||(y=new r),w||u(e)?i(e,t,n,f,g,y):s(e,t,v,n,f,g,y);if(!(1&n)){var R=S&&m.call(e,"__wrapped__"),T=E&&m.call(t,"__wrapped__");if(R||T){var A=R?e.value():e,x=T?t.value():t;return y||(y=new r),g(A,x,n,f,y)}}return!!k&&(y||(y=new r),o(e,t,n,f,g,y))}},6529:(e,t,n)=>{var r=n(5603),i=n(7896);e.exports=function(e,t,n,s){var o=n.length,a=o,l=!s;if(null==e)return!a;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=n[o])[0],h=e[u],p=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var d=new r;if(s)var m=s(h,p,u,e,t,d);if(!(void 0===m?i(p,h,3,s,d):m))return!1}}return!0}},2868:e=>{e.exports=function(e){return e!=e}},8951:(e,t,n)=>{var r=n(4936),i=n(1111),s=n(6751),o=n(5568),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,p=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||i(e))&&(r(e)?p:a).test(o(e))}},1874:(e,t,n)=>{var r=n(5635),i=n(129),s=n(8863),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&i(e.length)&&!!o[r(e)]}},9180:(e,t,n)=>{var r=n(1344),i=n(9527),s=n(676),o=n(2441),a=n(651);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):a(e)}},1249:(e,t,n)=>{var r=n(5769),i=n(6481),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},1344:(e,t,n)=>{var r=n(6529),i=n(8550),s=n(4574);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},9527:(e,t,n)=>{var r=n(7896),i=n(7466),s=n(5137),o=n(4481),a=n(704),l=n(4574),c=n(218);e.exports=function(e,t){return o(e)&&a(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?s(n,e):r(t,o,3)}}},3824:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4432:(e,t,n)=>{var r=n(4743);e.exports=function(e){return function(t){return r(t,e)}}},5329:(e,t,n)=>{var r=n(676),i=n(4988),s=n(6574);e.exports=function(e,t){return s(i(e,t,r),e+"")}},1633:(e,t,n)=>{var r=n(6539),i=n(5900),s=n(676),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:s;e.exports=o},7538:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},5760:(e,t,n)=>{var r=n(9382);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},8849:(e,t,n)=>{var r=n(7325),i=n(9382),s=n(2441),o=n(6307),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},3029:(e,t,n)=>{var r=n(6987),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},2265:e=>{e.exports=function(e){return function(t){return e(t)}}},2423:(e,t,n)=>{var r=n(6506),i=n(8268),s=n(4197),o=n(1243),a=n(9497),l=n(439);e.exports=function(e,t,n){var c=-1,u=i,h=e.length,p=!0,d=[],m=d;if(n)p=!1,u=s;else if(h>=200){var f=t?null:a(e);if(f)return l(f);p=!1,u=o,m=new r}else m=t?[]:d;e:for(;++c<h;){var g=e[c],y=t?t(g):g;if(g=n||0!==g?g:0,p&&y==y){for(var w=m.length;w--;)if(m[w]===y)continue e;t&&m.push(y),d.push(g)}else u(m,y,n)||(m!==d&&m.push(y),d.push(g))}return d}},8541:(e,t,n)=>{var r=n(4647),i=n(7802),s=n(2423);e.exports=function(e,t,n){var o=e.length;if(o<2)return o?s(e[0]):[];for(var a=-1,l=Array(o);++a<o;)for(var c=e[a],u=-1;++u<o;)u!=a&&(l[a]=r(l[a]||c,e[u],t,n));return s(i(l,1),t,n)}},1243:e=>{e.exports=function(e,t){return e.has(t)}},2366:(e,t,n)=>{var r=n(2441),i=n(4481),s=n(4586),o=n(9948);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:s(o(e))}},9789:(e,t,n)=>{var r=n(1794)["__core-js_shared__"];e.exports=r},1562:(e,t,n)=>{var r=n(1627),i=n(3601),s=n(9180),o=n(2441);e.exports=function(e,t){return function(n,a){var l=o(n)?r:i,c=t?t():{};return l(n,e,s(a,2),c)}}},2936:(e,t,n)=>{var r=n(9303);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++o<s)&&!1!==i(a[o],o,a););return n}}},6903:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===n(s[l],l,s))break}return t}}},9497:(e,t,n)=>{var r=n(1226),i=n(5478),s=n(439),o=r&&1/s(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=o},364:(e,t,n)=>{var r=n(5760),i=n(7553),s=n(732),o=n(3210);e.exports=function(e){return function(t){var n=i(t);return"[object Map]"==n?s(t):"[object Set]"==n?o(t):r(t,e(t))}}},5900:(e,t,n)=>{var r=n(9275),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},3249:(e,t,n)=>{var r=n(6506),i=n(6919),s=n(1243);e.exports=function(e,t,n,o,a,l){var c=1&n,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var p=l.get(e),d=l.get(t);if(p&&d)return p==t&&d==e;var m=-1,f=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var y=e[m],w=t[m];if(o)var b=c?o(w,y,m,t,e,l):o(y,w,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(g){if(!i(t,(function(e,t){if(!s(g,t)&&(y===e||a(y,e,n,o,l)))return g.push(t)}))){f=!1;break}}else if(y!==w&&!a(y,w,n,o,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},3815:(e,t,n)=>{var r=n(7325),i=n(5569),s=n(8009),o=n(3249),a=n(732),l=n(439),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,h,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=a;case"[object Set]":var m=1&r;if(d||(d=l),e.size!=t.size&&!m)return!1;var f=p.get(e);if(f)return f==t;r|=2,p.set(e,t);var g=o(d(e),d(t),r,c,h,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1513:(e,t,n)=>{var r=n(7740),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,o,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var h=u;h--;){var p=c[h];if(!(l?p in t:i.call(t,p)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=l;++h<u;){var y=e[p=c[h]],w=t[p];if(s)var b=l?s(w,y,p,t,e,a):s(y,w,p,e,t,a);if(!(void 0===b?y===w||o(y,w,n,s,a):b)){f=!1;break}g||(g="constructor"==p)}if(f&&!g){var v=e.constructor,C=t.constructor;v==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C||(f=!1)}return a.delete(e),a.delete(t),f}},1331:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},7740:(e,t,n)=>{var r=n(5985),i=n(895),s=n(5351);e.exports=function(e){return r(e,s,i)}},4935:(e,t,n)=>{var r=n(3190);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8550:(e,t,n)=>{var r=n(704),i=n(5351);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var s=t[n],o=e[s];t[n]=[s,o,r(o)]}return t}},9275:(e,t,n)=>{var r=n(8951),i=n(4260);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},7926:(e,t,n)=>{var r=n(7325),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},895:(e,t,n)=>{var r=n(9406),i=n(8172),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return s.call(e,t)})))}:i;e.exports=a},7553:(e,t,n)=>{var r=n(1351),i=n(2197),s=n(5869),o=n(1226),a=n(7469),l=n(5635),c=n(5568),u="[object Map]",h="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",f=c(r),g=c(i),y=c(s),w=c(o),b=c(a),v=l;(r&&v(new r(new ArrayBuffer(1)))!=m||i&&v(new i)!=u||s&&v(s.resolve())!=h||o&&v(new o)!=p||a&&v(new a)!=d)&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return m;case g:return u;case y:return h;case w:return p;case b:return d}return t}),e.exports=v},4260:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6925:(e,t,n)=>{var r=n(2366),i=n(6369),s=n(2441),o=n(6771),a=n(129),l=n(218);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,h=!1;++c<u;){var p=l(t[c]);if(!(h=null!=e&&n(e,p)))break;e=e[p]}return h||++c!=u?h:!!(u=null==e?0:e.length)&&a(u)&&o(p,u)&&(s(e)||i(e))}},5460:(e,t,n)=>{var r=n(8437);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9722:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2515:(e,t,n)=>{var r=n(8437),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},8959:(e,t,n)=>{var r=n(8437),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},5505:(e,t,n)=>{var r=n(8437);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},7092:(e,t,n)=>{var r=n(7325),i=n(6369),s=n(2441),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||i(e)||!!(o&&e&&e[o])}},6771:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4481:(e,t,n)=>{var r=n(2441),i=n(6307),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!s.test(e)||null!=t&&e in Object(t)}},3190:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},1111:(e,t,n)=>{var r,i=n(9789),s=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},5769:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},704:(e,t,n)=>{var r=n(6751);e.exports=function(e){return e==e&&!r(e)}},1166:e=>{e.exports=function(){this.__data__=[],this.size=0}},5498:(e,t,n)=>{var r=n(8697),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},5294:(e,t,n)=>{var r=n(8697);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},9624:(e,t,n)=>{var r=n(8697);e.exports=function(e){return r(this.__data__,e)>-1}},8377:(e,t,n)=>{var r=n(8697);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},6465:(e,t,n)=>{var r=n(4521),i=n(7524),s=n(2197);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||i),string:new r}}},859:(e,t,n)=>{var r=n(4935);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},4926:(e,t,n)=>{var r=n(4935);e.exports=function(e){return r(this,e).get(e)}},2611:(e,t,n)=>{var r=n(4935);e.exports=function(e){return r(this,e).has(e)}},798:(e,t,n)=>{var r=n(4935);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},732:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4574:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},3499:(e,t,n)=>{var r=n(8743);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},8437:(e,t,n)=>{var r=n(9275)(Object,"create");e.exports=r},6481:(e,t,n)=>{var r=n(5423)(Object.keys,Object);e.exports=r},9673:(e,t,n)=>{e=n.nmd(e);var r=n(1331),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i&&r.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},3792:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5423:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4988:(e,t,n)=>{var r=n(3965),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=i(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=s[o];return c[t]=n(l),r(e,this,c)}}},1794:(e,t,n)=>{var r=n(1331),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},9080:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},5843:e=>{e.exports=function(e){return this.__data__.has(e)}},439:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},3210:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}},6574:(e,t,n)=>{var r=n(1633),i=n(2578)(r);e.exports=i},2578:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),s=16-(i-r);if(r=i,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7125:(e,t,n)=>{var r=n(7524);e.exports=function(){this.__data__=new r,this.size=0}},6881:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},9801:e=>{e.exports=function(e){return this.__data__.get(e)}},1744:e=>{e.exports=function(e){return this.__data__.has(e)}},1446:(e,t,n)=>{var r=n(7524),i=n(2197),s=n(3291);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(e,t),this.size=n.size,this}},1322:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},4586:(e,t,n)=>{var r=n(3499),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(s,"$1"):n||e)})),t}));e.exports=o},218:(e,t,n)=>{var r=n(6307);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},5568:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6987:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6539:e=>{e.exports=function(e){return function(){return e}}},4397:(e,t,n)=>{var r=n(6751),i=n(9344),s=n(4258),o=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,h,p,d,m=0,f=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=l,r=c;return l=c=void 0,m=t,h=e.apply(r,n)}function b(e){return m=e,p=setTimeout(C,t),f?w(e):h}function v(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-m>=u}function C(){var e=i();if(v(e))return S(e);p=setTimeout(C,function(e){var n=t-(e-d);return g?a(n,u-(e-m)):n}(e))}function S(e){return p=void 0,y&&l?w(e):(l=c=void 0,h)}function E(){var e=i(),n=v(e);if(l=arguments,c=this,d=e,n){if(void 0===p)return b(d);if(g)return clearTimeout(p),p=setTimeout(C,t),w(d)}return void 0===p&&(p=setTimeout(C,t)),h}return t=s(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(s(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=d=c=p=void 0},E.flush=function(){return void 0===p?h:S(i())},E}},2373:(e,t,n)=>{e.exports=n(2159)},8009:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2229:(e,t,n)=>{var r=n(9948),i=/[\\^$.*+?()[\]{}|]/g,s=RegExp(i.source);e.exports=function(e){return(e=r(e))&&s.test(e)?e.replace(i,"\\$&"):e}},7466:(e,t,n)=>{var r=n(4743);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},8228:(e,t,n)=>{var r=n(9865),i=n(1562),s=Object.prototype.hasOwnProperty,o=i((function(e,t,n){s.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=o},5137:(e,t,n)=>{var r=n(9679),i=n(6925);e.exports=function(e,t){return null!=e&&i(e,t,r)}},676:e=>{e.exports=function(e){return e}},6369:(e,t,n)=>{var r=n(969),i=n(8863),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},2441:e=>{var t=Array.isArray;e.exports=t},9303:(e,t,n)=>{var r=n(4936),i=n(129);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},2893:(e,t,n)=>{var r=n(9303),i=n(8863);e.exports=function(e){return i(e)&&r(e)}},5453:(e,t,n)=>{e=n.nmd(e);var r=n(1794),i=n(3989),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},4936:(e,t,n)=>{var r=n(5635),i=n(6751);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},129:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6751:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8863:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6307:(e,t,n)=>{var r=n(5635),i=n(8863);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},1575:(e,t,n)=>{var r=n(1874),i=n(2265),s=n(9673),o=s&&s.isTypedArray,a=o?i(o):r;e.exports=a},5351:(e,t,n)=>{var r=n(8022),i=n(1249),s=n(9303);e.exports=function(e){return s(e)?r(e):i(e)}},1928:function(e,t,n){var r;e=n.nmd(e),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,c=128,u=1/0,h=9007199254740991,p=NaN,d=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],f="[object Arguments]",g="[object Array]",y="[object Boolean]",w="[object Date]",b="[object Error]",v="[object Function]",C="[object GeneratorFunction]",S="[object Map]",E="[object Number]",k="[object Object]",R="[object Promise]",T="[object RegExp]",A="[object Set]",x="[object String]",D="[object Symbol]",_="[object WeakMap]",M="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",N="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",Z="[object Uint32Array]",$=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,z=RegExp(V.source),j=RegExp(G.source),K=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="["+ke+"]",Te="["+Ce+"]",Ae="\\d+",xe="["+Se+"]",De="[^\\ud800-\\udfff"+ke+Ae+"\\u2700-\\u27bf"+Se+Ee+"]",_e="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="["+Ee+"]",Ne="(?:"+xe+"|"+De+")",Le="(?:"+Oe+"|"+De+")",Be="(?:['](?:d|ll|m|re|s|t|ve))?",Fe="(?:['](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Te+"|"+_e+")?",Ue="[\\ufe0e\\ufe0f]?",Ze=Ue+He+"(?:\\u200d(?:"+[Me,Pe,Ie].join("|")+")"+Ue+He+")*",$e="(?:"+["[\\u2700-\\u27bf]",Pe,Ie].join("|")+")"+Ze,We="(?:"+[Me+Te+"?",Te,Pe,Ie,"[\\ud800-\\udfff]"].join("|")+")",qe=RegExp("[']","g"),Ve=RegExp(Te,"g"),Ge=RegExp(_e+"(?="+_e+")|"+We+Ze,"g"),ze=RegExp([Oe+"?"+xe+"+"+Be+"(?="+[Re,Oe,"$"].join("|")+")",Le+"+"+Fe+"(?="+[Re,Oe+Ne,"$"].join("|")+")",Oe+"?"+Ne+"+"+Be,Oe+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,$e].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+Ce+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Qe={};Qe[I]=Qe[O]=Qe[N]=Qe[L]=Qe[B]=Qe[F]=Qe[H]=Qe[U]=Qe[Z]=!0,Qe[f]=Qe[g]=Qe[M]=Qe[y]=Qe[P]=Qe[w]=Qe[b]=Qe[v]=Qe[S]=Qe[E]=Qe[k]=Qe[T]=Qe[A]=Qe[x]=Qe[_]=!1;var Je={};Je[f]=Je[g]=Je[M]=Je[P]=Je[y]=Je[w]=Je[I]=Je[O]=Je[N]=Je[L]=Je[B]=Je[S]=Je[E]=Je[k]=Je[T]=Je[A]=Je[x]=Je[D]=Je[F]=Je[H]=Je[U]=Je[Z]=!0,Je[b]=Je[v]=Je[_]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof global&&global&&global.Object===Object&&global,it="object"==typeof self&&self&&self.Object===Object&&self,st=rt||it||Function("return this")(),ot=t&&!t.nodeType&&t,at=ot&&e&&!e.nodeType&&e,lt=at&&at.exports===ot,ct=lt&&rt.process,ut=function(){try{return at&&at.require&&at.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ht=ut&&ut.isArrayBuffer,pt=ut&&ut.isDate,dt=ut&&ut.isMap,mt=ut&&ut.isRegExp,ft=ut&&ut.isSet,gt=ut&&ut.isTypedArray;function yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wt(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function vt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Et(e,t){return!(null==e||!e.length)&&It(e,t,0)>-1}function kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Tt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function At(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function xt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var _t=Bt("length");function Mt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Pt(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function It(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Pt(e,Nt,n)}function Ot(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}function Nt(e){return e!=e}function Lt(e,t){var n=null==e?0:e.length;return n?Ut(e,t)/n:p}function Bt(e){return function(t){return null==t?i:t[e]}}function Ft(e){return function(t){return null==e?i:e[t]}}function Ht(e,t,n,r,i){return i(e,(function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)})),n}function Ut(e,t){for(var n,r=-1,s=e.length;++r<s;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function qt(e,t){return Rt(t,(function(t){return e[t]}))}function Vt(e,t){return e.has(t)}function Gt(e,t){for(var n=-1,r=e.length;++n<r&&It(t,e[n],0)>-1;);return n}function zt(e,t){for(var n=e.length;n--&&It(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=Ft({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Xt(e){return"\\"+et[e]}function Qt(e){return je.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n];o!==t&&o!==a||(e[n]=a,s[i++]=n)}return s}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function sn(e){return Qt(e)?function(e){for(var t=Ge.lastIndex=0;Ge.test(e);)++t;return t}(e):_t(e)}function on(e){return Qt(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=Ft({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?st:cn.defaults(st.Object(),t,cn.pick(st,Ye))).Array,ie=t.Date,Ce=t.Error,Se=t.Function,Ee=t.Math,ke=t.Object,Re=t.RegExp,Te=t.String,Ae=t.TypeError,xe=r.prototype,De=Se.prototype,_e=ke.prototype,Me=t["__core-js_shared__"],Pe=De.toString,Ie=_e.hasOwnProperty,Oe=0,Ne=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=_e.toString,Be=Pe.call(ke),Fe=st._,He=Re("^"+Pe.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=lt?t.Buffer:i,Ze=t.Symbol,$e=t.Uint8Array,We=Ue?Ue.allocUnsafe:i,Ge=en(ke.getPrototypeOf,ke),je=ke.create,et=_e.propertyIsEnumerable,rt=xe.splice,it=Ze?Ze.isConcatSpreadable:i,ot=Ze?Ze.iterator:i,at=Ze?Ze.toStringTag:i,ct=function(){try{var e=cs(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==st.clearTimeout&&t.clearTimeout,_t=ie&&ie.now!==st.Date.now&&ie.now,Ft=t.setTimeout!==st.setTimeout&&t.setTimeout,un=Ee.ceil,hn=Ee.floor,pn=ke.getOwnPropertySymbols,dn=Ue?Ue.isBuffer:i,mn=t.isFinite,fn=xe.join,gn=en(ke.keys,ke),yn=Ee.max,wn=Ee.min,bn=ie.now,vn=t.parseInt,Cn=Ee.random,Sn=xe.reverse,En=cs(t,"DataView"),kn=cs(t,"Map"),Rn=cs(t,"Promise"),Tn=cs(t,"Set"),An=cs(t,"WeakMap"),xn=cs(ke,"create"),Dn=An&&new An,_n={},Mn=Fs(En),Pn=Fs(kn),In=Fs(Rn),On=Fs(Tn),Nn=Fs(An),Ln=Ze?Ze.prototype:i,Bn=Ln?Ln.valueOf:i,Fn=Ln?Ln.toString:i;function Hn(e){if(na(e)&&!Vo(e)&&!(e instanceof Wn)){if(e instanceof $n)return e;if(Ie.call(e,"__wrapped__"))return Hs(e)}return new $n(e)}var Un=function(){function e(){}return function(t){if(!ta(t))return{};if(je)return je(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Zn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function jn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Kn(e,t){var n=Vo(e),r=!n&&qo(e),i=!n&&!r&&Ko(e),s=!n&&!r&&!i&&ua(e),o=n||r||i||s,a=o?Zt(e.length,Te):[],l=a.length;for(var c in e)!t&&!Ie.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gs(c,l))||a.push(c);return a}function Yn(e){var t=e.length;return t?e[Gr(0,t-1)]:i}function Xn(e,t){return Is(Ai(e),or(t,0,e.length))}function Qn(e){return Is(Ai(e))}function Jn(e,t,n){(n!==i&&!Zo(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Ie.call(e,t)&&Zo(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Zo(e[n][0],t))return n;return-1}function nr(e,t,n,r){return hr(e,(function(e,i,s){t(r,e,n(e),s)})),r}function rr(e,t){return e&&xi(t,Pa(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,s=t.length,o=r(s),a=null==e;++n<s;)o[n]=a?i:Aa(e,t[n]);return o}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,s,o){var a,l=1&t,c=2&t,u=4&t;if(n&&(a=s?n(e,r,s,o):n(e)),a!==i)return a;if(!ta(e))return e;var h=Vo(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ai(e,a)}else{var p=ps(e),d=p==v||p==C;if(Ko(e))return Ci(e,l);if(p==k||p==f||d&&!s){if(a=c||d?{}:ms(e),!l)return c?function(e,t){return xi(e,hs(e),t)}(e,function(e,t){return e&&xi(t,Ia(t),e)}(a,e)):function(e,t){return xi(e,us(e),t)}(e,rr(a,e))}else{if(!Je[p])return s?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case M:return Si(e);case y:case w:return new i(+e);case P:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case O:case N:case L:case B:case F:case H:case U:case Z:return Ei(e,n);case S:return new i;case E:case x:return new i(e);case T:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new i;case D:return r=e,Bn?ke(Bn.call(r)):{}}}(e,p,l)}}o||(o=new jn);var m=o.get(e);if(m)return m;o.set(e,a),aa(e)?e.forEach((function(r){a.add(ar(r,t,n,r,e,o))})):ra(e)&&e.forEach((function(r,i){a.set(i,ar(r,t,n,i,e,o))}));var g=h?i:(u?c?ns:ts:c?Ia:Pa)(e);return bt(g||e,(function(r,i){g&&(r=e[i=r]),er(a,i,ar(r,t,n,i,e,o))})),a}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var s=n[r],o=t[s],a=e[s];if(a===i&&!(s in e)||!o(a))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ae(s);return Ds((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,s=Et,o=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=Rt(t,Wt(n))),r?(s=kt,o=!1):t.length>=200&&(s=Vt,o=!1,t=new zn(t));e:for(;++i<a;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var p=c;p--;)if(t[p]===h)continue e;l.push(u)}else s(t,h,r)||l.push(u)}return l}Hn.templateSettings={escape:K,evaluate:Y,interpolate:X,variable:"",imports:{_:Hn}},Hn.prototype=Zn.prototype,Hn.prototype.constructor=Hn,$n.prototype=Un(Zn.prototype),$n.prototype.constructor=$n,Wn.prototype=Un(Zn.prototype),Wn.prototype.constructor=Wn,qn.prototype.clear=function(){this.__data__=xn?xn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(xn){var n=t[e];return n===o?i:n}return Ie.call(t,e)?t[e]:i},qn.prototype.has=function(e){var t=this.__data__;return xn?t[e]!==i:Ie.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xn&&t===i?o:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Vn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return tr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Vn),string:new qn}},Gn.prototype.delete=function(e){var t=as(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return as(this,e).get(e)},Gn.prototype.has=function(e){return as(this,e).has(e)},Gn.prototype.set=function(e,t){var n=as(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,o),this},zn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.clear=function(){this.__data__=new Vn,this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jn.prototype.get=function(e){return this.__data__.get(e)},jn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=Mi(br),pr=Mi(vr,!0);function dr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function mr(e,t,n){for(var r=-1,s=e.length;++r<s;){var o=e[r],a=t(o);if(null!=a&&(l===i?a==a&&!ca(a):n(a,l)))var l=a,c=o}return c}function fr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=fs),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?gr(a,t-1,n,r,i):Tt(i,a):r||(i[i.length]=a)}return i}var yr=Pi(),wr=Pi(!0);function br(e,t){return e&&yr(e,t,Pa)}function vr(e,t){return e&&wr(e,t,Pa)}function Cr(e,t){return St(t,(function(t){return Qo(e[t])}))}function Sr(e,t){for(var n=0,r=(t=yi(t,e)).length;null!=e&&n<r;)e=e[Bs(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return Vo(e)?r:Tt(r,n(e))}function kr(e){return null==e?e===i?"[object Undefined]":"[object Null]":at&&at in ke(e)?function(e){var t=Ie.call(e,at),n=e[at];try{e[at]=i;var r=!0}catch(e){}var s=Le.call(e);return r&&(t?e[at]=n:delete e[at]),s}(e):function(e){return Le.call(e)}(e)}function Rr(e,t){return e>t}function Tr(e,t){return null!=e&&Ie.call(e,t)}function Ar(e,t){return null!=e&&t in ke(e)}function xr(e,t,n){for(var s=n?kt:Et,o=e[0].length,a=e.length,l=a,c=r(a),u=1/0,h=[];l--;){var p=e[l];l&&t&&(p=Rt(p,Wt(t))),u=wn(p.length,u),c[l]=!n&&(t||o>=120&&p.length>=120)?new zn(l&&p):i}p=e[0];var d=-1,m=c[0];e:for(;++d<o&&h.length<u;){var f=p[d],g=t?t(f):f;if(f=n||0!==f?f:0,!(m?Vt(m,g):s(h,g,n))){for(l=a;--l;){var y=c[l];if(!(y?Vt(y,g):s(e[l],g,n)))continue e}m&&m.push(g),h.push(f)}}return h}function Dr(e,t,n){var r=null==(e=Rs(e,t=yi(t,e)))?e:e[Bs(Ys(t))];return null==r?i:yt(r,e,n)}function _r(e){return na(e)&&kr(e)==f}function Mr(e,t,n,r,s){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,s,o){var a=Vo(e),l=Vo(t),c=a?g:ps(e),u=l?g:ps(t),h=(c=c==f?k:c)==k,p=(u=u==f?k:u)==k,d=c==u;if(d&&Ko(e)){if(!Ko(t))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new jn),a||ua(e)?Ji(e,t,n,r,s,o):function(e,t,n,r,i,s,o){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!s(new $e(e),new $e(t)));case y:case w:case E:return Zo(+e,+t);case b:return e.name==t.name&&e.message==t.message;case T:case x:return e==t+"";case S:var a=Jt;case A:var l=1&r;if(a||(a=nn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=Ji(a(e),a(t),r,i,s,o);return o.delete(e),u;case D:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,r,s,o);if(!(1&n)){var m=h&&Ie.call(e,"__wrapped__"),v=p&&Ie.call(t,"__wrapped__");if(m||v){var C=m?e.value():e,R=v?t.value():t;return o||(o=new jn),s(C,R,n,r,o)}}return!!d&&(o||(o=new jn),function(e,t,n,r,s,o){var a=1&n,l=ts(e),c=l.length;if(c!=ts(t).length&&!a)return!1;for(var u=c;u--;){var h=l[u];if(!(a?h in t:Ie.call(t,h)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var m=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<c;){var g=e[h=l[u]],y=t[h];if(r)var w=a?r(y,g,h,t,e,o):r(g,y,h,e,t,o);if(!(w===i?g===y||s(g,y,n,r,o):w)){m=!1;break}f||(f="constructor"==h)}if(m&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,r,s,o))}(e,t,n,r,Mr,s))}function Pr(e,t,n,r){var s=n.length,o=s,a=!r;if(null==e)return!o;for(e=ke(e);s--;){var l=n[s];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<o;){var c=(l=n[s])[0],u=e[c],h=l[1];if(a&&l[2]){if(u===i&&!(c in e))return!1}else{var p=new jn;if(r)var d=r(u,h,c,e,t,p);if(!(d===i?Mr(h,u,3,r,p):d))return!1}}return!0}function Ir(e){return!(!ta(e)||(t=e,Ne&&Ne in t))&&(Qo(e)?He:fe).test(Fs(e));var t}function Or(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Vo(e)?Hr(e[0],e[1]):Fr(e):dl(e)}function Nr(e){if(!Cs(e))return gn(e);var t=[];for(var n in ke(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Br(e,t){var n=-1,i=zo(e)?r(e.length):[];return hr(e,(function(e,r,s){i[++n]=t(e,r,s)})),i}function Fr(e){var t=ls(e);return 1==t.length&&t[0][2]?Es(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Hr(e,t){return ws(e)&&Ss(t)?Es(Bs(e),t):function(n){var r=Aa(n,e);return r===i&&r===t?xa(n,e):Mr(t,r,3)}}function Ur(e,t,n,r,s){e!==t&&yr(t,(function(o,a){if(s||(s=new jn),ta(o))!function(e,t,n,r,s,o,a){var l=As(e,n),c=As(t,n),u=a.get(c);if(u)Jn(e,n,u);else{var h=o?o(l,c,n+"",e,t,a):i,p=h===i;if(p){var d=Vo(c),m=!d&&Ko(c),f=!d&&!m&&ua(c);h=c,d||m||f?Vo(l)?h=l:jo(l)?h=Ai(l):m?(p=!1,h=Ci(c,!0)):f?(p=!1,h=Ei(c,!0)):h=[]:sa(c)||qo(c)?(h=l,qo(l)?h=wa(l):ta(l)&&!Qo(l)||(h=ms(c))):p=!1}p&&(a.set(c,h),s(h,c,r,o,a),a.delete(c)),Jn(e,n,h)}}(e,t,a,n,Ur,r,s);else{var l=r?r(As(e,a),o,a+"",e,t,s):i;l===i&&(l=o),Jn(e,a,l)}}),Ia)}function Zr(e,t){var n=e.length;if(n)return gs(t+=t<0?n:0,n)?e[t]:i}function $r(e,t,n){t=t.length?Rt(t,(function(e){return Vo(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;t=Rt(t,Wt(os()));var i=Br(e,(function(e,n,i){var s=Rt(t,(function(t){return t(e)}));return{criteria:s,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;++r<o;){var l=ki(i[r],s[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Wr(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=Sr(e,o);n(a,o)&&Xr(s,yi(o,e),a)}return s}function qr(e,t,n,r){var i=r?Ot:It,s=-1,o=t.length,a=e;for(e===t&&(t=Ai(t)),n&&(a=Rt(e,Wt(n)));++s<o;)for(var l=0,c=t[s],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&rt.call(a,l,1),rt.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;gs(i)?rt.call(e,i,1):ci(e,i)}}return e}function Gr(e,t){return e+hn(Cn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=hn(t/2))&&(e+=e)}while(t);return n}function jr(e,t){return _s(ks(e,t,il),e+"")}function Kr(e){return Yn(Za(e))}function Yr(e,t){var n=Za(e);return Is(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!ta(e))return e;for(var s=-1,o=(t=yi(t,e)).length,a=o-1,l=e;null!=l&&++s<o;){var c=Bs(t[s]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(s!=a){var h=l[c];(u=r?r(h,c,l):i)===i&&(u=ta(h)?h:gs(t[s+1])?[]:{})}er(l,c,u),l=l[c]}return e}var Qr=Dn?function(e,t){return Dn.set(e,t),e}:il,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return Is(Za(e))}function ti(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i<s;)o[i]=e[i+t];return o}function ni(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=e[s];null!==o&&!ca(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return ii(e,t,il,n)}function ii(e,t,n,r){var s=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,l=null===t,c=ca(t),u=t===i;s<o;){var h=hn((s+o)/2),p=n(e[h]),d=p!==i,m=null===p,f=p==p,g=ca(p);if(a)var y=r||f;else y=u?f&&(r||d):l?f&&d&&(r||!m):c?f&&d&&!m&&(r||!g):!m&&!g&&(r?p<=t:p<t);y?s=h+1:o=h}return wn(o,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!Zo(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function oi(e){return"number"==typeof e?e:ca(e)?p:+e}function ai(e){if("string"==typeof e)return e;if(Vo(e))return Rt(e,ai)+"";if(ca(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function li(e,t,n){var r=-1,i=Et,s=e.length,o=!0,a=[],l=a;if(n)o=!1,i=kt;else if(s>=200){var c=t?null:zi(e);if(c)return nn(c);o=!1,i=Vt,l=new zn}else l=t?[]:a;e:for(;++r<s;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),a.push(u)}else i(l,h,n)||(l!==a&&l.push(h),a.push(u))}return a}function ci(e,t){return null==(e=Rs(e,t=yi(t,e)))||delete e[Bs(Ys(t))]}function ui(e,t,n,r){return Xr(e,t,n(Sr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?ti(e,r?0:s,r?s+1:i):ti(e,r?s+1:0,r?i:s)}function pi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),At(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?li(e[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=e[s],l=-1;++l<i;)l!=s&&(o[s]=ur(o[s]||a,e[l],t,n));return li(gr(o,1),t,n)}function mi(e,t,n){for(var r=-1,s=e.length,o=t.length,a={};++r<s;){var l=r<o?t[r]:i;n(a,e[r],l)}return a}function fi(e){return jo(e)?e:[]}function gi(e){return"function"==typeof e?e:il}function yi(e,t){return Vo(e)?e:ws(e,t)?[e]:Ls(ba(e))}var wi=jr;function bi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var vi=ut||function(e){return st.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Ei(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,r=null===e,s=e==e,o=ca(e),a=t!==i,l=null===t,c=t==t,u=ca(t);if(!l&&!u&&!o&&e>t||o&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!s)return 1;if(!r&&!o&&!u&&e<t||u&&n&&s&&!r&&!o||l&&n&&s||!a&&s||!c)return-1}return 0}function Ri(e,t,n,i){for(var s=-1,o=e.length,a=n.length,l=-1,c=t.length,u=yn(o-a,0),h=r(c+u),p=!i;++l<c;)h[l]=t[l];for(;++s<a;)(p||s<o)&&(h[n[s]]=e[s]);for(;u--;)h[l++]=e[s++];return h}function Ti(e,t,n,i){for(var s=-1,o=e.length,a=-1,l=n.length,c=-1,u=t.length,h=yn(o-l,0),p=r(h+u),d=!i;++s<h;)p[s]=e[s];for(var m=s;++c<u;)p[m+c]=t[c];for(;++a<l;)(d||s<o)&&(p[m+n[a]]=e[s++]);return p}function Ai(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function xi(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),s?ir(n,l,c):er(n,l,c)}return n}function Di(e,t){return function(n,r){var i=Vo(n)?wt:nr,s=t?t():{};return i(n,e,os(r,2),s)}}function _i(e){return jr((function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&ys(n[0],n[1],a)&&(o=s<3?i:o,s=1),t=ke(t);++r<s;){var l=n[r];l&&e(t,l,r,o)}return t}))}function Mi(e,t){return function(n,r){if(null==n)return n;if(!zo(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=ke(n);(t?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Pi(e){return function(t,n,r){for(var i=-1,s=ke(t),o=r(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===n(s[l],l,s))break}return t}}function Ii(e){return function(t){var n=Qt(t=ba(t))?on(t):i,r=n?n[0]:t.charAt(0),s=n?bi(n,1).join(""):t.slice(1);return r[e]()+s}}function Oi(e){return function(t){return At(Qa(qa(t).replace(qe,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Li(e){return function(t,n,r){var s=ke(t);if(!zo(t)){var o=os(n,3);t=Pa(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,r);return a>-1?s[o?t[a]:a]:i}}function Bi(e){return es((function(t){var n=t.length,r=n,o=$n.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ae(s);if(o&&!l&&"wrapper"==is(a))var l=new $n([],!0)}for(r=l?r:n;++r<n;){var c=is(a=t[r]),u="wrapper"==c?rs(a):i;l=u&&bs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[is(u[0])].apply(l,u[3]):1==a.length&&bs(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Vo(r))return l.plant(r).value();for(var i=0,s=n?t[i].apply(this,e):r;++i<n;)s=t[i].call(this,s);return s}}))}function Fi(e,t,n,s,o,a,l,u,h,p){var d=t&c,m=1&t,f=2&t,g=24&t,y=512&t,w=f?i:Ni(e);return function i(){for(var c=arguments.length,b=r(c),v=c;v--;)b[v]=arguments[v];if(g)var C=ss(i),S=jt(b,C);if(s&&(b=Ri(b,s,o,g)),a&&(b=Ti(b,a,l,g)),c-=S,g&&c<p){var E=tn(b,C);return Vi(e,t,Fi,i.placeholder,n,b,E,u,h,p-c)}var k=m?n:this,R=f?k[e]:e;return c=b.length,u?b=Ts(b,u):y&&c>1&&b.reverse(),d&&h<c&&(b.length=h),this&&this!==st&&this instanceof i&&(R=w||Ni(R)),R.apply(k,b)}}function Hi(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,s){t(r,n(e),i,s)})),r}(n,e,t(r),{})}}function Ui(e,t){return function(n,r){var s;if(n===i&&r===i)return t;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),s=e(n,r)}return s}}function Zi(e){return es((function(t){return t=Rt(t,Wt(os())),jr((function(n){var r=this;return e(t,(function(e){return yt(e,r,n)}))}))}))}function $i(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,un(e/sn(t)));return Qt(t)?bi(on(r),0,e).join(""):r.slice(0,e)}function Wi(e){return function(t,n,s){return s&&"number"!=typeof s&&ys(t,n,s)&&(n=s=i),t=ma(t),n===i?(n=t,t=0):n=ma(n),function(e,t,n,i){for(var s=-1,o=yn(un((t-e)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=e,e+=n;return a}(t,n,s=s===i?t<n?1:-1:ma(s),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ya(t),n=ya(n)),e(t,n)}}function Vi(e,t,n,r,s,o,a,c,u,h){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var d=[e,t,s,p?o:i,p?a:i,p?i:o,p?i:a,c,u,h],m=n.apply(i,d);return bs(e)&&xs(m,d),m.placeholder=r,Ms(m,e,t)}function Gi(e){var t=Ee[e];return function(e,n){if(e=ya(e),(n=null==n?0:wn(fa(n),292))&&mn(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zi=Tn&&1/nn(new Tn([,-0]))[1]==u?function(e){return new Tn(e)}:cl;function ji(e){return function(t){var n=ps(t);return n==S?Jt(t):n==A?rn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,o,u,h,p,d){var m=2&t;if(!m&&"function"!=typeof e)throw new Ae(s);var f=o?o.length:0;if(f||(t&=-97,o=u=i),p=p===i?p:yn(fa(p),0),d=d===i?d:fa(d),f-=u?u.length:0,64&t){var g=o,y=u;o=u=i}var w=m?i:rs(e),b=[e,t,n,o,u,g,y,h,p,d];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,s=i<131,o=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ri(u,l,t[4]):l,e[4]=u?tn(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ti(u,l,t[6]):l,e[6]=u?tn(e[5],a):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,w),e=b[0],t=b[1],n=b[2],o=b[3],u=b[4],!(d=b[9]=b[9]===i?m?0:e.length:yn(b[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var s=Ni(e);return function o(){for(var a=arguments.length,l=r(a),c=a,u=ss(o);c--;)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:tn(l,u);return(a-=h.length)<n?Vi(e,t,Fi,o.placeholder,i,l,h,i,i,n-a):yt(this&&this!==st&&this instanceof o?s:e,this,l)}}(e,t,d):t!=l&&33!=t||u.length?Fi.apply(i,b):function(e,t,n,i){var s=1&t,o=Ni(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=i.length,h=r(u+l),p=this&&this!==st&&this instanceof t?o:e;++c<u;)h[c]=i[c];for(;l--;)h[c++]=arguments[++a];return yt(p,s?n:this,h)}}(e,t,n,o);else var v=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==st&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ms((w?Qr:xs)(v,b),e,t)}function Yi(e,t,n,r){return e===i||Zo(e,_e[n])&&!Ie.call(r,n)?t:e}function Xi(e,t,n,r,s,o){return ta(e)&&ta(t)&&(o.set(t,e),Ur(e,t,i,Xi,o),o.delete(t)),e}function Qi(e){return sa(e)?i:e}function Ji(e,t,n,r,s,o){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var p=-1,d=!0,m=2&n?new zn:i;for(o.set(e,t),o.set(t,e);++p<l;){var f=e[p],g=t[p];if(r)var y=a?r(g,f,p,t,e,o):r(f,g,p,e,t,o);if(y!==i){if(y)continue;d=!1;break}if(m){if(!Dt(t,(function(e,t){if(!Vt(m,t)&&(f===e||s(f,e,n,r,o)))return m.push(t)}))){d=!1;break}}else if(f!==g&&!s(f,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function es(e){return _s(ks(e,i,Vs),e+"")}function ts(e){return Er(e,Pa,us)}function ns(e){return Er(e,Ia,hs)}var rs=Dn?function(e){return Dn.get(e)}:cl;function is(e){for(var t=e.name+"",n=_n[t],r=Ie.call(_n,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}function ss(e){return(Ie.call(Hn,"placeholder")?Hn:e).placeholder}function os(){var e=Hn.iteratee||sl;return e=e===sl?Or:e,arguments.length?e(arguments[0],arguments[1]):e}function as(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ls(e){for(var t=Pa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ss(i)]}return t}function cs(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ir(n)?n:i}var us=pn?function(e){return null==e?[]:(e=ke(e),St(pn(e),(function(t){return et.call(e,t)})))}:gl,hs=pn?function(e){for(var t=[];e;)Tt(t,us(e)),e=Ge(e);return t}:gl,ps=kr;function ds(e,t,n){for(var r=-1,i=(t=yi(t,e)).length,s=!1;++r<i;){var o=Bs(t[r]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&ea(i)&&gs(o,i)&&(Vo(e)||qo(e))}function ms(e){return"function"!=typeof e.constructor||Cs(e)?{}:Un(Ge(e))}function fs(e){return Vo(e)||qo(e)||!!(it&&e&&e[it])}function gs(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function ys(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?zo(n)&&gs(t,n.length):"string"==r&&t in n)&&Zo(n[t],e)}function ws(e,t){if(Vo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||J.test(e)||!Q.test(e)||null!=t&&e in ke(t)}function bs(e){var t=is(e),n=Hn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=rs(n);return!!r&&e===r[0]}(En&&ps(new En(new ArrayBuffer(1)))!=P||kn&&ps(new kn)!=S||Rn&&ps(Rn.resolve())!=R||Tn&&ps(new Tn)!=A||An&&ps(new An)!=_)&&(ps=function(e){var t=kr(e),n=t==k?e.constructor:i,r=n?Fs(n):"";if(r)switch(r){case Mn:return P;case Pn:return S;case In:return R;case On:return A;case Nn:return _}return t});var vs=Me?Qo:yl;function Cs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_e)}function Ss(e){return e==e&&!ta(e)}function Es(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in ke(n))}}function ks(e,t,n){return t=yn(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=yn(i.length-t,0),a=r(o);++s<o;)a[s]=i[t+s];s=-1;for(var l=r(t+1);++s<t;)l[s]=i[s];return l[t]=n(a),yt(e,this,l)}}function Rs(e,t){return t.length<2?e:Sr(e,ti(t,0,-1))}function Ts(e,t){for(var n=e.length,r=wn(t.length,n),s=Ai(e);r--;){var o=t[r];e[r]=gs(o,n)?s[o]:i}return e}function As(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xs=Ps(Qr),Ds=Ft||function(e,t){return st.setTimeout(e,t)},_s=Ps(Jr);function Ms(e,t,n){var r=t+"";return _s(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(m,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(r),n)))}function Ps(e){var t=0,n=0;return function(){var r=bn(),s=16-(r-n);if(n=r,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Is(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n<t;){var o=Gr(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Os,Ns,Ls=(Os=No((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Ns.size&&Ns.clear(),e})),Ns=Os.cache,Os);function Bs(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fs(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hs(e){if(e instanceof Wn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Ai(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Us=jr((function(e,t){return jo(e)?ur(e,gr(t,1,jo,!0)):[]})),Zs=jr((function(e,t){var n=Ys(t);return jo(n)&&(n=i),jo(e)?ur(e,gr(t,1,jo,!0),os(n,2)):[]})),$s=jr((function(e,t){var n=Ys(t);return jo(n)&&(n=i),jo(e)?ur(e,gr(t,1,jo,!0),i,n):[]}));function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=yn(r+i,0)),Pt(e,os(t,3),i)}function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r-1;return n!==i&&(s=fa(n),s=n<0?yn(r+s,0):wn(s,r-1)),Pt(e,os(t,3),s,!0)}function Vs(e){return null!=e&&e.length?gr(e,1):[]}function Gs(e){return e&&e.length?e[0]:i}var zs=jr((function(e){var t=Rt(e,fi);return t.length&&t[0]===e[0]?xr(t):[]})),js=jr((function(e){var t=Ys(e),n=Rt(e,fi);return t===Ys(n)?t=i:n.pop(),n.length&&n[0]===e[0]?xr(n,os(t,2)):[]})),Ks=jr((function(e){var t=Ys(e),n=Rt(e,fi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?xr(n,i,t):[]}));function Ys(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xs=jr(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Js=es((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Vr(e,Rt(t,(function(e){return gs(e,n)?+e:e})).sort(ki)),r}));function eo(e){return null==e?e:Sn.call(e)}var to=jr((function(e){return li(gr(e,1,jo,!0))})),no=jr((function(e){var t=Ys(e);return jo(t)&&(t=i),li(gr(e,1,jo,!0),os(t,2))})),ro=jr((function(e){var t=Ys(e);return t="function"==typeof t?t:i,li(gr(e,1,jo,!0),i,t)}));function io(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(jo(e))return t=yn(e.length,t),!0})),Zt(t,(function(t){return Rt(e,Bt(t))}))}function so(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:Rt(n,(function(e){return yt(t,i,e)}))}var oo=jr((function(e,t){return jo(e)?ur(e,t):[]})),ao=jr((function(e){return di(St(e,jo))})),lo=jr((function(e){var t=Ys(e);return jo(t)&&(t=i),di(St(e,jo),os(t,2))})),co=jr((function(e){var t=Ys(e);return t="function"==typeof t?t:i,di(St(e,jo),i,t)})),uo=jr(io),ho=jr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,so(e,n)}));function po(e){var t=Hn(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var fo=es((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&gs(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mo,args:[s],thisArg:i}),new $n(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)})),go=Di((function(e,t,n){Ie.call(e,n)?++e[n]:ir(e,n,1)})),yo=Li(Ws),wo=Li(qs);function bo(e,t){return(Vo(e)?bt:hr)(e,os(t,3))}function vo(e,t){return(Vo(e)?vt:pr)(e,os(t,3))}var Co=Di((function(e,t,n){Ie.call(e,n)?e[n].push(t):ir(e,n,[t])})),So=jr((function(e,t,n){var i=-1,s="function"==typeof t,o=zo(e)?r(e.length):[];return hr(e,(function(e){o[++i]=s?yt(t,e,n):Dr(e,t,n)})),o})),Eo=Di((function(e,t,n){ir(e,n,t)}));function ko(e,t){return(Vo(e)?Rt:Br)(e,os(t,3))}var Ro=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),To=jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ys(e,t[0],t[1])?t=[]:n>2&&ys(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,gr(t,1),[])})),Ao=_t||function(){return st.Date.now()};function xo(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Do(e,t){var n;if("function"!=typeof t)throw new Ae(s);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var _o=jr((function(e,t,n){var r=1;if(n.length){var i=tn(n,ss(_o));r|=l}return Ki(e,r,t,n,i)})),Mo=jr((function(e,t,n){var r=3;if(n.length){var i=tn(n,ss(Mo));r|=l}return Ki(t,r,e,n,i)}));function Po(e,t,n){var r,o,a,l,c,u,h=0,p=!1,d=!1,m=!0;if("function"!=typeof e)throw new Ae(s);function f(t){var n=r,s=o;return r=o=i,h=t,l=e.apply(s,n)}function g(e){return h=e,c=Ds(w,t),p?f(e):l}function y(e){var n=e-u;return u===i||n>=t||n<0||d&&e-h>=a}function w(){var e=Ao();if(y(e))return b(e);c=Ds(w,function(e){var n=t-(e-u);return d?wn(n,a-(e-h)):n}(e))}function b(e){return c=i,m&&r?f(e):(r=o=i,l)}function v(){var e=Ao(),n=y(e);if(r=arguments,o=this,u=e,n){if(c===i)return g(u);if(d)return vi(c),c=Ds(w,t),f(u)}return c===i&&(c=Ds(w,t)),l}return t=ya(t)||0,ta(n)&&(p=!!n.leading,a=(d="maxWait"in n)?yn(ya(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m),v.cancel=function(){c!==i&&vi(c),h=0,r=u=o=c=i},v.flush=function(){return c===i?l:b(Ao())},v}var Io=jr((function(e,t){return cr(e,1,t)})),Oo=jr((function(e,t,n){return cr(e,ya(t)||0,n)}));function No(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(No.Cache||Gn),n}function Lo(e){if("function"!=typeof e)throw new Ae(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}No.Cache=Gn;var Bo=wi((function(e,t){var n=(t=1==t.length&&Vo(t[0])?Rt(t[0],Wt(os())):Rt(gr(t,1),Wt(os()))).length;return jr((function(r){for(var i=-1,s=wn(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return yt(e,this,r)}))})),Fo=jr((function(e,t){var n=tn(t,ss(Fo));return Ki(e,l,i,t,n)})),Ho=jr((function(e,t){var n=tn(t,ss(Ho));return Ki(e,64,i,t,n)})),Uo=es((function(e,t){return Ki(e,256,i,i,i,t)}));function Zo(e,t){return e===t||e!=e&&t!=t}var $o=qi(Rr),Wo=qi((function(e,t){return e>=t})),qo=_r(function(){return arguments}())?_r:function(e){return na(e)&&Ie.call(e,"callee")&&!et.call(e,"callee")},Vo=r.isArray,Go=ht?Wt(ht):function(e){return na(e)&&kr(e)==M};function zo(e){return null!=e&&ea(e.length)&&!Qo(e)}function jo(e){return na(e)&&zo(e)}var Ko=dn||yl,Yo=pt?Wt(pt):function(e){return na(e)&&kr(e)==w};function Xo(e){if(!na(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sa(e)}function Qo(e){if(!ta(e))return!1;var t=kr(e);return t==v||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jo(e){return"number"==typeof e&&e==fa(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=dt?Wt(dt):function(e){return na(e)&&ps(e)==S};function ia(e){return"number"==typeof e||na(e)&&kr(e)==E}function sa(e){if(!na(e)||kr(e)!=k)return!1;var t=Ge(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Be}var oa=mt?Wt(mt):function(e){return na(e)&&kr(e)==T},aa=ft?Wt(ft):function(e){return na(e)&&ps(e)==A};function la(e){return"string"==typeof e||!Vo(e)&&na(e)&&kr(e)==x}function ca(e){return"symbol"==typeof e||na(e)&&kr(e)==D}var ua=gt?Wt(gt):function(e){return na(e)&&ea(e.length)&&!!Qe[kr(e)]},ha=qi(Lr),pa=qi((function(e,t){return e<=t}));function da(e){if(!e)return[];if(zo(e))return la(e)?on(e):Ai(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=ps(e);return(t==S?Jt:t==A?nn:Za)(e)}function ma(e){return e?(e=ya(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=ma(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?or(fa(e),0,d):0}function ya(e){if("number"==typeof e)return e;if(ca(e))return p;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=me.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function wa(e){return xi(e,Ia(e))}function ba(e){return null==e?"":ai(e)}var va=_i((function(e,t){if(Cs(t)||zo(t))xi(t,Pa(t),e);else for(var n in t)Ie.call(t,n)&&er(e,n,t[n])})),Ca=_i((function(e,t){xi(t,Ia(t),e)})),Sa=_i((function(e,t,n,r){xi(t,Ia(t),e,r)})),Ea=_i((function(e,t,n,r){xi(t,Pa(t),e,r)})),ka=es(sr),Ra=jr((function(e,t){e=ke(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&ys(t[0],t[1],s)&&(r=1);++n<r;)for(var o=t[n],a=Ia(o),l=-1,c=a.length;++l<c;){var u=a[l],h=e[u];(h===i||Zo(h,_e[u])&&!Ie.call(e,u))&&(e[u]=o[u])}return e})),Ta=jr((function(e){return e.push(i,Xi),yt(Na,i,e)}));function Aa(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function xa(e,t){return null!=e&&ds(e,t,Ar)}var Da=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),tl(il)),_a=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),os),Ma=jr(Dr);function Pa(e){return zo(e)?Kn(e):Nr(e)}function Ia(e){return zo(e)?Kn(e,!0):function(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Cs(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Oa=_i((function(e,t,n){Ur(e,t,n)})),Na=_i((function(e,t,n,r){Ur(e,t,n,r)})),La=es((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=yi(t,e),r||(r=t.length>1),t})),xi(e,ns(e),n),r&&(n=ar(n,7,Qi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ba=es((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return xa(e,n)}))}(e,t)}));function Fa(e,t){if(null==e)return{};var n=Rt(ns(e),(function(e){return[e]}));return t=os(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Ha=ji(Pa),Ua=ji(Ia);function Za(e){return null==e?[]:qt(e,Pa(e))}var $a=Oi((function(e,t,n){return t=t.toLowerCase(),e+(n?Wa(t):t)}));function Wa(e){return Xa(ba(e).toLowerCase())}function qa(e){return(e=ba(e))&&e.replace(we,Kt).replace(Ve,"")}var Va=Oi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ga=Oi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),za=Ii("toLowerCase"),ja=Oi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ka=Oi((function(e,t,n){return e+(n?" ":"")+Xa(t)})),Ya=Oi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xa=Ii("toUpperCase");function Qa(e,t,n){return e=ba(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ja=jr((function(e,t){try{return yt(e,i,t)}catch(e){return Xo(e)?e:new Ce(e)}})),el=es((function(e,t){return bt(t,(function(t){t=Bs(t),ir(e,t,_o(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Bi(),rl=Bi(!0);function il(e){return e}function sl(e){return Or("function"==typeof e?e:ar(e,1))}var ol=jr((function(e,t){return function(n){return Dr(n,e,t)}})),al=jr((function(e,t){return function(n){return Dr(e,n,t)}}));function ll(e,t,n){var r=Pa(t),i=Cr(t,r);null!=n||ta(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,Pa(t)));var s=!(ta(n)&&"chain"in n&&!n.chain),o=Qo(e);return bt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),i=n.__actions__=Ai(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function cl(){}var ul=Zi(Rt),hl=Zi(Ct),pl=Zi(Dt);function dl(e){return ws(e)?Bt(Bs(e)):function(e){return function(t){return Sr(t,e)}}(e)}var ml=Wi(),fl=Wi(!0);function gl(){return[]}function yl(){return!1}var wl,bl=Ui((function(e,t){return e+t}),0),vl=Gi("ceil"),Cl=Ui((function(e,t){return e/t}),1),Sl=Gi("floor"),El=Ui((function(e,t){return e*t}),1),kl=Gi("round"),Rl=Ui((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Ae(s);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=xo,Hn.assign=va,Hn.assignIn=Ca,Hn.assignInWith=Sa,Hn.assignWith=Ea,Hn.at=ka,Hn.before=Do,Hn.bind=_o,Hn.bindAll=el,Hn.bindKey=Mo,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vo(e)?e:[e]},Hn.chain=po,Hn.chunk=function(e,t,n){t=(n?ys(e,t,n):t===i)?1:yn(fa(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,l=r(un(s/t));o<s;)l[a++]=ti(e,o,o+=t);return l},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Tt(Vo(n)?Ai(n):[n],gr(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=os();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ae(s);return[n(e[0]),e[1]]})):[],jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(yt(i[0],this,n))return yt(i[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=Pa(e);return function(n){return lr(n,e,t)}}(ar(e,1))},Hn.constant=tl,Hn.countBy=go,Hn.create=function(e,t){var n=Un(e);return null==t?n:rr(n,t)},Hn.curry=function e(t,n,r){var s=Ki(t,8,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},Hn.curryRight=function e(t,n,r){var s=Ki(t,16,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},Hn.debounce=Po,Hn.defaults=Ra,Hn.defaultsDeep=Ta,Hn.defer=Io,Hn.delay=Oo,Hn.difference=Us,Hn.differenceBy=Zs,Hn.differenceWith=$s,Hn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:fa(t))<0?0:t,r):[]},Hn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:fa(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?hi(e,os(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?hi(e,os(t,3),!0):[]},Hn.fill=function(e,t,n,r){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&ys(e,t,n)&&(n=0,r=s),function(e,t,n,r){var s=e.length;for((n=fa(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:fa(r))<0&&(r+=s),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Hn.filter=function(e,t){return(Vo(e)?St:fr)(e,os(t,3))},Hn.flatMap=function(e,t){return gr(ko(e,t),1)},Hn.flatMapDeep=function(e,t){return gr(ko(e,t),u)},Hn.flatMapDepth=function(e,t,n){return n=n===i?1:fa(n),gr(ko(e,t),n)},Hn.flatten=Vs,Hn.flattenDeep=function(e){return null!=e&&e.length?gr(e,u):[]},Hn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:fa(t)):[]},Hn.flip=function(e){return Ki(e,512)},Hn.flow=nl,Hn.flowRight=rl,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Hn.functions=function(e){return null==e?[]:Cr(e,Pa(e))},Hn.functionsIn=function(e){return null==e?[]:Cr(e,Ia(e))},Hn.groupBy=Co,Hn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Hn.intersection=zs,Hn.intersectionBy=js,Hn.intersectionWith=Ks,Hn.invert=Da,Hn.invertBy=_a,Hn.invokeMap=So,Hn.iteratee=sl,Hn.keyBy=Eo,Hn.keys=Pa,Hn.keysIn=Ia,Hn.map=ko,Hn.mapKeys=function(e,t){var n={};return t=os(t,3),br(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Hn.mapValues=function(e,t){var n={};return t=os(t,3),br(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Hn.matches=function(e){return Fr(ar(e,1))},Hn.matchesProperty=function(e,t){return Hr(e,ar(t,1))},Hn.memoize=No,Hn.merge=Oa,Hn.mergeWith=Na,Hn.method=ol,Hn.methodOf=al,Hn.mixin=ll,Hn.negate=Lo,Hn.nthArg=function(e){return e=fa(e),jr((function(t){return Zr(t,e)}))},Hn.omit=La,Hn.omitBy=function(e,t){return Fa(e,Lo(os(t)))},Hn.once=function(e){return Do(2,e)},Hn.orderBy=function(e,t,n,r){return null==e?[]:(Vo(t)||(t=null==t?[]:[t]),Vo(n=r?i:n)||(n=null==n?[]:[n]),$r(e,t,n))},Hn.over=ul,Hn.overArgs=Bo,Hn.overEvery=hl,Hn.overSome=pl,Hn.partial=Fo,Hn.partialRight=Ho,Hn.partition=Ro,Hn.pick=Ba,Hn.pickBy=Fa,Hn.property=dl,Hn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},Hn.pull=Xs,Hn.pullAll=Qs,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,os(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Hn.pullAt=Js,Hn.range=ml,Hn.rangeRight=fl,Hn.rearg=Uo,Hn.reject=function(e,t){return(Vo(e)?St:fr)(e,Lo(os(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],s=e.length;for(t=os(t,3);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Vr(e,i),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Ae(s);return jr(e,t=t===i?t:fa(t))},Hn.reverse=eo,Hn.sampleSize=function(e,t,n){return t=(n?ys(e,t,n):t===i)?1:fa(t),(Vo(e)?Xn:Yr)(e,t)},Hn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Hn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},Hn.shuffle=function(e){return(Vo(e)?Qn:ei)(e)},Hn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ys(e,t,n)?(t=0,n=r):(t=null==t?0:fa(t),n=n===i?r:fa(n)),ti(e,t,n)):[]},Hn.sortBy=To,Hn.sortedUniq=function(e){return e&&e.length?si(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?si(e,os(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&ys(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=ai(t))&&Qt(e)?bi(on(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Ae(s);return t=null==t?0:yn(fa(t),0),jr((function(n){var r=n[t],i=bi(n,0,t);return r&&Tt(i,r),yt(e,this,i)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:fa(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:fa(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?hi(e,os(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?hi(e,os(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(s);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Po(e,t,{leading:r,maxWait:t,trailing:i})},Hn.thru=mo,Hn.toArray=da,Hn.toPairs=Ha,Hn.toPairsIn=Ua,Hn.toPath=function(e){return Vo(e)?Rt(e,Bs):ca(e)?[e]:Ai(Ls(ba(e)))},Hn.toPlainObject=wa,Hn.transform=function(e,t,n){var r=Vo(e),i=r||Ko(e)||ua(e);if(t=os(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:ta(e)&&Qo(s)?Un(Ge(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Hn.unary=function(e){return xo(e,1)},Hn.union=to,Hn.unionBy=no,Hn.unionWith=ro,Hn.uniq=function(e){return e&&e.length?li(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?li(e,os(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},Hn.unset=function(e,t){return null==e||ci(e,t)},Hn.unzip=io,Hn.unzipWith=so,Hn.update=function(e,t,n){return null==e?e:ui(e,t,gi(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,gi(n),r)},Hn.values=Za,Hn.valuesIn=function(e){return null==e?[]:qt(e,Ia(e))},Hn.without=oo,Hn.words=Qa,Hn.wrap=function(e,t){return Fo(gi(t),e)},Hn.xor=ao,Hn.xorBy=lo,Hn.xorWith=co,Hn.zip=uo,Hn.zipObject=function(e,t){return mi(e||[],t||[],er)},Hn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Xr)},Hn.zipWith=ho,Hn.entries=Ha,Hn.entriesIn=Ua,Hn.extend=Ca,Hn.extendWith=Sa,ll(Hn,Hn),Hn.add=bl,Hn.attempt=Ja,Hn.camelCase=$a,Hn.capitalize=Wa,Hn.ceil=vl,Hn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ya(n))==n?n:0),t!==i&&(t=(t=ya(t))==t?t:0),or(ya(e),t,n)},Hn.clone=function(e){return ar(e,4)},Hn.cloneDeep=function(e){return ar(e,5)},Hn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Hn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Hn.conformsTo=function(e,t){return null==t||lr(e,t,Pa(t))},Hn.deburr=qa,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=Cl,Hn.endsWith=function(e,t,n){e=ba(e),t=ai(t);var r=e.length,s=n=n===i?r:or(fa(n),0,r);return(n-=t.length)>=0&&e.slice(n,s)==t},Hn.eq=Zo,Hn.escape=function(e){return(e=ba(e))&&j.test(e)?e.replace(G,Yt):e},Hn.escapeRegExp=function(e){return(e=ba(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Hn.every=function(e,t,n){var r=Vo(e)?Ct:dr;return n&&ys(e,t,n)&&(t=i),r(e,os(t,3))},Hn.find=yo,Hn.findIndex=Ws,Hn.findKey=function(e,t){return Mt(e,os(t,3),br)},Hn.findLast=wo,Hn.findLastIndex=qs,Hn.findLastKey=function(e,t){return Mt(e,os(t,3),vr)},Hn.floor=Sl,Hn.forEach=bo,Hn.forEachRight=vo,Hn.forIn=function(e,t){return null==e?e:yr(e,os(t,3),Ia)},Hn.forInRight=function(e,t){return null==e?e:wr(e,os(t,3),Ia)},Hn.forOwn=function(e,t){return e&&br(e,os(t,3))},Hn.forOwnRight=function(e,t){return e&&vr(e,os(t,3))},Hn.get=Aa,Hn.gt=$o,Hn.gte=Wo,Hn.has=function(e,t){return null!=e&&ds(e,t,Tr)},Hn.hasIn=xa,Hn.head=Gs,Hn.identity=il,Hn.includes=function(e,t,n,r){e=zo(e)?e:Za(e),n=n&&!r?fa(n):0;var i=e.length;return n<0&&(n=yn(i+n,0)),la(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&It(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=yn(r+i,0)),It(e,t,i)},Hn.inRange=function(e,t,n){return t=ma(t),n===i?(n=t,t=0):n=ma(n),function(e,t,n){return e>=wn(t,n)&&e<yn(t,n)}(e=ya(e),t,n)},Hn.invoke=Ma,Hn.isArguments=qo,Hn.isArray=Vo,Hn.isArrayBuffer=Go,Hn.isArrayLike=zo,Hn.isArrayLikeObject=jo,Hn.isBoolean=function(e){return!0===e||!1===e||na(e)&&kr(e)==y},Hn.isBuffer=Ko,Hn.isDate=Yo,Hn.isElement=function(e){return na(e)&&1===e.nodeType&&!sa(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(zo(e)&&(Vo(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||ua(e)||qo(e)))return!e.length;var t=ps(e);if(t==S||t==A)return!e.size;if(Cs(e))return!Nr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Mr(e,t)},Hn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Mr(e,t,i,n):!!r},Hn.isError=Xo,Hn.isFinite=function(e){return"number"==typeof e&&mn(e)},Hn.isFunction=Qo,Hn.isInteger=Jo,Hn.isLength=ea,Hn.isMap=ra,Hn.isMatch=function(e,t){return e===t||Pr(e,t,ls(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Pr(e,t,ls(t),n)},Hn.isNaN=function(e){return ia(e)&&e!=+e},Hn.isNative=function(e){if(vs(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=ia,Hn.isObject=ta,Hn.isObjectLike=na,Hn.isPlainObject=sa,Hn.isRegExp=oa,Hn.isSafeInteger=function(e){return Jo(e)&&e>=-9007199254740991&&e<=h},Hn.isSet=aa,Hn.isString=la,Hn.isSymbol=ca,Hn.isTypedArray=ua,Hn.isUndefined=function(e){return e===i},Hn.isWeakMap=function(e){return na(e)&&ps(e)==_},Hn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==kr(e)},Hn.join=function(e,t){return null==e?"":fn.call(e,t)},Hn.kebabCase=Va,Hn.last=Ys,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=fa(n))<0?yn(r+s,0):wn(s,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,s):Pt(e,Nt,s,!0)},Hn.lowerCase=Ga,Hn.lowerFirst=za,Hn.lt=ha,Hn.lte=pa,Hn.max=function(e){return e&&e.length?mr(e,il,Rr):i},Hn.maxBy=function(e,t){return e&&e.length?mr(e,os(t,2),Rr):i},Hn.mean=function(e){return Lt(e,il)},Hn.meanBy=function(e,t){return Lt(e,os(t,2))},Hn.min=function(e){return e&&e.length?mr(e,il,Lr):i},Hn.minBy=function(e,t){return e&&e.length?mr(e,os(t,2),Lr):i},Hn.stubArray=gl,Hn.stubFalse=yl,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=El,Hn.nth=function(e,t){return e&&e.length?Zr(e,fa(t)):i},Hn.noConflict=function(){return st._===this&&(st._=Fe),this},Hn.noop=cl,Hn.now=Ao,Hn.pad=function(e,t,n){e=ba(e);var r=(t=fa(t))?sn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return $i(hn(i),n)+e+$i(un(i),n)},Hn.padEnd=function(e,t,n){e=ba(e);var r=(t=fa(t))?sn(e):0;return t&&r<t?e+$i(t-r,n):e},Hn.padStart=function(e,t,n){e=ba(e);var r=(t=fa(t))?sn(e):0;return t&&r<t?$i(t-r,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),vn(ba(e).replace(re,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ys(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ma(e),t===i?(t=e,e=0):t=ma(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var s=Cn();return wn(e+s*(t-e+tt("1e-"+((s+"").length-1))),t)}return Gr(e,t)},Hn.reduce=function(e,t,n){var r=Vo(e)?At:Ht,i=arguments.length<3;return r(e,os(t,4),n,i,hr)},Hn.reduceRight=function(e,t,n){var r=Vo(e)?xt:Ht,i=arguments.length<3;return r(e,os(t,4),n,i,pr)},Hn.repeat=function(e,t,n){return t=(n?ys(e,t,n):t===i)?1:fa(t),zr(ba(e),t)},Hn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,s=(t=yi(t,e)).length;for(s||(s=1,e=i);++r<s;){var o=null==e?i:e[Bs(t[r])];o===i&&(r=s,o=n),e=Qo(o)?o.call(e):o}return e},Hn.round=kl,Hn.runInContext=e,Hn.sample=function(e){return(Vo(e)?Yn:Kr)(e)},Hn.size=function(e){if(null==e)return 0;if(zo(e))return la(e)?sn(e):e.length;var t=ps(e);return t==S||t==A?e.size:Nr(e).length},Hn.snakeCase=ja,Hn.some=function(e,t,n){var r=Vo(e)?Dt:ni;return n&&ys(e,t,n)&&(t=i),r(e,os(t,3))},Hn.sortedIndex=function(e,t){return ri(e,t)},Hn.sortedIndexBy=function(e,t,n){return ii(e,t,os(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Zo(e[r],t))return r}return-1},Hn.sortedLastIndex=function(e,t){return ri(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return ii(e,t,os(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Zo(e[n],t))return n}return-1},Hn.startCase=Ka,Hn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:or(fa(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Hn.subtract=Rl,Hn.sum=function(e){return e&&e.length?Ut(e,il):0},Hn.sumBy=function(e,t){return e&&e.length?Ut(e,os(t,2)):0},Hn.template=function(e,t,n){var r=Hn.templateSettings;n&&ys(e,t,n)&&(t=i),e=ba(e),t=Sa({},t,r,Yi);var s,o,a=Sa({},t.imports,r.imports,Yi),l=Pa(a),c=qt(a,l),u=0,h=t.interpolate||be,p="__p += '",d=Re((t.escape||be).source+"|"+h.source+"|"+(h===X?he:be).source+"|"+(t.evaluate||be).source+"|$","g"),m="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(d,(function(t,n,r,i,a,l){return r||(r=i),p+=e.slice(u,l).replace(ve,Xt),n&&(s=!0,p+="' +\n__e("+n+") +\n'"),a&&(o=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var f=Ie.call(t,"variable")&&t.variable;if(f){if(ce.test(f))throw new Ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace($,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Ja((function(){return Se(l,m+"return "+p).apply(i,c)}));if(g.source=p,Xo(g))throw g;return g},Hn.times=function(e,t){if((e=fa(e))<1||e>h)return[];var n=d,r=wn(e,d);t=os(t),e-=d;for(var i=Zt(r,t);++n<e;)t(n);return i},Hn.toFinite=ma,Hn.toInteger=fa,Hn.toLength=ga,Hn.toLower=function(e){return ba(e).toLowerCase()},Hn.toNumber=ya,Hn.toSafeInteger=function(e){return e?or(fa(e),-9007199254740991,h):0===e?e:0},Hn.toString=ba,Hn.toUpper=function(e){return ba(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=ba(e))&&(n||t===i))return $t(e);if(!e||!(t=ai(t)))return e;var r=on(e),s=on(t);return bi(r,Gt(r,s),zt(r,s)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.slice(0,an(e)+1);if(!e||!(t=ai(t)))return e;var r=on(e);return bi(r,0,zt(r,on(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=on(e);return bi(r,Gt(r,on(t))).join("")},Hn.truncate=function(e,t){var n=30,r="...";if(ta(t)){var s="separator"in t?t.separator:s;n="length"in t?fa(t.length):n,r="omission"in t?ai(t.omission):r}var o=(e=ba(e)).length;if(Qt(e)){var a=on(e);o=a.length}if(n>=o)return e;var l=n-sn(r);if(l<1)return r;var c=a?bi(a,0,l).join(""):e.slice(0,l);if(s===i)return c+r;if(a&&(l+=c.length-l),oa(s)){if(e.slice(l).search(s)){var u,h=c;for(s.global||(s=Re(s.source,ba(pe.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var p=u.index;c=c.slice(0,p===i?l:p)}}else if(e.indexOf(ai(s),l)!=l){var d=c.lastIndexOf(s);d>-1&&(c=c.slice(0,d))}return c+r},Hn.unescape=function(e){return(e=ba(e))&&z.test(e)?e.replace(V,ln):e},Hn.uniqueId=function(e){var t=++Oe;return ba(e)+t},Hn.upperCase=Ya,Hn.upperFirst=Xa,Hn.each=bo,Hn.eachRight=vo,Hn.first=Gs,ll(Hn,(wl={},br(Hn,(function(e,t){Ie.call(Hn.prototype,t)||(wl[t]=e)})),wl),{chain:!1}),Hn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),bt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:yn(fa(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:os(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(il)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=jr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Dr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Lo(os(e)))},Wn.prototype.slice=function(e,t){e=fa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(d)},br(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=Hn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);s&&(Hn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Vo(t),h=function(e){var t=s.apply(Hn,Tt([e],a));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,d=!!this.__actions__.length,m=o&&!p,f=l&&!d;if(!o&&u){t=f?t:new Wn(this);var g=e.apply(t,a);return g.__actions__.push({func:mo,args:[h],thisArg:i}),new $n(g,p)}return m&&f?e.apply(this,a):(g=this.thru(h),m?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Vo(i)?i:[],e)}return this[n]((function(n){return t.apply(Vo(n)?n:[],e)}))}})),br(Wn.prototype,(function(e,t){var n=Hn[t];if(n){var r=n.name+"";Ie.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[Fi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vo(e),r=t<0,i=n?e.length:0,s=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=wn(t,e+o);break;case"takeRight":e=yn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,c=r?a:o-1,u=this.__iteratees__,h=u.length,p=0,d=wn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return pi(e,this.__actions__);var m=[];e:for(;l--&&p<d;){for(var f=-1,g=e[c+=t];++f<h;){var y=u[f],w=y.iteratee,b=y.type,v=w(g);if(2==b)g=v;else if(!v){if(1==b)continue e;break e}}m[p++]=g}return m},Hn.prototype.at=fo,Hn.prototype.chain=function(){return po(this)},Hn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Zn;){var r=Hs(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:mo,args:[eo],thisArg:i}),new $n(t,this.__chain__)}return this.thru(eo)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,ot&&(Hn.prototype[ot]=function(){return this}),Hn}();st._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},8743:(e,t,n)=>{var r=n(3291);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},5478:e=>{e.exports=function(){}},9344:(e,t,n)=>{var r=n(1794);e.exports=function(){return r.Date.now()}},651:(e,t,n)=>{var r=n(3824),i=n(4432),s=n(4481),o=n(218);e.exports=function(e){return s(e)?r(o(e)):i(e)}},8172:e=>{e.exports=function(){return[]}},3989:e=>{e.exports=function(){return!1}},4258:(e,t,n)=>{var r=n(3029),i=n(6751),s=n(6307),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},2159:(e,t,n)=>{var r=n(364)(n(5351));e.exports=r},9948:(e,t,n)=>{var r=n(8849);e.exports=function(e){return null==e?"":r(e)}},8033:(e,t,n)=>{var r=n(2423);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},7952:(e,t,n)=>{var r=n(9406),i=n(5329),s=n(8541),o=n(2893),a=i((function(e){return s(r(e,o))}));e.exports=a},3229:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,a)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(3766));function o(e,t="maxAge"){let n,i,o;const a=()=>r(this,void 0,void 0,(function*(){if(void 0!==n)return;const a=a=>r(this,void 0,void 0,(function*(){o=s.default();const r=a[1][t]-Date.now();return r<=0?(e.delete(a[0]),void o.resolve()):(n=a[0],i=setTimeout((()=>{e.delete(a[0]),o&&o.resolve()}),r),"function"==typeof i.unref&&i.unref(),o.promise)}));try{for(const t of e)yield a(t)}catch(e){}n=void 0})),l=e.set.bind(e);return e.set=(t,r)=>{e.has(t)&&e.delete(t);const s=l(t,r);return n&&n===t&&(n=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==o&&(o.reject(void 0),o=void 0)),a(),s},a(),e}t.default=o,e.exports=o,e.exports.default=o},2878:(e,t,n)=>{"use strict";const r=n(1689),i=n(3264),s=n(3229),o=new WeakMap,a=(...e)=>{if(0===e.length)return"__defaultKey";if(1===e.length){const[t]=e;if(null==t||"function"!=typeof t&&"object"!=typeof t)return t}return JSON.stringify(e)},l=(e,t)=>{"number"==typeof(t=Object.assign({cacheKey:a,cache:new Map,cachePromiseRejection:!1},t)).maxAge&&s(t.cache);const{cache:n}=t;t.maxAge=t.maxAge||0;const l=function(...r){const s=t.cacheKey(...r);if(n.has(s))return n.get(s).data;const o=e.call(this,...r);return((e,r)=>{n.set(e,{data:r,maxAge:Date.now()+t.maxAge})})(s,o),i(o)&&!1===t.cachePromiseRejection&&o.catch((()=>n.delete(s))),o};try{r(l,e)}catch(e){}return o.set(l,t.cache),l};e.exports=l,e.exports.default=l,e.exports.clear=e=>{const t=o.get(e);t&&"function"==typeof t.clear&&t.clear()}},1689:e=>{"use strict";const t=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};e.exports=t,e.exports.default=t},5419:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},1829:(e,t,n)=>{"use strict";const r=n(1017),i=n(5620);e.exports=e=>{let t;e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let n=r.resolve(e.cwd);const s=[];for(;t!==n;)s.push(r.join(n,"node_modules/.bin")),t=n,n=r.resolve(n,"..");return s.push(r.dirname(process.execPath)),s.concat(e.path).join(r.delimiter)},e.exports.env=t=>{t=Object.assign({env:process.env},t);const n=Object.assign({},t.env),r=i({env:n});return t.path=n[r],n[r]=e.exports(t),n}},109:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,s){for(var o,a,l=i(e),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))n.call(o,u)&&(l[u]=o[u]);if(t){a=t(o);for(var h=0;h<a.length;h++)r.call(o,a[h])&&(l[a[h]]=o[a[h]])}}return l}},3417:(e,t,n)=>{var r=n(4934);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(s),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})}))},3766:e=>{"use strict";e.exports=()=>{const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}},8911:e=>{"use strict";e.exports=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))))},3264:e=>{"use strict";const t=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch;e.exports=t,e.exports.default=t},9093:(e,t,n)=>{"use strict";const r=n(9867),i=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=[];let n=0;const i=()=>{n--,t.length>0&&t.shift()()},s=(e,t,...s)=>{n++;const o=r(e,...s);t(o),o.then(i,i)},o=(r,...i)=>new Promise((o=>((r,i,...o)=>{n<e?s(r,i,...o):t.push(s.bind(null,r,i,...o))})(r,o,...i)));return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length}}),o};e.exports=i,e.exports.default=i},9867:e=>{"use strict";const t=(e,...t)=>new Promise((n=>{n(e(...t))}));e.exports=t,e.exports.default=t},5620:e=>{"use strict";e.exports=e=>{const t=(e=e||{}).env||process.env;return"win32"!==(e.platform||"linux")?"PATH":Object.keys(t).find((e=>"PATH"===e.toUpperCase()))||"Path"}},4051:(e,t,n)=>{"use strict";var r=n(8464);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},3470:(e,t,n)=>{e.exports=n(4051)()},8464:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3021:(e,t,n)=>{var r=n(3417),i=n(3558),s=n(7147),o=function(){},a=/^v?\.0/.test(process.version),l=function(e){return"function"==typeof e},c=function(e,t,n,c){c=r(c);var u=!1;e.on("close",(function(){u=!0})),i(e,{readable:t,writable:n},(function(e){if(e)return c(e);u=!0,c()}));var h=!1;return function(t){if(!u&&!h)return h=!0,function(e){return!!a&&!!s&&(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&l(e.close)}(e)?e.close(o):function(e){return e.setHeader&&l(e.abort)}(e)?e.abort():l(e.destroy)?e.destroy():void c(t||new Error("stream was destroyed"))}},u=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=l(t[t.length-1]||o)&&t.pop()||o;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(i,s){var o=s<t.length-1;return c(i,o,s>0,(function(t){e||(e=t),t&&r.forEach(u),o||(r.forEach(u),n(e))}))}));return t.reduce(h)}},4333:e=>{"use strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return this._size+e}}e.exports=t,e.exports.default=t},6215:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(6826),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return 0===e?t:e===r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,s,o,a=n-t;return o=1.70158,0===e?t:1==(e/=r)?t+a:((s=0)||(s=.3*r),(i=a)<Math.abs(a)?(i=a,o=s/4):o=s/(2*Math.PI)*Math.asin(a/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/s)+t)},easeOutElastic:function(e,t,n,r){var i,s,o,a=n-t;return o=1.70158,0===e?t:1==(e/=r)?t+a:((s=0)||(s=.3*r),(i=a)<Math.abs(a)?(i=a,o=s/4):o=s/(2*Math.PI)*Math.asin(a/i),i*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/s)+a+t)},easeInOutElastic:function(e,t,n,r){var i,s,o,a=n-t;return o=1.70158,0===e?t:2==(e/=r/2)?t+a:((s=0)||(s=r*(.3*1.5)),(i=a)<Math.abs(a)?(i=a,o=s/4):o=s/(2*Math.PI)*Math.asin(a/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/s)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/s)*.5+a+t)},easeInBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var s=n-t;return void 0===i&&(i=1.70158),(e/=r/2)<1?s/2*(e*e*((1+(i*=1.525))*e-i))+t:s/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var s=n-t;return s-r.easeOutBounce(i-e,0,s,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var s=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,s,i)+t:.5*r.easeOutBounce(2*e-i,0,s,i)+.5*s+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t),n.d(t,"ReactConfetti",(function(){return B}));var r,i,s=n(0),o=n.n(s),a=n(1),l=n.n(a);function c(e,t){return e+Math.random()*(t-e)}function u(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)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(i||(i={}));var p=function(){function e(t,n,r,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"context",void 0),h(this,"radius",void 0),h(this,"x",void 0),h(this,"y",void 0),h(this,"w",void 0),h(this,"h",void 0),h(this,"vx",void 0),h(this,"vy",void 0),h(this,"shape",void 0),h(this,"angle",void 0),h(this,"angularSpin",void 0),h(this,"color",void 0),h(this,"rotateY",void 0),h(this,"rotationDirection",void 0),h(this,"getOptions",void 0),this.getOptions=n;var o=this.getOptions(),a=o.colors,l=o.initialVelocityX,u=o.initialVelocityY;this.context=t,this.x=r,this.y=s,this.w=c(5,20),this.h=c(5,20),this.radius=c(5,10),this.vx="number"==typeof l?c(-l,l):c(l.min,l.max),this.vy="number"==typeof u?c(-u,0):c(u.min,u.max),this.shape=(0,2,Math.floor(0+3*Math.random())),this.angle=c(0,360)*Math.PI/180,this.angularSpin=c(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=c(0,1),this.rotationDirection=c(0,1)?i.Positive:i.Negative}var t,n;return t=e,(n=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,s=e.friction,o=e.opacity,a=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=s,this.vy*=s,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var l=.1*this.rotationDirection;if(this.rotateY+=l,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=o,this.context.lineCap="round",this.context.lineWidth=2,a&&"function"==typeof a)a.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&u(t.prototype,n),e}();function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"canvas",void 0),d(this,"context",void 0),d(this,"getOptions",void 0),d(this,"x",0),d(this,"y",0),d(this,"w",0),d(this,"h",0),d(this,"lastNumberOfPieces",0),d(this,"tweenInitTime",Date.now()),d(this,"particles",[]),d(this,"particlesGenerated",0),d(this,"removeParticleAt",(function(e){r.particles.splice(e,1)})),d(this,"getParticle",(function(){var e=c(r.x,r.w+r.x),t=c(r.y,r.h+r.y);return new p(r.context,r.getOptions,e,t)})),d(this,"animate",(function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,s=r.getOptions(),o=s.run,a=s.recycle,l=s.numberOfPieces,c=s.debug,u=s.tweenFunction,h=s.tweenDuration;if(!o)return!1;var p=r.particles.length,d=a?p:n,m=Date.now();if(d<l){i!==l&&(r.tweenInitTime=m,r.lastNumberOfPieces=l);for(var f=r.tweenInitTime,g=u(m-f>h?h:Math.max(0,m-f),d,l,h),y=Math.round(g-d),w=0;w<y;w++)r.particles.push(r.getParticle());r.particlesGenerated+=y}return c&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(p),e.width-10,e.height-20)),r.particles.forEach((function(t,n){t.update(),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(a&&d<=l?r.particles[n]=r.getParticle():r.removeParticleAt(n))})),p>0||d<l})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=n};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:l.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},v=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,"canvas",void 0),w(this,"context",void 0),w(this,"_options",void 0),w(this,"generator",void 0),w(this,"rafId",void 0),w(this,"setOptionsWithDefaults",(function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=g(g(g({},t),b),e),Object.assign(r,e.confettiSource)})),w(this,"update",(function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,s=r.context;t&&(s.fillStyle="white",s.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)})),w(this,"reset",(function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)})),w(this,"stop",(function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new m(this.canvas,(function(){return r.options})),this.options=n,this.update()}var t,n;return t=e,(n=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&y(t.prototype,n),e}();function C(e){return(C="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})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=o.a.createRef(),N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(i,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var i=P(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _(this,n)}}(i);function i(e){var t;A(this,i);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return I(M(t=r.call.apply(r,[this,e].concat(s))),"canvas",o.a.createRef()),I(M(t),"confetti",void 0),t.canvas=e.canvasRef||O,t}return t=i,(n=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=L(this.props)[0];this.confetti=new v(this.canvas.current,e)}}},{key:"componentDidUpdate",value:function(){var e=L(this.props)[0];this.confetti&&(this.confetti.options=e)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw s}}return n}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(L(this.props),2),t=e[0],n=e[1],r=k({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return o.a.createElement("canvas",S({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&x(t.prototype,n),i}(s.Component);function L(e){var t={},n={},r=[].concat(function(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.keys(b)),["confettiSource","drawShape","onConfettiComplete"]),i=["canvasRef"];for(var s in e){var o=e[s];r.includes(s)?t[s]=o:i.includes(s)?i[s]=o:n[s]=o}return[t,n,{}]}I(N,"defaultProps",k({},b)),I(N,"displayName","ReactConfetti");var B=o.a.forwardRef((function(e,t){return o.a.createElement(N,S({canvasRef:t},e))}));t.default=B}]).default)},1782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,s="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},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=d(n(6826)),l=n(2623),c=(d(n(3470)),d(n(5402))),u=d(n(7587)),h=d(n(1388)),p=d(n(7532));function d(e){return e&&e.__esModule?e:{default:e}}n(5325);var m=a.default.createFactory(p.default),f=(i=r=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.handleDoneAppearing=function(e){delete i.transitioningKeys[e],e!==i.state.currentKey&&i.performLeave(e)},i.performLeave=function(e){i.transitioningKeys[e]=!0,i.childRefs[e].componentWillLeave(i.handleDoneLeaving.bind(i,e)),i.state.currentChild&&(0,l.findDOMNode)(i.childRefs[i.state.currentKey])||i.enqueueHeightTransition()},i.performHeightTransition=function(){if(!i.unmounted){var e=i.state,t=e.currentChild?(0,l.findDOMNode)(i.childRefs[e.currentKey]):null;i.setState({height:t?t.offsetHeight:0,width:i.props.changeWidth?t?t.offsetWidth:0:null})}i.rafHandle=null},i.childRefs=Object.create(null),i.state={currentKey:"1",currentChild:i.props.children?a.default.Children.only(i.props.children):void 0,prevChildren:{},height:null,width:null},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf,function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],s=Object.getOwnPropertyDescriptor(t,i);s&&s.configurable&&void 0===e[i]&&Object.defineProperty(e,i,s)}}(e,t))}(t,e),t.prototype.componentWillMount=function(){this.shouldEnterCurrent=!1,this.keysToLeave=[],this.transitioningKeys={}},t.prototype.componentDidMount=function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.componentWillReceiveProps=function(e){var t=e.children?a.default.Children.only(e.children):void 0,n=this.state.currentChild;if(n&&t&&t.key===n.key&&!this.state.nextChild)return this.setState({currentChild:t});var r=this.state,i=r.currentKey,s=r.prevChildren,c={currentKey:String(Number(i)+1),currentChild:t,height:0,width:this.props.changeWidth?0:null};if(t&&(this.shouldEnterCurrent=!0),n){var u,h=(0,l.findDOMNode)(this.childRefs[i]);c.height=h?h.offsetHeight:0,c.width=this.props.changeWidth?h?h.offsetWidth:0:null,c.prevChildren=o({},s,((u={})[i]=n,u)),this.transitioningKeys[i]||this.keysToLeave.push(i)}this.setState(c)},t.prototype.componentDidUpdate=function(){this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,(0,l.findDOMNode)(this.childRefs[this.state.currentKey])&&this.performEnter(this.state.currentKey));var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)},t.prototype.performAppear=function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillAppear(this.handleDoneAppearing.bind(this,e))},t.prototype.performEnter=function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()},t.prototype.handleDoneEntering=function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)},t.prototype.handleDoneLeaving=function(e){delete this.transitioningKeys[e];var t={prevChildren:o({},this.state.prevChildren)};delete t.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&(0,l.findDOMNode)(this.childRefs[this.state.currentKey])||(t.height=null),this.setState(t)},t.prototype.enqueueHeightTransition=function(){this.rafHandle||(this.rafHandle=(0,h.default)(this.performHeightTransition))},t.prototype.wrapChild=function(e,t){var n=this.props.transitionName;return"object"===(void 0===n?"undefined":s(n))&&null!==n&&delete(n=o({},n)).height,m(o({name:n,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},t),e)},t.prototype.storeChildRef=function(e,t){var n=this,r="string"!=typeof e.ref;return(0,u.default)(r,"string refs are not supported on children of ReactCSSTransitionReplace and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),(0,c.default)(r?e.ref:null,(function(e){n.childRefs[t]=e}))},t.prototype.render=function(){var e=this,t=this.state,n=t.currentKey,r=t.currentChild,i=t.prevChildren,s=t.height,l=t.width,c=[],u=this.props,h=u.overflowHidden,p=u.transitionName,d=u.component,m=u.childComponent,f=u.notifyLeaving,g=(u.transitionAppear,u.transitionEnter,u.transitionLeave,u.changeWidth,u.transitionAppearTimeout,u.transitionEnterTimeout,u.transitionLeaveTimeout,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(u,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),y=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=o({},g.style),y&&(g.style.position="relative",h&&(g.style.overflow="hidden")),null!==s){var w="string"==typeof p?p+"-height":p&&p.height||"";g.className=String(g.className||"")+" "+String(w),g.style.height=s}null!==l&&(g.style.width=l);var b={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(i).forEach((function(t){var n=i[t];c.push(a.default.createElement(m,{key:t,style:b},e.wrapChild(f&&"string"!=typeof n.type?a.default.cloneElement(n,{isLeaving:!0}):n,{ref:e.storeChildRef(n,t)})))})),r&&c.push(a.default.createElement(m,{key:n,style:this.transitioningKeys[n]?b:y?{position:"relative"}:null},this.wrapChild(r,{ref:this.storeChildRef(r,n)}))),a.default.createElement(d,g,c)},t}(a.default.Component),r.displayName="ReactCSSTransitionReplace",r.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"},i);t.default=f,e.exports=t.default},7532:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=m(n(2843)),a=m(n(3199)),l=m(n(1388)),c=n(1721),u=m(n(6826)),h=m(n(3470)),p=n(2623),d=n(5325);function m(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=[];c.transitionEnd&&y.push(c.transitionEnd),c.animationEnd&&y.push(c.animationEnd),h.default.node,d.nameShape.isRequired,h.default.bool,h.default.bool,h.default.bool,h.default.number,h.default.number,h.default.number;var w=(i=r=function(e){function t(){var n,r;f(this,t);for(var i=arguments.length,s=Array(i),o=0;o<i;o++)s[o]=arguments[o];return n=r=g(this,e.call.apply(e,[this].concat(s))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf,function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],s=Object.getOwnPropertyDescriptor(t,i);s&&s.configurable&&void 0===e[i]&&Object.defineProperty(e,i,s)}}(e,t))}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,p.findDOMNode)(this);if(r){var i=this.props.name[e]||this.props.name+"-"+e,s=this.props.name[e+"Active"]||i+"-active",l=null,u=void 0;(0,o.default)(r,i),this.queueClassAndNode(s,r);var h=function(e){e&&e.target!==r||(clearTimeout(l),u&&u(),(0,a.default)(r,i),(0,a.default)(r,s),u&&u(),t&&t())};n?(l=setTimeout(h,n),this.transitionTimeouts.push(l)):c.transitionEnd&&(u=function(e,t){return y.length?y.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){y.length&&y.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,h))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,l.default)((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))},t.prototype.flushClassNameAndNodeQueueOnNextFrame=function(){var e=this;this.rafHandle=(0,l.default)((function(){return e.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=s({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,u.default.cloneElement(u.default.Children.only(this.props.children),e)},t}(u.default.Component),r.displayName="CSSTransitionGroupChild",i);t.default=w,e.exports=t.default},5325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};var r,i=(r=n(3470))&&r.__esModule?r:{default:r};t.nameShape=i.default.oneOfType([i.default.string,i.default.shape({enter:i.default.string,leave:i.default.string,active:i.default.string,height:i.default.string}),i.default.shape({enter:i.default.string,enterActive:i.default.string,leave:i.default.string,leaveActive:i.default.string,appear:i.default.string,appearActive:i.default.string,height:i.default.string,heightActive:i.default.string})])},6075:(e,t,n)=>{"use strict";var r=n(6826),i=n(109),s=n(3991);function o(e,t,n,r,i,s,o,a){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,s,o,a],c=0;(e=Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function l(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}r||a("227");var c=!1,u=null,h=!1,p=null,d={onError:function(e){c=!0,u=e}};function m(e,t,n,r,i,s,o,a,h){c=!1,u=null,l.apply(d,arguments)}var f=null,g={};function y(){if(f)for(var e in g){var t=g[e],n=f.indexOf(e);if(-1<n||a("96",e),!b[n])for(var r in t.extractEvents||a("97",e),b[n]=t,n=t.eventTypes){var i=void 0,s=n[r],o=t,l=r;v.hasOwnProperty(l)&&a("99",l),v[l]=s;var c=s.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&w(c[i],o,l);i=!0}else s.registrationName?(w(s.registrationName,o,l),i=!0):i=!1;i||a("98",r,e)}}}function w(e,t,n){C[e]&&a("100",e),C[e]=t,S[e]=t.eventTypes[n].dependencies}var b=[],v={},C={},S={},E=null,k=null,R=null;function T(e,t,n){var r=e.type||"unknown-event";e.currentTarget=R(n),function(e,t,n,r,i,s,o,l,d){if(m.apply(this,arguments),c){if(c){var f=u;c=!1,u=null}else a("198"),f=void 0;h||(h=!0,p=f)}}(r,t,void 0,e),e.currentTarget=null}function A(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function x(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var D=null;function _(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)T(e,t[r],n[r]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var M={injectEventPluginOrder:function(e){f&&a("101"),f=Array.prototype.slice.call(e),y()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];g.hasOwnProperty(t)&&g[t]===r||(g[t]&&a("102",t),g[t]=r,n=!0)}n&&y()}};function P(e,t){var n=e.stateNode;if(!n)return null;var r=E(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function I(e){if(null!==e&&(D=A(D,e)),e=D,D=null,e&&(x(e,_),D&&a("95"),h))throw e=p,h=!1,p=null,e}var O=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+O,L="__reactEventHandlers$"+O;function B(e){if(e[N])return e[N];for(;!e[N];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[N]).tag||6===e.tag?e:null}function F(e){return!(e=e[N])||5!==e.tag&&6!==e.tag?null:e}function H(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function U(e){return e[L]||null}function Z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $(e,t,n){(t=P(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=A(n._dispatchListeners,t),n._dispatchInstances=A(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Z(t);for(t=n.length;0<t--;)$(n[t],"captured",e);for(t=0;t<n.length;t++)$(n[t],"bubbled",e)}}function q(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=P(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=A(n._dispatchListeners,t),n._dispatchInstances=A(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&q(e._targetInst,null,e)}function G(e){x(e,W)}var z=!("undefined"==typeof window||!window.document||!window.document.createElement);function j(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var K={animationend:j("Animation","AnimationEnd"),animationiteration:j("Animation","AnimationIteration"),animationstart:j("Animation","AnimationStart"),transitionend:j("Transition","TransitionEnd")},Y={},X={};function Q(e){if(Y[e])return Y[e];if(!K[e])return e;var t,n=K[e];for(t in n)if(n.hasOwnProperty(t)&&t in X)return Y[e]=n[t];return e}z&&(X=document.createElement("div").style,"AnimationEvent"in window||(delete K.animationend.animation,delete K.animationiteration.animation,delete K.animationstart.animation),"TransitionEvent"in window||delete K.transitionend.transition);var J=Q("animationend"),ee=Q("animationiteration"),te=Q("animationstart"),ne=Q("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ie=null,se=null,oe=null;function ae(){if(oe)return oe;var e,t,n=se,r=n.length,i="value"in ie?ie.value:ie.textContent,s=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[s-t];t++);return oe=i.slice(e,1<t?1-t:void 0)}function le(){return!0}function ce(){return!1}function ue(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?le:ce,this.isPropagationStopped=ce,this}function he(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function pe(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=he,e.release=pe}i(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var s=new t;return i(s,n.prototype),n.prototype=s,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,de(n),n},de(ue);var me=ue.extend({data:null}),fe=ue.extend({data:null}),ge=[9,13,27,32],ye=z&&"CompositionEvent"in window,we=null;z&&"documentMode"in document&&(we=document.documentMode);var be=z&&"TextEvent"in window&&!we,ve=z&&(!ye||we&&8<we&&11>=we),Ce=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function ke(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Re(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1,Ae={eventTypes:Se,extractEvents:function(e,t,n,r){var i=void 0,s=void 0;if(ye)e:{switch(e){case"compositionstart":i=Se.compositionStart;break e;case"compositionend":i=Se.compositionEnd;break e;case"compositionupdate":i=Se.compositionUpdate;break e}i=void 0}else Te?ke(e,n)&&(i=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Se.compositionStart);return i?(ve&&"ko"!==n.locale&&(Te||i!==Se.compositionStart?i===Se.compositionEnd&&Te&&(s=ae()):(se="value"in(ie=r)?ie.value:ie.textContent,Te=!0)),i=me.getPooled(i,t,n,r),(s||null!==(s=Re(n)))&&(i.data=s),G(i),s=i):s=null,(e=be?function(e,t){switch(e){case"compositionend":return Re(t);case"keypress":return 32!==t.which?null:(Ee=!0,Ce);case"textInput":return(e=t.data)===Ce&&Ee?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!ye&&ke(e,t)?(e=ae(),oe=se=ie=null,Te=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ve&&"ko"!==t.locale?null:t.data}}(e,n))?((t=fe.getPooled(Se.beforeInput,t,n,r)).data=e,G(t)):t=null,null===s?t:null===t?s:[s,t]}},xe=null,De=null,_e=null;function Me(e){if(e=k(e)){"function"!=typeof xe&&a("280");var t=E(e.stateNode);xe(e.stateNode,e.type,t)}}function Pe(e){De?_e?_e.push(e):_e=[e]:De=e}function Ie(){if(De){var e=De,t=_e;if(_e=De=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Oe(e,t){return e(t)}function Ne(e,t,n){return e(t,n)}function Le(){}var Be=!1;function Fe(e,t){if(Be)return e(t);Be=!0;try{return Oe(e,t)}finally{Be=!1,(null!==De||null!==_e)&&(Le(),Ie())}}var He={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ue(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!He[e.type]:"textarea"===t}function Ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function $e(e){if(!z)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qe(e){e._valueTracker||(e._valueTracker=function(e){var t=We(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ge=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ge.hasOwnProperty("ReactCurrentDispatcher")||(Ge.ReactCurrentDispatcher={current:null});var ze=/^(.*)[\\\/]/,je="function"==typeof Symbol&&Symbol.for,Ke=je?Symbol.for("react.element"):60103,Ye=je?Symbol.for("react.portal"):60106,Xe=je?Symbol.for("react.fragment"):60107,Qe=je?Symbol.for("react.strict_mode"):60108,Je=je?Symbol.for("react.profiler"):60114,et=je?Symbol.for("react.provider"):60109,tt=je?Symbol.for("react.context"):60110,nt=je?Symbol.for("react.concurrent_mode"):60111,rt=je?Symbol.for("react.forward_ref"):60112,it=je?Symbol.for("react.suspense"):60113,st=je?Symbol.for("react.memo"):60115,ot=je?Symbol.for("react.lazy"):60116,at="function"==typeof Symbol&&Symbol.iterator;function lt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=at&&e[at]||e["@@iterator"])?e:null}function ct(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case nt:return"ConcurrentMode";case Xe:return"Fragment";case Ye:return"Portal";case Je:return"Profiler";case Qe:return"StrictMode";case it:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return ct(e.type);case ot:if(e=1===e._status?e._result:null)return ct(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,s=ct(e.type);n=null,r&&(n=ct(r.type)),r=s,s="",i?s=" (at "+i.fileName.replace(ze,"")+":"+i.lineNumber+")":n&&(s=" (created by "+n+")"),n="\n in "+(r||"Unknown")+s}t+=n,e=e.return}while(e);return t}var ht=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pt=Object.prototype.hasOwnProperty,dt={},mt={};function ft(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gt[e]=new ft(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gt[t]=new ft(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gt[e]=new ft(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gt[e]=new ft(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gt[e]=new ft(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){gt[e]=new ft(e,3,!0,e,null)})),["capture","download"].forEach((function(e){gt[e]=new ft(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){gt[e]=new ft(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){gt[e]=new ft(e,5,!1,e.toLowerCase(),null)}));var yt=/[\-:]([a-z])/g;function wt(e){return e[1].toUpperCase()}function bt(e,t,n,r){var i=gt.hasOwnProperty(t)?gt[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!pt.call(mt,e)||!pt.call(dt,e)&&(ht.test(e)?mt[e]=!0:(dt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function vt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ct(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function St(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=vt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Et(e,t){null!=(t=t.checked)&&bt(e,"checked",t,!1)}function kt(e,t){Et(e,t);var n=vt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,vt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Rt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Tt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(yt,wt);gt[t]=new ft(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(yt,wt);gt[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(yt,wt);gt[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){gt[e]=new ft(e,1,!1,e.toLowerCase(),null)}));var At={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function xt(e,t,n){return(e=ue.getPooled(At.change,e,t,n)).type="change",Pe(n),G(e),e}var Dt=null,_t=null;function Mt(e){I(e)}function Pt(e){if(Ve(H(e)))return e}function It(e,t){if("change"===e)return t}var Ot=!1;function Nt(){Dt&&(Dt.detachEvent("onpropertychange",Lt),_t=Dt=null)}function Lt(e){"value"===e.propertyName&&Pt(_t)&&Fe(Mt,e=xt(_t,e,Ze(e)))}function Bt(e,t,n){"focus"===e?(Nt(),_t=n,(Dt=t).attachEvent("onpropertychange",Lt)):"blur"===e&&Nt()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pt(_t)}function Ht(e,t){if("click"===e)return Pt(t)}function Ut(e,t){if("input"===e||"change"===e)return Pt(t)}z&&(Ot=$e("input")&&(!document.documentMode||9<document.documentMode));var Zt={eventTypes:At,_isInputEventSupported:Ot,extractEvents:function(e,t,n,r){var i=t?H(t):window,s=void 0,o=void 0,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type?s=It:Ue(i)?Ot?s=Ut:(s=Ft,o=Bt):(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(s=Ht),s&&(s=s(e,t)))return xt(s,n,r);o&&o(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Tt(i,"number",i.value)}},$t=ue.extend({view:null,detail:null}),Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Vt(){return qt}var Gt=0,zt=0,jt=!1,Kt=!1,Yt=$t.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Gt;return Gt=e.screenX,jt?"mousemove"===e.type?e.screenX-t:0:(jt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=zt;return zt=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Xt=Yt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Qt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jt={eventTypes:Qt,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!s&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,s?(s=t,t=(t=n.relatedTarget||n.toElement)?B(t):null):s=null,s===t)return null;var o=void 0,a=void 0,l=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(o=Yt,a=Qt.mouseLeave,l=Qt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(o=Xt,a=Qt.pointerLeave,l=Qt.pointerEnter,c="pointer");var u=null==s?i:H(s);if(i=null==t?i:H(t),(e=o.getPooled(a,s,n,r)).type=c+"leave",e.target=u,e.relatedTarget=i,(n=o.getPooled(l,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=u,r=t,s&&r)e:{for(i=r,c=0,o=t=s;o;o=Z(o))c++;for(o=0,l=i;l;l=Z(l))o++;for(;0<c-o;)t=Z(t),c--;for(;0<o-c;)i=Z(i),o--;for(;c--;){if(t===i||t===i.alternate)break e;t=Z(t),i=Z(i)}t=null}else t=null;for(i=t,t=[];s&&s!==i&&(null===(c=s.alternate)||c!==i);)t.push(s),s=Z(s);for(s=[];r&&r!==i&&(null===(c=r.alternate)||c!==i);)s.push(r),r=Z(r);for(r=0;r<t.length;r++)q(t[r],"bubbled",e);for(r=s.length;0<r--;)q(s[r],"captured",n);return[e,n]}};function en(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var tn=Object.prototype.hasOwnProperty;function nn(e,t){if(en(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!tn.call(t,n[r])||!en(e[n[r]],t[n[r]]))return!1;return!0}function rn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sn(e){2!==rn(e)&&a("188")}function on(e){if(e=function(e){var t=e.alternate;if(!t)return 3===(t=rn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,s=i?i.alternate:null;if(!i||!s)break;if(i.child===s.child){for(var o=i.child;o;){if(o===n)return sn(i),e;if(o===r)return sn(i),t;o=o.sibling}a("188")}if(n.return!==r.return)n=i,r=s;else{o=!1;for(var l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}o||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var an=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ln=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cn=$t.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var hn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dn=$t.extend({key:function(e){if(e.key){var t=hn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),mn=Yt.extend({dataTransfer:null}),fn=$t.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),gn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=Yt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),wn=[["abort","abort"],[J,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],bn={},vn={};function Cn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},bn[e]=t,vn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){Cn(e,!0)})),wn.forEach((function(e){Cn(e,!1)}));var Sn={eventTypes:bn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=vn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=vn[e];if(!i)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=dn;break;case"blur":case"focus":e=cn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Yt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=fn;break;case J:case ee:case te:e=an;break;case ne:e=gn;break;case"scroll":e=$t;break;case"wheel":e=yn;break;case"copy":case"cut":case"paste":e=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xt;break;default:e=ue}return G(t=e.getPooled(i,t,n,r)),t}},En=Sn.isInteractiveTopLevelEventType,kn=[];function Rn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=B(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=Ze(e.nativeEvent);r=e.topLevelType;for(var s=e.nativeEvent,o=null,a=0;a<b.length;a++){var l=b[a];l&&(l=l.extractEvents(r,t,s,i))&&(o=A(o,l))}I(o)}}var Tn=!0;function An(e,t){if(!t)return null;var n=(En(e)?Dn:_n).bind(null,e);t.addEventListener(e,n,!1)}function xn(e,t){if(!t)return null;var n=(En(e)?Dn:_n).bind(null,e);t.addEventListener(e,n,!0)}function Dn(e,t){Ne(_n,e,t)}function _n(e,t){if(Tn){var n=Ze(t);if(null===(n=B(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),kn.length){var r=kn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Fe(Rn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>kn.length&&kn.push(e)}}}var Mn={},Pn=0,In="_reactListenersID"+(""+Math.random()).slice(2);function On(e){return Object.prototype.hasOwnProperty.call(e,In)||(e[In]=Pn++,Mn[e[In]]={}),Mn[e[In]]}function Nn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bn(e,t){var n,r=Ln(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ln(r)}}function Fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Hn(){for(var e=window,t=Nn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Nn(e.document)}return t}function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Zn(e){var t=Hn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fn(n.ownerDocument.documentElement,n)){if(null!==r&&Un(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=void 0===r.end?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Bn(n,s);var o=Bn(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $n=z&&"documentMode"in document&&11>=document.documentMode,Wn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qn=null,Vn=null,Gn=null,zn=!1;function jn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return zn||null==qn||qn!==Nn(n)?null:(n="selectionStart"in(n=qn)&&Un(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gn&&nn(Gn,n)?null:(Gn=n,(e=ue.getPooled(Wn.select,Vn,e,t)).type="select",e.target=qn,G(e),e))}var Kn={eventTypes:Wn,extractEvents:function(e,t,n,r){var i,s=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!s)){e:{s=On(s),i=S.onSelect;for(var o=0;o<i.length;o++){var a=i[o];if(!s.hasOwnProperty(a)||!s[a]){s=!1;break e}}s=!0}i=!s}if(i)return null;switch(s=t?H(t):window,e){case"focus":(Ue(s)||"true"===s.contentEditable)&&(qn=s,Vn=t,Gn=null);break;case"blur":Gn=Vn=qn=null;break;case"mousedown":zn=!0;break;case"contextmenu":case"mouseup":case"dragend":return zn=!1,jn(n,r);case"selectionchange":if($n)break;case"keydown":case"keyup":return jn(n,r)}return null}};function Yn(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Xn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Qn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:vt(n)}}function er(e,t){var n=vt(t.value),r=vt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function tr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=U,k=F,R=H,M.injectEventPluginsByName({SimpleEventPlugin:Sn,EnterLeaveEventPlugin:Jt,ChangeEventPlugin:Zt,SelectEventPlugin:Kn,BeforeInputEventPlugin:Ae});var nr="http://www.w3.org/1999/xhtml";function rr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ir(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var sr,or=void 0,ar=(sr=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((or=or||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return sr(e,t)}))}:sr);function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var cr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ur=["Webkit","ms","Moz","O"];function hr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||cr.hasOwnProperty(e)&&cr[e]?(""+t).trim():t+"px"}function pr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=hr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(cr).forEach((function(e){ur.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cr[t]=cr[e]}))}));var dr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mr(e,t){t&&(dr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function fr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function gr(e,t){var n=On(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":xn("scroll",e);break;case"focus":case"blur":xn("focus",e),xn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":$e(i)&&xn(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(i)&&An(i,e)}n[i]=!0}}}function yr(){}var wr=null,br=null;function vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Cr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sr="function"==typeof setTimeout?setTimeout:void 0,Er="function"==typeof clearTimeout?clearTimeout:void 0,kr=s.unstable_scheduleCallback,Rr=s.unstable_cancelCallback;function Tr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Ar(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var xr=[],Dr=-1;function _r(e){0>Dr||(e.current=xr[Dr],xr[Dr]=null,Dr--)}function Mr(e,t){Dr++,xr[Dr]=e.current,e.current=t}var Pr={},Ir={current:Pr},Or={current:!1},Nr=Pr;function Lr(e,t){var n=e.type.contextTypes;if(!n)return Pr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,s={};for(i in n)s[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Br(e){return null!=e.childContextTypes}function Fr(e){_r(Or),_r(Ir)}function Hr(e){_r(Or),_r(Ir)}function Ur(e,t,n){Ir.current!==Pr&&a("168"),Mr(Ir,t),Mr(Or,n)}function Zr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var s in r=r.getChildContext())s in e||a("108",ct(t)||"Unknown",s);return i({},n,r)}function $r(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pr,Nr=Ir.current,Mr(Ir,t),Mr(Or,Or.current),!0}function Wr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Zr(e,t,Nr),r.__reactInternalMemoizedMergedChildContext=t,_r(Or),_r(Ir),Mr(Ir,t)):_r(Or),Mr(Or,n)}var qr=null,Vr=null;function Gr(e){return function(t){try{return e(t)}catch(e){}}}function zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function jr(e,t,n,r){return new zr(e,t,n,r)}function Kr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yr(e,t){var n=e.alternate;return null===n?((n=jr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xr(e,t,n,r,i,s){var o=2;if(r=e,"function"==typeof e)Kr(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case Xe:return Qr(n.children,i,s,t);case nt:return Jr(n,3|i,s,t);case Qe:return Jr(n,2|i,s,t);case Je:return(e=jr(12,n,t,4|i)).elementType=Je,e.type=Je,e.expirationTime=s,e;case it:return(e=jr(13,n,t,i)).elementType=it,e.type=it,e.expirationTime=s,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:o=10;break e;case tt:o=9;break e;case rt:o=11;break e;case st:o=14;break e;case ot:o=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=jr(o,n,t,i)).elementType=e,t.type=r,t.expirationTime=s,t}function Qr(e,t,n,r){return(e=jr(7,e,r,t)).expirationTime=n,e}function Jr(e,t,n,r){return e=jr(8,e,r,t),t=0==(1&t)?Qe:nt,e.elementType=t,e.type=t,e.expirationTime=n,e}function ei(e,t,n){return(e=jr(6,e,null,t)).expirationTime=n,e}function ti(e,t,n){return(t=jr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ni(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),si(t,e)}function ri(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),si(t,e)}function ii(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function si(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,s=t.latestPingedTime;0===(i=0!==i?i:s)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function oi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ai=(new r.Component).refs;function li(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ci={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===rn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ga(),i=qs(r=Zo(r,e));i.payload=t,null!=n&&(i.callback=n),No(),Gs(e,i),Vo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ga(),i=qs(r=Zo(r,e));i.tag=Hs,i.payload=t,null!=n&&(i.callback=n),No(),Gs(e,i),Vo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ga(),r=qs(n=Zo(n,e));r.tag=Us,null!=t&&(r.callback=t),No(),Gs(e,r),Vo(e,n)}};function ui(e,t,n,r,i,s,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,o):!(t.prototype&&t.prototype.isPureReactComponent&&nn(n,r)&&nn(i,s))}function hi(e,t,n){var r=!1,i=Pr,s=t.contextType;return"object"==typeof s&&null!==s?s=Ns(s):(i=Br(t)?Nr:Ir.current,s=(r=null!=(r=t.contextTypes))?Lr(e,i):Pr),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ci,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function pi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ci.enqueueReplaceState(t,t.state,null)}function di(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ai;var s=t.contextType;"object"==typeof s&&null!==s?i.context=Ns(s):(s=Br(t)?Nr:Ir.current,i.context=Lr(e,s)),null!==(s=e.updateQueue)&&(Ys(e,s,n,i,r),i.state=e.memoizedState),"function"==typeof(s=t.getDerivedStateFromProps)&&(li(e,t,s,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ci.enqueueReplaceState(i,i.state,null),null!==(s=e.updateQueue)&&(Ys(e,s,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var mi=Array.isArray;function fi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===ai&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function gi(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function yi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Yr(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ei(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=fi(e,t,n),r.return=e,r):((r=Xr(n.type,n.key,n.props,null,e.mode,r)).ref=fi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ti(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,s){return null===t||7!==t.tag?((t=Qr(n,e.mode,r,s)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ei(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(n=Xr(t.type,t.key,t.props,null,e.mode,n)).ref=fi(e,null,t),n.return=e,n;case Ye:return(t=ti(t,e.mode,n)).return=e,t}if(mi(t)||lt(t))return(t=Qr(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return n.key===i?n.type===Xe?h(e,t,n.props.children,r,i):c(e,t,n,r):null;case Ye:return n.key===i?u(e,t,n,r):null}if(mi(n)||lt(n))return null!==i?null:h(e,t,n,r,null);gi(e,n)}return null}function m(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ke:return e=e.get(null===r.key?n:r.key)||null,r.type===Xe?h(t,e,r.props.children,i,r.key):c(t,e,r,i);case Ye:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(mi(r)||lt(r))return h(t,e=e.get(n)||null,r,i,null);gi(t,r)}return null}function f(i,o,a,l){for(var c=null,u=null,h=o,f=o=0,g=null;null!==h&&f<a.length;f++){h.index>f?(g=h,h=null):g=h.sibling;var y=d(i,h,a[f],l);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(i,h),o=s(y,o,f),null===u?c=y:u.sibling=y,u=y,h=g}if(f===a.length)return n(i,h),c;if(null===h){for(;f<a.length;f++)(h=p(i,a[f],l))&&(o=s(h,o,f),null===u?c=h:u.sibling=h,u=h);return c}for(h=r(i,h);f<a.length;f++)(g=m(h,i,f,a[f],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?f:g.key),o=s(g,o,f),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(i,e)})),c}function g(i,o,l,c){var u=lt(l);"function"!=typeof u&&a("150"),null==(l=u.call(l))&&a("151");for(var h=u=null,f=o,g=o=0,y=null,w=l.next();null!==f&&!w.done;g++,w=l.next()){f.index>g?(y=f,f=null):y=f.sibling;var b=d(i,f,w.value,c);if(null===b){f||(f=y);break}e&&f&&null===b.alternate&&t(i,f),o=s(b,o,g),null===h?u=b:h.sibling=b,h=b,f=y}if(w.done)return n(i,f),u;if(null===f){for(;!w.done;g++,w=l.next())null!==(w=p(i,w.value,c))&&(o=s(w,o,g),null===h?u=w:h.sibling=w,h=w);return u}for(f=r(i,f);!w.done;g++,w=l.next())null!==(w=m(f,i,g,w.value,c))&&(e&&null!==w.alternate&&f.delete(null===w.key?g:w.key),o=s(w,o,g),null===h?u=w:h.sibling=w,h=w);return e&&f.forEach((function(e){return t(i,e)})),u}return function(e,r,s,l){var c="object"==typeof s&&null!==s&&s.type===Xe&&null===s.key;c&&(s=s.props.children);var u="object"==typeof s&&null!==s;if(u)switch(s.$$typeof){case Ke:e:{for(u=s.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?s.type===Xe:c.elementType===s.type){n(e,c.sibling),(r=i(c,s.type===Xe?s.props.children:s.props)).ref=fi(e,c,s),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}s.type===Xe?((r=Qr(s.props.children,e.mode,l,s.key)).return=e,e=r):((l=Xr(s.type,s.key,s.props,null,e.mode,l)).ref=fi(e,r,s),l.return=e,e=l)}return o(e);case Ye:e:{for(c=s.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===s.containerInfo&&r.stateNode.implementation===s.implementation){n(e,r.sibling),(r=i(r,s.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ti(s,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,s)).return=e,e=r):(n(e,r),(r=ei(s,e.mode,l)).return=e,e=r),o(e);if(mi(s))return f(e,r,s,l);if(lt(s))return g(e,r,s,l);if(u&&gi(e,s),void 0===s&&!c)switch(e.tag){case 1:case 0:a("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var wi=yi(!0),bi=yi(!1),vi={},Ci={current:vi},Si={current:vi},Ei={current:vi};function ki(e){return e===vi&&a("174"),e}function Ri(e,t){Mr(Ei,t),Mr(Si,e),Mr(Ci,vi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ir(null,"");break;default:t=ir(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}_r(Ci),Mr(Ci,t)}function Ti(e){_r(Ci),_r(Si),_r(Ei)}function Ai(e){ki(Ei.current);var t=ki(Ci.current),n=ir(t,e.type);t!==n&&(Mr(Si,e),Mr(Ci,n))}function xi(e){Si.current===e&&(_r(Ci),_r(Si))}var Di=Ge.ReactCurrentDispatcher,_i=0,Mi=null,Pi=null,Ii=null,Oi=null,Ni=null,Li=null,Bi=0,Fi=null,Hi=0,Ui=!1,Zi=null,$i=0;function Wi(){a("307")}function qi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function Vi(e,t,n,r,i,s){if(_i=s,Mi=t,Ii=null!==e?e.memoizedState:null,Di.current=null===Ii?is:ss,t=n(r,i),Ui){do{Ui=!1,$i+=1,Ii=null!==e?e.memoizedState:null,Li=Oi,Fi=Ni=Pi=null,Di.current=ss,t=n(r,i)}while(Ui);Zi=null,$i=0}return Di.current=rs,(e=Mi).memoizedState=Oi,e.expirationTime=Bi,e.updateQueue=Fi,e.effectTag|=Hi,e=null!==Pi&&null!==Pi.next,_i=0,Li=Ni=Oi=Ii=Pi=Mi=null,Bi=0,Fi=null,Hi=0,e&&a("300"),t}function Gi(){Di.current=rs,_i=0,Li=Ni=Oi=Ii=Pi=Mi=null,Bi=0,Fi=null,Hi=0,Ui=!1,Zi=null,$i=0}function zi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ni?Oi=Ni=e:Ni=Ni.next=e,Ni}function ji(){if(null!==Li)Li=(Ni=Li).next,Ii=null!==(Pi=Ii)?Pi.next:null;else{null===Ii&&a("310");var e={memoizedState:(Pi=Ii).memoizedState,baseState:Pi.baseState,queue:Pi.queue,baseUpdate:Pi.baseUpdate,next:null};Ni=null===Ni?Oi=e:Ni.next=e,Ii=Pi.next}return Ni}function Ki(e,t){return"function"==typeof t?t(e):t}function Yi(e){var t=ji(),n=t.queue;if(null===n&&a("311"),0<$i){var r=n.dispatch;if(null!==Zi){var i=Zi.get(n);if(void 0!==i){Zi.delete(n);var s=t.memoizedState;do{s=e(s,i.action),i=i.next}while(null!==i);return en(s,t.memoizedState)||(gs=!0),t.memoizedState=s,t.baseUpdate===n.last&&(t.baseState=s),n.eagerReducer=e,n.eagerState=s,[s,r]}}return[t.memoizedState,r]}r=n.last;var o=t.baseUpdate;if(s=t.baseState,null!==o?(null!==r&&(r.next=null),r=o.next):r=null!==r?r.next:null,null!==r){var l=i=null,c=r,u=!1;do{var h=c.expirationTime;h<_i?(u||(u=!0,l=o,i=s),h>Bi&&(Bi=h)):s=c.eagerReducer===e?c.eagerState:e(s,c.action),o=c,c=c.next}while(null!==c&&c!==r);u||(l=o,i=s),en(s,t.memoizedState)||(gs=!0),t.memoizedState=s,t.baseUpdate=l,t.baseState=i,n.eagerReducer=e,n.eagerState=s}return[t.memoizedState,n.dispatch]}function Xi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Fi?(Fi={lastEffect:null}).lastEffect=e.next=e:null===(t=Fi.lastEffect)?Fi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Fi.lastEffect=e),e}function Qi(e,t,n,r){var i=zi();Hi|=e,i.memoizedState=Xi(t,n,void 0,void 0===r?null:r)}function Ji(e,t,n,r){var i=ji();r=void 0===r?null:r;var s=void 0;if(null!==Pi){var o=Pi.memoizedState;if(s=o.destroy,null!==r&&qi(r,o.deps))return void Xi(0,n,s,r)}Hi|=e,i.memoizedState=Xi(t,n,s,r)}function es(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ts(){}function ns(e,t,n){25>$i||a("301");var r=e.alternate;if(e===Mi||null!==r&&r===Mi)if(Ui=!0,e={expirationTime:_i,action:n,eagerReducer:null,eagerState:null,next:null},null===Zi&&(Zi=new Map),void 0===(n=Zi.get(t)))Zi.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{No();var i=ga(),s={expirationTime:i=Zo(i,e),action:n,eagerReducer:null,eagerState:null,next:null},o=t.last;if(null===o)s.next=s;else{var l=o.next;null!==l&&(s.next=l),o.next=s}if(t.last=s,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var c=t.eagerState,u=r(c,n);if(s.eagerReducer=r,s.eagerState=u,en(u,c))return}catch(e){}Vo(e,i)}}var rs={readContext:Ns,useCallback:Wi,useContext:Wi,useEffect:Wi,useImperativeHandle:Wi,useLayoutEffect:Wi,useMemo:Wi,useReducer:Wi,useRef:Wi,useState:Wi,useDebugValue:Wi},is={readContext:Ns,useCallback:function(e,t){return zi().memoizedState=[e,void 0===t?null:t],e},useContext:Ns,useEffect:function(e,t){return Qi(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Qi(4,36,es.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4,36,e,t)},useMemo:function(e,t){var n=zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=ns.bind(null,Mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zi().memoizedState=e},useState:function(e){var t=zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:Ki,eagerState:e}).dispatch=ns.bind(null,Mi,e),[t.memoizedState,e]},useDebugValue:ts},ss={readContext:Ns,useCallback:function(e,t){var n=ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Ns,useEffect:function(e,t){return Ji(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ji(4,36,es.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ji(4,36,e,t)},useMemo:function(e,t){var n=ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Yi,useRef:function(){return ji().memoizedState},useState:function(e){return Yi(Ki)},useDebugValue:ts},os=null,as=null,ls=!1;function cs(e,t){var n=jr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function us(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function hs(e){if(ls){var t=as;if(t){var n=t;if(!us(e,t)){if(!(t=Tr(n))||!us(e,t))return e.effectTag|=2,ls=!1,void(os=e);cs(os,n)}os=e,as=Ar(t)}else e.effectTag|=2,ls=!1,os=e}}function ps(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;os=e}function ds(e){if(e!==os)return!1;if(!ls)return ps(e),ls=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Cr(t,e.memoizedProps))for(t=as;t;)cs(e,t),t=Tr(t);return ps(e),as=os?Tr(e.stateNode):null,!0}function ms(){as=os=null,ls=!1}var fs=Ge.ReactCurrentOwner,gs=!1;function ys(e,t,n,r){t.child=null===e?bi(t,null,n,r):wi(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var s=t.ref;return Os(t,i),r=Vi(e,t,n,r,s,i),null===e||gs?(t.effectTag|=1,ys(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),As(e,t,i))}function bs(e,t,n,r,i,s){if(null===e){var o=n.type;return"function"!=typeof o||Kr(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xr(n.type,null,r,null,t.mode,s)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,vs(e,t,o,r,i,s))}return o=e.child,i<s&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:nn)(i,r)&&e.ref===t.ref)?As(e,t,s):(t.effectTag|=1,(e=Yr(o,r)).ref=t.ref,e.return=t,t.child=e)}function vs(e,t,n,r,i,s){return null!==e&&nn(e.memoizedProps,r)&&e.ref===t.ref&&(gs=!1,i<s)?As(e,t,s):Ss(e,t,n,r,s)}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ss(e,t,n,r,i){var s=Br(n)?Nr:Ir.current;return s=Lr(t,s),Os(t,i),n=Vi(e,t,n,r,s,i),null===e||gs?(t.effectTag|=1,ys(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),As(e,t,i))}function Es(e,t,n,r,i){if(Br(n)){var s=!0;$r(t)}else s=!1;if(Os(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),hi(t,n,r),di(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;c="object"==typeof c&&null!==c?Ns(c):Lr(t,c=Br(n)?Nr:Ir.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;h||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==r||l!==c)&&pi(t,o,r,c),Zs=!1;var p=t.memoizedState;l=o.state=p;var d=t.updateQueue;null!==d&&(Ys(t,d,r,o,i),l=t.memoizedState),a!==r||p!==l||Or.current||Zs?("function"==typeof u&&(li(t,n,u,r),l=t.memoizedState),(a=Zs||ui(t,n,a,r,p,l,c))?(h||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,a=t.memoizedProps,o.props=t.type===t.elementType?a:oi(t.type,a),l=o.context,c="object"==typeof(c=n.contextType)&&null!==c?Ns(c):Lr(t,c=Br(n)?Nr:Ir.current),(h="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==r||l!==c)&&pi(t,o,r,c),Zs=!1,l=t.memoizedState,p=o.state=l,null!==(d=t.updateQueue)&&(Ys(t,d,r,o,i),p=t.memoizedState),a!==r||l!==p||Or.current||Zs?("function"==typeof u&&(li(t,n,u,r),p=t.memoizedState),(u=Zs||ui(t,n,a,r,l,p,c))?(h||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=c,r=u):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return ks(e,t,n,r,s,i)}function ks(e,t,n,r,i,s){Cs(e,t);var o=0!=(64&t.effectTag);if(!r&&!o)return i&&Wr(t,n,!1),As(e,t,s);r=t.stateNode,fs.current=t;var a=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=wi(t,e.child,null,s),t.child=wi(t,null,a,s)):ys(e,t,a,s),t.memoizedState=r.state,i&&Wr(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Ur(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ur(0,t.context,!1),Ri(e,t.containerInfo)}function Ts(e,t,n){var r=t.mode,i=t.pendingProps,s=t.memoizedState;if(0==(64&t.effectTag)){s=null;var o=!1}else s={timedOutAt:null!==s?s.timedOutAt:0},o=!0,t.effectTag&=-65;if(null===e)if(o){var a=i.fallback;e=Qr(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Qr(a,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=bi(t,null,i.children,n);else null!==e.memoizedState?(a=(r=e.child).sibling,o?(n=i.fallback,i=Yr(r,r.pendingProps),0==(1&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=o),r=i.sibling=Yr(a,n,a.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=wi(t,r.child,i.children,n)):(a=e.child,o?(o=i.fallback,(i=Qr(null,r,0,null)).child=a,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=Qr(o,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=wi(t,a,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=s,t.child=n,r}function As(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Yr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}var xs={current:null},Ds=null,_s=null,Ms=null;function Ps(e,t){var n=e.type._context;Mr(xs,n._currentValue),n._currentValue=t}function Is(e){var t=xs.current;_r(xs),e.type._context._currentValue=t}function Os(e,t){Ds=e,Ms=_s=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(gs=!0),e.contextDependencies=null}function Ns(e,t){return Ms!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Ms=e,t=1073741823),t={context:e,observedBits:t,next:null},null===_s?(null===Ds&&a("308"),_s=t,Ds.contextDependencies={first:t,expirationTime:0}):_s=_s.next=t),e._currentValue}var Ls,Bs,Fs,Hs=1,Us=2,Zs=!1;function $s(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ws(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function qs(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Vs(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Gs(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=$s(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=$s(e.memoizedState),i=n.updateQueue=$s(n.memoizedState)):r=e.updateQueue=Ws(i):null===i&&(i=n.updateQueue=Ws(r));null===i||r===i?Vs(r,t):null===r.lastUpdate||null===i.lastUpdate?(Vs(r,t),Vs(i,t)):(Vs(r,t),i.lastUpdate=t)}function zs(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=$s(e.memoizedState):js(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function js(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Ws(t)),t}function Ks(e,t,n,r,s,o){switch(n.tag){case Hs:return"function"==typeof(e=n.payload)?e.call(o,r,s):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(s="function"==typeof(e=n.payload)?e.call(o,r,s):e))break;return i({},r,s);case Us:Zs=!0}return r}function Ys(e,t,n,r,i){Zs=!1;for(var s=(t=js(e,t)).baseState,o=null,a=0,l=t.firstUpdate,c=s;null!==l;){var u=l.expirationTime;u<i?(null===o&&(o=l,s=c),a<u&&(a=u)):(c=Ks(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(u=null,l=t.firstCapturedUpdate;null!==l;){var h=l.expirationTime;h<i?(null===u&&(u=l,null===o&&(s=c)),a<h&&(a=h)):(c=Ks(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===o&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===u&&(s=c),t.baseState=s,t.firstUpdate=o,t.firstCapturedUpdate=u,e.expirationTime=a,e.memoizedState=c}function Xs(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Qs(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Qs(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Qs(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function Js(e,t){return{value:e,source:t,stack:ut(t)}}function eo(e){e.effectTag|=4}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Bs=function(e,t,n,r,s){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(ki(Ci.current),e=null,n){case"input":o=Ct(a,o),r=Ct(a,r),e=[];break;case"option":o=Yn(a,o),r=Yn(a,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=Qn(a,o),r=Qn(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=yr)}mr(n,r),a=n=void 0;var l=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var c=o[n];for(a in c)c.hasOwnProperty(a)&&(l||(l={}),l[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(C.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(c=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==c&&(null!=u||null!=c))if("style"===n)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(l||(l={}),l[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(l||(l={}),l[a]=u[a])}else l||(e||(e=[]),e.push(n,l)),l=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(n,""+u)):"children"===n?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(C.hasOwnProperty(n)?(null!=u&&gr(s,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}l&&(e=e||[]).push("style",l),s=e,(t.updateQueue=s)&&eo(t)}},Fs=function(e,t,n,r){n!==r&&eo(t)};var to="function"==typeof WeakSet?WeakSet:Set;function no(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ro(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Uo(e,t)}else t.current=null}function io(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function so(e){switch("function"==typeof Vr&&Vr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){Uo(i,e)}}n=n.next}while(n!==t)}break;case 1:if(ro(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Uo(e,t)}break;case 5:ro(e);break;case 4:lo(e)}}function oo(e){return 5===e.tag||3===e.tag||4===e.tag}function ao(e){e:{for(var t=e.return;null!==t;){if(oo(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(lr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||oo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var s=t,o=i.stateNode,l=n;8===s.nodeType?s.parentNode.insertBefore(o,l):s.insertBefore(o,l)}else t.insertBefore(i.stateNode,n);else r?(o=t,l=i.stateNode,8===o.nodeType?(s=o.parentNode).insertBefore(l,o):(s=o).appendChild(l),null!=(o=o._reactRootContainer)||null!==s.onclick||(s.onclick=yr)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function lo(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var s=t,o=s;;)if(so(o),null!==o.child&&4!==o.tag)o.child.return=o,o=o.child;else{if(o===s)break;for(;null===o.sibling;){if(null===o.return||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}i?(s=r,o=t.stateNode,8===s.nodeType?s.parentNode.removeChild(o):s.removeChild(o)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(so(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:io(4,8,t);break;case 1:case 3:case 12:case 17:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,s=t.updateQueue;t.updateQueue=null,null!==s&&function(e,t,n,r,i){e[L]=i,"input"===n&&"radio"===i.type&&null!=i.name&&Et(e,i),fr(n,r),r=fr(n,i);for(var s=0;s<t.length;s+=2){var o=t[s],a=t[s+1];"style"===o?pr(e,a):"dangerouslySetInnerHTML"===o?ar(e,a):"children"===o?lr(e,a):bt(e,o,a,r)}switch(n){case"input":kt(e,i);break;case"textarea":er(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?Xn(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?Xn(e,!!i.multiple,i.defaultValue,!0):Xn(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,s,i,e,r)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=ga())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=hr("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var o=t.stateNode;null===o&&(o=t.stateNode=new to),n.forEach((function(e){var n=Wo.bind(null,t,e);o.has(e)||(o.add(e),e.then(n,n))}))}break;default:a("163")}}var uo="function"==typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=qs(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ta(r),no(e,t)},n}function po(e,t,n){(n=qs(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Do?Do=new Set([this]):Do.add(this));var n=t.value,i=t.stack;no(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function mo(e){switch(e.tag){case 1:Br(e.type)&&Fr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Ti(),Hr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return xi(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:default:return null;case 4:return Ti(),null;case 10:return Is(e),null}}var fo=Ge.ReactCurrentDispatcher,go=Ge.ReactCurrentOwner,yo=1073741822,wo=!1,bo=null,vo=null,Co=0,So=-1,Eo=!1,ko=null,Ro=!1,To=null,Ao=null,xo=null,Do=null;function _o(){if(null!==bo)for(var e=bo.return;null!==e;){var t=e;switch(t.tag){case 1:null!=t.type.childContextTypes&&Fr();break;case 3:Ti(),Hr();break;case 5:xi(t);break;case 4:Ti();break;case 10:Is(t)}e=e.return}vo=null,Co=0,So=-1,Eo=!1,bo=null}function Mo(){for(;null!==ko;){var e=ko.effectTag;if(16&e&&lr(ko.stateNode,""),128&e){var t=ko.alternate;null!==t&&null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null)}switch(14&e){case 2:ao(ko),ko.effectTag&=-3;break;case 6:ao(ko),ko.effectTag&=-3,co(ko.alternate,ko);break;case 4:co(ko.alternate,ko);break;case 8:lo(e=ko),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}ko=ko.nextEffect}}function Po(){for(;null!==ko;){if(256&ko.effectTag)e:{var e=ko.alternate,t=ko;switch(t.tag){case 0:case 11:case 15:io(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:oi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}ko=ko.nextEffect}}function Io(e,t){for(;null!==ko;){var n=ko.effectTag;if(36&n){var r=ko.alternate,i=ko,s=t;switch(i.tag){case 0:case 11:case 15:io(16,32,i);break;case 1:var o=i.stateNode;if(4&i.effectTag)if(null===r)o.componentDidMount();else{var l=i.elementType===i.type?r.memoizedProps:oi(i.type,r.memoizedProps);o.componentDidUpdate(l,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&Xs(0,r,o);break;case 3:if(null!==(r=i.updateQueue)){if(o=null,null!==i.child)switch(i.child.tag){case 5:case 1:o=i.child.stateNode}Xs(0,r,o)}break;case 5:s=i.stateNode,null===r&&4&i.effectTag&&vr(i.type,i.memoizedProps)&&s.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&null!==(i=ko.ref)&&(s=ko.stateNode,"function"==typeof i?i(s):i.current=s),512&n&&(To=e),ko=ko.nextEffect}}function Oo(e,t){xo=Ao=To=null;var n=Xo;Xo=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var s=t;io(128,0,s),io(0,64,s)}catch(e){r=!0,i=e}r&&Uo(t,i)}t=t.nextEffect}while(null!==t);Xo=n,0!==(n=e.expirationTime)&&ya(e,n),ra||Xo||Sa(1073741823,!1)}function No(){null!==Ao&&Rr(Ao),null!==xo&&xo()}function Lo(e,t){Ro=wo=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?ni(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,ni(e,t)):t>n&&ni(e,t)}si(0,e)}(e,i>r?i:r),go.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,wr=Tn,br=function(){var e=Hn();if(Un(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var s=0,o=-1,a=-1,l=0,c=0,u=e,h=null;t:for(;;){for(var p;u!==t||0!==r&&3!==u.nodeType||(o=s+r),u!==i||0!==n&&3!==u.nodeType||(a=s+n),3===u.nodeType&&(s+=u.nodeValue.length),null!==(p=u.firstChild);)h=u,u=p;for(;;){if(u===e)break t;if(h===t&&++l===r&&(o=s),h===i&&++c===n&&(a=s),null!==(p=u.nextSibling))break;h=(u=h).parentNode}u=p}t=-1===o||-1===a?null:{start:o,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),Tn=!1,ko=r;null!==ko;){i=!1;var o=void 0;try{Po()}catch(e){i=!0,o=e}i&&(null===ko&&a("178"),Uo(ko,o),null!==ko&&(ko=ko.nextEffect))}for(ko=r;null!==ko;){i=!1,o=void 0;try{Mo()}catch(e){i=!0,o=e}i&&(null===ko&&a("178"),Uo(ko,o),null!==ko&&(ko=ko.nextEffect))}for(Zn(br),br=null,Tn=!!wr,wr=null,e.current=t,ko=r;null!==ko;){i=!1,o=void 0;try{Io(e,n)}catch(e){i=!0,o=e}i&&(null===ko&&a("178"),Uo(ko,o),null!==ko&&(ko=ko.nextEffect))}if(null!==r&&null!==To){var l=Oo.bind(null,e,r);Ao=s.unstable_runWithPriority(s.unstable_NormalPriority,(function(){return kr(l)})),xo=l}wo=Ro=!1,"function"==typeof qr&&qr(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Do=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Bo(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){bo=e;e:{var s=t,o=Co,l=(t=e).pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 18:break;case 1:case 17:Br(t.type)&&Fr();break;case 3:Ti(),Hr(),(l=t.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==s&&null!==s.child||(ds(t),t.effectTag&=-3);break;case 5:xi(t);var c=ki(Ei.current);if(o=t.type,null!==s&&null!=t.stateNode)Bs(s,t,o,l,c),s.ref!==t.ref&&(t.effectTag|=128);else if(l){var u=ki(Ci.current);if(ds(t)){s=(l=t).stateNode;var h=l.type,p=l.memoizedProps,d=c;switch(s[N]=l,s[L]=p,o=void 0,c=h){case"iframe":case"object":An("load",s);break;case"video":case"audio":for(h=0;h<re.length;h++)An(re[h],s);break;case"source":An("error",s);break;case"img":case"image":case"link":An("error",s),An("load",s);break;case"form":An("reset",s),An("submit",s);break;case"details":An("toggle",s);break;case"input":St(s,p),An("invalid",s),gr(d,"onChange");break;case"select":s._wrapperState={wasMultiple:!!p.multiple},An("invalid",s),gr(d,"onChange");break;case"textarea":Jn(s,p),An("invalid",s),gr(d,"onChange")}for(o in mr(c,p),h=null,p)p.hasOwnProperty(o)&&(u=p[o],"children"===o?"string"==typeof u?s.textContent!==u&&(h=["children",u]):"number"==typeof u&&s.textContent!==""+u&&(h=["children",""+u]):C.hasOwnProperty(o)&&null!=u&&gr(d,o));switch(c){case"input":qe(s),Rt(s,p,!0);break;case"textarea":qe(s),tr(s);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(s.onclick=yr)}o=h,l.updateQueue=o,(l=null!==o)&&eo(t)}else{p=t,s=o,d=l,h=9===c.nodeType?c:c.ownerDocument,u===nr&&(u=rr(s)),u===nr?"script"===s?((s=h.createElement("div")).innerHTML="<script><\/script>",h=s.removeChild(s.firstChild)):"string"==typeof d.is?h=h.createElement(s,{is:d.is}):(h=h.createElement(s),"select"===s&&d.multiple&&(h.multiple=!0)):h=h.createElementNS(u,s),(s=h)[N]=p,s[L]=l,Ls(s,t),d=s;var m=c,f=fr(h=o,p=l);switch(h){case"iframe":case"object":An("load",d),c=p;break;case"video":case"audio":for(c=0;c<re.length;c++)An(re[c],d);c=p;break;case"source":An("error",d),c=p;break;case"img":case"image":case"link":An("error",d),An("load",d),c=p;break;case"form":An("reset",d),An("submit",d),c=p;break;case"details":An("toggle",d),c=p;break;case"input":St(d,p),c=Ct(d,p),An("invalid",d),gr(m,"onChange");break;case"option":c=Yn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},c=i({},p,{value:void 0}),An("invalid",d),gr(m,"onChange");break;case"textarea":Jn(d,p),c=Qn(d,p),An("invalid",d),gr(m,"onChange");break;default:c=p}mr(h,c),u=void 0;var g=h,y=d,w=c;for(u in w)if(w.hasOwnProperty(u)){var b=w[u];"style"===u?pr(y,b):"dangerouslySetInnerHTML"===u?null!=(b=b?b.__html:void 0)&&ar(y,b):"children"===u?"string"==typeof b?("textarea"!==g||""!==b)&&lr(y,b):"number"==typeof b&&lr(y,""+b):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(C.hasOwnProperty(u)?null!=b&&gr(m,u):null!=b&&bt(y,u,b,f))}switch(h){case"input":qe(d),Rt(d,p,!1);break;case"textarea":qe(d),tr(d);break;case"option":null!=p.value&&d.setAttribute("value",""+vt(p.value));break;case"select":(c=d).multiple=!!p.multiple,null!=(d=p.value)?Xn(c,!!p.multiple,d,!1):null!=p.defaultValue&&Xn(c,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof c.onClick&&(d.onclick=yr)}(l=vr(o,l))&&eo(t),t.stateNode=s}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:s&&null!=t.stateNode?Fs(0,t,s.memoizedProps,l):("string"!=typeof l&&null===t.stateNode&&a("166"),s=ki(Ei.current),ki(Ci.current),ds(t)?(o=(l=t).stateNode,s=l.memoizedProps,o[N]=l,(l=o.nodeValue!==s)&&eo(t)):(o=t,(l=(9===s.nodeType?s:s.ownerDocument).createTextNode(l))[N]=t,o.stateNode=l));break;case 13:if(l=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,bo=t;break e}l=null!==l,o=null!==s&&null!==s.memoizedState,null!==s&&!l&&o&&null!==(s=s.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=s,s.nextEffect=c):(t.firstEffect=t.lastEffect=s,s.nextEffect=null),s.effectTag=8),(l||o)&&(t.effectTag|=4);break;case 4:Ti();break;case 10:Is(t);break;default:a("156")}bo=null}if(t=e,1===Co||1!==t.childExpirationTime){for(l=0,o=t.child;null!==o;)(s=o.expirationTime)>l&&(l=s),(c=o.childExpirationTime)>l&&(l=c),o=o.sibling;t.childExpirationTime=l}if(null!==bo)return bo;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=mo(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Fo(e){var t=function(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Or.current)gs=!0;else if(r<n){switch(gs=!1,t.tag){case 3:Rs(t),ms();break;case 5:Ai(t);break;case 1:Br(t.type)&&$r(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:Ps(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ts(e,t,n):null!==(t=As(e,t,n))?t.sibling:null}return As(e,t,n)}}else gs=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=Lr(t,Ir.current);if(Os(t,n),i=Vi(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Gi(),Br(r)){var s=!0;$r(t)}else s=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var o=r.getDerivedStateFromProps;"function"==typeof o&&li(t,r,o,e),i.updater=ci,t.stateNode=i,i._reactInternalFiber=t,di(t,r,e,n),t=ks(null,t,r,!0,s,n)}else t.tag=0,ys(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),s=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return Kr(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===st)return 14}return 2}(e),s=oi(e,s),o=void 0,i){case 0:o=Ss(null,t,e,s,n);break;case 1:o=Es(null,t,e,s,n);break;case 11:o=ws(null,t,e,s,n);break;case 14:o=bs(null,t,e,oi(e.type,s),r,n);break;default:a("306",e,"")}return o;case 0:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:oi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:oi(r,i),n);case 3:return Rs(t),null===(r=t.updateQueue)&&a("282"),i=null!==(i=t.memoizedState)?i.element:null,Ys(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(ms(),t=As(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(as=Ar(t.stateNode.containerInfo),os=t,i=ls=!0),i?(t.effectTag|=2,t.child=bi(t,null,r,n)):(ys(e,t,r,n),ms()),t=t.child),t;case 5:return Ai(t),null===e&&hs(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,Cr(r,i)?o=null:null!==s&&Cr(r,s)&&(t.effectTag|=16),Cs(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ys(e,t,o,n),t=t.child),t;case 6:return null===e&&hs(t),null;case 13:return Ts(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):ys(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:oi(r,i),n);case 7:return ys(e,t,t.pendingProps,n),t.child;case 8:case 12:return ys(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,Ps(t,s=i.value),null!==o){var l=o.value;if(0==(s=en(l,s)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,s):1073741823))){if(o.children===i.children&&!Or.current){t=As(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.contextDependencies;if(null!==c){o=l.child;for(var u=c.first;null!==u;){if(u.context===r&&0!=(u.observedBits&s)){1===l.tag&&((u=qs(n)).tag=Us,Gs(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var h=l.return;null!==h;){var p=h.alternate;if(h.childExpirationTime<u)h.childExpirationTime=u,null!==p&&p.childExpirationTime<u&&(p.childExpirationTime=u);else{if(!(null!==p&&p.childExpirationTime<u))break;p.childExpirationTime=u}h=h.return}c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}}ys(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(s=t.pendingProps).children,Os(t,n),r=r(i=Ns(i,s.unstable_observedBits)),t.effectTag|=1,ys(e,t,r,n),t.child;case 14:return s=oi(i=t.type,t.pendingProps),bs(e,t,i,s=oi(i.type,s),r,n);case 15:return vs(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Br(r)?(e=!0,$r(t)):e=!1,Os(t,n),hi(t,r,i),di(t,r,i,n),ks(null,t,r,!0,e,n)}a("156")}(e.alternate,e,Co);return e.memoizedProps=e.pendingProps,null===t&&(t=Bo(e)),go.current=null,t}function Ho(e,t){wo&&a("243"),No(),wo=!0;var n=fo.current;fo.current=rs;var r=e.nextExpirationTimeToWorkOn;r===Co&&e===vo&&null!==bo||(_o(),Co=r,bo=Yr((vo=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==bo&&!va();)bo=Fo(bo);else for(;null!==bo;)bo=Fo(bo)}catch(t){if(Ms=_s=Ds=null,Gi(),null===bo)i=!0,Ta(t);else{null===bo&&a("271");var s=bo,o=s.return;if(null!==o){e:{var l=e,c=o,u=s,h=t;if(o=Co,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==h&&"object"==typeof h&&"function"==typeof h.then){var p=h;h=c;var d=-1,m=-1;do{if(13===h.tag){var f=h.alternate;if(null!==f&&null!==(f=f.memoizedState)){m=10*(1073741822-f.timedOutAt);break}"number"==typeof(f=h.pendingProps.maxDuration)&&(0>=f?d=0:(-1===d||f<d)&&(d=f))}h=h.return}while(null!==h);h=c;do{if((f=13===h.tag)&&(f=void 0!==h.memoizedProps.fallback&&null===h.memoizedState),f){if(null===(c=h.updateQueue)?((c=new Set).add(p),h.updateQueue=c):c.add(p),0==(1&h.mode)){h.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((o=qs(1073741823)).tag=Us,Gs(u,o))),u.expirationTime=1073741823;break e}c=o;var g=(u=l).pingCache;null===g?(g=u.pingCache=new uo,f=new Set,g.set(p,f)):void 0===(f=g.get(p))&&(f=new Set,g.set(p,f)),f.has(c)||(f.add(c),u=$o.bind(null,u,p,c),p.then(u,u)),-1===d?l=1073741823:(-1===m&&(m=10*(1073741822-ii(l,o))-5e3),l=m+d),0<=l&&So<l&&(So=l),h.effectTag|=2048,h.expirationTime=o;break e}h=h.return}while(null!==h);h=Error((ct(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(u))}Eo=!0,h=Js(h,u),l=c;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=o,zs(l,o=ho(l,h,o));break e;case 1:if(d=h,m=l.type,u=l.stateNode,0==(64&l.effectTag)&&("function"==typeof m.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===Do||!Do.has(u)))){l.effectTag|=2048,l.expirationTime=o,zs(l,o=po(l,d,o));break e}}l=l.return}while(null!==l)}bo=Bo(s);continue}i=!0,Ta(t)}}break}if(wo=!1,fo.current=n,Ms=_s=Ds=null,Gi(),i)vo=null,e.finishedWork=null;else if(null!==bo)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),vo=null,Eo){if(i=e.latestPendingTime,s=e.latestSuspendedTime,o=e.latestPingedTime,0!==i&&i<r||0!==s&&s<r||0!==o&&o<r)return ri(e,r),void ma(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void ma(e,n,r,t,-1)}t&&-1!==So?(ri(e,r),(t=10*(1073741822-ii(e,r)))<So&&(So=t),t=10*(1073741822-ga()),t=So-t,ma(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Uo(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Do||!Do.has(r)))return Gs(n,e=po(n,e=Js(t,e),1073741823)),void Vo(n,1073741823);break;case 3:return Gs(n,e=ho(n,e=Js(t,e),1073741823)),void Vo(n,1073741823)}n=n.return}3===e.tag&&(Gs(e,n=ho(e,n=Js(t,e),1073741823)),Vo(e,1073741823))}function Zo(e,t){var n=s.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(wo&&!Ro)r=Co;else{switch(n){case s.unstable_ImmediatePriority:r=1073741823;break;case s.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case s.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case s.unstable_LowPriority:case s.unstable_IdlePriority:r=1;break;default:a("313")}null!==vo&&r===Co&&--r}return n===s.unstable_UserBlockingPriority&&(0===ea||r<ea)&&(ea=r),r}function $o(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==vo&&Co===n?vo=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),si(n,e),0!==(n=e.expirationTime)&&ya(e,n)))}function Wo(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=qo(e,t=Zo(t=ga(),e)))&&(ni(e,t),0!==(t=e.expirationTime)&&ya(e,t))}function qo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Vo(e,t){null!==(e=qo(e,t))&&(!wo&&0!==Co&&t>Co&&_o(),ni(e,t),wo&&!Ro&&vo===e||ya(e,e.expirationTime),ua>ca&&(ua=0,a("185")))}function Go(e,t,n,r,i){return s.unstable_runWithPriority(s.unstable_ImmediatePriority,(function(){return e(t,n,r,i)}))}var zo=null,jo=null,Ko=0,Yo=void 0,Xo=!1,Qo=null,Jo=0,ea=0,ta=!1,na=null,ra=!1,ia=!1,sa=null,oa=s.unstable_now(),aa=1073741822-(oa/10|0),la=aa,ca=50,ua=0,ha=null;function pa(){aa=1073741822-((s.unstable_now()-oa)/10|0)}function da(e,t){if(0!==Ko){if(t<Ko)return;null!==Yo&&s.unstable_cancelCallback(Yo)}Ko=t,e=s.unstable_now()-oa,Yo=s.unstable_scheduleCallback(Ca,{timeout:10*(1073741822-t)-e})}function ma(e,t,n,r,i){e.expirationTime=r,0!==i||va()?0<i&&(e.timeoutHandle=Sr(fa.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function fa(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,pa(),la=aa,Ea(e,n)}function ga(){return Xo||(wa(),0!==Jo&&1!==Jo||(pa(),la=aa)),la}function ya(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===jo?(zo=jo=e,e.nextScheduledRoot=e):(jo=jo.nextScheduledRoot=e).nextScheduledRoot=zo):t>e.expirationTime&&(e.expirationTime=t),Xo||(ra?ia&&(Qo=e,Jo=1073741823,ka(e,1073741823,!1)):1073741823===t?Sa(1073741823,!1):da(e,t))}function wa(){var e=0,t=null;if(null!==jo)for(var n=jo,r=zo;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===jo)&&a("244"),r===r.nextScheduledRoot){zo=jo=r.nextScheduledRoot=null;break}if(r===zo)zo=i=r.nextScheduledRoot,jo.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===jo){(jo=n).nextScheduledRoot=zo,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===jo)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Qo=t,Jo=e}var ba=!1;function va(){return!!ba||!!s.unstable_shouldYield()&&(ba=!0)}function Ca(){try{if(!va()&&null!==zo){pa();var e=zo;do{var t=e.expirationTime;0!==t&&aa<=t&&(e.nextExpirationTimeToWorkOn=aa),e=e.nextScheduledRoot}while(e!==zo)}Sa(0,!0)}finally{ba=!1}}function Sa(e,t){if(wa(),t)for(pa(),la=aa;null!==Qo&&0!==Jo&&e<=Jo&&!(ba&&aa>Jo);)ka(Qo,Jo,aa>Jo),wa(),pa(),la=aa;else for(;null!==Qo&&0!==Jo&&e<=Jo;)ka(Qo,Jo,!1),wa();if(t&&(Ko=0,Yo=null),0!==Jo&&da(Qo,Jo),ua=0,ha=null,null!==sa)for(e=sa,sa=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ta||(ta=!0,na=e)}}if(ta)throw e=na,na=null,ta=!1,e}function Ea(e,t){Xo&&a("253"),Qo=e,Jo=t,ka(e,t,!1),Sa(1073741823,!1)}function ka(e,t,n){if(Xo&&a("245"),Xo=!0,n){var r=e.finishedWork;null!==r?Ra(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,Er(r)),Ho(e,n),null!==(r=e.finishedWork)&&(va()?e.finishedWork=r:Ra(e,r,t)))}else null!==(r=e.finishedWork)?Ra(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,Er(r)),Ho(e,n),null!==(r=e.finishedWork)&&Ra(e,r,t));Xo=!1}function Ra(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===sa?sa=[r]:sa.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ha?ua++:(ha=e,ua=0),s.unstable_runWithPriority(s.unstable_ImmediatePriority,(function(){Lo(e,t)}))}function Ta(e){null===Qo&&a("246"),Qo.expirationTime=0,ta||(ta=!0,na=e)}function Aa(e,t){var n=ra;ra=!0;try{return e(t)}finally{(ra=n)||Xo||Sa(1073741823,!1)}}function xa(e,t){if(ra&&!ia){ia=!0;try{return e(t)}finally{ia=!1}}return e(t)}function Da(e,t,n){ra||Xo||0===ea||(Sa(ea,!1),ea=0);var r=ra;ra=!0;try{return s.unstable_runWithPriority(s.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(ra=r)||Xo||Sa(1073741823,!1)}}function _a(e,t,n,r,i){var s=t.current;e:if(n){t:{2===rn(n=n._reactInternalFiber)&&1===n.tag||a("170");var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break t;case 1:if(Br(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break t}}o=o.return}while(null!==o);a("171"),o=void 0}if(1===n.tag){var l=n.type;if(Br(l)){n=Zr(n,l,o);break e}}n=o}else n=Pr;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=qs(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),No(),Gs(s,i),Vo(s,r),r}function Ma(e,t,n,r){var i=t.current;return _a(e,t,n,i=Zo(ga(),i),r)}function Pa(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ia(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ye,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Oa(e){var t=1073741822-25*(1+((1073741822-ga()+500)/25|0));t>=yo&&(t=yo-1),this._expirationTime=yo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Na(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function La(e,t,n){e={current:t=jr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ba(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Fa(e,t,n,r,i){var s=n._reactRootContainer;if(s){if("function"==typeof i){var o=i;i=function(){var e=Pa(s._internalRoot);o.call(e)}}null!=e?s.legacy_renderSubtreeIntoContainer(e,t,i):s.render(t,i)}else{if(s=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new La(e,!1,t)}(n,r),"function"==typeof i){var a=i;i=function(){var e=Pa(s._internalRoot);a.call(e)}}xa((function(){null!=e?s.legacy_renderSubtreeIntoContainer(e,t,i):s.render(t,i)}))}return Pa(s._internalRoot)}function Ha(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ba(t)||a("200"),Ia(e,t,null,n)}xe=function(e,t,n){switch(t){case"input":if(kt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=U(r);i||a("90"),Ve(r),kt(r,i)}}}break;case"textarea":er(e,n);break;case"select":null!=(t=n.value)&&Xn(e,!!n.multiple,t,!1)}},Oa.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Na;return _a(e,t,null,n,r._onCommit),r},Oa.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Oa.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&a("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,Ea(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Oa.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Na.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Na.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},La.prototype.render=function(e,t){var n=this._internalRoot,r=new Na;return null!==(t=void 0===t?null:t)&&r.then(t),Ma(e,n,null,r._onCommit),r},La.prototype.unmount=function(e){var t=this._internalRoot,n=new Na;return null!==(e=void 0===e?null:e)&&n.then(e),Ma(null,t,null,n._onCommit),n},La.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new Na;return null!==(n=void 0===n?null:n)&&i.then(n),Ma(t,r,e,i._onCommit),i},La.prototype.createBatch=function(){var e=new Oa(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Oe=Aa,Ne=Da,Le=function(){Xo||0===ea||(Sa(ea,!1),ea=0)};var Ua={createPortal:Ha,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),null===(e=on(t))?null:e.stateNode},hydrate:function(e,t,n){return Ba(t)||a("200"),Fa(null,e,t,!0,n)},render:function(e,t,n){return Ba(t)||a("200"),Fa(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Ba(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Fa(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ba(e)||a("40"),!!e._reactRootContainer&&(xa((function(){Fa(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Ha.apply(void 0,arguments)},unstable_batchedUpdates:Aa,unstable_interactiveUpdates:Da,flushSync:function(e,t){Xo&&a("187");var n=ra;ra=!0;try{return Go(e,t)}finally{ra=n,Sa(1073741823,!1)}},unstable_createRoot:function(e,t){return Ba(e)||a("299","unstable_createRoot"),new La(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=ra;ra=!0;try{Go(e)}finally{(ra=t)||Xo||Sa(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[F,H,U,M.injectEventPluginsByName,v,G,function(e){x(e,V)},Pe,Ie,_n,I]}};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);qr=Gr((function(e){return t.onCommitFiberRoot(n,e)})),Vr=Gr((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}}(i({},e,{overrideProps:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=on(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:B,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var Za={default:Ua},$a=Za&&Ua||Za;e.exports=$a.default||$a},2623:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6075)},6335:(e,t,n)=>{"use strict";var r=n(109),i="function"==typeof Symbol&&Symbol.for,s=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,h=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function w(e,t,n,r,i,s,o,a){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,s,o,a],c=0;(e=Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function b(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);w(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function S(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||v}function E(){}function k(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||v}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&b("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=S.prototype;var R=k.prototype=new E;R.constructor=k,r(R,S.prototype),R.isPureReactComponent=!0;var T={current:null},A={current:null},x=Object.prototype.hasOwnProperty,D={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r=void 0,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!D.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:s,type:e,key:o,ref:a,props:i,_owner:A.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var P=/\/+/g,I=[];function O(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function L(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case s:case o:a=!0}}if(a)return n(r,e,""===t?"."+F(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+F(i=e[l],l);a+=L(i,c,n,r)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null))for(e=c.call(e),l=0;!(i=e.next()).done;)a+=L(i=i.value,c=t+F(i,l++),n,r);else"object"===i&&b("31","[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function B(e,t,n){return null==e?0:L(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function H(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Z(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function Z(e,t,n,r,i){var s="";null!=n&&(s=(""+n).replace(P,"$&/")+"/"),B(e,U,t=O(t,s,r,i)),N(t)}function $(){var e=T.current;return null===e&&b("307"),e}var W={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return Z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;B(e,H,t=O(null,null,t,n)),N(t)},count:function(e){return B(e,(function(){return null}),null)},toArray:function(e){var t=[];return Z(e,t,null,(function(e){return e})),t},only:function(e){return M(e)||b("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return $().useCallback(e,t)},useContext:function(e,t){return $().useContext(e,t)},useEffect:function(e,t){return $().useEffect(e,t)},useImperativeHandle:function(e,t,n){return $().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return $().useLayoutEffect(e,t)},useMemo:function(e,t){return $().useMemo(e,t)},useReducer:function(e,t,n){return $().useReducer(e,t,n)},useRef:function(e){return $().useRef(e)},useState:function(e){return $().useState(e)},Fragment:a,StrictMode:l,Suspense:m,createElement:_,cloneElement:function(e,t,n){null==e&&b("267",e);var i=void 0,o=r({},e.props),a=e.key,l=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,c=A.current),void 0!==t.key&&(a=""+t.key);var u=void 0;for(i in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)x.call(t,i)&&!D.hasOwnProperty(i)&&(o[i]=void 0===t[i]&&void 0!==u?u[i]:t[i])}if(1==(i=arguments.length-2))o.children=n;else if(1<i){u=Array(i);for(var h=0;h<i;h++)u[h]=arguments[h+2];o.children=u}return{$$typeof:s,type:e.type,key:a,ref:l,props:o,_owner:c}},createFactory:function(e){var t=_.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.8.4",unstable_ConcurrentMode:p,unstable_Profiler:c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:T,ReactCurrentOwner:A,assign:r}},q={default:W},V=q&&W||q;e.exports=V.default||V},6826:(e,t,n)=>{"use strict";e.exports=n(6335)},6969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5820),t)},5820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setValueSafe=t.setValue=t.createKeySafe=t.createKey=t.enumerateKeysSafe=t.enumerateKeys=t.enumerateValuesSafe=t.enumerateValues=t.HKEY=t.RegistryValueType=void 0;function n(e,t){return[]}function r(e,t){return[]}function i(e,t){return!1}function s(e,t,n,r,i){return!1}!function(e){e.REG_BINARY="REG_BINARY",e.REG_DWORD="REG_DWORD",e.REG_DWORD_LITTLE_ENDIAN="REG_DWORD_LITTLE_ENDIAN",e.REG_DWORD_BIG_ENDIAN="REG_DWORD_BIG_ENDIAN",e.REG_EXPAND_SZ="REG_EXPAND_SZ",e.REG_LINK="REG_LINK",e.REG_MULTI_SZ="REG_MULTI_SZ",e.REG_NONE="REG_NONE",e.REG_QWORD="REG_QWORD",e.REG_QWORD_LITTLE_ENDIAN="REG_QWORD_LITTLE_ENDIAN",e.REG_SZ="REG_SZ"}(t.RegistryValueType||(t.RegistryValueType={})),function(e){e.HKEY_CLASSES_ROOT="HKEY_CLASSES_ROOT",e.HKEY_CURRENT_CONFIG="HKEY_CURRENT_CONFIG",e.HKEY_DYN_DATA="HKEY_DYN_DATA",e.HKEY_CURRENT_USER_LOCAL_SETTINGS="HKEY_CURRENT_USER_LOCAL_SETTINGS",e.HKEY_CURRENT_USER="HKEY_CURRENT_USER",e.HKEY_LOCAL_MACHINE="HKEY_LOCAL_MACHINE",e.HKEY_PERFORMANCE_DATA="HKEY_PERFORMANCE_DATA",e.HKEY_PERFORMANCE_TEXT="HKEY_PERFORMANCE_TEXT",e.HKEY_PERFORMANCE_NLSTEXT="HKEY_PERFORMANCE_NLSTEXT",e.HKEY_USERS="HKEY_USERS"}(t.HKEY||(t.HKEY={})),t.enumerateValues=n,t.enumerateValuesSafe=function(e,t){try{return[]}catch(e){return[]}},t.enumerateKeys=r,t.enumerateKeysSafe=function(e,t){try{return[]}catch(e){return[]}},t.createKey=i,t.createKeySafe=function(e,t){try{return!1}catch(e){return!1}},t.setValue=s,t.setValueSafe=function(e,t,n,r,i){try{return!1}catch(e){return!1}}},8818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,i=3,s=-1,o=-1,a=!1,l=!1;function c(){if(!a){var e=n.expirationTime;l?E():l=!0,S(p,e)}}function u(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var s=i,a=o;i=e,o=t;try{var l=r()}finally{i=s,o=a}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=l,c()),(t=r.previous).next=r.previous=l,l.next=r,l.previous=t}}function h(){if(-1===s&&null!==n&&1===n.priorityLevel){a=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{a=!1,null!==n?c():l=!1}}}function p(e){a=!0;var i=r;r=e;try{if(e)for(;null!==n;){var s=t.unstable_now();if(!(n.expirationTime<=s))break;do{u()}while(null!==n&&n.expirationTime<=s)}else if(null!==n)do{u()}while(null!==n&&!k())}finally{a=!1,r=i,null!==n?c():l=!1,h()}}var d,m,f=Date,g="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,w="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function v(e){d=w((function(t){y(m),e(t)})),m=g((function(){b(d),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var C=performance;t.unstable_now=function(){return C.now()}}else t.unstable_now=function(){return f.now()};var S,E,k,R=null;if("undefined"!=typeof window?R=window:"undefined"!=typeof global&&(R=global),R&&R._schedMock){var T=R._schedMock;S=T[0],E=T[1],k=T[2],t.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var A=null,x=function(e){if(null!==A)try{A(e)}finally{A=null}};S=function(e){null!==A?setTimeout(S,0,e):(A=e,setTimeout(x,0,!1))},E=function(){A=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof w&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,_=!1,M=-1,P=!1,I=!1,O=0,N=33,L=33;k=function(){return O<=t.unstable_now()};var B=new MessageChannel,F=B.port2;B.port1.onmessage=function(){_=!1;var e=D,n=M;D=null,M=-1;var r=t.unstable_now(),i=!1;if(0>=O-r){if(!(-1!==n&&n<=r))return P||(P=!0,v(H)),D=e,void(M=n);i=!0}if(null!==e){I=!0;try{e(i)}finally{I=!1}}};var H=function(e){if(null!==D){v(H);var t=e-O+L;t<L&&N<L?(8>t&&(t=8),L=t<N?N:t):N=t,O=e+L,_||(_=!0,F.postMessage(void 0))}else P=!1};S=function(e,t){D=e,M=t,I||0>t?F.postMessage(void 0):P||(P=!0,v(H))},E=function(){D=null,_=!1,M=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=s;i=e,s=t.unstable_now();try{return n()}finally{i=r,s=o,h()}},t.unstable_next=function(e){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var r=i,o=s;i=n,s=t.unstable_now();try{return e()}finally{i=r,s=o,h()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==s?s:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(i){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{o=null;var a=n;do{if(a.expirationTime>r){o=a;break}a=a.next}while(a!==n);null===o?o=n:o===n&&(n=e,c()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var r=i,o=s;i=n,s=t.unstable_now();try{return e.apply(this,arguments)}finally{i=r,s=o,h()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<o||k())},t.unstable_continueExecution=function(){null!==n&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}},3991:(e,t,n)=>{"use strict";e.exports=n(8818)},7891:(e,t)=>{var n;t=e.exports=K,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.safeRe=[],o=t.src=[],a=0,l=[["\\s",1],["\\d",256],["[a-zA-Z0-9-]",250]];function c(e){for(var t=0;t<l.length;t++){var n=l[t][0],r=l[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}var u=a++;o[u]="0|[1-9]\\d*";var h=a++;o[h]="\\d+";var p=a++;o[p]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=a++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var m=a++;o[m]="("+o[h]+")\\.("+o[h]+")\\.("+o[h]+")";var f=a++;o[f]="(?:"+o[u]+"|"+o[p]+")";var g=a++;o[g]="(?:"+o[h]+"|"+o[p]+")";var y=a++;o[y]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var w=a++;o[w]="(?:-?("+o[g]+"(?:\\."+o[g]+")*))";var b=a++;o[b]="[a-zA-Z0-9-]+";var v=a++;o[v]="(?:\\+("+o[b]+"(?:\\."+o[b]+")*))";var C=a++,S="v?"+o[d]+o[y]+"?"+o[v]+"?";o[C]="^"+S+"$";var E="[v=\\s]*"+o[m]+o[w]+"?"+o[v]+"?",k=a++;o[k]="^"+E+"$";var R=a++;o[R]="((?:<|>)?=?)";var T=a++;o[T]=o[h]+"|x|X|\\*";var A=a++;o[A]=o[u]+"|x|X|\\*";var x=a++;o[x]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var D=a++;o[D]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[w]+")?"+o[v]+"?)?)?";var _=a++;o[_]="^"+o[R]+"\\s*"+o[x]+"$";var M=a++;o[M]="^"+o[R]+"\\s*"+o[D]+"$";var P=a++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=a++;o[I]="(?:~>?)";var O=a++;o[O]="(\\s*)"+o[I]+"\\s+",i[O]=new RegExp(o[O],"g"),s[O]=new RegExp(c(o[O]),"g");var N=a++;o[N]="^"+o[I]+o[x]+"$";var L=a++;o[L]="^"+o[I]+o[D]+"$";var B=a++;o[B]="(?:\\^)";var F=a++;o[F]="(\\s*)"+o[B]+"\\s+",i[F]=new RegExp(o[F],"g"),s[F]=new RegExp(c(o[F]),"g");var H=a++;o[H]="^"+o[B]+o[x]+"$";var U=a++;o[U]="^"+o[B]+o[D]+"$";var Z=a++;o[Z]="^"+o[R]+"\\s*("+E+")$|^$";var $=a++;o[$]="^"+o[R]+"\\s*("+S+")$|^$";var W=a++;o[W]="(\\s*)"+o[R]+"\\s*("+E+"|"+o[x]+")",i[W]=new RegExp(o[W],"g"),s[W]=new RegExp(c(o[W]),"g");var q=a++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=a++;o[V]="^\\s*("+o[D]+")\\s+-\\s+("+o[D]+")\\s*$";var G=a++;o[G]="(<|>)?=?\\s*\\*";for(var z=0;z<35;z++)n(z,o[z]),i[z]||(i[z]=new RegExp(o[z]),s[z]=new RegExp(c(o[z])));function j(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[k]:s[C]).test(e))return null;try{return new K(e,t)}catch(e){return null}}function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof K))return new K(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?s[k]:s[C]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=j,t.valid=function(e,t){var n=j(e,t);return n?n.version:null},t.clean=function(e,t){var n=j(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=K,K.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},K.prototype.toString=function(){return this.version},K.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof K||(e=new K(e,this.options)),this.compareMain(e)||this.comparePre(e)},K.prototype.compareMain=function(e){return e instanceof K||(e=new K(e,this.options)),X(this.major,e.major)||X(this.minor,e.minor)||X(this.patch,e.patch)},K.prototype.comparePre=function(e){if(e instanceof K||(e=new K(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return X(r,i)}while(++t)},K.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new K(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(te(e,t))return null;var n=j(e),r=j(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==r[o])return i+o;return s},t.compareIdentifiers=X;var Y=/^[0-9]+$/;function X(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new K(e,n).compare(new K(t,n))}function J(e,t,n){return Q(e,t,n)>0}function ee(e,t,n){return Q(e,t,n)<0}function te(e,t,n){return 0===Q(e,t,n)}function ne(e,t,n){return 0!==Q(e,t,n)}function re(e,t,n){return Q(e,t,n)>=0}function ie(e,t,n){return Q(e,t,n)<=0}function se(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return te(e,n,r);case"!=":return ne(e,n,r);case">":return J(e,n,r);case">=":return re(e,n,r);case"<":return ee(e,n,r);case"<=":return ie(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new K(e,t).major},t.minor=function(e,t){return new K(e,t).minor},t.patch=function(e,t){return new K(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,n){return Q(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=ee,t.eq=te,t.neq=ne,t.gte=re,t.lte=ie,t.cmp=se,t.Comparator=oe;var ae={};function le(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof le)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new le(e.raw,t);if(e instanceof oe)return new le(e.value,t);if(!(this instanceof le))return new le(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,n,r,i,s,o,a,l,c,u,h,p){return((t=ce(n)?"":ce(r)?">="+n+".0.0":ce(i)?">="+n+"."+r+".0":">="+t)+" "+(a=ce(l)?"":ce(c)?"<"+(+l+1)+".0.0":ce(u)?"<"+l+"."+(+c+1)+".0":h?"<="+l+"."+c+"."+u+"-"+h:"<="+a)).trim()}function he(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==ae&&e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new le(t,n)}catch(e){return!1}return t.test(e)}function de(e,t,n,r){var i,s,o,a,l;switch(e=new K(e,r),t=new le(t,r),n){case">":i=J,s=ie,o=ee,a=">",l=">=";break;case"<":i=ee,s=re,o=J,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],h=null,p=null;if(u.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),h=h||e,p=p||e,i(e.semver,h.semver,r)?h=e:o(e.semver,p.semver,r)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&s(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?s[Z]:s[$],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new K(n[2],this.options.loose):this.semver=ae},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ae||("string"==typeof e&&(e=new K(e,this.options)),se(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new le(e.value,t),pe(this.value,n,t);if(""===e.operator)return n=new le(this.value,t),pe(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=se(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=se(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||s&&o||a||l},t.Range=le,le.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},le.prototype.toString=function(){return this.range},le.prototype.parseRange=function(e){var t=this.options.loose,r=t?s[V]:s[q];e=e.replace(r,ue),n("hyphen replace",e),e=e.replace(s[W],"$1$2$3"),n("comparator trim",e,s[W]),e=(e=e.replace(s[O],"$1~")).replace(s[F],"$1^");var i=t?s[Z]:s[$],o=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?s[U]:s[H];return e.replace(r,(function(t,r,i,s,o){var a;return n("caret",e,t,r,i,s,o),ce(r)?a="":ce(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":ce(s)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),a="0"===r?"0"===i?">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+i+"."+(+s+1):">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+s+"-"+o+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+s+" <"+r+"."+i+"."+(+s+1):">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+s+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?s[L]:s[N];return e.replace(r,(function(t,r,i,s,o){var a;return n("tilde",e,t,r,i,s,o),ce(r)?a="":ce(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":ce(s)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":o?(n("replaceTilde pr",o),a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?s[M]:s[_];return e.replace(r,(function(t,r,i,s,o,a){n("xRange",e,t,r,i,s,o,a);var l=ce(i),c=l||ce(s),u=c||ce(o);return"="===r&&u&&(r=""),l?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(c&&(s=0),o=0,">"===r?(r=">=",c?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===r&&(r="<",c?i=+i+1:s=+s+1),t=r+i+"."+s+"."+o):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(s[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new oe(e,this.options)}),this)},le.prototype.intersects=function(e,t){if(!(e instanceof le))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new le(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},le.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new K(e,this.options));for(var t=0;t<this.set.length;t++)if(he(this.set[t],e,this.options))return!0;return!1},t.satisfies=pe,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var s=new le(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var s=new le(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minVersion=function(e,t){e=new le(e,t);var n=new K("0.0.0");if(e.test(n))return n;if(n=new K("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new K(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new le(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return de(e,t,"<",n)},t.gtr=function(e,t,n){return de(e,t,">",n)},t.outside=de,t.prerelease=function(e,t){var n=j(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new le(e,n),t=new le(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof K)return e;if("string"!=typeof e)return null;var t=e.match(s[P]);return null==t?null:j(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},7306:(e,t,n)=>{"use strict";var r=n(5663);e.exports=function(e){var t=e.match(r);if(!t)return null;var n=t[0].replace(/#! ?/,"").split(" "),i=n[0].split("/").pop(),s=n[1];return"env"===i?s:i+(s?" "+s:"")}},5663:e=>{"use strict";e.exports=/^#!.*/},8419:(e,t,n)=>{var r,i=n(9491),s=n(9291),o=n(2361);function a(){u&&(u=!1,s.forEach((function(e){try{process.removeListener(e,c[e])}catch(e){}})),process.emit=m,process.reallyExit=p,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof o&&(o=o.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emitter__=new o).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),e.exports=function(e,t){i.equal(typeof e,"function","a callback must be provided for exit handler"),!1===u&&h();var n="exit";return t&&t.alwaysLast&&(n="afterexit"),r.on(n,e),function(){r.removeListener(n,e),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&a()}},e.exports.unload=a;var c={};s.forEach((function(e){c[e]=function(){process.listeners(e).length===r.count&&(a(),l("exit",null,e),l("afterexit",null,e),process.kill(process.pid,e))}})),e.exports.signals=function(){return s},e.exports.load=h;var u=!1;function h(){u||(u=!0,r.count+=1,s=s.filter((function(e){try{return process.on(e,c[e]),!0}catch(e){return!1}})),process.emit=f,process.reallyExit=d)}var p=process.reallyExit;function d(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),p.call(process,process.exitCode)}var m=process.emit;function f(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var n=m.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),n}return m.apply(this,arguments)}},9291:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},9764:(e,t,n)=>{var r,i=n(6947).SourceMapConsumer,s=n(1017);try{(r=n(7147)).existsSync&&r.readFileSync||(r=null)}catch(e){}var o=!1,a=!1,l=!1,c="auto",u={},h={},p=/^data:application\/json[^,]+base64,/,d=[],m=[];function f(){return"browser"===c||"node"!==c&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function g(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var y=g(d);function w(e,t){if(!e)return t;var n=s.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"";return i+s.resolve(n.slice(i.length),t)}d.push((function(e){if((e=e.trim())in u)return u[e];var t=null;if(r){if(r.existsSync(e))try{t=r.readFileSync(e,"utf8")}catch(e){t=""}}else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=null,4===n.readyState&&200===n.status&&(t=n.responseText)}return u[e]=t}));var b=g(m);function v(e){var t=h[e.source];if(!t){var n=b(e.source);n?(t=h[e.source]={url:n.url,map:new i(n.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,n){var r=t.map.sourcesContent[n];if(r){var i=w(t.url,e);u[i]=r}})):t=h[e.source]={url:null,map:null}}if(t&&t.map){var r=t.map.originalPositionFor(e);if(null!==r.source)return r.source=w(t.url,r.source),r}return e}function C(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=v({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+C(t[2])+")":e}function S(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",s=this.getFunctionName(),o=!0,a=this.isConstructor();if(this.isToplevel()||a)a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);else{var l=this.getTypeName();"[object Object]"===l&&(l="null");var c=this.getMethodName();s?(l&&0!=s.indexOf(l)&&(i+=l+"."),i+=s,c&&s.indexOf("."+c)!=s.length-c.length-1&&(i+=" [as "+c+"]")):i+=l+"."+(c||"<anonymous>")}return o&&(i+=" ("+t+")"),i}function E(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]})),t.toString=S,t}function k(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1===n&&r>62&&!f()&&!e.isEval()&&(r-=62);var i=v({source:t,line:n,column:r});return(e=E(e)).getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var s=e.isEval()&&e.getEvalOrigin();return s?(s=C(s),(e=E(e)).getEvalOrigin=function(){return s},e):e}function R(e,t){return l&&(u={},h={}),e+t.map((function(e){return"\n at "+k(e)})).join("")}function T(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],i=+t[2],s=+t[3],o=u[n];if(!o&&r&&r.existsSync(n))try{o=r.readFileSync(n,"utf8")}catch(e){o=""}if(o){var a=o.split(/(?:\r\n|\r|\n)/)[i-1];if(a)return n+":"+i+"\n"+a+"\n"+new Array(s).join(" ")+"^"}}return null}function A(e){var t=T(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1)}m.push((function(e){var t,n=function(e){var t;if(f())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=y(e);for(var i,s,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;s=o.exec(t);)i=s;return i?i[1]:null}(e);if(!n)return null;if(p.test(n)){var r=n.slice(n.indexOf(",")+1);t=new Buffer(r,"base64").toString(),n=e}else n=w(e,n),t=y(n);return t?{url:n,map:t}:null})),t.wrapCallSite=k,t.getErrorSource=T,t.mapSourcePosition=v,t.retrieveSourceMap=b,t.install=function(e){if((e=e||{}).environment&&(c=e.environment,-1===["node","browser","auto"].indexOf(c)))throw new Error("environment "+c+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(d.length=0),d.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(m.length=0),m.unshift(e.retrieveSourceMap)),e.hookRequire&&!f()){var t;try{t=n(8188)}catch(e){}var r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(e,t){return u[t]=e,h[t]=void 0,r.call(this,e,t)},t.prototype._compile.__sourceMapSupport=!0)}var i;l||(l="emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations),o||(o=!0,Error.prepareStackTrace=R),a||(!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions)&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(a=!0,i=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(t&&!n)return A(arguments[1])}return i.apply(this,arguments)})}},1862:(e,t,n)=>{var r=n(6268),i=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function o(){this._array=[],this._set=s?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},o.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var n=s?e:r.toSetString(e),o=s?this.has(e):i.call(this._set,n),a=this._array.length;o&&!t||this._array.push(e),o||(s?this._set.set(e,a):this._set[n]=a)},o.prototype.has=function(e){if(s)return this._set.has(e);var t=r.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.I=o},4754:(e,t,n)=>{var r=n(5978);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,s,o,a,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&s),c+=(s&=31)<<u,u+=5}while(i);n.value=(a=(o=c)>>1,1==(1&o)?-a:a),n.rest=t}},5978:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},5583:(e,t)=>{function n(e,r,i,s,o,a){var l=Math.floor((r-e)/2)+e,c=o(i,s[l],!0);return 0===c?l:c>0?r-l>1?n(l,r,i,s,o,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:l:l-e>1?n(e,l,i,s,o,a):a==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,s){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,s||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o}},6546:(e,t,n)=>{var r=n(6268);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,s,o,a;n=e,i=(t=this._last).generatedLine,s=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,s>i||s==i&&a>=o||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=i},9888:(e,t)=>{function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,s){if(i<s){var o=i-1;n(e,(u=i,h=s,Math.round(u+Math.random()*(h-u))),s);for(var a=e[s],l=i;l<s;l++)t(e[l],a)<=0&&n(e,o+=1,l);n(e,o+1,l);var c=o+1;r(e,t,i,c-1),r(e,t,c+1,s)}var u,h}t.U=function(e,t){r(e,t,0,e.length-1)}},5600:(e,t,n)=>{var r=n(6268),i=n(5583),s=n(1862).I,o=n(4754),a=n(9888).U;function l(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new h(t):new c(t)}function c(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),a=r.getArg(t,"sourceRoot",null),l=r.getArg(t,"sourcesContent",null),c=r.getArg(t,"mappings"),u=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i=i.map(String).map(r.normalize).map((function(e){return a&&r.isAbsolute(a)&&r.isAbsolute(e)?r.relative(a,e):e})),this._names=s.fromArray(o.map(String),!0),this._sources=s.fromArray(i,!0),this.sourceRoot=a,this.sourcesContent=l,this._mappings=c,this.file=u}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function h(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new s,this._names=new s;var o={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),i=r.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new l(r.getArg(e,"map"))}}))}l.fromSourceMap=function(e){return c.fromSourceMap(e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var i,s=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:i=this._generatedMappings;break;case l.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=r.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.fromSourceMap=function(e){var t=Object.create(c.prototype),n=t._names=s.fromArray(e._names.toArray(),!0),i=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),l=t.__generatedMappings=[],h=t.__originalMappings=[],p=0,d=o.length;p<d;p++){var m=o[p],f=new u;f.generatedLine=m.generatedLine,f.generatedColumn=m.generatedColumn,m.source&&(f.source=i.indexOf(m.source),f.originalLine=m.originalLine,f.originalColumn=m.originalColumn,m.name&&(f.name=n.indexOf(m.name)),h.push(f)),l.push(f)}return a(t.__originalMappings,r.compareByOriginalPositions),t},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e}),this)}}),c.prototype._parseMappings=function(e,t){for(var n,i,s,l,c,h=1,p=0,d=0,m=0,f=0,g=0,y=e.length,w=0,b={},v={},C=[],S=[];w<y;)if(";"===e.charAt(w))h++,w++,p=0;else if(","===e.charAt(w))w++;else{for((n=new u).generatedLine=h,l=w;l<y&&!this._charIsMappingSeparator(e,l);l++);if(s=b[i=e.slice(w,l)])w+=i.length;else{for(s=[];w<l;)o.decode(e,w,v),c=v.value,w=v.rest,s.push(c);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");b[i]=s}n.generatedColumn=p+s[0],p=n.generatedColumn,s.length>1&&(n.source=f+s[1],f+=s[1],n.originalLine=d+s[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=m+s[3],m=n.originalColumn,s.length>4&&(n.name=g+s[4],g+=s[4])),S.push(n),"number"==typeof n.originalLine&&C.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(C,r.compareByOriginalPositions),this.__originalMappings=C},c.prototype._findMapping=function(e,t,n,r,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,s,o)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var s=r.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=r.join(this.sourceRoot,s)));var o=r.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},h.prototype=Object.create(l.prototype),h.prototype.constructor=l,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),h.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},h.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var l=s[o],c=i.consumer._sources.at(l.source);null!==i.consumer.sourceRoot&&(c=r.join(i.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var u=i.consumer._names.at(l.name);this._names.add(u),u=this._names.indexOf(u);var h={source:c,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)}},9947:(e,t,n)=>{var r=n(4754),i=n(6268),s=n(1862).I,o=n(6546).H;function a(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new o,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)})),n},a.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),s=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,s),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:s})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=i.relative(o,r));var a=new s,l=new s;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=i.join(n,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=a,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,s,o=0,a=1,l=0,c=0,u=0,h=0,p="",d=this._mappings.toArray(),m=0,f=d.length;m<f;m++){if(e="",(t=d[m]).generatedLine!==a)for(o=0;t.generatedLine!==a;)e+=";",a++;else if(m>0){if(!i.compareByGeneratedPositionsInflated(t,d[m-1]))continue;e+=","}e+=r.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(s=this._sources.indexOf(t.source),e+=r.encode(s-h),h=s,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.h=a},4047:(e,t,n)=>{var r=n(9947).h,i=n(6268),s=/(\r?\n)/,o="$$$isSourceNode$$$";function a(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,o=e.split(s),l=0,c=function(){return e()+(e()||"");function e(){return l<o.length?o[l++]:void 0}},u=1,h=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(u<e.generatedLine)){var t=(n=o[l]).substr(0,e.generatedColumn-h);return o[l]=n.substr(e.generatedColumn-h),h=e.generatedColumn,d(p,t),void(p=e)}d(p,c()),u++,h=0}for(;u<e.generatedLine;)r.add(c()),u++;if(h<e.generatedColumn){var n=o[l];r.add(n.substr(0,e.generatedColumn)),o[l]=n.substr(e.generatedColumn),h=e.generatedColumn}p=e}),this),l<o.length&&(p&&d(p,c()),r.add(o.splice(l).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,s))})),r;function d(e,t){if(null===e||void 0===e.source)r.add(t);else{var s=n?i.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,s,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,s=null,o=null,a=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(s===r.source&&o===r.line&&a===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),s=r.source,o=r.line,a=r.column,l=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(s=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}}},6268:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function s(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var o,a=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=a?"/":"."),r?(r.path=n,s(r)):n}t.urlParse=i,t.urlGenerate=s,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),a=i(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),s(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,s(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,s(a)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=a?l:function(e){return c(e)?"$"+e:e},t.fromSetString=a?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!=(r=e.source-t.source)||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)}},6947:(e,t,n)=>{n(9947).h,t.SourceMapConsumer=n(5600).SourceMapConsumer,n(4047)},6097:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}},4878:e=>{!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n="undefined"!=typeof window,r=n&&null!=window.mozInnerScreenX;function i(e,i,s){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var o=s&&s.debug||!1;if(o){var a=document.querySelector("#input-textarea-caret-position-mirror-div");a&&a.parentNode.removeChild(a)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,u=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",o||(c.visibility="hidden"),t.forEach((function(e){c[e]=u[e]})),r?e.scrollHeight>parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=e.value.substring(0,i),"INPUT"===e.nodeName&&(l.textContent=l.textContent.replace(/\s/g," "));var h=document.createElement("span");h.textContent=e.value.substring(i)||".",l.appendChild(h);var p={top:h.offsetTop+parseInt(u.borderTopWidth),left:h.offsetLeft+parseInt(u.borderLeftWidth)};return o?h.style.backgroundColor="#aaa":document.body.removeChild(l),p}void 0!==e.exports?e.exports=i:n&&(window.getCaretCoordinates=i)}()},4143:(e,t,n)=>{"use strict";const r=n(2037).homedir();e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return r?e.replace(/^~($|\/|\\)/,`${r}$1`):e}},4515:(e,t,n)=>{"use strict";const r=n(2037),i=n(8734),s=n(2878),o=()=>{const{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME},a=()=>{try{return r.userInfo().username}catch(e){}},l=e=>`no-username-${e}`;e.exports=s((async()=>{const e=o();if(e)return e;const t=a();if(t)return t;try{const e=await i.stdout("id",["-u"]);try{return await i.stdout("id",["-un",e])}catch(e){}return l(e)}catch(e){}})),e.exports.sync=s((()=>{const e=o();if(e)return e;const t=a();if(t)return t;try{const e=i.sync("id",["-u"]).stdout;try{return i.sync("id",["-un",e]).stdout}catch(e){}return l(e)}catch(e){}}))},9599:(e,t,n)=>{var r=n(1616),i=n(4790),s=i;s.v1=r,s.v4=i,e.exports=s},1875:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]}},8621:e=>{var t,n=global.crypto||global.msCrypto;if(n&&n.getRandomValues){var r=new Uint8Array(16);t=function(){return n.getRandomValues(r),r}}if(!t){var i=new Array(16);t=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}e.exports=t},1616:(e,t,n)=>{var r=n(8621),i=n(1875),s=r(),o=[1|s[0],s[1],s[2],s[3],s[4],s[5]],a=16383&(s[6]<<8|s[7]),l=0,c=0;e.exports=function(e,t,n){var r=t&&n||0,s=t||[],u=void 0!==(e=e||{}).clockseq?e.clockseq:a,h=void 0!==e.msecs?e.msecs:(new Date).getTime(),p=void 0!==e.nsecs?e.nsecs:c+1,d=h-l+(p-c)/1e4;if(d<0&&void 0===e.clockseq&&(u=u+1&16383),(d<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,a=u;var m=(1e4*(268435455&(h+=122192928e5))+p)%4294967296;s[r++]=m>>>24&255,s[r++]=m>>>16&255,s[r++]=m>>>8&255,s[r++]=255&m;var f=h/4294967296*1e4&268435455;s[r++]=f>>>8&255,s[r++]=255&f,s[r++]=f>>>24&15|16,s[r++]=f>>>16&255,s[r++]=u>>>8|128,s[r++]=255&u;for(var g=e.node||o,y=0;y<6;++y)s[r+y]=g[y];return t||i(s)}},4790:(e,t,n)=>{var r=n(8621),i=n(1875);e.exports=function(e,t,n){var s=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[s+a]=o[a];return t||i(o)}},7587:e=>{"use strict";e.exports=function(){}},9891:(e,t,n)=>{e.exports=c,c.sync=function(e,t){for(var n=l(e,t=t||{}),r=n.env,s=n.ext,c=n.extExe,u=[],h=0,p=r.length;h<p;h++){var d=r[h];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var m=i.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m);for(var f=0,g=s.length;f<g;f++){var y=m+s[f];try{if(o.sync(y,{pathExt:c})){if(!t.all)return y;u.push(y)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw a(e)};var r="cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=n(1017),s=r?";":":",o=n(557);function a(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function l(e,t){var n=t.colon||s,i=t.path||process.env.PATH||"",o=[""];i=i.split(n);var a="";return r&&(i.unshift(process.cwd()),o=(a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(n),-1!==e.indexOf(".")&&""!==o[0]&&o.unshift("")),(e.match(/\//)||r&&e.match(/\\/))&&(i=[""]),{env:i,ext:o,extExe:a}}function c(e,t,n){"function"==typeof t&&(n=t,t={});var r=l(e,t),s=r.env,c=r.ext,u=r.extExe,h=[];!function r(l,p){if(l===p)return t.all&&h.length?n(null,h):n(a(e));var d=s[l];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var m=i.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m),function e(i,s){if(i===s)return r(l+1,p);var a=c[i];o(m+a,{pathExt:u},(function(r,o){if(!r&&o){if(!t.all)return n(null,m+a);h.push(m+a)}return e(i+1,s)}))}(0,c.length)}(0,s.length)}},8492:(e,t)=>{"use strict"},4934:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},3736:e=>{e.exports=e=>{const t=process.versions.node.split(".").map((e=>parseInt(e,10)));return e=e.split(".").map((e=>parseInt(e,10))),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}},33:(e,t,n)=>{e=n.nmd(e);const r=n(1017).join(__dirname,"desktop-notifications.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},6980:(e,t,n)=>{e=n.nmd(e);const r=n(1017).join(__dirname,"fs_admin.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},8469:(e,t,n)=>{e=n.nmd(e);const r=n(1017).join(__dirname,"keytar.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},5302:(e,t,n)=>{"use strict";const r=n(77),i=n(1017),s=n(1381).mkdirsSync,o=n(318).utimesMillisSync,a=n(2733);function l(e,t,n,s){if(!s.filter||s.filter(t,n))return function(e,t,n,s){const o=(s.dereference?r.statSync:r.lstatSync)(t);return o.isDirectory()?function(e,t,n,i,s){if(!t)return function(e,t,n,i){return r.mkdirSync(n),h(t,n,i),u(n,e)}(e.mode,n,i,s);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return h(n,i,s)}(o,e,t,n,s):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?function(e,t,n,i,s){return t?function(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),c(e,t,n,i);if(i.errorOnExist)throw new Error(`'${n}' 已存在`)}(e,n,i,s):c(e,n,i,s)}(o,e,t,n,s):o.isSymbolicLink()?function(e,t,n,s){let o=r.readlinkSync(t);if(s.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return r.symlinkSync(o,n);throw e}if(s.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}(o,n)}return r.symlinkSync(o,n)}(e,t,n,s):void 0}(e,t,n,s)}function c(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){u(e,128|t)}(n,e),function(e,t){const n=r.statSync(e);o(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),u(n,e.mode)}function u(e,t){return r.chmodSync(e,t)}function h(e,t,n){r.readdirSync(e).forEach((r=>function(e,t,n,r){const s=i.join(t,e),o=i.join(n,e),{destStat:c}=a.checkPathsSync(s,o,"copy");return l(c,s,o,r)}(r,e,t,n)))}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:o,destStat:c}=a.checkPathsSync(e,t,"copy");return a.checkParentPathsSync(e,o,t,"copy"),function(e,t,n,o){if(o.filter&&!o.filter(t,n))return;const a=i.dirname(n);return r.existsSync(a)||s(a),l(e,t,n,o)}(c,e,t,n)}},8690:(e,t,n)=>{"use strict";e.exports={copySync:n(5302)}},7189:(e,t,n)=>{"use strict";const r=n(77),i=n(1017),s=n(1381).mkdirs,o=n(9257).pathExists,a=n(318).utimesMillis,l=n(2733);function c(e,t,n,r,a){const l=i.dirname(n);o(l,((i,o)=>i?a(i):o?h(e,t,n,r,a):void s(l,(i=>i?a(i):h(e,t,n,r,a)))))}function u(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then((o=>o?e(t,n,r,i,s):s()),(e=>s(e)))}function h(e,t,n,r,i){return r.filter?u(p,e,t,n,r,i):p(e,t,n,r,i)}function p(e,t,n,s,o){(s.dereference?r.stat:r.lstat)(t,((a,c)=>a?o(a):c.isDirectory()?function(e,t,n,i,s,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`)):g(n,i,s,o):function(e,t,n,i,s){r.mkdir(n,(r=>{if(r)return s(r);g(t,n,i,(t=>t?s(t):f(n,e,s)))}))}(e.mode,n,i,s,o)}(c,e,t,n,s,o):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?function(e,t,n,i,s,o){return t?function(e,t,n,i,s){if(!i.overwrite)return i.errorOnExist?s(new Error(`'${n}' 已存在`)):s();r.unlink(n,(r=>r?s(r):d(e,t,n,i,s)))}(e,n,i,s,o):d(e,n,i,s,o)}(c,e,t,n,s,o):c.isSymbolicLink()?function(e,t,n,s,o){r.readlink(t,((t,a)=>t?o(t):(s.dereference&&(a=i.resolve(process.cwd(),a)),e?void r.readlink(n,((t,c)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?r.symlink(a,n,o):o(t):(s.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(a,c)?o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&l.isSrcSubdir(c,a)?o(new Error(`Cannot overwrite '${c}' with '${a}'.`)):function(e,t,n){r.unlink(t,(i=>i?n(i):r.symlink(e,t,n)))}(a,n,o)))):r.symlink(a,n,o))))}(e,t,n,s,o):void 0))}function d(e,t,n,i,s){r.copyFile(t,n,(r=>r?s(r):i.preserveTimestamps?function(e,t,n,r){return function(e){return 0==(128&e)}(e)?function(e,t,n){return f(e,128|t,n)}(n,e,(i=>i?r(i):m(e,t,n,r))):m(e,t,n,r)}(e.mode,t,n,s):f(n,e.mode,s)))}function m(e,t,n,i){!function(e,t,n){r.stat(e,((e,r)=>e?n(e):a(t,r.atime,r.mtime,n)))}(t,n,(t=>t?i(t):f(n,e,i)))}function f(e,t,n){return r.chmod(e,t,n)}function g(e,t,n,i){r.readdir(e,((r,s)=>r?i(r):y(s,e,t,n,i)))}function y(e,t,n,r,s){const o=e.pop();return o?function(e,t,n,r,s,o){const a=i.join(n,t),c=i.join(r,t);l.checkPaths(a,c,"copy",((t,i)=>{if(t)return o(t);const{destStat:l}=i;h(l,a,c,s,(t=>t?o(t):y(e,n,r,s,o)))}))}(e,o,t,n,r,s):s()}e.exports=function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),l.checkPaths(e,t,"copy",((i,s)=>{if(i)return r(i);const{srcStat:o,destStat:a}=s;l.checkParentPaths(e,o,t,"copy",(i=>i?r(i):n.filter?u(c,a,e,t,n,r):c(a,e,t,n,r)))}))}},6464:(e,t,n)=>{"use strict";const r=n(8981).E;e.exports={copy:r(n(7189))}},5590:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(77),s=n(1017),o=n(1381),a=n(4542),l=r((function(e,t){t=t||function(){},i.readdir(e,((n,r)=>{if(n)return o.mkdirs(e,t);r=r.map((t=>s.join(e,t))),function e(){const n=r.pop();if(!n)return t();a.remove(n,(n=>{if(n)return t(n);e()}))}()}))}));function c(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:c,emptydirSync:c,emptyDir:l,emptydir:l}},6530:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(1017),s=n(77),o=n(1381);e.exports={createFile:r((function(e,t){function n(){s.writeFile(e,"",(e=>{if(e)return t(e);t()}))}s.stat(e,((r,a)=>{if(!r&&a.isFile())return t();const l=i.dirname(e);s.stat(l,((e,r)=>{if(e)return"ENOENT"===e.code?o.mkdirs(l,(e=>{if(e)return t(e);n()})):t(e);r.isDirectory()?n():s.readdir(l,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const n=i.dirname(e);try{s.statSync(n).isDirectory()||s.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;o.mkdirsSync(n)}s.writeFileSync(e,"")}}},1720:(e,t,n)=>{"use strict";const r=n(6530),i=n(4147),s=n(3635);e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}},4147:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(1017),s=n(77),o=n(1381),a=n(9257).pathExists;e.exports={createLink:r((function(e,t,n){function r(e,t){s.link(e,t,(e=>{if(e)return n(e);n(null)}))}a(t,((l,c)=>l?n(l):c?n(null):void s.lstat(e,(s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),n(s);const l=i.dirname(t);a(l,((i,s)=>i?n(i):s?r(e,t):void o.mkdirs(l,(i=>{if(i)return n(i);r(e,t)}))))}))))})),createLinkSync:function(e,t){if(s.existsSync(t))return;try{s.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(e,t)}}},6072:(e,t,n)=>{"use strict";const r=n(1017),i=n(77),s=n(9257).pathExists;e.exports={symlinkPaths:function(e,t,n){if(r.isAbsolute(e))return i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const o=r.dirname(t),a=r.join(o,e);return s(a,((t,s)=>t?n(t):s?n(null,{toCwd:a,toDst:e}):i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))))}},symlinkPathsSync:function(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const s=r.dirname(t),o=r.join(s,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(s,e)}}}}},9259:(e,t,n)=>{"use strict";const r=n(77);e.exports={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);r.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=r.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},3635:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(1017),s=n(77),o=n(1381),a=o.mkdirs,l=o.mkdirsSync,c=n(6072),u=c.symlinkPaths,h=c.symlinkPathsSync,p=n(9259),d=p.symlinkType,m=p.symlinkTypeSync,f=n(9257).pathExists;e.exports={createSymlink:r((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,f(t,((o,l)=>o?r(o):l?r(null):void u(e,t,((o,l)=>{if(o)return r(o);e=l.toDst,d(l.toCwd,n,((n,o)=>{if(n)return r(n);const l=i.dirname(t);f(l,((n,i)=>n?r(n):i?s.symlink(e,t,o,r):void a(l,(n=>{if(n)return r(n);s.symlink(e,t,o,r)}))))}))}))))})),createSymlinkSync:function(e,t,n){if(s.existsSync(t))return;const r=h(e,t);e=r.toDst,n=m(r.toCwd,n);const o=i.dirname(t);return s.existsSync(o)||l(o),s.symlinkSync(e,t,n)}}},7749:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(77),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.keys(i).forEach((e=>{"promises"!==e&&(t[e]=i[e])})),s.forEach((e=>{t[e]=r(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,n,r,s,o){return"function"==typeof o?i.read(e,t,n,r,s,o):new Promise(((o,a)=>{i.read(e,t,n,r,s,((e,t,n)=>{if(e)return a(e);o({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?i.write(e,t,...n):new Promise(((r,s)=>{i.write(e,t,...n,((e,t,n)=>{if(e)return s(e);r({bytesWritten:t,buffer:n})}))}))},"function"==typeof i.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?i.writev(e,t,...n):new Promise(((r,s)=>{i.writev(e,t,...n,((e,t,n)=>{if(e)return s(e);r({bytesWritten:t,buffers:n})}))}))}),"function"==typeof i.realpath.native&&(t.realpath.native=r(i.realpath.native))},4639:(e,t,n)=>{"use strict";e.exports={...n(7749),...n(8690),...n(6464),...n(5590),...n(1720),...n(6573),...n(1381),...n(4026),...n(530),...n(1315),...n(9257),...n(4542)};const r=n(7147);Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>r.promises})},6573:(e,t,n)=>{"use strict";const r=n(8981).p,i=n(7183);i.outputJson=r(n(3508)),i.outputJsonSync=n(9578),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},7183:(e,t,n)=>{"use strict";const r=n(6813);e.exports={readJson:r.readFile,readJsonSync:r.readFileSync,writeJson:r.writeFile,writeJsonSync:r.writeFileSync}},9578:(e,t,n)=>{"use strict";const{stringify:r}=n(6780),{outputFileSync:i}=n(1315);e.exports=function(e,t,n){const s=r(t,n);i(e,s,n)}},3508:(e,t,n)=>{"use strict";const{stringify:r}=n(6780),{outputFile:i}=n(1315);e.exports=async function(e,t,n={}){const s=r(t,n);await i(e,s,n)}},1381:(e,t,n)=>{"use strict";const r=n(8981).p,{makeDir:i,makeDirSync:s}=n(8233),o=r(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},8233:(e,t,n)=>{"use strict";const r=n(7749),i=n(1017),s=n(3736)("10.12.0"),o=e=>("number"==typeof e&&(e={mode:e}),{mode:511,...e}),a=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};e.exports.makeDir=async(e,t)=>{if(t=o(t),s){const n=i.resolve(e);return r.mkdir(n,{mode:t.mode,recursive:!0})}const n=async e=>{try{await r.mkdir(e,t.mode)}catch(t){if("EPERM"===t.code)throw t;if("ENOENT"===t.code){if(i.dirname(e)===e)throw a(e);if(t.message.includes("null bytes"))throw t;return await n(i.dirname(e)),n(e)}try{if(!(await r.stat(e)).isDirectory())throw new Error("The path is not a directory")}catch{throw t}}};return n(i.resolve(e))},e.exports.makeDirSync=(e,t)=>{if(t=o(t),s){const n=i.resolve(e);return r.mkdirSync(n,{mode:t.mode,recursive:!0})}const n=e=>{try{r.mkdirSync(e,t.mode)}catch(t){if("EPERM"===t.code)throw t;if("ENOENT"===t.code){if(i.dirname(e)===e)throw a(e);if(t.message.includes("null bytes"))throw t;return n(i.dirname(e)),n(e)}try{if(!r.statSync(e).isDirectory())throw new Error("The path is not a directory")}catch{throw t}}};return n(i.resolve(e))}},4026:(e,t,n)=>{"use strict";e.exports={moveSync:n(6006)}},6006:(e,t,n)=>{"use strict";const r=n(77),i=n(1017),s=n(8690).copySync,o=n(4542).removeSync,a=n(1381).mkdirpSync,l=n(2733);function c(e,t,n){try{r.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,n){return s(e,t,{overwrite:n,errorOnExist:!0}),o(e)}(e,t,n)}}e.exports=function(e,t,n){const s=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=l.checkPathsSync(e,t,"move");return l.checkParentPathsSync(e,u,t,"move"),a(i.dirname(t)),function(e,t,n){if(n)return o(t),c(e,t,n);if(r.existsSync(t))throw new Error("dest already exists.");return c(e,t,n)}(e,t,s)}},530:(e,t,n)=>{"use strict";const r=n(8981).E;e.exports={move:r(n(436))}},436:(e,t,n)=>{"use strict";const r=n(77),i=n(1017),s=n(6464).copy,o=n(4542).remove,a=n(1381).mkdirp,l=n(9257).pathExists,c=n(2733);function u(e,t,n,i){r.rename(e,t,(r=>r?"EXDEV"!==r.code?i(r):function(e,t,n,r){s(e,t,{overwrite:n,errorOnExist:!0},(t=>t?r(t):o(e,r)))}(e,t,n,i):i()))}e.exports=function(e,t,n,r){"function"==typeof n&&(r=n,n={});const s=n.overwrite||n.clobber||!1;c.checkPaths(e,t,"move",((n,h)=>{if(n)return r(n);const{srcStat:p}=h;c.checkParentPaths(e,p,t,"move",(n=>{if(n)return r(n);a(i.dirname(t),(n=>n?r(n):function(e,t,n,r){if(n)return o(t,(i=>i?r(i):u(e,t,n,r)));l(t,((i,s)=>i?r(i):s?r(new Error("dest already exists.")):u(e,t,n,r)))}(e,t,s,r)))}))}))}},1315:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(77),s=n(1017),o=n(1381),a=n(9257).pathExists;e.exports={outputFile:r((function(e,t,n,r){"function"==typeof n&&(r=n,n="utf8");const l=s.dirname(e);a(l,((s,a)=>s?r(s):a?i.writeFile(e,t,n,r):void o.mkdirs(l,(s=>{if(s)return r(s);i.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){const n=s.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);o.mkdirsSync(n),i.writeFileSync(e,...t)}}},9257:(e,t,n)=>{"use strict";const r=n(8981).p,i=n(7749);e.exports={pathExists:r((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},4542:(e,t,n)=>{"use strict";const r=n(8981).E,i=n(3456);e.exports={remove:r(i),removeSync:i.sync}},3456:(e,t,n)=>{"use strict";const r=n(77),i=n(1017),s=n(9491);function o(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||r[t],e[t+="Sync"]=e[t]||r[t]})),e.maxBusyTries=e.maxBusyTries||3}function a(e,t,n){let r=0;"function"==typeof t&&(n=t,t={}),s(e,"rimraf: missing path"),s.strictEqual(typeof e,"string","rimraf: path should be a string"),s.strictEqual(typeof n,"function","rimraf: callback function required"),s(t,"rimraf: invalid options argument provided"),s.strictEqual(typeof t,"object","rimraf: options should be object"),o(t),l(e,t,(function i(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&r<t.maxBusyTries)return r++,setTimeout((()=>l(e,t,i)),100*r);"ENOENT"===s.code&&(s=null)}n(s)}))}function l(e,t,n){s(e),s(t),s("function"==typeof n),t.lstat(e,((r,i)=>r&&"ENOENT"===r.code?n(null):(r&&r.code,i&&i.isDirectory()?c(e,t,r,n):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return c(e,t,r,n);if("EISDIR"===r.code)return c(e,t,r,n)}return n(r)})))))}function c(e,t,n,r){s(e),s(t),s("function"==typeof r),t.rmdir(e,(o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?r(n):r(o):function(e,t,n){s(e),s(t),s("function"==typeof n),t.readdir(e,((r,s)=>{if(r)return n(r);let o,l=s.length;if(0===l)return t.rmdir(e,n);s.forEach((r=>{a(i.join(e,r),t,(r=>{if(!o)return r?n(o=r):void(0==--l&&t.rmdir(e,n))}))}))}))}(e,t,r)}))}function u(e,t){let n;o(t=t||{}),s(e,"rimraf: missing path"),s.strictEqual(typeof e,"string","rimraf: path should be a string"),s(t,"rimraf: missing options"),s.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(e){if("ENOENT"===e.code)return;e.code}try{n&&n.isDirectory()?h(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return h(e,t,n);if("EISDIR"!==n.code)throw n;h(e,t,n)}}function h(e,t,n){s(e),s(t);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){s(e),s(t),t.readdirSync(e).forEach((n=>u(i.join(e,n),t))),t.rmdirSync(e,t)}(e,t);else if("ENOENT"!==r.code)throw r}}e.exports=a,a.sync=u},2733:(e,t,n)=>{"use strict";const r=n(7749),i=n(1017),s=n(3837),o=n(3736)("10.5.0"),a=e=>o?r.stat(e,{bigint:!0}):r.stat(e),l=e=>o?r.statSync(e,{bigint:!0}):r.statSync(e);function c(e,t){return Promise.all([a(e),a(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function u(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(o||t.ino<Number.MAX_SAFE_INTEGER)return!0;if(t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs)return!0}return!1}function h(e,t){const n=i.resolve(e).split(i.sep).filter((e=>e)),r=i.resolve(t).split(i.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&r[n]===t),!0)}function p(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,n,r){s.callbackify(c)(e,t,((i,s)=>{if(i)return r(i);const{srcStat:o,destStat:a}=s;return a&&u(o,a)?r(new Error("Source and destination must not be the same.")):o.isDirectory()&&h(e,t)?r(new Error(p(e,t,n))):r(null,{srcStat:o,destStat:a})}))},checkPathsSync:function(e,t,n){const{srcStat:r,destStat:i}=function(e,t){let n;const r=l(e);try{n=l(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:n}}(e,t);if(i&&u(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&h(e,t))throw new Error(p(e,t,n));return{srcStat:r,destStat:i}},checkParentPaths:function e(t,n,s,a,l){const c=i.resolve(i.dirname(t)),h=i.resolve(i.dirname(s));if(h===c||h===i.parse(h).root)return l();const d=(r,i)=>r?"ENOENT"===r.code?l():l(r):u(n,i)?l(new Error(p(t,s,a))):e(t,n,h,a,l);o?r.stat(h,{bigint:!0},d):r.stat(h,d)},checkParentPathsSync:function e(t,n,r,s){const o=i.resolve(i.dirname(t)),a=i.resolve(i.dirname(r));if(a===o||a===i.parse(a).root)return;let c;try{c=l(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(u(n,c))throw new Error(p(t,r,s));return e(t,n,a,s)},isSrcSubdir:h}},318:(e,t,n)=>{"use strict";const r=n(77);e.exports={utimesMillis:function(e,t,n,i){r.open(e,"r+",((e,s)=>{if(e)return i(e);r.futimes(s,t,n,(e=>{r.close(s,(t=>{i&&i(e||t)}))}))}))},utimesMillisSync:function(e,t,n){const i=r.openSync(e,"r+");return r.futimesSync(i,t,n),r.closeSync(i)}}},6458:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},77:(e,t,n)=>{var r,i,s=n(7147),o=n(2161),a=n(8520),l=n(6458),c=n(3837);function u(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",i="___graceful-fs.previous");var h,p=function(){};if(c.debuglog?p=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!s[r]){var d=global[r]||[];u(s,d),s.close=function(e){function t(t,n){return e.call(s,t,(function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(s[r]),n(9491).equal(s[r].length,0)}))}function m(e){o(e),e.gracefulify=m,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){return"function"==typeof n&&(r=n,n=null),function e(n,r,i,s){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):f([e,[n,r,i],t,s||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,s,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,r,i,s],n,o||Date.now(),Date.now()])}))}(e,t,r,i)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,s,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,n,i,s],r,o||Date.now(),Date.now()])}))}(e,t,n,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=0),function e(t,n,r,s,o){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,n,r,s],i,o||Date.now(),Date.now()])}))}(e,t,n,r)});var s=e.readdir;if(e.readdir=function(e,t,n){return"function"==typeof t&&(n=t,t=null),function e(t,n,r,i){return s(t,n,(function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):f([e,[t,n,r],s,i||Date.now(),Date.now()])}))}(e,t,n)},"v0.8"===process.version.substr(0,4)){var l=a(e);d=l.ReadStream,g=l.WriteStream}var c=e.ReadStream;c&&(d.prototype=Object.create(c.prototype),d.prototype.open=function(){var e=this;w(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var u=e.WriteStream;u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var e=this;w(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var h=d;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var p=g;function d(e,t){return this instanceof d?(c.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function g(e,t){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var y=e.open;function w(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,s){return y(t,n,r,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):f([e,[t,n,r,i],o,s||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=w,e}function f(e){p("ENQUEUE",e[0].name,e[1]),s[r].push(e),y()}function g(){for(var e=Date.now(),t=0;t<s[r].length;++t)s[r][t].length>2&&(s[r][t][3]=e,s[r][t][4]=e);y()}function y(){if(clearTimeout(h),h=void 0,0!==s[r].length){var e=s[r].shift(),t=e[0],n=e[1],i=e[2],o=e[3],a=e[4];if(void 0===o)p("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-o>=6e4){p("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,i)}else{var c=Date.now()-a,u=Math.max(a-o,1);c>=Math.min(1.2*u,100)?(p("RETRY",t.name,n),t.apply(null,n.concat([o]))):s[r].push(e)}void 0===h&&(h=setTimeout(y,0))}}global[r]||u(global,s[r]),e.exports=m(l(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=m(s),s.__patched=!0)},8520:(e,t,n)=>{var r=n(2781).Stream;e.exports=function(e){return{ReadStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var c=o[a];this[c]=i[c]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()})):process.nextTick((function(){s._read()}))},WriteStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2161:(e,t,n)=>{var r=n(2057),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||"linux";process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){var t,n;function i(t){return t?function(n,r,i){return t.call(e,n,r,(function(e){h(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function s(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!h(e))throw e}}:t}function a(t){return t?function(n,r,i,s){return t.call(e,n,r,i,(function(e){h(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function l(t){return t?function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!h(e))throw e}}:t}function c(t){return t?function(n,r,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?t.call(e,n,r,s):t.call(e,n,s)}:t}function u(t){return t?function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function h(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){t?i&&i(t):e.fchmod(r,n,(function(t){e.close(r,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,n){var i,s=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),o=!0;try{i=e.fchmodSync(s,n),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}(e),e.lutimes||function(e){r.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,n,i,s){e.open(t,r.O_SYMLINK,(function(t,r){t?s&&s(t):e.futimes(r,n,i,(function(t){e.close(r,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,n,i){var s,o=e.openSync(t,r.O_SYMLINK),a=!0;try{s=e.futimesSync(o,n,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=l(e.chownSync),e.fchownSync=l(e.fchownSync),e.lchownSync=l(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),"win32"===o&&(e.rename=(t=e.rename,function(n,r,i){var s=Date.now(),o=0;t(n,r,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(r,(function(e,s){e&&"ENOENT"===e.code?t(n,r,a):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))})),e.read=function(t){function n(n,r,i,s,o,a){var l;if(a&&"function"==typeof a){var c=0;l=function(u,h,p){if(u&&"EAGAIN"===u.code&&c<10)return c++,t.call(e,n,r,i,s,o,l);a.apply(this,arguments)}}return t.call(e,n,r,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync=(n=e.readSync,function(t,r,i,s,o){for(var a=0;;)try{return n.call(e,t,r,i,s,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6813:(e,t,n)=>{let r;try{r=n(77)}catch(e){r=n(7147)}const i=n(7293),{stringify:s,stripBom:o}=n(6780),a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||r,s=!("throws"in t)||t.throws;let a,l=await i.fromCallback(n.readFile)(e,t);l=o(l);try{a=JSON.parse(l,t?t.reviver:null)}catch(t){if(s)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||r,i=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=o(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,n={}){const o=n.fs||r,a=s(t,n);await i.fromCallback(o.writeFile)(e,a,n)})),writeFileSync:function(e,t,n={}){const i=n.fs||r,o=s(t,n);return i.writeFileSync(e,o,n)}};e.exports=a},7293:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{e.apply(this,t.concat([(e,t)=>e?r(e):n(t)]))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},6780:e=>{e.exports={stringify:function(e,t={}){const n=t.EOL||"\n";return JSON.stringify(e,t?t.replacer:null,t.spaces).replace(/\n/g,n)+n},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},3822:(e,t,n)=>{"use strict";n.r(t)},4281:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,s,o,a,l;if("string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var c=("number"!=typeof l&&(l=0),l+".".length>(a=e).length||-1===a.indexOf(".",l)?"argument":"property");o='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,n)=>{"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(9481),s=n(4229);n(5717)(c,i);for(var o=r(s.prototype),a=0;a<o.length;a++){var l=o[a];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||process.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2725:(e,t,n)=>{"use strict";e.exports=i;var r=n(4605);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(5717)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},9481:(e,t,n)=>{"use strict";var r;e.exports=k,k.ReadableState=E,n(2361).EventEmitter;var i,s=function(e,t){return e.listeners(t).length},o=n(2503),a=n(4300).Buffer,l=global.Uint8Array||function(){},c=n(3837);i=c&&c.debuglog?c.debuglog("stream"):function(){};var u,h,p,d=n(7327),m=n(1195),f=n(2457).getHighWaterMark,g=n(4281).q,y=g.ERR_INVALID_ARG_TYPE,w=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(5717)(k,o);var C=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(6753),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=f(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(2553).s),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function k(e){if(r=r||n(6753),!(this instanceof k))return new k(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,n,r,s){i("readableAddChunk",t);var o,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,_(e)))}}(e,c);else if(s||(o=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t)),n}(c,t)),o)C(e,o);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r)c.endEmitted?C(e,new v):T(e,c,t,!0);else if(c.ended)C(e,new w);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?T(e,c,t,!1):M(e,c)):T(e,c,t,!1)}else r||(c.reading=!1,M(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&D(e)),M(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},k.prototype.unshift=function(e){return R(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){u||(u=n(2553).s);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var A=1073741824;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(_,e))}function _(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){i("readable nexttick read 0"),e.read(0)}function N(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(H,t,e))}function H(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function U(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}k.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):D(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,s=t.needReadable;return i("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",s=!0),t.ended||t.reading?i("reading or ended",s=!1):s&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},k.prototype._read=function(e){C(this,new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end||e===process.stdout||e===process.stderr?m:a;function a(){i("onend"),e.end()}r.endEmitted?process.nextTick(o):n.once("end",o),e.on("unpipe",(function t(s,o){i("onunpipe"),s===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",m),n.removeListener("data",u),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",l);var c=!1;function u(t){i("ondata");var s=e.write(t);i("dest.write",s),!1===s&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==U(r.pipes,e))&&!c&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){i("onerror",t),m(),e.removeListener("error",h),0===s(e,"error")&&C(e,t)}function p(){e.removeListener("finish",d),m()}function d(){i("onfinish"),e.removeListener("close",p),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",u),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(n):e._events.error=[n,e._events.error]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=U(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},k.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?D(this):r.reading||process.nextTick(O,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(I,this),n},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var s in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(s){i("wrapped data"),n.decoder&&(s=n.decoder.write(s)),n.objectMode&&null==s||(n.objectMode||s&&s.length)&&(t.push(s)||(r=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(5850)),h(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=B,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(e,t){return void 0===p&&(p=n(5167)),p(k,e,t)})},4605:(e,t,n)=>{"use strict";e.exports=u;var r=n(4281).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,s=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(6753);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(t,n){p(e,t,n)}))}function p(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}n(5717)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},4229:(e,t,n)=>{"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=k,k.WritableState=E;var s,o={deprecate:n(4927)},a=n(2503),l=n(4300).Buffer,c=global.Uint8Array||function(){},u=n(1195),h=n(2457).getHighWaterMark,p=n(4281).q,d=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,f=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,w=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,v=p.ERR_UNKNOWN_ENCODING,C=u.errorOrDestroy;function S(){}function E(e,t,s){i=i||n(6753),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(_,e,t),e._writableState.errorEmitted=!0,C(e,r)):(i(r),e._writableState.errorEmitted=!0,C(e,r),_(e,t))}(e,n,r,t,i);else{var s=x(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),r?process.nextTick(T,e,n,s,i):T(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function k(e){var t=this instanceof(i=i||n(6753));if(!t&&!s.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function R(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function T(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),_(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,s=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var a=0,l=!0;n;)s[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;s.allBuffers=l,R(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,h=n.callback;if(R(e,t,!1,t.objectMode?1:c.length,c,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final((function(n){t.pendingcb--,n&&C(e,n),t.prefinished=!0,e.emit("prefinish"),_(e,t)}))}function _(e,t){var n=x(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(D,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(5717)(k,a),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===k&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},k.prototype.pipe=function(){C(this,new g)},k.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,o=!i.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return o&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=S),i.ending?function(e,t){var n=new b;C(e,n),process.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var i;return null===n?i=new w:"string"==typeof n||t.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(C(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,a,r,i,s);return c}(this,i,o,e,t,n)),s},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=u.destroy,k.prototype._undestroy=u.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,n)=>{"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(8610),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function m(e){var t=e[o];if(null!==t){var n=e[p].read();null!==n&&(e[u]=null,e[o]=null,e[a]=null,t(d(n,!1)))}}function f(e){process.nextTick(m,e)}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[l]?n(e[l]):t(d(void 0,!0))}))}));var n,r=this[u];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(d(void 0,!0)):t[h](n,r)}),r)}}(r,this));else{var i=this[p].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[h])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(d(void 0,!0))}))}))})),r),g);e.exports=function(e){var t,n=Object.create(y,(i(t={},p,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var r=n[p].read();r?(n[u]=null,n[o]=null,n[a]=null,e(d(r,!1))):(n[o]=e,n[a]=t)},writable:!0}),t));return n[u]=null,s(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[u]=null,n[o]=null,n[a]=null,t(e)),void(n[l]=e)}var r=n[o];null!==r&&(n[u]=null,n[o]=null,n[a]=null,r(d(void 0,!0))),n[c]=!0})),e.on("readable",f.bind(null,n)),n}},7327:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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)}}var o=n(4300).Buffer,a=n(3837).inspect,l=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=i,r=a,o.prototype.copy.call(t,n,r),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?r+=i:r+=i.slice(0,e),0==(e-=s)){s===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(s));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],n&&s(t.prototype,n),e}()},1195:e=>{"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(n,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):i?(process.nextTick(n,s),i(e)):process.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,n)=>{"use strict";var r=n(4281).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,s){if("function"==typeof n)return e(t,null,n);n||(n={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(s||i);var o=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){a=!1,c=!0,o||s.call(t)},h=t._readableState&&t._readableState.endEmitted,p=function(){o=!1,h=!0,a||s.call(t)},d=function(e){s.call(t,e)},m=function(){var e;return o&&!h?(t._readableState&&t._readableState.ended||(e=new r),s.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new r),s.call(t,e)):void 0},f=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",m),t.req?f():t.on("request",f)):a&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",u),!1!==n.error&&t.on("error",d),t.on("close",m),function(){t.removeListener("complete",u),t.removeListener("abort",m),t.removeListener("request",f),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",p),t.removeListener("error",d),t.removeListener("close",m)}}},5167:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,n)=>{"use strict";var r,i=n(4281).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e,t,i,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var a=!1;e.on("close",(function(){a=!0})),void 0===r&&(r=n(8610)),r(e,{readable:t,writable:i},(function(e){if(e)return s(e);a=!0,s()}));var l=!1;return function(t){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void s(t||new o("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}function h(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map((function(e,n){var s=n<t.length-1;return l(e,s,n>0,(function(e){r||(r=e),e&&o.forEach(c),s||(o.forEach(c),i(r))}))}));return t.reduce(u)}},2457:(e,t,n)=>{"use strict";var r=n(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(i?n:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},2503:(e,t,n)=>{e.exports=n(2361).EventEmitter},8473:(e,t,n)=>{(t=e.exports=n(9481)).Stream=t,t.Readable=t,t.Writable=n(4229),t.Duplex=n(6753),t.Transform=n(4605),t.PassThrough=n(2725),t.finished=n(8610),t.pipeline=n(9946)},9509:(e,t,n)=>{var r=n(4300),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},861:(e,t,n)=>{"use strict";const{Transform:r}=n(8473),{StringDecoder:i}=n(1576),s=Symbol("last"),o=Symbol("decoder");function a(e,t,n){var r;if(this.overflow){if(1===(r=this[o].write(e).split(this.matcher)).length)return n();r.shift(),this.overflow=!1}else this[s]+=this[o].write(e),r=this[s].split(this.matcher);this[s]=r.pop();for(var i=0;i<r.length;i++)try{c(this,this.mapper(r[i]))}catch(e){return n(e)}if(this.overflow=this[s].length>this.maxLength,this.overflow&&!this.skipOverflow)return n(new Error("maximum buffer reached"));n()}function l(e){if(this[s]+=this[o].end(),this[s])try{c(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function c(e,t){void 0!==t&&e.push(t)}function u(e){return e}e.exports=function(e,t,n){switch(e=e||/\r?\n/,t=t||u,n=n||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(n=e,e=/\r?\n/);break;case 2:"function"==typeof e?(n=t,t=e,e=/\r?\n/):"object"==typeof t&&(n=t,t=u)}(n=Object.assign({},n)).transform=a,n.flush=l,n.readableObjectMode=!0;const c=new r(n);return c[s]="",c[o]=new i("utf8"),c.matcher=e,c.mapper=t,c.maxLength=n.maxLength,c.skipOverflow=n.skipOverflow,c.overflow=!1,c}},2553:(e,t,n)=>{"use strict";var r=n(9509).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=h,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},s.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},8156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{measure:()=>a,start:()=>s,stop:()=>o});let r=!1,i=0;function s(){r=!0}function o(){r=!1}async function a(e,t){const n=++i,s=performance&&performance.now?performance.now():null;!function(e,t){if(!r)return;const n=`${e}::${t}`;performance.mark(n)}(n,e);try{return await t()}finally{if(s){const t=performance.now()-s;if(t>1e3){const n=(t/1e3).toFixed(3);log.info(`Executing ${e} (took ${n}s)`)}}!function(e,t){if(!r)return;const n=`${e}::${t}`,i=t;performance.measure(i,n),performance.clearMarks(n),performance.clearMeasures(i)}(n,e)}}},8981:(e,t)=>{"use strict";t.E=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{e.call(this,...t,((e,t)=>null!=e?r(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.p=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},4927:e=>{function t(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return e.apply(this,arguments)}}},4793:(e,t,n)=>{"use strict";e.exports=n.p+"a7b45a45d471743a8d54.cmd"},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},8188:e=>{"use strict";e.exports=require("module")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},3837:e=>{"use strict";e.exports=require("util")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};(()=>{"use strict";n.r(r);var e={};n.r(e),n.d(e,{accessibility:()=>wi,accessibilityInset:()=>bi,alert:()=>vi,alertFill:()=>Ci,apps:()=>Si,archive:()=>Ei,arrowBoth:()=>ki,arrowDown:()=>Ri,arrowDownLeft:()=>Ti,arrowDownRight:()=>Ai,arrowLeft:()=>xi,arrowRight:()=>Di,arrowSwitch:()=>_i,arrowUp:()=>Mi,arrowUpLeft:()=>Pi,arrowUpRight:()=>Ii,beaker:()=>Oi,bell:()=>Ni,bellFill:()=>Li,bellSlash:()=>Bi,blocked:()=>Fi,bold:()=>Hi,book:()=>Ui,bookmark:()=>Zi,bookmarkFill:()=>$i,bookmarkSlash:()=>Wi,bookmarkSlashFill:()=>qi,briefcase:()=>Vi,broadcast:()=>Gi,browser:()=>zi,bug:()=>ji,cache:()=>Ki,calendar:()=>Yi,check:()=>Xi,checkCircle:()=>Qi,checkCircleFill:()=>Ji,checkbox:()=>es,checklist:()=>ts,chevronDown:()=>ns,chevronLeft:()=>rs,chevronRight:()=>is,chevronUp:()=>ss,circle:()=>os,circleSlash:()=>as,clock:()=>ls,clockFill:()=>cs,cloud:()=>us,cloudOffline:()=>hs,code:()=>ps,codeOfConduct:()=>ds,codeReview:()=>ms,codeSquare:()=>fs,codescan:()=>gs,codescanCheckmark:()=>ys,codespaces:()=>ws,columns:()=>bs,commandPalette:()=>vs,comment:()=>Cs,commentDiscussion:()=>Ss,commit:()=>Es,container:()=>ks,copilot:()=>Rs,copilotError:()=>Ts,copilotWarning:()=>As,copy:()=>xs,cpu:()=>Ds,creditCard:()=>_s,crossReference:()=>Ms,dash:()=>Ps,database:()=>Is,dependabot:()=>Os,desktopDownload:()=>Ns,deviceCamera:()=>Ls,deviceCameraVideo:()=>Bs,deviceDesktop:()=>Fs,deviceMobile:()=>Hs,devices:()=>Us,diamond:()=>Zs,diff:()=>$s,diffAdded:()=>Ws,diffIgnored:()=>qs,diffModified:()=>Vs,diffRemoved:()=>Gs,diffRenamed:()=>zs,discussionClosed:()=>js,discussionDuplicate:()=>Ks,discussionOutdated:()=>Ys,dot:()=>Xs,dotFill:()=>Qs,download:()=>Js,duplicate:()=>eo,ellipsis:()=>to,eye:()=>no,eyeClosed:()=>ro,feedDiscussion:()=>io,feedForked:()=>so,feedHeart:()=>oo,feedIssueClosed:()=>ao,feedIssueDraft:()=>lo,feedIssueOpen:()=>co,feedIssueReopen:()=>uo,feedMerged:()=>ho,feedPerson:()=>po,feedPlus:()=>mo,feedPublic:()=>fo,feedPullRequestClosed:()=>go,feedPullRequestDraft:()=>yo,feedPullRequestOpen:()=>wo,feedRepo:()=>bo,feedRocket:()=>vo,feedStar:()=>Co,feedTag:()=>So,feedTrophy:()=>Eo,file:()=>ko,fileAdded:()=>Ro,fileBadge:()=>To,fileBinary:()=>Ao,fileCode:()=>xo,fileDiff:()=>Do,fileDirectory:()=>_o,fileDirectoryFill:()=>Mo,fileDirectoryOpenFill:()=>Po,fileDirectorySymlink:()=>Io,fileMedia:()=>Oo,fileMoved:()=>No,fileRemoved:()=>Lo,fileSubmodule:()=>Bo,fileSymlinkFile:()=>Fo,fileZip:()=>Ho,filter:()=>Uo,filterRemove:()=>Zo,fiscalHost:()=>$o,flame:()=>Wo,fold:()=>qo,foldDown:()=>Vo,foldUp:()=>Go,gear:()=>zo,gift:()=>jo,gitBranch:()=>Ko,gitCommit:()=>Yo,gitCompare:()=>Xo,gitMerge:()=>Qo,gitMergeQueue:()=>Jo,gitPullRequest:()=>ea,gitPullRequestClosed:()=>ta,gitPullRequestDraft:()=>na,globe:()=>ra,goal:()=>ia,grabber:()=>sa,graph:()=>oa,hash:()=>aa,heading:()=>la,heart:()=>ca,heartFill:()=>ua,history:()=>ha,home:()=>pa,homeFill:()=>da,horizontalRule:()=>ma,hourglass:()=>fa,hubot:()=>ga,idBadge:()=>ya,image:()=>wa,inbox:()=>ba,infinity:()=>va,info:()=>Ca,issueClosed:()=>Sa,issueDraft:()=>Ea,issueOpened:()=>ka,issueReopened:()=>Ra,issueTrackedBy:()=>Ta,issueTracks:()=>Aa,italic:()=>xa,iterations:()=>Da,kebabHorizontal:()=>_a,key:()=>Ma,keyAsterisk:()=>Pa,law:()=>Ia,lightBulb:()=>Oa,link:()=>Na,linkExternal:()=>La,listOrdered:()=>Ba,listUnordered:()=>Fa,location:()=>Ha,lock:()=>Ua,log:()=>Za,logoGist:()=>$a,logoGithub:()=>Wa,mail:()=>qa,markGithub:()=>Va,markdown:()=>Ga,megaphone:()=>za,mention:()=>ja,meter:()=>Ka,milestone:()=>Ya,mirror:()=>Xa,moon:()=>Qa,mortarBoard:()=>Ja,moveToBottom:()=>el,moveToEnd:()=>tl,moveToStart:()=>nl,moveToTop:()=>rl,multiSelect:()=>il,mute:()=>sl,noEntry:()=>ol,noEntryFill:()=>al,northStar:()=>ll,note:()=>cl,number:()=>ul,organization:()=>hl,packageDependencies:()=>dl,packageDependents:()=>ml,package_:()=>pl,paintbrush:()=>fl,paperAirplane:()=>gl,paperclip:()=>yl,passkeyFill:()=>wl,paste:()=>bl,pencil:()=>vl,people:()=>Cl,person:()=>Sl,personAdd:()=>El,personFill:()=>kl,pin:()=>Rl,pinSlash:()=>Tl,pivotColumn:()=>Al,play:()=>xl,plug:()=>Dl,plus:()=>_l,plusCircle:()=>Ml,project:()=>Pl,projectRoadmap:()=>Il,projectSymlink:()=>Ol,projectTemplate:()=>Nl,pulse:()=>Ll,question:()=>Bl,quote:()=>Fl,read:()=>Hl,redo:()=>Ul,relFilePath:()=>Zl,reply:()=>$l,repo:()=>Wl,repoClone:()=>ql,repoDeleted:()=>Vl,repoForked:()=>Gl,repoLocked:()=>zl,repoPull:()=>jl,repoPush:()=>Kl,repoTemplate:()=>Yl,report:()=>Xl,rocket:()=>Ql,rows:()=>Jl,rss:()=>ec,ruby:()=>tc,screenFull:()=>nc,screenNormal:()=>rc,search:()=>ic,server:()=>sc,share:()=>oc,shareAndroid:()=>ac,shield:()=>lc,shieldCheck:()=>cc,shieldLock:()=>uc,shieldSlash:()=>hc,shieldX:()=>pc,sidebarCollapse:()=>dc,sidebarExpand:()=>mc,signIn:()=>fc,signOut:()=>gc,singleSelect:()=>yc,skip:()=>wc,skipFill:()=>bc,sliders:()=>vc,smiley:()=>Cc,sortAsc:()=>Sc,sortDesc:()=>Ec,sparkleFill:()=>kc,sponsorTiers:()=>Rc,square:()=>Tc,squareFill:()=>Ac,squirrel:()=>xc,stack:()=>Dc,star:()=>_c,starFill:()=>Mc,stop:()=>Pc,stopwatch:()=>Ic,strikethrough:()=>Oc,sun:()=>Nc,sync:()=>Lc,tab:()=>Bc,tabExternal:()=>Fc,table:()=>Hc,tag:()=>Uc,tasklist:()=>Zc,telescope:()=>$c,telescopeFill:()=>Wc,terminal:()=>qc,threeBars:()=>Vc,thumbsdown:()=>Gc,thumbsup:()=>zc,tools:()=>jc,trackedByClosedCompleted:()=>Kc,trackedByClosedNotPlanned:()=>Yc,trash:()=>Xc,triangleDown:()=>Qc,triangleLeft:()=>Jc,triangleRight:()=>eu,triangleUp:()=>tu,trophy:()=>nu,typography:()=>ru,undo:()=>iu,unfold:()=>su,unlink:()=>ou,unlock:()=>au,unmute:()=>lu,unread:()=>cu,unverified:()=>uu,upload:()=>hu,verified:()=>pu,versions:()=>du,video:()=>mu,webhook:()=>fu,workflow:()=>gu,x:()=>yu,xCircle:()=>wu,xCircleFill:()=>bu,zap:()=>vu,zoomIn:()=>Cu,zoomOut:()=>Su});var t=n(1017),i=n(7147),s=n(9764);const o=require("url"),a=["renderer.js","main.js"];function l(e){if(!a.some((t=>e.endsWith(t))))return null;e.startsWith("file://")&&(e=(0,o.fileURLToPath)(e));const n=`${e}.map`;if(!i.existsSync(n))return null;try{const e=i.readFileSync(n,"utf8");return{url:t.basename(n),map:e}}catch(e){return null}}const c=new WeakMap;let u;function h(e,t){return c.set(e,t),e+t.map((e=>`\n at ${e}`)).join("")}function p(e){return{name:e.name,message:e.message,stack:d(e)}}function d(e){let t=c.get(e);return t||((e.stack||"").toString(),t=c.get(e)),t?u(e,t):e.stack}function m(e,t){return t?function(e,t){return(e=p(e)).stack?t?`${t}\n${e.stack}`:e.stack.trim():t?`${t}\n${e.name}: ${e.message}`:`${e.name}: ${e.message}`}(t,e):e}const f=require("electron");function g(e,...t){return f.ipcRenderer.sendSync(e,...t)}function y(e,t){f.ipcRenderer.on(e,t)}function w(e,t){f.ipcRenderer.removeListener(e,t)}const b=require("fs/promises");var v=n(2081),C=n(3837);const S=(0,C.promisify)(v.execFile);var E=n(6539),k=n.n(E);const R=e=>(0,b.access)(e).then(k()(!0),k()(!1));function T(e,t){return(...n)=>(n=n.length!==t?n.slice(0,t):n,function(e,...t){return f.ipcRenderer.invoke(e,...t)}(e,...n))}function A(e,t){return(...n)=>{n=n.length!==t?n.slice(0,t):n,function(e,...t){f.ipcRenderer.send(e,...t)}(e,...n)}}const x=A("select-all-window-contents",0),D=A("update-menu-state",1),_=A("renderer-ready",1),M=A("execute-menu-item-by-id",1),P=T("is-window-focused",0),I=A("focus-window",0),O=T("show-item-in-folder",1),N=A("unsafe-open-directory",1),L=T("open-external",1),B=T("move-to-trash",1),F=T("get-current-window-state",0),H=T("get-current-window-zoom-factor",0),U=A("dialog-did-open",0),Z=(A("set-window-zoom-factor",1),T("check-for-updates",1)),$=A("quit-and-install-updates",0),W=A("restart-app",0),q=A("quit-app",0),V=A("set-native-theme-source",1),G=T("should-use-dark-colors",0),z=A("minimize-window",0),j=A("maximize-window",0),K=A("unmaximize-window",0),Y=A("close-window",0),X=T("is-window-maximized",0),Q=T("get-apple-action-on-double-click",0),J=A("show-certificate-trust-dialog",2),ee=T("get-path",1),te=T("get-app-architecture",0),ne=T("get-app-path",0),re=T("is-running-under-arm64-translation",0),ie=T("move-to-applications-folder",0),se=A("get-app-menu",0),oe=T("show-contextual-menu",2),ae=A("update-preferred-app-menu-item-labels",1);function le(e){return{message:e.message||`${e}`,name:e.name||`${e.name}`,stack:e.stack||void 0}}const ce=A("uncaught-exception",1),ue=A("send-error-report",3),he=A("update-accounts",1),pe=T("resolve-proxy",1),de=(T("is-in-application-folder",0),T("show-save-dialog",1)),me=T("show-open-dialog",1),fe=T("save-guid",1),ge=T("get-guid",0),ye=T("save-title-bar-style",1),we=T("get-title-bar-style",0),be=T("show-notification",3),ve=T("get-notifications-permission",0),Ce=T("request-notifications-permission",0),Se=A("install-windows-cli",0),Ee=A("uninstall-windows-cli",0),ke=global,Re=A("log",2);function Te(e,t,n){Re(e,m(`[ui] ${t}`,n))}ke.log={error(e,t){Te("error",e,t),console.error(m(e,t))},warn(e,t){Te("warn",e,t),console.warn(m(e,t))},info(e,t){Te("info",e,t),console.info(m(e,t))},debug(e,t){Te("debug",e,t),console.debug(m(e,t))}};var Ae=n(6826),xe=n.n(Ae),De=n(2623),_e=n.n(De);function Me(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Pe(){return Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}function Ie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}const Oe=xe().createContext(null);function Ne(e,t){var n=Object.create(null);return e&&Ae.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Ae.isValidElement)(e)?t(e):e}(e)})),n}function Le(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Be(e,t,n){var r=Ne(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),s=[];for(var o in e)o in t?s.length&&(i[o]=s,s=[]):s.push(o);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];a[i[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<s.length;r++)a[s[r]]=n(s[r]);return a}(t,r);return Object.keys(i).forEach((function(s){var o=i[s];if((0,Ae.isValidElement)(o)){var a=s in t,l=s in r,c=t[s],u=(0,Ae.isValidElement)(c)&&!c.props.in;!l||a&&!u?l||!a||u?l&&a&&(0,Ae.isValidElement)(c)&&(i[s]=(0,Ae.cloneElement)(o,{onExited:n.bind(null,o),in:c.props.in,exit:Le(o,"exit",e),enter:Le(o,"enter",e)})):i[s]=(0,Ae.cloneElement)(o,{in:!1}):i[s]=(0,Ae.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Le(o,"exit",e),enter:Le(o,"enter",e)})}})),i}var Fe=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},He=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ie(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,s=t.handleExited;return{children:t.firstRender?(n=e,r=s,Ne(n.children,(function(e){return(0,Ae.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Le(e,"appear",n),enter:Le(e,"enter",n),exit:Le(e,"exit",n)})}))):Be(e,i,s),firstRender:!1}},n.handleExited=function(e,t){var n=Ne(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Pe({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Me(e,["component","childFactory"]),i=this.state.contextValue,s=Fe(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?xe().createElement(Oe.Provider,{value:i},s):xe().createElement(Oe.Provider,{value:i},xe().createElement(t,r,s))},t}(xe().Component);He.propTypes={},He.defaultProps={component:"div",childFactory:function(e){return e}};const Ue=He;function Ze(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var $e="unmounted",We="exited",qe="entering",Ve="entered",Ge="exiting",ze=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,s=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(i=We,r.appearStatus=qe):i=Ve:i=t.unmountOnExit||t.mountOnEnter?$e:We,r.state={status:i},r.nextCallback=null,r}Ie(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$e?{status:We}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qe&&n!==Ve&&(t=qe):n!==qe&&n!==Ve||(t=Ge)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===qe?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===We&&this.setState({status:$e})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_e().findDOMNode(this),r],s=i[0],o=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(s,o),this.safeSetState({status:qe},(function(){t.props.onEntering(s,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ve},(function(){t.props.onEntered(s,o)}))}))}))):this.safeSetState({status:Ve},(function(){t.props.onEntered(s)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:_e().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Ge},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:We},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:We},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:_e().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],o=i[1];this.props.addEndListener(s,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===$e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Me(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return xe().createElement(Oe.Provider,{value:null},"function"==typeof n?n(e,r):xe().cloneElement(xe().Children.only(n),r))},t}(xe().Component);function je(){}ze.contextType=Oe,ze.propTypes={},ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:je,onEntering:je,onEntered:je,onExit:je,onExiting:je,onExited:je},ze.UNMOUNTED=$e,ze.EXITED=We,ze.ENTERING=qe,ze.ENTERED=Ve,ze.EXITING=Ge;const Ke=ze;var Ye=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ze(n.className,r):n.setAttribute("class",Ze(n.className&&n.className.baseVal||"",r)));var n,r}))},Xe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],s=r[1];t.removeClasses(i,"exit"),t.addClass(i,s?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],s=r[1]?"appear":"enter";t.addClass(i,s,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],s=r[1]?"appear":"enter";t.removeClasses(i,s),t.addClass(i,s,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Ie(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,s=n.done;this.appliedClasses[t]={},r&&Ye(e,r),i&&Ye(e,i),s&&Ye(e,s)},n.render=function(){var e=this.props,t=(e.classNames,Me(e,["classNames"]));return xe().createElement(Ke,Pe({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(xe().Component);Xe.defaultProps={classNames:""},Xe.propTypes={};const Qe=Xe;var Je,et,tt,nt,rt,it;function st(e){return"merge"===e.kind}function ot(e){return"rebase"===e.kind}function at(e){return"cherryPick"===e.kind}function lt(e){throw new Error(e)}function ct(e,t){throw new Error(t)}function ut(e,t){return null==t?lt(e):t}function ht(e,t){if(null==e)return lt(t)}!function(e){e[e.Repository=0]="Repository",e[e.CloningRepository=1]="CloningRepository",e[e.MissingRepository=2]="MissingRepository"}(Je||(Je={})),function(e){e[e.Repository=0]="Repository",e[e.Branch=1]="Branch",e[e.AppMenu=2]="AppMenu",e[e.AddMenu=3]="AddMenu",e[e.PushPull=4]="PushPull"}(et||(et={})),function(e){e[e.Changes=0]="Changes",e[e.History=1]="History"}(tt||(tt={})),function(e){e.WorkingDirectory="WorkingDirectory",e.Stash="Stash"}(nt||(nt={})),function(e){e.History="History",e.Compare="Compare"}(rt||(rt={})),function(e){e.Ahead="Ahead",e.Behind="Behind"}(it||(it={}));const pt={moveItemToTrash:B,beep:f.shell.beep,openExternal:L,showItemInFolder:e=>R(e).then((()=>O(e))).catch((t=>log.error(`Unable show item in folder '${e}'`,t))),showFolderContents:async function(e){const t=await(0,b.stat)(e).catch((t=>(log.error(`Unable to retrieve file information for ${e}`,t),null)));if(t)return t.isDirectory()?void N(e):(log.error(`Trying to get the folder contents of a non-folder at '${e}'`),void await O(e))},openPath:f.shell.openPath};function dt(e,n){const r=t.join(e.path,n);return pt.showItemInFolder(r)}var mt,ft=n(1391);!function(e){e[e.Push=1]="Push",e[e.Pull=2]="Pull",e[e.Fetch=3]="Fetch",e[e.Clone=4]="Clone",e[e.Checkout=5]="Checkout",e[e.Merge=6]="Merge",e[e.Rebase=7]="Rebase",e[e.CherryPick=8]="CherryPick",e[e.CreateBranchForCherryPick=9]="CreateBranchForCherryPick",e[e.Squash=10]="Squash",e[e.Reorder=11]="Reorder",e[e.DiscardChanges=12]="DiscardChanges"}(mt||(mt={}));class gt extends Error{metadata;underlyingError;constructor(e,t){super(e.message),this.name=e.name,this.stack=e.stack,this.underlyingError=e,this.metadata=t}}class yt extends gt{constructor(e,t,n){super(e,{gitContext:{kind:"checkout",branchToCheckout:n},retryAction:{type:mt.Checkout,branch:n,repository:t},repository:t})}}class wt extends gt{constructor(e,t,n){super(e,{retryAction:{type:mt.DiscardChanges,files:n,repository:t}})}}var bt=n(7891);let vt=null,Ct=null;async function St(){return vt||(vt=await ne()),vt}var Et=n(2878),kt=n.n(Et),Rt=n(4333),Tt=n.n(Rt);const At=kt()(Intl.DateTimeFormat,{cache:new(Tt())({maxSize:100}),cacheKey:(...e)=>JSON.stringify(e)}),xt=(e,t)=>isNaN(e.valueOf())?"Invalid date":At("en-US",t).format(e),Dt={year:31536e6,years:31536e6,day:864e5,days:864e5,hour:36e5,hours:36e5,minute:6e4,minutes:6e4,second:1e3,seconds:1e3},_t=(e,t)=>Mt(Date.now(),e,t);function Mt(e,t,n){const r=e.valueOf()+t*Dt[n];return"number"==typeof e?r:new Date(r)}const Pt=(...e)=>(0,o.pathToFileURL)(t.resolve(...e)).toString();const It=/^\[([a-z]{1,})\]\s((.|\n)*)/i;function Ot(e){return null!=e}function Nt(e){const t=e.notes.map((e=>function(e){const t=e.trim(),n=It.exec(t);if(null===n)return log.debug(`[ReleaseNotes] unable to convert text into entry: ${e}`),null;const r=n[1].toLowerCase(),i=n[2];return"new"===r||"fixed"===r||"improved"===r||"added"===r||"pretext"===r||"removed"===r?{kind:r,message:i}:(log.debug(`[ReleaseNotes] kind ${r} was found but is not a valid entry`),{kind:"other",message:i})}(e))).filter(Ot),n=t.filter((e=>"new"===e.kind||"added"===e.kind||"improved"===e.kind)),r=t.filter((e=>"fixed"===e.kind)),i=t.filter((e=>"removed"===e.kind||"other"===e.kind)),s=t.filter((e=>e.message.includes(" Thanks @"))),o=t.filter((e=>"pretext"===e.kind));return{latestVersion:e.version,datePublished:xt(new Date(e.pub_date),{dateStyle:"long"}),pretext:o,enhancements:n,bugfixes:r,other:i,thankYous:s}}async function Lt(e){const t=new URL("https://central.github.com/deployments/desktop/desktop/changelog.json");void 0!==e&&t.searchParams.set("limit",e.toString());const n=await fetch(t.toString());return n.ok?await n.json():[]}async function Bt(e){const t=await Lt(),n=new bt.SemVer(e??"3.4.3-linux1"),r=t.filter((e=>bt.gt(new bt.SemVer(e.version),n)&&new Date(e.pub_date).getTime()>_t(-90,"days")));return r.length>0?r.map(Nt):[Nt(t[0])]}function Ft(e,t){return Object.values(e).find((e=>e===t))}function Ht(e,t){const n=localStorage.getItem(e);return null===n?t:"1"===n||"true"===n||"0"!==n&&"false"!==n&&t}function Ut(e,t){localStorage.setItem(e,t?"1":"0")}function Zt(e,t){const n=localStorage.getItem(e);if(null===n||0===n.length)return t;const r=parseInt(n,10);return isNaN(r)?t:r}function $t(e,t){localStorage.setItem(e,t.toString())}function Wt(e){return(localStorage.getItem(e)||"").split(Vt).map(parseFloat).filter((e=>!isNaN(e)))}function qt(e,t){localStorage.setItem(e,t.join(Vt))}Pt(__dirname,"static/release-note-header-left.svg"),Pt(__dirname,"static/release-note-header-right.svg");const Vt=",";function Gt(e,t){const n=localStorage.getItem(e);return null===n?void 0:Ft(t,n)}function zt(e){const t=localStorage.getItem(e);if(null!==t)try{return JSON.parse(t)}catch(e){return}}function jt(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}function Kt(){return"1"===process.env.GITHUB_DESKTOP_PREVIEW_FEATURES}function Yt(){return Kt()||!1}function Xt(){return Yt()}const Qt=()=>!0,Jt=Qt,en=Qt,tn=Qt,nn=Kt,rn="last-successful-update-check",sn="version-of-last-showcase";var on;!function(e){e[e.CheckingForUpdates=0]="CheckingForUpdates",e[e.UpdateAvailable=1]="UpdateAvailable",e[e.UpdateNotAvailable=2]="UpdateNotAvailable",e[e.UpdateReady=3]="UpdateReady",e[e.UpdateNotChecked=4]="UpdateNotChecked"}(on||(on={}));const an=new class{emitter=new ft.Emitter;status=on.UpdateNotChecked;lastSuccessfulCheck=null;newReleases=null;isX64ToARM64ImmediateAutoUpdate=!1;userInitiatedUpdate=!0;constructor(){const e=Zt(rn,0);e>0&&(this.lastSuccessfulCheck=new Date(e)),y("auto-updater-error",this.onAutoUpdaterError),y("auto-updater-checking-for-update",this.onCheckingForUpdate),y("auto-updater-update-available",this.onUpdateAvailable),function(e){y("auto-updater-update-not-available",e)}(this.onUpdateNotAvailable),function(e){y("auto-updater-update-downloaded",e)}(this.onUpdateDownloaded)}touchLastChecked(){const e=new Date;this.lastSuccessfulCheck=e,$t(rn,e.getTime())}onAutoUpdaterError=(e,t)=>{this.status=on.UpdateNotAvailable,this.emitError(t)};onCheckingForUpdate=()=>{this.status=on.CheckingForUpdates,this.emitDidChange()};onUpdateAvailable=()=>{this.touchLastChecked(),this.status=on.UpdateAvailable,this.emitDidChange()};onUpdateNotAvailable=async()=>{this.newReleases=await Bt(),this.touchLastChecked(),this.status=on.UpdateNotAvailable,this.emitDidChange()};onUpdateDownloaded=async()=>{this.newReleases=await Bt(),this.isX64ToARM64ImmediateAutoUpdate=this.supportsImmediateUpdateFromEmulatedX64ToARM64()&&null!==this.newReleases&&1===this.newReleases.length&&"3.4.3-linux1"===this.newReleases[0].latestVersion&&await re(),this.status=on.UpdateReady,this.emitDidChange()};supportsImmediateUpdateFromEmulatedX64ToARM64(){return!1}onDidChange(e){return this.emitter.on("did-change",e)}emitDidChange(){this.emitter.emit("did-change",this.state)}onError(e){return this.emitter.on("error",e)}emitError(e){const t=new gt(e,{backgroundTask:!this.userInitiatedUpdate});this.emitter.emit("error",t)}get state(){return{status:this.status,lastSuccessfulCheck:this.lastSuccessfulCheck,newReleases:this.newReleases,isX64ToARM64ImmediateAutoUpdate:this.isX64ToARM64ImmediateAutoUpdate}}async checkForUpdates(e,t){if(this.status===on.UpdateReady)return;const n=await this.getUpdatesUrl(t);if(null===n)return;this.userInitiatedUpdate=!e;const r=await Z(n);void 0!==r&&this.emitError(r)}async getUpdatesUrl(e){let t=null;try{t=new URL("https://central.github.com/api/deployments/desktop/desktop/latest?version=3.4.3-linux1&env=production")}catch(e){return log.error("Error parsing updates url",e),"https://central.github.com/api/deployments/desktop/desktop/latest?version=3.4.3-linux1&env=production"}return e&&t.searchParams.set("skipGuidCheck","1"),Yt()&&!0===await re()&&(t.pathname=t.pathname.replace(/\/desktop\/desktop\/(x64\/)?latest/,"/desktop/desktop/arm64/latest"),this.supportsImmediateUpdateFromEmulatedX64ToARM64()&&t.searchParams.set("version","0.0.64")),t.toString()}quitAndInstallUpdate(){g("will-quit"),$()}async isUpdateShowcase(){if(null===this.newReleases)return!1;const e=localStorage.getItem(sn);if(null!==e){const t=new bt.SemVer(e),n=new bt.SemVer(this.newReleases[0].latestVersion);if((0,bt.gte)(t,n))return!1}return this.newReleases.filter((e=>new Date(e.datePublished).getTime()>_t(-15,"days"))).some((e=>e.pretext.length>0))}setIsx64ToARM64ImmediateAutoUpdate(e){}};var ln;!function(e){e[e.BackgroundTask=0]="BackgroundTask",e[e.UserInitiatedTask=1]="UserInitiatedTask"}(ln||(ln={}));const cn=function(e,t,n){const r=()=>Ht("features/should-render-application-menu",!0);{const e=r();return()=>e}}();var un,hn=n(2037);function pn(e,t){return e.endpoint===t.endpoint&&e.id===t.id}class dn{login;endpoint;token;emails;avatarURL;id;name;plan;static anonymous(){return new dn("",cr(),"",[],"",-1,"","free")}constructor(e,t,n,r,i,s,o,a){this.login=e,this.endpoint=t,this.token=n,this.emails=r,this.avatarURL=i,this.id=s,this.name=o,this.plan=a}withToken(e){return new dn(this.login,this.endpoint,e,this.emails,this.avatarURL,this.id,this.name,this.plan)}get friendlyName(){return""!==this.name?this.name:this.login}}class mn extends Error{apiError;responseStatus;constructor(e,t){let n;if(t&&t.message){n=t.message;const e=t.errors,r=e&&e.map((e=>e.message)).join(", ");r&&(n=`${n} (${r})`)}else n=`API error ${e.url}: ${e.statusText} (${e.status})`;super(n),this.responseStatus=e.status,this.apiError=t}}async function fn(e){try{return await e.json()}catch(t){const n=e.headers.get("Content-Length")||"(missing)",r=e.headers.get("X-GitHub-Request-Id")||"(missing)";throw log.warn(`deserialize: invalid JSON found at '${e.url}' - status: ${e.status}, length: '${n}' id: '${r}'`,t),t}}function gn(e,t,n,r,i,s,a=!1){const l=function(e,t){let n="/"===t[0]?t.substring(1):t;n.startsWith("api/v3/")&&(n=n.substring(7));const r=e.endsWith("/")?e:`${e}/`;return new o.URL(n,r).toString()}(e,r);let c={Accept:"application/vnd.github.v3+json, application/json","Content-Type":"application/json","User-Agent":"GitHubDesktop/3.4.3-linux1 (Windows)"};t&&(c.Authorization=`token ${t}`),c={...c,...s};const u={headers:c,method:n,body:JSON.stringify(i)};return a&&(u.cache="reload"),fetch(l,u)}async function yn(e){if(e.ok)return fn(e);{let t;try{t=await fn(e)}catch(t){throw new mn(e,null)}throw new mn(e,t)}}function wn(e,t){const n=Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&");return n.length?-1===e.indexOf("?")?`${e}?${n}`:`${e}&${n}`:e}function bn(e){return e===un.Sms?"We just sent you a message via SMS with your authentication code. Enter the code in the form below to verify your identity.":"Open the two-factor authentication app on your device to view your authentication code and verify your identity."}!function(e){e[e.Sms=0]="Sms",e[e.App=1]="App"}(un||(un={}));const vn=require("crypto");var Cn=n(4790),Sn=n.n(Cn);function En(e){if("undefined"!=typeof window&&window.crypto){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}return(0,vn.randomBytes)(e)}function kn(){return Sn()({random:En(16)})}var Rn=n(4515),Tn=n.n(Rn);const An=new bt.SemVer("3.1.0"),xn=new Map,Dn=new Map,_n=e=>`endpoint-version:${e}`,Mn=e=>{if(e===cr())return!0;const{hostname:t}=new URL(e);return"api.github.com"===t||"github.com"===t},Pn=e=>new URL(e).hostname.endsWith(".ghe.com"),In=e=>!Mn(e)&&!Pn(e);function On(e){const t=_n(e),n=Dn.get(t);if(void 0!==n)return n;const r=localStorage.getItem(t),i=null===r?null:bt.parse(r);return null!==i&&Dn.set(t,i),i}function Nn(e,t,n){return void 0!==e&&!1!==e&&(!0===e?t:(ht(n,"Need to provide a version to compare against"),t&&bt.satisfies(n,e)))}const Ln=({dotcom:e,ghe:t,es:n},r=On)=>i=>Nn(e,Mn(i))||Nn(t??e,Pn(i))||Nn(n,In(i),r(i)??An),Bn=Ln({es:">= 3.0.0"}),Fn=Ln({dotcom:!0,es:">= 3.4.0"}),Hn=Ln({dotcom:!0}),Un=Ln({dotcom:!0}),Zn=Ln({dotcom:!0}),$n=Ln({dotcom:!0}),Wn=process.env.DESKTOP_GITHUB_DOTCOM_API_ENDPOINT,qn=process.env.DESKTOP_GITHUB_DOTCOM_HTML_URL,Vn=process.env.DESKTOP_GITHUB_DOTCOM_ADDITIONAL_COOKIES;void 0!==Vn&&(document.cookie+="; "+Vn);const Gn="3a723b10ac5575cc5bb9",zn="22c34d87789a365981ed921352a7b9a8c3f69d54";Gn.length&&zn.length||log.warn("DESKTOP_OAUTH_CLIENT_ID and/or DESKTOP_OAUTH_CLIENT_SECRET is undefined. You won't be able to authenticate new users.");const jn=["repo","user","workflow"];var Kn,Yn,Xn,Qn,Jn,er;!function(e){e[e.NotModified=304]="NotModified",e[e.NotFound=404]="NotFound"}(Kn||(Kn={}));class tr extends Error{}function nr(e){const t=e.headers.get("Link");if(!t)return null;for(const e of t.split(",")){const t=e.match(/<([^>]+)>; rel="([^"]+)"/);if(t&&"next"===t[2])return o.parse(t[1]).path||null}return null}function rr(e){const t=nr(e);if(!t)return null;const{pathname:n,query:r}=o.parse(t,!0),{per_page:i,page:s}=r,a="string"==typeof i?parseInt(i,10):NaN,l="string"==typeof s?parseInt(s,10):NaN;if(!a||!l)return t;const c=(l-1)*a,u=Math.min(100,2*a);return a!==u&&c%u==0?(r.per_page=`${u}`,r.page=""+(c/u+1),o.format({pathname:n,query:r})):t}!function(e){e.Queued="queued",e.InProgress="in_progress",e.Completed="completed"}(Yn||(Yn={})),function(e){e.ActionRequired="action_required",e.Canceled="cancelled",e.TimedOut="timed_out",e.Failure="failure",e.Neutral="neutral",e.Success="success",e.Skipped="skipped",e.Stale="stale"}(Xn||(Xn={})),function(e){e.Creation="creation",e.Update="update",e.RequiredDeployments="required_deployments",e.RequiredSignatures="required_signatures",e.RequiredStatusChecks="required_status_checks",e.PullRequest="pull_request",e.CommitMessagePattern="commit_message_pattern",e.CommitAuthorEmailPattern="commit_author_email_pattern",e.CommitterEmailPattern="committer_email_pattern",e.BranchNamePattern="branch_name_pattern"}(Qn||(Qn={})),function(e){e.StartsWith="starts_with",e.EndsWith="ends_with",e.Contains="contains",e.RegexMatch="regex"}(Jn||(Jn={}));class ir{static tokenInvalidatedListeners=new Set;static onTokenInvalidated(e){this.tokenInvalidatedListeners.add(e)}static emitTokenInvalidated(e,t){this.tokenInvalidatedListeners.forEach((n=>n(e,t)))}static fromAccount(e){return new ir(e.endpoint,e.token)}endpoint;token;constructor(e,t){this.endpoint=e,this.token=t}async getAliveDesktopChannel(){try{const e=await this.request("GET","/desktop_internal/alive-channel");return await yn(e)}catch(e){return log.warn(`Alive channel request failed: ${e}`),null}}async getAliveWebSocketURL(){try{const e=await this.request("GET","/alive_internal/websocket-url");return e.status===Kn.NotFound?null:(await yn(e)).url}catch(e){throw log.warn(`Alive web socket request failed: ${e}`),e}}async fetchIssueComment(e,t,n){try{const r=await this.request("GET",`repos/${e}/${t}/issues/comments/${n}`);return r.status===Kn.NotFound?(log.warn(`fetchIssueComment: '${e}/${t}/issues/comments/${n}' returned a 404`),null):await yn(r)}catch(r){return log.warn(`fetchIssueComment: an error occurred for '${e}/${t}/issues/comments/${n}'`,r),null}}async fetchPullRequestReviewComment(e,t,n){try{const r=await this.request("GET",`repos/${e}/${t}/pulls/comments/${n}`);return r.status===Kn.NotFound?(log.warn(`fetchPullRequestReviewComment: '${e}/${t}/pulls/comments/${n}' returned a 404`),null):await yn(r)}catch(r){return log.warn(`fetchPullRequestReviewComment: an error occurred for '${e}/${t}/pulls/comments/${n}'`,r),null}}async fetchRepository(e,t){try{const n=await this.request("GET",`repos/${e}/${t}`);return n.status===Kn.NotFound?(log.warn(`fetchRepository: '${e}/${t}' returned a 404`),null):await yn(n)}catch(n){return log.warn(`fetchRepository: an error occurred for '${e}/${t}'`,n),null}}async fetchRepositoryCloneInfo(e,t,n){const r=await this.request("GET",`repos/${e}/${t}`,{reloadCache:!0});if(r.status===Kn.NotFound)return null;const i=await yn(r);return{url:"ssh"===n?i.ssh_url:i.clone_url,defaultBranch:i.default_branch}}async streamUserRepositories(e,t,n){try{const r="user/repos",i=t?`${r}?affiliation=${t}`:r;await this.fetchAll(i,{...n,onPage:t=>{e(t.filter((e=>null!==e.owner))),n?.onPage?.(t)}})}catch(e){log.warn(`streamUserRepositories: failed with endpoint ${this.endpoint}`,e)}}async fetchAccount(){try{const e=await this.request("GET","user");return await yn(e)}catch(e){throw log.warn(`fetchAccount: failed with endpoint ${this.endpoint}`,e),e}}async fetchEmails(){try{const e=await this.request("GET","user/emails"),t=await yn(e);return Array.isArray(t)?t:[]}catch(e){return log.warn(`fetchEmails: failed with endpoint ${this.endpoint}`,e),[]}}async fetchOrgs(){try{return await this.fetchAll("user/orgs")}catch(e){return log.warn(`fetchOrgs: failed with endpoint ${this.endpoint}`,e),[]}}async createRepository(e,t,n,r){try{const i=e?`orgs/${e.login}/repos`:"user/repos",s=await this.request("POST",i,{body:{name:t,description:n,private:r}});return await yn(s)}catch(t){if(t instanceof mn){if(null!==e)throw new Error(`Unable to create repository for organization '${e.login}'. Verify that the repository does not already exist and that you have permission to create a repository there.`);throw t}throw log.error(`createRepository: failed with endpoint ${this.endpoint}`,t),new Error("Unable to publish repository. Please check if you have an internet connection and try again.")}}async forkRepository(e,t){try{const n=`/repos/${e}/${t}/forks`,r=await this.request("POST",n);return await yn(r)}catch(n){throw log.error(`forkRepository: failed to fork ${e}/${t} at endpoint: ${this.endpoint}`,n),n}}async fetchIssues(e,t,n,r){const i={state:n};r&&!isNaN(r.getTime())&&(i.since=r.toISOString().replace(/\.\d{3}Z$/,"Z"));const s=wn(`repos/${e}/${t}/issues`,i);try{return(await this.fetchAll(s)).filter((e=>!e.pullRequest))}catch(n){throw log.warn(`fetchIssues: failed for repository ${e}/${t}`,n),n}}async fetchAllOpenPullRequests(e,t){const n=wn(`repos/${e}/${t}/pulls`,{state:"open"});try{return await this.fetchAll(n)}catch(n){throw log.warn(`failed fetching open PRs for repository ${e}/${t}`,n),n}}async fetchUpdatedPullRequests(e,t,n,r=320){const i=n.getTime(),s=wn(`repos/${e}/${t}/pulls`,{state:"all",sort:"updated",direction:"desc"});try{return(await this.fetchAll(s,{perPage:10,getNextPagePath:rr,continue(e){if(e.length>=r)throw new tr("got max pull requests, aborting");const t=e.at(-1);return void 0!==t&&Date.parse(t.updated_at)>i},suppressErrors:!1})).filter((e=>Date.parse(e.updated_at)>=i))}catch(n){throw log.warn(`failed fetching updated PRs for repository ${e}/${t}`,n),n}}async fetchPullRequest(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}`,i=await this.request("GET",r);return await yn(i)}catch(r){throw log.warn(`failed fetching PR for ${e}/${t}/pulls/${n}`,r),r}}async fetchPullRequestReview(e,t,n,r){try{const i=`/repos/${e}/${t}/pulls/${n}/reviews/${r}`,s=await this.request("GET",i);return await yn(s)}catch(i){return log.debug(`failed fetching PR review ${r} for ${e}/${t}/pulls/${n}`,i),null}}async fetchPullRequestReviews(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}/reviews`,i=await this.request("GET",r);return await yn(i)}catch(r){return log.debug(`failed fetching PR reviews for ${e}/${t}/pulls/${n}`,r),[]}}async fetchPullRequestReviewComments(e,t,n,r){try{const i=`/repos/${e}/${t}/pulls/${n}/reviews/${r}/comments`,s=await this.request("GET",i);return await yn(s)}catch(r){return log.debug(`failed fetching PR review comments for ${e}/${t}/pulls/${n}`,r),[]}}async fetchPullRequestComments(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}/comments`,i=await this.request("GET",r);return await yn(i)}catch(r){return log.debug(`failed fetching PR comments for ${e}/${t}/pulls/${n}`,r),[]}}async fetchIssueComments(e,t,n){try{const r=`/repos/${e}/${t}/issues/${n}/comments`,i=await this.request("GET",r);return await yn(i)}catch(r){return log.debug(`failed fetching issue comments for ${e}/${t}/issues/${n}`,r),[]}}async fetchCombinedRefStatus(e,t,n,r=!1){const i=`repos/${e}/${t}/commits/${encodeURIComponent(n)}/status?per_page=100`,s=await this.request("GET",i,{reloadCache:r});try{return await yn(s)}catch(r){return log.debug(`Failed fetching check runs for ref ${n} (${e}/${t})`,r),null}}async fetchRefCheckRuns(e,t,n,r=!1){const i=`repos/${e}/${t}/commits/${encodeURIComponent(n)}/check-runs?per_page=100`,s=await this.request("GET",i,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"},reloadCache:r});try{return await yn(s)}catch(r){return log.debug(`Failed fetching check runs for ref ${n} (${e}/${t})`,r),null}}async fetchPRWorkflowRunsByBranchName(e,t,n){const r=`repos/${e}/${t}/actions/runs?event=pull_request&branch=${encodeURIComponent(n)}`,i=await this.request("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{return await yn(i)}catch(r){log.debug(`Failed fetching workflow runs for ${n} (${e}/${t})`)}return null}async fetchPRActionWorkflowRunByCheckSuiteId(e,t,n){const r=`repos/${e}/${t}/actions/runs?event=pull_request&check_suite_id=${n}`,i=await this.request("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{const e=await yn(i);if(e.workflow_runs.length>0)return e.workflow_runs[0]}catch(r){log.debug(`Failed fetching workflow runs for ${n} (${e}/${t})`)}return null}async fetchWorkflowRunJobs(e,t,n){const r=`repos/${e}/${t}/actions/runs/${n}/jobs`,i=await this.request("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{return await yn(i)}catch(r){log.debug(`Failed fetching workflow jobs (${e}/${t}) workflow run: ${n}`)}return null}async rerequestCheckSuite(e,t,n){const r=`/repos/${e}/${t}/check-suites/${n}/rerequest`;return this.request("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed retry check suite id ${n} (${e}/${t})`,r),!1)))}async rerunFailedJobs(e,t,n){const r=`/repos/${e}/${t}/actions/runs/${n}/rerun-failed-jobs`;return this.request("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed to rerun failed workflow jobs for (${e}/${t}): ${n}`,r),!1)))}async rerunJob(e,t,n){const r=`/repos/${e}/${t}/actions/jobs/${n}/rerun`;return this.request("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed to rerun workflow job (${e}/${t}): ${n}`,r),!1)))}async getAvatarToken(){return this.request("GET","/desktop/avatar-token").then((e=>e.json())).then((e=>e&&"object"==typeof e&&"avatar_token"in e&&"string"==typeof e.avatar_token?e.avatar_token:null)).catch((e=>(log.debug("Failed to load avatar token",e),null)))}async fetchCheckSuite(e,t,n){const r=`/repos/${e}/${t}/check-suites/${n}`,i=await this.request("GET",r);try{return await yn(i)}catch(r){log.debug(`[fetchCheckSuite] Failed fetch check suite id ${n} (${e}/${t})`)}return null}async fetchPushControl(e,t,n){const r=`repos/${e}/${t}/branches/${encodeURIComponent(n)}/push_control`,i={Accept:"application/vnd.github.phandalin-preview"};try{const e=await this.request("GET",r,{customHeaders:i});return await yn(e)}catch(e){return log.info("[fetchPushControl] unable to check if branch is potentially pushable",e),{pattern:null,required_signatures:!1,required_status_checks:[],required_approving_review_count:0,required_linear_history:!1,allow_actor:!0,allow_deletions:!0,allow_force_pushes:!0}}}async fetchProtectedBranches(e,t){const n=`repos/${e}/${t}/branches?protected=true`;try{const e=await this.request("GET",n);return await yn(e)}catch(e){return log.info("[fetchProtectedBranches] unable to list protected branches",e),new Array}}async fetchRepoRulesForBranch(e,t,n){const r=`repos/${e}/${t}/rules/branches/${encodeURIComponent(n)}`;try{const e=await this.request("GET",r);return await yn(e)}catch(e){return log.info(`[fetchRepoRulesForBranch] unable to fetch repo rules for branch: ${n} | ${r}`,e),new Array}}async fetchAllRepoRulesets(e,t){const n=`repos/${e}/${t}/rulesets`;try{const e=await this.request("GET",n);return await yn(e)}catch(e){return log.info(`[fetchAllRepoRulesets] unable to fetch all repo rulesets | ${n}`,e),null}}async fetchRepoRuleset(e,t,n){const r=`repos/${e}/${t}/rulesets/${n}`;try{const e=await this.request("GET",r);return await yn(e)}catch(e){return log.info(`[fetchRepoRuleset] unable to fetch repo ruleset for ID: ${n} | ${r}`,e),null}}async fetchAll(e,t){const n=new Array,r={perPage:100,...t};let i=wn(e,{per_page:`${r.perPage}`}),s=[];do{const t=await this.request("GET",i);if(!1!==r.suppressErrors&&!t.ok)return log.warn(`fetchAll: '${e}' returned a ${t.status}`),n;s=await yn(t),s&&(n.push(...s),r.onPage?.(s)),i=r.getNextPagePath?r.getNextPagePath(t):nr(t)}while(i&&(!r.continue||await r.continue(n)));return n}async request(e,t,n={}){const r=await gn(this.endpoint,this.token,e,t,n.body,n.customHeaders,n.reloadCache);return 401===r.status&&r.headers.has("X-GitHub-Request-Id")&&!r.headers.has("X-GitHub-OTP")&&ir.emitTokenInvalidated(this.endpoint,this.token),hr(this.endpoint,r),r}async getFetchPollInterval(e,t){const n=`repos/${e}/${t}/git`;try{const e=(await this.request("HEAD",n)).headers.get("x-poll-interval");if(e){const t=parseInt(e,10);return isNaN(t)?null:t}return null}catch(n){return log.warn(`getFetchPollInterval: failed for ${e}/${t}`,n),null}}async fetchMentionables(e,t,n){const r={Accept:"application/vnd.github.jerry-maguire-preview"};void 0!==n&&(r["If-None-Match"]=n);try{const n=`repos/${e}/${t}/mentionables/users`,i=await this.request("GET",n,{customHeaders:r});if(i.status===Kn.NotFound)return log.warn(`fetchMentionables: '${n}' returned a 404`),null;if(i.status===Kn.NotModified)return null;return{users:await yn(i),etag:i.headers.get("etag")||void 0}}catch(n){return log.warn(`fetchMentionables: failed for ${e}/${t}`,n),null}}async fetchUser(e){try{const t=await this.request("GET",`users/${encodeURIComponent(e)}`);return 404===t.status?null:await yn(t)}catch(e){throw log.warn(`fetchUser: failed with endpoint ${this.endpoint}`,e),e}}}async function sr(e,t,n,r){const i=`Basic ${Buffer.from(`${t}:${n}`,"utf8").toString("base64")}`,s=r?{"X-GitHub-OTP":r}:{},o=await async function(){let e=await Tn()();return void 0===e&&(e="unknown",log.error(`getNote: unable to resolve machine username, using '${e}' as a fallback`)),`GitHub Desktop on ${e}@${hn.hostname()}`}(),a=await gn(e,null,"POST","authorizations",{scopes:jn,client_id:Gn,client_secret:zn,note:o,note_url:"https://desktop.github.com/",fingerprint:kn()},{Authorization:i,...s});hr(e,a);try{const e=await yn(a);if(e){const t=e.token;if(t&&"string"==typeof t&&t.length)return{kind:er.Authorized,token:t}}}catch(e){if(401===a.status){const e=a.headers.get("x-github-otp");if(e){const t=e.split(";");if(2===t.length)switch(t[1].trim()){case"app":return{kind:er.TwoFactorAuthenticationRequired,type:un.App};case"sms":return{kind:er.TwoFactorAuthenticationRequired,type:un.Sms};default:return{kind:er.Failed,response:a}}}return{kind:er.Failed,response:a}}const t=e instanceof mn&&e.apiError;if(t){if(403===a.status&&"This API can only be accessed with username and password Basic Auth"===t.message)return{kind:er.PersonalAccessTokenBlocked};if(410===a.status)return{kind:er.WebFlowRequired};if(422===a.status)if(t.errors)for(const e of t.errors){const t="oauthaccess"===e.resource.toLowerCase();if("user"===e.field.toLowerCase()&&t)return{kind:er.UserRequiresVerification}}else if("Invalid OAuth application client_id or secret."===t.message)return{kind:er.EnterpriseTooOld}}}return{kind:er.Error,response:a}}async function or(e,t){const n=new ir(e,t);try{const r=await n.fetchAccount(),i=await n.fetchEmails();return new dn(r.login,e,t,i,r.avatar_url,r.id,r.name||r.login,r.plan?.name)}catch(t){throw log.warn(`fetchUser: failed with endpoint ${e}`,t),t}}function ar(e){if(void 0!==qn)return qn;if(e!==cr()||Wn){const t=o.parse(e);return`${t.protocol}//${t.hostname}`}return"https://github.com"}function lr(e){const t=o.parse(e);return`${t.protocol}//${t.hostname}/api/v3`}function cr(){return Wn&&Wn.length>0?Wn:"https://api.github.com"}function ur(e,t){return e.find((e=>e.endpoint===t))||null}function hr(e,t){const n=t.headers.get("x-github-enterprise-version");null!==n&&function(e,t){const n=_n(e);if(xn.get(n)!==t){const e=bt.parse(t);localStorage.setItem(n,t),xn.set(n,t),Dn.set(n,e)}}(e,n)}!function(e){e[e.Authorized=0]="Authorized",e[e.Failed=1]="Failed",e[e.TwoFactorAuthenticationRequired=2]="TwoFactorAuthenticationRequired",e[e.UserRequiresVerification=3]="UserRequiresVerification",e[e.PersonalAccessTokenBlocked=4]="PersonalAccessTokenBlocked",e[e.Error=5]="Error",e[e.EnterpriseTooOld=6]="EnterpriseTooOld",e[e.WebFlowRequired=7]="WebFlowRequired"}(er||(er={}));const pr=new Set(["dev.azure.com","gitlab.com","bitbucket.org","amazonaws.com","visualstudio.com"]);const dr=[{protocol:"https",regex:new RegExp("^https?://(?:.+@)?(.+)/([^/]+)/([^/]+?)(?:/|\\.git/?)?$")},{protocol:"ssh",regex:new RegExp("^git@(.+):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^(?:.+)@(.+\\.ghe\\.com):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^git:(.+)/([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^ssh://git@(.+)/(.+)/(.+?)(?:/|\\.git)?$")}];function mr(e){for(const{protocol:t,regex:n}of dr){const r=n.exec(e);if(null!==r&&r.length>=4)return{protocol:t,hostname:r[1],owner:r[2],name:r[3]}}return null}function fr(e){const t=mr(e);if(t){const{owner:e,name:n,hostname:r}=t;if(e&&n)return{owner:e,name:n,hostname:r}}const n=e.split("/");return 2===n.length&&n[0].length>0&&n[1].length>0?{owner:n[0],name:n[1],hostname:null}:null}function gr(e,t){return e<t?-1:e>t?1:0}function yr(e,t){return e<t?1:e>t?-1:0}function wr(e,t){return e.toLowerCase()===t.toLowerCase()}function br(e,t){return gr(e.toLowerCase(),t.toLowerCase())}function vr(e,t){for(const n of e){const e=ar(n.endpoint),{hostname:r}=o.parse(e),i=mr(t);if(null!==i&&null!==r&&i.hostname.toLowerCase()===r.toLowerCase())return{name:i.name,owner:i.owner,account:n}}return null}function Cr(e,n){const r=e=>t.normalize(e),i=r(n);return e.find((e=>r(e.path)===i))}function Sr(e,t){return Er(e.htmlURL,t)||Er(e.cloneURL,t)}function Er(e,t){if(null==e)return!1;const n=mr(e),r=mr(t.url);return null!=r&&null!=n&&!!wr(r.hostname,n.hostname)&&null!=r.owner&&null!=n.owner&&null!=r.name&&null!=n.name&&wr(r.owner,n.owner)&&wr(r.name,n.name)}function kr(e,t){const n=fr(e),r=fr(t);return null!==n&&null!==r&&n.hostname===r.hostname&&n.owner===r.owner&&n.name===r.name}n(7492);var Rr=function(e,t){return e===t};const Tr=function(e,t){var n;void 0===t&&(t=Rr);var r,i=[],s=!1,o=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l];return s&&n===this&&a.length===i.length&&a.every(o)||(r=e.apply(this,a),s=!0,n=this,i=a),r}};function Ar(){const e=hn.release();return`${hn.type()} ${e}`}const xr=Tr((()=>!1)),Dr=Tr((()=>!1)),_r=Tr((()=>!1)),Mr=(Tr((()=>!1)),Tr((()=>!1)),Tr((()=>!1)),Tr((()=>!1))),Pr=Tr((()=>!1)),Ir=Tr((()=>Pr()||Mr()));function Or(...e){return e.join("+")}class Nr{name;owner;dbID;isPrivate;htmlURL;cloneURL;issuesEnabled;isArchived;permissions;parent;hash;constructor(e,t,n,r=null,i=null,s=null,o=null,a=null,l=null,c=null){this.name=e,this.owner=t,this.dbID=n,this.isPrivate=r,this.htmlURL=i,this.cloneURL=s,this.issuesEnabled=o,this.isArchived=a,this.permissions=l,this.parent=c,this.hash=Or(this.name,this.owner.login,this.dbID,this.isPrivate,this.htmlURL,this.cloneURL,this.issuesEnabled,this.isArchived,this.permissions,this.parent?.hash)}get endpoint(){return this.owner.endpoint}get fullName(){return`${this.owner.login}/${this.name}`}get fork(){return!!this.parent}}function Lr(e){return null===e.permissions||"read"!==e.permissions}var Br,Fr,Hr,Ur;!function(e){e.Parent="parent",e.Self="self"}(Br||(Br={}));class Zr{id;gitHubRepository;missing;alias;workflowPreferences;isTutorialRepository;name;mainWorkTree;hash;constructor(e,n,r,i,s=null,o={},a=!1){this.id=n,this.gitHubRepository=r,this.missing=i,this.alias=s,this.workflowPreferences=o,this.isTutorialRepository=a,this.mainWorkTree={path:e},this.name=r&&r.name||function(e){const n=t.basename(e);return 0===n.length?e:n}(e),this.hash=Or(e,this.id,r?.hash,this.missing,this.alias,this.workflowPreferences.forkContributionTarget,this.isTutorialRepository)}get path(){return this.mainWorkTree.path}}function $r(e){return e.gitHubRepository instanceof Nr}function Wr(e){return $r(e)&&null!==e.gitHubRepository.parent}function qr(e){const{gitHubRepository:t}=e;return null!==t?t.fullName:e.name}function Vr(e){return $r(e)?Gr(e).htmlURL:null}function Gr(e){if(!Wr(e))return e.gitHubRepository;switch(zr(e)){case Br.Self:return e.gitHubRepository;case Br.Parent:return e.gitHubRepository.parent;default:return ct(0,"Invalid fork contribution target")}}function zr(e){return void 0!==e.workflowPreferences.forkContributionTarget?e.workflowPreferences.forkContributionTarget:Br.Parent}function jr(e){return Wr(e)&&zr(e)===Br.Parent}function Kr(e,t=new Map){for(const n of e.items)t.set(n.id,n),"submenuItem"===n.type&&Kr(n.menu,t);return t}function Yr(e){return"menuItem"===e.type||"submenuItem"===e.type||"checkbox"===e.type||"radio"===e.type}function Xr(e){return"separator"!==e.type&&e.enabled&&e.visible}function Qr(e,t){const n=e.toLowerCase();for(const e of t)if(Yr(e)&&e.accessKey&&e.accessKey.toLowerCase()===n)return e;return null}!function(e){e[e.Accounts=0]="Accounts",e[e.Integrations=1]="Integrations",e[e.Git=2]="Git",e[e.Appearance=3]="Appearance",e[e.Notifications=4]="通知",e[e.Prompts=5]="Prompts",e[e.Advanced=6]="Advanced",e[e.Accessibility=7]="Accessibility"}(Fr||(Fr={}));class Jr{menu;openMenus;menuItemById;static fromMenu(e){const t=Kr(e);return new Jr(e,[e],t)}constructor(e,t,n){this.menu=e,this.openMenus=t,this.menuItemById=n}getItemById(e){return this.menuItemById.get(e)}withMenu(e){const t=Kr(e),n=new Array;for(const r of this.openMenus){let i,s;if(r.id){const e=t.get(r.id);if(!e||"submenuItem"!==e.type)break;i=e.menu}else i=e;r.selectedItem&&(s=t.get(r.selectedItem.id)),n.push({id:i.id,type:"menu",items:i.items,selectedItem:s})}return new Jr(e,n,t)}withOpenedMenu(e,t=!1){const n=this.menuItemById.get(e.id);if(!n)return this;if("submenuItem"!==n.type)throw new Error(`Attempt to open a submenu from an item of wrong type: ${n.type}`);const r=this.openMenus.findIndex((e=>-1!==e.items.indexOf(n)));if(-1===r)return this;const i=this.openMenus.slice(0,r+1);if(t){const e=n.menu.items.find(Xr);i.push({...n.menu,selectedItem:e})}else i.push(n.menu);return new Jr(this.menu,i,this.menuItemById)}withClosedMenu(e){if(!e.id)return this;const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus.slice(0,t);return new Jr(this.menu,n,this.menuItemById)}withLastMenu(e){const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus.slice(0,t+1);return new Jr(this.menu,n,this.menuItemById)}withSelectedItem(e){const t=this.menuItemById.get(e.id);if(!t)return this;const n=this.openMenus.findIndex((e=>-1!==e.items.indexOf(t)));if(-1===n)return this;const r=this.openMenus.slice(),i=r[n];r[n]={...i,selectedItem:t};for(let e=n+1;e<r.length;e++)r[e]={...r[e],selectedItem:void 0};for(let e=n-1;e>=0;e--){const t=r[e],n=r[e+1],i=t.items.find((e=>"submenuItem"===e.type&&e.id===n.id));r[e]={...t,selectedItem:i}}return new Jr(this.menu,r,this.menuItemById)}withDeselectedMenu(e){const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus[t],r=this.openMenus.slice();r[t]={...n,selectedItem:void 0};for(let e=t-1;e>=0;e--){const t=r[e],n=r[e+1],i=t.items.find((e=>"submenuItem"===e.type&&e.id===n.id));r[e]={...t,selectedItem:i}}return new Jr(this.menu,r,this.menuItemById)}withReset(){return new Jr(this.menu,[this.menu],this.menuItemById)}}!function(e){e.Unknown="Unknown",e.Unborn="Unborn",e.Detached="Detached",e.Valid="Valid"}(Hr||(Hr={})),function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise",e[e.Generic=2]="Generic"}(Ur||(Ur={}));let ei=1;class ti{path;url;id=ei++;constructor(e,t){this.path=e,this.url=t}get name(){return t.basename(this.url,".git")}get hash(){return`${this.id}+${this.path}+${this.url}`}}var ni=n(8076),ri=n.n(ni);const ii=new Set;function si(e){const t=`__${e}`.replace(/[^a-z0-9\-_:.]+/gi,"_");for(let e=0;e<100;e++){const n=e>0?`${t}_${e}`:t;if(!ii.has(n))return ii.add(n),n}return kn()}function oi(e){ii.delete(e)}function ai(e,t){return e===t||e.left===t.left&&e.right===t.right&&e.top===t.top&&e.bottom===t.bottom&&e.width===t.width&&e.height===t.height}var li;!function(e){e.NORTH="n",e.NORTH_EAST="ne",e.EAST="e",e.SOUTH_EAST="se",e.SOUTH="s",e.SOUTH_WEST="sw",e.WEST="w",e.NORTH_WEST="nw"}(li||(li={}));class ci extends Ae.Component{mouseRect=new DOMRect;mouseOverTarget=!1;mouseOverTooltip=!1;showTooltipTimeout=null;hideTooltipTimeout=null;tooltipRef=null;resizeObserver;constructor(e){super(e);const t=e.target.current;this.state={target:t,measure:!1,show:!1,targetRect:new DOMRect,hostRect:new DOMRect,windowRect:new DOMRect,tooltipRect:new DOMRect,tooltipHost:hi(t)},this.resizeObserver=new ResizeObserver((e=>{for(const t of e)if(t.target===this.tooltipRef){const e=this.tooltipRef.getBoundingClientRect();ai(this.state.tooltipRect,e)||this.setState({tooltipRect:e})}else if(t.target===this.state.target){const e=this.state.target.getBoundingClientRect();ai(this.state.targetRect,e)||this.setState({targetRect:e})}}))}componentDidMount(){const{target:e}=this.props;e.subscribe(this.onTargetRef),null!==e.current&&this.state.target!==e.current?this.onTargetRef(e.current):null!==this.state.target&&this.installTooltip(this.state.target)}onTargetRef=e=>{this.setState({target:e,tooltipHost:hi(e)})};onTooltipRef=e=>{if(null===e){this.state.id&&(oi(this.state.id),this.setState({id:void 0})),this.resizeObserver.disconnect();const{tooltipRef:e}=this;null!==e&&(e.removeEventListener("mouseenter",this.onTooltipMouseEnter),e.removeEventListener("mouseleave",this.onTooltipMouseLeave))}else this.setState({tooltipRect:e.getBoundingClientRect()??new DOMRect,show:!0,measure:!1,id:this.state.id??si("tooltip")}),this.state.target?.dispatchEvent(new CustomEvent("tooltip-shown",{bubbles:!0})),this.resizeObserver.observe(e),!0===this.props.interactive&&(e.addEventListener("mouseenter",this.onTooltipMouseEnter),e.addEventListener("mouseleave",this.onTooltipMouseLeave));this.tooltipRef=e};onTooltipMouseEnter=e=>{this.mouseOverTooltip=!0,this.cancelHideTooltip()};onTooltipMouseLeave=e=>{this.mouseOverTooltip=!1,this.beginHideTooltip()};componentDidUpdate(e,t){const{target:n}=this.state;e.target!==this.props.target&&(e.target.unsubscribe(this.onTargetRef),this.props.target.subscribe(this.onTargetRef)),n!==t.target&&(this.removeTooltip(t.target),null!==n&&this.installTooltip(n)),this.state.show!==t.show&&(this.state.show&&!1!==this.props.accessible&&this.state.id?this.addToTargetAriaDescribedBy(n):this.removeFromTargetAriaDescribedBy(n)),e.ancestorFocused!==this.props.ancestorFocused&&this.updateBasedOnAncestorFocused()}addToTargetAriaDescribedBy(e){if(!e||!this.state.id||!1===this.props.applyAriaDescribedBy)return;const t=e.getAttribute("aria-describedby"),n=t?t.split(" "):[];n.includes(this.state.id)||(n.push(this.state.id),e.setAttribute("aria-describedby",n.join(" ")))}removeFromTargetAriaDescribedBy(e){if(!e||!this.state.id||!1===this.props.applyAriaDescribedBy)return;const t=e.getAttribute("aria-describedby"),n=t?t.split(" "):[],r=n.indexOf(this.state.id);-1!==r&&(n.splice(r,1),0===n.length?e.removeAttribute("aria-describedby"):e.setAttribute("aria-describedby",n.join(" ")))}updateBasedOnAncestorFocused(){const{target:e}=this.state;if(null===e)return;const{ancestorFocused:t}=this.props;!0===t?this.beginShowTooltip():!1===t&&this.beginHideTooltip()}onKeyDown=e=>{"Escape"===e.key&&this.state.show&&!1!==this.props.dismissable&&(e.preventDefault(),this.beginHideTooltip())};installTooltip(e){e.addEventListener("mouseenter",this.onTargetMouseEnter),e.addEventListener("mouseleave",this.onTargetMouseLeave),e.addEventListener("mousemove",this.onTargetMouseMove),e.addEventListener("mousedown",this.onTargetMouseDown),e.addEventListener("focus",this.onTargetFocus),e.addEventListener("focusin",this.onTargetFocusIn),e.addEventListener("focusout",this.onTargetBlur),e.addEventListener("blur",this.onTargetBlur),e.addEventListener("tooltip-shown",this.onTooltipShown),e.addEventListener("tooltip-hidden",this.onTooltipHidden),e.addEventListener("click",this.onTargetClick),e.addEventListener("keydown",this.onKeyDown)}removeTooltip(e){null!==e&&(e.getAttribute("aria-describedby")&&this.removeFromTargetAriaDescribedBy(e),e.removeEventListener("mouseenter",this.onTargetMouseEnter),e.removeEventListener("mouseleave",this.onTargetMouseLeave),e.removeEventListener("mousemove",this.onTargetMouseMove),e.removeEventListener("mousedown",this.onTargetMouseDown),e.removeEventListener("focus",this.onTargetFocus),e.removeEventListener("focusin",this.onTargetFocusIn),e.removeEventListener("focusout",this.onTargetBlur),e.removeEventListener("blur",this.onTargetBlur),e.removeEventListener("click",this.onTargetClick),e.removeEventListener("keydown",this.onKeyDown))}updateMouseRect=e=>{this.mouseRect=new DOMRect(e.clientX-10,e.clientY-10,20,20)};onTargetMouseEnter=e=>{this.updateMouseRect(e),this.mouseOverTarget=!0,this.cancelHideTooltip(),this.state.show||this.beginShowTooltip()};onTargetMouseMove=e=>{this.updateMouseRect(e)};onTargetMouseDown=e=>{this.props.isToggleTip||this.hideTooltip()};onTargetFocus=e=>{this.state.target?.matches(":focus-visible")&&!this.props.isToggleTip&&this.beginShowTooltip()};onTargetClick=e=>{this.state.show||!this.props.isToggleTip&&!this.props.openOnTargetClick||this.beginShowTooltip()};onTargetFocusIn=e=>{this.props.openOnFocus&&this.beginShowTooltip()};onTargetBlur=e=>{this.mouseOverTarget||this.mouseOverTooltip||this.beginHideTooltip()};onTooltipShown=e=>{e.target!==this.state.target&&this.state.show&&this.hideTooltip()};onTooltipHidden=e=>{e.target!==this.state.target&&this.mouseOverTarget&&this.beginShowTooltip()};beginShowTooltip(){this.cancelShowTooltip(),this.showTooltipTimeout=window.setTimeout(this.showTooltip,this.props.delay??400)}isTargetOverflowed(){const{isTargetOverflowed:e}=this.props,{target:t}=this.state;return null!==t&&(void 0===e?t.scrollWidth>t.clientWidth:"boolean"==typeof e?e:e(t))}showTooltip=()=>{this.cancelShowTooltip();const{tooltipHost:e,target:t}=this.state;null!==e&&null!==t&&(this.props.onlyWhenOverflowed&&!this.isTargetOverflowed()||this.setState({measure:!0,show:!1,targetRect:this.getTargetRect(t),hostRect:e.getBoundingClientRect(),windowRect:new DOMRect(0,0,window.innerWidth,window.innerHeight)}))};getTargetRect(e){const{direction:t,tooltipOffset:n}=this.props;return((e,t,n)=>new DOMRect(e.x+t,e.y+n,e.width,e.height))(void 0===t?this.mouseRect:e.getBoundingClientRect(),n?.x??0,n?.y??0)}cancelShowTooltip(){null!==this.showTooltipTimeout&&(clearTimeout(this.showTooltipTimeout),this.showTooltipTimeout=null)}onTargetMouseLeave=e=>{this.mouseOverTarget=!1,this.beginHideTooltip()};beginHideTooltip(){this.cancelShowTooltip(),!0===this.props.interactive&&null===this.hideTooltipTimeout?this.hideTooltipTimeout=window.setTimeout(this.hideTooltip,250):this.hideTooltip()}hideTooltip=()=>{this.cancelShowTooltip(),this.cancelHideTooltip(),this.state.show&&this.state.target?.dispatchEvent(new CustomEvent("tooltip-hidden",{bubbles:!0})),this.setState({show:!1,measure:!1})};cancelHideTooltip(){null!==this.hideTooltipTimeout&&(clearTimeout(this.hideTooltipTimeout),this.hideTooltipTimeout=null)}componentWillUnmount(){this.cancelShowTooltip(),this.props.target.unsubscribe(this.onTargetRef),this.removeTooltip(this.state.target),this.state.id&&oi(this.state.id)}render(){return null===this.state.target||null===this.state.tooltipHost?null:De.createPortal(this.renderPortal(),this.state.tooltipHost)}renderPortal(){const{show:e,measure:t}=this.state;if(!e&&!t)return null;const n=e&&!t,{targetRect:r,hostRect:i,windowRect:s,tooltipRect:o}=this.state,a=n?function(e,t,n,r){const i=e=>function(e,t){return e===t||t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right}(n,ui(t,e,r));let s=new Set([li.NORTH,li.NORTH_EAST,li.NORTH_WEST,li.SOUTH,li.SOUTH_EAST,li.SOUTH_WEST,li.EAST,li.WEST]);if(void 0!==e){if(i(e))return e;e.startsWith(li.SOUTH)?s=new Set([li.SOUTH,li.SOUTH_EAST,li.SOUTH_WEST,...s]):e.startsWith(li.NORTH)&&(s=new Set([li.NORTH,li.NORTH_EAST,li.NORTH_WEST,...s])),s.delete(e)}else s=new Set([li.SOUTH_EAST,li.NORTH_EAST,...s]);for(const e of s)if(i(e))return e;return li.SOUTH}(this.props.direction,r,s,o):li.SOUTH,l=n?function(e,t,n,r){const i=ui(t,e,r);return i.x-=n.x,i.y-=n.y,{transform:`translate(${i.left}px, ${i.top}px)`}}(a,r,i,o):{visibility:"hidden",left:"0px",top:"0px"},c=ri()("tooltip",this.props.className,{interactive:this.props.interactive,[`tooltip-${a}`]:e});return Ae.createElement("div",{role:"tooltip","aria-hidden":"true",className:c,id:this.state.id,style:l,ref:this.onTooltipRef,onClick:pi,onContextMenu:pi,onDoubleClick:pi,onDrag:pi,onDragEnd:pi,onDragEnter:pi,onDragExit:pi,onDragLeave:pi,onDragOver:pi,onDragStart:pi,onDrop:pi,onMouseDown:pi,onMouseEnter:pi,onMouseLeave:pi,onMouseMove:pi,onMouseOver:pi,onMouseOut:pi,onMouseUp:pi,onKeyDown:pi,onKeyPress:pi,onKeyUp:pi,onFocus:pi,onBlur:pi,onChange:pi,onInput:pi,onInvalid:pi,onSubmit:pi},Ae.createElement("div",{className:"tooltip-content"},this.props.children))}}function ui(e,t,n){const{left:r,right:i,bottom:s}=e,o=e.left+e.width/2,a=e.top-n.height,l=e.top+e.height/2-n.height/2,{width:c,height:u}=n,h=new DOMRect(10,0,6,6);switch(t){case li.NORTH_EAST:return new DOMRect(o-h.x-h.width,a-h.height,c,u);case li.NORTH:return new DOMRect(o-c/2,a-h.height,c,u);case li.NORTH_WEST:return new DOMRect(o-c+h.right,a-h.height,c,u);case li.EAST:return new DOMRect(i+h.width,l,c,u);case li.SOUTH_EAST:return new DOMRect(o-h.x-h.width,s+h.height,c,u);case li.SOUTH:return new DOMRect(o-c/2,s+h.height,c,u);case li.SOUTH_WEST:return new DOMRect(o-c+h.right,s+h.height,c,u);case li.WEST:return new DOMRect(r-c-h.width,l,c,u);default:return ct(0,`Unknown direction ${t}`)}}const hi=e=>e?.closest(".tooltip-host")??document.body,pi=e=>e.stopPropagation();function di(e){const t=new Set,n=Object.assign((e=>{n.current=e,t.forEach((t=>t(e)))}),{current:e??null,subscribe:e=>t.add(e),unsubscribe:e=>t.delete(e)});return n}class mi extends Ae.Component{innerButtonRef=di();constructor(e){super(e),this.innerButtonRef.subscribe((e=>this.props.onButtonRef?.(e)))}focus=()=>{this.innerButtonRef.current?.focus()};blur(){this.innerButtonRef.current?.blur()}getBoundingClientRect(){return this.innerButtonRef.current?.getBoundingClientRect()}render(){const{disabled:e,tooltip:t}=this.props,n=ri()("button-component",this.props.className,{"small-button":"small"===this.props.size});return Ae.createElement("button",{className:n,onClick:e?fi:this.onClick,onKeyDown:this.props.onKeyDown,onContextMenu:e?fi:this.onContextMenu,type:this.props.type||"button",ref:this.innerButtonRef,tabIndex:this.props.tabIndex,onMouseEnter:e?fi:this.props.onMouseEnter,role:this.props.role,"aria-expanded":this.props.ariaExpanded,"aria-disabled":e?"true":void 0,"aria-label":this.props.ariaLabel,"aria-describedby":this.props.ariaDescribedBy,"aria-haspopup":this.props.ariaHaspopup,"aria-pressed":this.props.ariaPressed,"aria-hidden":this.props.ariaHidden,"aria-controls":this.props.ariaControls,autoFocus:this.props.autoFocus},t&&Ae.createElement(ci,{className:this.props.tooltipClassName,target:this.innerButtonRef,direction:this.props.toolTipDirection??li.NORTH,delay:e?0:void 0,onlyWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,openOnTargetClick:this.props.openTooltipOnClick,applyAriaDescribedBy:this.props.applyTooltipAriaDescribedBy,dismissable:this.props.tooltipDismissable},t),this.props.children)}onClick=e=>{this.props.onClick&&this.props.onClick(e),void 0===this.props.type&&e.preventDefault()};onContextMenu=e=>{this.props.onContextMenu?.(e),void 0===this.props.type&&e.preventDefault()}}const fi=e=>e.preventDefault();class gi extends Ae.Component{componentWillMount(){this.setState({windowState:null}),this.initializeWindowState(),y("window-state-changed",this.onWindowStateChanged)}initializeWindowState=async()=>{const e=await F();void 0!==e&&this.setState({windowState:e})};componentWillUnmount(){w("window-state-changed",this.onWindowStateChanged)}onMinimize=()=>{z()};onMaximize=()=>{j()};onRestore=()=>{K()};onClose=()=>{Y()};shouldComponentUpdate(e,t){return t.windowState!==this.state.windowState}onWindowStateChanged=(e,t)=>{this.setState({windowState:t})};renderButton(e,t,n){const r=ri()("window-control",e),i=e[0].toUpperCase()+e.substring(1);return Ae.createElement(mi,{ariaLabel:i,ariaHidden:!0,tabIndex:-1,className:r,onClick:t,tooltip:i,tooltipClassName:"window-controls-tooltip"},Ae.createElement("svg",{"aria-hidden":"true",version:"1.1",width:"10",height:"10"},Ae.createElement("path",{d:n})))}render(){const e=this.renderButton("minimize",this.onMinimize,"M 0,5 10,5 10,6 0,6 Z"),t="maximized"===this.state.windowState?this.renderButton("restore",this.onRestore,"m 2,1e-5 0,2 -2,0 0,8 8,0 0,-2 2,0 0,-8 z m 1,1 6,0 0,6 -1,0 0,-5 -5,0 z m -2,2 6,0 0,6 -6,0 z"):this.renderButton("maximize",this.onMaximize,"M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z"),n=this.renderButton("close",this.onClose,"M 0,0 0,0.7 4.3,5 0,9.3 0,10 0.7,10 5,5.7 9.3,10 10,10 10,9.3 5.7,5 10,0.7 10,0 9.3,0 5,4.3 0.7,0 Z");return Ae.createElement("div",{className:"window-controls"},e,t,n)}}class yi extends Ae.Component{svgRef=di();render(){const{symbol:e}=this.props;if(this.isSingleVariant(e))return this.renderIcon(e.p,e.h,e.w);{const t=this.props.height??16,n=this.closestNaturalHeight(Object.keys(e).map((e=>parseInt(e,10))),t),r=e[n];if(void 0===r)return null;const i=t*(r.w/n);return this.renderIcon(r.p,t,i)}}renderIcon(e,t,n){const{title:r,tooltipDirection:i}=this.props,s=`0 0 ${n} ${t}`,o=ri()("octicon",this.props.className),a=void 0===r?"true":void 0,l=i??li.NORTH;return Ae.createElement("svg",{"aria-hidden":a,"aria-label":r,className:o,version:"1.1",viewBox:s,ref:this.svgRef,tabIndex:-1,height:t,width:n},void 0!==r&&Ae.createElement(ci,{target:this.svgRef,direction:l},r),e.map(((e,t)=>Ae.createElement("path",{key:t,d:e}))))}isSingleVariant(e){return e instanceof Object&&e.hasOwnProperty("p")&&e.hasOwnProperty("h")&&e.hasOwnProperty("w")}closestNaturalHeight(e,t){return e.reduce(((e,n)=>n<=t?n:e),e[0])}}const wi={16:{p:["M9.923 5.302c.063.063.122.129.178.198H14A.75.75 0 0 1 14 7h-3.3l.578 5.163.362 2.997a.75.75 0 0 1-1.49.18L9.868 13H6.132l-.282 2.34a.75.75 0 0 1-1.49-.18l.362-2.997L5.3 7H2a.75.75 0 0 1 0-1.5h3.9a2.54 2.54 0 0 1 .176-.198 3 3 0 1 1 3.847 0ZM9.2 7.073h-.001a1.206 1.206 0 0 0-2.398 0L6.305 11.5h3.39ZM9.5 3a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 3Z"],h:16,w:16}},bi={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm2 4a2 2 0 1 0-2.95 1.76 1.87 1.87 0 0 0-.32.24H3.75a.75.75 0 0 0 0 1.5h2.363l-.607 5.67a.75.75 0 1 0 1.49.16l.25-2.33h1.508l.25 2.33a.75.75 0 0 0 1.492-.16L9.888 7.5h2.362a.75.75 0 0 0 0-1.5H9.27a1.98 1.98 0 0 0-.32-.24A2 2 0 0 0 10 4Z"],h:16,w:16}},vi={16:{p:["M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z","M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"],h:24,w:24}},Ci={12:{p:["M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"],h:12,w:12},16:{p:["M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"],h:16,w:16},24:{p:["M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"],h:24,w:24}},Si={16:{p:["M1.5 3.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5A1.75 1.75 0 0 1 5.75 7.5h-2.5A1.75 1.75 0 0 1 1.5 5.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5A1.75 1.75 0 0 1 8.5 5.75Zm-7 7c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75ZM3.25 3a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5A.25.25 0 0 0 6 5.75v-2.5A.25.25 0 0 0 5.75 3Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm-7 7a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16}},Ei={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0 1 14.25 6H1.75A1.75 1.75 0 0 1 0 4.25ZM1.75 7a.75.75 0 0 1 .75.75v5.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-5.5a.75.75 0 0 1 1.5 0v5.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25v-5.5A.75.75 0 0 1 1.75 7Zm0-4.5a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25ZM6.25 8h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M2.75 2h18.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 21.25 9H2.75A1.75 1.75 0 0 1 1 7.25v-3.5C1 2.784 1.784 2 2.75 2Zm18.5 1.5H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25ZM2.75 10a.75.75 0 0 1 .75.75v9.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-9.5a.75.75 0 0 1 1.5 0v9.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-9.5a.75.75 0 0 1 .75-.75Z","M9.75 11.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z"],h:24,w:24}},ki={16:{p:["M3.72 3.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.56 7h10.88l-2.22-2.22a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.5 3.5a.75.75 0 0 1 0 1.06l-3.5 3.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l2.22-2.22H2.56l2.22 2.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3.5-3.5a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M7.78 5.97a.75.75 0 0 0-1.06 0l-5.25 5.25a.75.75 0 0 0 0 1.06l5.25 5.25a.75.75 0 0 0 1.06-1.06L3.81 12.5h16.38l-3.97 3.97a.75.75 0 1 0 1.06 1.06l5.25-5.25a.75.75 0 0 0 0-1.06l-5.25-5.25a.75.75 0 1 0-1.06 1.06L20.19 11H3.81l3.97-3.97a.75.75 0 0 0 0-1.06Z"],h:24,w:24}},Ri={16:{p:["M13.03 8.22a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L3.47 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l2.97 2.97V3.75a.75.75 0 0 1 1.5 0v7.44l2.97-2.97a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M4.97 13.22a.75.75 0 0 1 1.06 0L11 18.19V3.75a.75.75 0 0 1 1.5 0v14.44l4.97-4.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-6.25 6.25a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06Z"],h:24,w:24}},Ti={16:{p:["M11.78 4.22a.75.75 0 0 1 0 1.06l-5.26 5.26h4.2a.75.75 0 0 1 0 1.5H4.71a.75.75 0 0 1-.75-.75V5.28a.75.75 0 0 1 1.5 0v4.2l5.26-5.26a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M5.75 8.5a.75.75 0 0 1 .75.75v7.19L16.72 6.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L7.56 17.5h7.19a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1-.75-.75v-9a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Ai={16:{p:["M4.22 4.179a.75.75 0 0 1 1.06 0l5.26 5.26v-4.2a.75.75 0 0 1 1.5 0v6.01a.75.75 0 0 1-.75.75H5.28a.75.75 0 0 1 0-1.5h4.2L4.22 5.24a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M18.25 8.5a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h7.19L6.22 7.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L17.5 16.44V9.25a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},xi={16:{p:["M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z"],h:16,w:16},24:{p:["M10.78 19.03a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L5.81 11.5h14.44a.75.75 0 0 1 0 1.5H5.81l4.97 4.97a.75.75 0 0 1 0 1.06Z"],h:24,w:24}},Di={16:{p:["M8.22 2.97a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l2.97-2.97H3.75a.75.75 0 0 1 0-1.5h7.44L8.22 4.03a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M13.22 19.03a.75.75 0 0 1 0-1.06L18.19 13H3.75a.75.75 0 0 1 0-1.5h14.44l-4.97-4.97a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},_i={16:{p:["M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z"],h:16,w:16},24:{p:["M7.72 21.78a.75.75 0 0 0 1.06-1.06L5.56 17.5h14.69a.75.75 0 0 0 0-1.5H5.56l3.22-3.22a.75.75 0 1 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5Zm8.56-9.5a.75.75 0 1 1-1.06-1.06L18.44 8H3.75a.75.75 0 0 1 0-1.5h14.69l-3.22-3.22a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5Z"],h:24,w:24}},Mi={16:{p:["M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z"],h:16,w:16},24:{p:["M18.655 10.405a.75.75 0 0 1-1.06 0l-4.97-4.97v14.44a.75.75 0 0 1-1.5 0V5.435l-4.97 4.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l6.25-6.25a.75.75 0 0 1 1.06 0l6.25 6.25a.75.75 0 0 1 0 1.06Z"],h:24,w:24}},Pi={16:{p:["M3.96 4.75A.75.75 0 0 1 4.71 4h6.01a.75.75 0 0 1 0 1.5h-4.2l5.26 5.26a.75.75 0 0 1-1.06 1.061l-5.26-5.26v4.2a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M5.75 15.5a.75.75 0 0 1-.75-.75v-9A.75.75 0 0 1 5.75 5h9a.75.75 0 0 1 0 1.5H7.56l10.22 10.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L6.5 7.56v7.19a.75.75 0 0 1-.75.75Z"],h:24,w:24}},Ii={16:{p:["M4.53 4.75A.75.75 0 0 1 5.28 4h6.01a.75.75 0 0 1 .75.75v6.01a.75.75 0 0 1-1.5 0v-4.2l-5.26 5.261a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L9.48 5.5h-4.2a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"],h:24,w:24}},Oi={16:{p:["M5 5.782V2.5h-.25a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5H11v3.282l3.666 5.76C15.619 13.04 14.543 15 12.767 15H3.233c-1.776 0-2.852-1.96-1.899-3.458Zm-2.4 6.565a.75.75 0 0 0 .633 1.153h9.534a.75.75 0 0 0 .633-1.153L12.225 10.5h-8.45ZM9.5 2.5h-3V6c0 .143-.04.283-.117.403L4.73 9h6.54L9.617 6.403A.746.746 0 0 1 9.5 6Z"],h:16,w:16},24:{p:["M8 8.807V3.5h-.563a.75.75 0 0 1 0-1.5h9.125a.75.75 0 0 1 0 1.5H16v5.307l5.125 9.301c.964 1.75-.302 3.892-2.299 3.892H5.174c-1.998 0-3.263-2.142-2.3-3.892ZM4.189 18.832a1.123 1.123 0 0 0 .985 1.668h13.652a1.123 1.123 0 0 0 .985-1.668L17.7 15H6.3ZM14.5 3.5h-5V9a.75.75 0 0 1-.093.362L7.127 13.5h9.746l-2.28-4.138A.75.75 0 0 1 14.5 9Z"],h:24,w:24}},Ni={16:{p:["M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"],h:16,w:16},24:{p:["M12 1c3.681 0 7 2.565 7 6v4.539c0 .642.189 1.269.545 1.803l2.2 3.298A1.517 1.517 0 0 1 20.482 19H15.5a3.5 3.5 0 1 1-7 0H3.519a1.518 1.518 0 0 1-1.265-2.359l2.2-3.299A3.25 3.25 0 0 0 5 11.539V7c0-3.435 3.318-6 7-6ZM6.5 7v4.539a4.75 4.75 0 0 1-.797 2.635l-2.2 3.298-.003.01.001.007.004.006.006.004.007.001h16.964l.007-.001.006-.004.004-.006.001-.006a.017.017 0 0 0-.003-.01l-2.199-3.299a4.753 4.753 0 0 1-.798-2.635V7c0-2.364-2.383-4.5-5.5-4.5S6.5 4.636 6.5 7ZM14 19h-4a2 2 0 1 0 4 0Z"],h:24,w:24}},Li={16:{p:["M8 16c.9 0 1.7-.6 1.9-1.5.1-.3-.1-.5-.4-.5h-3c-.3 0-.5.2-.4.5.2.9 1 1.5 1.9 1.5ZM3 5c0-2.8 2.2-5 5-5s5 2.2 5 5v3l1.7 2.6c.2.2.3.5.3.8 0 .8-.7 1.5-1.5 1.5h-11c-.8.1-1.5-.6-1.5-1.4 0-.3.1-.6.3-.8L3 8.1V5Z"],h:16,w:16},24:{p:["M6 8a6 6 0 1 1 12 0v2.917c0 .703.228 1.387.65 1.95L20.7 15.6a1.5 1.5 0 0 1-1.2 2.4h-15a1.5 1.5 0 0 1-1.2-2.4l2.05-2.733a3.25 3.25 0 0 0 .65-1.95Zm6 13.5A3.502 3.502 0 0 1 8.645 19h6.71A3.502 3.502 0 0 1 12 21.5Z"],h:24,w:24}},Bi={16:{p:["m4.182 4.31.016.011 10.104 7.316.013.01 1.375.996a.75.75 0 1 1-.88 1.214L13.626 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947V5.305L.31 3.357a.75.75 0 1 1 .88-1.214Zm7.373 7.19L4.5 6.391v1.556c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01c0 .005.002.009.005.012l.006.004.007.001ZM8 1.5c-.997 0-1.895.416-2.534 1.086A.75.75 0 1 1 4.38 1.55 5 5 0 0 1 13 5v2.373a.75.75 0 0 1-1.5 0V5A3.5 3.5 0 0 0 8 1.5ZM8 16a2 2 0 0 1-1.985-1.75c-.017-.137.097-.25.235-.25h3.5c.138 0 .252.113.235.25A2 2 0 0 1 8 16Z"],h:16,w:16},24:{p:["M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L17.94 19H15.5a3.5 3.5 0 1 1-7 0H3.518a1.516 1.516 0 0 1-1.263-2.36l2.2-3.298A3.249 3.249 0 0 0 5 11.539V7c0-.294.025-.583.073-.866L1.22 2.28a.75.75 0 0 1 0-1.06ZM6.5 7.56h-.001v3.979a4.75 4.75 0 0 1-.797 2.635l-2.2 3.298-.003.01.001.007.004.006.006.004.007.001H16.44ZM10 19a2 2 0 1 0 4 0Zm2-16.5c-1.463 0-2.8.485-3.788 1.257l-.04.032a.75.75 0 1 1-.935-1.173l.05-.04C8.548 1.59 10.212 1 12 1c3.681 0 7 2.565 7 6v4.539c0 .642.19 1.269.546 1.803l1.328 1.992a.75.75 0 1 1-1.248.832l-1.328-1.992a4.75 4.75 0 0 1-.798-2.635V7c0-2.364-2.383-4.5-5.5-4.5Z"],h:24,w:24}},Fi={16:{p:["M4.467.22a.749.749 0 0 1 .53-.22h6.006c.199 0 .389.079.53.22l4.247 4.247c.141.14.22.331.22.53v6.006a.749.749 0 0 1-.22.53l-4.247 4.247a.749.749 0 0 1-.53.22H4.997a.749.749 0 0 1-.53-.22L.22 11.533a.749.749 0 0 1-.22-.53V4.997c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.308v5.384L5.308 14.5h5.384l3.808-3.808V5.308L10.692 1.5ZM4 7.75A.75.75 0 0 1 4.75 7h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 7.75Z"],h:16,w:16},24:{p:["M7.638 2.22a.749.749 0 0 1 .53-.22h7.664c.199 0 .389.079.53.22l5.418 5.418c.141.14.22.332.22.53v7.664a.749.749 0 0 1-.22.53l-5.418 5.418a.749.749 0 0 1-.53.22H8.168a.749.749 0 0 1-.53-.22l-5.42-5.418a.752.752 0 0 1-.219-.53V8.168c0-.199.079-.389.22-.53l5.418-5.42ZM8.48 3.5 3.5 8.48v7.04l4.98 4.98h7.04l4.98-4.98V8.48L15.52 3.5ZM7 11.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Hi={16:{p:["M4 2h4.5a3.501 3.501 0 0 1 2.852 5.53A3.499 3.499 0 0 1 9.5 14H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 7v3h4.5a1.5 1.5 0 0 0 0-3Zm3.5-2a1.5 1.5 0 0 0 0-3H5v3Z"],h:16,w:16},24:{p:["M6 4.75c0-.69.56-1.25 1.25-1.25h5a4.752 4.752 0 0 1 3.888 7.479A5 5 0 0 1 14 20.5H7.25c-.69 0-1.25-.56-1.25-1.25ZM8.5 13v5H14a2.5 2.5 0 1 0 0-5Zm0-2.5h3.751A2.25 2.25 0 0 0 12.25 6H8.5Z"],h:24,w:24}},Ui={16:{p:["M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"],h:16,w:16},24:{p:["M0 3.75A.75.75 0 0 1 .75 3h7.497c1.566 0 2.945.8 3.751 2.014A4.495 4.495 0 0 1 15.75 3h7.5a.75.75 0 0 1 .75.75v15.063a.752.752 0 0 1-.755.75l-7.682-.052a3 3 0 0 0-2.142.878l-.89.891a.75.75 0 0 1-1.061 0l-.902-.901a2.996 2.996 0 0 0-2.121-.879H.75a.75.75 0 0 1-.75-.75Zm12.75 15.232a4.503 4.503 0 0 1 2.823-.971l6.927.047V4.5h-6.75a3 3 0 0 0-3 3ZM11.247 7.497a3 3 0 0 0-3-2.997H1.5V18h6.947c1.018 0 2.006.346 2.803.98Z"],h:24,w:24}},Zi={16:{p:["M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M5 3.75C5 2.784 5.784 2 6.75 2h10.5c.966 0 1.75.784 1.75 1.75v17.5a.75.75 0 0 1-1.218.586L12 17.21l-5.781 4.625A.75.75 0 0 1 5 21.25Zm1.75-.25a.25.25 0 0 0-.25.25v15.94l5.031-4.026a.749.749 0 0 1 .938 0L17.5 19.69V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},$i={24:{p:["M6.69 2h10.56c.966 0 1.75.784 1.75 1.75v17.5a.75.75 0 0 1-1.218.585L12 17.21l-5.781 4.626A.75.75 0 0 1 5 21.253L4.94 3.756A1.748 1.748 0 0 1 6.69 2Z"],h:24,w:24}},Wi={16:{p:["M1.19 1.143 4.182 3.31l.014.01 8.486 6.145.014.01 2.994 2.168a.75.75 0 1 1-.88 1.214L13 11.547v2.703a.75.75 0 0 1-1.206.596L8 11.944l-3.794 2.902A.75.75 0 0 1 3 14.25V4.305L.31 2.357a.75.75 0 1 1 .88-1.214ZM4.5 5.39v7.341l3.044-2.328a.75.75 0 0 1 .912 0l3.044 2.328V10.46ZM5.865 1h5.385c.966 0 1.75.784 1.75 1.75v3.624a.75.75 0 0 1-1.5 0V2.75a.25.25 0 0 0-.25-.25H5.865a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M1.565 2.018v-.001l21.75 15.75a.75.75 0 1 1-.88 1.215L19 16.495v4.764a.748.748 0 0 1-1.219.584L12 17.21l-5.781 4.634A.75.75 0 0 1 5 21.259V6.357L.685 3.232a.75.75 0 0 1 .88-1.214ZM17.5 15.408l-11-7.965v12.254l5.031-4.032a.749.749 0 0 1 .938 0l5.031 4.032ZM7.25 2a.75.75 0 0 0 0 1.5h10a.25.25 0 0 1 .25.25v6.5a.75.75 0 0 0 1.5 0v-6.5A1.75 1.75 0 0 0 17.25 2h-10Z"],h:24,w:24}},qi={24:{p:["m3.232 2.175 18.5 15.5a.75.75 0 1 1-.964 1.15L19 17.343v3.907a.75.75 0 0 1-1.218.585L12 17.21l-5.781 4.626A.75.75 0 0 1 5 21.253L4.947 5.569 2.268 3.325a.75.75 0 1 1 .964-1.15ZM7.421 2h9.829c.966 0 1.75.784 1.75 1.75v8.073a.75.75 0 0 1-1.232.575L6.94 3.325A.75.75 0 0 1 7.421 2Z"],h:24,w:24}},Vi={16:{p:["M6.75 0h2.5C10.216 0 11 .784 11 1.75V3h3.25c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-8.5C0 3.784.784 3 1.75 3H5V1.75C5 .784 5.784 0 6.75 0ZM3.5 9.5a3.49 3.49 0 0 1-2-.627v4.377c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V8.873a3.49 3.49 0 0 1-2 .627Zm-1.75-5a.25.25 0 0 0-.25.25V6a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V4.75a.25.25 0 0 0-.25-.25H1.75ZM9.5 3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25V3Z"],h:16,w:16},24:{p:["M7.5 1.75C7.5.784 8.284 0 9.25 0h5.5c.966 0 1.75.784 1.75 1.75V4h4.75c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 21.25 22H2.75A1.75 1.75 0 0 1 1 20.25V5.75C1 4.784 1.784 4 2.75 4H7.5Zm-5 10.24v8.26c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25v-8.26A4.235 4.235 0 0 1 18.75 13H5.25a4.235 4.235 0 0 1-2.75-1.01Zm19-3.24v-3a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v3a2.75 2.75 0 0 0 2.75 2.75h13.5a2.75 2.75 0 0 0 2.75-2.75Zm-6.5-7a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25V4h6Z"],h:24,w:24}},Gi={16:{p:["M8.75 8.582v5.668a.75.75 0 0 1-1.5 0V8.582a1.75 1.75 0 1 1 1.5 0Zm3.983-7.125a.75.75 0 0 1 1.06.026A7.976 7.976 0 0 1 16 7c0 2.139-.84 4.083-2.207 5.517a.75.75 0 1 1-1.086-1.034A6.474 6.474 0 0 0 14.5 7a6.474 6.474 0 0 0-1.793-4.483.75.75 0 0 1 .026-1.06Zm-9.466 0c.3.286.312.76.026 1.06A6.474 6.474 0 0 0 1.5 7a6.47 6.47 0 0 0 1.793 4.483.75.75 0 0 1-1.086 1.034A7.973 7.973 0 0 1 0 7c0-2.139.84-4.083 2.207-5.517a.75.75 0 0 1 1.06-.026Zm8.556 2.321A4.988 4.988 0 0 1 13 7a4.988 4.988 0 0 1-1.177 3.222.75.75 0 1 1-1.146-.967A3.487 3.487 0 0 0 11.5 7c0-.86-.309-1.645-.823-2.255a.75.75 0 0 1 1.146-.967Zm-6.492.958A3.48 3.48 0 0 0 4.5 7a3.48 3.48 0 0 0 .823 2.255.75.75 0 0 1-1.146.967A4.981 4.981 0 0 1 3 7a4.982 4.982 0 0 1 1.188-3.236.75.75 0 1 1 1.143.972Z"],h:16,w:16},24:{p:["M20.485 2.515a.75.75 0 0 0-1.06 1.06A10.465 10.465 0 0 1 22.5 11c0 2.9-1.174 5.523-3.075 7.424a.75.75 0 0 0 1.06 1.061A11.965 11.965 0 0 0 24 11c0-3.314-1.344-6.315-3.515-8.485Zm-15.91 1.06a.75.75 0 0 0-1.06-1.06A11.965 11.965 0 0 0 0 11c0 3.313 1.344 6.314 3.515 8.485a.75.75 0 0 0 1.06-1.06A10.465 10.465 0 0 1 1.5 11c0-2.9 1.174-5.524 3.075-7.425ZM8.11 7.11a.75.75 0 0 0-1.06-1.06A6.98 6.98 0 0 0 5 11a6.98 6.98 0 0 0 2.05 4.95.75.75 0 0 0 1.06-1.061 5.48 5.48 0 0 1-1.61-3.89 5.48 5.48 0 0 1 1.61-3.888Zm8.84-1.06a.75.75 0 1 0-1.06 1.06A5.48 5.48 0 0 1 17.5 11a5.48 5.48 0 0 1-1.61 3.889.75.75 0 1 0 1.06 1.06A6.98 6.98 0 0 0 19 11a6.98 6.98 0 0 0-2.05-4.949ZM14 11a2 2 0 0 1-1.25 1.855v8.395a.75.75 0 0 1-1.5 0v-8.395A2 2 0 1 1 14 11Z"],h:24,w:24}},zi={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25ZM14.5 6h-13v7.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm-6-3.5v2h6V2.75a.25.25 0 0 0-.25-.25ZM5 2.5v2h2v-2Zm-3.25 0a.25.25 0 0 0-.25.25V4.5h2v-2Z"],h:16,w:16},24:{p:["M0 3.75C0 2.784.784 2 1.75 2h20.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 22.25 22H1.75A1.75 1.75 0 0 1 0 20.25ZM22.5 7h-21v13.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25Zm-10-3.5v2h10V3.75a.25.25 0 0 0-.25-.25ZM7 3.5v2h4v-2Zm-5.25 0a.25.25 0 0 0-.25.25V5.5h4v-2Z"],h:24,w:24}},ji={16:{p:["M4.72.22a.75.75 0 0 1 1.06 0l1 .999a3.488 3.488 0 0 1 2.441 0l.999-1a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.775.776c.616.63.995 1.493.995 2.444v.327c0 .1-.009.197-.025.292.408.14.764.392 1.029.722l1.968-.787a.75.75 0 0 1 .556 1.392L13 7.258V9h2.25a.75.75 0 0 1 0 1.5H13v.5c0 .409-.049.806-.141 1.186l2.17.868a.75.75 0 0 1-.557 1.392l-2.184-.873A4.997 4.997 0 0 1 8 16a4.997 4.997 0 0 1-4.288-2.427l-2.183.873a.75.75 0 0 1-.558-1.392l2.17-.868A5.036 5.036 0 0 1 3 11v-.5H.75a.75.75 0 0 1 0-1.5H3V7.258L.971 6.446a.75.75 0 0 1 .558-1.392l1.967.787c.265-.33.62-.583 1.03-.722a1.677 1.677 0 0 1-.026-.292V4.5c0-.951.38-1.814.995-2.444L4.72 1.28a.75.75 0 0 1 0-1.06Zm.53 6.28a.75.75 0 0 0-.75.75V11a3.5 3.5 0 1 0 7 0V7.25a.75.75 0 0 0-.75-.75ZM6.173 5h3.654A.172.172 0 0 0 10 4.827V4.5a2 2 0 1 0-4 0v.327c0 .096.077.173.173.173Z"],h:16,w:16},24:{p:["M7.72.22a.75.75 0 0 1 1.06 0l1.204 1.203A4.98 4.98 0 0 1 12 1c.717 0 1.4.151 2.016.423L15.22.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-.971.972A4.991 4.991 0 0 1 17 6v1.104a2.755 2.755 0 0 1 1.917 1.974l1.998-.999a.75.75 0 0 1 .67 1.342L19 10.714V13.5l3.25.003a.75.75 0 0 1 0 1.5L19 15.001V16c0 .568-.068 1.134-.204 1.686l.04.018 2.75 1.375a.75.75 0 1 1-.671 1.342l-2.638-1.319A6.998 6.998 0 0 1 12 23a6.998 6.998 0 0 1-6.197-3.742l-2.758 1.181a.752.752 0 0 1-1.064-.776.752.752 0 0 1 .474-.602l2.795-1.199A6.976 6.976 0 0 1 5 16v-.996H1.75a.75.75 0 0 1 0-1.5H5v-2.79L2.415 9.42a.75.75 0 0 1 .67-1.342l1.998.999A2.756 2.756 0 0 1 7 7.104V6a4.99 4.99 0 0 1 1.69-3.748l-.97-.972a.75.75 0 0 1 0-1.06ZM6.5 9.75V16a5.5 5.5 0 1 0 11 0V9.75c0-.69-.56-1.25-1.25-1.25h-8.5c-.69 0-1.25.56-1.25 1.25ZM8.5 7h7V6a3.5 3.5 0 1 0-7 0Z"],h:24,w:24}},Ki={16:{p:["M2.5 5.724V8c0 .248.238.7 1.169 1.159.874.43 2.144.745 3.62.822a.75.75 0 1 1-.078 1.498c-1.622-.085-3.102-.432-4.204-.975a5.565 5.565 0 0 1-.507-.28V12.5c0 .133.058.318.282.551.227.237.591.483 1.101.707 1.015.447 2.47.742 4.117.742.406 0 .802-.018 1.183-.052a.751.751 0 1 1 .134 1.494C8.89 15.98 8.45 16 8 16c-1.805 0-3.475-.32-4.721-.869-.623-.274-1.173-.619-1.579-1.041-.408-.425-.7-.964-.7-1.59v-9c0-.626.292-1.165.7-1.591.406-.42.956-.766 1.579-1.04C4.525.32 6.195 0 8 0c1.806 0 3.476.32 4.721.869.623.274 1.173.619 1.579 1.041.408.425.7.964.7 1.59 0 .626-.292 1.165-.7 1.591-.406.42-.956.766-1.578 1.04C11.475 6.68 9.805 7 8 7c-1.805 0-3.475-.32-4.721-.869a6.15 6.15 0 0 1-.779-.407Zm0-2.224c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 5.205 6.353 5.5 8 5.5c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55 0-.133-.058-.318-.282-.551-.227-.237-.591-.483-1.101-.707C11.102 1.795 9.647 1.5 8 1.5c-1.646 0-3.101.295-4.118.742-.508.224-.873.471-1.1.708-.224.232-.282.417-.282.55Z","M14.49 7.582a.375.375 0 0 0-.66-.313l-3.625 4.625a.375.375 0 0 0 .295.606h2.127l-.619 2.922a.375.375 0 0 0 .666.304l3.125-4.125A.375.375 0 0 0 15.5 11h-1.778l.769-3.418Z"],h:16,w:16}},Yi={16:{p:["M4.75 0a.75.75 0 0 1 .75.75V2h5V.75a.75.75 0 0 1 1.5 0V2h1.25c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V3.75C1 2.784 1.784 2 2.75 2H4V.75A.75.75 0 0 1 4.75 0ZM2.5 7.5v6.75c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V7.5Zm10.75-4H2.75a.25.25 0 0 0-.25.25V6h11V3.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M6.75 0a.75.75 0 0 1 .75.75V3h9V.75a.75.75 0 0 1 1.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 0 1 6.75 0ZM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25Zm-17.75-5a.25.25 0 0 0-.25.25V8h18V4.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Xi={16:{p:["M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},Qi={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Ji={12:{p:["M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"],h:12,w:12},16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"],h:24,w:24}},es={16:{p:["M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.5 2.75v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25Zm9.28 3.53-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},ts={16:{p:["M2.5 1.75v11.5c0 .138.112.25.25.25h3.17a.75.75 0 0 1 0 1.5H2.75A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8.5C12.216 0 13 .784 13 1.75v7.736a.75.75 0 0 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13.274 9.537v-.001l-4.557 4.45a.75.75 0 0 1-1.055-.008l-1.943-1.95a.75.75 0 0 1 1.062-1.058l1.419 1.425 4.026-3.932a.75.75 0 1 1 1.048 1.074ZM4.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM4 7.75A.75.75 0 0 1 4.75 7h2a.75.75 0 0 1 0 1.5h-2A.75.75 0 0 1 4 7.75Z"],h:16,w:16},24:{p:["M3.5 3.75a.25.25 0 0 1 .25-.25h13.5a.25.25 0 0 1 .25.25v10a.75.75 0 0 0 1.5 0v-10A1.75 1.75 0 0 0 17.25 2H3.75A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h7a.75.75 0 0 0 0-1.5h-7a.25.25 0 0 1-.25-.25V3.75Z","M6.25 7a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Zm-.75 4.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm16.28 4.53a.75.75 0 1 0-1.06-1.06l-4.97 4.97-1.97-1.97a.75.75 0 1 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5.5-5.5Z"],h:24,w:24}},ns={12:{p:["M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"],h:12,w:12},16:{p:["M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"],h:24,w:24}},rs={16:{p:["M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06Z"],h:16,w:16},24:{p:["M15.28 5.22a.75.75 0 0 1 0 1.06L9.56 12l5.72 5.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},is={12:{p:["M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"],h:12,w:12},16:{p:["M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},ss={12:{p:["M6 4c-.2 0-.4.1-.5.2L2.2 7.5c-.3.3-.3.8 0 1.1.3.3.8.3 1.1 0L6 5.9l2.7 2.7c.3.3.8.3 1.1 0 .3-.3.3-.8 0-1.1L6.6 4.3C6.4 4.1 6.2 4 6 4Z"],h:12,w:12},16:{p:["M3.22 10.53a.749.749 0 0 1 0-1.06l4.25-4.25a.749.749 0 0 1 1.06 0l4.25 4.25a.749.749 0 1 1-1.06 1.06L8 6.811 4.28 10.53a.749.749 0 0 1-1.06 0Z"],h:16,w:16},24:{p:["M18.78 15.78a.749.749 0 0 1-1.06 0L12 10.061 6.28 15.78a.749.749 0 1 1-1.06-1.06l6.25-6.25a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 0 1 0 1.06Z"],h:24,w:24}},os={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"],h:24,w:24}},as={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM3.965 13.096a6.5 6.5 0 0 0 9.131-9.131ZM1.5 8a6.474 6.474 0 0 0 1.404 4.035l9.131-9.131A6.499 6.499 0 0 0 1.5 8Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM5.834 19.227A9.464 9.464 0 0 0 12 21.5a9.5 9.5 0 0 0 9.5-9.5 9.464 9.464 0 0 0-2.273-6.166ZM2.5 12a9.464 9.464 0 0 0 2.273 6.166L18.166 4.773A9.463 9.463 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},ls={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7-3.25v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},cs={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8.575-3.25a.825.825 0 1 0-1.65 0v3.5c0 .337.205.64.519.766l2.5 1a.825.825 0 0 0 .612-1.532l-1.981-.793Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.575-4.75a.825.825 0 1 0-1.65 0v5.5c0 .296.159.57.416.716l3.5 2a.825.825 0 0 0 .818-1.432l-3.084-1.763Z"],h:24,w:24}},us={16:{p:["M2 7.25A5.225 5.225 0 0 1 7.25 2a5.222 5.222 0 0 1 4.767 3.029A4.472 4.472 0 0 1 16 9.5c0 2.505-1.995 4.5-4.5 4.5h-8A3.474 3.474 0 0 1 0 10.5c0-1.41.809-2.614 2.001-3.17Zm1.54.482a.75.75 0 0 1-.556.832c-.86.22-1.484.987-1.484 1.936 0 1.124.876 2 2 2h8c1.676 0 3-1.324 3-3s-1.324-3-3-3a.75.75 0 0 1-.709-.504A3.72 3.72 0 0 0 7.25 3.5C5.16 3.5 3.5 5.16 3.5 7.25c.002.146.014.292.035.436l.004.036.001.008Z"],h:16,w:16},24:{p:["M3.103 10.107c0-4.244 3.445-7.607 7.733-7.607 3.19 0 5.912 1.858 7.099 4.563l.01.022.001.006C21.348 7.345 24 10.095 24 13.536 24 17.148 21.076 20 17.431 20H5.017C2.23 20 0 17.83 0 15.06a4.899 4.899 0 0 1 3.112-4.581 7.696 7.696 0 0 1-.009-.372ZM10.836 4c-3.485 0-6.233 2.717-6.233 6.107 0 .284.022.602.052.756a.75.75 0 0 1-.552.869c-1.52.385-2.603 1.712-2.603 3.328 0 1.917 1.532 3.44 3.517 3.44h12.414c2.843 0 5.069-2.206 5.069-4.964 0-2.759-2.226-4.965-5.069-4.965a.75.75 0 0 1-.696-.47l-.179-.446C15.606 5.5 13.424 4 10.836 4Z"],h:24,w:24}},hs={16:{p:["M7.25 2c-.69 0-1.351.13-1.957.371a.75.75 0 1 0 .554 1.394c.43-.17.903-.265 1.403-.265a3.72 3.72 0 0 1 3.541 2.496.75.75 0 0 0 .709.504c1.676 0 3 1.324 3 3a3 3 0 0 1-.681 1.92.75.75 0 0 0 1.156.955A4.496 4.496 0 0 0 16 9.5a4.472 4.472 0 0 0-3.983-4.471A5.222 5.222 0 0 0 7.25 2ZM.72 1.72a.75.75 0 0 1 1.06 0l2.311 2.31c.03.025.056.052.08.08l8.531 8.532.035.034 2.043 2.044a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.8-1.799a4.54 4.54 0 0 1-.42.019h-8A3.474 3.474 0 0 1 0 10.5c0-1.41.809-2.614 2.001-3.17a5.218 5.218 0 0 1 .646-2.622L.72 2.78a.75.75 0 0 1 0-1.06ZM3.5 7.25c.004.161.018.322.041.481a.75.75 0 0 1-.557.833c-.86.22-1.484.986-1.484 1.936 0 1.124.876 2 2 2h6.94L3.771 5.832A3.788 3.788 0 0 0 3.5 7.25Z"],h:16,w:16},24:{p:["m2.78 2.22 19.5 19.5a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2.845-2.845a6.932 6.932 0 0 1-.944.065H5.017C2.229 20 0 17.831 0 15.059a4.899 4.899 0 0 1 3.111-4.58A7.52 7.52 0 0 1 4.36 5.922L1.72 3.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018ZM16.94 18.5 5.448 7.01a6.026 6.026 0 0 0-.794 3.853.75.75 0 0 1-.552.869c-1.52.385-2.603 1.712-2.603 3.328 0 1.917 1.532 3.44 3.517 3.44Zm-6.104-16a7.865 7.865 0 0 0-3.638.88.75.75 0 1 0 .692 1.331A6.365 6.365 0 0 1 10.836 4c2.588 0 4.77 1.5 5.72 3.655l.179.445a.75.75 0 0 0 .696.471c2.843 0 5.069 2.206 5.069 4.965a4.9 4.9 0 0 1-1.684 3.716.75.75 0 0 0 .986 1.13A6.396 6.396 0 0 0 24 13.536c0-3.44-2.652-6.191-6.054-6.445l-.002-.006a.634.634 0 0 0-.01-.022C16.749 4.358 14.026 2.5 10.837 2.5Z"],h:24,w:24}},ps={16:{p:["m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M15.22 4.97a.75.75 0 0 1 1.06 0l6.5 6.5a.75.75 0 0 1 0 1.06l-6.5 6.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L21.19 12l-5.97-5.97a.75.75 0 0 1 0-1.06Zm-6.44 0a.75.75 0 0 1 0 1.06L2.81 12l5.97 5.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.5-6.5a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},ds={16:{p:["M8.048 2.241c.964-.709 2.079-1.238 3.325-1.241a4.616 4.616 0 0 1 3.282 1.355c.41.408.757.86.996 1.428.238.568.348 1.206.347 1.968 0 2.193-1.505 4.254-3.081 5.862-1.496 1.526-3.213 2.796-4.249 3.563l-.22.163a.749.749 0 0 1-.895 0l-.221-.163c-1.036-.767-2.753-2.037-4.249-3.563C1.51 10.008.007 7.952.002 5.762a4.614 4.614 0 0 1 1.353-3.407C3.123.585 6.223.537 8.048 2.24Zm-1.153.983c-1.25-1.033-3.321-.967-4.48.191a3.115 3.115 0 0 0-.913 2.335c0 1.556 1.109 3.24 2.652 4.813C5.463 11.898 6.96 13.032 8 13.805c.353-.262.758-.565 1.191-.905l-1.326-1.223a.75.75 0 0 1 1.018-1.102l1.48 1.366c.328-.281.659-.577.984-.887L9.99 9.802a.75.75 0 1 1 1.019-1.103l1.384 1.28c.295-.329.566-.661.81-.995L12.92 8.7l-1.167-1.168c-.674-.671-1.78-.664-2.474.03-.268.269-.538.537-.802.797-.893.882-2.319.843-3.185-.032-.346-.35-.693-.697-1.043-1.047a.75.75 0 0 1-.04-1.016c.162-.191.336-.401.52-.623.62-.748 1.356-1.637 2.166-2.417Zm7.112 4.442c.313-.65.491-1.293.491-1.916v-.001c0-.614-.088-1.045-.23-1.385-.143-.339-.357-.633-.673-.949a3.111 3.111 0 0 0-2.218-.915c-1.092.003-2.165.627-3.226 1.602-.823.755-1.554 1.637-2.228 2.45l-.127.154.562.566a.755.755 0 0 0 1.066.02l.794-.79c1.258-1.258 3.312-1.31 4.594-.032.396.394.792.791 1.173 1.173Z"],h:16,w:16},24:{p:["M2.828 4.328C5.26 1.896 9.5 1.881 11.935 4.317c.024.024.046.05.067.076 1.391-1.078 2.993-1.886 4.777-1.89a6.22 6.22 0 0 1 4.424 1.825c.559.56 1.023 1.165 1.34 1.922.318.756.47 1.617.468 2.663 0 2.972-2.047 5.808-4.269 8.074-2.098 2.14-4.507 3.924-5.974 5.009l-.311.23a.752.752 0 0 1-.897 0l-.312-.23c-1.466-1.085-3.875-2.869-5.973-5.009-2.22-2.263-4.264-5.095-4.27-8.063a6.216 6.216 0 0 1 1.823-4.596Zm8.033 1.042c-1.846-1.834-5.124-1.823-6.969.022a4.712 4.712 0 0 0-1.382 3.52c0 2.332 1.65 4.79 3.839 7.022 1.947 1.986 4.184 3.66 5.66 4.752a78.214 78.214 0 0 0 2.159-1.645l-2.14-1.974a.752.752 0 0 1 1.02-1.106l2.295 2.118c.616-.52 1.242-1.08 1.85-1.672l-2.16-1.992a.753.753 0 0 1 1.021-1.106l2.188 2.02a18.963 18.963 0 0 0 1.528-1.877l-.585-.586-1.651-1.652c-1.078-1.074-2.837-1.055-3.935.043-.379.38-.76.758-1.132 1.126-1.14 1.124-2.96 1.077-4.07-.043-.489-.495-.98-.988-1.475-1.482a.752.752 0 0 1-.04-1.019c.234-.276.483-.576.745-.893.928-1.12 2.023-2.442 3.234-3.576Zm9.725 6.77c.579-1.08.92-2.167.92-3.228.002-.899-.128-1.552-.35-2.08-.22-.526-.551-.974-1.017-1.44a4.71 4.71 0 0 0-3.356-1.384c-1.66.004-3.25.951-4.77 2.346-1.18 1.084-2.233 2.353-3.188 3.506l-.351.423c.331.332.663.664.993.998a1.375 1.375 0 0 0 1.943.03c.37-.365.748-.74 1.125-1.118 1.662-1.663 4.373-1.726 6.06-.045.56.558 1.12 1.12 1.658 1.658Z"],h:24,w:24}},ms={16:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z","M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},fs={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M10.3 8.24a.75.75 0 0 1-.04 1.06L7.352 12l2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},gs={16:{p:["M8.47 4.97a.75.75 0 0 0 0 1.06L9.94 7.5 8.47 8.97a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0ZM6.53 6.03a.75.75 0 0 0-1.06-1.06l-2 2a.75.75 0 0 0 0 1.06l2 2a.75.75 0 1 0 1.06-1.06L5.06 7.5l1.47-1.47Z","M12.246 13.307a7.501 7.501 0 1 1 1.06-1.06l2.474 2.473a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM1.5 7.5a6.002 6.002 0 0 0 3.608 5.504 6.002 6.002 0 0 0 6.486-1.117.748.748 0 0 1 .292-.293A6 6 0 1 0 1.5 7.5Z"],h:16,w:16},24:{p:["M11.97 6.97a.75.75 0 0 0 0 1.06l2.47 2.47-2.47 2.47a.75.75 0 1 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0ZM9.03 8.03a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L6.56 10.5l2.47-2.47Z","M10.5 0C16.299 0 21 4.701 21 10.5a10.457 10.457 0 0 1-2.564 6.875l4.344 4.345a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5S4.701 0 10.5 0Zm-9 10.5a9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9 9 9 0 0 0-9 9Z"],h:24,w:24}},ys={16:{p:["M10.28 6.28a.75.75 0 1 0-1.06-1.06L6.25 8.19l-.97-.97a.75.75 0 0 0-1.06 1.06l1.5 1.5a.75.75 0 0 0 1.06 0l3.5-3.5Z","M7.5 15a7.5 7.5 0 1 1 5.807-2.754l2.473 2.474a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2.474-2.473A7.472 7.472 0 0 1 7.5 15Zm0-13.5a6 6 0 1 0 4.094 10.386.748.748 0 0 1 .293-.292 6.002 6.002 0 0 0 1.117-6.486A6.002 6.002 0 0 0 7.5 1.5Z"],h:16,w:16},24:{p:["M15.03 8.28a.75.75 0 0 0-1.06-1.06l-5.22 5.22-2.22-2.22a.75.75 0 1 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l5.75-5.75Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-4.345-4.344A10.457 10.457 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}},ws={16:{p:["M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z","M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.5 3.75C3.5 2.784 4.284 2 5.25 2h13.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 18.75 13H5.25a1.75 1.75 0 0 1-1.75-1.75Zm-2 12c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75ZM5.25 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h13.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Zm-2 12a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25Z","M10 17.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},bs={16:{p:["M2.75 0h2.5C6.216 0 7 .784 7 1.75v12.5A1.75 1.75 0 0 1 5.25 16h-2.5A1.75 1.75 0 0 1 1 14.25V1.75C1 .784 1.784 0 2.75 0Zm8 0h2.5C14.216 0 15 .784 15 1.75v12.5A1.75 1.75 0 0 1 13.25 16h-2.5A1.75 1.75 0 0 1 9 14.25V1.75C9 .784 9.784 0 10.75 0ZM2.5 1.75v12.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Zm8 0v12.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M3.75 2h5.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 9.25 22h-5.5A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2Zm11 0h5.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22h-5.5A1.75 1.75 0 0 1 13 20.25V3.75c0-.966.784-1.75 1.75-1.75ZM3.5 3.75v16.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25Zm11 0v16.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25Z"],h:24,w:24}},vs={16:{p:["m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"],h:16,w:16},24:{p:["M3.045 18.894 9.94 12 3.045 5.106a.75.75 0 0 1 1.06-1.061l7.425 7.425a.75.75 0 0 1 0 1.06l-7.424 7.425a.75.75 0 0 1-1.061-1.06Zm8.205.606a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5Z"],h:24,w:24}},Cs={16:{p:["M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ss={16:{p:["M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"],h:16,w:16},24:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z","M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"],h:24,w:24}},Es={24:{p:["M0 11.75A.75.75 0 0 1 .75 11h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Zm17.5 0a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Z","M12 17.75a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-1.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"],h:24,w:24}},ks={16:{p:["m10.41.24 4.711 2.774c.544.316.878.897.879 1.526v5.01a1.77 1.77 0 0 1-.88 1.53l-7.753 4.521-.002.001a1.769 1.769 0 0 1-1.774 0H5.59L.873 12.85A1.761 1.761 0 0 1 0 11.327V6.292c0-.304.078-.598.22-.855l.004-.005.01-.019c.15-.262.369-.486.64-.643L8.641.239a1.752 1.752 0 0 1 1.765 0l.002.001ZM9.397 1.534l-7.17 4.182 4.116 2.388a.27.27 0 0 0 .269 0l7.152-4.148-4.115-2.422a.252.252 0 0 0-.252 0Zm-7.768 10.02 4.1 2.393V9.474a1.807 1.807 0 0 1-.138-.072L1.5 7.029v4.298c0 .095.05.181.129.227Zm8.6.642 1.521-.887v-4.45l-1.521.882ZM7.365 9.402h.001c-.044.026-.09.049-.136.071v4.472l1.5-.875V8.61Zm5.885 1.032 1.115-.65h.002a.267.267 0 0 0 .133-.232V5.264l-1.25.725Z"],h:16,w:16},24:{p:["M13.152.682a2.251 2.251 0 0 1 2.269 0l.007.004 6.957 4.276a2.277 2.277 0 0 1 1.126 1.964v7.516c0 .81-.432 1.56-1.133 1.968l-.002.001-11.964 7.037-.004.003c-.706.41-1.578.41-2.284 0l-.026-.015-6.503-4.502a2.268 2.268 0 0 1-1.096-1.943V9.438c0-.392.1-.77.284-1.1l.003-.006.014-.026c.197-.342.48-.627.82-.827h.002L13.152.681Zm.757 1.295h-.001L2.648 8.616l6.248 4.247a.775.775 0 0 0 .758-.01h.001l11.633-6.804-6.629-4.074a.75.75 0 0 0-.75.003ZM8.517 14.33a2.286 2.286 0 0 1-.393-.18l-.023-.014-6.102-4.147v7.003c0 .275.145.528.379.664l.025.014 6.114 4.232V14.33ZM18 9.709l-3.25 1.9v7.548L18 17.245Zm-7.59 4.438-.002.002a2.296 2.296 0 0 1-.391.18v7.612l3.233-1.902v-7.552Zm9.09-5.316v7.532l2.124-1.25a.776.776 0 0 0 .387-.671V7.363Z"],h:24,w:24}},Rs={16:{p:["M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z","M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z","M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"],h:24,w:24},48:{p:["M47.801 34.003c-1.72 2.988-11.706 10.037-23.82 10.037S1.881 36.991.161 34.003a1.309 1.309 0 0 1-.161-.57v-5.615c.012-.17.047-.338.11-.498.744-1.867 2.692-4.58 5.206-5.308.333-.855.826-2.106 1.287-3.029a20.112 20.112 0 0 1-.104-2.171c0-2.659.563-4.992 2.262-6.729.793-.811 1.777-1.433 2.945-1.901C14.502 5.911 18.483 4 23.938 4c5.455 0 9.523 1.911 12.319 4.182 1.167.468 2.151 1.09 2.944 1.901 1.699 1.737 2.263 4.07 2.263 6.729 0 .736-.027 1.465-.105 2.171.461.923.954 2.174 1.288 3.029 2.513.728 4.461 3.441 5.205 5.308.081.205.115.424.115.645v5.318c0 .252-.04.502-.166.72ZM24.325 22.031h-.688a8.52 8.52 0 0 1-.709 1.016c-1.537 1.892-3.833 2.98-7.008 2.98-3.447 0-5.972-.717-7.557-2.514a4.408 4.408 0 0 1-.171-.21l-.195.21v13.155c2.867 1.558 9.02 4.353 15.984 4.353s13.117-2.795 15.984-4.353V23.513l-.195-.21s-.066.091-.171.21c-1.584 1.797-4.11 2.514-7.557 2.514-3.175 0-5.47-1.088-7.008-2.98a8.637 8.637 0 0 1-.709-1.016h-.033.033Zm-1.969-5.864a14.31 14.31 0 0 0 .127-1.785v-.042c-.003-1.537-.339-2.538-.876-3.152-.681-.78-2.09-1.378-5.06-1.057-3.008.326-4.69 1.073-5.643 2.048-.923.944-1.408 2.356-1.408 4.633 0 2.42.348 3.849 1.115 4.719.729.827 2.165 1.499 5.309 1.499 2.417 0 3.799-.786 4.683-1.873.948-1.168 1.482-2.878 1.753-4.99Zm3.25 0c.271 2.112.805 3.822 1.754 4.99.883 1.087 2.265 1.873 4.682 1.873 3.145 0 4.58-.672 5.309-1.499.767-.87 1.116-2.299 1.116-4.719 0-2.277-.485-3.689-1.408-4.633-.954-.975-2.635-1.722-5.644-2.048-2.969-.321-4.378.277-5.06 1.057-.537.614-.873 1.615-.876 3.152v.042c.002.53.042 1.123.127 1.785Z","M28.998 28.516c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Zm-9.996 0c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Z"],h:48,w:48},96:{p:["M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z","M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z"],h:96,w:96}},Ts={16:{p:["M16 11.24c0 .112-.072.274-.21.467L13 9.688V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-.198 0-.388-.009-.571-.029L6.833 5.226a4.01 4.01 0 0 0 .17-.782c.117-.935-.037-1.395-.241-1.614-.193-.206-.637-.413-1.682-.297-.683.076-1.115.231-1.395.415l-1.257-.91c.579-.564 1.413-.877 2.485-.996 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095Zm-5.083-8.707c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Zm2.511 11.074c-1.393.776-3.272 1.428-5.43 1.428-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.18-.455-.241-.963-.252-1.475L.31 4.107A.747.747 0 0 1 0 3.509V3.49a.748.748 0 0 1 .625-.73c.156-.026.306.047.435.139l14.667 10.578a.592.592 0 0 1 .227.264.752.752 0 0 1 .046.249v.022a.75.75 0 0 1-1.19.596Zm-1.367-.991L5.635 7.964a5.128 5.128 0 0 1-.889.073c-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433 1.539 0 3.089-.505 4.063-.934Z"],h:16,w:16}},As={16:{p:["M8.498 14.811a4.53 4.53 0 0 1-1.161-1.337 4.476 4.476 0 0 1-.587-2.224 4.496 4.496 0 0 1 4.5-4.5 4.5 4.5 0 0 1 4.5 4.5 4.5 4.5 0 0 1-7.252 3.561ZM10.5 8.75V11a.75.75 0 0 0 1.5 0V8.75a.75.75 0 1 0-1.5 0Zm.75 5.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","m14.354 6.114-.05-.029a5.949 5.949 0 0 0-1.351-.589c.03-.19.047-.422.047-.709 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.058.462.165.834.316 1.127A6.025 6.025 0 0 0 6.369 7.76c-.472.185-1.015.277-1.623.277-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.265.205 1.285.725 2.577 1.079a5.937 5.937 0 0 0 .939 1.736C2.733 14.407.111 12.027 0 11.286V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .452-.033.906-.146 1.327ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Z"],h:16,w:16}},xs={16:{p:["M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z","M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z","M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z"],h:24,w:24}},Ds={16:{p:["M6.5.75V2h3V.75a.75.75 0 0 1 1.5 0V2h1.25c.966 0 1.75.784 1.75 1.75V5h1.25a.75.75 0 0 1 0 1.5H14v3h1.25a.75.75 0 0 1 0 1.5H14v1.25A1.75 1.75 0 0 1 12.25 14H11v1.25a.75.75 0 0 1-1.5 0V14h-3v1.25a.75.75 0 0 1-1.5 0V14H3.75A1.75 1.75 0 0 1 2 12.25V11H.75a.75.75 0 0 1 0-1.5H2v-3H.75a.75.75 0 0 1 0-1.5H2V3.75C2 2.784 2.784 2 3.75 2H5V.75a.75.75 0 0 1 1.5 0Zm5.75 11.75a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25ZM5.75 5h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-4.5A.75.75 0 0 1 5.75 5Zm.75 4.5h3v-3h-3Z"],h:16,w:16},24:{p:["M8.75 8h6.5a.75.75 0 0 1 .75.75v6.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75v-6.5A.75.75 0 0 1 8.75 8Zm.75 6.5h5v-5h-5Z","M15.25 1a.75.75 0 0 1 .75.75V4h2.25c.966 0 1.75.784 1.75 1.75V8h2.25a.75.75 0 0 1 0 1.5H20v5h2.25a.75.75 0 0 1 0 1.5H20v2.25A1.75 1.75 0 0 1 18.25 20H16v2.25a.75.75 0 0 1-1.5 0V20h-5v2.25a.75.75 0 0 1-1.5 0V20H5.75A1.75 1.75 0 0 1 4 18.25V16H1.75a.75.75 0 0 1 0-1.5H4v-5H1.75a.75.75 0 0 1 0-1.5H4V5.75C4 4.784 4.784 4 5.75 4H8V1.75a.75.75 0 0 1 1.5 0V4h5V1.75a.75.75 0 0 1 .75-.75Zm3 17.5a.25.25 0 0 0 .25-.25V5.75a.25.25 0 0 0-.25-.25H5.75a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25Z"],h:24,w:24}},_s={16:{p:["M10.75 9a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5h-1.5Z","M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25ZM14.5 6.5h-13v5.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm0-2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25V5h13Z"],h:16,w:16},24:{p:["M15.25 14a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z","M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25V4.75C0 3.784.784 3 1.75 3Zm-.25 7v9.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V10Zm0-5.25V8.5h21V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Ms={16:{p:["M2.75 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 13H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 14.543V13H2.75A1.75 1.75 0 0 1 1 11.25v-7.5C1 2.784 1.784 2 2.75 2h5.5a.75.75 0 0 1 0 1.5ZM16 1.25v4.146a.25.25 0 0 1-.427.177L14.03 4.03l-3.75 3.75a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l3.75-3.75-1.543-1.543A.25.25 0 0 1 11.604 1h4.146a.25.25 0 0 1 .25.25Z"],h:16,w:16},24:{p:["M16.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L20.94 3h-3.69a.75.75 0 0 1-.75-.75Z","M3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.75.75 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25v-6a.75.75 0 0 1 1.5 0v6a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.457 1.457 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75V4.25c0-.966.784-1.75 1.75-1.75h11a.75.75 0 0 1 0 1.5h-11Z"],h:24,w:24}},Ps={16:{p:["M2 7.75A.75.75 0 0 1 2.75 7h10a.75.75 0 0 1 0 1.5h-10A.75.75 0 0 1 2 7.75Z"],h:16,w:16},24:{p:["M4.5 12.75a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H5.25a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Is={16:{p:["M1 3.5c0-.626.292-1.165.7-1.59.406-.422.956-.767 1.579-1.041C4.525.32 6.195 0 8 0c1.805 0 3.475.32 4.722.869.622.274 1.172.62 1.578 1.04.408.426.7.965.7 1.591v9c0 .626-.292 1.165-.7 1.59-.406.422-.956.767-1.579 1.041C11.476 15.68 9.806 16 8 16c-1.805 0-3.475-.32-4.721-.869-.623-.274-1.173-.62-1.579-1.04-.408-.426-.7-.965-.7-1.591Zm1.5 0c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 5.205 6.353 5.5 8 5.5c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55 0-.133-.058-.318-.282-.551-.227-.237-.591-.483-1.101-.707C11.102 1.795 9.647 1.5 8 1.5c-1.646 0-3.101.295-4.118.742-.508.224-.873.471-1.1.708-.224.232-.282.417-.282.55Zm0 4.5c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 9.705 6.353 10 8 10c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55V5.724c-.241.15-.503.286-.778.407C11.475 6.68 9.805 7 8 7c-1.805 0-3.475-.32-4.721-.869a6.15 6.15 0 0 1-.779-.407Zm0 2.225V12.5c0 .133.058.318.282.55.227.237.592.484 1.1.708 1.016.447 2.471.742 4.118.742 1.647 0 3.102-.295 4.117-.742.51-.224.874-.47 1.101-.707.224-.233.282-.418.282-.551v-2.275c-.241.15-.503.285-.778.406-1.247.549-2.917.869-4.722.869-1.805 0-3.475-.32-4.721-.869a6.327 6.327 0 0 1-.779-.406Z"],h:16,w:16},24:{p:["M12 1.25c2.487 0 4.773.402 6.466 1.079.844.337 1.577.758 2.112 1.264.536.507.922 1.151.922 1.907v12.987l-.026.013h.026c0 .756-.386 1.4-.922 1.907-.535.506-1.268.927-2.112 1.264-1.693.677-3.979 1.079-6.466 1.079s-4.774-.402-6.466-1.079c-.844-.337-1.577-.758-2.112-1.264C2.886 19.9 2.5 19.256 2.5 18.5h.026l-.026-.013V5.5c0-.756.386-1.4.922-1.907.535-.506 1.268-.927 2.112-1.264C7.226 1.652 9.513 1.25 12 1.25ZM4 14.371v4.116l-.013.013H4c0 .211.103.487.453.817.351.332.898.666 1.638.962 1.475.589 3.564.971 5.909.971 2.345 0 4.434-.381 5.909-.971.739-.296 1.288-.63 1.638-.962.349-.33.453-.607.453-.817h.013L20 18.487v-4.116a7.85 7.85 0 0 1-1.534.8c-1.693.677-3.979 1.079-6.466 1.079s-4.774-.402-6.466-1.079a7.843 7.843 0 0 1-1.534-.8ZM20 12V7.871a7.85 7.85 0 0 1-1.534.8C16.773 9.348 14.487 9.75 12 9.75s-4.774-.402-6.466-1.079A7.85 7.85 0 0 1 4 7.871V12c0 .21.104.487.453.817.35.332.899.666 1.638.961 1.475.59 3.564.972 5.909.972 2.345 0 4.434-.382 5.909-.972.74-.295 1.287-.629 1.638-.96.35-.33.453-.607.453-.818ZM4 5.5c0 .211.103.487.453.817.351.332.898.666 1.638.962 1.475.589 3.564.971 5.909.971 2.345 0 4.434-.381 5.909-.971.739-.296 1.288-.63 1.638-.962.349-.33.453-.607.453-.817 0-.211-.103-.487-.453-.817-.351-.332-.898-.666-1.638-.962-1.475-.589-3.564-.971-5.909-.971-2.345 0-4.434.381-5.909.971-.739.296-1.288.63-1.638.962C4.104 5.013 4 5.29 4 5.5Z"],h:24,w:24}},Os={16:{p:["M5.75 7.5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75Zm5.25.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5Z","M6.25 0h2A.75.75 0 0 1 9 .75V3.5h3.25a2.25 2.25 0 0 1 2.25 2.25V8h.75a.75.75 0 0 1 0 1.5h-.75v2.75a2.25 2.25 0 0 1-2.25 2.25h-8.5a2.25 2.25 0 0 1-2.25-2.25V9.5H.75a.75.75 0 0 1 0-1.5h.75V5.75A2.25 2.25 0 0 1 3.75 3.5H7.5v-2H6.25a.75.75 0 0 1 0-1.5ZM3 5.75v6.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-6.5a.75.75 0 0 0-.75-.75h-8.5a.75.75 0 0 0-.75.75Z"],h:16,w:16},24:{p:["M8.75 11a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.75.75 0 0 1 .75-.75Zm7.25.75a.75.75 0 0 0-1.5 0v3.5a.75.75 0 0 0 1.5 0v-3.5Z","M9.813 1h2.437a.75.75 0 0 1 .75.75V5h6.75A2.25 2.25 0 0 1 22 7.25v5.25h1.25a.75.75 0 0 1 0 1.5H22v5.75A2.25 2.25 0 0 1 19.75 22H4.25A2.25 2.25 0 0 1 2 19.75V14H.75a.75.75 0 0 1 0-1.5H2V7.25A2.25 2.25 0 0 1 4.25 5h7.25V2.5H9.813A.75.75 0 0 1 9.812 1ZM3.5 7.25v12.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V7.25a.75.75 0 0 0-.75-.75H4.25a.75.75 0 0 0-.75.75Z"],h:24,w:24}},Ns={16:{p:["m4.927 5.427 2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 5H8.75V.75a.75.75 0 1 0-1.5 0V5H5.104a.25.25 0 0 0-.177.427Z","M1.573 2.573a.25.25 0 0 0-.073.177v7.5a.25.25 0 0 0 .25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-3a.75.75 0 1 1 0-1.5h3A1.75 1.75 0 0 1 16 2.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.75.75 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5A1.75 1.75 0 0 1 1.75 1h3a.75.75 0 0 1 0 1.5h-3a.25.25 0 0 0-.177.073ZM6.982 12a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5H6.982Z"],h:16,w:16},24:{p:["M11.25 9.331V.75a.75.75 0 0 1 1.5 0v8.58l1.949-2.11A.75.75 0 1 1 15.8 8.237l-3.25 3.52a.75.75 0 0 1-1.102 0l-3.25-3.52A.75.75 0 1 1 9.3 7.22l1.949 2.111Z","M2.5 3.75v11.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.75.75 0 0 1 0-1.5h5.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 21.25 17h-6.204c.171 1.375.805 2.652 1.769 3.757A.752.752 0 0 1 16.25 22h-8.5a.75.75 0 0 1-.566-1.243c.965-1.105 1.599-2.382 1.77-3.757H2.75A1.75 1.75 0 0 1 1 15.25V3.75C1 2.784 1.784 2 2.75 2h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25ZM10.463 17c-.126 1.266-.564 2.445-1.223 3.5h5.52c-.66-1.055-1.098-2.234-1.223-3.5Z"],h:24,w:24}},Ls={16:{p:["M15 3c.55 0 1 .45 1 1v9c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1 0-.55.45-1 1-1h4c.55 0 1 .45 1 1Zm-4.5 9c1.94 0 3.5-1.56 3.5-3.5S12.44 5 10.5 5 7 6.56 7 8.5 8.56 12 10.5 12ZM13 8.5c0 1.38-1.13 2.5-2.5 2.5S8 9.87 8 8.5 9.13 6 10.5 6 13 7.13 13 8.5ZM6 5V4H2v1Z"],h:16,w:16}},Bs={16:{p:["M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"],h:16,w:16},24:{p:["M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"],h:24,w:24}},Fs={16:{p:["M14.25 1c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.752.752 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5C0 1.784.784 1 1.75 1ZM1.75 2.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25ZM9.018 12H6.982a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5Z"],h:16,w:16},24:{p:["M8.954 17H2.75A1.75 1.75 0 0 1 1 15.25V3.75C1 2.784 1.784 2 2.75 2h18.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 21.25 17h-6.204c.171 1.375.805 2.652 1.769 3.757A.752.752 0 0 1 16.25 22h-8.5a.75.75 0 0 1-.565-1.243c.964-1.105 1.598-2.382 1.769-3.757ZM21.5 3.75a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25ZM13.537 17h-3.074c-.126 1.266-.564 2.445-1.223 3.5h5.52c-.659-1.055-1.098-2.234-1.223-3.5Z"],h:24,w:24}},Hs={16:{p:["M3.75 0h8.5C13.216 0 14 .784 14 1.75v12.5A1.75 1.75 0 0 1 12.25 16h-8.5A1.75 1.75 0 0 1 2 14.25V1.75C2 .784 2.784 0 3.75 0ZM3.5 1.75v12.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M10.25 5.25A.75.75 0 0 1 11 4.5h2A.75.75 0 0 1 13 6h-2a.75.75 0 0 1-.75-.75ZM12 19.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M4 2.75C4 1.784 4.784 1 5.75 1h12.5c.966 0 1.75.784 1.75 1.75v18.5A1.75 1.75 0 0 1 18.25 23H5.75A1.75 1.75 0 0 1 4 21.25Zm1.75-.25a.25.25 0 0 0-.25.25v18.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Us={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75V5a.75.75 0 0 1-1.5 0V2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25H7A.75.75 0 0 1 7 12h-.268a5.712 5.712 0 0 1-.765 2.5H7A.75.75 0 0 1 7 16H4.5a.75.75 0 0 1-.565-1.243c.772-.885 1.193-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5Z","M10.75 7h3.5c.967 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-5.5C9 7.784 9.783 7 10.75 7Zm-.25 1.75v5.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M1 3.75C1 2.784 1.784 2 2.75 2h18.5c.966 0 1.75.784 1.75 1.75v4a.75.75 0 0 1-1.5 0v-4a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h9a.75.75 0 0 1 0 1.5h-1.287c-.126 1.266-.564 2.445-1.223 3.5h2.51a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.565-1.243c.964-1.105 1.598-2.382 1.769-3.757H2.75A1.75 1.75 0 0 1 1 15.25V3.75Z","M14 11.75c0-.967.783-1.75 1.75-1.75h5.5c.966 0 1.75.783 1.75 1.75v8.5A1.75 1.75 0 0 1 21.25 22h-5.5A1.75 1.75 0 0 1 14 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Zs={16:{p:["M.527 9.237a1.75 1.75 0 0 1 0-2.474L6.777.512a1.75 1.75 0 0 1 2.475 0l6.251 6.25a1.75 1.75 0 0 1 0 2.475l-6.25 6.251a1.75 1.75 0 0 1-2.475 0L.527 9.238Zm1.06-1.414a.25.25 0 0 0 0 .354l6.251 6.25a.25.25 0 0 0 .354 0l6.25-6.25a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.354 0l-6.25 6.25Z"],h:16,w:16},24:{p:["M1.527 13.237a1.75 1.75 0 0 1 0-2.474l9.272-9.273a1.75 1.75 0 0 1 2.475 0l9.272 9.273a1.75 1.75 0 0 1 0 2.474l-9.272 9.272a1.75 1.75 0 0 1-2.475 0Zm1.06-1.414a.25.25 0 0 0 0 .354l9.273 9.272a.25.25 0 0 0 .353 0l9.272-9.272a.25.25 0 0 0 0-.354l-9.272-9.272a.25.25 0 0 0-.353 0Z"],h:24,w:24}},$s={16:{p:["M8.75 1.75V5H12a.75.75 0 0 1 0 1.5H8.75v3.25a.75.75 0 0 1-1.5 0V6.5H4A.75.75 0 0 1 4 5h3.25V1.75a.75.75 0 0 1 1.5 0ZM4 13h8a.75.75 0 0 1 0 1.5H4A.75.75 0 0 1 4 13Z"],h:16,w:16},24:{p:["M12.25 3.5a.75.75 0 0 1 .75.75V8.5h4.25a.75.75 0 0 1 0 1.5H13v4.25a.75.75 0 0 1-1.5 0V10H7.25a.75.75 0 0 1 0-1.5h4.25V4.25a.75.75 0 0 1 .75-.75ZM6.562 19.25a.75.75 0 0 1 .75-.75h9.938a.75.75 0 0 1 0 1.5H7.312a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ws={16:{p:["M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1Zm10.5 1.5H2.75a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4Z"],h:16,w:16}},qs={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.53 3.28-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16}},Vs={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"],h:16,w:16}},Gs={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.5 6.25h-6.5a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5Z"],h:16,w:16}},zs={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm9.03 6.03-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H4.75a.75.75 0 0 1 0-1.5h4.69L7.47 5.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.25 3.25a.75.75 0 0 1 0 1.06Z"],h:16,w:16}},js={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm-5.47.28-3 3a.747.747 0 0 1-1.06 0l-1.5-1.5a.749.749 0 1 1 1.06-1.06l.97.969L7.72 3.72a.749.749 0 1 1 1.06 1.06Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm-9.72-3.22-5 5a.747.747 0 0 1-1.06 0l-2.5-2.5a.749.749 0 1 1 1.06-1.06L7 8.689l4.47-4.469a.749.749 0 1 1 1.06 1.06Z"],h:24,w:24}},Ks={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm-6.282.03L5.03 7.468a.749.749 0 1 1-1.06-1.061L6.907 3.47a.75.75 0 0 1 1.061 1.06Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25ZM11.28 5.53l-5 5a.749.749 0 1 1-1.06-1.06l5-5a.749.749 0 1 1 1.06 1.06Z"],h:24,w:24}},Ys={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25ZM6.5 4v1.492l.466.187.036.015.812.375a.75.75 0 1 1-.628 1.362l-.795-.367-.92-.368A.75.75 0 0 1 5 6V4a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25ZM8.5 4.75v3.14l1.15.488a.608.608 0 0 1 .037.017l1.393.681a.75.75 0 0 1-.66 1.348l-1.374-.673-1.589-.674A.751.751 0 0 1 7 8.386V4.75a.75.75 0 0 1 1.5 0Z"],h:24,w:24}},Xs={16:{p:["M4 8a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm4-2.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"],h:16,w:16},24:{p:["M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-1.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"],h:24,w:24}},Qs={16:{p:["M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"],h:16,w:16},24:{p:["M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"],h:24,w:24}},Js={16:{p:["M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z","M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"],h:16,w:16},24:{p:["M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z","M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"],h:24,w:24}},eo={16:{p:["M10.5 3a.75.75 0 0 1 .75.75v1h1a.75.75 0 0 1 0 1.5h-1v1a.75.75 0 0 1-1.5 0v-1h-1a.75.75 0 0 1 0-1.5h1v-1A.75.75 0 0 1 10.5 3Z","M6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25v-7.5C5 .784 5.784 0 6.75 0ZM6.5 1.75v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25Z","M1.75 5A1.75 1.75 0 0 0 0 6.75v7.5C0 15.216.784 16 1.75 16h7.5A1.75 1.75 0 0 0 11 14.25v-1.5a.75.75 0 0 0-1.5 0v1.5a.25.25 0 0 1-.25.25h-7.5a.25.25 0 0 1-.25-.25v-7.5a.25.25 0 0 1 .25-.25h1.5a.75.75 0 0 0 0-1.5h-1.5Z"],h:16,w:16},24:{p:["M14.513 6a.75.75 0 0 1 .75.75v2h1.987a.75.75 0 0 1 0 1.5h-1.987v2a.75.75 0 1 1-1.5 0v-2H11.75a.75.75 0 0 1 0-1.5h2.013v-2a.75.75 0 0 1 .75-.75Z","M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z","M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z"],h:24,w:24}},to={16:{p:["M0 5.75C0 4.784.784 4 1.75 4h12.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25ZM12 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM4 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"],h:16,w:16}},no={16:{p:["M8 2c1.981 0 3.671.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.45.678-1.367 1.932-2.637 3.023C11.67 13.008 9.981 14 8 14c-1.981 0-3.671-.992-4.933-2.078C1.797 10.83.88 9.576.43 8.898a1.62 1.62 0 0 1 0-1.798c.45-.677 1.367-1.931 2.637-3.022C4.33 2.992 6.019 2 8 2ZM1.679 7.932a.12.12 0 0 0 0 .136c.411.622 1.241 1.75 2.366 2.717C5.176 11.758 6.527 12.5 8 12.5c1.473 0 2.825-.742 3.955-1.715 1.124-.967 1.954-2.096 2.366-2.717a.12.12 0 0 0 0-.136c-.412-.621-1.242-1.75-2.366-2.717C10.824 4.242 9.473 3.5 8 3.5c-1.473 0-2.825.742-3.955 1.715-1.124.967-1.954 2.096-2.366 2.717ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"],h:16,w:16},24:{p:["M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","M12 3.5c3.432 0 6.124 1.534 8.054 3.241 1.926 1.703 3.132 3.61 3.616 4.46a1.6 1.6 0 0 1 0 1.598c-.484.85-1.69 2.757-3.616 4.461-1.929 1.706-4.622 3.24-8.054 3.24-3.432 0-6.124-1.534-8.054-3.24C2.02 15.558.814 13.65.33 12.8a1.6 1.6 0 0 1 0-1.598c.484-.85 1.69-2.757 3.616-4.462C5.875 5.034 8.568 3.5 12 3.5ZM1.633 11.945a.115.115 0 0 0-.017.055c.001.02.006.039.017.056.441.774 1.551 2.527 3.307 4.08C6.691 17.685 9.045 19 12 19c2.955 0 5.31-1.315 7.06-2.864 1.756-1.553 2.866-3.306 3.307-4.08a.111.111 0 0 0 .017-.056.111.111 0 0 0-.017-.056c-.441-.773-1.551-2.527-3.307-4.08C17.309 6.315 14.955 5 12 5 9.045 5 6.69 6.314 4.94 7.865c-1.756 1.552-2.866 3.306-3.307 4.08Z"],h:24,w:24}},ro={16:{p:["M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.619 1.619 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31Zm1.536 5.622A.12.12 0 0 0 1.657 8c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52L3.529 5.688a14.207 14.207 0 0 0-1.85 2.244ZM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.207 6.207 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5Z"],h:16,w:16},24:{p:["M8.052 5.837A9.715 9.715 0 0 1 12 5c2.955 0 5.309 1.315 7.06 2.864 1.756 1.553 2.866 3.307 3.307 4.08a.11.11 0 0 1 .016.055.122.122 0 0 1-.017.06 16.766 16.766 0 0 1-1.53 2.218.75.75 0 1 0 1.163.946 18.253 18.253 0 0 0 1.67-2.42 1.607 1.607 0 0 0 .001-1.602c-.485-.85-1.69-2.757-3.616-4.46C18.124 5.034 15.432 3.5 12 3.5c-1.695 0-3.215.374-4.552.963a.75.75 0 0 0 .604 1.373Zm11.114 12.15C17.328 19.38 14.933 20.5 12 20.5c-3.432 0-6.125-1.534-8.054-3.24C2.02 15.556.814 13.648.33 12.798a1.606 1.606 0 0 1 .001-1.6A18.283 18.283 0 0 1 3.648 7.01L1.317 5.362a.75.75 0 1 1 .866-1.224l20.5 14.5a.75.75 0 1 1-.866 1.224ZM4.902 7.898c-1.73 1.541-2.828 3.273-3.268 4.044a.112.112 0 0 0-.017.059c0 .015.003.034.016.055.441.774 1.551 2.527 3.307 4.08C6.69 17.685 9.045 19 12 19c2.334 0 4.29-.82 5.874-1.927l-3.516-2.487a3.5 3.5 0 0 1-5.583-3.949L4.902 7.899Z"],h:24,w:24}},io={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM4 5v5a1 1 0 0 0 1 1h1v1.5a.5.5 0 0 0 .854.354L8.707 11H11a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1Z"],h:16,w:16}},so={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM6 6.928a1.75 1.75 0 1 0-1 0V7.5A1.5 1.5 0 0 0 6.5 9h1v1.072a1.75 1.75 0 1 0 1 0V9h1A1.5 1.5 0 0 0 11 7.5v-.572a1.75 1.75 0 1 0-1 0V7.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5Z"],h:16,w:16}},oo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm2.33-11.5c-1.22 0-1.83.5-2.323 1.136C7.513 5 6.903 4.5 5.682 4.5c-1.028 0-2.169.784-2.169 2.5 0 1.499 1.493 3.433 3.246 4.517.52.321.89.479 1.248.484.357-.005.728-.163 1.247-.484C11.007 10.433 12.5 8.5 12.5 7c0-1.716-1.14-2.5-2.17-2.5Z"],h:16,w:16}},ao={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.457 6.957a.999.999 0 1 0-1.414-1.414L7.25 8.336 5.957 7.043a.999.999 0 1 0-1.414 1.414l2 2a.999.999 0 0 0 1.414 0Z"],h:16,w:16}},lo={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM3.802 7.334a.75.75 0 0 0-1.482-.233 5.8 5.8 0 0 0 0 1.798.749.749 0 1 0 1.482-.233 4.296 4.296 0 0 1 0-1.332ZM8 2.25a5.8 5.8 0 0 0-.899.07.749.749 0 1 0 .233 1.482 4.296 4.296 0 0 1 1.332 0 .75.75 0 0 0 .233-1.482A5.8 5.8 0 0 0 8 2.25Zm-.666 9.948a.75.75 0 0 0-.233 1.482 5.8 5.8 0 0 0 1.798 0 .749.749 0 1 0-.233-1.482 4.296 4.296 0 0 1-1.332 0Zm6.346-5.097a.749.749 0 1 0-1.482.233 4.296 4.296 0 0 1 0 1.332.75.75 0 0 0 1.482.233 5.8 5.8 0 0 0 0-1.798Zm-8.178-2.54a.75.75 0 0 0-.882-1.213A5.77 5.77 0 0 0 3.348 4.62a.749.749 0 1 0 1.213.882c.263-.361.58-.678.941-.941Zm-.941 5.937a.75.75 0 0 0-1.213.882 5.77 5.77 0 0 0 1.272 1.272.749.749 0 1 0 .882-1.213 4.285 4.285 0 0 1-.941-.941Zm6.819-7.15a.749.749 0 1 0-.882 1.213c.36.263.679.58.941.941a.75.75 0 0 0 1.213-.882 5.77 5.77 0 0 0-1.272-1.272Zm1.272 8.032a.749.749 0 1 0-1.213-.882c-.262.36-.581.679-.941.941a.75.75 0 0 0 .882 1.213 5.77 5.77 0 0 0 1.272-1.272Z"],h:16,w:16}},co={16:{p:["M3.75 8a4.25 4.25 0 1 1 8.5 0 4.25 4.25 0 0 1-8.5 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z","M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-5.75a5.75 5.75 0 1 0 0 11.5 5.75 5.75 0 1 0 0-11.5Z"],h:16,w:16}},uo={16:{p:["M.5 8a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm3.427-4.323a.25.25 0 0 0-.427.177V6c0 .138.112.25.25.25h2.146a.25.25 0 0 0 .177-.427l-.524-.524a4.003 4.003 0 0 1 6.862 1.858.75.75 0 0 0 1.467-.314 5.502 5.502 0 0 0-9.39-2.605Zm9.573 8.469V10a.25.25 0 0 0-.25-.25h-2.146a.25.25 0 0 0-.177.427l.524.524a4.002 4.002 0 0 1-6.862-1.858.75.75 0 0 0-1.467.314 5.502 5.502 0 0 0 9.39 2.605l.561.561a.25.25 0 0 0 .427-.177ZM10 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 10 8Z"],h:16,w:17}},ho={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.25-11.25A1.75 1.75 0 1 0 6 6.428v3.144a1.75 1.75 0 1 0 1 0V8.236A2.99 2.99 0 0 0 9 9h.571a1.75 1.75 0 1 0 0-1H9a2 2 0 0 1-1.957-1.586A1.75 1.75 0 0 0 8.25 4.75Z"],h:16,w:16}},po={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.847-8.145a2.502 2.502 0 1 0-1.694 0C5.471 8.261 4 9.775 4 11c0 .395.145.995 1 .995h6c.855 0 1-.6 1-.995 0-1.224-1.47-2.74-3.153-3.145Z"],h:16,w:16}},mo={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm1.062 4.312a1 1 0 1 0-2 0v2.75h-2.75a1 1 0 0 0 0 2h2.75v2.75a1 1 0 1 0 2 0v-2.75h2.75a1 1 0 1 0 0-2h-2.75Z"],h:16,w:16}},fo={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm4.5.25v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H7v-1.5a1.5 1.5 0 0 1 2.443-1.167.75.75 0 0 0 .943-1.166A3 3 0 0 0 5.5 5.75v1.5a1 1 0 0 0-1 1Z"],h:16,w:16}},go={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.5 12.25A1.75 1.75 0 0 0 6 8.822V6.928A1.752 1.752 0 0 0 5.5 3.5 1.75 1.75 0 0 0 5 6.928v1.894a1.752 1.752 0 0 0 .5 3.428Zm5-5a.5.5 0 0 0-.5.5v1.072a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 .5-3.428V7.75a.5.5 0 0 0-.5-.5Zm1.255-2.763a.5.5 0 0 0-.707-.707l-.53.531-.531-.531a.5.5 0 0 0-.707.707l.531.531-.531.53a.5.5 0 0 0 .707.707l.531-.53.53.53a.5.5 0 0 0 .707-.707l-.53-.53Z"],h:16,w:16}},yo={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm7.25 2.5c0-.793-.527-1.462-1.25-1.678V6.928A1.752 1.752 0 0 0 5.5 3.5 1.75 1.75 0 0 0 5 6.928v1.894a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 1.75-1.75Zm3.25 1.75a1.75 1.75 0 1 0 .001-3.499 1.75 1.75 0 0 0-.001 3.499Zm0-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75-3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16}},wo={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm6.75 2.5c0-.793-.527-1.462-1.25-1.678V6.928A1.752 1.752 0 0 0 5 3.5a1.75 1.75 0 0 0-.5 3.428v1.894A1.752 1.752 0 0 0 5 12.25a1.75 1.75 0 0 0 1.75-1.75Zm3.25-5h.25a.5.5 0 0 1 .5.5v2.822a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 .5-3.428V6a1.5 1.5 0 0 0-1.5-1.5H10V3.129a.25.25 0 0 0-.427-.177L7.702 4.823a.25.25 0 0 0 0 .354l1.871 1.871A.25.25 0 0 0 10 6.871Z"],h:16,w:16}},bo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM5.5 4A1.5 1.5 0 0 0 4 5.5v5c0 .828.5 1.5 1 1.5v-1a1 1 0 0 1 1-1h5v1h-1v1h1.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Zm.5 7.25v2.514a.25.25 0 0 0 .426.178l.898-.888a.25.25 0 0 1 .352 0l.898.888A.25.25 0 0 0 9 13.764V11H6.25a.25.25 0 0 0-.25.25Z"],h:16,w:16}},vo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.031-12a4.38 4.38 0 0 0-3.097 1.283l-.23.229c-.156.157-.308.32-.452.49H5.65a.876.876 0 0 0-.746.417l-.856 1.388a.377.377 0 0 0 .21.556l1.552.477 1.35 1.35.478 1.553a.374.374 0 0 0 .555.21l1.389-.855a.876.876 0 0 0 .416-.746V8.747c.17-.144.333-.295.49-.452l.23-.23A4.379 4.379 0 0 0 12 4.969v-.093A.876.876 0 0 0 11.124 4Zm-5.107 7.144h-.001a.809.809 0 0 0-1.33-.881c-.395.394-.564 1.258-.62 1.62a.12.12 0 0 0 .035.108.12.12 0 0 0 .108.035c.362-.056 1.226-.225 1.62-.619a.803.803 0 0 0 .188-.263Z"],h:16,w:16}},Co={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.252-12.932a.476.476 0 0 0-.682.195l-1.2 2.432-2.684.39a.477.477 0 0 0-.266.816l1.944 1.892-.46 2.674a.479.479 0 0 0 .694.504L8 10.709l2.4 1.261a.478.478 0 0 0 .694-.504l-.458-2.673L12.578 6.9a.479.479 0 0 0-.265-.815l-2.685-.39-1.2-2.432a.473.473 0 0 0-.176-.195Z"],h:16,w:16}},So={16:{p:["M7.22 6.5a.72.72 0 1 1-1.44 0 .72.72 0 0 1 1.44 0Z","M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM4 5v3.38c.001.397.159.778.44 1.059l3.211 3.213a1.202 1.202 0 0 0 1.698 0l3.303-3.303a1.202 1.202 0 0 0 0-1.698L9.439 4.44A1.5 1.5 0 0 0 8.379 4H5a1 1 0 0 0-1 1Z"],h:16,w:16}},Eo={16:{p:["M11 5h1v1.146a1 1 0 0 1-.629.928L11 7.223V5ZM5 7.223l-.371-.149A1 1 0 0 1 4 6.146V5h1v2.223Z","M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM3 5v1.146a2 2 0 0 0 1.257 1.858l.865.346a3.005 3.005 0 0 0 2.294 2.093C7.22 11.404 6.658 12 5.502 12H5.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1c-1.158 0-1.72-.595-1.916-1.557a3.005 3.005 0 0 0 2.294-2.094l.865-.346A2 2 0 0 0 13 6.146V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1Z"],h:16,w:16}},ko={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4Zm10 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z"],h:24,w:24}},Ro={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073Zm4.48 3.758a.75.75 0 0 1 .755.745l.01 1.497h1.497a.75.75 0 0 1 0 1.5H9v1.507a.75.75 0 0 1-1.5 0V9.005l-1.502.01a.75.75 0 0 1-.01-1.5l1.507-.01-.01-1.492a.75.75 0 0 1 .745-.755Z"],h:16,w:16}},To={16:{p:["M2.75 1.5a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8a1.75 1.75 0 0 1 1.508.862.75.75 0 1 1-1.289.768.25.25 0 0 0-.219-.13h-8Z","M8 7a3.999 3.999 0 0 1 7.605-1.733 4 4 0 0 1-1.115 4.863l.995 4.973a.75.75 0 0 1-.991.852l-2.409-.876a.248.248 0 0 0-.17 0l-2.409.876a.75.75 0 0 1-.991-.852l.994-4.973A3.994 3.994 0 0 1 8 7Zm4-2.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm0 6.5c-.373 0-.745-.051-1.104-.154l-.649 3.243 1.155-.42c.386-.14.81-.14 1.196 0l1.155.42-.649-3.243A4.004 4.004 0 0 1 12 11Z"],h:16,w:16}},Ao={16:{p:["M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2a.75.75 0 0 1-1.5 0Zm-4 6C0 6.784.784 6 1.75 6h1.5C4.216 6 5 6.784 5 7.75v2.5A1.75 1.75 0 0 1 3.25 12h-1.5A1.75 1.75 0 0 1 0 10.25ZM6.75 6h1.5a.75.75 0 0 1 .75.75v3.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-3h-.75a.75.75 0 0 1 0-1.5Zm-5 1.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm9.75-5.938V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z","M0 13.75C0 12.784.784 12 1.75 12h3c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 0 17.75Zm1.75-.25a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM9 12a.75.75 0 0 0 0 1.5h1.5V18H9a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H12v-5.25a.75.75 0 0 0-.75-.75H9Z"],h:24,w:24}},xo={16:{p:["M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z","M4.53 12.24a.75.75 0 0 1-.039 1.06l-2.639 2.45 2.64 2.45a.75.75 0 1 1-1.022 1.1l-3.23-3a.75.75 0 0 1 0-1.1l3.23-3a.75.75 0 0 1 1.06.04Zm3.979 1.06a.75.75 0 1 1 1.02-1.1l3.231 3a.75.75 0 0 1 0 1.1l-3.23 3a.75.75 0 1 1-1.021-1.1l2.639-2.45-2.64-2.45Z"],h:24,w:24}},Do={16:{p:["M1 1.75C1 .784 1.784 0 2.75 0h7.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073ZM8 3.25a.75.75 0 0 1 .75.75v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5a.75.75 0 0 1-1.5 0V7h-1.5a.75.75 0 0 1 0-1.5h1.5V4A.75.75 0 0 1 8 3.25Zm-3 8a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M12.5 6.75a.75.75 0 0 0-1.5 0V9H8.75a.75.75 0 0 0 0 1.5H11v2.25a.75.75 0 0 0 1.5 0V10.5h2.25a.75.75 0 0 0 0-1.5H12.5V6.75ZM8.75 16a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6Z","M5 1h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.5 2v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5a.5.5 0 0 0-.5.5Z"],h:24,w:24}},_o={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H7.5c-.55 0-1.07-.26-1.4-.7l-.9-1.2a.25.25 0 0 0-.2-.1Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V7.687a.25.25 0 0 0-.25-.25h-8.471a1.75 1.75 0 0 1-1.447-.765L8.928 4.61a.252.252 0 0 0-.208-.11Z"],h:24,w:24}},Mo={16:{p:["M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"],h:24,w:24}},Po={16:{p:["M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"],h:16,w:16}},Io={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5a1.75 1.75 0 0 1 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H5.375a.75.75 0 0 1 0-1.5h8.875a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H7.5a1.75 1.75 0 0 1-1.4-.7l-.9-1.2a.25.25 0 0 0-.2-.1H1.75a.25.25 0 0 0-.25.25v3a.75.75 0 0 1-1.5 0v-3Z","M1.5 12.237a2.25 2.25 0 0 1 2.262-2.249L4 9.989v1.938c0 .218.26.331.42.183l2.883-2.677a.25.25 0 0 0 0-.366L4.42 6.39a.25.25 0 0 0-.42.183v1.916l-.229-.001A3.75 3.75 0 0 0 0 12.237v1.013a.75.75 0 0 0 1.5 0v-1.013Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971a1.75 1.75 0 0 1 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H4.75a.75.75 0 0 1 0-1.5h15.5a.25.25 0 0 0 .25-.25V7.688a.25.25 0 0 0-.25-.25h-8.471a1.751 1.751 0 0 1-1.447-.766L8.928 4.609a.252.252 0 0 0-.207-.109H3.75a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0v-3.5Z","m9.308 12.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 14H4.09a2.59 2.59 0 0 0-2.59 2.59v3.16a.75.75 0 0 1-1.5 0v-3.16a4.09 4.09 0 0 1 4.09-4.09h5.218Z"],h:24,w:24}},Oo={24:{p:["M21.75 21.5H2.25A1.75 1.75 0 0 1 .5 19.75V4.25c0-.966.784-1.75 1.75-1.75h19.5c.966 0 1.75.784 1.75 1.75v15.5a1.75 1.75 0 0 1-1.75 1.75ZM2.25 4a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.749 1.749 0 0 1 2.506-.032L22 16.44V4.25a.25.25 0 0 0-.25-.25ZM22 19.75v-1.19l-6.555-6.554a.248.248 0 0 0-.18-.073.247.247 0 0 0-.178.077L7.497 20H21.75a.25.25 0 0 0 .25-.25ZM10.5 9.25a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0Zm-1.5 0a1.75 1.75 0 1 0-3.501.001A1.75 1.75 0 0 0 9 9.25Z"],h:24,w:24}},No={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073H3.75a.25.25 0 0 0-.25.25v6.5a.75.75 0 0 1-1.5 0v-6.5Z","m5.427 15.573 3.146-3.146a.25.25 0 0 0 0-.354L5.427 8.927A.25.25 0 0 0 5 9.104V11.5H.75a.75.75 0 0 0 0 1.5H5v2.396c0 .223.27.335.427.177Z"],h:16,w:16}},Lo={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073Zm4.5 6h2.242a.75.75 0 0 1 0 1.5h-2.24l-2.254.015a.75.75 0 0 1-.01-1.5Z"],h:16,w:16}},Bo={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm9.42 9.36 2.883-2.677a.25.25 0 0 0 0-.366L9.42 6.39a.249.249 0 0 0-.42.183V8.5H4.75a.75.75 0 0 0 0 1.5H9v1.927c0 .218.26.331.42.183Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.965a1.75 1.75 0 0 1 1.456.78l1.406 2.109a.25.25 0 0 0 .208.111h8.465c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm12.78 4.97a.749.749 0 0 0-1.275.326.749.749 0 0 0 .215.734l1.72 1.72H6.75a.75.75 0 0 0 0 1.5h8.69l-1.72 1.72a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215l3-3a.75.75 0 0 0 0-1.06Z"],h:24,w:24}},Fo={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 12.25 15h-7a.75.75 0 0 1 0-1.5h7a.25.25 0 0 0 .25-.25V6H9.75A1.75 1.75 0 0 1 8 4.25V1.5H3.75a.25.25 0 0 0-.25.25V4.5a.75.75 0 0 1-1.5 0Zm-.5 10.487v1.013a.75.75 0 0 1-1.5 0v-1.012a3.748 3.748 0 0 1 3.77-3.749L4 8.49V6.573a.25.25 0 0 1 .42-.183l2.883 2.678a.25.25 0 0 1 0 .366L4.42 12.111a.25.25 0 0 1-.42-.183V9.99l-.238-.003a2.25 2.25 0 0 0-2.262 2.25Zm8-10.675V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm6.308 11.5-2.104-2.236a.751.751 0 0 1 .369-1.255.749.749 0 0 1 .723.227l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.749.749 0 0 1-1.275-.293.751.751 0 0 1 .183-.735L9.308 16H4.09a2.59 2.59 0 0 0-2.59 2.59v3.16a.75.75 0 0 1-1.5 0v-3.16a4.09 4.09 0 0 1 4.09-4.09ZM15 2.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z"],h:24,w:24}},Ho={16:{p:["M3.5 1.75v11.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.748 1.748 0 0 1 2 13.25V1.75C2 .784 2.784 0 3.75 0h5.586c.464 0 .909.185 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 12.25 15h-.5a.75.75 0 0 1 0-1.5h.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177L9.513 1.573a.25.25 0 0 0-.177-.073H7.25a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5h-3a.25.25 0 0 0-.25.25Zm3.75 8.75h.5c.966 0 1.75.784 1.75 1.75v3a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-3c0-.966.784-1.75 1.75-1.75ZM6 5.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 6 5.25Zm.75 2.25h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM8 6.75A.75.75 0 0 1 8.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 8 6.75ZM8.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM8 9.75A.75.75 0 0 1 8.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 8 9.75Zm-1 2.5v2.25h1v-2.25a.25.25 0 0 0-.25-.25h-.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M5 2.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h1.75a.75.75 0 0 1 0 1.5H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2h-2.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5Z","M11.5 15.75a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm.75-3.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1Zm-.75-2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75ZM12.25 6a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1Zm-.75-2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75ZM9.75 13.5a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1ZM9 11.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm.75-3.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1ZM9 5.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 9 5.25ZM11 17h1a2 2 0 0 1 2 2v4.25a.75.75 0 0 1-.75.75h-3.5a.75.75 0 0 1-.75-.75V19a2 2 0 0 1 2-2Zm-.5 2v3.5h2V19a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5Z"],h:24,w:24}},Uo={16:{p:["M.75 3h14.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5ZM3 7.75A.75.75 0 0 1 3.75 7h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 7.75Zm3 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M2.75 6a.75.75 0 0 0 0 1.5h18.5a.75.75 0 0 0 0-1.5H2.75ZM6 11.75a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H6.75a.75.75 0 0 1-.75-.75Zm4 4.938a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Zo={16:{p:["M14.384 4.57a.752.752 0 0 0 1.061 0 .752.752 0 0 0 0-1.061l-.884-.884.883-.884A.75.75 0 0 0 14.384.68l-.884.884-.884-.884a.75.75 0 0 0-1.06 1.061l.883.884-.883.884a.75.75 0 0 0 1.06 1.061l.884-.884.884.884ZM.75 3a.75.75 0 0 0 0 1.5H9A.75.75 0 0 0 9 3H.75ZM3 7.75A.75.75 0 0 1 3.75 7h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 7.75Zm3 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M21.587 9.273a.75.75 0 1 0 1.061-1.061l-1.591-1.591 1.591-1.591a.749.749 0 1 0-1.061-1.06l-1.591 1.591-1.591-1.591a.749.749 0 1 0-1.06 1.06l1.591 1.591-1.591 1.591a.75.75 0 0 0 1.06 1.061l1.591-1.591 1.591 1.591ZM1.75 6a.75.75 0 0 0 0 1.5H14.5a.75.75 0 0 0 0-1.5H1.75ZM5 11.75a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1-.75-.75Zm4 4.938a.75.75 0 0 1 .75-.75h2.5a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},$o={16:{p:["M10 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M4 9.25h-.75a.75.75 0 0 1 0-1.5H4v-1.5h-.75a.75.75 0 0 1 0-1.5H4V3.5a1 1 0 0 1 1-1h7.5a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1ZM5.5 4v.793a.75.75 0 0 1 0 1.414v1.586a.75.75 0 0 1 0 1.414V10H12V4Z","M12.75 14.25V14h-9.5v.25a.75.75 0 0 1-1.5 0V14A1.75 1.75 0 0 1 0 12.25V1.75C0 .784.784 0 1.75 0h12.5C15.217 0 16 .784 16 1.75v10.5A1.75 1.75 0 0 1 14.25 14v.25a.75.75 0 0 1-1.5 0ZM1.75 1.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16}},Wo={16:{p:["M9.533.753V.752c.217 2.385 1.463 3.626 2.653 4.81C13.37 6.74 14.498 7.863 14.498 10c0 3.5-3 6-6.5 6S1.5 13.512 1.5 10c0-1.298.536-2.56 1.425-3.286.376-.308.862 0 1.035.454C4.46 8.487 5.581 8.419 6 8c.282-.282.341-.811-.003-1.5C4.34 3.187 7.035.75 8.77.146c.39-.137.726.194.763.607ZM7.998 14.5c2.832 0 5-1.98 5-4.5 0-1.463-.68-2.19-1.879-3.383l-.036-.037c-1.013-1.008-2.3-2.29-2.834-4.434-.322.256-.63.579-.864.953-.432.696-.621 1.58-.046 2.73.473.947.67 2.284-.278 3.232-.61.61-1.545.84-2.403.633a2.79 2.79 0 0 1-1.436-.874A3.198 3.198 0 0 0 3 10c0 2.53 2.164 4.5 4.998 4.5Z"],h:16,w:16},24:{p:["M14.265 1.627c0 3.545 1.869 5.327 3.479 7.021 1.54 1.62 3.006 3.163 3.006 6.102 0 4.812-3.753 8.25-8.565 8.25-4.813 0-8.935-3.421-8.935-8.25 0-2.039.962-4.011 2.509-4.899.305-.175.672.007.803.334C7.563 12.684 8.797 12.64 9.437 12c.388-.387.47-1.116-.004-2.062-2.405-4.812 1.863-8.279 4.2-8.854.336-.082.615.198.632.543ZM12.185 21.5c4.059 0 7.065-2.84 7.065-6.75 0-2.337-1.093-3.489-2.678-5.158l-.021-.023c-1.44-1.517-3.139-3.351-3.649-6.557a6.148 6.148 0 0 0-1.911 1.76c-.787 1.144-1.147 2.633-.216 4.495.603 1.205.777 2.74-.277 3.794-.657.657-1.762 1.1-2.956.586-.752-.324-1.353-.955-1.838-1.79-.567.706-.954 1.74-.954 2.893 0 3.847 3.288 6.75 7.435 6.75Z"],h:24,w:24}},qo={16:{p:["M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 15c.199 0 .389.079.53.22l3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 16.81l-2.72 2.72a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25A.749.749 0 0 1 12 15Z","M12.53 8.78a.75.75 0 0 1-1.06 0L8.22 5.53a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L12 7.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734ZM12 15.75a.75.75 0 0 1 .75.75v5.75a.75.75 0 0 1-1.5 0V16.5a.75.75 0 0 1 .75-.75Z","M12 8.5a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Vo={16:{p:["m8.177 14.323 2.896-2.896a.25.25 0 0 0-.177-.427H8.75V7.764a.75.75 0 1 0-1.5 0V11H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0ZM2.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75ZM8.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 19a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 17.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 19Z","M12 18a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5A.75.75 0 0 1 12 18ZM2.75 6a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 2.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 6.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Go={16:{p:["M7.823 1.677 4.927 4.573A.25.25 0 0 0 5.104 5H7.25v3.236a.75.75 0 1 0 1.5 0V5h2.146a.25.25 0 0 0 .177-.427L8.177 1.677a.25.25 0 0 0-.354 0ZM13.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-3.75.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM7.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM4 11.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM1.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z"],h:16,w:16},24:{p:["M11.47 5.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 6.81 9.28 9.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z","M12 5.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0v-8A.75.75 0 0 1 12 5.5ZM2.75 18a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},zo={16:{p:["M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z"],h:16,w:16},24:{p:["M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z","M12 1c.266 0 .532.009.797.028.763.055 1.345.617 1.512 1.304l.352 1.45c.019.078.09.171.225.221.247.089.49.19.728.302.13.061.246.044.315.002l1.275-.776c.603-.368 1.411-.353 1.99.147.402.349.78.726 1.128 1.129.501.578.515 1.386.147 1.99l-.776 1.274c-.042.069-.058.185.002.315.112.238.213.481.303.728.048.135.142.205.22.225l1.45.352c.687.167 1.249.749 1.303 1.512.038.531.038 1.063 0 1.594-.054.763-.616 1.345-1.303 1.512l-1.45.352c-.078.019-.171.09-.221.225-.089.248-.19.491-.302.728-.061.13-.044.246-.002.315l.776 1.275c.368.603.353 1.411-.147 1.99-.349.402-.726.78-1.129 1.128-.578.501-1.386.515-1.99.147l-1.274-.776c-.069-.042-.185-.058-.314.002a8.606 8.606 0 0 1-.729.303c-.135.048-.205.142-.225.22l-.352 1.45c-.167.687-.749 1.249-1.512 1.303-.531.038-1.063.038-1.594 0-.763-.054-1.345-.616-1.512-1.303l-.352-1.45c-.019-.078-.09-.171-.225-.221a8.138 8.138 0 0 1-.728-.302c-.13-.061-.246-.044-.315-.002l-1.275.776c-.603.368-1.411.353-1.99-.147-.402-.349-.78-.726-1.128-1.129-.501-.578-.515-1.386-.147-1.99l.776-1.274c.042-.069.058-.185-.002-.314a8.606 8.606 0 0 1-.303-.729c-.048-.135-.142-.205-.22-.225l-1.45-.352c-.687-.167-1.249-.749-1.304-1.512a11.158 11.158 0 0 1 0-1.594c.055-.763.617-1.345 1.304-1.512l1.45-.352c.078-.019.171-.09.221-.225.089-.248.19-.491.302-.728.061-.13.044-.246.002-.315l-.776-1.275c-.368-.603-.353-1.411.147-1.99.349-.402.726-.78 1.129-1.128.578-.501 1.386-.515 1.99-.147l1.274.776c.069.042.185.058.315-.002.238-.112.481-.213.728-.303.135-.048.205-.142.225-.22l.352-1.45c.167-.687.749-1.249 1.512-1.304C11.466 1.01 11.732 1 12 1Zm-.69 1.525c-.055.004-.135.05-.161.161l-.353 1.45a1.832 1.832 0 0 1-1.172 1.277 7.147 7.147 0 0 0-.6.249 1.833 1.833 0 0 1-1.734-.074l-1.274-.776c-.098-.06-.186-.036-.228 0a9.774 9.774 0 0 0-.976.976c-.036.042-.06.131 0 .228l.776 1.274c.314.529.342 1.18.074 1.734a7.147 7.147 0 0 0-.249.6 1.831 1.831 0 0 1-1.278 1.173l-1.45.351c-.11.027-.156.107-.16.162a9.63 9.63 0 0 0 0 1.38c.004.055.05.135.161.161l1.45.353a1.832 1.832 0 0 1 1.277 1.172c.074.204.157.404.249.6.268.553.24 1.204-.074 1.733l-.776 1.275c-.06.098-.036.186 0 .228.301.348.628.675.976.976.042.036.131.06.228 0l1.274-.776a1.83 1.83 0 0 1 1.734-.075c.196.093.396.176.6.25a1.831 1.831 0 0 1 1.173 1.278l.351 1.45c.027.11.107.156.162.16a9.63 9.63 0 0 0 1.38 0c.055-.004.135-.05.161-.161l.353-1.45a1.834 1.834 0 0 1 1.172-1.278 6.82 6.82 0 0 0 .6-.248 1.831 1.831 0 0 1 1.733.074l1.275.776c.098.06.186.036.228 0 .348-.301.675-.628.976-.976.036-.042.06-.131 0-.228l-.776-1.275a1.834 1.834 0 0 1-.075-1.733c.093-.196.176-.396.25-.6a1.831 1.831 0 0 1 1.278-1.173l1.45-.351c.11-.027.156-.107.16-.162a9.63 9.63 0 0 0 0-1.38c-.004-.055-.05-.135-.161-.161l-1.45-.353c-.626-.152-1.08-.625-1.278-1.172a6.576 6.576 0 0 0-.248-.6 1.833 1.833 0 0 1 .074-1.734l.776-1.274c.06-.098.036-.186 0-.228a9.774 9.774 0 0 0-.976-.976c-.042-.036-.131-.06-.228 0l-1.275.776a1.831 1.831 0 0 1-1.733.074 6.88 6.88 0 0 0-.6-.249 1.835 1.835 0 0 1-1.173-1.278l-.351-1.45c-.027-.11-.107-.156-.162-.16a9.63 9.63 0 0 0-1.38 0Z"],h:24,w:24}},jo={16:{p:["M2 2.75A2.75 2.75 0 0 1 4.75 0c.983 0 1.873.42 2.57 1.232.268.318.497.668.68 1.042.183-.375.411-.725.68-1.044C9.376.42 10.266 0 11.25 0a2.75 2.75 0 0 1 2.45 4h.55c.966 0 1.75.784 1.75 1.75v2c0 .698-.409 1.301-1 1.582v4.918A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V9.332C.409 9.05 0 8.448 0 7.75v-2C0 4.784.784 4 1.75 4h.55c-.192-.375-.3-.8-.3-1.25ZM7.25 9.5H2.5v4.75c0 .138.112.25.25.25h4.5Zm1.5 0v5h4.5a.25.25 0 0 0 .25-.25V9.5Zm0-4V8h5.5a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25Zm-7 0a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h5.5V5.5h-5.5Zm3-4a1.25 1.25 0 0 0 0 2.5h2.309c-.233-.818-.542-1.401-.878-1.793-.43-.502-.915-.707-1.431-.707ZM8.941 4h2.309a1.25 1.25 0 0 0 0-2.5c-.516 0-1 .205-1.43.707-.337.392-.646.975-.879 1.793Z"],h:16,w:16},24:{p:["M3.75 3.75A3.75 3.75 0 0 1 7.5 0c1.455 0 3.436.901 4.5 3.11C13.064.901 15.044 0 16.5 0a3.75 3.75 0 0 1 3 6h1.75c.966 0 1.75.784 1.75 1.75v2.5c0 .698-.409 1.301-1 1.582v8.418A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-8.418c-.591-.282-1-.884-1-1.582v-2.5C1 6.784 1.784 6 2.75 6H4.5a3.733 3.733 0 0 1-.75-2.25ZM20.5 12h-7.75v8.5h7.5a.25.25 0 0 0 .25-.25Zm-9.25 8.5V12H3.5v8.25c0 .138.112.25.25.25Zm10-10a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25h-8.5v3Zm-18.5 0h8.5v-3h-8.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25Zm16-6.75A2.25 2.25 0 0 0 16.5 1.5c-1.15 0-3.433 1.007-3.72 4.5h3.72a2.25 2.25 0 0 0 2.25-2.25ZM11.22 6c-.287-3.493-2.57-4.5-3.72-4.5a2.25 2.25 0 1 0 0 4.5Z"],h:24,w:24}},Ko={16:{p:["M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M15 4.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM2.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 6.5Z","M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z","M17.5 8.75v-1H19v1a3.75 3.75 0 0 1-3.75 3.75h-7a1.75 1.75 0 0 0-1.75 1.75H5A3.25 3.25 0 0 1 8.25 11h7a2.25 2.25 0 0 0 2.25-2.25Z"],h:24,w:24}},Yo={16:{p:["M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.75a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M16.944 11h4.306a.75.75 0 0 1 0 1.5h-4.306a5.001 5.001 0 0 1-9.888 0H2.75a.75.75 0 0 1 0-1.5h4.306a5.001 5.001 0 0 1 9.888 0Zm-1.444.75a3.5 3.5 0 1 0-7 0 3.5 3.5 0 0 0 7 0Z"],h:24,w:24}},Xo={16:{p:["M9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM6 12v-1.646a.25.25 0 0 1 .427-.177l2.396 2.396a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 6 15.146V13.5H5A2.5 2.5 0 0 1 2.5 11V5.372a2.25 2.25 0 1 1 1.5 0V11a1 1 0 0 0 1 1ZM4 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM12.75 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M16.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z","M13.905 1.72a.75.75 0 0 1 0 1.06L12.685 4h4.065a3.75 3.75 0 0 1 3.75 3.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM7.5 4.75a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0ZM4.25 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 4.25 6.5Z","M10.095 22.28a.75.75 0 0 1 0-1.06l1.22-1.22H7.25a3.75 3.75 0 0 1-3.75-3.75V7.5a.75.75 0 0 1 1.5 0v8.75a2.25 2.25 0 0 0 2.25 2.25h4.064l-1.22-1.22a.748.748 0 0 1 .332-1.265.75.75 0 0 1 .729.205l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},Qo={16:{p:["M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"],h:16,w:16},24:{p:["M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z","M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z","M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"],h:24,w:24}},Jo={16:{p:["M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"],h:24,w:24}},ea={16:{p:["M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"],h:16,w:16},24:{p:["M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z","M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},ta={16:{p:["M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"],h:24,w:24}},na={16:{p:["M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"],h:16,w:16},24:{p:["M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"],h:24,w:24}},ra={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1Zm3.241 10.5v-.001c-.1-2.708-.992-4.904-1.89-6.452a13.919 13.919 0 0 0-1.304-1.88L12 3.11l-.047.059c-.354.425-.828 1.06-1.304 1.88-.898 1.547-1.79 3.743-1.89 6.451Zm-12.728 0h4.745c.1-3.037 1.1-5.49 2.093-7.204.39-.672.78-1.233 1.119-1.673C6.11 3.329 2.746 7 2.513 11.5Zm18.974 0C21.254 7 17.89 3.329 13.53 2.623c.339.44.729 1.001 1.119 1.673.993 1.714 1.993 4.167 2.093 7.204ZM8.787 13c.182 2.478 1.02 4.5 1.862 5.953.382.661.818 1.29 1.304 1.88l.047.057.047-.059c.354-.425.828-1.06 1.304-1.88.842-1.451 1.679-3.471 1.862-5.951Zm-1.504 0H2.552a9.505 9.505 0 0 0 7.918 8.377 15.773 15.773 0 0 1-1.119-1.673C8.413 18.085 7.47 15.807 7.283 13Zm9.434 0c-.186 2.807-1.13 5.085-2.068 6.704-.39.672-.78 1.233-1.118 1.673A9.506 9.506 0 0 0 21.447 13Z"],h:24,w:24}},ia={16:{p:["M13.637 2.363h-.001l1.676.335c.09.018.164.084.19.173a.25.25 0 0 1-.062.249l-1.373 1.374a.876.876 0 0 1-.619.256H12.31L9.45 7.611A1.5 1.5 0 1 1 6.5 8a1.501 1.501 0 0 1 1.889-1.449l2.861-2.862V2.552c0-.232.092-.455.256-.619L12.88.559a.25.25 0 0 1 .249-.062c.089.026.155.1.173.19Z","M2 8a6 6 0 1 0 11.769-1.656.751.751 0 1 1 1.442-.413 7.502 7.502 0 0 1-12.513 7.371A7.501 7.501 0 0 1 10.069.789a.75.75 0 0 1-.413 1.442A6.001 6.001 0 0 0 2 8Z","M5 8a3.002 3.002 0 0 0 4.699 2.476 3 3 0 0 0 1.28-2.827.748.748 0 0 1 1.045-.782.75.75 0 0 1 .445.61A4.5 4.5 0 1 1 8.516 3.53a.75.75 0 1 1-.17 1.49A3 3 0 0 0 5 8Z"],h:16,w:16},24:{p:["M20.172 6.75h-1.861l-4.566 4.564a1.874 1.874 0 1 1-1.06-1.06l4.565-4.565V3.828a.94.94 0 0 1 .275-.664l1.73-1.73a.249.249 0 0 1 .25-.063c.089.026.155.1.173.191l.46 2.301 2.3.46c.09.018.164.084.19.173a.25.25 0 0 1-.062.249l-1.731 1.73a.937.937 0 0 1-.663.275Z","M2.625 12A9.375 9.375 0 0 0 12 21.375 9.375 9.375 0 0 0 21.375 12c0-.898-.126-1.766-.361-2.587A.75.75 0 0 1 22.455 9c.274.954.42 1.96.42 3 0 6.006-4.869 10.875-10.875 10.875S1.125 18.006 1.125 12 5.994 1.125 12 1.125c1.015-.001 2.024.14 3 .419a.75.75 0 1 1-.413 1.442A9.39 9.39 0 0 0 12 2.625 9.375 9.375 0 0 0 2.625 12Z","M7.125 12a4.874 4.874 0 1 0 9.717-.569.748.748 0 0 1 1.047-.798c.251.112.42.351.442.625a6.373 6.373 0 0 1-10.836 5.253 6.376 6.376 0 0 1 5.236-10.844.75.75 0 1 1-.17 1.49A4.876 4.876 0 0 0 7.125 12Z"],h:24,w:24}},sa={16:{p:["M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M9 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm7-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm7-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm6 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},oa={16:{p:["M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M2.5 2.75a.75.75 0 0 0-1.5 0v18.5c0 .414.336.75.75.75H20a.75.75 0 0 0 0-1.5H2.5V2.75Z","M22.28 7.78a.75.75 0 0 0-1.06-1.06l-5.72 5.72-3.72-3.72a.75.75 0 0 0-1.06 0l-6 6a.75.75 0 1 0 1.06 1.06l5.47-5.47 3.72 3.72a.75.75 0 0 0 1.06 0l6.25-6.25Z"],h:24,w:24}},aa={16:{p:["M6.368 1.01a.75.75 0 0 1 .623.859L6.57 4.5h3.98l.46-2.868a.75.75 0 0 1 1.48.237L12.07 4.5h2.18a.75.75 0 0 1 0 1.5h-2.42l-.64 4h2.56a.75.75 0 0 1 0 1.5h-2.8l-.46 2.869a.75.75 0 0 1-1.48-.237l.42-2.632H5.45l-.46 2.869a.75.75 0 0 1-1.48-.237l.42-2.632H1.75a.75.75 0 0 1 0-1.5h2.42l.64-4H2.25a.75.75 0 0 1 0-1.5h2.8l.46-2.868a.75.75 0 0 1 .858-.622ZM9.67 10l.64-4H6.33l-.64 4Z"],h:16,w:16},24:{p:["M9.618 1.76a.75.75 0 0 1 .623.859L9.46 7.5h6.48l.82-5.118a.75.75 0 0 1 1.48.237L17.46 7.5h3.79a.75.75 0 0 1 0 1.5h-4.03l-.96 6h3.99a.75.75 0 0 1 0 1.5h-4.23l-.78 4.869a.75.75 0 0 1-1.48-.237l.74-4.632H8.02l-.78 4.869a.75.75 0 0 1-1.48-.237L6.5 16.5H2.745a.75.75 0 0 1 0-1.5H6.74l.96-6H3.75a.75.75 0 0 1 0-1.5h4.19l.82-5.118a.75.75 0 0 1 .858-.622ZM14.741 15l.96-6H9.22l-.96 6Z"],h:24,w:24}},la={16:{p:["M3.75 2a.75.75 0 0 1 .75.75V7h7V2.75a.75.75 0 0 1 1.5 0v10.5a.75.75 0 0 1-1.5 0V8.5h-7v4.75a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 3.75 2Z"],h:16,w:16},24:{p:["M6.25 4a.75.75 0 0 1 .75.75V11h10V4.75a.75.75 0 0 1 1.5 0v14.5a.75.75 0 0 1-1.5 0V12.5H7v6.75a.75.75 0 0 1-1.5 0V4.75A.75.75 0 0 1 6.25 4Z"],h:24,w:24}},ca={16:{p:["m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"],h:16,w:16},24:{p:["m12 20.703.343.667a.748.748 0 0 1-.686 0l-.003-.002-.007-.003-.025-.013a31.138 31.138 0 0 1-5.233-3.576C3.8 15.573 1 12.332 1 8.514v-.001C1 5.053 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262a31.148 31.148 0 0 1-5.233 3.576l-.025.013-.007.003-.002.001ZM6.736 4C4.657 4 2.5 5.88 2.5 8.514c0 3.107 2.324 5.96 4.861 8.12a29.655 29.655 0 0 0 4.566 3.175l.073.041.073-.04c.271-.153.661-.38 1.13-.674.94-.588 2.19-1.441 3.436-2.502 2.537-2.16 4.861-5.013 4.861-8.12C21.5 5.88 19.343 4 17.264 4c-2.106 0-3.801 1.389-4.553 3.643a.751.751 0 0 1-1.422 0C10.537 5.389 8.841 4 6.736 4Z"],h:24,w:24}},ua={16:{p:["M7.655 14.916v-.001h-.002l-.006-.003-.018-.01a22.066 22.066 0 0 1-3.744-2.584C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.044 5.231-3.886 6.818a22.094 22.094 0 0 1-3.433 2.414 7.152 7.152 0 0 1-.31.17l-.018.01-.008.004a.75.75 0 0 1-.69 0Z"],h:16,w:16},24:{p:["M14 20.408c-.492.308-.903.546-1.192.709-.153.086-.308.17-.463.252h-.002a.75.75 0 0 1-.686 0 16.709 16.709 0 0 1-.465-.252 31.147 31.147 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31.146 31.146 0 0 1 14 20.408Z"],h:24,w:24}},ha={16:{p:["m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"],h:16,w:16},24:{p:["M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z","M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z"],h:24,w:24}},pa={16:{p:["M6.906.664a1.749 1.749 0 0 1 2.187 0l5.25 4.2c.415.332.657.835.657 1.367v7.019A1.75 1.75 0 0 1 13.25 15h-3.5a.75.75 0 0 1-.75-.75V9H7v5.25a.75.75 0 0 1-.75.75h-3.5A1.75 1.75 0 0 1 1 13.25V6.23c0-.531.242-1.034.657-1.366l5.25-4.2Zm1.25 1.171a.25.25 0 0 0-.312 0l-5.25 4.2a.25.25 0 0 0-.094.196v7.019c0 .138.112.25.25.25H5.5V8.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v5.25h2.75a.25.25 0 0 0 .25-.25V6.23a.25.25 0 0 0-.094-.195Z"],h:16,w:16},24:{p:["M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"],h:24,w:24}},da={24:{p:["M12.97 2.59a1.5 1.5 0 0 0-1.94 0l-7.5 6.363A1.5 1.5 0 0 0 3 10.097V19.5A1.5 1.5 0 0 0 4.5 21h4.75a.75.75 0 0 0 .75-.75V14h4v6.25c0 .414.336.75.75.75h4.75a1.5 1.5 0 0 0 1.5-1.5v-9.403a1.5 1.5 0 0 0-.53-1.144l-7.5-6.363Z"],h:24,w:24}},ma={16:{p:["M0 7.75A.75.75 0 0 1 .75 7h14.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 7.75Z"],h:16,w:16},24:{p:["M2 12.75a.75.75 0 0 1 .75-.75h18.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},fa={16:{p:["M2.75 1h10.5a.75.75 0 0 1 0 1.5h-.75v1.25a4.75 4.75 0 0 1-1.9 3.8l-.333.25a.25.25 0 0 0 0 .4l.333.25a4.75 4.75 0 0 1 1.9 3.8v1.25h.75a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5h.75v-1.25a4.75 4.75 0 0 1 1.9-3.8l.333-.25a.25.25 0 0 0 0-.4L5.4 7.55a4.75 4.75 0 0 1-1.9-3.8V2.5h-.75a.75.75 0 0 1 0-1.5ZM11 2.5H5v1.25c0 1.023.482 1.986 1.3 2.6l.333.25c.934.7.934 2.1 0 2.8l-.333.25a3.251 3.251 0 0 0-1.3 2.6v1.25h6v-1.25a3.251 3.251 0 0 0-1.3-2.6l-.333-.25a1.748 1.748 0 0 1 0-2.8l.333-.25a3.251 3.251 0 0 0 1.3-2.6Z"],h:16,w:16},24:{p:["M4.75 2h14.5a.75.75 0 0 1 0 1.5h-.75v2.982a4.75 4.75 0 0 1-2.215 4.017l-2.044 1.29a.25.25 0 0 0 0 .422l2.044 1.29a4.75 4.75 0 0 1 2.215 4.017V20.5h.75a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h.75v-2.982a4.75 4.75 0 0 1 2.215-4.017l2.044-1.29a.25.25 0 0 0 0-.422l-2.044-1.29A4.75 4.75 0 0 1 5.5 6.482V3.5h-.75a.75.75 0 0 1 0-1.5ZM17 3.5H7v2.982A3.25 3.25 0 0 0 8.516 9.23l2.044 1.29a1.75 1.75 0 0 1 0 2.96l-2.044 1.29A3.25 3.25 0 0 0 7 17.518V20.5h10v-2.982a3.25 3.25 0 0 0-1.516-2.748l-2.044-1.29a1.75 1.75 0 0 1 0-2.96l2.044-1.29A3.25 3.25 0 0 0 17 6.482Z"],h:24,w:24}},ga={16:{p:["M0 8a8 8 0 0 1 16 0v5.25a.75.75 0 0 1-1.5 0V8a6.5 6.5 0 1 0-13 0v5.25a.75.75 0 0 1-1.5 0Zm3-1.25C3 5.784 3.784 5 4.75 5h6.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0 1 11.25 10h-6.5A1.75 1.75 0 0 1 3 8.25Zm1.47-.53a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 0 0 1.06 0L8 7.81l.97.97a.75.75 0 0 0 1.06 0l1.5-1.5a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215l-.97.97-.97-.97a.75.75 0 0 0-1.06 0l-.97.97-.97-.97a.75.75 0 0 0-1.06 0Zm1.03 6.03a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M0 13C0 6.373 5.373 1 12 1s12 5.373 12 12v8.657a.75.75 0 0 1-1.5 0V13c0-5.799-4.701-10.5-10.5-10.5S1.5 7.201 1.5 13v8.657a.75.75 0 0 1-1.5 0V13Z","M8 19.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75ZM5.25 9.5h13.5c.966 0 1.75.784 1.75 1.75v3.5a1.75 1.75 0 0 1-1.75 1.75H5.25a1.75 1.75 0 0 1-1.75-1.75v-3.5c0-.966.784-1.75 1.75-1.75Zm.22 1.47a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0L12 12.56l2.47 2.47a.75.75 0 0 0 1.06 0l3-3a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L15 13.44l-2.47-2.47a.75.75 0 0 0-1.06 0L9 13.44l-2.47-2.47a.75.75 0 0 0-1.06 0Z"],h:24,w:24}},ya={16:{p:["M3 7.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-3Zm10 .25a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5h4.5a.75.75 0 0 1 .75.75ZM10.25 11a.75.75 0 0 0 0-1.5h-2.5a.75.75 0 0 0 0 1.5h2.5Z","M7.25 0h1.5c.966 0 1.75.784 1.75 1.75V3h3.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-8.5C0 3.784.784 3 1.75 3H5.5V1.75C5.5.784 6.284 0 7.25 0Zm3.232 4.5A1.75 1.75 0 0 1 8.75 6h-1.5a1.75 1.75 0 0 1-1.732-1.5H1.75a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25ZM7 1.75v2.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 9 4.25v-2.5a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25Z"],h:16,w:16}},wa={16:{p:["M16 13.25A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75ZM1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94l.03-.03 6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25Zm12.5 11a.25.25 0 0 0 .25-.25v-.917l-4.298-3.889a.25.25 0 0 0-.344.009L4.81 13.5ZM7 6a2 2 0 1 1-3.999.001A2 2 0 0 1 7 6ZM5.5 6a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z"],h:16,w:16},24:{p:["M4.75 3h14.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 19.25 21H4.75A1.75 1.75 0 0 1 3 19.25V4.75C3 3.784 3.784 3 4.75 3Zm14.5 1.5H4.75a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h.19l9.823-9.823a1.75 1.75 0 0 1 2.475 0l2.262 2.262V4.75a.25.25 0 0 0-.25-.25Zm.25 9.56-3.323-3.323a.25.25 0 0 0-.354 0L7.061 19.5H19.25a.25.25 0 0 0 .25-.25ZM8.5 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm0-1.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"],h:24,w:24}},ba={16:{p:["M2.8 2.06A1.75 1.75 0 0 1 4.41 1h7.18c.7 0 1.333.417 1.61 1.06l2.74 6.395c.04.093.06.194.06.295v4.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-4.5c0-.101.02-.202.06-.295Zm1.61.44a.25.25 0 0 0-.23.152L1.887 8H4.75a.75.75 0 0 1 .6.3L6.625 10h2.75l1.275-1.7a.75.75 0 0 1 .6-.3h2.863L11.82 2.652a.25.25 0 0 0-.23-.152Zm10.09 7h-2.875l-1.275 1.7a.75.75 0 0 1-.6.3h-3.5a.75.75 0 0 1-.6-.3L4.375 9.5H1.5v3.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Z"],h:16,w:16},24:{p:["M4.801 3.57A1.75 1.75 0 0 1 6.414 2.5h11.174c.702 0 1.337.42 1.611 1.067l3.741 8.828c.04.092.06.192.06.293v7.562A1.75 1.75 0 0 1 21.25 22H2.75A1.75 1.75 0 0 1 1 20.25v-7.5c0-.1.02-.199.059-.291L4.8 3.571ZM6.414 4a.25.25 0 0 0-.23.153L2.88 12H8a.75.75 0 0 1 .648.372L10.18 15h3.638l1.533-2.628a.75.75 0 0 1 .64-.372l5.13-.051-3.304-7.797a.25.25 0 0 0-.23-.152ZM21.5 13.445l-5.067.05-1.535 2.633a.75.75 0 0 1-.648.372h-4.5a.75.75 0 0 1-.648-.372L7.57 13.5H2.5v6.75c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25Z"],h:24,w:24}},va={16:{p:["M8 6.984c.59-.533 1.204-1.066 1.825-1.493.797-.548 1.7-.991 2.675-.991C14.414 4.5 16 6.086 16 8s-1.586 3.5-3.5 3.5c-.975 0-1.878-.444-2.675-.991-.621-.427-1.235-.96-1.825-1.493-.59.533-1.204 1.066-1.825 1.493-.797.547-1.7.991-2.675.991C1.586 11.5 0 9.914 0 8s1.586-3.5 3.5-3.5c.975 0 1.878.443 2.675.991.621.427 1.235.96 1.825 1.493ZM9.114 8c.536.483 1.052.922 1.56 1.273.704.483 1.3.727 1.826.727 1.086 0 2-.914 2-2 0-1.086-.914-2-2-2-.525 0-1.122.244-1.825.727-.51.35-1.025.79-1.561 1.273ZM3.5 6c-1.086 0-2 .914-2 2 0 1.086.914 2 2 2 .525 0 1.122-.244 1.825-.727.51-.35 1.025-.79 1.561-1.273-.536-.483-1.052-.922-1.56-1.273C4.621 6.244 4.025 6 3.5 6Z"],h:16,w:16},24:{p:["M12 11.16c.887-.933 1.813-1.865 2.78-2.6C15.952 7.668 17.267 7 18.75 7 21.657 7 24 9.615 24 12.25s-2.343 5.25-5.25 5.25c-1.483 0-2.798-.668-3.97-1.56-.967-.735-1.893-1.667-2.78-2.6-.887.933-1.813 1.865-2.78 2.6-1.172.892-2.487 1.56-3.97 1.56C2.343 17.5 0 14.885 0 12.25S2.343 7 5.25 7c1.483 0 2.798.667 3.97 1.56.967.735 1.893 1.667 2.78 2.6ZM5.25 8.5c-2.032 0-3.75 1.895-3.75 3.75S3.218 16 5.25 16c1.017 0 2.014-.457 3.062-1.253.89-.678 1.758-1.554 2.655-2.497-.897-.943-1.765-1.82-2.655-2.497C7.264 8.957 6.267 8.5 5.25 8.5Zm7.783 3.75c.897.943 1.765 1.82 2.655 2.497C16.736 15.543 17.733 16 18.75 16c2.032 0 3.75-1.895 3.75-3.75S20.782 8.5 18.75 8.5c-1.017 0-2.014.457-3.062 1.253-.89.678-1.758 1.554-2.655 2.497Z"],h:24,w:24}},Ca={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M13 7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-3 3.75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v4.25h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75V12h-.75a.75.75 0 0 1-.75-.75Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Sa={16:{p:["M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Ea={16:{p:["M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"],h:16,w:16},24:{p:["M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"],h:24,w:24}},ka={16:{p:["M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z","M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"],h:24,w:24}},Ra={16:{p:["M5.029 2.217a6.5 6.5 0 0 1 9.437 5.11.75.75 0 1 0 1.492-.154 8 8 0 0 0-14.315-4.03L.427 1.927A.25.25 0 0 0 0 2.104V5.75A.25.25 0 0 0 .25 6h3.646a.25.25 0 0 0 .177-.427L2.715 4.215a6.491 6.491 0 0 1 2.314-1.998ZM1.262 8.169a.75.75 0 0 0-1.22.658 8.001 8.001 0 0 0 14.315 4.03l1.216 1.216a.25.25 0 0 0 .427-.177V10.25a.25.25 0 0 0-.25-.25h-3.646a.25.25 0 0 0-.177.427l1.358 1.358a6.501 6.501 0 0 1-11.751-3.11.75.75 0 0 0-.272-.506Z","M9.06 9.06a1.5 1.5 0 1 1-2.12-2.12 1.5 1.5 0 0 1 2.12 2.12Z"],h:16,w:16},24:{p:["M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z","M13.414 13.414a2 2 0 1 1-2.828-2.828 2 2 0 0 1 2.828 2.828Z"],h:24,w:24}},Ta={16:{p:["M1.5 8a6.5 6.5 0 0 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm3.573 5.823-2.896-2.896a.25.25 0 0 1 0-.354l2.896-2.896a.25.25 0 0 1 .427.177V11.5h3.25a.75.75 0 0 1 0 1.5H12v2.146a.25.25 0 0 1-.427.177Z"],h:16,w:16},24:{p:["M12 2.5a9.5 9.5 0 1 0 0 19 .75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23L13.76 17.02a.308.308 0 0 0 0 .46ZM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],h:24,w:24}},Aa={16:{p:["M1.5 8a6.5 6.5 0 0 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm1.5 1.75a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Zm2.75 2.25a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z"],h:16,w:16},24:{p:["M2.5 12a9.5 9.5 0 1 1 19 0 .75.75 0 0 0 1.5 0c0-6.075-4.925-11-11-11S1 5.925 1 12s4.925 11 11 11a.75.75 0 0 0 0-1.5A9.5 9.5 0 0 1 2.5 12Z","M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2.5 2.75a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Zm3.75 2.75a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5h-4Z"],h:24,w:24}},xa={16:{p:["M6 2.75A.75.75 0 0 1 6.75 2h6.5a.75.75 0 0 1 0 1.5h-2.505l-3.858 9H9.25a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.505l3.858-9H6.75A.75.75 0 0 1 6 2.75Z"],h:16,w:16},24:{p:["M10 4.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-3.514l-5.828 13h3.342a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.514l5.828-13H10.75a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Da={16:{p:["M2.5 7.25a4.75 4.75 0 0 1 9.5 0 .75.75 0 0 0 1.5 0 6.25 6.25 0 1 0-6.25 6.25H12v2.146c0 .223.27.335.427.177l2.896-2.896a.25.25 0 0 0 0-.354l-2.896-2.896a.25.25 0 0 0-.427.177V12H7.25A4.75 4.75 0 0 1 2.5 7.25Z"],h:16,w:16},24:{p:["M2.5 10.5a8 8 0 1 1 16 0 .75.75 0 0 0 1.5 0 9.5 9.5 0 1 0-9.5 9.5h10.94l-2.72 2.72a.75.75 0 1 0 1.06 1.06l3.735-3.735c.44-.439.44-1.151 0-1.59L19.78 14.72a.75.75 0 0 0-1.06 1.06l2.72 2.72H10.5a8 8 0 0 1-8-8Z"],h:24,w:24}},_a={16:{p:["M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"],h:16,w:16},24:{p:["M20 14a2 2 0 1 1-.001-3.999A2 2 0 0 1 20 14ZM6 12a2 2 0 1 1-3.999.001A2 2 0 0 1 6 12Zm8 0a2 2 0 1 1-3.999.001A2 2 0 0 1 14 12Z"],h:24,w:24}},Ma={16:{p:["M10.5 0a5.499 5.499 0 1 1-1.288 10.848l-.932.932a.749.749 0 0 1-.53.22H7v.75a.749.749 0 0 1-.22.53l-.5.5a.749.749 0 0 1-.53.22H5v.75a.749.749 0 0 1-.22.53l-.5.5a.749.749 0 0 1-.53.22h-2A1.75 1.75 0 0 1 0 14.25v-2c0-.199.079-.389.22-.53l4.932-4.932A5.5 5.5 0 0 1 10.5 0Zm-4 5.5c-.001.431.069.86.205 1.269a.75.75 0 0 1-.181.768L1.5 12.56v1.69c0 .138.112.25.25.25h1.69l.06-.06v-1.19a.75.75 0 0 1 .75-.75h1.19l.06-.06v-1.19a.75.75 0 0 1 .75-.75h1.19l1.023-1.025a.75.75 0 0 1 .768-.18A4 4 0 1 0 6.5 5.5ZM11 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M16.75 8.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z","M15.75 0a8.25 8.25 0 1 1-2.541 16.101l-1.636 1.636a1.744 1.744 0 0 1-1.237.513H9.25a.25.25 0 0 0-.25.25v1.448a.876.876 0 0 1-.256.619l-.214.213a.75.75 0 0 1-.545.22H5.25a.25.25 0 0 0-.25.25v1A1.75 1.75 0 0 1 3.25 24h-1.5A1.75 1.75 0 0 1 0 22.25v-2.836c0-.464.185-.908.513-1.236l7.386-7.388A8.249 8.249 0 0 1 15.75 0ZM9 8.25a6.733 6.733 0 0 0 .463 2.462.75.75 0 0 1-.168.804l-7.722 7.721a.25.25 0 0 0-.073.177v2.836c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1c0-.966.784-1.75 1.75-1.75H7.5v-1c0-.966.784-1.75 1.75-1.75h1.086a.25.25 0 0 0 .177-.073l1.971-1.972a.75.75 0 0 1 .804-.168A6.75 6.75 0 1 0 9 8.25Z"],h:24,w:24}},Pa={16:{p:["M0 2.75A2.75 2.75 0 0 1 2.75 0h10.5A2.75 2.75 0 0 1 16 2.75v10.5A2.75 2.75 0 0 1 13.25 16H2.75A2.75 2.75 0 0 1 0 13.25ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25Z","M8 4a.75.75 0 0 1 .75.75V6.7l1.69-.975a.75.75 0 0 1 .75 1.3L9.5 8l1.69.976a.75.75 0 0 1-.75 1.298L8.75 9.3v1.951a.75.75 0 0 1-1.5 0V9.299l-1.69.976a.75.75 0 0 1-.75-1.3L6.5 8l-1.69-.975a.75.75 0 0 1 .75-1.3l1.69.976V4.75A.75.75 0 0 1 8 4Z"],h:16,w:16}},Ia={16:{p:["M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"],h:16,w:16},24:{p:["M12.75 2.75V4.5h1.975c.351 0 .694.106.984.303l1.697 1.154c.041.028.09.043.14.043h4.102a.75.75 0 0 1 0 1.5H20.07l3.366 7.68a.749.749 0 0 1-.23.896c-.1.074-.203.143-.31.206a6.296 6.296 0 0 1-.79.399 7.349 7.349 0 0 1-2.856.569 7.343 7.343 0 0 1-2.855-.568 6.205 6.205 0 0 1-.79-.4 3.205 3.205 0 0 1-.307-.202l-.005-.004a.749.749 0 0 1-.23-.896l3.368-7.68h-.886c-.351 0-.694-.106-.984-.303l-1.697-1.154a.246.246 0 0 0-.14-.043H12.75v14.5h4.487a.75.75 0 0 1 0 1.5H6.763a.75.75 0 0 1 0-1.5h4.487V6H9.275a.249.249 0 0 0-.14.043L7.439 7.197c-.29.197-.633.303-.984.303h-.886l3.368 7.68a.75.75 0 0 1-.209.878c-.08.065-.16.126-.31.223a6.077 6.077 0 0 1-.792.433 6.924 6.924 0 0 1-2.876.62 6.913 6.913 0 0 1-2.876-.62 6.077 6.077 0 0 1-.792-.433 3.483 3.483 0 0 1-.309-.221.762.762 0 0 1-.21-.88L3.93 7.5H2.353a.75.75 0 0 1 0-1.5h4.102c.05 0 .099-.015.141-.043l1.695-1.154c.29-.198.634-.303.985-.303h1.974V2.75a.75.75 0 0 1 1.5 0ZM2.193 15.198a5.414 5.414 0 0 0 2.557.635 5.414 5.414 0 0 0 2.557-.635L4.75 9.368Zm14.51-.024c.082.04.174.083.275.126.53.223 1.305.45 2.272.45a5.847 5.847 0 0 0 2.547-.576L19.25 9.367Z"],h:24,w:24}},Oa={16:{p:["M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M12 2.5c-3.81 0-6.5 2.743-6.5 6.119 0 1.536.632 2.572 1.425 3.56.172.215.347.422.527.635l.096.112c.21.25.427.508.63.774.404.531.783 1.128.995 1.834a.75.75 0 0 1-1.436.432c-.138-.46-.397-.89-.753-1.357a18.111 18.111 0 0 0-.582-.714l-.092-.11c-.18-.212-.37-.436-.555-.667C4.87 12.016 4 10.651 4 8.618 4 4.363 7.415 1 12 1s8 3.362 8 7.619c0 2.032-.87 3.397-1.755 4.5-.185.23-.375.454-.555.667l-.092.109c-.21.248-.405.481-.582.714-.356.467-.615.898-.753 1.357a.751.751 0 0 1-1.437-.432c.213-.706.592-1.303.997-1.834.202-.266.419-.524.63-.774l.095-.112c.18-.213.355-.42.527-.634.793-.99 1.425-2.025 1.425-3.561C18.5 5.243 15.81 2.5 12 2.5ZM8.75 18h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5Zm.75 3.75a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Na={16:{p:["m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"],h:16,w:16},24:{p:["M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z","M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z"],h:24,w:24}},La={16:{p:["M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"],h:16,w:16},24:{p:["M15.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L19.94 3h-3.69a.75.75 0 0 1-.75-.75Z","M2.5 4.25c0-.966.784-1.75 1.75-1.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5a1.75 1.75 0 0 1-1.75 1.75H4.25a1.75 1.75 0 0 1-1.75-1.75V4.25Z"],h:24,w:24}},Ba={16:{p:["M5 3.25a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 3.25Zm0 5a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8.25Zm0 5a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1-.75-.75ZM.924 10.32a.5.5 0 0 1-.851-.525l.001-.001.001-.002.002-.004.007-.011c.097-.144.215-.273.348-.384.228-.19.588-.392 1.068-.392.468 0 .858.181 1.126.484.259.294.377.673.377 1.038 0 .987-.686 1.495-1.156 1.845l-.047.035c-.303.225-.522.4-.654.597h1.357a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5c0-1.005.692-1.52 1.167-1.875l.035-.025c.531-.396.8-.625.8-1.078a.57.57 0 0 0-.128-.376C1.806 10.068 1.695 10 1.5 10a.658.658 0 0 0-.429.163.835.835 0 0 0-.144.153ZM2.003 2.5V6h.503a.5.5 0 0 1 0 1H.5a.5.5 0 0 1 0-1h.503V3.308l-.28.14a.5.5 0 0 1-.446-.895l1.003-.5a.5.5 0 0 1 .723.447Z"],h:16,w:16},24:{p:["M3.604 3.089A.75.75 0 0 1 4 3.75V8.5h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 1 1 0-1.5h.75V5.151l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037ZM8.75 5.5a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75ZM5.5 15.75c0-.704-.271-1.286-.72-1.686a2.302 2.302 0 0 0-1.53-.564c-.535 0-1.094.178-1.53.565-.449.399-.72.982-.72 1.685a.75.75 0 0 0 1.5 0c0-.296.104-.464.217-.564A.805.805 0 0 1 3.25 15c.215 0 .406.072.533.185.113.101.217.268.217.565 0 .332-.069.48-.21.657-.092.113-.216.24-.403.419l-.147.14c-.152.144-.33.313-.52.504l-1.5 1.5a.75.75 0 0 0-.22.53v.25c0 .414.336.75.75.75H5A.75.75 0 0 0 5 19H3.31l.47-.47c.176-.176.333-.324.48-.465l.165-.156a5.98 5.98 0 0 0 .536-.566c.358-.447.539-.925.539-1.593Z"],h:24,w:24}},Fa={16:{p:["M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M8.75 5.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},Ha={16:{p:["m12.596 11.596-3.535 3.536a1.5 1.5 0 0 1-2.122 0l-3.535-3.536a6.5 6.5 0 1 1 9.192-9.193 6.5 6.5 0 0 1 0 9.193Zm-1.06-8.132v-.001a5 5 0 1 0-7.072 7.072L8 14.07l3.536-3.534a5 5 0 0 0 0-7.072ZM8 9a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 9Z"],h:16,w:16},24:{p:["M12 13.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z","M19.071 3.429h.001c3.905 3.905 3.905 10.237 0 14.142l-5.403 5.403a2.36 2.36 0 0 1-3.336 0l-5.375-5.375-.028-.028c-3.905-3.905-3.905-10.237 0-14.142 3.904-3.905 10.236-3.905 14.141 0ZM5.99 4.489v.001a8.5 8.5 0 0 0 0 12.02l.023.024.002.002 5.378 5.378a.859.859 0 0 0 1.214 0l5.403-5.404a8.5 8.5 0 0 0-.043-11.977A8.5 8.5 0 0 0 5.99 4.489Z"],h:24,w:24}},Ua={16:{p:["M4 4a4 4 0 0 1 8 0v2h.25c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-5.5C2 6.784 2.784 6 3.75 6H4Zm8.25 3.5h-8.5a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25ZM10.5 6V4a2.5 2.5 0 1 0-5 0v2Z"],h:16,w:16},24:{p:["M6 9V7.25C6 3.845 8.503 1 12 1s6 2.845 6 6.25V9h.5a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-8A2.5 2.5 0 0 1 5.5 9Zm-1.5 2.5v8a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-13a1 1 0 0 0-1 1Zm3-4.25V9h9V7.25c0-2.67-1.922-4.75-4.5-4.75-2.578 0-4.5 2.08-4.5 4.75Z"],h:24,w:24}},Za={16:{p:["M5 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4A.75.75 0 0 1 5 8.25ZM4 10.5A.75.75 0 0 0 4 12h4a.75.75 0 0 0 0-1.5H4Z","M13-.005c1.654 0 3 1.328 3 3 0 .982-.338 1.933-.783 2.818-.443.879-1.028 1.758-1.582 2.588l-.011.017c-.568.853-1.104 1.659-1.501 2.446-.398.789-.623 1.494-.623 2.136a1.5 1.5 0 1 0 2.333-1.248.75.75 0 0 1 .834-1.246A3 3 0 0 1 13 16H3a3 3 0 0 1-3-3c0-1.582.891-3.135 1.777-4.506.209-.322.418-.637.623-.946.473-.709.923-1.386 1.287-2.048H2.51c-.576 0-1.381-.133-1.907-.783A2.68 2.68 0 0 1 0 2.995a3 3 0 0 1 3-3Zm0 1.5a1.5 1.5 0 0 0-1.5 1.5c0 .476.223.834.667 1.132A.75.75 0 0 1 11.75 5.5H5.368c-.467 1.003-1.141 2.015-1.773 2.963-.192.289-.381.571-.558.845C2.13 10.711 1.5 11.916 1.5 13A1.5 1.5 0 0 0 3 14.5h7.401A2.989 2.989 0 0 1 10 13c0-.979.338-1.928.784-2.812.441-.874 1.023-1.748 1.575-2.576l.017-.026c.568-.853 1.103-1.658 1.501-2.448.398-.79.623-1.497.623-2.143 0-.838-.669-1.5-1.5-1.5Zm-10 0a1.5 1.5 0 0 0-1.5 1.5c0 .321.1.569.27.778.097.12.325.227.74.227h7.674A2.737 2.737 0 0 1 10 2.995c0-.546.146-1.059.401-1.5Z"],h:16,w:16},24:{p:["M9.197 10a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm-2.382 4a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm-1.581 4a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","M4.125 0h15.75a4.11 4.11 0 0 1 2.92 1.205A4.11 4.11 0 0 1 24 4.125c0 1.384-.476 2.794-1.128 4.16-.652 1.365-1.515 2.757-2.352 4.104l-.008.013c-.849 1.368-1.669 2.691-2.28 3.97-.614 1.283-.982 2.45-.982 3.503a2.625 2.625 0 1 0 4.083-2.183.75.75 0 1 1 .834-1.247A4.126 4.126 0 0 1 19.875 24H4.5a4.125 4.125 0 0 1-4.125-4.125c0-2.234 1.258-4.656 2.59-6.902.348-.586.702-1.162 1.05-1.728.8-1.304 1.567-2.553 2.144-3.738H3.39c-.823 0-1.886-.193-2.567-1.035A3.647 3.647 0 0 1 0 4.125 4.125 4.125 0 0 1 4.125 0ZM15.75 19.875c0-1.38.476-2.786 1.128-4.15.649-1.358 1.509-2.743 2.343-4.086l.017-.028c.849-1.367 1.669-2.692 2.28-3.972.614-1.285.982-2.457.982-3.514A2.615 2.615 0 0 0 19.875 1.5a2.625 2.625 0 0 0-2.625 2.625c0 .865.421 1.509 1.167 2.009A.75.75 0 0 1 18 7.507H7.812c-.65 1.483-1.624 3.069-2.577 4.619-.334.544-.666 1.083-.98 1.612-1.355 2.287-2.38 4.371-2.38 6.137A2.625 2.625 0 0 0 4.5 22.5h12.193a4.108 4.108 0 0 1-.943-2.625ZM1.5 4.125c-.01.511.163 1.008.487 1.403.254.313.74.479 1.402.479h12.86a3.648 3.648 0 0 1-.499-1.882 4.11 4.11 0 0 1 .943-2.625H4.125A2.625 2.625 0 0 0 1.5 4.125Z"],h:24,w:24}},$a={16:{p:["M4.7 8.73v-1h3.52v5.69c-.78.37-1.95.64-3.59.64C1.11 14.06 0 11.37 0 8.03 0 4.69 1.13 2 4.63 2c1.62 0 2.64.33 3.28.66v1.05c-1.22-.5-2-.73-3.28-.73-2.57 0-3.48 2.21-3.48 5.06 0 2.85.91 5.05 3.47 5.05.89 0 1.98-.07 2.53-.34V8.73Zm10.98.69h.03c2.22.2 2.75.95 2.75 2.23 0 1.21-.76 2.41-3.14 2.41-.75 0-1.83-.19-2.33-.39v-.94c.47.17 1.22.36 2.33.36 1.62 0 2.06-.69 2.06-1.42 0-.71-.22-1.21-1.77-1.34-2.26-.2-2.73-1-2.73-2.08 0-1.11.72-2.31 2.92-2.31.73 0 1.56.09 2.25.39v.94c-.61-.2-1.22-.36-2.27-.36-1.55 0-1.88.57-1.88 1.34 0 .69.28 1.04 1.78 1.17Zm8.58-3.33v.85h-2.42v4.87c0 .95.53 1.34 1.5 1.34.2 0 .42 0 .61-.03v.89c-.17.03-.5.05-.69.05-1.31 0-2.5-.6-2.5-2.13v-5H19.2v-.48l1.56-.44V3.9l1.08-.31v2.5h2.42Zm-13.17-.03v6.41c0 .54.19.7.67.7v.89c-1.14 0-1.72-.47-1.72-1.72V6.06h1.05Zm.25-2.33c0 .44-.34.78-.78.78a.76.76 0 0 1-.77-.78c0-.44.32-.78.77-.78s.78.34.78.78Z"],h:16,w:25}},Wa={16:{p:["M8.81 7.35v5.74c0 .04-.01.11-.06.13 0 0-1.25.89-3.31.89-2.49 0-5.44-.78-5.44-5.92S2.58 1.99 5.1 2c2.18 0 3.06.49 3.2.58.04.05.06.09.06.14L7.94 4.5c0 .09-.09.2-.2.17-.36-.11-.9-.33-2.17-.33-1.47 0-3.05.42-3.05 3.73s1.5 3.7 2.58 3.7c.92 0 1.25-.11 1.25-.11v-2.3H4.88c-.11 0-.19-.08-.19-.17V7.35c0-.09.08-.17.19-.17h3.74c.11 0 .19.08.19.17Zm35.85 2.33c0 3.43-1.11 4.41-3.05 4.41-1.64 0-2.52-.83-2.52-.83s-.04.46-.09.52c-.03.06-.08.08-.14.08h-1.48c-.1 0-.19-.08-.19-.17l.02-11.11c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v3.77s.82-.53 2.02-.53l-.01-.02c1.2 0 2.97.45 2.97 3.88ZM27.68 2.43c.09 0 .17.08.17.17v11.11c0 .09-.08.17-.17.17h-2.13c-.09 0-.17-.08-.17-.17l.02-4.75h-3.31v4.75c0 .09-.08.17-.17.17h-2.13c-.08 0-.17-.08-.17-.17V2.6c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v4.09h3.31V2.6c0-.09.08-.17.17-.17Zm8.26 3.64c.11 0 .19.08.19.17l-.02 7.47c0 .09-.06.17-.17.17H34.6c-.07 0-.14-.04-.16-.09-.03-.06-.08-.45-.08-.45s-1.13.77-2.52.77c-1.69 0-2.92-.55-2.92-2.75V6.25c0-.09.08-.17.17-.17h2.14c.09 0 .17.08.17.17V11c0 .75.22 1.09.97 1.09s1.3-.39 1.3-.39V6.26c0-.11.06-.19.17-.19Zm-17.406 5.971h.005a.177.177 0 0 1 .141.179v1.5c0 .07-.03.14-.09.16-.1.05-.74.22-1.27.22-1.16 0-2.86-.25-2.86-2.69V8.13h-1.11c-.09 0-.17-.08-.17-.19V6.58c0-.08.05-.15.13-.17.07-.01 1.16-.28 1.16-.28V3.96c0-.08.05-.13.14-.13h2.16c.09 0 .14.05.14.13v2.11h1.59c.08 0 .16.08.16.17v1.7c0 .11-.07.19-.16.19h-1.59v3.131c0 .47.27.83 1.05.83.247 0 .481-.049.574-.05ZM12.24 6.06c.09 0 .17.08.17.17v7.37c0 .18-.05.27-.25.27h-1.92c-.17 0-.3-.07-.3-.27V6.26c0-.11.08-.2.17-.2Zm29.99 3.78c0-1.81-.73-2.05-1.5-1.97-.6.04-1.08.34-1.08.34v3.52s.49.34 1.22.36c1.03.03 1.36-.34 1.36-2.25ZM11.19 2.68c.75 0 1.36.61 1.36 1.38 0 .77-.61 1.38-1.36 1.38-.77 0-1.38-.61-1.38-1.38 0-.77.61-1.38 1.38-1.38Zm7.34 9.35v.001l.01.01h-.001l-.005-.001v.001c-.009-.001-.015-.011-.024-.011Z"],h:16,w:45}},qa={16:{p:["M1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-8.5C0 2.784.784 2 1.75 2ZM1.5 12.251c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V5.809L8.38 9.397a.75.75 0 0 1-.76 0L1.5 5.809v6.442Zm13-8.181v-.32a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25v.32L8 7.88Z"],h:16,w:16},24:{p:["M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Va={16:{p:["M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"],h:16,w:16}},Ga={16:{p:["M14.85 3c.63 0 1.15.52 1.14 1.15v7.7c0 .63-.51 1.15-1.15 1.15H1.15C.52 13 0 12.48 0 11.84V4.15C0 3.52.52 3 1.15 3ZM9 11V5H7L5.5 7 4 5H2v6h2V8l1.5 1.92L7 8v3Zm2.99.5L14.5 8H13V5h-2v3H9.5Z"],h:16,w:16}},za={16:{p:["M3.25 9a.75.75 0 0 1 .75.75c0 2.142.456 3.828.733 4.653a.122.122 0 0 0 .05.064.212.212 0 0 0 .117.033h1.31c.085 0 .18-.042.258-.152a.45.45 0 0 0 .075-.366A16.743 16.743 0 0 1 6 9.75a.75.75 0 0 1 1.5 0c0 1.588.25 2.926.494 3.85.293 1.113-.504 2.4-1.783 2.4H4.9c-.686 0-1.35-.41-1.589-1.12A16.4 16.4 0 0 1 2.5 9.75.75.75 0 0 1 3.25 9Z","M0 6a4 4 0 0 1 4-4h2.75a.75.75 0 0 1 .75.75v6.5a.75.75 0 0 1-.75.75H4a4 4 0 0 1-4-4Zm4-2.5a2.5 2.5 0 1 0 0 5h2v-5Z","M15.59.082A.75.75 0 0 1 16 .75v10.5a.75.75 0 0 1-1.189.608l-.002-.001h.001l-.014-.01a5.775 5.775 0 0 0-.422-.25 10.63 10.63 0 0 0-1.469-.64C11.576 10.484 9.536 10 6.75 10a.75.75 0 0 1 0-1.5c2.964 0 5.174.516 6.658 1.043.423.151.787.302 1.092.443V2.014c-.305.14-.669.292-1.092.443C11.924 2.984 9.713 3.5 6.75 3.5a.75.75 0 0 1 0-1.5c2.786 0 4.826-.484 6.155-.957.665-.236 1.154-.47 1.47-.64.144-.077.284-.161.421-.25l.014-.01a.75.75 0 0 1 .78-.061Z"],h:16,w:16},24:{p:["M22 1.75v14.5a.75.75 0 0 1-.399.662c-.384.204-.783-.035-1.139-.248l-.003-.002c-.09-.054-.177-.107-.261-.15a15.53 15.53 0 0 0-2-.849c-1.738-.607-4.321-1.223-7.703-1.251a.833.833 0 0 1 .005.088c0 2.279.494 4.279.906 5.547.368 1.131-.438 2.453-1.732 2.453H7.661c-.696 0-1.36-.42-1.6-1.129C5.684 20.255 5 17.811 5 14.75v-.457A5.5 5.5 0 0 1 6.5 3.5h3.75c3.505 0 6.175-.61 7.955-1.21a15.88 15.88 0 0 0 2.002-.82 9.21 9.21 0 0 0 .49-.262c.048-.028.095-.055.142-.085A.751.751 0 0 1 22 1.75ZM10.5 12.912c3.564.029 6.313.678 8.193 1.335.737.258 1.34.517 1.807.74V2.993c-.467.216-1.073.467-1.815.718-1.878.634-4.624 1.26-8.185 1.288ZM6.5 5a4 4 0 0 0 0 8H9V5Zm0 9.75c0 2.847.638 5.123.982 6.141.018.051.074.109.179.109h2.013c.087 0 .179-.043.249-.147a.396.396 0 0 0 .057-.343C9.537 19.148 9 16.986 9 14.5H6.5Z"],h:24,w:24}},ja={16:{p:["M4.75 2.37a6.501 6.501 0 0 0 6.5 11.26.75.75 0 0 1 .75 1.298A7.999 7.999 0 0 1 .989 4.148 8 8 0 0 1 16 7.75v1.5a2.75 2.75 0 0 1-5.072 1.475 3.999 3.999 0 0 1-6.65-4.19A4 4 0 0 1 12 8v1.25a1.25 1.25 0 0 0 2.5 0V7.867a6.5 6.5 0 0 0-9.75-5.496ZM10.5 8a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M20.226 7.25c-2.623-4.542-8.432-6.098-12.974-3.475-4.543 2.622-6.099 8.431-3.477 12.974 2.623 4.542 8.431 6.099 12.974 3.477a.75.75 0 0 1 .75 1.299c-5.26 3.037-11.987 1.235-15.024-4.026C-.562 12.24 1.24 5.512 6.501 2.475 11.76-.562 18.488 1.24 21.525 6.501a10.959 10.959 0 0 1 1.455 4.826c.013.056.02.113.02.173v2.25a3.5 3.5 0 0 1-6.623 1.581 5.5 5.5 0 1 1 1.112-3.682.802.802 0 0 1 .011.129v1.972a2 2 0 1 0 4 0v-1.766a9.456 9.456 0 0 0-1.274-4.733ZM16 12a4 4 0 1 0-8 0 4 4 0 0 0 8 0Z"],h:24,w:24}},Ka={16:{p:["M8 1.5a6.5 6.5 0 1 0 6.016 4.035.75.75 0 0 1 1.388-.57 8 8 0 1 1-4.37-4.37.75.75 0 1 1-.569 1.389A6.473 6.473 0 0 0 8 1.5Zm6.28.22a.75.75 0 0 1 0 1.06l-4.063 4.064a2.5 2.5 0 1 1-1.06-1.06L13.22 1.72a.75.75 0 0 1 1.06 0ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z"],h:16,w:16}},Ya={16:{p:["M7.75 0a.75.75 0 0 1 .75.75V3h3.634c.414 0 .814.147 1.13.414l2.07 1.75a1.75 1.75 0 0 1 0 2.672l-2.07 1.75a1.75 1.75 0 0 1-1.13.414H8.5v5.25a.75.75 0 0 1-1.5 0V10H2.75A1.75 1.75 0 0 1 1 8.25v-3.5C1 3.784 1.784 3 2.75 3H7V.75A.75.75 0 0 1 7.75 0Zm4.384 8.5a.25.25 0 0 0 .161-.06l2.07-1.75a.248.248 0 0 0 0-.38l-2.07-1.75a.25.25 0 0 0-.161-.06H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h9.384Z"],h:16,w:16},24:{p:["M11.75 1a.75.75 0 0 1 .75.75V4h6.532c.42 0 .826.15 1.143.425l3.187 2.75a1.75 1.75 0 0 1 0 2.65l-3.187 2.75a1.75 1.75 0 0 1-1.143.425H12.5v9.25a.75.75 0 0 1-1.5 0V13H3.75A1.75 1.75 0 0 1 2 11.25v-5.5C2 4.783 2.784 4 3.75 4H11V1.75a.75.75 0 0 1 .75-.75Zm7.282 4.5H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h15.282c.06 0 .118-.021.163-.06l3.188-2.75a.248.248 0 0 0 0-.38l-3.188-2.75a.249.249 0 0 0-.163-.06Z"],h:24,w:24}},Xa={16:{p:["M15.547 3.061A.75.75 0 0 1 16 3.75v8.5a.751.751 0 0 1-1.265.545l-4.5-4.25a.75.75 0 0 1 0-1.09l4.5-4.25a.75.75 0 0 1 .812-.144ZM0 12.25v-8.5a.751.751 0 0 1 1.265-.545l4.5 4.25a.75.75 0 0 1 0 1.09l-4.5 4.25A.75.75 0 0 1 0 12.25Zm1.5-6.76v5.02L4.158 8ZM11.842 8l2.658 2.51V5.49ZM8 4a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 4Zm.75-2.25v.5a.75.75 0 0 1-1.5 0v-.5a.75.75 0 0 1 1.5 0Zm0 6v.5a.75.75 0 0 1-1.5 0v-.5a.75.75 0 0 1 1.5 0ZM8 10a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 10Zm0 3a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 13Z"],h:16,w:16},24:{p:["M21.553 6.064A.75.75 0 0 1 22 6.75v10.5a.75.75 0 0 1-1.256.554l-5.75-5.25a.748.748 0 0 1 0-1.108l5.75-5.25a.75.75 0 0 1 .809-.132ZM2.447 17.936A.75.75 0 0 1 2 17.25V6.75a.75.75 0 0 1 1.256-.554l5.75 5.25a.748.748 0 0 1 0 1.108l-5.75 5.25a.75.75 0 0 1-.809.132ZM7.387 12 3.5 8.45v7.1L7.388 12Zm9.226 0 3.887 3.55v-7.1L16.612 12ZM12 2.75a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 4a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 8a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 4a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0-8a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Qa={16:{p:["M9.598 1.591a.749.749 0 0 1 .785-.175 7.001 7.001 0 1 1-8.967 8.967.75.75 0 0 1 .961-.96 5.5 5.5 0 0 0 7.046-7.046.75.75 0 0 1 .175-.786Zm1.616 1.945a7 7 0 0 1-7.678 7.678 5.499 5.499 0 1 0 7.678-7.678Z"],h:16,w:16},24:{p:["M14.768 3.96v.001l-.002-.005a9.08 9.08 0 0 0-.218-.779c-.13-.394.21-.8.602-.67.29.096.575.205.855.328l.01.005A10.002 10.002 0 0 1 12 22a10.002 10.002 0 0 1-9.162-5.985l-.004-.01a9.722 9.722 0 0 1-.329-.855c-.13-.392.277-.732.67-.602.257.084.517.157.78.218l.004.002A9 9 0 0 0 14.999 6a9.09 9.09 0 0 0-.231-2.04ZM16.5 6c0 5.799-4.701 10.5-10.5 10.5-.426 0-.847-.026-1.26-.075A8.5 8.5 0 1 0 16.425 4.74c.05.413.075.833.075 1.259Z"],h:24,w:24}},Ja={16:{p:["M7.693 1.066a.747.747 0 0 1 .614 0l7.25 3.25a.75.75 0 0 1 0 1.368L13 6.831v2.794c0 1.024-.81 1.749-1.66 2.173-.893.447-2.075.702-3.34.702-.278 0-.55-.012-.816-.036a.75.75 0 0 1 .133-1.494c.22.02.45.03.683.03 1.082 0 2.025-.221 2.67-.543.69-.345.83-.682.83-.832V7.503L8.307 8.934a.747.747 0 0 1-.614 0L4 7.28v1.663c.296.105.575.275.812.512.438.438.688 1.059.688 1.796v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75v-3c0-.737.25-1.358.688-1.796.237-.237.516-.407.812-.512V6.606L.443 5.684a.75.75 0 0 1 0-1.368ZM2.583 5 8 7.428 13.416 5 8 2.572ZM2.5 11.25v2.25H4v-2.25c0-.388-.125-.611-.25-.735a.697.697 0 0 0-.5-.203.707.707 0 0 0-.5.203c-.125.124-.25.347-.25.735Z"],h:16,w:16},24:{p:["M12.292 2.06v-.001l11.25 4.75a.749.749 0 0 1 0 1.382L19 10.108V15a.75.75 0 0 1-.11.391h-.001a2.84 2.84 0 0 1-.392.482c-.249.256-.625.58-1.163.896-1.08.638-2.776 1.23-5.334 1.23-.673 0-1.286-.041-1.846-.113a.75.75 0 0 1 .192-1.487c.492.063 1.042.1 1.654.1 2.317 0 3.746-.533 4.572-1.021.31-.178.596-.397.849-.65l.079-.085V10.74l-5.208 2.2a.75.75 0 0 1-.584 0L5.75 10.424v3.17c.502.129.96.391 1.327.758.579.578.923 1.41.923 2.428v4.5a.761.761 0 0 1-.345.634 2.157 2.157 0 0 1-.21.117 3.923 3.923 0 0 1-.52.213A6.121 6.121 0 0 1 5 22.532a6.092 6.092 0 0 1-1.925-.288 4.065 4.065 0 0 1-.52-.213 1.816 1.816 0 0 1-.22-.124.757.757 0 0 1-.335-.624v-4.5c0-1.02.344-1.85.923-2.43a2.904 2.904 0 0 1 1.327-.757V9.793L.458 8.19a.75.75 0 0 1 0-1.38l11.25-4.75a.75.75 0 0 1 .584 0ZM12 11.436 21.322 7.5 12 3.564 2.678 7.5ZM5 15c-.377 0-.745.141-1.017.413-.265.265-.483.7-.483 1.368v4.022c.299.105.797.228 1.5.228s1.201-.123 1.5-.228V16.78c0-.669-.218-1.103-.483-1.368A1.433 1.433 0 0 0 5 15Z"],h:24,w:24}},el={16:{p:["M7.47 10.78a.749.749 0 0 0 1.06 0l3.75-3.75a.749.749 0 1 0-1.06-1.06L8.75 8.439V1.75a.75.75 0 0 0-1.5 0v6.689L4.78 5.97a.749.749 0 1 0-1.06 1.06l3.75 3.75ZM3.75 13a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"],h:16,w:16},24:{p:["M4 21.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1-.75-.75ZM5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"],h:24,w:24}},tl={16:{p:["m10.78 8.53-3.75 3.75a.749.749 0 1 1-1.06-1.06l2.469-2.47H1.75a.75.75 0 0 1 0-1.5h6.689L5.97 4.78a.749.749 0 1 1 1.06-1.06l3.75 3.75a.749.749 0 0 1 0 1.06ZM13 12.25v-8.5a.75.75 0 0 1 1.5 0v8.5a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M11.22 5.22a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 0 1 0 1.06l-6.25 6.25a.749.749 0 1 1-1.06-1.06l4.969-4.97H1.75a.75.75 0 0 1 0-1.5h14.439L11.22 6.28a.749.749 0 0 1 0-1.06Zm10.03-1.47a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},nl={16:{p:["M5.22 7.47a.749.749 0 0 0 0 1.06l3.75 3.75a.749.749 0 1 0 1.06-1.06L7.561 8.75h6.689a.75.75 0 0 0 0-1.5H7.561l2.469-2.47a.749.749 0 1 0-1.06-1.06L5.22 7.47ZM3 3.75a.75.75 0 0 0-1.5 0v8.5a.75.75 0 0 0 1.5 0v-8.5Z"],h:16,w:16},24:{p:["M12.78 18.78a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06l6.25-6.25a.749.749 0 1 1 1.06 1.06l-4.969 4.97H22.25a.75.75 0 0 1 0 1.5H7.811l4.969 4.97a.749.749 0 0 1 0 1.06ZM2.75 3.75a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},rl={16:{p:["M3 2.25a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 2.25Zm5.53 2.97 3.75 3.75a.749.749 0 1 1-1.06 1.06L8.75 7.561v6.689a.75.75 0 0 1-1.5 0V7.561L4.78 10.03a.749.749 0 1 1-1.06-1.06l3.75-3.75a.749.749 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M4.75 3.5a.75.75 0 0 1 0-1.5h14.5a.75.75 0 0 1 0 1.5H4.75Zm.47 9.47a.749.749 0 1 0 1.06 1.06l4.97-4.969V21.25a.75.75 0 0 0 1.5 0V9.061l4.97 4.969a.749.749 0 1 0 1.06-1.06l-6.25-6.25a.749.749 0 0 0-1.06 0l-6.25 6.25Z"],h:24,w:24}},il={16:{p:["M5.75 7.5h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5Zm0 5h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5Zm-4-10h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm10.314-3.082L11.07 2.417A.25.25 0 0 1 11.256 2h4.488a.25.25 0 0 1 .186.417l-2.244 2.5a.25.25 0 0 1-.372 0Z"],h:16,w:16},24:{p:["M8.75 11.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm-5-12h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM19.309 7.918l-2.245-2.501A.25.25 0 0 1 17.25 5h4.49a.25.25 0 0 1 .185.417l-2.244 2.5a.25.25 0 0 1-.372 0Z"],h:24,w:24}},sl={16:{p:["M8 2.75v10.5a.751.751 0 0 1-1.238.57L3.473 11H1.75A1.75 1.75 0 0 1 0 9.25v-2.5C0 5.784.784 5 1.75 5h1.722l3.29-2.82A.75.75 0 0 1 8 2.75Zm3.28 2.47L13 6.94l1.72-1.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L14.06 8l1.72 1.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L13 9.06l-1.72 1.72a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L11.94 8l-1.72-1.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-7.042 1.1a.752.752 0 0 1-.488.18h-2a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2c.179 0 .352.064.488.18L6.5 11.62V4.38Z"],h:16,w:16},24:{p:["M12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805A.75.75 0 0 1 12 3.75ZM6.255 9.305a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86V5.445ZM16.28 8.22a.75.75 0 1 0-1.06 1.06L17.94 12l-2.72 2.72a.75.75 0 1 0 1.06 1.06L19 13.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L20.06 12l2.72-2.72a.75.75 0 0 0-1.06-1.06L19 10.94l-2.72-2.72Z"],h:24,w:24}},ol={16:{p:["M4.25 7.25a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Z","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm15.75.75H5.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},al={12:{p:["M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm3 5H3v2h6Z"],h:12,w:12}},ll={16:{p:["M8.5.75a.75.75 0 0 0-1.5 0v5.19L4.391 3.33a.75.75 0 1 0-1.06 1.061L5.939 7H.75a.75.75 0 0 0 0 1.5h5.19l-2.61 2.609a.75.75 0 1 0 1.061 1.06L7 9.561v5.189a.75.75 0 0 0 1.5 0V9.56l2.609 2.61a.75.75 0 1 0 1.06-1.061L9.561 8.5h5.189a.75.75 0 0 0 0-1.5H9.56l2.61-2.609a.75.75 0 0 0-1.061-1.06L8.5 5.939V.75Z"],h:16,w:16},24:{p:["M12.5 1.25a.75.75 0 0 0-1.5 0v8.69L6.447 5.385a.75.75 0 1 0-1.061 1.06L9.94 11H1.25a.75.75 0 0 0 0 1.5h8.69l-4.554 4.553a.75.75 0 0 0 1.06 1.061L11 13.561v8.689a.75.75 0 0 0 1.5 0v-8.69l4.553 4.554a.75.75 0 0 0 1.061-1.06L13.561 12.5h8.689a.75.75 0 0 0 0-1.5h-8.69l4.554-4.553a.75.75 0 1 0-1.06-1.061L12.5 9.939V1.25Z"],h:24,w:24}},cl={16:{p:["M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25ZM3.5 6.25a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Zm.75 2.25h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z","M5 8.75A.75.75 0 0 1 5.75 8h11.5a.75.75 0 0 1 0 1.5H5.75A.75.75 0 0 1 5 8.75Zm0 4a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},ul={16:{p:["M9 4.75A.75.75 0 0 1 9.75 4h4a.75.75 0 0 1 .53 1.28l-1.89 1.892c.312.076.604.18.867.319.742.391 1.244 1.063 1.244 2.005 0 .653-.231 1.208-.629 1.627-.386.408-.894.653-1.408.777-1.01.243-2.225.063-3.124-.527a.751.751 0 0 1 .822-1.254c.534.35 1.32.474 1.951.322.306-.073.53-.201.67-.349.129-.136.218-.32.218-.596 0-.308-.123-.509-.444-.678-.373-.197-.98-.318-1.806-.318a.75.75 0 0 1-.53-1.28l1.72-1.72H9.75A.75.75 0 0 1 9 4.75Zm-3.587 5.763c-.35-.05-.77.113-.983.572a.75.75 0 1 1-1.36-.632c.508-1.094 1.589-1.565 2.558-1.425 1 .145 1.872.945 1.872 2.222 0 1.433-1.088 2.192-1.79 2.681-.308.216-.571.397-.772.573H7a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75c0-.69.3-1.211.67-1.61.348-.372.8-.676 1.15-.92.8-.56 1.18-.904 1.18-1.474 0-.473-.267-.69-.587-.737ZM5.604.089A.75.75 0 0 1 6 .75v4.77h.711a.75.75 0 0 1 0 1.5H3.759a.75.75 0 0 1 0-1.5H4.5V2.15l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037Z"],h:16,w:16},24:{p:["M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"],h:24,w:24}},hl={16:{p:["M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M6.25 12a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM5.5 9.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM6.25 5a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM9 12.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Zm.75-4.25a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM9 5.75A.75.75 0 0 1 9.75 5h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 9 5.75ZM13.25 12a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-.75-2.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM13.25 5a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z","M2 20V3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v17c0 .173-.022.34-.063.5H20a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.2-.4l-.5-.375a.75.75 0 0 1 .9-1.2l.5.375c.504.378.8.97.8 1.6v8a2 2 0 0 1-2 2h-3.562a.767.767 0 0 1-.166-.018c-.089.012-.18.018-.272.018h-3.75a.75.75 0 0 1-.75-.75V19h-3v2.25a.75.75 0 0 1-.75.75H4a2 2 0 0 1-2-2Zm2 .5h3v-2.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 .75.75v2.25h3a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H4a.5.5 0 0 0-.5.5v17a.5.5 0 0 0 .5.5Z"],h:24,w:24}},pl={16:{p:["m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z"],h:16,w:16},24:{p:["M12.876.64V.639l8.25 4.763c.541.313.875.89.875 1.515v9.525a1.75 1.75 0 0 1-.875 1.516l-8.25 4.762a1.748 1.748 0 0 1-1.75 0l-8.25-4.763a1.75 1.75 0 0 1-.875-1.515V6.917c0-.625.334-1.202.875-1.515L11.126.64a1.748 1.748 0 0 1 1.75 0Zm-1 1.298L4.251 6.34l7.75 4.474 7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0Zm.875 19.123 7.625-4.402a.25.25 0 0 0 .125-.216V7.639l-7.75 4.474ZM3.501 7.64v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z"],h:24,w:24}},dl={16:{p:["M6.122.392a1.75 1.75 0 0 1 1.756 0l5.25 3.045c.54.313.872.89.872 1.514V7.25a.75.75 0 0 1-1.5 0V5.677L7.75 8.432v6.384a1 1 0 0 1-1.502.865L.872 12.563A1.75 1.75 0 0 1 0 11.049V4.951c0-.624.332-1.2.872-1.514ZM7.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685L7 7.133l4.755-2.758ZM1.5 11.049a.25.25 0 0 0 .125.216l4.625 2.683V8.432L1.5 5.677Zm11.672-.282L11.999 12h3.251a.75.75 0 0 1 0 1.5h-3.251l1.173 1.233a.75.75 0 1 1-1.087 1.034l-2.378-2.5a.75.75 0 0 1 0-1.034l2.378-2.5a.75.75 0 0 1 1.087 1.034Z"],h:16,w:16},24:{p:["M9.126.64a1.748 1.748 0 0 1 1.75 0l8.25 4.762c.103.06.199.128.286.206a.75.75 0 0 1 .554.96c.023.113.035.23.035.35v3.332a.75.75 0 0 1-1.5 0V7.64l-7.75 4.474V22.36a.75.75 0 0 1-1.125.65l-8.75-5.052a1.75 1.75 0 0 1-.875-1.515V6.917c0-.119.012-.236.035-.35a.749.749 0 0 1 .554-.96c.088-.078.184-.146.286-.205L9.126.639Zm.875 10.173v.001l7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0L2.251 6.34Zm-8.5-3.175v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z","m16.617 17.5 2.895-2.702a.75.75 0 0 0-1.024-1.096l-4.285 4a.75.75 0 0 0 0 1.096l4.285 4a.75.75 0 1 0 1.024-1.096L16.617 19h6.633a.75.75 0 0 0 0-1.5h-6.633Z"],h:24,w:24}},ml={16:{p:["M6.122.392a1.75 1.75 0 0 1 1.756 0l5.25 3.045c.54.313.872.89.872 1.514V7.25a.75.75 0 0 1-1.5 0V5.677L7.75 8.432v6.384a1 1 0 0 1-1.502.865L.872 12.563A1.75 1.75 0 0 1 0 11.049V4.951c0-.624.332-1.2.872-1.514ZM7.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685L7 7.133l4.755-2.758ZM1.5 11.049a.25.25 0 0 0 .125.216l4.625 2.683V8.432L1.5 5.677Zm10.828 3.684 1.173-1.233H10.25a.75.75 0 0 1 0-1.5h3.251l-1.173-1.233a.75.75 0 1 1 1.087-1.034l2.378 2.5a.75.75 0 0 1 0 1.034l-2.378 2.5a.75.75 0 0 1-1.087-1.034Z"],h:16,w:16},24:{p:["M9.126.64a1.748 1.748 0 0 1 1.75 0l8.25 4.762c.103.06.199.128.286.206a.75.75 0 0 1 .554.96c.023.113.035.23.035.35v3.332a.75.75 0 0 1-1.5 0V7.64l-7.75 4.474V22.36a.75.75 0 0 1-1.125.65l-8.75-5.052a1.75 1.75 0 0 1-.875-1.515V6.917c0-.119.012-.236.035-.35a.749.749 0 0 1 .554-.96c.088-.078.184-.146.286-.205L9.126.639Zm.875 10.173v.001l7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0L2.251 6.34Zm-8.5-3.175v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z","m21.347 17.5-2.894-2.702a.75.75 0 1 1 1.023-1.096l4.286 4a.75.75 0 0 1 0 1.096l-4.286 4a.75.75 0 1 1-1.023-1.096L21.347 19h-6.633a.75.75 0 0 1 0-1.5h6.633Z"],h:24,w:24}},fl={16:{p:["M11.134 1.535c.7-.509 1.416-.942 2.076-1.155.649-.21 1.463-.267 2.069.34.603.601.568 1.411.368 2.07-.202.668-.624 1.39-1.125 2.096-1.011 1.424-2.496 2.987-3.775 4.249-1.098 1.084-2.132 1.839-3.04 2.3a3.744 3.744 0 0 1-1.055 3.217c-.431.431-1.065.691-1.657.861-.614.177-1.294.287-1.914.357A21.151 21.151 0 0 1 .797 16H.743l.007-.75H.749L.742 16a.75.75 0 0 1-.743-.742l.743-.008-.742.007v-.054a21.25 21.25 0 0 1 .13-2.284c.067-.647.187-1.287.358-1.914.17-.591.43-1.226.86-1.657a3.746 3.746 0 0 1 3.227-1.054c.466-.893 1.225-1.907 2.314-2.982 1.271-1.255 2.833-2.75 4.245-3.777ZM1.62 13.089c-.051.464-.086.929-.104 1.395.466-.018.932-.053 1.396-.104a10.511 10.511 0 0 0 1.668-.309c.526-.151.856-.325 1.011-.48a2.25 2.25 0 1 0-3.182-3.182c-.155.155-.329.485-.48 1.01a10.515 10.515 0 0 0-.309 1.67Zm10.396-10.34c-1.224.89-2.605 2.189-3.822 3.384l1.718 1.718c1.21-1.205 2.51-2.597 3.387-3.833.47-.662.78-1.227.912-1.662.134-.444.032-.551.009-.575h-.001V1.78c-.014-.014-.113-.113-.548.027-.432.14-.995.462-1.655.942Zm-4.832 7.266-.001.001a9.859 9.859 0 0 0 1.63-1.142L7.155 7.216a9.7 9.7 0 0 0-1.161 1.607c.482.302.889.71 1.19 1.192Z"],h:16,w:16}},gl={16:{p:["M.989 8 .064 2.68a1.342 1.342 0 0 1 1.85-1.462l13.402 5.744a1.13 1.13 0 0 1 0 2.076L1.913 14.782a1.343 1.343 0 0 1-1.85-1.463L.99 8Zm.603-5.288L2.38 7.25h4.87a.75.75 0 0 1 0 1.5H2.38l-.788 4.538L13.929 8Z"],h:16,w:16},24:{p:["M1.513 1.96a1.374 1.374 0 0 1 1.499-.21l19.335 9.215a1.147 1.147 0 0 1 0 2.07L3.012 22.25a1.374 1.374 0 0 1-1.947-1.46L2.49 12 1.065 3.21a1.375 1.375 0 0 1 .448-1.25Zm2.375 10.79-1.304 8.042L21.031 12 2.584 3.208l1.304 8.042h7.362a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},yl={16:{p:["M12.212 3.02a1.753 1.753 0 0 0-2.478.003l-5.83 5.83a3.007 3.007 0 0 0-.88 2.127c0 .795.315 1.551.88 2.116.567.567 1.333.89 2.126.89.79 0 1.548-.321 2.116-.89l5.48-5.48a.75.75 0 0 1 1.061 1.06l-5.48 5.48a4.492 4.492 0 0 1-3.177 1.33c-1.2 0-2.345-.487-3.187-1.33a4.483 4.483 0 0 1-1.32-3.177c0-1.195.475-2.341 1.32-3.186l5.83-5.83a3.25 3.25 0 0 1 5.553 2.297c0 .863-.343 1.691-.953 2.301L7.439 12.39c-.375.377-.884.59-1.416.593a1.998 1.998 0 0 1-1.412-.593 1.992 1.992 0 0 1 0-2.828l5.48-5.48a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-5.48 5.48a.492.492 0 0 0 0 .707.499.499 0 0 0 .352.154.51.51 0 0 0 .356-.154l5.833-5.827a1.755 1.755 0 0 0 0-2.481Z"],h:16,w:16},24:{p:["M19.187 3.588a2.75 2.75 0 0 0-3.889 0L5.575 13.31a4.5 4.5 0 0 0 6.364 6.364l8.662-8.662a.75.75 0 0 1 1.061 1.06L13 20.735a6 6 0 0 1-8.485-8.485l9.723-9.723a4.247 4.247 0 0 1 4.124-1.139 4.247 4.247 0 0 1 3.025 3.025 4.247 4.247 0 0 1-1.139 4.124l-9.193 9.193a2.64 2.64 0 0 1-1.858.779 2.626 2.626 0 0 1-1.854-.779c-.196-.196-.338-.47-.43-.726a2.822 2.822 0 0 1-.168-.946c0-.7.284-1.373.775-1.864l8.132-8.131a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-8.131 8.132a1.148 1.148 0 0 0-.336.803c.003.204.053.405.146.587.01.018.018.028.02.032.22.215.501.332.786.332.29 0 .58-.121.798-.34l9.192-9.192a2.75 2.75 0 0 0 0-3.89Z"],h:24,w:24}},wl={16:{p:["M2.743 4.757a3.757 3.757 0 1 1 5.851 3.119 5.991 5.991 0 0 1 2.15 1.383c.17.17.257.405.258.646.003.598.001 1.197 0 1.795L11 12.778v.721a.5.5 0 0 1-.5.5H1.221a.749.749 0 0 1-.714-.784 6.004 6.004 0 0 1 3.899-5.339 3.754 3.754 0 0 1-1.663-3.119Z","M15.75 6.875c0 .874-.448 1.643-1.127 2.09a.265.265 0 0 0-.123.22v.59c0 .067-.026.13-.073.177l-.356.356a.125.125 0 0 0 0 .177l.356.356c.047.047.073.11.073.176v.231c0 .067-.026.13-.073.177l-.356.356a.125.125 0 0 0 0 .177l.356.356c.047.047.073.11.073.177v.287a.247.247 0 0 1-.065.168l-.8.88a.52.52 0 0 1-.77 0l-.8-.88a.247.247 0 0 1-.065-.168V9.185a.264.264 0 0 0-.123-.22 2.5 2.5 0 1 1 3.873-2.09ZM14 6.5a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M9.496 2a5.25 5.25 0 0 0-2.519 9.857A9.006 9.006 0 0 0 .5 20.228a.751.751 0 0 0 .728.772h5.257c3.338.001 6.677.002 10.015 0a.5.5 0 0 0 .5-.5v-4.669a.95.95 0 0 0-.171-.551 9.02 9.02 0 0 0-4.814-3.423A5.25 5.25 0 0 0 9.496 2Z","M23.625 10.313c0 1.31-.672 2.464-1.691 3.134a.398.398 0 0 0-.184.33v.886a.372.372 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534c.071.07.11.166.11.265v.347a.374.374 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534a.37.37 0 0 1 .11.265v.431a.379.379 0 0 1-.097.253l-1.2 1.319a.781.781 0 0 1-1.156 0l-1.2-1.319a.379.379 0 0 1-.097-.253v-5.39a.398.398 0 0 0-.184-.33 3.75 3.75 0 1 1 5.809-3.134ZM21 9.75a1.125 1.125 0 1 0-2.25 0 1.125 1.125 0 0 0 2.25 0Z"],h:24,w:24}},bl={16:{p:["M3.626 3.533a.249.249 0 0 0-.126.217v9.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-9.5a.249.249 0 0 0-.126-.217.75.75 0 0 1 .752-1.298c.541.313.874.89.874 1.515v9.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-9.5c0-.625.333-1.202.874-1.515a.75.75 0 0 1 .752 1.298ZM5.75 1h4.5a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 4.75v-3A.75.75 0 0 1 5.75 1Zm.75 3h3V2.5h-3Z"],h:16,w:16},24:{p:["M5.962 2.513a.75.75 0 0 1-.475.949l-.816.272a.25.25 0 0 0-.171.237V21.25c0 .138.112.25.25.25h14.5a.25.25 0 0 0 .25-.25V3.97a.25.25 0 0 0-.17-.236l-.817-.272a.75.75 0 0 1 .474-1.424l.816.273A1.751 1.751 0 0 1 21 3.97v17.28A1.75 1.75 0 0 1 19.25 23H4.75A1.75 1.75 0 0 1 3 21.25V3.97a1.75 1.75 0 0 1 1.197-1.66l.816-.272a.75.75 0 0 1 .949.475Z","M7 1.75C7 .784 7.784 0 8.75 0h6.5C16.216 0 17 .784 17 1.75v1.5A1.75 1.75 0 0 1 15.25 5h-6.5A1.75 1.75 0 0 1 7 3.25Zm1.75-.25a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},vl={16:{p:["M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"],h:16,w:16},24:{p:["M17.263 2.177a1.75 1.75 0 0 1 2.474 0l2.586 2.586a1.75 1.75 0 0 1 0 2.474L19.53 10.03l-.012.013L8.69 20.378a1.753 1.753 0 0 1-.699.409l-5.523 1.68a.748.748 0 0 1-.747-.188.748.748 0 0 1-.188-.747l1.673-5.5a1.75 1.75 0 0 1 .466-.756L14.476 4.963ZM4.708 16.361a.26.26 0 0 0-.067.108l-1.264 4.154 4.177-1.271a.253.253 0 0 0 .1-.059l10.273-9.806-2.94-2.939-10.279 9.813ZM19 8.44l2.263-2.262a.25.25 0 0 0 0-.354l-2.586-2.586a.25.25 0 0 0-.354 0L16.061 5.5Z"],h:24,w:24}},Cl={16:{p:["M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"],h:16,w:16},24:{p:["M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"],h:24,w:24}},Sl={16:{p:["M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M12 2.5a5.5 5.5 0 0 1 3.096 10.047 9.005 9.005 0 0 1 5.9 8.181.75.75 0 1 1-1.499.044 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.5-.045 9.005 9.005 0 0 1 5.9-8.18A5.5 5.5 0 0 1 12 2.5ZM8 8a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"],h:24,w:24}},El={16:{p:["M7.9 8.548h-.001a5.528 5.528 0 0 1 3.1 4.659.75.75 0 1 1-1.498.086A4.01 4.01 0 0 0 5.5 9.5a4.01 4.01 0 0 0-4.001 3.793.75.75 0 1 1-1.498-.085 5.527 5.527 0 0 1 3.1-4.66 3.5 3.5 0 1 1 4.799 0ZM13.25 0a.75.75 0 0 1 .75.75V2h1.25a.75.75 0 0 1 0 1.5H14v1.25a.75.75 0 0 1-1.5 0V3.5h-1.25a.75.75 0 0 1 0-1.5h1.25V.75a.75.75 0 0 1 .75-.75ZM5.5 4a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 4Z"],h:16,w:16},24:{p:["M4 9.5a5 5 0 1 1 7.916 4.062 7.973 7.973 0 0 1 5.018 7.166.75.75 0 1 1-1.499.044 6.469 6.469 0 0 0-12.932 0 .75.75 0 0 1-1.499-.044 7.972 7.972 0 0 1 5.059-7.181A4.994 4.994 0 0 1 4 9.5ZM9 6a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm10.25-5a.75.75 0 0 1 .75.75V4h2.25a.75.75 0 0 1 0 1.5H20v2.25a.75.75 0 0 1-1.5 0V5.5h-2.25a.75.75 0 0 1 0-1.5h2.25V1.75a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},kl={16:{p:["M4.243 4.757a3.757 3.757 0 1 1 5.851 3.119 6.006 6.006 0 0 1 3.9 5.339.75.75 0 0 1-.715.784H2.721a.75.75 0 0 1-.714-.784 6.006 6.006 0 0 1 3.9-5.34 3.753 3.753 0 0 1-1.664-3.118Z"],h:16,w:16},24:{p:["M12 2.5a5.25 5.25 0 0 0-2.519 9.857 9.005 9.005 0 0 0-6.477 8.37.75.75 0 0 0 .727.773H20.27a.75.75 0 0 0 .727-.772 9.005 9.005 0 0 0-6.477-8.37A5.25 5.25 0 0 0 12 2.5Z"],h:24,w:24}},Rl={16:{p:["m11.294.984 3.722 3.722a1.75 1.75 0 0 1-.504 2.826l-1.327.613a3.089 3.089 0 0 0-1.707 2.084l-.584 2.454c-.317 1.332-1.972 1.8-2.94.832L5.75 11.311 1.78 15.28a.749.749 0 1 1-1.06-1.06l3.969-3.97-2.204-2.204c-.968-.968-.5-2.623.832-2.94l2.454-.584a3.08 3.08 0 0 0 2.084-1.707l.613-1.327a1.75 1.75 0 0 1 2.826-.504ZM6.283 9.723l2.732 2.731a.25.25 0 0 0 .42-.119l.584-2.454a4.586 4.586 0 0 1 2.537-3.098l1.328-.613a.25.25 0 0 0 .072-.404l-3.722-3.722a.25.25 0 0 0-.404.072l-.613 1.328a4.584 4.584 0 0 1-3.098 2.537l-2.454.584a.25.25 0 0 0-.119.42l2.731 2.732Z"],h:16,w:16},24:{p:["m16.114 1.553 6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.63.633a5.67 5.67 0 0 0-3.395 3.725l-1.131 3.959a1.75 1.75 0 0 1-2.92.757L9 16.061l-5.595 5.594a.749.749 0 1 1-1.06-1.06L7.939 15l-3.768-3.768a1.75 1.75 0 0 1 .757-2.92l3.959-1.131a5.666 5.666 0 0 0 3.725-3.395l.633-1.63a1.75 1.75 0 0 1 2.869-.603ZM5.232 10.171l8.597 8.597a.25.25 0 0 0 .417-.108l1.131-3.959A7.17 7.17 0 0 1 19.67 9.99l1.63-.634a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.634 1.63a7.17 7.17 0 0 1-4.711 4.293L5.34 9.754a.25.25 0 0 0-.108.417Z"],h:24,w:24}},Tl={16:{p:["m1.655.595 13.75 13.75q.22.219.22.53 0 .311-.22.53-.219.22-.53.22-.311 0-.53-.22L.595 1.655q-.22-.219-.22-.53 0-.311.22-.53.219-.22.53-.22.311 0 .53.22ZM.72 14.22l4.5-4.5q.219-.22.53-.22.311 0 .53.22.22.219.22.53 0 .311-.22.53l-4.5 4.5q-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z","m5.424 6.146-1.759.419q-.143.034-.183.175-.04.141.064.245l5.469 5.469q.104.104.245.064.141-.04.175-.183l.359-1.509q.072-.302.337-.465.264-.163.567-.091.302.072.465.337.162.264.09.567l-.359 1.509q-.238.999-1.226 1.278-.988.28-1.714-.446L2.485 8.046q-.726-.726-.446-1.714.279-.988 1.278-1.226l1.759-.419q.303-.072.567.091.265.163.337.465.072.302-.091.567-.163.264-.465.336ZM7.47 3.47q.155-.156.247-.355l.751-1.627Q8.851.659 9.75.498q.899-.16 1.544.486l3.722 3.722q.646.645.486 1.544-.161.899-.99 1.282l-1.627.751q-.199.092-.355.247-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53.344-.345.787-.549l1.627-.751q.118-.055.141-.183.023-.128-.069-.221l-3.722-3.722q-.092-.092-.221-.069-.128.023-.183.141l-.751 1.627q-.204.443-.549.787-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z"],h:16,w:16},24:{p:["M2.345 20.595 8.47 14.47q.219-.22.53-.22.311 0 .53.22.22.219.22.53 0 .311-.22.53l-6.125 6.125q-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z","m16.72 11.97.358-.358a6.738 6.738 0 0 1 2.326-1.518l1.896-.738a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.521 1.34a8.663 8.663 0 0 1-2.243 3.265.75.75 0 0 1-1.01-1.11 7.132 7.132 0 0 0 1.854-2.699l.521-1.34a1.75 1.75 0 0 1 2.869-.603l6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.896.737a5.26 5.26 0 0 0-1.81 1.18l-.358.358a.749.749 0 1 1-1.06-1.06Zm-12.549-.738a1.75 1.75 0 0 1 .757-2.92l3.366-.962.412 1.443-3.366.961a.25.25 0 0 0-.108.417l8.597 8.597a.25.25 0 0 0 .417-.108l.961-3.366 1.443.412-.962 3.366a1.75 1.75 0 0 1-2.92.757Z","m3.405 2.095 18.75 18.75q.22.219.22.53 0 .311-.22.53-.219.22-.53.22-.311 0-.53-.22L2.345 3.155q-.22-.219-.22-.53 0-.311.22-.53.219-.22.53-.22.311 0 .53.22Z"],h:24,w:24}},Al={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.217 0 16 .784 16 1.75v5.5a.75.75 0 0 1-1.5 0V6.5h-8v8h.75a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 0 14.25ZM1.5 6.5v7.75c0 .138.112.25.25.25H5v-8Zm5-1.5h8V1.75a.25.25 0 0 0-.25-.25H6.5ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z","m11.017 9.89-2.882 2.677a.249.249 0 0 0 0 .366l2.882 2.677a.25.25 0 0 0 .421-.183V13.5H12.5A3.5 3.5 0 0 0 16 10a.75.75 0 0 0-1.5 0 2 2 0 0 1-2 2h-1.062v-1.927a.25.25 0 0 0-.421-.183Z"],h:16,w:16},24:{p:["M2 3.75C2 2.783 2.783 2 3.75 2h16.5c.966 0 1.75.783 1.75 1.75V10a.75.75 0 0 1-1.5 0V8.75H8.75V20.5H10a.75.75 0 0 1 0 1.5H3.75A1.75 1.75 0 0 1 2 20.25Zm6.75-.25v3.75H20.5v-3.5a.25.25 0 0 0-.25-.25Zm-1.5 17V8.75H3.5v11.5c0 .138.112.25.25.25ZM3.5 7.25h3.75V3.5h-3.5a.25.25 0 0 0-.25.25Z","M21.25 12.312a.75.75 0 0 1 .75.75v2.626a3.75 3.75 0 0 1-3.75 3.75h-3.502l2.032 2.032a.749.749 0 1 1-1.06 1.06l-3.25-3.25a.749.749 0 0 1 0-1.06l3.25-3.25a.749.749 0 1 1 1.06 1.06l-1.907 1.908h3.377a2.25 2.25 0 0 0 2.25-2.25v-2.626a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},xl={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"],h:16,w:16},24:{p:["M9.5 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842l-5.576 3.584a.5.5 0 0 1-.77-.42Z","M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"],h:24,w:24}},Dl={16:{p:["M4 8H2.5a1 1 0 0 0-1 1v5.25a.75.75 0 0 1-1.5 0V9a2.5 2.5 0 0 1 2.5-2.5H4V5.133a1.75 1.75 0 0 1 1.533-1.737l2.831-.353.76-.913c.332-.4.825-.63 1.344-.63h.782c.966 0 1.75.784 1.75 1.75V4h2.25a.75.75 0 0 1 0 1.5H13v4h2.25a.75.75 0 0 1 0 1.5H13v.75a1.75 1.75 0 0 1-1.75 1.75h-.782c-.519 0-1.012-.23-1.344-.63l-.761-.912-2.83-.354A1.75 1.75 0 0 1 4 9.867Zm6.276-4.91-.95 1.14a.753.753 0 0 1-.483.265l-3.124.39a.25.25 0 0 0-.219.248v4.734c0 .126.094.233.219.249l3.124.39a.752.752 0 0 1 .483.264l.95 1.14a.25.25 0 0 0 .192.09h.782a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-.782a.25.25 0 0 0-.192.09Z"],h:16,w:16},24:{p:["M7 11.5H2.938c-.794 0-1.438.644-1.438 1.437v8.313a.75.75 0 0 1-1.5 0v-8.312A2.939 2.939 0 0 1 2.937 10H7V6.151c0-.897.678-1.648 1.57-1.74l6.055-.626 1.006-1.174A1.752 1.752 0 0 1 16.96 2h1.29c.966 0 1.75.784 1.75 1.75V6h3.25a.75.75 0 0 1 0 1.5H20V14h3.25a.75.75 0 0 1 0 1.5H20v2.25a1.75 1.75 0 0 1-1.75 1.75h-1.29a1.75 1.75 0 0 1-1.329-.611l-1.006-1.174-6.055-.627A1.749 1.749 0 0 1 7 15.348Zm9.77-7.913v.001l-1.201 1.4a.75.75 0 0 1-.492.258l-6.353.657a.25.25 0 0 0-.224.249v9.196a.25.25 0 0 0 .224.249l6.353.657c.191.02.368.112.493.258l1.2 1.401a.252.252 0 0 0 .19.087h1.29a.25.25 0 0 0 .25-.25v-14a.25.25 0 0 0-.25-.25h-1.29a.252.252 0 0 0-.19.087Z"],h:24,w:24}},_l={16:{p:["M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"],h:16,w:16},24:{p:["M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Ml={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M12.75 7.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Pl={16:{p:["M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z"],h:16,w:16},24:{p:["M7.25 6a.75.75 0 0 0-.75.75v7.5a.75.75 0 0 0 1.5 0v-7.5A.75.75 0 0 0 7.25 6ZM12 6a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 6Zm4 .75a.75.75 0 0 1 1.5 0v9.5a.75.75 0 0 1-1.5 0v-9.5Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Il={16:{p:["M4.75 7a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5ZM5 4.75A.75.75 0 0 1 5.75 4h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 5 4.75ZM6.75 10a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M8.75 7a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5ZM7 11.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75ZM9.75 15a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ol={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16h-8.5a.75.75 0 0 1 0-1.5h8.5a.25.25 0 0 0 .25-.25V6.5h-13v1.75a.75.75 0 0 1-1.5 0ZM6.5 5h8V1.75a.25.25 0 0 0-.25-.25H6.5Zm-5 0H5V1.5H1.75a.25.25 0 0 0-.25.25Z","M1.5 13.737a2.25 2.25 0 0 1 2.262-2.25L4 11.49v1.938c0 .218.26.331.42.183l2.883-2.677a.25.25 0 0 0 0-.366L4.42 7.89a.25.25 0 0 0-.42.183V9.99l-.23-.001A3.75 3.75 0 0 0 0 13.738v1.012a.75.75 0 0 0 1.5 0v-1.013Z"],h:16,w:16},24:{p:["M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H9.75a.75.75 0 0 1 0-1.5h10.5a.25.25 0 0 0 .25-.25V9h-17v3A.75.75 0 0 1 2 12ZM9 7.5h11.5V3.75a.25.25 0 0 0-.25-.25H9Zm-5.5 0h4v-4H3.75a.25.25 0 0 0-.25.25Z","m9.308 14.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 16H6.09a2.59 2.59 0 0 0-2.59 2.59v2.66a.75.75 0 0 1-1.5 0v-2.66a4.09 4.09 0 0 1 4.09-4.09h3.218Z"],h:24,w:24}},Nl={16:{p:["M1.5 1.75v1.562a.75.75 0 1 1-1.5 0V1.75C0 .784.784 0 1.75 0h1.562a.75.75 0 1 1 0 1.5H1.75a.25.25 0 0 0-.25.25ZM6.438 0h3.124a.75.75 0 1 1 0 1.5H6.438a.75.75 0 1 1 0-1.5Zm6.25 0h1.562C15.217 0 16 .784 16 1.75v1.562a.75.75 0 1 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-1.562a.75.75 0 1 1 0-1.5ZM1.5 6.438v3.124a.75.75 0 1 1-1.5 0V6.438a.75.75 0 1 1 1.5 0Zm14.5 0v3.124a.75.75 0 1 1-1.5 0V6.438a.75.75 0 1 1 1.5 0Zm-14.5 6.25v1.562c0 .138.112.25.25.25h1.562a.75.75 0 1 1 0 1.5H1.75A1.75 1.75 0 0 1 0 14.25v-1.562a.75.75 0 1 1 1.5 0Zm14.5 0v1.562A1.75 1.75 0 0 1 14.25 16h-1.562a.75.75 0 1 1 0-1.5h1.562a.25.25 0 0 0 .25-.25v-1.562a.75.75 0 1 1 1.5 0ZM6.438 14.5h3.124a.75.75 0 1 1 0 1.5H6.438a.75.75 0 1 1 0-1.5ZM6.5 3v1A.75.75 0 0 1 5 4V3a.75.75 0 0 1 1.5 0ZM2.25 5.75A.75.75 0 0 1 3 5h1a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75Zm4.5 0A.75.75 0 0 1 7.5 5h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm-1 1a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm.75 4v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0Zm3.5-5a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.75 3.5a.25.25 0 0 0-.25.25v2.062a.75.75 0 1 1-1.5 0V3.75C2 2.783 2.783 2 3.75 2h2.062a.75.75 0 1 1 0 1.5Zm13.688-.75a.75.75 0 0 1 .75-.75h2.062c.966 0 1.75.783 1.75 1.75v2.062a.75.75 0 1 1-1.5 0V3.75a.25.25 0 0 0-.25-.25h-2.062a.75.75 0 0 1-.75-.75ZM2.75 17.438a.75.75 0 0 1 .75.75v2.062c0 .138.112.25.25.25h2.062a.75.75 0 1 1 0 1.5H3.75A1.75 1.75 0 0 1 2 20.25v-2.062a.75.75 0 0 1 .75-.75Zm18.5 0a.75.75 0 0 1 .75.75v2.062A1.75 1.75 0 0 1 20.25 22h-2.062a.75.75 0 1 1 0-1.5h2.062a.25.25 0 0 0 .25-.25v-2.062a.75.75 0 0 1 .75-.75Zm-18.5-8.25a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM9.188 2.75a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75Zm0 18.5a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75ZM21.25 9.188a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM3.75 8.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm5.5 0A.75.75 0 0 1 10 7.5h2A.75.75 0 0 1 12 9h-2a.75.75 0 0 1-.75-.75Zm-1-4.5A.75.75 0 0 1 9 4.5v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 5.5A.75.75 0 0 1 9 10v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 4.75a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75ZM14 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ll={16:{p:["M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"],h:16,w:16},24:{p:["M9.002 2.5a.75.75 0 0 1 .691.464l6.302 15.305 2.56-6.301a.75.75 0 0 1 .695-.468h4a.75.75 0 0 1 0 1.5h-3.495l-3.06 7.532a.75.75 0 0 1-1.389.004L8.997 5.21l-3.054 7.329A.75.75 0 0 1 5.25 13H.75a.75.75 0 0 1 0-1.5h4l3.558-8.538a.75.75 0 0 1 .694-.462Z"],h:24,w:24}},Bl={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Fl={16:{p:["M1.75 2.5h10.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Zm4 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2.5 7.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M3 6.25a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.25Zm5 6.063a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75Zm0 5.937a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75ZM3.75 11a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Hl={16:{p:["M7.115.65a1.752 1.752 0 0 1 1.77 0l6.25 3.663c.536.314.865.889.865 1.51v6.427A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25V5.823c0-.621.33-1.196.865-1.51Zm1.011 1.293a.252.252 0 0 0-.252 0l-5.72 3.353L6.468 7.76a2.748 2.748 0 0 1 3.066 0l4.312-2.464-5.719-3.353ZM13.15 12.5 8.772 9.06a1.25 1.25 0 0 0-1.544 0L2.85 12.5Zm1.35-5.85-3.687 2.106 3.687 2.897ZM5.187 8.756 1.5 6.65v5.003Z"],h:16,w:16},24:{p:["M10.89 1.767a2.252 2.252 0 0 1 2.22 0l9.75 5.525A2.25 2.25 0 0 1 24 9.249v9.501A2.25 2.25 0 0 1 21.75 21H2.25A2.25 2.25 0 0 1 0 18.75v-9.5c0-.81.435-1.558 1.14-1.958Zm1.48 1.305a.75.75 0 0 0-.74 0l-9.316 5.28 7.41 4.233a3.75 3.75 0 0 1 4.553 0l7.41-4.234-9.317-5.28ZM20.65 19.5l-7.26-5.704a2.25 2.25 0 0 0-2.78 0L3.35 19.5Zm1.85-9.886-6.95 3.971 6.663 5.236c.089.07.161.159.21.26a.745.745 0 0 0 .077-.331ZM8.45 13.585 1.5 9.614v9.136c0 .119.028.23.076.33a.744.744 0 0 1 .21-.259Z"],h:24,w:24}},Ul={16:{p:["M14.78 6.28a.749.749 0 0 0 0-1.06l-3.5-3.5a.749.749 0 1 0-1.06 1.06L12.439 5H5.251l-.001.007L5.251 5a.8.8 0 0 0-.171.019A4.501 4.501 0 0 0 5.5 14h1.704a.75.75 0 0 0 0-1.5H5.5a3 3 0 1 1 0-6h6.939L10.22 8.72a.749.749 0 1 0 1.06 1.06l3.5-3.5Z"],h:16,w:16}},Zl={16:{p:["M13.94 3.045a.75.75 0 0 0-1.38-.59l-4.5 10.5a.75.75 0 1 0 1.38.59l4.5-10.5ZM5 11.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"],h:16,w:16},24:{p:["M19.564 4.42a.75.75 0 0 0-1.378-.59l-6.75 15.75a.75.75 0 0 0 1.378.59l6.75-15.75ZM7 18.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"],h:24,w:24}},$l={16:{p:["M6.78 1.97a.75.75 0 0 1 0 1.06L3.81 6h6.44A4.75 4.75 0 0 1 15 10.75v2.5a.75.75 0 0 1-1.5 0v-2.5a3.25 3.25 0 0 0-3.25-3.25H3.81l2.97 2.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L1.47 7.28a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M10.53 5.03a.75.75 0 1 0-1.06-1.06l-6.25 6.25a.75.75 0 0 0 0 1.06l6.25 6.25a.75.75 0 1 0 1.06-1.06L5.56 11.5H17a3.248 3.248 0 0 1 3.25 3.248v4.502a.75.75 0 0 0 1.5 0v-4.502A4.748 4.748 0 0 0 17 10H5.56l4.97-4.97Z"],h:24,w:24}},Wl={16:{p:["M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"],h:16,w:16},24:{p:["M3 2.75A2.75 2.75 0 0 1 5.75 0h14.5a.75.75 0 0 1 .75.75v20.5a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h5.25v-4H6A1.5 1.5 0 0 0 4.5 18v.75c0 .716.43 1.334 1.05 1.605a.75.75 0 0 1-.6 1.374A3.251 3.251 0 0 1 3 18.75ZM19.5 1.5H5.75c-.69 0-1.25.56-1.25 1.25v12.651A2.989 2.989 0 0 1 6 15h13.5Z","M7 18.25a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46a.25.25 0 0 1-.397-.2v-5.01Z"],h:24,w:24}},ql={16:{p:["M3.5 0A2.5 2.5 0 0 0 1 2.5v9A2.5 2.5 0 0 0 3.5 14h2.75a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1 0-2h2.75a.75.75 0 0 0 0-1.5H3.5c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8v2.75a.75.75 0 0 0 1.5 0V.75a.75.75 0 0 0-.75-.75H3.5Z","M8 8.058C8 7.023 8.75 6 9.887 6h5.363a.75.75 0 0 1 .75.75v8.5a.75.75 0 0 1-.75.75h-5A2.25 2.25 0 0 1 8 13.75Zm6.5 3.442v-4H9.887c-.07 0-.156.031-.238.125a.663.663 0 0 0-.149.433v3.57c.235-.083.487-.128.75-.128Zm-5 2.25c0 .414.336.75.75.75h4.25V13h-4.25a.75.75 0 0 0-.75.75Z"],h:16,w:16},24:{p:["M4.375.375a2.5 2.5 0 0 0-2.5 2.5v15.25a2.5 2.5 0 0 0 2.5 2.5h5.187a.75.75 0 1 0 0-1.5H4.375a1 1 0 0 1-1-1v-1.75a1 1 0 0 1 1-1h5.687a.75.75 0 1 0 0-1.5H4.375c-.356 0-.694.074-1 .208V2.875a1 1 0 0 1 1-1h13.25v5.25a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75h-14Z","M12.375 12.087c0-1.396 1.005-2.712 2.456-2.712h8.044a.75.75 0 0 1 .75.75v12.75a.75.75 0 0 1-.75.75h-7.5a3 3 0 0 1-3-3Zm9.75 5.538v-6.75h-7.294c-.433 0-.956.441-.956 1.212v5.939a2.989 2.989 0 0 1 1.5-.401Zm-8.25 3a1.5 1.5 0 0 0 1.5 1.5h6.75v-3h-6.75a1.5 1.5 0 0 0-1.5 1.5Z"],h:24,w:24}},Vl={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.492 2.492 0 0 1 3.5 9h4.75a.75.75 0 0 1 0 1.5H3.5a1 1 0 1 0 0 2h4.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5v-9Z","M11.28 10.22a.75.75 0 1 0-1.06 1.06L11.94 13l-1.72 1.72a.75.75 0 1 0 1.06 1.06L13 14.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L14.06 13l1.72-1.72a.75.75 0 1 0-1.06-1.06L13 11.94l-1.72-1.72Z"],h:16,w:16}},Gl={16:{p:["M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M8.75 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM15 4.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5ZM12 21a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 12 21Zm6.25-14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 6.5Z","M6.5 7.75v1A2.25 2.25 0 0 0 8.75 11h6.5a2.25 2.25 0 0 0 2.25-2.25v-1H19v1a3.75 3.75 0 0 1-3.75 3.75h-6.5A3.75 3.75 0 0 1 5 8.75v-1Z","M11.25 16.25v-5h1.5v5h-1.5Z"],h:24,w:24}},zl={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.492 2.492 0 0 1 3.5 9h2.75a.75.75 0 0 1 0 1.5H3.5a1 1 0 1 0 0 2h2.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5v-9Z","M9 10.168V9a3 3 0 1 1 6 0v1.168c.591.281 1 .884 1 1.582v2.5A1.75 1.75 0 0 1 14.25 16h-4.5A1.75 1.75 0 0 1 8 14.25v-2.5c0-.698.409-1.3 1-1.582ZM13.5 10V9a1.5 1.5 0 0 0-3 0v1Z"],h:16,w:16},24:{p:["M2 2.75A2.75 2.75 0 0 1 4.75 0h14.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V1.5H4.75c-.69 0-1.25.56-1.25 1.25v12.651A2.987 2.987 0 0 1 5 15h6.25a.75.75 0 0 1 0 1.5H5A1.5 1.5 0 0 0 3.5 18v1.25c0 .69.56 1.25 1.25 1.25h6a.75.75 0 0 1 0 1.5h-6A2.75 2.75 0 0 1 2 19.25V2.75Z","M15 14.5a3.5 3.5 0 1 1 7 0V16h.25c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 22.25 24h-7.5A1.75 1.75 0 0 1 13 22.25v-4.5c0-.966.784-1.75 1.75-1.75H15Zm3.5-2a2 2 0 0 0-2 2V16h4v-1.5a2 2 0 0 0-2-2Z"],h:24,w:24}},jl={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75V6a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 3.5 9h3a.75.75 0 0 1 0 1.5h-3a1 1 0 0 0 0 2h3a.75.75 0 0 1 0 1.5h-3A2.5 2.5 0 0 1 1 11.5v-9Z","M12.21 13.479a.75.75 0 1 0 1.061 1.061l2.504-2.505a.75.75 0 0 0 0-1.061L13.271 8.47a.75.75 0 0 0-1.061 1.06l1.224 1.225H8.75a.75.75 0 1 0 0 1.5h4.685l-1.225 1.224Z"],h:16,w:16},24:{p:["M1.875 2.875a2.5 2.5 0 0 1 2.5-2.5h14a.75.75 0 0 1 .75.75v9.125a.75.75 0 0 1-1.5 0V1.875H4.375a1 1 0 0 0-1 1v11.208a2.486 2.486 0 0 1 1-.208h5.937a.75.75 0 1 1 0 1.5H4.375a1 1 0 0 0-1 1v1.75a1 1 0 0 0 1 1h6a.75.75 0 0 1 0 1.5h-6a2.5 2.5 0 0 1-2.5-2.5V2.875Z","M18.643 20.484a.749.749 0 1 0 1.061 1.06l3.757-3.757a.75.75 0 0 0 0-1.06l-3.757-3.757a.75.75 0 0 0-1.061 1.06l2.476 2.477H13a.75.75 0 0 0 0 1.5h8.12l-2.477 2.477Z"],h:24,w:24}},Kl={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.493 2.493 0 0 1 3.5 9h3.25a.75.75 0 0 1 0 1.5H3.5a1 1 0 0 0 0 2h5.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5Zm13.23 7.79h-.001l-1.224-1.224v6.184a.75.75 0 0 1-1.5 0V9.066L10.28 10.29a.75.75 0 0 1-1.06-1.061l2.505-2.504a.75.75 0 0 1 1.06 0L15.29 9.23a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018Z"],h:16,w:16},24:{p:["M4.75 0A2.75 2.75 0 0 0 2 2.75v16.5A2.75 2.75 0 0 0 4.75 22h11a.75.75 0 0 0 0-1.5h-11c-.69 0-1.25-.56-1.25-1.25V18A1.5 1.5 0 0 1 5 16.5h7.25a.75.75 0 0 0 0-1.5H5c-.546 0-1.059.146-1.5.401V2.75c0-.69.56-1.25 1.25-1.25H18.5v7a.75.75 0 0 0 1.5 0V.75a.75.75 0 0 0-.75-.75H4.75Z","m20 13.903 2.202 2.359a.75.75 0 0 0 1.096-1.024l-3.5-3.75a.75.75 0 0 0-1.096 0l-3.5 3.75a.75.75 0 1 0 1.096 1.024l2.202-2.36v9.348a.75.75 0 0 0 1.5 0v-9.347Z"],h:24,w:24}},Yl={16:{p:["M13.25 8a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-.75a.75.75 0 0 1 0-1.5h.75v-.25a.75.75 0 0 1 .75-.75ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2ZM2.75 8a.75.75 0 0 1 .75.75v.268c.083-.012.166-.018.25-.018h.5a.75.75 0 0 1 0 1.5h-.5a.25.25 0 0 0-.25.25v.75c0 .28.114.532.3.714a.75.75 0 1 1-1.05 1.072A2.495 2.495 0 0 1 2 11.5V8.75A.75.75 0 0 1 2.75 8ZM11 .75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V1.5h-.75A.75.75 0 0 1 11 .75Zm-5 0A.75.75 0 0 1 6.75 0h2.5a.75.75 0 0 1 0 1.5h-2.5A.75.75 0 0 1 6 .75Zm0 9A.75.75 0 0 1 6.75 9h2.5a.75.75 0 0 1 0 1.5h-2.5A.75.75 0 0 1 6 9.75ZM4.992.662a.75.75 0 0 1-.636.848c-.436.063-.783.41-.846.846a.751.751 0 0 1-1.485-.212A2.501 2.501 0 0 1 4.144.025a.75.75 0 0 1 .848.637ZM2.75 4a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 2.75 4Zm10.5 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75Z"],h:16,w:16},24:{p:["M5.75 0A2.75 2.75 0 0 0 3 2.75v1a.75.75 0 0 0 1.5 0v-1c0-.69.56-1.25 1.25-1.25h1a.75.75 0 0 0 0-1.5h-1Zm4 0a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Zm7.5 0a.75.75 0 0 0 0 1.5h2.25v2.25a.75.75 0 0 0 1.5 0v-3a.75.75 0 0 0-.75-.75h-3ZM4.5 6.5a.75.75 0 0 0-1.5 0v3.75a.75.75 0 0 0 1.5 0V6.5Zm16.5 0a.75.75 0 0 0-1.5 0v3.75a.75.75 0 0 0 1.5 0V6.5ZM4.5 13.25a.75.75 0 0 0-1.5 0v5.5a3.25 3.25 0 0 0 1.95 2.98.75.75 0 1 0 .6-1.375A1.75 1.75 0 0 1 4.5 18.75V18A1.5 1.5 0 0 1 6 16.5h.75a.75.75 0 0 0 0-1.5H6c-.546 0-1.059.146-1.5.401V13.25Zm16.5 0a.75.75 0 0 0-1.5 0V15h-2.25a.75.75 0 0 0 0 1.5h2.25v4h-5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 .75-.75v-8ZM9.75 15a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Zm-2.353 8.461A.25.25 0 0 1 7 23.26v-5.01a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46Z"],h:24,w:24}},Xl={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.586a.25.25 0 0 0-.177.073l-3.5 3.5A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.427-3.427A1.75 1.75 0 0 1 11.164 17h9.586a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25ZM12 6a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 12 6Zm0 9a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},Ql={16:{p:["M14.064 0h.186C15.216 0 16 .784 16 1.75v.186a8.752 8.752 0 0 1-2.564 6.186l-.458.459c-.314.314-.641.616-.979.904v3.207c0 .608-.315 1.172-.833 1.49l-2.774 1.707a.749.749 0 0 1-1.11-.418l-.954-3.102a1.214 1.214 0 0 1-.145-.125L3.754 9.816a1.218 1.218 0 0 1-.124-.145L.528 8.717a.749.749 0 0 1-.418-1.11l1.71-2.774A1.748 1.748 0 0 1 3.31 4h3.204c.288-.338.59-.665.904-.979l.459-.458A8.749 8.749 0 0 1 14.064 0ZM8.938 3.623h-.002l-.458.458c-.76.76-1.437 1.598-2.02 2.5l-1.5 2.317 2.143 2.143 2.317-1.5c.902-.583 1.74-1.26 2.499-2.02l.459-.458a7.25 7.25 0 0 0 2.123-5.127V1.75a.25.25 0 0 0-.25-.25h-.186a7.249 7.249 0 0 0-5.125 2.123ZM3.56 14.56c-.732.732-2.334 1.045-3.005 1.148a.234.234 0 0 1-.201-.064.234.234 0 0 1-.064-.201c.103-.671.416-2.273 1.15-3.003a1.502 1.502 0 1 1 2.12 2.12Zm6.94-3.935c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 0 0 .119-.213ZM3.678 8.116 5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 0 0-.213.119l-1.2 1.95ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M20.322.75h1.176a1.75 1.75 0 0 1 1.75 1.749v1.177a10.75 10.75 0 0 1-2.925 7.374l-1.228 1.304a23.699 23.699 0 0 1-1.596 1.542v5.038c0 .615-.323 1.184-.85 1.5l-4.514 2.709a.75.75 0 0 1-1.12-.488l-.963-4.572a1.305 1.305 0 0 1-.14-.129L8.04 15.96l-1.994-1.873a1.305 1.305 0 0 1-.129-.14l-4.571-.963a.75.75 0 0 1-.49-1.12l2.71-4.514c.316-.527.885-.85 1.5-.85h5.037a23.668 23.668 0 0 1 1.542-1.594l1.304-1.23A10.753 10.753 0 0 1 20.321.75Zm-6.344 4.018v-.001l-1.304 1.23a22.275 22.275 0 0 0-3.255 3.851l-2.193 3.29 1.859 1.744a.545.545 0 0 1 .034.034l1.743 1.858 3.288-2.192a22.263 22.263 0 0 0 3.854-3.257l1.228-1.303a9.251 9.251 0 0 0 2.517-6.346V2.5a.25.25 0 0 0-.25-.25h-1.177a9.252 9.252 0 0 0-6.344 2.518ZM6.5 21c-1.209 1.209-3.901 1.445-4.743 1.49a.236.236 0 0 1-.18-.067.236.236 0 0 1-.067-.18c.045-.842.281-3.534 1.49-4.743.9-.9 2.6-.9 3.5 0 .9.9.9 2.6 0 3.5Zm-.592-8.588L8.17 9.017c.23-.346.47-.685.717-1.017H5.066a.25.25 0 0 0-.214.121l-2.167 3.612ZM16 15.112c-.333.248-.672.487-1.018.718l-3.393 2.262.678 3.223 3.612-2.167a.25.25 0 0 0 .121-.214ZM17.5 8a1.5 1.5 0 1 1-3.001-.001A1.5 1.5 0 0 1 17.5 8Z"],h:24,w:24}},Jl={16:{p:["M16 10.75v2.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-2.5C0 9.784.784 9 1.75 9h12.5c.966 0 1.75.784 1.75 1.75Zm0-8v2.5A1.75 1.75 0 0 1 14.25 7H1.75A1.75 1.75 0 0 1 0 5.25v-2.5C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75Zm-1.75-.25H1.75a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm0 8H1.75a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M22 3.75v5.5A1.75 1.75 0 0 1 20.25 11H3.75A1.75 1.75 0 0 1 2 9.25v-5.5C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75Zm0 11v5.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-5.5c0-.966.784-1.75 1.75-1.75h16.5c.966 0 1.75.784 1.75 1.75ZM20.25 3.5H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm0 11H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},ec={16:{p:["M2.002 2.725a.75.75 0 0 1 .797-.699C8.79 2.42 13.58 7.21 13.974 13.201a.75.75 0 0 1-1.497.098 10.502 10.502 0 0 0-9.776-9.776.747.747 0 0 1-.7-.798ZM2.84 7.05h-.002a7.002 7.002 0 0 1 6.113 6.111.75.75 0 0 1-1.49.178 5.503 5.503 0 0 0-4.8-4.8.75.75 0 0 1 .179-1.489ZM2 13a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z"],h:16,w:16},24:{p:["M3.5 3.25a.75.75 0 0 1 .75-.75C14.053 2.5 22 10.447 22 20.25a.75.75 0 0 1-1.5 0C20.5 11.275 13.225 4 4.25 4a.75.75 0 0 1-.75-.75Zm.75 6.25C10.187 9.5 15 14.313 15 20.25a.75.75 0 0 1-1.5 0A9.25 9.25 0 0 0 4.25 11a.75.75 0 0 1 0-1.5ZM3.5 19a2 2 0 1 1 3.999-.001A2 2 0 0 1 3.5 19Z"],h:24,w:24}},tc={16:{p:["M3.637 2.291A.748.748 0 0 1 4.23 2h7.54c.232 0 .451.107.593.291l3.48 4.5a.75.75 0 0 1-.072.999l-7.25 7a.75.75 0 0 1-1.042 0l-7.25-7a.75.75 0 0 1-.072-.999ZM4.598 3.5 1.754 7.177 8 13.207l6.246-6.03L11.402 3.5Z"],h:16,w:16},24:{p:["M5.873 3.26A.748.748 0 0 1 6.44 3h11.31c.223 0 .434.099.576.27l5 6a.75.75 0 0 1-.028.992l-10.75 11.5a.75.75 0 0 1-1.096 0l-10.75-11.5a.75.75 0 0 1-.02-1.003l5.19-6Zm.91 1.24L2.258 9.73 12 20.153l9.75-10.43L17.399 4.5Z"],h:24,w:24}},nc={16:{p:["M1.75 10a.75.75 0 0 1 .75.75v2.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 1 13.25v-2.5a.75.75 0 0 1 .75-.75Zm12.5 0a.75.75 0 0 1 .75.75v2.5A1.75 1.75 0 0 1 13.25 15h-2.5a.75.75 0 0 1 0-1.5h2.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 .75-.75ZM2.75 2.5a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0v-2.5C1 1.784 1.784 1 2.75 1h2.5a.75.75 0 0 1 0 1.5ZM10 1.75a.75.75 0 0 1 .75-.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.75 15a.75.75 0 0 1 .75.75v3.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 3 19.25v-3.5a.75.75 0 0 1 .75-.75Zm16.5 0a.75.75 0 0 1 .75.75v3.5A1.75 1.75 0 0 1 19.25 21h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 .75-.75ZM4.75 4.5a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0v-3.5C3 3.784 3.784 3 4.75 3h3.5a.75.75 0 0 1 0 1.5ZM15 3.75a.75.75 0 0 1 .75-.75h3.5c.966 0 1.75.784 1.75 1.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},rc={16:{p:["M10.75 1a.75.75 0 0 1 .75.75v2.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 10 4.25v-2.5a.75.75 0 0 1 .75-.75Zm-5.5 0a.75.75 0 0 1 .75.75v2.5A1.75 1.75 0 0 1 4.25 6h-2.5a.75.75 0 0 1 0-1.5h2.5a.25.25 0 0 0 .25-.25v-2.5A.75.75 0 0 1 5.25 1ZM1 10.75a.75.75 0 0 1 .75-.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1-.75-.75Zm9 1c0-.966.784-1.75 1.75-1.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M15.75 3a.75.75 0 0 1 .75.75v3.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 15 7.25v-3.5a.75.75 0 0 1 .75-.75Zm-7.5 0a.75.75 0 0 1 .75.75v3.5A1.75 1.75 0 0 1 7.25 9h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25v-3.5A.75.75 0 0 1 8.25 3ZM3 15.75a.75.75 0 0 1 .75-.75h3.5c.966 0 1.75.784 1.75 1.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1-.75-.75Zm12 1c0-.966.784-1.75 1.75-1.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0Z"],h:24,w:24}},ic={16:{p:["M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"],h:16,w:16},24:{p:["M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"],h:24,w:24}},sc={16:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v4c0 .372-.116.717-.314 1 .198.283.314.628.314 1v4a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 12.75v-4c0-.358.109-.707.314-1a1.739 1.739 0 0 1-.314-1v-4C0 1.784.784 1 1.75 1ZM1.5 2.75v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm.25 5.75a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM7 4.75A.75.75 0 0 1 7.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 7 4.75ZM7.75 10h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM3 4.75A.75.75 0 0 1 3.75 4h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 4.75ZM3.75 10h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M10.75 6.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5ZM6 7.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 6 7.25Zm4 9a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-3.25-.75a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z","M3.25 2h17.5c.966 0 1.75.784 1.75 1.75v7c0 .372-.116.716-.314 1 .198.284.314.628.314 1v7a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75v-7c0-.358.109-.707.314-1a1.741 1.741 0 0 1-.314-1v-7C1.5 2.784 2.284 2 3.25 2Zm0 10.5a.25.25 0 0 0-.25.25v7c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-7a.25.25 0 0 0-.25-.25Zm0-1.5h17.5a.25.25 0 0 0 .25-.25v-7a.25.25 0 0 0-.25-.25H3.25a.25.25 0 0 0-.25.25v7c0 .138.112.25.25.25Z"],h:24,w:24}},oc={16:{p:["M3.75 6.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25h-1a.75.75 0 0 1 0-1.5h1c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-6.5C2 5.784 2.784 5 3.75 5h1a.75.75 0 0 1 0 1.5ZM7.823.177a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v5.75a.75.75 0 0 1-1.5 0V3.5H5.104a.25.25 0 0 1-.177-.427Z"],h:16,w:16},24:{p:["M5.5 9.75v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1 0-1.5h2.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V9.75C4 8.784 4.784 8 5.75 8h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25Zm7.03-8.53 3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.97-1.97v10.69a.75.75 0 0 1-1.5 0V3.56L9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},ac={16:{p:["M15 3a3 3 0 0 1-5.175 2.066l-3.92 2.179a2.994 2.994 0 0 1 0 1.51l3.92 2.179a3 3 0 1 1-.73 1.31l-3.92-2.178a3 3 0 1 1 0-4.133l3.92-2.178A3 3 0 1 1 15 3Zm-1.5 10a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 13.5 13Zm-9-5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 4.5 8Zm9-5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 13.5 3Z"],h:16,w:16},24:{p:["M20 5.5a3.498 3.498 0 0 1-6.062 2.385l-5.112 3.021a3.498 3.498 0 0 1 0 2.188l5.112 3.021a3.5 3.5 0 1 1-.764 1.29l-5.112-3.02a3.499 3.499 0 1 1-3.843-5.642 3.499 3.499 0 0 1 3.843.872l5.112-3.021A3.5 3.5 0 1 1 20 5.5Zm-1.5 13a2 2 0 1 0-3.999-.001 2 2 0 0 0 3.999.001Zm0-13a2 2 0 1 0-3.999-.001A2 2 0 0 0 18.5 5.5ZM5.5 14a2 2 0 1 0 .001-3.999A2 2 0 0 0 5.5 14Z"],h:24,w:24}},lc={16:{p:["M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z","M11.46.637a1.748 1.748 0 0 1 1.08 0l8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.77 10.705-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.771 20.704 2 16.19 2 10V4.976c0-.76.49-1.43 1.21-1.664Zm.617 1.426a.253.253 0 0 0-.154 0L3.673 4.74a.25.25 0 0 0-.173.237V10c0 5.461 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.46 20.5 10V4.976a.25.25 0 0 0-.173-.237Z"],h:24,w:24}},cc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z","m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"],h:24,w:24}},uc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM9.5 6.5c0 .536-.286 1.032-.75 1.3v2.45a.75.75 0 0 1-1.5 0V7.8A1.5 1.5 0 1 1 9.5 6.5Z"],h:16,w:16},24:{p:["M11.46 1.137a1.748 1.748 0 0 1 1.08 0l8.25 2.675A1.75 1.75 0 0 1 22 5.476V10.5c0 6.19-3.77 10.705-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.771 21.204 2 16.69 2 10.5V5.476c0-.76.49-1.43 1.21-1.664Zm.617 1.426a.253.253 0 0 0-.154 0L3.673 5.24a.25.25 0 0 0-.173.237V10.5c0 5.461 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0c5.15-1.943 8.43-5.965 8.43-11.426V5.476a.25.25 0 0 0-.173-.237ZM13 12.232V15a1 1 0 0 1-2 0v-2.768a2 2 0 1 1 2 0Z"],h:24,w:24}},hc={16:{p:["M8.533.133a1.75 1.75 0 0 0-1.066 0l-2.091.67a.75.75 0 0 0 .457 1.428l2.09-.67a.25.25 0 0 1 .153 0l5.25 1.68a.25.25 0 0 1 .174.239V7c0 .233-.008.464-.025.694a.75.75 0 1 0 1.495.112c.02-.27.03-.538.03-.806V3.48a1.75 1.75 0 0 0-1.217-1.667L8.533.133ZM1 2.857l-.69-.5a.75.75 0 1 1 .88-1.214l14.5 10.5a.75.75 0 1 1-.88 1.214l-1.282-.928c-.995 1.397-2.553 2.624-4.864 3.608-.425.181-.905.18-1.329 0-2.447-1.042-4.049-2.356-5.032-3.855C1.32 10.182 1 8.566 1 7Zm1.5 1.086V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297.05.02.106.02.153 0 2.127-.905 3.439-1.982 4.237-3.108Z"],h:16,w:16},24:{p:["M12.54 1.137a1.748 1.748 0 0 0-1.08 0L6.018 2.905a.75.75 0 1 0 .464 1.427l5.441-1.768a.239.239 0 0 1 .154 0l8.25 2.675a.249.249 0 0 1 .173.237V10.5c0 1.284-.24 2.83-.696 3.971a.75.75 0 1 0 1.392.557C21.74 13.67 22 11.927 22 10.5V5.476a1.75 1.75 0 0 0-1.21-1.664l-8.25-2.675ZM2.017 4.843l-.974-.748a.751.751 0 0 1 .914-1.19l20.5 15.75a.751.751 0 0 1-.914 1.19l-2.012-1.546-.702.852-.008.009a.07.07 0 0 1-.008.01c-1.603 1.821-3.731 3.223-6.214 4.16a1.699 1.699 0 0 1-1.198-.001C5.771 21.205 2 16.689 2 10.5V5c0-.054.006-.107.017-.157ZM3.5 5.982V10.5c0 5.461 3.281 9.483 8.431 11.426a.193.193 0 0 0 .138 0c2.283-.861 4.192-2.131 5.61-3.738l.662-.803Z"],h:24,w:24}},pc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM6.78 5.22 8 6.44l1.22-1.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 7.5l1.22 1.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 8.56 6.78 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 7.5 5.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Z"],h:16,w:16},24:{p:["M9.28 7.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06L12 12.56l2.72 2.72a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06L12 10.44 9.28 7.72Z","m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"],h:24,w:24}},dc={16:{p:["M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z","M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"],h:16,w:16},24:{p:["M7.22 14.47 9.69 12 7.22 9.53a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3 3a.75.75 0 0 1 0 1.06l-3 3a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z"],h:24,w:24}},mc={16:{p:["m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z"],h:16,w:16},24:{p:["M11.28 9.53 8.81 12l2.47 2.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3-3a.75.75 0 0 1 0-1.06l3-3a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z"],h:24,w:24}},fc={16:{p:["M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 2 13.25Zm6.56 4.5h5.69a.75.75 0 0 1 0 1.5H8.56l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L6.22 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z"],h:16,w:16},24:{p:["M3 3.25c0-.966.784-1.75 1.75-1.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25v17.5c0 .138.112.25.25.25h5.5a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 3 20.75Zm9.994 9.5 3.3 3.484a.75.75 0 0 1-1.088 1.032l-4.5-4.75a.75.75 0 0 1 0-1.032l4.5-4.75a.75.75 0 0 1 1.088 1.032l-3.3 3.484h8.256a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},gc={16:{p:["M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 2 13.25Zm10.44 4.5-1.97-1.97a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H6.75a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M3 3.25c0-.966.784-1.75 1.75-1.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25v17.5c0 .138.112.25.25.25h5.5a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 3 20.75Zm16.006 9.5H10.75a.75.75 0 0 1 0-1.5h8.256l-3.3-3.484a.75.75 0 0 1 1.088-1.032l4.5 4.75a.75.75 0 0 1 0 1.032l-4.5 4.75a.75.75 0 0 1-1.088-1.032Z"],h:24,w:24}},yc={16:{p:["m5.06 7.356 2.795 2.833c.08.081.21.081.29 0l2.794-2.833c.13-.131.038-.356-.145-.356H5.206c-.183 0-.275.225-.145.356Z","M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["m7.854 10.854 3.792 3.792a.5.5 0 0 0 .708 0l3.793-3.792a.5.5 0 0 0-.354-.854H8.207a.5.5 0 0 0-.353.854Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},wc={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},bc={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm11.333-2.167a.825.825 0 0 0-1.166-1.166l-5.5 5.5a.825.825 0 0 0 1.166 1.166Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.333-4.167a.825.825 0 0 0-1.166-1.166l-9.5 9.5a.825.825 0 0 0 1.166 1.166Z"],h:24,w:24}},vc={16:{p:["M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"],h:16,w:16}},Cc={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm3.82 1.636a.75.75 0 0 1 1.038.175l.007.009c.103.118.22.222.35.31.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371.13-.088.247-.192.35-.31l.007-.008a.75.75 0 0 1 1.222.87l-.022-.015c.02.013.021.015.021.015v.001l-.001.002-.002.003-.005.007-.014.019a2.066 2.066 0 0 1-.184.213c-.16.166-.338.316-.53.445-.63.418-1.37.638-2.127.629-.946 0-1.652-.308-2.126-.63a3.331 3.331 0 0 1-.715-.657l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 0 1 .183-1.044ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM5 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.25 2.25.592.416a97.71 97.71 0 0 0-.592-.416Z"],h:16,w:16},24:{p:["M8.456 14.494a.75.75 0 0 1 1.068.17 3.08 3.08 0 0 0 .572.492A3.381 3.381 0 0 0 12 15.72c.855 0 1.487-.283 1.904-.562a3.081 3.081 0 0 0 .572-.492l.021-.026a.75.75 0 0 1 1.197.905l-.027.034c-.013.016-.03.038-.052.063-.044.05-.105.119-.184.198a4.569 4.569 0 0 1-.695.566A4.88 4.88 0 0 1 12 17.22a4.88 4.88 0 0 1-2.736-.814 4.57 4.57 0 0 1-.695-.566 3.253 3.253 0 0 1-.236-.261c-.259-.332-.223-.824.123-1.084Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z","M9 10.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM16.25 12a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"],h:24,w:24}},Sc={16:{p:["m12.927 2.573 3 3A.25.25 0 0 1 15.75 6H13.5v6.75a.75.75 0 0 1-1.5 0V6H9.75a.25.25 0 0 1-.177-.427l3-3a.25.25 0 0 1 .354 0ZM0 12.25a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75Zm0-4a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 8.25Zm0-4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 4.25Z"],h:16,w:16},24:{p:["M18.5 17.25a.75.75 0 0 1-1.5 0V7.56l-2.22 2.22a.75.75 0 1 1-1.06-1.06l3.5-3.5a.75.75 0 0 1 1.06 0l3.5 3.5a.75.75 0 0 1-1.06 1.06L18.5 7.56v9.69Zm-15.75.25a.75.75 0 0 1 0-1.5h9.5a.75.75 0 0 1 0 1.5h-9.5Zm0-5a.75.75 0 0 1 0-1.5h5.5a.75.75 0 0 1 0 1.5h-5.5Zm0-5a.75.75 0 0 1 0-1.5h3.5a.75.75 0 0 1 0 1.5h-3.5Z"],h:24,w:24}},Ec={16:{p:["M0 4.25a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 4.25Zm0 4a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 8.25Zm0 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75ZM13.5 10h2.25a.25.25 0 0 1 .177.427l-3 3a.25.25 0 0 1-.354 0l-3-3A.25.25 0 0 1 9.75 10H12V3.75a.75.75 0 0 1 1.5 0V10Z"],h:16,w:16},24:{p:["M18.5 16.44V6.75a.75.75 0 0 0-1.5 0v9.69l-2.22-2.22a.75.75 0 1 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06l-2.22 2.22ZM2 7.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 2 7.25Zm0 5a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Zm0 5a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},kc={16:{p:["M7.53 1.282a.5.5 0 0 1 .94 0l.478 1.306a7.492 7.492 0 0 0 4.464 4.464l1.305.478a.5.5 0 0 1 0 .94l-1.305.478a7.492 7.492 0 0 0-4.464 4.464l-.478 1.305a.5.5 0 0 1-.94 0l-.478-1.305a7.492 7.492 0 0 0-4.464-4.464L1.282 8.47a.5.5 0 0 1 0-.94l1.306-.478a7.492 7.492 0 0 0 4.464-4.464Z"],h:16,w:16}},Rc={16:{p:["M10.586 1C12.268 1 13.5 2.37 13.5 4.25c0 1.745-.996 3.359-2.622 4.831-.166.15-.336.297-.509.438l1.116 5.584a.75.75 0 0 1-.991.852l-2.409-.876a.25.25 0 0 0-.17 0l-2.409.876a.75.75 0 0 1-.991-.852L5.63 9.519a13.78 13.78 0 0 1-.51-.438C3.497 7.609 2.5 5.995 2.5 4.25 2.5 2.37 3.732 1 5.414 1c.963 0 1.843.403 2.474 1.073L8 2.198l.112-.125a3.385 3.385 0 0 1 2.283-1.068L10.586 1Zm-3.621 9.495-.718 3.594 1.155-.42a1.75 1.75 0 0 1 1.028-.051l.168.051 1.154.42-.718-3.592c-.199.13-.37.235-.505.314l-.169.097a.75.75 0 0 1-.72 0 9.54 9.54 0 0 1-.515-.308l-.16-.105ZM10.586 2.5c-.863 0-1.611.58-1.866 1.459-.209.721-1.231.721-1.44 0C7.025 3.08 6.277 2.5 5.414 2.5 4.598 2.5 4 3.165 4 4.25c0 1.23.786 2.504 2.128 3.719.49.443 1.018.846 1.546 1.198l.325.21.076-.047.251-.163a13.341 13.341 0 0 0 1.546-1.198C11.214 6.754 12 5.479 12 4.25c0-1.085-.598-1.75-1.414-1.75Z"],h:16,w:16},24:{p:["M16.004 1.25C18.311 1.25 20 3.128 20 5.75c0 2.292-1.23 4.464-3.295 6.485-.481.47-.98.909-1.482 1.31l.265 1.32 1.375 7.5a.75.75 0 0 1-.982.844l-3.512-1.207a.75.75 0 0 0-.488 0L8.37 23.209a.75.75 0 0 1-.982-.844l1.378-7.512.261-1.309c-.5-.4-1-.838-1.481-1.31C5.479 10.215 4.25 8.043 4.25 5.75c0-2.622 1.689-4.5 3.996-4.5 1.55 0 2.947.752 3.832 1.967l.047.067.047-.067a4.726 4.726 0 0 1 3.612-1.962l.22-.005ZM13.89 14.531c-.418.285-.828.542-1.218.77l-.18.103a.75.75 0 0 1-.734 0l-.071-.04-.46-.272c-.282-.173-.573-.36-.868-.562l-.121.605-1.145 6.239 2.3-.79a2.248 2.248 0 0 1 1.284-.054l.18.053 2.299.79-1.141-6.226-.125-.616ZM16.004 2.75c-1.464 0-2.731.983-3.159 2.459-.209.721-1.231.721-1.44 0-.428-1.476-1.695-2.459-3.16-2.459-1.44 0-2.495 1.173-2.495 3 0 1.811 1.039 3.647 2.844 5.412a19.624 19.624 0 0 0 3.734 2.84l-.019-.011-.184-.111.147-.088a19.81 19.81 0 0 0 3.015-2.278l.37-.352C17.46 9.397 18.5 7.561 18.5 5.75c0-1.827-1.055-3-2.496-3Z"],h:24,w:24}},Tc={16:{p:["M4 5.75C4 4.784 4.784 4 5.75 4h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 10.25 12h-4.5A1.75 1.75 0 0 1 4 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h4.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M6 7.75C6 6.784 6.784 6 7.75 6h8.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 16.25 18h-8.5A1.75 1.75 0 0 1 6 16.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ac={16:{p:["M5.75 4h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 10.25 12h-4.5A1.75 1.75 0 0 1 4 10.25v-4.5C4 4.784 4.784 4 5.75 4Z"],h:16,w:16},24:{p:["M7.75 6h8.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 16.25 18h-8.5A1.75 1.75 0 0 1 6 16.25v-8.5C6 6.784 6.784 6 7.75 6Z"],h:24,w:24}},xc={16:{p:["M3.499.75a.75.75 0 0 1 1.5 0v.996C5.9 2.903 6.793 3.65 7.662 4.376l.24.202c-.036-.694.055-1.422.426-2.163C9.1.873 10.794-.045 12.622.26 14.408.558 16 1.94 16 4.25c0 1.278-.954 2.575-2.44 2.734l.146.508.065.22c.203.701.412 1.455.476 2.226.142 1.707-.4 3.03-1.487 3.898C11.714 14.671 10.27 15 8.75 15h-6a.75.75 0 0 1 0-1.5h1.376a4.484 4.484 0 0 1-.563-1.191 3.835 3.835 0 0 1-.05-2.063 4.647 4.647 0 0 1-2.025-.293.75.75 0 0 1 .525-1.406c1.357.507 2.376-.006 2.698-.318l.009-.01a.747.747 0 0 1 1.06 0 .748.748 0 0 1-.012 1.074c-.912.92-.992 1.835-.768 2.586.221.74.745 1.337 1.196 1.621H8.75c1.343 0 2.398-.296 3.074-.836.635-.507 1.036-1.31.928-2.602-.05-.603-.216-1.224-.422-1.93l-.064-.221c-.12-.407-.246-.84-.353-1.29a2.425 2.425 0 0 1-.507-.441 3.075 3.075 0 0 1-.633-1.248.75.75 0 0 1 1.455-.364c.046.185.144.436.31.627.146.168.353.305.712.305.738 0 1.25-.615 1.25-1.25 0-1.47-.95-2.315-2.123-2.51-1.172-.196-2.227.387-2.706 1.345-.46.92-.27 1.774.019 3.062l.042.19a.884.884 0 0 1 .01.05c.348.443.666.949.94 1.553a.75.75 0 1 1-1.365.62c-.553-1.217-1.32-1.94-2.3-2.768L6.7 5.527c-.814-.68-1.75-1.462-2.692-2.619a3.737 3.737 0 0 0-1.023.88c-.406.495-.663 1.036-.722 1.508.116.122.306.21.591.239.388.038.797-.06 1.032-.19a.75.75 0 0 1 .728 1.31c-.515.287-1.23.439-1.906.373-.682-.067-1.473-.38-1.879-1.193L.75 5.677V5.5c0-.984.48-1.94 1.077-2.664.46-.559 1.05-1.055 1.673-1.353V.75Z"],h:16,w:16},24:{p:["M18.377 3.49c-1.862-.31-3.718.62-4.456 2.095-.428.857-.691 1.624-.728 2.361-.035.71.138 1.444.67 2.252.644.854 1.199 1.913 1.608 3.346a.75.75 0 1 1-1.442.412c-.353-1.236-.82-2.135-1.372-2.865l-.008-.01c-.53-.698-1.14-1.242-1.807-1.778a50.724 50.724 0 0 0-.667-.524C9.024 7.884 7.71 6.863 6.471 5.16c-.59.287-1.248.798-1.806 1.454-.665.78-1.097 1.66-1.158 2.446.246.36.685.61 1.246.715.643.12 1.278.015 1.633-.182a.75.75 0 1 1 .728 1.311c-.723.402-1.728.516-2.637.346-.916-.172-1.898-.667-2.398-1.666L2 9.427V9.25c0-1.323.678-2.615 1.523-3.607.7-.824 1.59-1.528 2.477-1.917V2.75a.75.75 0 1 1 1.5 0v1.27c1.154 1.67 2.363 2.612 3.568 3.551.207.162.415.323.621.489.001-.063.003-.126.006-.188.052-1.034.414-2.017.884-2.958 1.06-2.118 3.594-3.313 6.044-2.904 1.225.204 2.329.795 3.125 1.748C22.546 4.713 23 5.988 23 7.5c0 1.496-.913 3.255-2.688 3.652.838 1.699 1.438 3.768 1.181 5.697-.269 2.017-1.04 3.615-2.582 4.675C17.409 22.558 15.288 23 12.5 23H4.75a.75.75 0 0 1 0-1.5h2.322c-.58-.701-.998-1.578-1.223-2.471-.327-1.3-.297-2.786.265-4.131-.92.091-1.985-.02-3.126-.445a.75.75 0 1 1 .524-1.406c1.964.733 3.428.266 4.045-.19.068-.06.137-.12.208-.18a.745.745 0 0 1 .861-.076.746.746 0 0 1 .32.368.752.752 0 0 1-.173.819c-.077.076-.16.15-.252.221-1.322 1.234-1.62 3.055-1.218 4.654.438 1.737 1.574 2.833 2.69 2.837H12.5c2.674 0 4.429-.433 5.56-1.212 1.094-.752 1.715-1.904 1.946-3.637.236-1.768-.445-3.845-1.407-5.529a.576.576 0 0 1-.012-.02 3.557 3.557 0 0 1-1.553-.94c-.556-.565-.89-1.243-1.012-1.73a.75.75 0 0 1 1.456-.364c.057.231.26.67.626 1.043.35.357.822.623 1.443.623 1.172 0 1.953-1.058 1.953-2.234 0-1.205-.357-2.127-.903-2.78-.547-.654-1.318-1.08-2.22-1.23Z"],h:24,w:24}},Dc={16:{p:["M7.122.392a1.75 1.75 0 0 1 1.756 0l5.003 2.902c.83.481.83 1.68 0 2.162L8.878 8.358a1.75 1.75 0 0 1-1.756 0L2.119 5.456a1.251 1.251 0 0 1 0-2.162ZM8.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685 4.63 2.685a.248.248 0 0 0 .25 0l4.63-2.685ZM1.601 7.789a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0L1.874 8.814A.75.75 0 0 1 1.6 7.789Zm0 3.5a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0l-5.248-3.044a.75.75 0 0 1-.273-1.025Z"],h:16,w:16},24:{p:["M11.063 1.456a1.749 1.749 0 0 1 1.874 0l8.383 5.316a1.751 1.751 0 0 1 0 2.956l-8.383 5.316a1.749 1.749 0 0 1-1.874 0L2.68 9.728a1.751 1.751 0 0 1 0-2.956Zm1.071 1.267a.25.25 0 0 0-.268 0L3.483 8.039a.25.25 0 0 0 0 .422l8.383 5.316a.25.25 0 0 0 .268 0l8.383-5.316a.25.25 0 0 0 0-.422Z","M1.867 12.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z","M1.867 16.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"],h:24,w:24}},_c={16:{p:["M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"],h:16,w:16},24:{p:["M12 .25a.75.75 0 0 1 .673.418l3.058 6.197 6.839.994a.75.75 0 0 1 .415 1.279l-4.948 4.823 1.168 6.811a.751.751 0 0 1-1.088.791L12 18.347l-6.117 3.216a.75.75 0 0 1-1.088-.79l1.168-6.812-4.948-4.823a.75.75 0 0 1 .416-1.28l6.838-.993L11.328.668A.75.75 0 0 1 12 .25Zm0 2.445L9.44 7.882a.75.75 0 0 1-.565.41l-5.725.832 4.143 4.038a.748.748 0 0 1 .215.664l-.978 5.702 5.121-2.692a.75.75 0 0 1 .698 0l5.12 2.692-.977-5.702a.748.748 0 0 1 .215-.664l4.143-4.038-5.725-.831a.75.75 0 0 1-.565-.41L12 2.694Z"],h:24,w:24}},Mc={16:{p:["M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"],h:16,w:16},24:{p:["m12.672.668 3.059 6.197 6.838.993a.75.75 0 0 1 .416 1.28l-4.948 4.823 1.168 6.812a.75.75 0 0 1-1.088.79L12 18.347l-6.116 3.216a.75.75 0 0 1-1.088-.791l1.168-6.811-4.948-4.823a.749.749 0 0 1 .416-1.279l6.838-.994L11.327.668a.75.75 0 0 1 1.345 0Z"],h:24,w:24}},Pc={16:{p:["M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M12 7a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M7.328 1.47a.749.749 0 0 1 .53-.22h8.284c.199 0 .389.079.53.22l5.858 5.858c.141.14.22.33.22.53v8.284a.749.749 0 0 1-.22.53l-5.858 5.858a.749.749 0 0 1-.53.22H7.858a.749.749 0 0 1-.53-.22L1.47 16.672a.749.749 0 0 1-.22-.53V7.858c0-.199.079-.389.22-.53Zm.84 1.28L2.75 8.169v7.662l5.419 5.419h7.662l5.419-5.418V8.168L15.832 2.75Z"],h:24,w:24}},Ic={16:{p:["M5.75.75A.75.75 0 0 1 6.5 0h3a.75.75 0 0 1 0 1.5h-.75v1l-.001.041a6.724 6.724 0 0 1 3.464 1.435l.007-.006.75-.75a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-.75.75-.006.007a6.75 6.75 0 1 1-10.548 0L2.72 5.03l-.75-.75a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l.75.75.007.006A6.72 6.72 0 0 1 7.25 2.541V1.5H6.5a.75.75 0 0 1-.75-.75ZM8 14.5a5.25 5.25 0 1 0-.001-10.501A5.25 5.25 0 0 0 8 14.5Zm.389-6.7 1.33-1.33a.75.75 0 1 1 1.061 1.06L9.45 8.861A1.503 1.503 0 0 1 8 10.75a1.499 1.499 0 1 1 .389-2.95Z"],h:16,w:16},24:{p:["M10.25 0h3.5a.75.75 0 0 1 0 1.5h-1v1.278a9.954 9.954 0 0 1 5.636 2.276L19.72 3.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.315 1.316A9.959 9.959 0 0 1 22 12.75c0 5.523-4.477 10-10 10s-10-4.477-10-10a9.959 9.959 0 0 1 2.535-6.654L3.22 4.78a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.335 1.334a9.958 9.958 0 0 1 5.635-2.276V1.5h-1a.75.75 0 0 1 0-1.5ZM12 21.25a8.5 8.5 0 1 0-.001-17.001A8.5 8.5 0 0 0 12 21.25Zm4.03-12.53a.75.75 0 0 1 0 1.06l-2.381 2.382a1.75 1.75 0 1 1-1.06-1.06l2.38-2.382a.75.75 0 0 1 1.061 0Z"],h:24,w:24}},Oc={16:{p:["M11.055 8.5c.524.536.815 1.257.811 2.007a3.133 3.133 0 0 1-1.12 2.408C9.948 13.597 8.748 14 7.096 14c-1.706 0-3.104-.607-3.902-1.377a.751.751 0 0 1 1.042-1.079c.48.463 1.487.956 2.86.956 1.422 0 2.232-.346 2.676-.726.435-.372.594-.839.594-1.267 0-.472-.208-.857-.647-1.197-.448-.346-1.116-.623-1.951-.81H1.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5ZM7.581 3.25c-2.036 0-2.778 1.082-2.778 1.786 0 .055.002.107.006.157a.75.75 0 0 1-1.496.114 3.506 3.506 0 0 1-.01-.271c0-1.832 1.75-3.286 4.278-3.286 1.418 0 2.721.58 3.514 1.093a.75.75 0 1 1-.814 1.26c-.64-.414-1.662-.853-2.7-.853Z"],h:16,w:16},24:{p:["m16.533 12.5.054.043c.93.75 1.538 1.77 1.538 3.066a4.13 4.13 0 0 1-1.479 3.177c-1.058.904-2.679 1.464-4.974 1.464-2.35 0-4.252-.837-5.318-1.865a.75.75 0 1 1 1.042-1.08c.747.722 2.258 1.445 4.276 1.445 2.065 0 3.296-.504 3.999-1.105a2.63 2.63 0 0 0 .954-2.036c0-.764-.337-1.38-.979-1.898-.649-.523-1.598-.931-2.76-1.211H3.75a.75.75 0 0 1 0-1.5h16.5a.75.75 0 0 1 0 1.5ZM12.36 5C9.37 5 8.105 6.613 8.105 7.848c0 .411.072.744.193 1.02a.75.75 0 0 1-1.373.603 3.988 3.988 0 0 1-.32-1.623c0-2.363 2.271-4.348 5.755-4.348 1.931 0 3.722.794 4.814 1.5a.75.75 0 1 1-.814 1.26c-.94-.607-2.448-1.26-4-1.26Z"],h:24,w:24}},Nc={16:{p:["M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm5.657-8.157a.75.75 0 0 1 0 1.061l-1.061 1.06a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.06-1.06a.75.75 0 0 1 1.06 0Zm-9.193 9.193a.75.75 0 0 1 0 1.06l-1.06 1.061a.75.75 0 1 1-1.061-1.06l1.06-1.061a.75.75 0 0 1 1.061 0ZM8 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 8 0ZM3 8a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 3 8Zm13 0a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 16 8Zm-8 5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 13Zm3.536-1.464a.75.75 0 0 1 1.06 0l1.061 1.06a.75.75 0 0 1-1.06 1.061l-1.061-1.06a.75.75 0 0 1 0-1.061ZM2.343 2.343a.75.75 0 0 1 1.061 0l1.06 1.061a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-1.06-1.06a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M12 19a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm0-1.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 1 0 0 11Zm-5.657.157a.75.75 0 0 1 0 1.06l-1.768 1.768a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.767-1.768a.75.75 0 0 1 1.061 0ZM3.515 3.515a.75.75 0 0 1 1.06 0l1.768 1.768a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L3.515 4.575a.75.75 0 0 1 0-1.06ZM12 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 12 0ZM4 12a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h2.5A.75.75 0 0 1 4 12Zm8 8a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0v-2.5A.75.75 0 0 1 12 20Zm12-8a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h2.5A.75.75 0 0 1 24 12Zm-6.343 5.657a.75.75 0 0 1 1.06 0l1.768 1.768a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-1.768-1.767a.75.75 0 0 1 0-1.061Zm2.828-14.142a.75.75 0 0 1 0 1.06l-1.768 1.768a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l1.767-1.768a.75.75 0 0 1 1.061 0Z"],h:24,w:24}},Lc={16:{p:["M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z"],h:16,w:16},24:{p:["M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z"],h:24,w:24}},Bc={24:{p:["M22 4.25a.75.75 0 0 0-1.5 0v15a.75.75 0 0 0 1.5 0v-15Zm-9.72 14.28a.75.75 0 1 1-1.06-1.06l4.97-4.97H1.75a.75.75 0 0 1 0-1.5h14.44l-4.97-4.97a.75.75 0 0 1 1.06-1.06l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25Z"],h:24,w:24}},Fc={16:{p:["M3.25 4a.25.25 0 0 0-.25.25v9a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h.75V4.25c0-.966.784-1.75 1.75-1.75h9.5c.966 0 1.75.784 1.75 1.75v8.25h.75a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75v-9a.25.25 0 0 0-.25-.25h-9.5Z","m7.97 7.97-2.75 2.75a.75.75 0 1 0 1.06 1.06l2.75-2.75 1.543 1.543a.25.25 0 0 0 .427-.177V6.25a.25.25 0 0 0-.25-.25H6.604a.25.25 0 0 0-.177.427L7.97 7.97Z"],h:16,w:16}},Hc={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"],h:16,w:16},24:{p:["M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25ZM9 9v11.5h11.25a.25.25 0 0 0 .25-.25V9Zm11.5-1.5V3.75a.25.25 0 0 0-.25-.25H9v4ZM3.5 9v11.25c0 .138.112.25.25.25H7.5V9Zm4-1.5v-4H3.75a.25.25 0 0 0-.25.25V7.5Z"],h:24,w:24}},Uc={16:{p:["M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"],h:16,w:16},24:{p:["M7.75 6.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z","M2.5 1h8.44a1.5 1.5 0 0 1 1.06.44l10.25 10.25a1.5 1.5 0 0 1 0 2.12l-8.44 8.44a1.5 1.5 0 0 1-2.12 0L1.44 12A1.497 1.497 0 0 1 1 10.94V2.5A1.5 1.5 0 0 1 2.5 1Zm0 1.5v8.44l10.25 10.25 8.44-8.44L10.94 2.5Z"],h:24,w:24}},Zc={16:{p:["M2 2h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm4.655 8.595a.75.75 0 0 1 0 1.06L4.03 14.28a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.095-2.095a.75.75 0 0 1 1.06 0ZM9.75 2.5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm0 5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm0 5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm-7.25-9v3h3v-3Z"],h:16,w:16},24:{p:["M3 6a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1Zm1.5 4.5h4v-4h-4Zm8.25-5a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm0 6a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm0 6a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm-2.97-2.53a.75.75 0 0 1 0 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47 2.97-2.97a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},$c={16:{p:["M14.184 1.143v-.001l1.422 2.464a1.75 1.75 0 0 1-.757 2.451L3.104 11.713a1.75 1.75 0 0 1-2.275-.702l-.447-.775a1.75 1.75 0 0 1 .53-2.32L11.682.573a1.748 1.748 0 0 1 2.502.57Zm-4.709 9.32h-.001l2.644 3.863a.75.75 0 1 1-1.238.848l-1.881-2.75v2.826a.75.75 0 0 1-1.5 0v-2.826l-1.881 2.75a.75.75 0 1 1-1.238-.848l2.049-2.992a.746.746 0 0 1 .293-.253l1.809-.87a.749.749 0 0 1 .944.252ZM9.436 3.92h-.001l-4.97 3.39.942 1.63 5.42-2.61Zm3.091-2.108h.001l-1.85 1.26 1.505 2.605 2.016-.97a.247.247 0 0 0 .13-.151.247.247 0 0 0-.022-.199l-1.422-2.464a.253.253 0 0 0-.161-.119.254.254 0 0 0-.197.038ZM1.756 9.157a.25.25 0 0 0-.075.33l.447.775a.25.25 0 0 0 .325.1l1.598-.769-.83-1.436-1.465 1Z"],h:16,w:16},24:{p:["M.408 15.13a2 2 0 0 1 .59-2.642L17.038 1.33a1.999 1.999 0 0 1 2.85.602l2.828 4.644a2 2 0 0 1-.851 2.847l-17.762 8.43a2 2 0 0 1-2.59-.807Zm5.263-4.066 1.987 3.44 8.712-4.135-2.857-4.76Zm12.06-1.34.001-.001 3.49-1.656a.498.498 0 0 0 .212-.712l-2.826-4.644a.503.503 0 0 0-.713-.151l-3.148 2.19Zm-13.295 2.2L1.854 13.72a.5.5 0 0 0-.147.66l1.105 1.915a.5.5 0 0 0 .648.201l2.838-1.347ZM17.155 22.87a.75.75 0 0 0 .226-1.036l-4-6.239a.75.75 0 0 0-.941-.278l-2.75 1.25a.75.75 0 0 0-.318.274l-3.25 4.989a.75.75 0 0 0 1.256.819l3.131-4.806.51-.232v5.64a.75.75 0 1 0 1.5 0v-6.22l3.6 5.613a.75.75 0 0 0 1.036.226Z"],h:24,w:24}},Wc={16:{p:["M11.905.42a1.5 1.5 0 0 1 2.144.49l1.692 2.93a1.5 1.5 0 0 1-.649 2.102L2.895 11.815a1.5 1.5 0 0 1-1.95-.602l-.68-1.176a1.5 1.5 0 0 1 .455-1.99L11.905.422Zm-3.374 9.79a.75.75 0 0 1 .944.253l2.644 3.864a.751.751 0 0 1-1.238.847L9 12.424v2.826a.75.75 0 0 1-1.5 0v-2.826l-1.881 2.75a.75.75 0 1 1-1.238-.848l2.048-2.992a.752.752 0 0 1 .293-.252l1.81-.871Zm2.476-3.965v-.001l1.356-.653-1.52-2.631-1.243.848ZM3.279 8.119l.835 1.445 1.355-.653-.947-1.64Z"],h:16,w:16},24:{p:["M17.155 22.87a.75.75 0 0 0 .226-1.036l-4-6.239a.75.75 0 0 0-.941-.277l-2.75 1.25a.75.75 0 0 0-.318.273l-3.25 4.989a.75.75 0 0 0 1.256.819l3.131-4.806.51-.232v5.64a.75.75 0 1 0 1.5 0v-6.22l3.6 5.613a.75.75 0 0 0 1.036.226ZM.408 15.13a2 2 0 0 1 .59-2.642L17.038 1.33a1.999 1.999 0 0 1 2.85.602l2.828 4.644a2 2 0 0 1-.851 2.847l-17.762 8.43a2 2 0 0 1-2.59-.807Zm13.105-9.521 2.857 4.76 1.361-.646-2.984-4.973Zm-7.842 5.455-1.235.86 1.862 3.225 1.36-.645Z"],h:24,w:24}},qc={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M9.25 12a.75.75 0 0 1-.22.53l-2.75 2.75a.75.75 0 0 1-1.06-1.06L7.44 12 5.22 9.78a.75.75 0 1 1 1.06-1.06l2.75 2.75c.141.14.22.331.22.53Zm2 2a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5Z","M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Vc={16:{p:["M1 2.75A.75.75 0 0 1 1.75 2h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 2.75Zm0 5A.75.75 0 0 1 1.75 7h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 7.75ZM1.75 12h12.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Z"],h:16,w:16}},Gc={16:{p:["M7.083 15.986c-.763-.087-1.499-.295-2.011-.884-.504-.581-.655-1.378-.655-2.299 0-.468.087-1.12.157-1.638l.015-.112H3.167c-.603 0-1.174-.086-1.669-.334a2.415 2.415 0 0 1-1.136-1.2c-.454-.998-.438-2.447-.188-4.316l.04-.306C.32 4.108.41 3.424.526 2.864c.132-.63.316-1.209.669-1.672C1.947.205 3.211.053 4.917.053c1.848 0 3.234.332 4.388.652l.474.133c.658.187 1.201.341 1.726.415a1.75 1.75 0 0 1 1.662-1.2h1c.966 0 1.75.784 1.75 1.75v7.5a1.75 1.75 0 0 1-1.75 1.75h-1a1.75 1.75 0 0 1-1.514-.872c-.259.105-.59.268-.919.508-.671.491-1.317 1.285-1.317 2.614v.5c0 1.201-.994 2.336-2.334 2.183Zm4.334-13.232c-.706-.089-1.39-.284-2.072-.479l-.441-.125c-1.096-.304-2.335-.597-3.987-.597-1.794 0-2.28.222-2.529.548-.147.193-.275.505-.393 1.07-.105.502-.188 1.124-.295 1.93l-.04.3c-.25 1.882-.19 2.933.067 3.497a.923.923 0 0 0 .443.48c.208.104.52.175.997.175h1.75c.685 0 1.295.577 1.205 1.335-.022.192-.049.39-.075.586-.066.488-.13.97-.13 1.329 0 .808.144 1.15.288 1.316.137.157.401.303 1.048.377.307.035.664-.237.664-.693v-.5c0-1.922.978-3.127 1.932-3.825a5.878 5.878 0 0 1 1.568-.809Zm1.75 6.798h1a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-1a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25Z"],h:16,w:16},24:{p:["M12.596 21.957c-1.301.092-2.303-.986-2.303-2.206v-1.053c0-2.666-1.813-3.785-2.774-4.2a1.884 1.884 0 0 0-.523-.13A1.75 1.75 0 0 1 5.25 16h-1.5A1.75 1.75 0 0 1 2 14.25V3.75C2 2.784 2.784 2 3.75 2h1.5a1.75 1.75 0 0 1 1.742 1.58c.838-.06 1.667-.296 2.69-.586l.602-.17C11.748 2.419 13.497 2 15.828 2c2.188 0 3.693.204 4.583 1.372.422.554.65 1.255.816 2.05.148.708.262 1.57.396 2.58l.051.39c.319 2.386.328 4.18-.223 5.394-.293.644-.743 1.125-1.355 1.431-.59.296-1.284.404-2.036.404h-2.05l.056.429c.025.18.05.372.076.572.06.483.117 1.006.117 1.438 0 1.245-.222 2.253-.92 2.942-.684.674-1.668.879-2.743.955ZM7 5.082v7.779c.383.025.759.113 1.113.26 1.192.514 3.68 2.027 3.68 5.577v1.053c0 .436.347.734.698.71 1.021-.072 1.52-.258 1.795-.528.26-.256.473-.748.473-1.873 0-.328-.045-.768-.105-1.25l-.07-.527c-.04-.297-.079-.59-.105-.834-.082-.758.53-1.328 1.211-1.328h2.37c.625 0 1.06-.092 1.365-.245.285-.142.5-.359.66-.711.355-.78.422-2.176.102-4.574l-.05-.385c-.137-1.027-.243-1.827-.379-2.477-.152-.73-.324-1.165-.54-1.448-.386-.507-1.113-.781-3.39-.781-2.136 0-3.736.379-5.142.771-.191.052-.38.106-.568.16-1.039.296-2.059.587-3.118.651ZM3.75 3.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},zc={16:{p:["M8.834.066c.763.087 1.5.295 2.01.884.505.581.656 1.378.656 2.3 0 .467-.087 1.119-.157 1.637L11.328 5h1.422c.603 0 1.174.085 1.668.333.508.254.911.679 1.137 1.2.453.998.438 2.447.188 4.316l-.04.306c-.105.79-.195 1.473-.313 2.033-.131.63-.315 1.209-.668 1.672C13.97 15.847 12.706 16 11 16c-1.848 0-3.234-.333-4.388-.653-.165-.045-.323-.09-.475-.133-.658-.186-1.2-.34-1.725-.415A1.75 1.75 0 0 1 2.75 16h-1A1.75 1.75 0 0 1 0 14.25v-7.5C0 5.784.784 5 1.75 5h1a1.75 1.75 0 0 1 1.514.872c.258-.105.59-.268.918-.508C5.853 4.874 6.5 4.079 6.5 2.75v-.5c0-1.202.994-2.337 2.334-2.184ZM4.5 13.3c.705.088 1.39.284 2.072.478l.441.125c1.096.305 2.334.598 3.987.598 1.794 0 2.28-.223 2.528-.549.147-.193.276-.505.394-1.07.105-.502.188-1.124.295-1.93l.04-.3c.25-1.882.189-2.933-.068-3.497a.921.921 0 0 0-.442-.48c-.208-.104-.52-.174-.997-.174H11c-.686 0-1.295-.577-1.206-1.336.023-.192.05-.39.076-.586.065-.488.13-.97.13-1.328 0-.809-.144-1.15-.288-1.316-.137-.158-.402-.304-1.048-.378C8.357 1.521 8 1.793 8 2.25v.5c0 1.922-.978 3.128-1.933 3.825a5.831 5.831 0 0 1-1.567.81ZM2.75 6.5h-1a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h1a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M12.596 2.043c1.075.076 2.059.281 2.743.956.698.688.92 1.696.92 2.941 0 .432-.057.955-.117 1.438-.026.2-.051.392-.076.572l-.056.429h2.05c.752 0 1.446.108 2.036.404.612.306 1.062.787 1.355 1.431.551 1.214.542 3.008.223 5.394l-.051.39c-.134 1.01-.248 1.872-.396 2.58-.166.795-.394 1.496-.816 2.05-.89 1.168-2.395 1.372-4.583 1.372-2.331 0-4.08-.418-5.544-.824l-.602-.17c-1.023-.29-1.852-.526-2.69-.586A1.75 1.75 0 0 1 5.25 22h-1.5A1.75 1.75 0 0 1 2 20.25V9.75C2 8.784 2.784 8 3.75 8h1.5a1.75 1.75 0 0 1 1.746 1.633 1.85 1.85 0 0 0 .523-.131c.961-.415 2.774-1.534 2.774-4.2V4.249c0-1.22 1.002-2.298 2.303-2.206ZM7 18.918c1.059.064 2.079.355 3.118.652l.568.16c1.406.39 3.006.77 5.142.77 2.277 0 3.004-.274 3.39-.781.216-.283.388-.718.54-1.448.136-.65.242-1.45.379-2.477l.05-.384c.32-2.4.253-3.795-.102-4.575-.16-.352-.375-.568-.66-.711-.305-.153-.74-.245-1.365-.245h-2.37c-.681 0-1.293-.57-1.211-1.328.026-.243.065-.537.105-.834l.07-.527c.06-.482.105-.921.105-1.25 0-1.125-.213-1.617-.473-1.873-.275-.27-.774-.455-1.795-.528-.351-.024-.698.274-.698.71v1.053c0 3.55-2.488 5.063-3.68 5.577-.372.16-.754.232-1.113.26ZM3.75 20.5h1.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25Z"],h:24,w:24}},jc={16:{p:["M5.433 2.304A4.492 4.492 0 0 0 3.5 6c0 1.598.832 3.002 2.09 3.802.518.328.929.923.902 1.64v.008l-.164 3.337a.75.75 0 1 1-1.498-.073l.163-3.33c.002-.085-.05-.216-.207-.316A5.996 5.996 0 0 1 2 6a5.993 5.993 0 0 1 2.567-4.92 1.482 1.482 0 0 1 1.673-.04c.462.296.76.827.76 1.423v2.82c0 .082.041.16.11.206l.75.51a.25.25 0 0 0 .28 0l.75-.51A.249.249 0 0 0 9 5.282V2.463c0-.596.298-1.127.76-1.423a1.482 1.482 0 0 1 1.673.04A5.993 5.993 0 0 1 14 6a5.996 5.996 0 0 1-2.786 5.068c-.157.1-.209.23-.207.315l.163 3.33a.752.752 0 0 1-1.094.714.75.75 0 0 1-.404-.64l-.164-3.345c-.027-.717.384-1.312.902-1.64A4.495 4.495 0 0 0 12.5 6a4.492 4.492 0 0 0-1.933-3.696c-.024.017-.067.067-.067.16v2.818a1.75 1.75 0 0 1-.767 1.448l-.75.51a1.75 1.75 0 0 1-1.966 0l-.75-.51A1.75 1.75 0 0 1 5.5 5.282V2.463c0-.092-.043-.142-.067-.159Z"],h:16,w:16},24:{p:["M7.875 2.292a.114.114 0 0 0-.032.018A7.239 7.239 0 0 0 4.75 8.25a7.248 7.248 0 0 0 3.654 6.297c.57.327.982.955.941 1.682v.002l-.317 6.058a.75.75 0 1 1-1.498-.078l.317-6.062v-.004c.006-.09-.047-.215-.188-.296A8.749 8.749 0 0 1 3.25 8.25a8.738 8.738 0 0 1 3.732-7.169 1.547 1.547 0 0 1 1.709-.064c.484.292.809.835.809 1.46v4.714a.25.25 0 0 0 .119.213l2.25 1.385c.08.05.182.05.262 0l2.25-1.385a.25.25 0 0 0 .119-.213V2.478c0-.626.325-1.169.81-1.461a1.547 1.547 0 0 1 1.708.064 8.741 8.741 0 0 1 3.732 7.17 8.747 8.747 0 0 1-4.41 7.598c-.14.081-.193.206-.188.296v.004l.318 6.062a.75.75 0 1 1-1.498.078l-.317-6.058v-.002c-.041-.727.37-1.355.94-1.682A7.247 7.247 0 0 0 19.25 8.25a7.239 7.239 0 0 0-3.093-5.94.114.114 0 0 0-.032-.018l-.01-.001c-.003 0-.014 0-.031.01-.036.022-.084.079-.084.177V7.19c0 .608-.315 1.172-.833 1.49l-2.25 1.385a1.75 1.75 0 0 1-1.834 0l-2.25-1.384A1.752 1.752 0 0 1 8 7.192V2.477c0-.098-.048-.155-.084-.176a.068.068 0 0 0-.031-.011l-.01.001Z"],h:24,w:24}},Kc={16:{p:["M1.5 8a6.5 6.5 0 1 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","m8.677 12.427 2.896 2.896a.25.25 0 0 0 .427-.177V13h3.25a.75.75 0 0 0 0-1.5H12V9.354a.25.25 0 0 0-.427-.177l-2.896 2.896a.25.25 0 0 0 0 .354ZM11.28 6.78a.749.749 0 1 0-1.06-1.06L7.25 8.689 5.78 7.22a.749.749 0 1 0-1.06 1.06l2 2a.749.749 0 0 0 1.06 0l3.5-3.5Z"],h:16,w:16},24:{p:["M12 2.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5.75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23l-3.728 3.314a.307.307 0 0 0 0 .46Zm3.521-8.2a.749.749 0 1 0-1.06-1.06l-5.97 5.969-2.47-2.469a.749.749 0 1 0-1.06 1.06l3 3a.749.749 0 0 0 1.06 0l6.5-6.5Z"],h:24,w:24}},Yc={16:{p:["M1.5 8a6.5 6.5 0 1 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","m8.677 12.427 2.896 2.896a.25.25 0 0 0 .427-.177V13h3.25a.75.75 0 0 0 0-1.5H12V9.354a.25.25 0 0 0-.427-.177l-2.896 2.896a.25.25 0 0 0 0 .354ZM11.28 5.78a.749.749 0 1 0-1.06-1.06l-5.5 5.5a.749.749 0 1 0 1.06 1.06l5.5-5.5Z"],h:16,w:16},24:{p:["M12 2.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5.75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23l-3.728 3.314a.307.307 0 0 0 0 .46Zm3.521-9.7a.749.749 0 1 0-1.06-1.06l-9.5 9.5a.749.749 0 1 0 1.06 1.06l9.5-9.5Z"],h:24,w:24}},Xc={16:{p:["M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M16 1.75V3h5.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H8V1.75C8 .784 8.784 0 9.75 0h4.5C15.216 0 16 .784 16 1.75Zm-6.5 0V3h5V1.75a.25.25 0 0 0-.25-.25h-4.5a.25.25 0 0 0-.25.25ZM4.997 6.178a.75.75 0 1 0-1.493.144L4.916 20.92a1.75 1.75 0 0 0 1.742 1.58h10.684a1.75 1.75 0 0 0 1.742-1.581l1.413-14.597a.75.75 0 0 0-1.494-.144l-1.412 14.596a.25.25 0 0 1-.249.226H6.658a.25.25 0 0 1-.249-.226L4.997 6.178Z","M9.206 7.501a.75.75 0 0 1 .793.705l.5 8.5A.75.75 0 1 1 9 16.794l-.5-8.5a.75.75 0 0 1 .705-.793Zm6.293.793A.75.75 0 1 0 14 8.206l-.5 8.5a.75.75 0 0 0 1.498.088l.5-8.5Z"],h:24,w:24}},Qc={16:{p:["m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"],h:16,w:16},24:{p:["M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"],h:24,w:24}},Jc={16:{p:["M9.573 4.427 6.177 7.823a.25.25 0 0 0 0 .354l3.396 3.396a.25.25 0 0 0 .427-.177V4.604a.25.25 0 0 0-.427-.177Z"],h:16,w:16},24:{p:["m8.854 11.646 5.792-5.792a.5.5 0 0 1 .854.353v11.586a.5.5 0 0 1-.854.353l-5.792-5.792a.5.5 0 0 1 0-.708Z"],h:24,w:24}},eu={16:{p:["m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"],h:16,w:16},24:{p:["m15.146 12.354-5.792 5.792a.5.5 0 0 1-.854-.353V6.207a.5.5 0 0 1 .854-.353l5.792 5.792a.5.5 0 0 1 0 .708Z"],h:24,w:24}},tu={16:{p:["m4.427 9.573 3.396-3.396a.25.25 0 0 1 .354 0l3.396 3.396a.25.25 0 0 1-.177.427H4.604a.25.25 0 0 1-.177-.427Z"],h:16,w:16},24:{p:["m12.354 8.854 5.792 5.792a.5.5 0 0 1-.353.854H6.207a.5.5 0 0 1-.353-.854l5.792-5.792a.5.5 0 0 1 .708 0Z"],h:24,w:24}},nu={16:{p:["M3.217 6.962A3.75 3.75 0 0 1 0 3.25v-.5C0 1.784.784 1 1.75 1h1.356c.228-.585.796-1 1.462-1h6.864c.647 0 1.227.397 1.462 1h1.356c.966 0 1.75.784 1.75 1.75v.5a3.75 3.75 0 0 1-3.217 3.712 5.014 5.014 0 0 1-2.771 3.117l.144 1.446c.005.05.03.12.114.204.086.087.217.17.373.227.283.103.618.274.89.568.285.31.467.723.467 1.226v.75h1.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H4v-.75c0-.503.182-.916.468-1.226.27-.294.606-.465.889-.568.139-.048.266-.126.373-.227.084-.085.109-.153.114-.204l.144-1.446a5.015 5.015 0 0 1-2.77-3.117ZM4.5 1.568V5.5a3.5 3.5 0 1 0 7 0V1.568a.068.068 0 0 0-.068-.068H4.568a.068.068 0 0 0-.068.068Zm2.957 8.902-.12 1.204c-.093.925-.858 1.47-1.467 1.691a.766.766 0 0 0-.3.176c-.037.04-.07.093-.07.21v.75h5v-.75c0-.117-.033-.17-.07-.21a.766.766 0 0 0-.3-.176c-.609-.221-1.374-.766-1.466-1.69l-.12-1.204a5.064 5.064 0 0 1-1.087 0ZM13 2.5v2.872a2.25 2.25 0 0 0 1.5-2.122v-.5a.25.25 0 0 0-.25-.25H13Zm-10 0H1.75a.25.25 0 0 0-.25.25v.5c0 .98.626 1.813 1.5 2.122Z"],h:16,w:16},24:{p:["M5.09 10.121A5.251 5.251 0 0 1 1 5V3.75C1 2.784 1.784 2 2.75 2h2.364c.236-.586.81-1 1.48-1h10.812c.67 0 1.244.414 1.48 1h2.489c.966 0 1.75.784 1.75 1.75V5a5.252 5.252 0 0 1-4.219 5.149 7.01 7.01 0 0 1-4.644 5.478l.231 3.003a.5.5 0 0 0 .034.031c.079.065.303.203.836.282.838.124 1.637.81 1.637 1.807v.75h2.25a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1 0-1.5H7v-.75c0-.996.8-1.683 1.637-1.807.533-.08.757-.217.836-.282a.5.5 0 0 0 .034-.031l.231-3.003A7.012 7.012 0 0 1 5.09 10.12ZM6.5 2.594V9a5.5 5.5 0 1 0 11 0V2.594a.094.094 0 0 0-.094-.094H6.594a.094.094 0 0 0-.094.094Zm4.717 13.363-.215 2.793-.001.021-.003.043a1.212 1.212 0 0 1-.022.147c-.05.237-.194.567-.553.86-.348.286-.853.5-1.566.605a.478.478 0 0 0-.274.136.264.264 0 0 0-.083.188v.75h7v-.75a.264.264 0 0 0-.083-.188.478.478 0 0 0-.274-.136c-.713-.105-1.218-.32-1.567-.604-.358-.294-.502-.624-.552-.86a1.22 1.22 0 0 1-.025-.19l-.001-.022-.215-2.793a7.069 7.069 0 0 1-1.566 0ZM19 8.578A3.751 3.751 0 0 0 21.625 5V3.75a.25.25 0 0 0-.25-.25H19ZM5 3.5H2.75a.25.25 0 0 0-.25.25V5A3.752 3.752 0 0 0 5 8.537Z"],h:24,w:24}},ru={16:{p:["M6.71 10H2.332l-.874 2.498a.75.75 0 0 1-1.415-.496l3.39-9.688a1.217 1.217 0 0 1 2.302.018l3.227 9.681a.75.75 0 0 1-1.423.474Zm3.13-4.358C10.53 4.374 11.87 4 13 4c1.5 0 3 .939 3 2.601v5.649a.75.75 0 0 1-1.448.275C13.995 12.82 13.3 13 12.5 13c-.77 0-1.514-.231-2.078-.709-.577-.488-.922-1.199-.922-2.041 0-.694.265-1.411.887-1.944C11 7.78 11.88 7.5 13 7.5h1.5v-.899c0-.54-.5-1.101-1.5-1.101-.869 0-1.528.282-1.84.858a.75.75 0 1 1-1.32-.716ZM6.21 8.5 4.574 3.594 2.857 8.5Zm8.29.5H13c-.881 0-1.375.22-1.637.444-.253.217-.363.5-.363.806 0 .408.155.697.39.896.249.21.63.354 1.11.354.732 0 1.26-.209 1.588-.449.35-.257.412-.495.412-.551Z"],h:16,w:16},24:{p:["M10.414 15H3.586l-1.631 4.505a.75.75 0 1 1-1.41-.51l5.08-14.03a1.463 1.463 0 0 1 2.75 0l5.08 14.03a.75.75 0 1 1-1.411.51Zm4.532-5.098c.913-1.683 2.703-2.205 4.284-2.205 1.047 0 2.084.312 2.878.885.801.577 1.392 1.455 1.392 2.548v8.12a.75.75 0 0 1-1.5 0v-.06l-.044.025c-.893.52-2.096.785-3.451.785-1.051 0-2.048-.315-2.795-.948-.76-.643-1.217-1.578-1.217-2.702 0-.919.349-1.861 1.168-2.563.81-.694 2-1.087 3.569-1.087H22v-1.57c0-.503-.263-.967-.769-1.332-.513-.37-1.235-.6-2.001-.6-1.319 0-2.429.43-2.966 1.42a.75.75 0 0 1-1.318-.716ZM9.87 13.5 7 5.572 4.13 13.5Zm12.13.7h-2.77c-1.331 0-2.134.333-2.593.726a1.822 1.822 0 0 0-.644 1.424c0 .689.267 1.203.686 1.557.43.365 1.065.593 1.826.593 1.183 0 2.102-.235 2.697-.581.582-.34.798-.74.798-1.134Z"],h:24,w:24}},iu={16:{p:["M1.22 6.28a.749.749 0 0 1 0-1.06l3.5-3.5a.749.749 0 1 1 1.06 1.06L3.561 5h7.188l.001.007L10.749 5c.058 0 .116.007.171.019A4.501 4.501 0 0 1 10.5 14H8.796a.75.75 0 0 1 0-1.5H10.5a3 3 0 1 0 0-6H3.561L5.78 8.72a.749.749 0 1 1-1.06 1.06l-3.5-3.5Z"],h:16,w:16}},su={16:{p:["m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 23a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 21.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 23Z","M11.47 1.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 2.81 9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042ZM12 22.25a.75.75 0 0 1-.75-.75v-5.75a.75.75 0 0 1 1.5 0v5.75a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z","M12 1.5a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6A.75.75 0 0 1 12 1.5Z"],h:24,w:24}},ou={16:{p:["M12.914 5.914a2 2 0 0 0-2.828-2.828l-.837.837a.75.75 0 1 1-1.06-1.061l.836-.837a3.5 3.5 0 1 1 4.95 4.95l-.195.194a.75.75 0 0 1-1.06-1.06l.194-.195Zm-1.87 3.482a.759.759 0 0 1-.07.079c-.63.63-1.468 1.108-2.343 1.263-.89.159-1.86-.017-2.606-.763a.75.75 0 1 1 1.06-1.06c.329.327.767.438 1.284.347.493-.088 1.018-.36 1.445-.752l-1.247-.897a.709.709 0 0 1-.01-.008l-.295-.212c-.94-.597-1.984-.499-2.676.193l-2.5 2.5a2 2 0 1 0 2.828 2.828l.837-.836a.75.75 0 0 1 1.06 1.06l-.836.837a3.5 3.5 0 0 1-4.95-4.95l2.5-2.5a3.472 3.472 0 0 1 1.354-.848L2.312 3.109a.75.75 0 0 1 .876-1.218l5.93 4.27c.115.074.226.155.335.24l6.235 4.49a.75.75 0 0 1-.876 1.218l-3.768-2.713Z"],h:16,w:16},24:{p:["M20.347 3.653a3.936 3.936 0 0 0-5.567 0l-1.75 1.75a.75.75 0 0 1-1.06-1.06l1.75-1.75a5.436 5.436 0 0 1 7.688 7.687l-1.564 1.564a.75.75 0 0 1-1.06-1.06l1.563-1.564a3.936 3.936 0 0 0 0-5.567ZM9.786 12.369a.75.75 0 0 1 1.053.125c.096.122.2.24.314.353 1.348 1.348 3.386 1.587 4.89.658l-3.922-2.858a.745.745 0 0 1-.057-.037c-1.419-1.013-3.454-.787-4.784.543L3.653 14.78a3.936 3.936 0 0 0 5.567 5.567l3-3a.75.75 0 1 1 1.06 1.06l-3 3a5.436 5.436 0 1 1-7.688-7.687l3.628-3.628a5.517 5.517 0 0 1 3.014-1.547l-7.05-5.136a.75.75 0 0 1 .883-1.213l20.25 14.75a.75.75 0 0 1-.884 1.213l-5.109-3.722c-2.155 1.709-5.278 1.425-7.232-.53a5.491 5.491 0 0 1-.431-.485.75.75 0 0 1 .125-1.053Z"],h:24,w:24}},au={16:{p:["M5.5 4v2h7A1.5 1.5 0 0 1 14 7.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5v-6A1.5 1.5 0 0 1 3.499 6H4V4a4 4 0 0 1 7.371-2.154.75.75 0 0 1-1.264.808A2.5 2.5 0 0 0 5.5 4Zm-2 3.5v6h9v-6h-9Z"],h:16,w:16},24:{p:["M7.5 7.25V9h11a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-8A2.5 2.5 0 0 1 5.5 9H6V7.25C6 3.845 8.503 1 12 1c2.792 0 4.971 1.825 5.718 4.31a.75.75 0 1 1-1.436.432C15.71 3.84 14.079 2.5 12 2.5c-2.578 0-4.5 2.08-4.5 4.75Zm-3 4.25v8a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-13a1 1 0 0 0-1 1Z"],h:24,w:24}},lu={16:{p:["M7.563 2.069A.75.75 0 0 1 8 2.75v10.5a.751.751 0 0 1-1.238.57L3.472 11H1.75A1.75 1.75 0 0 1 0 9.25v-2.5C0 5.784.784 5 1.75 5h1.723l3.289-2.82a.75.75 0 0 1 .801-.111ZM6.5 4.38 4.238 6.319a.748.748 0 0 1-.488.181h-2a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2c.179 0 .352.064.488.18L6.5 11.62Zm6.096-2.038a.75.75 0 0 1 1.06 0 8 8 0 0 1 0 11.314.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042 6.5 6.5 0 0 0 0-9.193.75.75 0 0 1 0-1.06Zm-1.06 2.121-.001.001a5 5 0 0 1 0 7.07.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734 3.5 3.5 0 0 0 0-4.95.75.75 0 1 1 1.061-1.061Z"],h:16,w:16},24:{p:["M11.553 3.064A.75.75 0 0 1 12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805a.752.752 0 0 1 .808-.13ZM10.5 5.445l-4.245 3.86a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86Zm8.218-1.223a.75.75 0 0 1 1.06 0c4.296 4.296 4.296 11.26 0 15.556a.75.75 0 0 1-1.06-1.06 9.5 9.5 0 0 0 0-13.436.75.75 0 0 1 0-1.06Z","M16.243 7.757a.75.75 0 1 0-1.061 1.061 4.5 4.5 0 0 1 0 6.364.75.75 0 0 0 1.06 1.06 6 6 0 0 0 0-8.485Z"],h:24,w:24}},cu={16:{p:["M10.5 3.5H1.75a.25.25 0 0 0-.25.25v.32L8 7.88l3.02-1.77a.75.75 0 0 1 .758 1.295L8.379 9.397a.75.75 0 0 1-.758 0L1.5 5.809v6.441c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4.5a.75.75 0 0 1 1.5 0v4.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25V4.513a.75.75 0 0 1 0-.027V3.75C0 2.784.784 2 1.75 2h8.75a.75.75 0 0 1 0 1.5Z","M14 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],h:16,w:16},24:{p:["M1.75 4.5a.25.25 0 0 0-.25.25v.852l10.36 7a.25.25 0 0 0 .28 0l5.69-3.845A.75.75 0 0 1 18.67 10l-5.69 3.845c-.592.4-1.368.4-1.96 0L1.5 7.412V19.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25V4.75C0 3.784.784 3 1.75 3h15.5a.75.75 0 0 1 0 1.5H1.75Z","M24 5.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"],h:24,w:24}},uu={16:{p:["M6.415.52a2.677 2.677 0 0 1 3.17 0l.928.68c.153.113.33.186.518.215l1.138.175a2.678 2.678 0 0 1 2.241 2.24l.175 1.138c.029.187.102.365.215.518l.68.928a2.677 2.677 0 0 1 0 3.17l-.68.928a1.186 1.186 0 0 0-.215.518l-.175 1.138a2.678 2.678 0 0 1-2.241 2.241l-1.138.175a1.186 1.186 0 0 0-.518.215l-.928.68a2.677 2.677 0 0 1-3.17 0l-.928-.68a1.186 1.186 0 0 0-.518-.215L3.83 14.41a2.678 2.678 0 0 1-2.24-2.24l-.175-1.138a1.186 1.186 0 0 0-.215-.518l-.68-.928a2.677 2.677 0 0 1 0-3.17l.68-.928a1.17 1.17 0 0 0 .215-.518l.175-1.14a2.678 2.678 0 0 1 2.24-2.24l1.138-.175c.187-.029.365-.102.518-.215l.928-.68Zm2.282 1.209a1.18 1.18 0 0 0-1.394 0l-.928.68a2.67 2.67 0 0 1-1.18.489l-1.136.174a1.18 1.18 0 0 0-.987.987l-.174 1.137a2.67 2.67 0 0 1-.489 1.18l-.68.927c-.305.415-.305.98 0 1.394l.68.928c.256.348.423.752.489 1.18l.174 1.136c.078.51.478.909.987.987l1.137.174c.427.066.831.233 1.18.489l.927.68c.415.305.98.305 1.394 0l.928-.68a2.67 2.67 0 0 1 1.18-.489l1.136-.174c.51-.078.909-.478.987-.987l.174-1.137c.066-.427.233-.831.489-1.18l.68-.927c.305-.415.305-.98 0-1.394l-.68-.928a2.67 2.67 0 0 1-.489-1.18l-.174-1.136a1.18 1.18 0 0 0-.987-.987l-1.137-.174a2.67 2.67 0 0 1-1.18-.489ZM6.92 6.085h.001a.75.75 0 0 1-1.342-.67c.169-.339.436-.701.849-.977C6.846 4.16 7.369 4 8 4a2.76 2.76 0 0 1 1.638.525c.502.377.862.965.862 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.109-.073.22-.139.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2.517-7.665c.112-.223.268-.424.488-.57C11.186 8.12 11.506 8 12 8c.384 0 .766.118 1.034.319a.953.953 0 0 1 .403.806c0 .48-.218.81-.62 1.186a9.293 9.293 0 0 1-.409.354 19.8 19.8 0 0 0-.294.249c-.246.213-.524.474-.738.795l-.126.19V13.5a.75.75 0 0 0 1.5 0v-1.12c.09-.1.203-.208.347-.333.063-.055.14-.119.222-.187.166-.14.358-.3.52-.452.536-.5 1.098-1.2 1.098-2.283a2.45 2.45 0 0 0-1.003-2.006C13.37 6.695 12.658 6.5 12 6.5c-.756 0-1.373.191-1.861.517a2.944 2.944 0 0 0-.997 1.148.75.75 0 0 0 1.341.67Z","M9.864 1.2a3.61 3.61 0 0 1 4.272 0l1.375 1.01c.274.2.593.333.929.384l1.686.259a3.61 3.61 0 0 1 3.021 3.02l.259 1.687c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.686a3.61 3.61 0 0 1-3.02 3.021l-1.687.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.686-.259a3.61 3.61 0 0 1-3.021-3.02l-.259-1.687a2.106 2.106 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.686a3.61 3.61 0 0 1 3.02-3.021l1.687-.259c.336-.051.655-.183.929-.384Zm3.384 1.209a2.11 2.11 0 0 0-2.496 0l-1.376 1.01a3.61 3.61 0 0 1-1.589.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.614 3.614 0 0 1-.658 1.59l-1.01 1.375a2.11 2.11 0 0 0 0 2.496l1.01 1.376a3.61 3.61 0 0 1 .658 1.589l.258 1.686a2.11 2.11 0 0 0 1.766 1.765l1.686.26a3.613 3.613 0 0 1 1.59.657l1.375 1.01a2.11 2.11 0 0 0 2.496 0l1.376-1.01a3.61 3.61 0 0 1 1.589-.658l1.686-.258a2.11 2.11 0 0 0 1.765-1.766l.26-1.686a3.613 3.613 0 0 1 .657-1.59l1.01-1.375a2.11 2.11 0 0 0 0-2.496l-1.01-1.376a3.61 3.61 0 0 1-.658-1.589l-.258-1.686a2.111 2.111 0 0 0-1.766-1.766l-1.686-.258a3.614 3.614 0 0 1-1.59-.658Z"],h:24,w:24}},hu={16:{p:["M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z","M11.78 4.72a.749.749 0 1 1-1.06 1.06L8.75 3.811V9.5a.75.75 0 0 1-1.5 0V3.811L5.28 5.78a.749.749 0 1 1-1.06-1.06l3.25-3.25a.749.749 0 0 1 1.06 0l3.25 3.25Z"],h:16,w:16},24:{p:["M4 20.25V18a.75.75 0 0 1 1.5 0v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25Z","M5.22 9.53a.749.749 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 1 1-1.06 1.06l-4.97-4.969V16.75a.75.75 0 0 1-1.5 0V4.561L6.28 9.53a.749.749 0 0 1-1.06 0Z"],h:24,w:24}},pu={16:{p:["m9.585.52.929.68c.153.112.331.186.518.215l1.138.175a2.678 2.678 0 0 1 2.24 2.24l.174 1.139c.029.187.103.365.215.518l.68.928a2.677 2.677 0 0 1 0 3.17l-.68.928a1.174 1.174 0 0 0-.215.518l-.175 1.138a2.678 2.678 0 0 1-2.241 2.241l-1.138.175a1.17 1.17 0 0 0-.518.215l-.928.68a2.677 2.677 0 0 1-3.17 0l-.928-.68a1.174 1.174 0 0 0-.518-.215L3.83 14.41a2.678 2.678 0 0 1-2.24-2.24l-.175-1.138a1.17 1.17 0 0 0-.215-.518l-.68-.928a2.677 2.677 0 0 1 0-3.17l.68-.928c.112-.153.186-.331.215-.518l.175-1.14a2.678 2.678 0 0 1 2.24-2.24l1.139-.175c.187-.029.365-.103.518-.215l.928-.68a2.677 2.677 0 0 1 3.17 0ZM7.303 1.728l-.927.68a2.67 2.67 0 0 1-1.18.489l-1.137.174a1.179 1.179 0 0 0-.987.987l-.174 1.136a2.677 2.677 0 0 1-.489 1.18l-.68.928a1.18 1.18 0 0 0 0 1.394l.68.927c.256.348.424.753.489 1.18l.174 1.137c.078.509.478.909.987.987l1.136.174a2.67 2.67 0 0 1 1.18.489l.928.68c.414.305.979.305 1.394 0l.927-.68a2.67 2.67 0 0 1 1.18-.489l1.137-.174a1.18 1.18 0 0 0 .987-.987l.174-1.136a2.67 2.67 0 0 1 .489-1.18l.68-.928a1.176 1.176 0 0 0 0-1.394l-.68-.927a2.686 2.686 0 0 1-.489-1.18l-.174-1.137a1.179 1.179 0 0 0-.987-.987l-1.136-.174a2.677 2.677 0 0 1-1.18-.489l-.928-.68a1.176 1.176 0 0 0-1.394 0ZM11.28 6.78l-3.75 3.75a.75.75 0 0 1-1.06 0L4.72 8.78a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L7 8.94l3.22-3.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.03 9.78a.75.75 0 0 0-1.06-1.06l-5.47 5.47-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6-6Z","m14.136 1.2 1.375 1.01c.274.201.593.333.929.384l1.687.259a3.61 3.61 0 0 1 3.02 3.021l.259 1.686c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.687a3.61 3.61 0 0 1-3.021 3.02l-1.686.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.687-.259a3.61 3.61 0 0 1-3.02-3.021l-.259-1.686a2.117 2.117 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.687a3.61 3.61 0 0 1 3.021-3.02l1.686-.259c.336-.051.655-.183.929-.384L9.864 1.2a3.61 3.61 0 0 1 4.272 0Zm-3.384 1.209-1.375 1.01a3.614 3.614 0 0 1-1.59.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.61 3.61 0 0 1-.658 1.589l-1.01 1.376a2.11 2.11 0 0 0 0 2.496l1.01 1.375c.344.469.57 1.015.658 1.59l.258 1.686c.14.911.855 1.626 1.766 1.766l1.686.258a3.61 3.61 0 0 1 1.589.658l1.376 1.01a2.11 2.11 0 0 0 2.496 0l1.375-1.01a3.613 3.613 0 0 1 1.59-.657l1.686-.26a2.11 2.11 0 0 0 1.766-1.765l.258-1.686a3.61 3.61 0 0 1 .658-1.589l1.01-1.376a2.11 2.11 0 0 0 0-2.496l-1.01-1.375a3.613 3.613 0 0 1-.657-1.59l-.26-1.686a2.11 2.11 0 0 0-1.765-1.766l-1.686-.258a3.61 3.61 0 0 1-1.589-.658l-1.376-1.01a2.11 2.11 0 0 0-2.496 0Z"],h:24,w:24}},du={16:{p:["M7.75 14A1.75 1.75 0 0 1 6 12.25v-8.5C6 2.784 6.784 2 7.75 2h6.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14Zm-.25-1.75c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-6.5a.25.25 0 0 0-.25.25ZM4.9 3.508a.75.75 0 0 1-.274 1.025.249.249 0 0 0-.126.217v6.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.75 1.75 0 0 1 3 11.25v-6.5c0-.649.353-1.214.874-1.516a.75.75 0 0 1 1.025.274ZM1.625 5.533h.001a.249.249 0 0 0-.126.217v4.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.748 1.748 0 0 1 0 10.25v-4.5a1.748 1.748 0 0 1 .873-1.516.75.75 0 1 1 .752 1.299Z"],h:16,w:16},24:{p:["M10 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2Zm-.5-2a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V4a.5.5 0 0 0-.5-.5H10a.5.5 0 0 0-.5.5ZM6.17 4.165a.75.75 0 0 1-.335 1.006c-.228.114-.295.177-.315.201a.035.035 0 0 0-.008.016.423.423 0 0 0-.012.112v13c0 .07.008.102.012.112a.03.03 0 0 0 .008.016c.02.024.087.087.315.201a.749.749 0 1 1-.67 1.342c-.272-.136-.58-.315-.81-.598C4.1 19.259 4 18.893 4 18.5v-13c0-.393.1-.759.355-1.073.23-.283.538-.462.81-.598a.75.75 0 0 1 1.006.336ZM2.15 5.624a.75.75 0 0 1-.274 1.025c-.15.087-.257.17-.32.245C1.5 6.96 1.5 6.99 1.5 7v10c0 .01 0 .04.056.106.063.074.17.158.32.245a.75.75 0 0 1-.752 1.298C.73 18.421 0 17.907 0 17V7c0-.907.73-1.42 1.124-1.65a.75.75 0 0 1 1.025.274Z"],h:24,w:24}},mu={16:{p:["M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z","M6 10.559V5.442a.25.25 0 0 1 .379-.215l4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559Z"],h:16,w:16},24:{p:["M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z","M9 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842L9.77 16.005a.5.5 0 0 1-.77-.42Z"],h:24,w:24}},fu={16:{p:["M5.5 4.25a2.25 2.25 0 0 1 4.5 0 .75.75 0 0 0 1.5 0 3.75 3.75 0 1 0-6.14 2.889l-2.272 4.258a.75.75 0 0 0 1.324.706L7 7.25a.75.75 0 0 0-.309-1.015A2.25 2.25 0 0 1 5.5 4.25Z","M7.364 3.607a.75.75 0 0 1 1.03.257l2.608 4.349a3.75 3.75 0 1 1-.628 6.785.75.75 0 0 1 .752-1.299 2.25 2.25 0 1 0-.033-3.88.75.75 0 0 1-1.03-.256L7.107 4.636a.75.75 0 0 1 .257-1.03Z","M2.9 8.776A.75.75 0 0 1 2.625 9.8 2.25 2.25 0 1 0 6 11.75a.75.75 0 0 1 .75-.751h5.5a.75.75 0 0 1 0 1.5H7.425a3.751 3.751 0 1 1-5.55-3.998.75.75 0 0 1 1.024.274Z"],h:16,w:16}},gu={16:{p:["M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M1 3a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2H7v4.063C7 16.355 7.644 17 8.438 17H12.5v-2.5a2 2 0 0 1 2-2H21a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-2.5H8.437A2.939 2.939 0 0 1 5.5 15.562V11.5H3a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v6.5a.5.5 0 0 0 .5.5h6.5a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5ZM14.5 14a.5.5 0 0 0-.5.5V21a.5.5 0 0 0 .5.5H21a.5.5 0 0 0 .5-.5v-6.5a.5.5 0 0 0-.5-.5Z"],h:24,w:24}},yu={12:{p:["M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"],h:12,w:12},16:{p:["M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"],h:24,w:24}},wu={16:{p:["M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"],h:16,w:16},24:{p:["M9.036 7.976a.75.75 0 0 0-1.06 1.06L10.939 12l-2.963 2.963a.75.75 0 1 0 1.06 1.06L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.75.75 0 1 0-1.06-1.06L12 10.939 9.036 7.976Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},bu={12:{p:["M1.757 10.243a6.001 6.001 0 1 1 8.488-8.486 6.001 6.001 0 0 1-8.488 8.486ZM6 4.763l-2-2L2.763 4l2 2-2 2L4 9.237l2-2 2 2L9.237 8l-2-2 2-2L8 2.763Z"],h:12,w:12},16:{p:["M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm8.036-4.024a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L10.939 12l-2.963 2.963a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L12 10.939Z"],h:24,w:24}},vu={16:{p:["M9.504.43a1.516 1.516 0 0 1 2.437 1.713L10.415 5.5h2.123c1.57 0 2.346 1.909 1.22 3.004l-7.34 7.142a1.249 1.249 0 0 1-.871.354h-.302a1.25 1.25 0 0 1-1.157-1.723L5.633 10.5H3.462c-1.57 0-2.346-1.909-1.22-3.004L9.503.429Zm1.047 1.074L3.286 8.571A.25.25 0 0 0 3.462 9H6.75a.75.75 0 0 1 .694 1.034l-1.713 4.188 6.982-6.793A.25.25 0 0 0 12.538 7H9.25a.75.75 0 0 1-.683-1.06l2.008-4.418.003-.006a.036.036 0 0 0-.004-.009l-.006-.006-.008-.001c-.003 0-.006.002-.009.004Z"],h:16,w:16},24:{p:["M15.716 1.329a1.341 1.341 0 0 1 2.109 1.55L15.147 9h4.161c1.623 0 2.372 2.016 1.143 3.075L8.102 22.721a1.148 1.148 0 0 1-1.81-1.317L8.996 15H4.674c-1.619 0-2.37-2.008-1.148-3.07l12.19-10.6Zm.452 1.595L4.51 13.061a.25.25 0 0 0 .164.439h5.45a.749.749 0 0 1 .692 1.041l-2.559 6.066 11.215-9.668a.25.25 0 0 0-.164-.439H14a.75.75 0 0 1-.687-1.05Z"],h:24,w:24}},Cu={16:{p:["M3.75 7.5a.75.75 0 0 1 .75-.75h2.25V4.5a.75.75 0 0 1 1.5 0v2.25h2.25a.75.75 0 0 1 0 1.5H8.25v2.25a.75.75 0 0 1-1.5 0V8.25H4.5a.75.75 0 0 1-.75-.75Z","M7.5 0a7.5 7.5 0 0 1 5.807 12.247l2.473 2.473a.749.749 0 1 1-1.06 1.06l-2.473-2.473A7.5 7.5 0 1 1 7.5 0Zm-6 7.5a6 6 0 1 0 12 0 6 6 0 0 0-12 0Z"],h:16,w:16},24:{p:["M10.5 5.75a.75.75 0 0 1 .75.75v3.25h3.25a.75.75 0 0 1 0 1.5h-3.25v3.25a.75.75 0 0 1-1.5 0v-3.25H6.5a.75.75 0 0 1 0-1.5h3.25V6.5a.75.75 0 0 1 .75-.75Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 1 1-1.06 1.06l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}},Su={16:{p:["M4.5 6.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5Z","M0 7.5a7.5 7.5 0 1 1 13.307 4.747l2.473 2.473a.749.749 0 1 1-1.06 1.06l-2.473-2.473A7.5 7.5 0 0 1 0 7.5Zm7.5-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z"],h:16,w:16},24:{p:["M14.5 11.25a.75.75 0 0 0 0-1.5h-8a.75.75 0 0 0 0 1.5h8Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 1 1-1.06 1.06l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}};class Eu extends Ae.Component{getStyle=Tr((e=>({height:28})));onTitlebarDoubleClickDarwin=async()=>{switch(await Q()){case"Minimize":z();break;case"None":return;default:await X()?K():j()}};render(){const e="full-screen"===this.props.windowState,t="maximized"===this.props.windowState,n=e?null:Ae.createElement(gi,null),r=t?null:Ae.createElement("div",{className:"resize-handle top"}),i=t?null:Ae.createElement("div",{className:"resize-handle left"}),s="light"===this.props.titleBarStyle?"light-title-bar":"",o=this.props.showAppIcon?Ae.createElement(yi,{className:"app-icon",symbol:Va}):null;return Ae.createElement("div",{className:s,id:"desktop-app-title-bar",onDoubleClick:void 0,style:this.getStyle(this.props.windowZoomFactor)},r,i,o,this.props.children,n)}}class ku extends Ae.Component{infoDisappearTimeoutId=null;transitionGroupDisappearTimeoutId=null;constructor(e){super(e),this.state={windowZoomFactor:e.windowZoomFactor,renderTransitionGroup:!1,renderInfo:!1,transitionName:"zoom-in"}}componentWillReceiveProps(e){const t=this.state.windowZoomFactor!==e.windowZoomFactor;if(!t)return;null!==this.infoDisappearTimeoutId&&window.clearTimeout(this.infoDisappearTimeoutId),null!==this.transitionGroupDisappearTimeoutId&&window.clearTimeout(this.transitionGroupDisappearTimeoutId),this.infoDisappearTimeoutId=window.setTimeout(this.onInfoDisappearTimeout,750),this.transitionGroupDisappearTimeoutId=window.setTimeout(this.onTransitionGroupDisappearTimeout,950);const n=e.windowZoomFactor>this.state.windowZoomFactor?"zoom-in":"zoom-out";this.setState({windowZoomFactor:e.windowZoomFactor,renderTransitionGroup:t,renderInfo:t,transitionName:n})}onInfoDisappearTimeout=()=>{this.setState({renderInfo:!1})};onTransitionGroupDisappearTimeout=()=>{this.setState({renderTransitionGroup:!1})};renderZoomInfo(){if(!this.state.renderInfo)return null;const e=`${(100*this.state.windowZoomFactor).toFixed(0)}%`;return Ae.createElement(Qe,{classNames:this.state.transitionName,appear:!0,enter:!1,exit:!0,timeout:100},Ae.createElement("div",null,Ae.createElement("span",null,e)))}render(){return this.state.renderTransitionGroup?Ae.createElement(Ue,{id:"window-zoom-info"},this.renderZoomInfo()):null}}class Ru extends Ae.Component{render(){const e=this.props.keys;return e.map(((t,n)=>Ae.createElement(Ae.Fragment,{key:t+n},Ae.createElement("kbd",null,t),n<e.length-1?Ae.createElement(Ae.Fragment,null,"+"):null)))}}const Tu={appear:100,exit:250};class Au extends Ae.Component{static getDerivedStateFromProps(e,t){if("hidden"===e.windowState)return null;if(t.windowState!==e.windowState){const t="full-screen"===e.windowState;return{windowState:e.windowState,renderInfo:t,renderTransitionGroup:t}}return null}infoDisappearTimeoutId=null;transitionGroupDisappearTimeoutId=null;constructor(e){super(e),this.state={renderInfo:!1,renderTransitionGroup:!1}}componentDidMount(){this.state.renderInfo&&this.scheduleInfoDisappear(),this.state.renderTransitionGroup&&this.scheduleTransitionGroupDisappear()}componentDidUpdate(e,t){t.renderInfo!==this.state.renderInfo&&(this.state.renderInfo?this.scheduleInfoDisappear():this.clearInfoDisappearTimeout()),t.renderTransitionGroup!==this.state.renderTransitionGroup&&(this.state.renderTransitionGroup?this.scheduleTransitionGroupDisappear():this.clearTransitionGroupDisappearTimeout())}componentWillUnmount(){this.clearInfoDisappearTimeout(),this.clearTransitionGroupDisappearTimeout()}scheduleInfoDisappear(){this.infoDisappearTimeoutId=window.setTimeout(this.onInfoDisappearTimeout,3e3)}clearInfoDisappearTimeout(){null!==this.infoDisappearTimeoutId&&(window.clearTimeout(this.infoDisappearTimeoutId),this.infoDisappearTimeoutId=null)}scheduleTransitionGroupDisappear(){this.transitionGroupDisappearTimeoutId=window.setTimeout(this.onTransitionGroupDisappearTimeout,Tu.appear+3e3+Tu.exit)}clearTransitionGroupDisappearTimeout(){null!==this.transitionGroupDisappearTimeoutId&&(window.clearTimeout(this.transitionGroupDisappearTimeoutId),this.transitionGroupDisappearTimeoutId=null)}onInfoDisappearTimeout=()=>{this.setState({renderInfo:!1})};onTransitionGroupDisappearTimeout=()=>{this.setState({renderTransitionGroup:!1})};renderFullScreenNotification(){return this.state.renderInfo?Ae.createElement(Qe,{classNames:"toast-animation",appear:!0,enter:!1,exit:!0,timeout:Tu},Ae.createElement("div",{key:"notification",className:"toast-notification"},"Press ",Ae.createElement(Ru,{darwinKeys:["^","⌘","F"],keys:["F11"]})," ","to exit fullscreen")):null}render(){return this.state.renderTransitionGroup?Ae.createElement(Ue,{className:"toast-notification-container"},this.renderFullScreenNotification()):null}}function xu(e){if(e instanceof ti)return Ns;if(e.missing)return vi;const t=e.gitHubRepository;return t?t.isPrivate?Ua:t.fork?Gl:Wl:Fs}var Du,_u,Mu,Pu,Iu,Ou,Nu,Lu;function Bu(e){switch(e.trim()){case"CR":return"CR";case"LF":return"LF";case"CRLF":return"CRLF";default:return null}}!function(e){e[e.Text=0]="Text",e[e.Image=1]="Image",e[e.Binary=2]="Binary",e[e.Submodule=3]="Submodule",e[e.LargeText=4]="LargeText",e[e.Unrenderable=5]="Unrenderable"}(Du||(Du={})),function(e){e[e.Context=0]="Context",e[e.Add=1]="Add",e[e.Delete=2]="Delete",e[e.Hunk=3]="Hunk"}(_u||(_u={}));class Fu{text;type;originalLineNumber;oldLineNumber;newLineNumber;noTrailingNewLine;constructor(e,t,n,r,i,s=!1){this.text=e,this.type=t,this.originalLineNumber=n,this.oldLineNumber=r,this.newLineNumber=i,this.noTrailingNewLine=s}withNoTrailingNewLine(e){return new Fu(this.text,this.type,this.originalLineNumber,this.oldLineNumber,this.newLineNumber,e)}isIncludeableLine(){return this.type===_u.Add||this.type===_u.Delete}get content(){return this.text.substring(1)}equals(e){return this.text===e.text&&this.type===e.type&&this.originalLineNumber===e.originalLineNumber&&this.oldLineNumber===e.oldLineNumber&&this.newLineNumber===e.newLineNumber&&this.noTrailingNewLine===e.noTrailingNewLine}}function Hu(e,t){switch(e){case Mu.All:return t;case Mu.None:return!t;case Mu.Partial:return!1;default:return ct(0,`Unknown selection type ${e}`)}}!function(e){e.All="All",e.Partial="Partial",e.None="None"}(Mu||(Mu={}));class Uu{defaultSelectionType;divergingLines;selectableLines;static fromInitialSelection(e){return e!==Mu.All&&e!==Mu.None?ct(0,"Can only instantiate a DiffSelection with All or None as the initial selection"):new Uu(e,null,null)}constructor(e,t=null,n=null){this.defaultSelectionType=e,this.divergingLines=t,this.selectableLines=n}getSelectionType(){const e=this.divergingLines,t=this.selectableLines;if(!e)return this.defaultSelectionType;if(0===e.size)return this.defaultSelectionType;if(t&&t.size===e.size){const n=[...t].every((t=>e.has(t)));if(n)return this.defaultSelectionType===Mu.All?Mu.None:Mu.All}return Mu.Partial}isSelected(e){const t=!!this.divergingLines&&this.divergingLines.has(e);return this.defaultSelectionType===Mu.All?!t:this.defaultSelectionType===Mu.None?t:ct(this.defaultSelectionType,`Unknown base selection type ${this.defaultSelectionType}`)}isRangeSelected(e,t){if(t<=0)return Mu.None;const n=this.getSelectionType();if(n!==Mu.Partial)return n;if(1===t)return this.isSelected(e)?Mu.All:Mu.None;const r=e+t;let i=!1,s=!1;for(let t=e;t<r;t++)if(this.isSelected(t)&&(i=!0),this.isSelected(t)||(s=!0),i&&s)return Mu.Partial;return i?Mu.All:Mu.None}isSelectable(e){return!this.selectableLines||this.selectableLines.has(e)}withLineSelection(e,t){return this.withRangeSelection(e,1,t)}withRangeSelection(e,t,n){const r=this.getSelectionType(),i=e+t;if(Hu(r,n))return this;if(r===Mu.Partial){const t=new Set(this.divergingLines);if(Hu(this.defaultSelectionType,n))for(let n=e;n<i;n++)t.delete(n);else for(let n=e;n<i;n++)this.isSelectable(n)&&t.add(n);return new Uu(this.defaultSelectionType,0===t.size?null:t,this.selectableLines)}{const t=new Set;for(let n=e;n<i;n++)this.isSelectable(n)&&t.add(n);return new Uu(r,t,this.selectableLines)}}withToggleLineSelection(e){return this.withLineSelection(e,!this.isSelected(e))}withSelectAll(){return new Uu(Mu.All,null,this.selectableLines)}withSelectNone(){return new Uu(Mu.None,null,this.selectableLines)}withSelectableLines(e){const t=this.divergingLines?new Set([...this.divergingLines].filter((t=>e.has(t)))):null;return new Uu(this.defaultSelectionType,t,e)}}class Zu{contents;mediaType;bytes;constructor(e,t,n){this.contents=e,this.mediaType=t,this.bytes=n}}!function(e){e.None="None",e.Up="Up",e.Down="Down",e.Both="Both",e.Short="Short"}(Pu||(Pu={}));class $u{header;lines;unifiedDiffStart;unifiedDiffEnd;expansionType;constructor(e,t,n,r,i){this.header=e,this.lines=t,this.unifiedDiffStart=n,this.unifiedDiffEnd=r,this.expansionType=i}equals(e){return this===e||this.header.equals(e.header)&&this.unifiedDiffStart===e.unifiedDiffStart&&this.unifiedDiffEnd===e.unifiedDiffEnd&&this.expansionType===e.expansionType&&this.lines.length===e.lines.length&&this.lines.every(((t,n)=>t.equals(e.lines[n])))}}class Wu{oldStartLine;oldLineCount;newStartLine;newLineCount;constructor(e,t,n,r){this.oldStartLine=e,this.oldLineCount=t,this.newStartLine=n,this.newLineCount=r}toDiffLineRepresentation(){return`@@ -${this.oldStartLine},${this.oldLineCount} +${this.newStartLine},${this.newLineCount} @@`}equals(e){return this.oldStartLine===e.oldStartLine&&this.oldLineCount===e.oldLineCount&&this.newStartLine===e.newStartLine&&this.oldStartLine===e.oldStartLine}}function qu(e){return e.kind===Nu.Conflicted}function Vu(e){return e.hasOwnProperty("conflictMarkerCount")}function Gu(e){return!e.hasOwnProperty("conflictMarkerCount")}!function(e){e[e.TwoUp=0]="TwoUp",e[e.Swipe=1]="Swipe",e[e.OnionSkin=2]="OnionSkin",e[e.Difference=3]="Difference"}(Iu||(Iu={})),function(e){e.Modified="M",e.Added="A",e.Deleted="D",e.Renamed="R",e.Copied="C",e.Unchanged=".",e.Untracked="?",e.Ignored="!",e.UpdatedButUnmerged="U"}(Ou||(Ou={})),function(e){e.New="New",e.Modified="Modified",e.Deleted="Deleted",e.Copied="Copied",e.Renamed="Renamed",e.Conflicted="Conflicted",e.Untracked="Untracked"}(Nu||(Nu={})),function(e){e.AddedByUs="added-by-us",e.DeletedByUs="deleted-by-us",e.AddedByThem="added-by-them",e.DeletedByThem="deleted-by-them",e.BothDeleted="both-deleted",e.BothAdded="both-added",e.BothModified="both-modified"}(Lu||(Lu={}));class zu{path;status;id;constructor(e,t){this.path=e,this.status=t,t.kind===Nu.Renamed||t.kind===Nu.Copied?this.id=`${t.kind}+${e}+${t.oldPath}`:this.id=`${t.kind}+${e}`}}class ju extends zu{selection;constructor(e,t,n){super(e,t),this.selection=n}withIncludeAll(e){const t=e?this.selection.withSelectAll():this.selection.withSelectNone();return this.withSelection(t)}withSelection(e){return new ju(this.path,this.status,e)}}class Ku extends zu{commitish;parentCommitish;constructor(e,t,n,r){super(e,t),this.commitish=n,this.parentCommitish=r,this.commitish=n}}class Yu{files;includeAll;static fromFiles(e){return new Yu(e,function(e){if(!e.length)return!0;const t=e.every((e=>e.selection.getSelectionType()===Mu.All)),n=e.every((e=>e.selection.getSelectionType()===Mu.None));let r=null;return t?r=!0:n&&(r=!1),r}(e))}fileIxById=new Map;constructor(e,t=!0){this.files=e,this.includeAll=t,e.forEach(((e,t)=>this.fileIxById.set(e.id,t)))}withIncludeAllFiles(e){const t=this.files.map((t=>t.withIncludeAll(e)));return new Yu(t,e)}findFileWithID(e){const t=this.fileIxById.get(e);return void 0!==t&&this.files[t]||null}findFileIndexByID(e){const t=this.fileIxById.get(e);return void 0!==t?t:-1}}function Xu(e){switch(e.kind){case Nu.New:case Nu.Untracked:return Ws;case Nu.Modified:return Vs;case Nu.Deleted:return Gs;case Nu.Renamed:return zs;case Nu.Conflicted:return Vu(e)?e.conflictMarkerCount>0?vi:Xi:vi;case Nu.Copied:return Ws;default:return ct(0,`Unknown file status ${e}`)}}const Qu={w:16,h:16,p:["M8 2.5c1.645 0 3.123.722 4.131 1.869l-1.204 1.204a.25.25 0 0 0 .177.427h3.646a.25.25 0 0 0 .25-.25V2.104a.25.25 0 0 0-.427-.177l-1.38 1.38A7.001 7.001 0 0 0 1.05 7.16a.75.75 0 1 0 1.49.178A5.501 5.501 0 0 1 8 2.5zm6.294 5.505a.75.75 0 0 0-.833.656 5.501 5.501 0 0 1-9.592 2.97l1.204-1.204A.25.25 0 0 0 4.896 10H1.25a.25.25 0 0 0-.25.25v3.646c0 .223.27.335.427.177l1.38-1.38A7.001 7.001 0 0 0 14.95 8.84a.75.75 0 0 0-.657-.834z"]},Ju=({text:e,highlight:t})=>Ae.createElement("span",null,e.split("").map(((e,n)=>[e,t.includes(n)])).concat([["",!1]]).reduce(((e,[t,n],r,i)=>{if(n===e.matched&&r<i.length-1)e.str+=t;else{const i=e.matched?"mark":"span";e.result.push(Ae.createElement(i,{key:r},e.str)),e.str=t,e.matched=n}return e}),{matched:!1,str:"",result:new Array}).result);class eh extends Ae.Component{wrapperRef=di();render(){const{tooltip:e,tagName:t,children:n,className:r,tooltipClassName:i,...s}=this.props;return Ae.createElement(t??"span",{id:this.props.id,ref:this.wrapperRef,className:r,children:Ae.createElement(Ae.Fragment,null,void 0!==e&&Ae.createElement(ci,{target:this.wrapperRef,className:i,...s},e),n)})}}class th extends Ae.Component{listItemRef=di();render(){const e=this.props.repository,t=e instanceof Zr?e.gitHubRepository:null,n=this.props.changedFilesCount>0,r=e instanceof Zr?e.alias:null;let i=null;this.props.needsDisambiguation&&t&&(i=`${t.owner.login}/`);const s=ri()("name",{alias:null!==r});return Ae.createElement("div",{className:"repository-list-item",ref:this.listItemRef},Ae.createElement(ci,{target:this.listItemRef},this.renderTooltip()),Ae.createElement(yi,{className:"icon-for-repository",symbol:xu(e)}),Ae.createElement("div",{className:ri()(s)},i?Ae.createElement("span",{className:"prefix"},i):null,Ae.createElement(Ju,{text:r??e.name,highlight:this.props.matches.title})),e instanceof Zr&&nh({aheadBehind:this.props.aheadBehind,hasChanges:n}))}renderTooltip(){const e=this.props.repository,t=e instanceof Zr?e.gitHubRepository:null,n=e instanceof Zr?e.alias:null,r=t?t.fullName:e.name;return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",null,Ae.createElement("strong",null,r),n&&Ae.createElement(Ae.Fragment,null," (",n,")")),Ae.createElement("div",null,e.path))}shouldComponentUpdate(e){return!(e.repository instanceof Zr&&this.props.repository instanceof Zr)||e.repository.id!==this.props.repository.id||e.matches!==this.props.matches}}const nh=e=>Ae.createElement("div",{className:"repo-indicators"},e.aheadBehind&&rh(e.aheadBehind),e.hasChanges&&ih()),rh=e=>{const{ahead:t,behind:n}=e;if(0===t&&0===n)return null;const r="The currently checked out branch is"+(n?` ${sh(n)} behind `:"")+(n&&t?"and":"")+(t?` ${sh(t)} ahead of `:"")+"its tracked branch.";return Ae.createElement(eh,{className:"ahead-behind",tagName:"div",tooltip:r},t>0&&Ae.createElement(yi,{symbol:Mi}),n>0&&Ae.createElement(yi,{symbol:Ri}))},ih=()=>Ae.createElement(eh,{className:"change-indicator-wrapper",tooltip:"There are uncommitted changes in this repository"},Ae.createElement(yi,{symbol:Qs})),sh=e=>`${e} commit${e>1?"s":""}`;var oh;!function(e){e.Enterprise="_Enterprise_",e.NonGitHub="_Non-GitHub_"}(oh||(oh={}));const ah={changedFilesCount:0,aheadBehind:null};function lh(e,t,n){const r=new Map;for(const n of e){const e=t.find((e=>e.id===n));if(void 0!==e){const t=(e instanceof Zr?e.alias:null)??e.name,n=r.get(t)||0;r.set(t,n+1)}}const i=new Array;for(const s of e){const e=t.find((e=>e.id===s));if(void 0===e)continue;const{aheadBehind:o,changedFilesCount:a}=n.get(s)||ah,l=e instanceof Zr?e.alias:null,c=e instanceof Zr?[l??e.name,qr(e)]:[e.name],u=r.get(l??e.name)||0;i.push({text:c,id:s.toString(),repository:e,needsDisambiguation:u>1,aheadBehind:o,changedFilesCount:a})}return{identifier:"Recent",items:i}}const ch=e=>e instanceof Zr&&null!==e.alias?e.alias:e.name;function uh(e){switch(e.toLowerCase()){case"cmdorctrl":case"commandorcontrol":case"ctrl":case"control":return"Ctrl";case"shift":return"Shift";case"alt":return"Alt";case"cmd":case"command":return"⌘";case"option":return"⌥";case" ":return"Space"}return e}async function hh(e,t=!1){const n=await oe(ph(e),t);if(null!==n){const t=function(e,t){let n={submenu:e};for(const e of t){if(void 0===n||void 0===n.submenu)return;n=n.submenu[e]}return n}(e,n);void 0!==t&&void 0!==t.action&&t.action()}}function ph(e){return e.map((e=>({...e,action:void 0,submenu:e.submenu?ph(e.submenu):void 0})))}var dh;!function(e){e.RenameBranch="RenameBranch",e.DeleteBranch="DeleteBranch",e.DeleteRemoteBranch="DeleteRemoteBranch",e.ConfirmDiscardChanges="ConfirmDiscardChanges",e.Preferences="Preferences",e.RepositorySettings="RepositorySettings",e.AddRepository="AddRepository",e.CreateRepository="CreateRepository",e.CloneRepository="CloneRepository",e.CreateBranch="CreateBranch",e.SignIn="SignIn",e.About="About",e.InstallGit="InstallGit",e.PublishRepository="PublishRepository",e.Acknowledgements="Acknowledgements",e.UntrustedCertificate="UntrustedCertificate",e.RemoveRepository="RemoveRepository",e.TermsAndConditions="TermsAndConditions",e.PushBranchCommits="PushBranchCommits",e.CLIInstalled="CLIInstalled",e.GenericGitAuthentication="GenericGitAuthentication",e.ExternalEditorFailed="ExternalEditorFailed",e.OpenShellFailed="OpenShellFailed",e.InitializeLFS="InitializeLFS",e.LFSAttributeMismatch="LFSAttributeMismatch",e.UpstreamAlreadyExists="UpstreamAlreadyExists",e.ReleaseNotes="ReleaseNotes",e.DeletePullRequest="DeletePullRequest",e.OversizedFiles="OversizedFiles",e.CommitConflictsWarning="CommitConflictsWarning",e.PushNeedsPull="PushNeedsPull",e.ConfirmForcePush="ConfirmForcePush",e.StashAndSwitchBranch="StashAndSwitchBranch",e.ConfirmOverwriteStash="ConfirmOverwriteStash",e.ConfirmDiscardStash="ConfirmDiscardStash",e.ConfirmCheckoutCommit="ConfirmCheckoutCommit",e.CreateTutorialRepository="CreateTutorialRepository",e.ConfirmExitTutorial="ConfirmExitTutorial",e.PushRejectedDueToMissingWorkflowScope="PushRejectedDueToMissingWorkflowScope",e.SAMLReauthRequired="SAMLReauthRequired",e.CreateFork="CreateFork",e.CreateTag="CreateTag",e.DeleteTag="DeleteTag",e.LocalChangesOverwritten="LocalChangesOverwritten",e.ChooseForkSettings="ChooseForkSettings",e.ConfirmDiscardSelection="ConfirmDiscardSelection",e.MoveToApplicationsFolder="MoveToApplicationsFolder",e.ChangeRepositoryAlias="ChangeRepositoryAlias",e.ThankYou="ThankYou",e.CommitMessage="CommitMessage",e.MultiCommitOperation="MultiCommitOperation",e.WarnLocalChangesBeforeUndo="WarnLocalChangesBeforeUndo",e.WarningBeforeReset="WarningBeforeReset",e.InvalidatedToken="InvalidatedToken",e.AddSSHHost="AddSSHHost",e.SSHKeyPassphrase="SSHKeyPassphrase",e.SSHUserPassword="SSHUserPassword",e.PullRequestChecksFailed="PullRequestChecksFailed",e.CICheckRunRerun="CICheckRunRerun",e.WarnForcePush="WarnForcePush",e.DiscardChangesRetry="DiscardChangesRetry",e.PullRequestReview="PullRequestReview",e.UnreachableCommits="UnreachableCommits",e.StartPullRequest="StartPullRequest",e.Error="Error",e.InstallingUpdate="InstallingUpdate",e.TestNotifications="TestNotifications",e.PullRequestComment="PullRequestComment",e.UnknownAuthors="UnknownAuthors",e.ConfirmRepoRulesBypass="ConfirmRepoRulesBypass",e.TestIcons="TestIcons",e.ConfirmRestart="ConfirmRestart"}(dh||(dh={}));const mh="复制文件路径",fh="复制文件相对路径",gh="打开于 external editor",yh="在文件管理器中打开",wh="Trash",bh="使用默认程序打开",vh=e=>{const{repository:t}=e,n=t instanceof Zr&&t.missing,r=t instanceof Zr&&null!=t.gitHubRepository,i=e.externalEditorLabel?`打开于 ${e.externalEditorLabel}`:gh,s=e.shellLabel?`打开于 ${e.shellLabel}`:"打开于 shell";return[...Ch(e),{label:"复制仓库名称",action:()=>f.clipboard.writeText(t.name)},{label:"复制仓库路径",action:()=>f.clipboard.writeText(t.path)},{type:"separator"},{label:"在GitHub上查看",action:()=>e.onViewOnGitHub(t),enabled:r},{label:s,action:()=>e.onOpenInShell(t),enabled:!n},{label:yh,action:()=>e.onShowRepository(t),enabled:!n},{label:i,action:()=>e.onOpenInExternalEditor(t),enabled:!n},{type:"separator"},{label:e.askForConfirmationOnRemoveRepository?"移除...":"移除",action:()=>e.onRemoveRepository(t)}]},Ch=e=>{const{repository:t}=e;if(!(t instanceof Zr))return[];const n=[{label:(null==t.alias?"创建":"变更")+" 别名",action:()=>e.onChangeRepositoryAlias(t)}];return null!==t.alias&&n.push({label:"移除别名",action:()=>e.onRemoveRepositoryAlias(t)}),n};var Sh=n(6218),Eh=n(1698),kh=n.n(Eh),Rh=n(5682),Th=n(5256),Ah=n(9002),xh=n(4122);var Dh=function(e){function t(){var e,n,r,i;(0,Rh.Z)(this,t);for(var s=arguments.length,o=Array(s),a=0;a<s;a++)o[a]=arguments[a];return n=r=(0,Ah.Z)(this,(e=t.__proto__||kh()(t)).call.apply(e,[this].concat(o))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var s=r._parentNode.offsetHeight||0,o=r._parentNode.offsetWidth||0,a=window.getComputedStyle(r._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,u=parseInt(a.paddingTop,10)||0,h=parseInt(a.paddingBottom,10)||0,p=s-u-h,d=o-l-c;(!t&&r.state.height!==p||!n&&r.state.width!==d)&&(r.setState({height:s-u-h,width:o-l-c}),i({height:s,width:o}))}},r._setRef=function(e){r._autoSizer=e},i=n,(0,Ah.Z)(r,i)}return(0,xh.Z)(t,e),(0,Th.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var n="undefined"!=typeof document&&document.attachEvent;if(!n){var r=function(){var e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=r((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},a=!1,l="",c="animationstart",u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=document.createElement("fakeelement");if(void 0!==p.style.animationName&&(a=!0),!1===a)for(var d=0;d<u.length;d++)if(void 0!==p.style[u[d]+"AnimationName"]){l="-"+u[d].toLowerCase()+"-",c=h[d],a=!0;break}var m="resizeanim",f="@"+l+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",g=l+"animation: 1ms "+m+"; "}return{addResizeListener:function(r,i){if(n)r.attachEvent("onresize",i);else{if(!r.__resizeTriggers__){var a=r.ownerDocument,l=t.getComputedStyle(r);l&&"static"==l.position&&(r.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(f||"")+".resize-triggers { "+(g||"")+'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%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(a),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=a.createElement("div")).className="resize-triggers",r.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",o,!0),c&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&s(r)},r.__resizeTriggers__.addEventListener(c,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(i)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",o,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(c,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,s=e.style,o=this.state,a=o.height,l=o.width,c={overflow:"visible"},u={};return r||(c.height=0,u.height=a),i||(c.width=0,u.width=l),Ae.createElement("div",{className:n,ref:this._setRef,style:(0,Sh.Z)({},c,s)},t(u))}}]),t}(Ae.PureComponent);Dh.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},Dh.propTypes=null;const _h=Dh;var Mh=n(9159),Ph=n.n(Mh);function Ih(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,s=e.nextCellsCount,o=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===s&&("number"!=typeof n&&"number"!=typeof o||n===o)||(r(i),l>=0&&l===a&&c())}var Oh=n(9326),Nh=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;(0,Rh.Z)(this,e),this._cellSizeAndPositionData={},this._lastMeasuredIndex=-1,this._lastBatchedIndex=-1,this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return(0,Th.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell "+r+" of value "+i);null===i?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,s=e.targetIndex;if(r<=0)return 0;var o=this.getSizeAndPositionOfCell(s),a=o.offset,l=a-r+o.size,c=void 0;switch(n){case"start":c=a;break;case"end":c=l;break;case"center":c=a-(r-o.size)/2;break;default:c=Math.max(l,Math.min(a,i))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,c))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,i=this._findNearestCell(n),s=this.getSizeAndPositionOfCell(i);n=s.offset+s.size;for(var o=i;n<r&&o<this._cellCount-1;)o++,n+=this.getSizeAndPositionOfCell(o).size;return{start:i,stop:o}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===n)return r;i<n?t=r+1:i>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset "+e+" specified");e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}();const Lh=Nh;const Bh=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?"undefined"!=typeof window&&window.chrome&&window.chrome.webstore?16777100:15e5:n,i=(0,Oh.Z)(t,["maxScrollSize"]);(0,Rh.Z)(this,e),this._cellSizeAndPositionManager=new Lh(i),this._maxScrollSize=r}return(0,Th.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(s*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,s=e.targetIndex;i=this._safeOffsetToOffset({containerSize:r,offset:i});var o=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:i,targetIndex:s});return this._offsetToSafeOffset({containerSize:r,offset:o})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var s=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(s*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var s=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(s*(r-t))}}]),e}();var Fh=n(4578),Hh=n.n(Fh);function Uh(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,i=n.indices,s=Hh()(i),o=!e||s.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),a=s.length!==Hh()(t).length||s.some((function(e){var n=t[e],r=i[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=i,o&&a&&r(i)}}function Zh(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,s=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,s+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,s)}}function $h(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,s=e.previousScrollToAlignment,o=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,h=e.size,p=e.sizeJustIncreasedFromZero,d=e.updateScrollIndexCallback,m=n.getCellCount(),f=u>=0&&u<m;f&&(h!==a||p||!i||"number"==typeof t&&t!==i||c!==s||u!==o)?d(u):!f&&m>0&&(h<a||m<r)&&l>n.getTotalSize()-h&&d(m-1)}var Wh=n(6328),qh=n.n(Wh);function Vh(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Gh(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function zh(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Vh.__suppressDeprecationWarning=!0,Gh.__suppressDeprecationWarning=!0,zh.__suppressDeprecationWarning=!0;var jh=void 0,Kh=(jh="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||jh.webkitRequestAnimationFrame||jh.mozRequestAnimationFrame||jh.oRequestAnimationFrame||jh.msRequestAnimationFrame||function(e){return jh.setTimeout(e,1e3/60)},Yh=jh.cancelAnimationFrame||jh.webkitCancelAnimationFrame||jh.mozCancelAnimationFrame||jh.oCancelAnimationFrame||jh.msCancelAnimationFrame||function(e){jh.clearTimeout(e)},Xh=Kh,Qh=Yh,Jh=function(e){return Qh(e.id)},ep="requested",tp=function(e){function t(e){(0,Rh.Z)(this,t);var n=(0,Ah.Z)(this,(t.__proto__||kh()(t)).call(this,e));n._onGridRenderedMemoizer=Uh(),n._onScrollMemoizer=Uh(!1),n._deferredInvalidateColumnIndex=null,n._deferredInvalidateRowIndex=null,n._recomputeScrollLeftFlag=!1,n._recomputeScrollTopFlag=!1,n._horizontalScrollBarSize=0,n._verticalScrollBarSize=0,n._scrollbarPresenceChanged=!1,n._renderedColumnStartIndex=0,n._renderedColumnStopIndex=0,n._renderedRowStartIndex=0,n._renderedRowStopIndex=0,n._styleCache={},n._cellCache={},n._debounceScrollEndedCallback=function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})},n._invokeOnGridRenderedHelper=function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})},n._setScrollingContainerRef=function(e){n._scrollingContainer=e},n._onScroll=function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)};var r=new Bh({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new Bh({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return(0,xh.Z)(t,e),(0,Th.Z)(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,s=e.rowIndex,o=void 0===s?this.props.scrollToRow:s,a=(0,Sh.Z)({},this.props,{scrollToAlignment:n,scrollToColumn:i,scrollToRow:o});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r;if(!(i<0)){this._debounceScrollEnded();var s=this.props,o=s.autoHeight,a=s.autoWidth,l=s.height,c=s.width,u=this.state.instanceProps,h=u.scrollbarSize,p=u.rowSizeAndPositionManager.getTotalSize(),d=u.columnSizeAndPositionManager.getTotalSize(),m=Math.min(Math.max(0,d-c+h),n),f=Math.min(Math.max(0,p-l+h),i);if(this.state.scrollLeft!==m||this.state.scrollTop!==f){var g={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};o||(g.scrollTop=f),a||(g.scrollLeft=m),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:f,totalColumnsWidth:d,totalRowsHeight:p})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,s=this.props,o=s.scrollToColumn,a=s.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=o>=0&&n<=o,this._recomputeScrollTopFlag=a>=0&&i<=a,this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,i=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn((0,Sh.Z)({},i,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow((0,Sh.Z)({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,i=e.scrollLeft,s=e.scrollToColumn,o=e.scrollTop,a=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=(0,Sh.Z)({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof i&&i>=0||"number"==typeof o&&o>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:o});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var h=r>0&&l>0;s>=0&&h&&this._updateScrollLeftForScrollToColumn(),a>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:o||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.autoHeight,s=r.autoWidth,o=r.columnCount,a=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,h=r.scrollToRow,p=r.width,d=this.state,m=d.scrollLeft,f=d.scrollPositionChangeReason,g=d.scrollTop,y=d.instanceProps;this._handleInvalidatedGridSize();var w=o>0&&0===e.columnCount||l>0&&0===e.rowCount;f===ep&&(!s&&m>=0&&(m!==this._scrollingContainer.scrollLeft||w)&&(this._scrollingContainer.scrollLeft=m),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||w)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&a>0&&p>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):$h({cellSizeAndPositionManager:y.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:c,scrollToIndex:u,size:p,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):$h({cellSizeAndPositionManager:y.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:h,size:a,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),m!==t.scrollLeft||g!==t.scrollTop){var v=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:g,totalColumnsWidth:C,totalRowsHeight:v})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Jh(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,i=e.className,s=e.containerProps,o=e.containerRole,a=e.containerStyle,l=e.height,c=e.id,u=e.noContentRenderer,h=e.role,p=e.style,d=e.tabIndex,m=e.width,f=this.state,g=f.instanceProps,y=f.needToResetStyleCache,w=this._isScrolling(),b={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var v=g.columnSizeAndPositionManager.getTotalSize(),C=g.rowSizeAndPositionManager.getTotalSize(),S=C>l?g.scrollbarSize:0,E=v>m?g.scrollbarSize:0;E===this._horizontalScrollBarSize&&S===this._verticalScrollBarSize||(this._horizontalScrollBarSize=E,this._verticalScrollBarSize=S,this._scrollbarPresenceChanged=!0),b.overflowX=v+S<=m?"hidden":"auto",b.overflowY=C+E<=l?"hidden":"auto";var k=this._childrenToDisplay,R=0===k.length&&l>0&&m>0;return Ae.createElement("div",(0,Sh.Z)({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ri()("ReactVirtualized__Grid",i),id:c,onScroll:this._onScroll,role:h,style:(0,Sh.Z)({},b,p),tabIndex:d}),k.length>0&&Ae.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:o,style:(0,Sh.Z)({width:t?"auto":v,height:C,maxWidth:v,maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},a)},k),R&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,s=e.deferredMeasurementCache,o=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,h=e.width,p=e.isScrollingOptOut,d=t.scrollDirectionHorizontal,m=t.scrollDirectionVertical,f=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,y=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,w=this._isScrolling(e,t);if(this._childrenToDisplay=[],o>0&&h>0){var b=f.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:y}),v=f.rowSizeAndPositionManager.getVisibleCellRange({containerSize:o,offset:g}),C=f.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:y}),S=f.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:o,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=v.start,this._renderedRowStopIndex=v.stop;var E=l({direction:"horizontal",cellCount:i,overscanCellsCount:a,scrollDirection:d,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),k=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:m,startIndex:"number"==typeof v.start?v.start:0,stopIndex:"number"==typeof v.stop?v.stop:-1}),R=E.overscanStartIndex,T=E.overscanStopIndex,A=k.overscanStartIndex,x=k.overscanStopIndex;if(s){if(!s.hasFixedHeight())for(var D=A;D<=x;D++)if(!s.has(D,0)){R=0,T=i-1;break}if(!s.hasFixedWidth())for(var _=R;_<=T;_++)if(!s.has(0,_)){A=0,x=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:f.columnSizeAndPositionManager,columnStartIndex:R,columnStopIndex:T,deferredMeasurementCache:s,horizontalOffsetAdjustment:C,isScrolling:w,isScrollingOptOut:p,parent:this,rowSizeAndPositionManager:f.rowSizeAndPositionManager,rowStartIndex:A,rowStopIndex:x,scrollLeft:y,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:b,visibleRowIndices:v}),this._columnStartIndex=R,this._columnStopIndex=T,this._rowStartIndex=A,this._rowStopIndex=x}}},{key:"_debounceScrollEnded",value:function(){var e,t,n,r,i=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Jh(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=(e=this._debounceScrollEndedCallback,t=i,n=Date.now(),r={id:Xh((function i(){Date.now()-n>=t?e.call():r.id=Xh(i)}))})}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,s=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t.props,a=o.height;(0,o.onScroll)({clientHeight:a,clientWidth:o.width,scrollHeight:s,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var s=r+"-"+i;this._styleCache[s]=e[s],n&&(this._cellCache[s]=t[s])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Ph()(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i=n.instanceProps;r.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(r.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==i.prevColumnCount&&0!==i.prevRowCount||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===i.prevIsScrolling&&Ph()(r,{isScrolling:!1});var s=void 0,o=void 0;return Ih({cellCount:i.prevColumnCount,cellSize:"number"==typeof i.prevColumnWidth?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),Ih({cellCount:i.prevRowCount,cellSize:"number"==typeof i.prevRowHeight?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=!0===e.isScrolling,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),void 0===i.scrollbarSize?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,r.instanceProps=i,(0,Sh.Z)({},r,s,o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:ep};return"number"==typeof n&&n>=0&&(i.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,i.scrollLeft=n),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?i:null}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,i=e.scrollToAlignment,s=e.scrollToColumn,o=e.width,a=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=s<0?c:Math.min(c,s),h=l.rowSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&h>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o-p,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,i=t._getCalculatedScrollLeft(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:i,scrollTop:-1}):null}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,i=e.scrollToAlignment,s=e.scrollToRow,o=e.width,a=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=s<0?c:Math.min(c,s),h=l.columnSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&h>o?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:n-p,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,i=t._getCalculatedScrollTop(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:i}):null}}]),t}(Ae.PureComponent);tp.defaultProps={"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,s=e.columnStopIndex,o=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,h=e.rowSizeAndPositionManager,p=e.rowStartIndex,d=e.rowStopIndex,m=e.styleCache,f=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,y=e.visibleRowIndices,w=[],b=r.areOffsetsAdjusted()||h.areOffsetsAdjusted(),v=!l&&!b,C=p;C<=d;C++)for(var S=h.getSizeAndPositionOfCell(C),E=i;E<=s;E++){var k=r.getSizeAndPositionOfCell(E),R=E>=g.start&&E<=g.stop&&C>=y.start&&C<=y.stop,T=C+"-"+E,A=void 0;v&&m[T]?A=m[T]:o&&!o.has(C,E)?A={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(A={height:S.size,left:k.offset+a,position:"absolute",top:S.offset+f,width:k.size},m[T]=A);var x={columnIndex:E,isScrolling:l,isVisible:R,key:T,parent:u,rowIndex:C,style:A},D=void 0;!c&&!l||a||f?D=n(x):(t[T]||(t[T]=n(x)),D=t[T]),null!=D&&!1!==D&&w.push(D)}return w},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:qh(),noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Zh,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1},tp.propTypes=null,function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var s=e.displayName||e.name,o="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+o+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Vh,t.componentWillReceiveProps=Gh),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=zh;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;a.call(this,e,t,r)}}}(tp);const np=tp;var rp=n(9177),ip=n.n(rp);function sp(e,t){return ip()(e,t,{strict:!0})}function op(e,t){if(Object.is(e,t))return!0;if(null===e||null===t||"object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!Object.hasOwn(t,i)||!Object.is(e[i],t[i]))return!1}return!0}function ap(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function lp(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n))return!1;return!0}class cp extends Ae.Component{wrapperRef=null;focusWithinChangedTimeoutId=null;constructor(e){super(e),this.state={focusWithin:!1}}onFocusWithinChanged(e){this.setState({focusWithin:e}),null!==this.focusWithinChangedTimeoutId&&(cancelAnimationFrame(this.focusWithinChangedTimeoutId),this.focusWithinChangedTimeoutId=null),this.focusWithinChangedTimeoutId=requestAnimationFrame((()=>{this.props.onFocusWithinChanged&&this.props.onFocusWithinChanged(e),this.focusWithinChangedTimeoutId=null}))}onWrapperRef=e=>{e&&(e.addEventListener("focusin",(()=>{this.onFocusWithinChanged(!0)})),e.addEventListener("focusout",(()=>{this.onFocusWithinChanged(!1)}))),this.wrapperRef=e};onClick=e=>{this.props.onClick&&this.props.onClick(e)};onKeyDown=e=>{this.props.onKeyDown&&this.props.onKeyDown(e)};onMouseDown=e=>{e.target===this.wrapperRef&&e.preventDefault()};render(){const e=ri()("focus-container",this.props.className,{"focus-within":this.state.focusWithin});return Ae.createElement("div",{className:e,ref:this.onWrapperRef,role:this.props.role,onClick:this.onClick,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown},this.props.children)}}class up extends Ae.Component{keyboardFocusDetectionState="ready";onRef=e=>{this.props.onRowRef?.(this.props.rowIndex,e)};onRowMouseDown=e=>{this.props.onRowMouseDown(this.props.rowIndex,e)};onRowMouseUp=e=>{this.props.onRowMouseUp(this.props.rowIndex,e)};onRowClick=e=>{this.props.onRowClick(this.props.rowIndex,e)};onRowDoubleClick=e=>{this.props.onRowDoubleClick(this.props.rowIndex,e)};onRowKeyDown=e=>{this.props.onRowKeyDown(this.props.rowIndex,e),this.keyboardFocusDetectionState="failed"};onRowKeyUp=e=>{"focused"===this.keyboardFocusDetectionState&&this.props.onRowKeyboardFocus?.(this.props.rowIndex,e),this.keyboardFocusDetectionState="ready"};onFocus=e=>{this.props.onRowFocus?.(this.props.rowIndex,e),"ready"===this.keyboardFocusDetectionState&&(this.keyboardFocusDetectionState="focused")};onBlur=e=>{this.keyboardFocusDetectionState="ready",this.props.onRowBlur?.(this.props.rowIndex,e)};onContextMenu=e=>{this.props.onContextMenu?.(this.props.rowIndex,e)};render(){const{selected:e,selectedForKeyboardInsertion:t,selectable:n,inKeyboardInsertionMode:r,className:i,style:s,rowCount:o,id:a,tabIndex:l,rowIndex:c,children:u,sectionHasHeader:h}=this.props,p=ri()("list-item",{selected:e,"in-keyboard-insertion-mode":r,"selected-for-keyboard-insertion":t,"not-selectable":!1===n},i),d={...s,width:"100%"};let m=o,f=c.row+1;return h&&(0===c.row?(m=void 0,f=void 0):(m-=1,f-=1)),Ae.createElement("div",{id:a,role:h&&0===c.row?"presentation":"option","aria-setsize":m,"aria-posinset":f,"aria-selected":n?e:void 0,"aria-label":this.props.ariaLabel,className:p,tabIndex:l,ref:this.onRef,onMouseDown:this.onRowMouseDown,onMouseUp:this.onRowMouseUp,onClick:this.onRowClick,onDoubleClick:this.onRowDoubleClick,onKeyDown:this.onRowKeyDown,onKeyUp:this.onRowKeyUp,style:d,onFocus:this.onFocus,onBlur:this.onBlur,onContextMenu:this.onContextMenu},Ae.createElement("div",{className:"list-item-content-wrapper","aria-hidden":void 0!==this.props.ariaLabel},u))}}const hp={section:-1,row:-1};function pp(e,t){return e.section===t.section&&e.row===t.row}function dp(e){return e.reduce(((e,t)=>e+t),0)}function mp(e,t){if(!gp(e,t))return null;let n=0;for(let r=0;r<e.section;r++)n+=t[r];return n+=e.row,n}function fp(e,t){if(e<0||e>=dp(t))return null;let n=0,r=e;for(;r>=t[n];)r-=t[n],n++;return{section:n,row:r}}function gp(e,t){return e.section>=0&&e.section<t.length&&e.row>=0&&e.row<t[e.section]}function yp(e,t,n=(e=>!0)){const r=dp(e);if(0===r)return null;const{direction:i,row:s}=t,o=void 0===t.wrap||t.wrap,a=pp(hp,s)?-1:mp(s,e);if(null===a)return null;let l=gp(s,e)?a:"up"===i?r-1:0;"down"===i&&pp(s,hp)&&(l=-1);const c="up"===i?-1:1;for(let t=0;t<r;t++){if(l+=c,l>=r){if(!o)break;l=0}else if(l<0){if(!o)break;l=r-1}const t=fp(l,e);if(null!==t&&!pp(s,t)&&n(t))return t}return null}function wp(e,t,n){const r=dp(t);let i="up"===e?0:r-1;const s="up"===e?1:-1;for(;i>=0&&i<r;i+=s){const e=fp(i,t);if(null!==e&&n(e))return e}return null}const bp=new class{_isDragInProgress=!1;_dragData=null;emitter=new ft.Emitter;get isDragInProgress(){return this._isDragInProgress}emitEnterDropTarget(e){this.emitter.emit("enter-drop-target",e)}emitLeaveDropTarget(){this.emitter.emit("leave-drop-target",{})}onEnterDropTarget(e){return this.emitter.on("enter-drop-target",e)}onLeaveDropTarget(e){return this.emitter.on("leave-drop-target",e)}onDragStarted(e){return this.emitter.on("drag-started",e)}onDragEnded(e){return this.emitter.on("drag-ended",e)}dragStarted(){this._isDragInProgress=!0,this.emitter.emit("drag-started",{})}dragEnded(e){this._isDragInProgress=!1,this.emitter.emit("drag-ended",e)}emitEnterDragZone(e){this.emitter.emit("enter-drop-zone",e)}onEnterDragZone(e){return this.emitter.on("enter-drop-zone",e)}setDragData(e){this._dragData=e}get dragData(){return this._dragData}isDragOfTypeInProgress(e){return this._isDragInProgress&&this.isDragOfType(e)}isDragOfType(e){return null!==this._dragData&&this._dragData.type===e}};var vp,Cp,Sp,Ep;!function(e){e[e.Commit=0]="Commit"}(vp||(vp={})),function(e){e[e.Branch=0]="Branch",e[e.Commit=1]="Commit",e[e.ListInsertionPoint=2]="ListInsertionPoint"}(Cp||(Cp={})),function(e){e.Branch=".branches-list-item",e.PullRequest=".pull-request-item",e.Commit=".commit",e.ListInsertionPoint=".list-insertion-point"}(Sp||(Sp={})),function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom"}(Ep||(Ep={}));class kp extends Ae.PureComponent{onDragStartedDisposable=null;onDragEndedDisposable=null;constructor(e){super(e),this.state={isDragInProgress:this.isDragInProgress(),feedbackType:Ep.None}}componentDidMount(){this.onDragStartedDisposable=bp.onDragStarted(this.updateDragInProgressState),this.onDragEndedDisposable=bp.onDragEnded((e=>{this.updateDragInProgressState()}))}componentWillUnmount(){null!==this.onDragStartedDisposable&&(this.onDragStartedDisposable.dispose(),this.onDragStartedDisposable=null),null!==this.onDragEndedDisposable&&(this.onDragEndedDisposable.dispose(),this.onDragEndedDisposable=null)}updateDragInProgressState=()=>{const e=this.isDragInProgress();this.setState({isDragInProgress:e,feedbackType:e?this.state.feedbackType:Ep.None})};renderInsertionIndicator(e){const t=e===Ep.Top,n=ri()("list-item-insertion-indicator",{top:t,bottom:!t});return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:`${n} darwin-circle`}),Ae.createElement("div",{className:`${n} darwin-line`}))}render(){return Ae.createElement("div",{className:"list-item-insertion-overlay"},this.renderTopElements(),this.props.children,this.renderBottomElements())}renderTopElements(){return!0===this.props.isKeyboardInsertion?this.props.forcedFeedbackType===Ep.Top&&this.renderInsertionIndicator(Ep.Top):this.state.isDragInProgress?Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"list-insertion-point top",onMouseEnter:this.getOnInsertionAreaMouseEnter(Ep.Top),onMouseLeave:this.onInsertionAreaMouseLeave,onMouseUp:this.onInsertionAreaMouseUp}),this.state.feedbackType===Ep.Top&&this.renderInsertionIndicator(Ep.Top)):null}renderBottomElements(){return!0===this.props.isKeyboardInsertion?this.props.forcedFeedbackType===Ep.Bottom&&this.renderInsertionIndicator(Ep.Bottom):this.state.isDragInProgress?Ae.createElement(Ae.Fragment,null,this.state.feedbackType===Ep.Bottom&&this.renderInsertionIndicator(Ep.Bottom),Ae.createElement("div",{className:"list-insertion-point bottom",onMouseEnter:this.getOnInsertionAreaMouseEnter(Ep.Bottom),onMouseLeave:this.onInsertionAreaMouseLeave,onMouseUp:this.onInsertionAreaMouseUp})):null}isDragInProgress(){return bp.isDragOfTypeInProgress(this.props.dragType)}getOnInsertionAreaMouseEnter(e){return t=>{this.switchToInsertionFeedbackType(e)}}onInsertionAreaMouseLeave=e=>{this.switchToInsertionFeedbackType(Ep.None)};switchToInsertionFeedbackType(e){(e===Ep.None||this.state.isDragInProgress)&&(this.setState({feedbackType:e}),e===Ep.None?bp.emitLeaveDropTarget():this.state.isDragInProgress&&null!==bp.dragData&&bp.emitEnterDropTarget({type:Cp.ListInsertionPoint,data:bp.dragData,index:this.props.itemIndex}))}onInsertionAreaMouseUp=()=>{if(this.state.isDragInProgress&&this.state.feedbackType!==Ep.None&&null!==bp.dragData){if(void 0!==this.props.onDropDataInsertion){let e=this.props.itemIndex;this.state.feedbackType===Ep.Bottom&&(e={...e,row:e.row+1}),this.props.onDropDataInsertion(e,bp.dragData)}this.switchToInsertionFeedbackType(Ep.None)}}}function Rp(e,t,n){null===t&&(t=e||0,e=0),n||(n=t<e?-1:1);const r=Math.max(Math.ceil((t-e)/n),0),i=new Array(r);for(let t=0;t<r;t++,e+=n)i[t]=e;return i}const Tp="has-shown-welcome-flow";function Ap(){return Ht(Tp,!1)}function xp(e,t){const n=Object.assign({},e);for(const e in t)n[e]=t[e];return n}var Dp;function _p(e){switch(e){case Dp.Light:return"light";case Dp.Dark:return"dark";default:return"system"}}!function(e){e.Light="light",e.Dark="dark",e.System="system"}(Dp||(Dp={}));const Mp="autoSwitchTheme",Pp="theme";async function Ip(){return await G()?Dp.Dark:Dp.Light}function Op(){return"system"===function(){const e=Ht(Mp,!1);return localStorage.removeItem(Mp),e?(Np(Dp.System),"system"):null}()?Dp.System:function(){const e=localStorage.getItem(Pp);return e===Dp.Light||e===Dp.Dark?e:Dp.System}()}function Np(e){const t=_p(e);localStorage.setItem(Pp,e),V(t)}function Lp(e){return Bp(e.endpoint)}function Bp(e){return`GitHub - ${e}`}class Fp{emitter=new ft.Emitter;emitUpdate(){this.emitter.emit("did-update",{})}emitError(e){this.emitter.emit("did-error",e)}onDidUpdate(e){return this.emitter.on("did-update",e)}onDidError(e){return this.emitter.on("did-error",e)}}class Hp{emitter=new ft.Emitter;emitUpdate(e){this.emitter.emit("did-update",e)}emitError(e){this.emitter.emit("did-error",e)}onDidUpdate(e){return this.emitter.on("did-update",e)}onDidError(e){return this.emitter.on("did-error",e)}}function Up(e){const t=e.match(/.*?\/(.*)/);return!t||t.length<2?null:t[1]}const Zp="github-desktop-";var $p,Wp,qp;!function(e){e[e.Local=0]="Local",e[e.Remote=1]="Remote"}($p||($p={})),function(e){e.CurrentBranch="CurrentBranch",e.DefaultBranch="DefaultBranch",e.Head="Head",e.UpstreamDefaultBranch="UpstreamDefaultBranch"}(Wp||(Wp={}));class Vp{name;upstream;tip;type;ref;constructor(e,t,n,r,i){this.name=e,this.upstream=t,this.tip=n,this.type=r,this.ref=i}get upstreamRemoteName(){const e=this.upstream;if(!e)return null;const t=e.match(/(.*?)\/.*/);return!t||t.length<2?null:t[1]}get remoteName(){if(this.type===$p.Local)return null;const e=this.ref.match(/^refs\/remotes\/(.*?)\/.*/);if(!e||2!==e.length)throw new Error(`Remote branch ref has unexpected format: ${this.ref}`);return e[1]}get upstreamWithoutRemote(){return this.upstream?Up(this.upstream):null}get nameWithoutRemote(){return this.type===$p.Local?this.name:Up(this.name)||this.name}get isDesktopForkRemoteBranch(){return this.type===$p.Remote&&this.name.startsWith(Zp)}}!function(e){e[e.Branches=0]="Branches",e[e.PullRequests=1]="PullRequests"}(qp||(qp={}));var Gp=n(4682),zp=n(8156);function jp(e){return e instanceof Error&&"string"==typeof e.code&&"string"==typeof e.syscall}var Kp=n(861),Yp=n.n(Kp);function Xp(e,t){const n=function(e,t){if(!1===t.global)throw new Error("A regex has been provided that is not marked as global, and has the potential to execute forever if it finds a match");const n=new Array;let r=t.exec(e);for(;null!==r;)n.push(r),r=t.exec(e);return n}(e,t),r=n.reduce(((e,t)=>e.concat([t.slice(1)])),new Array);return r}const Qp=require("net");var Jp,ed;!function(e){e.AskPass="ASKPASS",e.CredentialHelper="CREDENTIALHELPER"}(Jp||(Jp={})),function(e){e[e.ParameterCount=0]="ParameterCount",e[e.Parameters=1]="Parameters",e[e.EnvironmentVariablesCount=2]="EnvironmentVariablesCount",e[e.EnvironmentVariables=3]="EnvironmentVariables",e[e.Stdin=4]="Stdin",e[e.Finished=5]="Finished"}(ed||(ed={}));class td{parameterCount=0;parameters=[];environmentVariablesCount=0;environmentVariables=new Map;stdin="";state=ed.ParameterCount;hasFinished(){return this.state===ed.Finished}processValue(e){switch(this.state){case ed.ParameterCount:this.parameterCount=parseInt(e),this.parameterCount>0?this.state=ed.Parameters:this.state=ed.EnvironmentVariablesCount;break;case ed.Parameters:this.parameters.push(e),this.parameters.length===this.parameterCount&&(this.state=ed.EnvironmentVariablesCount);break;case ed.EnvironmentVariablesCount:this.environmentVariablesCount=parseInt(e),this.environmentVariablesCount>0?this.state=ed.EnvironmentVariables:this.state=ed.Stdin;break;case ed.EnvironmentVariables:const t=/([^=]+)=(.*)/.exec(e);if(null===t||3!==t.length)throw new Error(`Unexpected environment variable format: ${e}`);const n=t[1],r=t[2];this.environmentVariables.set(n,r),this.environmentVariables.size===this.environmentVariablesCount&&(this.state=ed.Stdin);break;case ed.Stdin:this.stdin=e,this.state=ed.Finished;break;case ed.Finished:throw new Error("Received value when in Finished");default:ct(this.state,`Invalid state: ${this.state}`)}}toCommand(){if(!1===this.hasFinished()){const e=new Error("The command cannot be generated if parsing is not finished");return this.logCommandCreationError(e),null}const e=this.environmentVariables.get("DESKTOP_TRAMPOLINE_IDENTIFIER");if(void 0===e){const e=new Error(`The command identifier is missing. Env variables received: ${Array.from(this.environmentVariables.keys())}`);return this.logCommandCreationError(e),null}const t=Ft(Jp,e);if(void 0===t){const t=new Error(`The command identifier ${e} is not supported`);return this.logCommandCreationError(t),null}const n=this.environmentVariables.get("DESKTOP_TRAMPOLINE_TOKEN");if(void 0===n){const e=new Error("The trampoline token is missing");return this.logCommandCreationError(e),null}return{identifier:t,trampolineToken:n,parameters:this.parameters,environmentVariables:this.environmentVariables,stdin:this.stdin}}logCommandCreationError(e){log.error("Error creating trampoline command:",e),FT("trampolineCommandParser",e)}}const nd=new Set;const rd=new class{server;listeningPromise=null;commandHandlers=new Map;constructor(){this.server=(0,Qp.createServer)((e=>this.onNewConnection(e))),this.server.unref()}async listen(){return this.listeningPromise=new Promise(((e,t)=>{this.server.on("error",(e=>{t(e),this.close()})),this.server.listen(0,"127.0.0.1",(async()=>{this.server.removeAllListeners("error"),this.server.on("error",this.onServerError),e()}))})),this.listeningPromise}async close(){null!==this.listeningPromise&&await this.listeningPromise,this.server.close(),this.server.removeAllListeners("error"),this.listeningPromise=null}async getPort(){return null!==this.port||(null!==this.listeningPromise?await this.listeningPromise:await this.listen()),this.port}get port(){const e=this.server.address();return e&&e.port?e.port:null}onNewConnection(e){const t=new td;e.pipe(Yp()(/\0/)).on("data",(n=>{this.onDataReceived(e,t,n)})),e.on("error",this.onClientError)}onDataReceived(e,t,n){const r=n.toString("utf8");try{t.processValue(r)}catch(t){return log.error("Error processing trampoline data",t),void e.end()}if(!t.hasFinished())return;const i=t.toCommand();null!==i?this.processCommand(e,i):e.end()}registerCommandHandler(e,t){this.commandHandlers.set(e,t)}async processCommand(e,t){if(n=t.trampolineToken,!nd.has(n))throw new Error("Tried to use invalid trampoline token");var n;const r=this.commandHandlers.get(t.identifier);if(void 0===r)return void e.end();const i=await r(t).catch((e=>log.error("Error processing trampoline command",e)));void 0!==i?e.end(i):e.end()}onServerError=e=>{FT("trampolineServer",e),this.close()};onClientError=e=>{log.error("Trampoline client error",e)}},id="useWindowsOpenSSH",sd=Tr((async()=>!1));function od(e){return`GitHub Desktop - ${e}`}const ad=new Map;async function ld(e,t,n,r){ad.set(e,{store:t,key:n,secret:r})}function cd(e){ad.delete(e)}var ud=n(193);const hd={setItem:function(e,t,n){return ud.setPassword(e,t,n)},getItem:function(e,t){return ud.getPassword(e,t)},deleteItem:function(e,t){return ud.deletePassword(e,t)}};function pd(e){return`genericGitAuth/username/${e}`}function dd(e,t){const n=pd(e);return localStorage.setItem(n,t)}function md(e,t,n){const r=Bp(e);return hd.setItem(r,t,n)}function fd(e,t){return localStorage.removeItem(pd(e)),hd.deleteItem(Bp(e),t)}var gd=n(2750);const yd=new Map,wd=new Map,bd=(e,t)=>{const n=wd.get(e);n?n.add(t):wd.set(e,new Set([t]))},vd=new Map,Cd=new Map,Sd=e=>Cd.get(e)??process.cwd(),Ed=e=>vd.get(e)??!1,kd=e=>{const t=e.get("url");if(t)return new URL(t);const n=e.get("protocol")??"",r=e.get("username"),i=r?`${encodeURIComponent(r)}@`:"",s=e.get("host")??"",o=e.get("path")??"";return new URL(`${n}://${i}${s}/${o}`)},Rd=Tr((()=>Gp.GitProcess.exec(["--version"],process.cwd()).then((e=>/git version (.*)/.exec(e.stdout)?.at(1)??"unknown")).catch((e=>(log.warn("Could not get git version information",e),"unknown"))).then((e=>{const{platform:t,arch:n}=process;return`git/${e} (GitHub Desktop/3.4.3-linux1; ${t} ${n})`})))),Td=/^fatal: could not read .*?: terminal prompts disabled\n$/;async function Ad(e,n,r=!1){const i=await async function(){const e={SSH_ASKPASS:t.resolve(__dirname,"desktop-trampoline",(0,gd.getDesktopAskpassTrampolineFilename)()),DISPLAY:"."};return await sd()&&function(){try{return Ht(id,!1)}catch(e){return!1}}()?{...e,GIT_SSH_COMMAND:"C:/Windows/System32/OpenSSH/ssh.exe"}:e}();return async function(e){const t=function(){const e=kn();return nd.add(e),e}();let n;try{n=await e(t)}finally{!function(e){nd.delete(e)}(t)}return n}((async t=>{vd.set(t,r),Cd.set(t,n);try{const n=await e({DESKTOP_PORT:await rd.getPort(),DESKTOP_TRAMPOLINE_TOKEN:t,GIT_ASKPASS:"",GIT_CONFIG_COUNT:"2",GIT_CONFIG_KEY_0:"credential.helper",GIT_CONFIG_VALUE_0:"",GIT_CONFIG_KEY_1:"credential.helper",GIT_CONFIG_VALUE_1:"desktop",GIT_USER_AGENT:await Rd(),...i});return await async function(e){const t=ad.get(e);void 0!==t&&await hd.setItem(t.store,t.key,t.secret)}(t),n}catch(e){if(xd(e)&&!Ed(t)&&function(e){const t=yd.get(e);if(t){const{endpoint:e,login:n}=t;log.info(`askPassHandler: auth failed, deleting ${e} credential`),fd(e,n)}}(t),wd.has(t)&&e instanceof Dd&&Td.test(e.message)){const t=Nd(Gp.GitError.HTTPSAuthenticationFailed,"")??"Authentication failed: user cancelled authentication",n=new Dd({...e.result,gitErrorDescription:t},e.args);throw n.cause=e,n}throw e}finally{cd(t),yd.delete(t),vd.delete(t),wd.delete(t),Cd.delete(t)}}))}const xd=e=>e instanceof Dd&&e.result.gitError===Gp.GitError.HTTPSAuthenticationFailed;class Dd extends Error{result;args;isRawMessage;constructor(e,t){let n,r=!0;e.gitErrorDescription?(n=e.gitErrorDescription,r=!1):e.combinedOutput.length>0?n=e.combinedOutput:e.stderr.length?n=e.stderr:e.stdout.length?n=e.stdout:(n="Unknown error",r=!1),super(n),this.name="GitError",this.result=e,this.args=t,this.isRawMessage=r}}async function _d(e,t,n,r){const i={successExitCodes:new Set([0]),expectedErrors:new Set};let s="";const o={...i,...r};return o.processCallback=e=>{r?.processCallback?.(e);const t=e=>{e&&e.pipe(Yp()()).on("data",(e=>{s+=e+"\n"}))};t(e.stderr),t(e.stdout)},Ad((async r=>{const i=xp(o.env,r);o.env={TERM:"dumb",...i};const a=`${n}: git ${e.join(" ")}`,l=await zp.measure(a,(()=>Gp.GitProcess.exec(e,t,o))).catch((e=>{if(jp(e))throw new Error(`Failed to execute ${n}: ${e.code}`);throw e})),c=l.exitCode;let u=null;const h=!!o.successExitCodes&&o.successExitCodes.has(c);h||(u=Gp.GitProcess.parseError(l.stderr),null===u&&(u=Gp.GitProcess.parseError(l.stdout)));const p=null!==u?Nd(u,l.stderr):null,d={...l,gitError:u,gitErrorDescription:p,combinedOutput:s,path:t};let m=!0;if(null!==u&&o.expectedErrors&&(m=o.expectedErrors.has(u)),null!==u&&m||h)return d;const f=new Array;if(f.push(`\`git ${e.join(" ")}\` exited with an unexpected code: ${c}.`),l.stdout&&(f.push("stdout:"),f.push(l.stdout)),l.stderr&&(f.push("stderr:"),f.push(l.stderr)),null!==u&&f.push(`(The error was parsed as ${u}: ${p})`),log.error(f.join("\n")),u===Gp.GitError.PushWithFileSizeExceedingLimit){const e=function(e){const t=Array.from(e.matchAll(/(^remote:\serror:\sFile\s)/gm)),n=Array.from(e.matchAll(/(;\sthis\sexceeds\sGitHub's\sfile\ssize\slimit\sof\s100.00\sMB)/gm));if(t.length!==n.length)return[];const r=[];for(let i=0;i<t.length;i++){const s=t[i],o=n[i];if(void 0===s.index||void 0===o.index)continue;const a=s.index+s[0].length,l=o.index;let c=e.slice(a,l);c=c.replace("is ","("),c+=")",r.push(c)}return r}(f.join()),t=e.join("\n");""!==t&&(d.gitErrorDescription+="\n\nFile causing error:\n\n"+t)}throw new Dd(d,e)}),t,r?.isBackgroundTask??!1)}function Md(e){switch(e){case Gp.GitError.SSHAuthenticationFailed:case Gp.GitError.SSHPermissionDenied:case Gp.GitError.HTTPSAuthenticationFailed:return!0}return!1}function Pd(e){return e instanceof Dd&&e.result.gitError===Gp.GitError.ConfigLockFileAlreadyExists}const Id=/^error: could not lock config file (.+?): File exists$/m;function Od(e){const n=Id.exec(e.stderr);if(null===n)return null;const r=n[1];return t.resolve(e.path,`${r}.lock`)}function Nd(e,t){if(Md(e))return"身份验证失败。一些常见原因包括:\n\n- 您尚未登录到您的帐户:请参阅文件>选项。\n- 您可能需要注销并重新登录才能刷新令牌。\n- 您没有访问此存储库的权限。\n- 存储库存档在 GitHub 上。检查存储库设置以确认您仍可以推送提交。\n- 如果您使用 SSH 身份验证,请检查您的密钥是否已添加到 ssh 代理并与您的帐户关联。\n- 如果使用 SSH 身份验证,请确保存储库托管服务的主机密钥验证通过。\n- 如果使用了用户名/密码身份验证,则可能需要使用个人访问令牌而不是帐户密码。请查看存储库托管服务的文档.";switch(e){case Gp.GitError.BadConfigValue:const n=Gp.GitProcess.parseBadConfigValueErrorInfo(t);return null===n?"Unsupported git configuration value.":`Unsupported value '${n.value}' for git config key '${n.key}'`;case Gp.GitError.SSHKeyAuditUnverified:return"SSH密钥未验证.";case Gp.GitError.RemoteDisconnection:return"远程已断开连接。请检查您的Internet连接然后重试.";case Gp.GitError.HostDown:return"主机已关闭。请检查您的Internet连接然后重试.";case Gp.GitError.RebaseConflicts:return"我们在尝试重新变基时发现了一些冲突。请在继续之前解决冲突.";case Gp.GitError.MergeConflicts:return"尝试合并时发现一些冲突。请解决冲突并提交更改.";case Gp.GitError.HTTPSRepositoryNotFound:case Gp.GitError.SSHRepositoryNotFound:return"存储库似乎不再存在。您可能没有访问权限,或者它可能已被删除或重命名.";case Gp.GitError.PushNotFastForward:return"自上次提取后,存储库已更新。在推送之前试着拉取.";case Gp.GitError.BranchDeletionFailed:return"无法删除分支。它可能已被删除.";case Gp.GitError.DefaultBranchDeletionFailed:return"该分支是仓库的默认分支,无法删除.";case Gp.GitError.RevertConflicts:return"要完成还原,请合并并提交更改.";case Gp.GitError.EmptyRebasePatch:return"没有要应用的任何更改.";case Gp.GitError.NoMatchingRemoteBranch:return"没有任何与当前分支匹配的远程分支.";case Gp.GitError.NothingToCommit:return"没有要提交的更改.";case Gp.GitError.NoSubmoduleMapping:return"已从中删除子模块。gitmodules但该文件夹仍存在于仓库中。删除文件夹提交更改然后重试.";case Gp.GitError.SubmoduleRepositoryDoesNotExist:return"子模块指向不存在的位置.";case Gp.GitError.InvalidSubmoduleSHA:return"子模块指向不存在的提交.";case Gp.GitError.LocalPermissionDenied:return"权限被拒绝。";case Gp.GitError.InvalidMerge:return"这不是我们可以合并的东西.";case Gp.GitError.InvalidRebase:return"这不是我们可以调整的变基.";case Gp.GitError.NonFastForwardMergeIntoEmptyHead:return"您尝试的合并不是快进,因此无法在空分支上执行.";case Gp.GitError.PatchDoesNotApply:return"请求的更改与仓库中的一个或多个文件冲突.";case Gp.GitError.BranchAlreadyExists:return"具有该名称的分支已存在.";case Gp.GitError.BadRevision:return"错误的修订.";case Gp.GitError.NotAGitRepository:return"这不是git仓库.";case Gp.GitError.ProtectedBranchForcePush:return"此分支受到强制推送操作的保护.";case Gp.GitError.ProtectedBranchRequiresReview:return"此分支受到保护任何更改都需要经过批准的审查。打开一个pull请求更改的目标改为此分支.";case Gp.GitError.PushWithFileSizeExceedingLimit:return"推送操作包括一个超过GitHub的100MB文件大小限制的文件。请从历史记录中删除该文件然后重试.";case Gp.GitError.HexBranchNameRejected:return"分支名称不能是由十六进制字符组成的40个字符的字符串因为这是Git用于表示对象的格式.";case Gp.GitError.ForcePushRejected:return"当前分支的强制推送已被拒绝.";case Gp.GitError.InvalidRefLength:return"引用长度不能超过255个字符.";case Gp.GitError.CannotMergeUnrelatedHistories:return"无法在此仓库中合并不相关的历史记录.";case Gp.GitError.PushWithPrivateEmail:return'无法推送这些提交因为它们包含GitHub上标记为专用的电子邮件地址。要继续推送请访问https://github.com/settings/emails取消选中“保持我的电子邮件地址私有”然后切换回GitHub桌面以推动提交。然后可以再次启用该设置.';case Gp.GitError.LFSAttributeDoesNotMatch:return"在全局Git配置中找到的Git LFS属性与预期值不匹配.";case Gp.GitError.ProtectedBranchDeleteRejected:return"无法从远程仓库中删除此分支,因为它被标记为受保护.";case Gp.GitError.ProtectedBranchRequiredStatus:return"推送被远程服务器拒绝,因为未满足所需的状态检查.";case Gp.GitError.BranchRenameFailed:return"无法重命名分支.";case Gp.GitError.PathDoesNotExist:return"磁盘上不存在路径.";case Gp.GitError.InvalidObjectName:return"在Git仓库中找不到该对象.";case Gp.GitError.OutsideRepository:return"此路径不是仓库中的有效路径.";case Gp.GitError.LockFileAlreadyExists:return"仓库中已存在锁定文件,这将阻止此操作完成.";case Gp.GitError.NoMergeToAbort:return"没有正在进行的合并,因此没有要中止的内容.";case Gp.GitError.NoExistingRemoteBranch:return"远程分支不存在.";case Gp.GitError.LocalChangesOverwritten:return"无法切换分支,因为存在将被覆盖的工作目录更改。请提交或隐藏您的更改.";case Gp.GitError.UnresolvedConflicts:return"工作目录中存在未解决的冲突.";case Gp.GitError.ConfigLockFileAlreadyExists:case Gp.GitError.RemoteAlreadyExists:return null;case Gp.GitError.TagAlreadyExists:return"具有该名称的标记已存在";case Gp.GitError.MergeWithLocalChanges:case Gp.GitError.RebaseWithLocalChanges:case Gp.GitError.GPGFailedToSignData:case Gp.GitError.ConflictModifyDeletedInBranch:case Gp.GitError.MergeCommitNoMainlineOption:case Gp.GitError.UnsafeDirectory:case Gp.GitError.PathExistsButNotInRef:return null;default:return ct(0,`Unknown error: ${e}`)}}function Ld(e){return e.stdout.split("]")[0].split(" ")[1]}function Bd(e,t,n=!1){return Ud(t,e.path,n)}function Fd(e,t){return Ud(e,null,!1,void 0,t)}async function Hd(e,t,n=!1,r){const i=await Ud(t,e.path,n,"bool",r);return null===i?null:"false"!==i}async function Ud(e,t,n=!1,r,i){const s=["config","-z"];t?n&&s.push("--local"):s.push("--global"),void 0!==r&&s.push("--type",r),s.push(e);const o=await _d(s,t||__dirname,"getConfigValueInPath",{successExitCodes:new Set([0,1]),env:i});return 1===o.exitCode?null:o.stdout.split("\0")[0]}async function Zd(e){const n=e?{env:e}:void 0,r=(await _d(["config","--global","--list","--show-origin","--name-only","-z"],__dirname,"getGlobalConfigPath",n)).stdout.split("\0");if(r.length<1)return null;const i=r[0];if(!i.length)return null;const s=i.match(/file:(.+)/i);return!s||s.length<2?null:(0,t.normalize)(s[1])}async function $d(e,t,n,r){return Vd(t,n,e.path,r)}async function Wd(e,t,n){return Vd(e,t,null,n)}async function qd(e){await async function(e,t){const{stdout:n,exitCode:r}=await _d(["config","--global","-z","--get-all",e,t],__dirname,"addGlobalConfigValue",{successExitCodes:new Set([0,1])});1!==r&&n.split("\0").includes(t)||await async function(e,t){await _d(["config","--global","--add","safe.directory",t],__dirname,"addGlobalConfigValue")}(0,t)}("safe.directory",e)}async function Vd(e,t,n,r){const i=r?{env:r}:void 0,s=["config"];n||s.push("--global"),s.push("--replace-all",e,t),await _d(s,n||__dirname,"setConfigValueInPath",i)}async function Gd(e,t,n){return async function(e,t,n){const r=n?{env:n}:void 0,i=["config"];t||i.push("--global"),i.push("--unset-all",e),await _d(i,t||__dirname,"removeConfigValueInPath",r)}(t,e.path,n)}function zd(e){return"co-authored-by"===e.token.toLowerCase()}function jd(e,t){const n=e.split("\n"),r=new Array;for(const e of n){const n=Kd(e,t);n&&r.push(n)}return r}function Kd(e,t){for(const n of t){const t=e.indexOf(n);if(t>0)return{token:e.substring(0,t).trim(),value:e.substring(t+1).trim()}}return null}async function Yd(e){return await Bd(e,"trailer.separators")||":"}async function Xd(e,t,n,r=!1){const i=["interpret-trailers"];i.push("--no-divider"),r&&i.push("--unfold");for(const e of n)i.push("--trailer",`${e.token}=${e.value}`);return(await _d(i,e.path,"mergeTrailers",{stdin:t})).stdout}class Qd{name;email;static parse(e){const t=e.match(/^(.*?)\s+<(.*?)>/);return null===t?null:new Qd(t[1],t[2])}constructor(e,t){this.name=e,this.email=t}toString(){return`${this.name} <${this.email}>`}}function Jd(e){return e.slice(0,9)}class em{sha;shortSha;summary;body;author;committer;parentSHAs;trailers;tags;coAuthors;bodyNoCoAuthors;authoredByCommitter;isMergeCommit;constructor(e,t,n,r,i,s,o,a,l){this.sha=e,this.shortSha=t,this.summary=n,this.body=r,this.author=i,this.committer=s,this.parentSHAs=o,this.trailers=a,this.tags=l,this.coAuthors=function(e){const t=[];for(const n of e)if(zd(n)){const e=Qd.parse(n.value);e&&t.push(e)}return t}(a),this.authoredByCommitter=this.author.name===this.committer.name&&this.author.email===this.committer.email,this.bodyNoCoAuthors=function(e,t){let n=t;return e.filter(zd).forEach((({token:e,value:t})=>{n=n.replace(`${e}: ${t}`,"")})),n}(a,r),this.isMergeCommit=o.length>1}}function tm(e){return`refs/pull/${e}/head`}class nm{ref;sha;gitHubRepository;constructor(e,t,n){this.ref=e,this.sha=t,this.gitHubRepository=n}}class rm{created;title;pullRequestNumber;head;base;author;draft;body;constructor(e,t,n,r,i,s,o,a){this.created=e,this.title=t,this.pullRequestNumber=n,this.head=r,this.base=i,this.author=s,this.draft=o,this.body=a}}var im;!function(e){e.PreviewPullRequest="PreviewPullRequest",e.CreatePullRequest="CreatePullRequest"}(im||(im={}));const sm=im.PreviewPullRequest,om=new class{emitter=new ft.Emitter;constructor(){this.subscribe()}subscribe=()=>{y("native-theme-updated",this.onThemeNotificationUpdated)};onThemeNotificationUpdated=async()=>{const e=await Ip();this.emitThemeChanged(e)};onThemeChanged(e){return this.emitter.on("theme-changed",e)}emitThemeChanged(e){this.emitter.emit("theme-changed",e)}};class am extends Error{metadata;constructor(e,t={}){super(e),this.metadata=t}}const lm="Visual Studio Code",cm="https://code.visualstudio.com";n(7626);var um=n(6969);const hm=(e,...n)=>({key:e,subKey:t.win32.join(...n)}),pm="SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall",dm=e=>hm(um.HKEY.HKEY_CURRENT_USER,pm,e),mm=e=>hm(um.HKEY.HKEY_LOCAL_MACHINE,pm,e),fm=e=>hm(um.HKEY.HKEY_LOCAL_MACHINE,"SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall",e),gm=e=>{const t=(new Date).getFullYear(),n=t-2,r=new Array;for(let i=n;i<=t;i++)for(let t=1;t<=5;t++)for(let n=0;n<=5;n++){let s=`${e} ${i}.${t}`;n>0&&(s=`${s}.${n}`),r.push(fm(s)),r.push(dm(s))}return r.reverse()},ym=e=>[["bin",`${e}64.exe`],["bin",`${e}.exe`]];dm("atom"),dm("atom-beta"),dm("atom-nightly"),dm("{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1"),dm("{D628A17A-9713-46BF-8D57-E671B46A741E}_is1"),dm("{D9E514E7-1A56-452D-9337-2990C0DC4310}_is1"),mm("{EA457B21-F73E-494C-ACAB-524FDE069978}_is1"),fm("{F8A2A208-72B3-4D61-95FC-8A65D340689B}_is1"),mm("{A5270FC5-65AD-483E-AC30-2C276B63D0AC}_is1"),dm("{217B4C08-948D-4276-BFBB-BEE930AE5A2C}_is1"),dm("{26F4A15E-E392-4887-8C09-7BC55712FD5B}_is1"),dm("{69BD8F7B-65EB-4C6F-A14E-44CFA83712C0}_is1"),mm("{1287CAD5-7C8D-410D-88B9-0D1EE4A83FF2}_is1"),fm("{C26E74D1-022E-4238-8B9D-1E7564A36CC9}_is1"),mm("{0AEDB616-9614-463B-97D7-119DD86CCA64}_is1"),dm("{2E1F05D1-C245-4562-81EE-28188DB6FD17}_is1"),dm("{0FD05EB4-651E-4E78-A062-515204B47A3A}_is1"),dm("{57FD70A5-1B8D-4875-9F40-C5553F094828}_is1"),mm("{88DA3577-054F-4CA1-8122-7D820494CFFB}_is1"),fm("{763CBF88-25C6-4B10-952F-326AE657F16B}_is1"),mm("{67DEE444-3D04-4258-B92A-BC1F0FF2CAE4}_is1"),dm("{C6065F05-9603-4FC4-8101-B9781A25D88E}}_is1"),dm("{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}_is1"),mm("{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}_is1"),fm("{E34003BB-9E10-4501-8C11-BE3FAA83F23F}_is1"),mm("{D1ACE434-89C5-48D1-88D3-E2991DF85475}_is1"),dm("{20F79D0D-A9AC-4220-9A81-CE675FFB6B41}_is1"),dm("{ED2E5618-3E7E-4888-BF3C-A6CCC84F586F}_is1"),dm("{2E362F92-14EA-455A-9ABD-3E656BBBFE71}_is1"),mm("{B2E0DDB2-120E-4D34-9F7E-8C688FF839A2}_is1"),fm("{EF35BB36-FA7E-4BB9-B7DA-D1E09F2DA9C9}_is1"),mm("{44721278-64C6-4513-BC45-D48E07830599}_is1"),mm("Sublime Text_is1"),mm("Sublime Text 3_is1"),fm("{4F3B6E8C-401B-4EDE-A423-6481C239D6FF}"),mm("Adobe ColdFusion Builder 3_is1"),mm("Adobe ColdFusion Builder 2016"),mm("{37771A20-7167-44C0-B322-FD3E54C56156}_is1"),fm("{37771A20-7167-44C0-B322-FD3E54C56156}_is1"),mm("{18406187-F49E-4822-CAF2-1D25C0C83BA2}"),fm("{18006187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{18606187-F49E-4822-CAF2-1D25C0C83BA2}"),fm("{18206187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{15406187-F49E-4822-CAF2-1D25C0C83BA2}"),fm("{15006187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{10C06187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{10406187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{0DC06187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{0D406187-F49E-4822-CAF2-1D25C0C83BA2}"),mm("{7CC0E567-ACD6-41E8-95DA-154CEEDB0A18}"),fm("{2D6C1116-78C6-469C-9923-3E549218773F}"),gm("WebStorm"),ym("webstorm"),gm("PhpStorm"),ym("phpstorm"),mm("Android Studio"),mm("Notepad++"),fm("Notepad++"),gm("JetBrains Rider"),ym("rider"),fm("RStudio"),gm("IntelliJ IDEA"),ym("idea"),gm("IntelliJ IDEA Community Edition"),ym("idea"),gm("PyCharm"),ym("pycharm"),gm("PyCharm Community Edition"),ym("pycharm"),gm("CLion"),ym("clion"),gm("RubyMine"),ym("rubymine"),gm("GoLand"),ym("goland"),mm("Fleet"),gm("DataSpell"),ym("dataspell"),dm("0949b555-c22c-56b7-873a-a960bdefa81f"),mm("0949b555-c22c-56b7-873a-a960bdefa81f");var wm=n(4639);function bm(){return"1"===process.env.FLATPAK_HOST}async function vm(e){bm()&&(e=function(e){return e.startsWith("/opt/")||e.startsWith("/var/lib/flatpak")?e:(0,t.join)("/var/run/host",e)}(e));try{return await(0,wm.pathExists)(e)}catch{return!1}}function Cm(e,t,n){return bm()?(0,v.spawn)("flatpak-spawn",["--host",e,...t],n):(0,v.spawn)(e,t,n)}const Sm=[{name:"Atom",paths:["/snap/bin/atom","/usr/bin/atom"]},{name:"Neovim",paths:["/usr/bin/nvim"]},{name:"Neovim-Qt",paths:["/usr/bin/nvim-qt"]},{name:"Neovide",paths:["/usr/bin/neovide"]},{name:"gVim",paths:["/usr/bin/gvim"]},{name:"Visual Studio Code",paths:["/usr/share/code/bin/code","/snap/bin/code","/usr/bin/code","/mnt/c/Program Files/Microsoft VS Code/bin/code","/var/lib/flatpak/app/com.visualstudio.code/current/active/export/bin/com.visualstudio.code",".local/share/flatpak/app/com.visualstudio.code/current/active/export/bin/com.visualstudio.code"]},{name:"Visual Studio Code (Insiders)",paths:["/snap/bin/code-insiders","/usr/bin/code-insiders","/var/lib/flatpak/app/com.visualstudio.code.insiders/current/active/export/bin/com.visualstudio.code.insiders",".local/share/flatpak/app/com.visualstudio.code.insiders/current/active/export/bin/com.visualstudio.code.insiders"]},{name:"VSCodium",paths:["/usr/bin/codium","/var/lib/flatpak/app/com.vscodium.codium/current/active/export/bin/com.vscodium.codium","/usr/share/vscodium-bin/bin/codium",".local/share/flatpak/app/com.vscodium.codium/current/active/export/bin/com.vscodium.codium","/snap/bin/codium"]},{name:"VSCodium (Insiders)",paths:["/usr/bin/codium-insiders"]},{name:"Sublime Text",paths:["/usr/bin/subl"]},{name:"Typora",paths:["/usr/bin/typora"]},{name:"SlickEdit",paths:["/opt/slickedit-pro2018/bin/vs","/opt/slickedit-pro2017/bin/vs","/opt/slickedit-pro2016/bin/vs","/opt/slickedit-pro2015/bin/vs"]},{name:"Code",paths:["/usr/bin/io.elementary.code"]},{name:"Lite XL",paths:["/usr/bin/lite-xl"]},{name:"JetBrains PhpStorm",paths:["/snap/bin/phpstorm",".local/share/JetBrains/Toolbox/scripts/phpstorm"]},{name:"JetBrains WebStorm",paths:["/snap/bin/webstorm",".local/share/JetBrains/Toolbox/scripts/webstorm"]},{name:"IntelliJ IDEA",paths:["/snap/bin/idea",".local/share/JetBrains/Toolbox/scripts/idea"]},{name:"IntelliJ IDEA Ultimate Edition",paths:["/snap/bin/intellij-idea-ultimate",".local/share/JetBrains/Toolbox/scripts/intellij-idea-ultimate"]},{name:"IntelliJ Goland",paths:["/snap/bin/goland",".local/share/JetBrains/Toolbox/scripts/goland"]},{name:"JetBrains PyCharm",paths:["/snap/bin/pycharm","/snap/bin/pycharm-professional",".local/share/JetBrains/Toolbox/scripts/pycharm"]},{name:"Android Studio",paths:["/snap/bin/studio",".local/share/JetBrains/Toolbox/scripts/studio"]},{name:"Emacs",paths:["/snap/bin/emacs","/usr/local/bin/emacs","/usr/bin/emacs"]},{name:"Kate",paths:["/usr/bin/kate"]},{name:"GEdit",paths:["/usr/bin/gedit"]},{name:"GNOME Text Editor",paths:["/usr/bin/gnome-text-editor"]},{name:"GNOME Builder",paths:["/usr/bin/gnome-builder"]},{name:"Notepadqq",paths:["/usr/bin/notepadqq"]},{name:"Mousepad",paths:["/usr/bin/mousepad"]},{name:"Pulsar",paths:["/usr/bin/pulsar"]},{name:"Pluma",paths:["/usr/bin/pluma"]},{name:"Zed",paths:["/usr/bin/zedit","/usr/bin/zeditor","/usr/bin/zed-editor","~/.local/bin/zed","/usr/bin/zed"]}];async function Em(e){for(const t of e)if(await vm(t))return t;return null}let km=null;async function Rm(){return km&&km.length>0||(km=await async function(){const e=[];for(const t of Sm){const n=await Em(t.paths);n&&e.push({editor:t.name,path:n})}return e}()),km}async function Tm(e){const t=await Rm();if(0===t.length)return null;if(e){const n=t.find((t=>t.editor===e))||null;if(!n)throw new am(`The editor '${e}' could not be found. Please open Options and choose an available editor.`,{openPreferences:!0});return n}return t[0]}function Am(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var r=e[n];if("string"==typeof r)return r}}n(8492),(0,C.promisify)(v.exec);const xm="%TARGET_PATH%";function Dm(e,t){return e.map((e=>e.replaceAll(xm,t)))}function _m(e){return e.some((e=>e.includes(xm)))}async function Mm(e){if(0===e.length)return{isValid:!1};let t;try{const n=await(0,b.stat)(e),r=await(0,b.access)(e,i.constants.X_OK).then((()=>!0)).catch((()=>!1));return{isValid:n.isFile()&&r||!1,bundleID:t}}catch(e){return{isValid:!1}}}async function Pm(e){const t=await Mm(e.path),n=_m(e.arguments);return t.isValid&&n}async function Im(e,t){const{summary:n,description:r,trailers:i}=t,s=`${n}\n\n${r||""}\n`.replace(/\s+$/,"\n");return void 0!==i&&i.length>0?Xd(e,s,i):s}function Om(e,t){const n=t.gitHubRepository;return n?ur(e,n.endpoint):null}async function Nm(e,t,n,r){return async function(e,t,n,r){const i=["show",`${t}:${n}`],s=await _d(i,e.path,"getPartialBlobContentsCatchPathNotInRef",{maxBuffer:r,expectedErrors:new Set([Gp.GitError.PathExistsButNotInRef])});return s.gitError===Gp.GitError.PathExistsButNotInRef?null:Buffer.from(s.combinedOutput)}(e,t,n,r)}const Lm=(e,t,n,r)=>Ad((i=>zp.measure(`${n}: git ${e.join(" ")}`,(async()=>Gp.GitProcess.spawn(e,t,{...r,env:{...r?.env,...i}})))),t,r?.isBackgroundTask??!1);async function Bm(e,t,n,r,i){return new Promise((async(s,o)=>{const a=await Lm(e,t,n);a.on("error",(e=>{jp(e)?o(new Error(`Failed to execute ${n}: ${e.code}`)):o(e)}));let l=0,c=!1;const u=new Array;a.stdout&&a.stdout.on("data",(e=>{(!i||l<i)&&(u.push(e),l+=e.length),i&&l>=i&&!c&&(a.kill(),c=!0)}));const h=new Array;a.stderr&&a.stderr.on("data",(e=>{h.push(e)})),a.on("close",((e,t)=>{const a=Buffer.concat(u,i?Math.min(i,l):l),c=Buffer.concat(h),p=r||new Set([0]);null!==e&&p.has(e)||t?s({output:a,error:c,exitCode:e}):o(new Error(`Git returned an unexpected exit code '${e}' which should be handled by the caller (${n}).'`))}))}))}function Fm(e){return e.location+e.length}function Hm(e,t,n,r,i){const s=Math.min(t.length,r.length),o=i?Fm(t)-1:t.location,a=i?Fm(r)-1:r.location,l=i?-1:1;let c=0;for(;Math.abs(c)<s&&e[o+c]===n[a+c];)c+=l;return Math.abs(c)}var Um,Zm;function $m(e){return e.type===Um.Added||e.type===Um.Deleted||e.type===Um.Modified}function Wm(e,t){const n=function(e,t){let n={location:0,length:t.length},r={location:0,length:e.length};const i=Hm(t,n,e,r,!1);n={location:n.location+i,length:n.length-i},r={location:r.location+i,length:r.length-i};const s=Hm(t,n,e,r,!0);return n.length-=s,r.length-=s,{stringARange:r,stringBRange:n}}(e,t);return{before:{[n.stringARange.location]:{token:"diff-delete-inner",length:n.stringARange.length}},after:{[n.stringBRange.location]:{token:"diff-add-inner",length:n.stringBRange.length}}}}function qm(e){return e instanceof ju}function Vm(e){if(0===e.length)return 0;for(let t=e.length-1;t>=0;t--){const n=e[t];for(let e=n.lines.length-1;e>=0;e--){const t=n.lines[e];if(t.type===_u.Hunk)continue;const r=t.newLineNumber??0,i=t.oldLineNumber??0;return r>i?r:i}}return 0}function Gm(e,t,n,r){const i=new Array,s=[r,Um.Modified];return s.includes(e.type)?(void 0!==t&&s.includes(t.type)||i.push("is-first"),void 0!==n&&s.includes(n.type)||i.push("is-last"),i):[]}function zm(e,t){return e===t||e.text===t.text&&e.kind===t.kind&&e.hasHiddenBidiChars===t.hasHiddenBidiChars&&e.lineEndingsChange===t.lineEndingsChange&&e.hunks.length===t.hunks.length&&(0===e.hunks.length||e.hunks[e.hunks.length-1].equals(t.hunks[t.hunks.length-1]))}function jm(e){return e.reduce(((e,t)=>e.concat(t.lines)),[]).map((e=>e.text)).join("\n")}function Km(e,t){const n=e.lines.slice(1),r=t.lines.slice(1),i=new Wu(e.header.oldStartLine,e.header.oldLineCount+t.header.oldLineCount,e.header.newStartLine,e.header.newLineCount+t.header.newLineCount),s=[new Fu(i.toDiffLineRepresentation(),_u.Hunk,null,null,null,!1),...n,...r];return new $u(i,s,e.unifiedDiffStart,e.unifiedDiffStart+s.length-1,e.expansionType)}function Ym(e,t,n){const r=null===n?1/0:t.oldStartLine-n.header.oldStartLine-n.header.oldLineCount;return 0===e?t.oldStartLine>1&&t.newStartLine>1?Pu.Up:Pu.None:r<=20?Pu.Short:Pu.Both}function Xm(e,t,n,r,i=20){const s=e.hunks.indexOf(t);if(-1===s)return;const o="up"===n,a=o&&s>0?s-1:!o&&s<e.hunks.length-1?s+1:null,l=null!==a?e.hunks[a]:null,c=null!==l&&!1===o&&1===l.lines.length&&l.lines[0].type===_u.Hunk&&a===e.hunks.length-1,u=t.header.newStartLine,h=t.header.oldStartLine;let[p,d]=o?[u-i,u]:[u+t.header.newLineCount,u+t.header.newLineCount+i],m=!1;if(null!==l)if(o){const e=l.header.newStartLine+l.header.newLineCount;p=Math.max(p,e),m=p===e}else if(!1===c){const e=l.header.newStartLine;d=Math.min(d,e),m=d===e}const f=r.slice(Math.max(p-1,0),Math.min(d-1,r.length)),g=f.length;if(0===g)return;const y=f.map(((e,n)=>{const r=o?u-(g-n):u+t.header.newLineCount+n,i=o?h-(g-n):h+t.header.oldLineCount+n;return new Fu(" "+e,_u.Context,null,i,r,!1)})),w=e.hasHiddenBidiChars||f.some((e=>Jm.test(e))),b=new Wu(o?t.header.oldStartLine-g:t.header.oldStartLine,t.header.oldLineCount+g,o?t.header.newStartLine-g:t.header.newStartLine,t.header.newLineCount+g),v=t.lines[0],C=new Fu(b.toDiffLineRepresentation(),_u.Hunk,null,v.oldLineNumber,v.newLineNumber,v.noTrailingNewLine),S=t.lines.slice(1),E=o?[C,...y,...S]:[C,...S,...y];let k=E.length-t.lines.length;const R=Ym(s,b,0===s?null:e.hunks[s-1]);let T=new $u(b,E,t.unifiedDiffStart,t.unifiedDiffEnd+k,R),A=0,x=0;m&&null!==l?(o?(T=Km(l,T),A=s-1,x=s+1):(A=s,x=s+2,T=Km(T,l)),k-=1):(A=s,x=s+1);const D=e.hunks.slice(0,A),_=b.newStartLine+b.newLineCount-1>=r.length?[]:e.hunks.slice(x).map(((t,n)=>{const r=n+x===e.hunks.length-1&&1===t.lines.length&&t.lines[0].type===_u.Hunk,i=0===n&&!r;return new $u(t.header,t.lines,t.unifiedDiffStart+k,t.unifiedDiffEnd+k,i?Ym(x,t.header,T):t.expansionType)})),M=[...D,T,..._],P=jm(M);return{...e,text:P,hunks:M,maxLineNumber:Vm(M),hasHiddenBidiChars:w}}!function(e){e.Context="Context",e.Hunk="Hunk",e.Added="Added",e.Deleted="Deleted",e.Modified="Modified"}(Um||(Um={})),function(e){e.Before="before",e.After="after"}(Zm||(Zm={}));const Qm=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,Jm=/[\u202A-\u202E]|[\u2066-\u2069]/,ef=new Set(["+","-"," ","\\"]);class tf{ls;le;text;constructor(){this.reset()}reset(){this.ls=0,this.le=-1,this.text=""}nextLine(){return this.ls=this.le+1,!(this.ls>=this.text.length)&&(this.le=this.text.indexOf("\n",this.ls),-1===this.le&&(this.le=this.text.length),this.ls!==this.le)}readLine(){return this.nextLine()?this.text.substring(this.ls,this.le):null}lineStartsWith(e){return this.text.startsWith(e,this.ls)}lineEndsWith(e){return this.text.endsWith(e,this.le)}peek(){const e=this.le+1;return e<this.text.length?this.text[e]:null}parseDiffHeader(){for(;this.nextLine();){if(this.lineStartsWith("Binary files ")&&this.lineEndsWith("differ"))return{isBinary:!0};if(this.lineStartsWith("+++"))return{isBinary:!1}}return null}numberFromGroup(e,t,n=null){const r=e[t];if(!r){if(!n)throw new Error(`Group ${t} missing from regexp match and no defaultValue was provided`);return n}const i=parseInt(r,10);if(isNaN(i))throw new Error(`Could not parse capture group ${t} into number: ${r}`);return i}parseHunkHeader(e){const t=Qm.exec(e);if(!t)throw new Error("Invalid hunk header format");const n=this.numberFromGroup(t,1),r=this.numberFromGroup(t,2,1),i=this.numberFromGroup(t,3),s=this.numberFromGroup(t,4,1);return new Wu(n,r,i,s)}parseLinePrefix(e){return e&&e.length&&ef.has(e[0])?e[0]:null}parseHunk(e,t,n){const r=this.readLine();if(!r)throw new Error("Expected hunk header but reached end of diff");const i=this.parseHunkHeader(r),s=new Array;let o;s.push(new Fu(r,_u.Hunk,1,null,null));let a=i.oldStartLine,l=i.newStartLine,c=e;for(;o=this.parseLinePrefix(this.peek());){const e=this.readLine();if(!e)throw new Error("Expected unified diff line but reached end of diff");if("\\"===o){if(e.length<12)throw new Error('Expected "no newline at end of file" marker to be at least 12 bytes long');const t=s.length-1,n=s[t];s[t]=n.withNoTrailingNewLine(!0);continue}let t;if(c++,"+"===o)t=new Fu(e,_u.Add,c,null,l++);else if("-"===o)t=new Fu(e,_u.Delete,c,a++,null);else{if(" "!==o)return ct(0,`Unknown DiffLinePrefix: ${o}`);t=new Fu(e,_u.Context,c,a++,l++)}s.push(t)}if(1===s.length)throw new Error("Malformed diff, empty hunk");return new $u(i,s,e,e+s.length-1,Ym(t,i,n))}parse(e){this.text=e;try{const t=this.parseDiffHeader(),n=this.le,r=this.text.substring(0,n);if(!t)return{header:r,contents:"",hunks:[],isBinary:!1,maxLineNumber:0,hasHiddenBidiChars:!1};if(t.isBinary)return{header:r,contents:"",hunks:[],isBinary:!0,maxLineNumber:0,hasHiddenBidiChars:!1};const i=new Array;let s=0,o=null;do{const e=this.parseHunk(s,i.length,o);i.push(e),o=e,s+=e.lines.length}while(this.peek());return{header:r,contents:this.text.substring(n+1,this.le).replace(/\n\\ No newline at end of file/g,""),hunks:i,isBinary:t.isBinary,maxLineNumber:Vm(i),hasHiddenBidiChars:Jm.test(e)}}finally{this.reset()}}}function nf(e){return e.status.kind===Nu.Renamed||e.status.kind===Nu.Copied?e.status.oldPath:e.path}var rf;function sf(e){const t=function(e){switch(e[0]){case"A":return rf.Added;case"C":return rf.Copied;case"D":return rf.Deleted;case"M":return rf.Modified;case"R":return rf.Renamed;case"T":return rf.TypeChanged;case"U":return rf.Unmerged;case"X":return rf.Unknown;default:throw new Error(`Unknown index status: ${e}`)}}(e);switch(t){case rf.Copied:case rf.Renamed:throw new Error(`Invalid index status for no-rename index status: ${t}`)}return t}!function(e){e[e.Unknown=0]="Unknown",e[e.Added=1]="Added",e[e.Copied=2]="Copied",e[e.Deleted=3]="Deleted",e[e.Modified=4]="Modified",e[e.Renamed=5]="Renamed",e[e.TypeChanged=6]="TypeChanged",e[e.Unmerged=7]="Unmerged"}(rf||(rf={}));const of="4b825dc642cb6eb9a060e54bf8d69288fbee4904";class af{name;email;date;tzOffset;static parseIdentity(e){const t=e.match(/^(.*?) <(.*?)> (\d+) (\+|-)?(\d{2})(\d{2})/);if(!t)throw new Error(`Couldn't parse identity ${e}`);const n=t[1],r=t[2],i=new Date(1e3*parseInt(t[3],10));if(isNaN(i.valueOf()))throw new Error(`Couldn't parse identity ${e}, invalid date`);const s="-"===t[4]?"-":"+",o=t[5],a=t[6],l=60*parseInt(o,10)+parseInt(a,10);return new af(n,r,i,l*("-"===s?-1:1))}constructor(e,t,n,r=(new Date).getTimezoneOffset()){this.name=e,this.email=t,this.date=n,this.tzOffset=r}toString(){return`${this.name} <${this.email}>`}}function lf(e){const t=Object.keys(e);return{formatArgs:["-z",`--format=${Object.values(e).join("%x00")}`],parse:e=>{const n=e.split("\0"),r=[];for(let e=0;e<n.length-t.length;e+=t.length){const i={};t.forEach(((t,r)=>i[t]=n[e+r])),r.push(i)}return r}}}function cf(e){const t=Object.keys(e);return{formatArgs:[`--format=%00${Object.values(e).join("%00")}%00`],parse:e=>{const n=e.split("\0"),r=new Array;let i,s=0;for(let e=1;e<n.length-1;e++)if(e%(t.length+1)!=0)i=i??{},i[t[s%t.length]]=n[e],s++,s%t.length==0&&(r.push(i),i=void 0);else if("\n"!==n[e])throw new Error("Expected newline");return r}}}const uf="160000";function hf(e,t,n,r){const i=e.trim(),s=function(e,t,n){return t===uf&&n===uf&&"M"===e?{commitChanged:!0,untrackedChanges:!1,modifiedChanges:!1}:t===uf&&"D"===e||n===uf&&"A"===e?{commitChanged:!1,untrackedChanges:!1,modifiedChanges:!1}:void 0}(i,n,r);return"M"===i?{kind:Nu.Modified,submoduleStatus:s}:"A"===i?{kind:Nu.New,submoduleStatus:s}:"?"===i?{kind:Nu.Untracked,submoduleStatus:s}:"D"===i?{kind:Nu.Deleted,submoduleStatus:s}:"R"===i&&null!=t?{kind:Nu.Renamed,oldPath:t,submoduleStatus:s}:"C"===i&&null!=t?{kind:Nu.Copied,oldPath:t,submoduleStatus:s}:i.match(/R[0-9]+/)&&null!=t?{kind:Nu.Renamed,oldPath:t,submoduleStatus:s}:i.match(/C[0-9]+/)&&null!=t?{kind:Nu.Copied,oldPath:t,submoduleStatus:s}:{kind:Nu.Modified,submoduleStatus:s}}const pf=e=>e.kind===Nu.Copied||e.kind===Nu.Renamed;async function df(e,t,n,r,i=[]){const{formatArgs:s,parse:o}=lf({sha:"%H",shortSha:"%h",summary:"%s",body:"%b",author:"%an <%ae> %ad",committer:"%cn <%ce> %cd",parents:"%P",trailers:"%(trailers:unfold,only)",refs:"%D"}),a=["log"];void 0!==t&&a.push(t),a.push("--date=raw"),void 0!==n&&a.push(`--max-count=${n}`),void 0!==r&&a.push(`--skip=${r}`),a.push(...s,"--no-show-signature","--no-color",...i,"--");const l=await _d(a,e.path,"getCommits",{successExitCodes:new Set([0,128])});return 128===l.exitCode?new Array:o(l.stdout).map((e=>{const t=e.refs.split(", ").flatMap((e=>e.startsWith("tag: ")?e.substring(5):[]));return new em(e.sha,e.shortSha,e.summary,e.body,af.parseIdentity(e.author),af.parseIdentity(e.committer),e.parents.length>0?e.parents.split(" "):[],jd(e.trailers,":"),t)}))}function mf(e,t,n){const r=new Array;let i=0,s=0,o=0;const a=e.split("\0");for(let e=0;e<a.length-1;e++){const l=a[e];if(l.startsWith(":")){const i=l.split(" "),s=ut("Invalid log output (srcMode)",i[0]?.replace(":","")),o=ut("Invalid log output (dstMode)",i[1]),c=ut("Invalid log output (status)",i.at(-1)),u=/^R|C/.test(c)?ut("Missing old path",a.at(++e)):void 0,h=ut("Missing path",a.at(++e));r.push(new Ku(h,hf(c,u,s,o),t,n))}else{const t=/^(\d+|-)\t(\d+|-)\t/.exec(l),[,n,a]=ut("Invalid numstat line",t);i+="-"===n?0:parseInt(n,10),s+="-"===a?0:parseInt(a,10),pf(r[o].status)&&(e+=2),o++}}return{files:r,linesAdded:i,linesDeleted:s}}async function ff(e,t){const n=await df(e,t,1);return n.length<1?null:n[0]}async function gf(e,t){const n=null===t?void 0:Hg(t,"HEAD");return(await df(e,n,void 0,void 0,["--merges"])).length>0}var yf;!function(e){e[e.Success=0]="Success",e[e.AlreadyUpToDate=1]="AlreadyUpToDate",e[e.Failed=2]="Failed"}(yf||(yf={}));async function wf(e,t,n){const r=await _d(["merge-base",t,n],e.path,"merge-base",{successExitCodes:new Set([0,1,128])});return 1===r.exitCode||128===r.exitCode?null:r.stdout.trim()}const bf=new Set([".png",".jpg",".jpeg",".gif",".ico",".webp",".bmp",".avif"]);async function vf(e,t,n,r=!1){const i=["log",n,...r?["-w"]:[],"-m","-1","--first-parent","--patch-with-raw","-z","--no-color","--",t.path];t.status.kind!==Nu.Renamed&&t.status.kind!==Nu.Copied||i.push(t.status.oldPath);const{output:s}=await Bm(i,e.path,"getCommitDiff");return Tf(s,e,t,n)}async function Cf(e,t,n,r=!1,i=!1){if(0===n.length)throw new Error("No commits to diff...");const s=i?of:`${n[0]}^`,o=n.at(-1)??"",a=["diff",s,o,...r?["-w"]:[],"--patch-with-raw","-z","--no-color","--",t.path];t.status.kind!==Nu.Renamed&&t.status.kind!==Nu.Copied||a.push(t.status.oldPath);const l=await _d(a,e.path,"getCommitsDiff",{maxBuffer:1/0,expectedErrors:new Set([Gp.GitError.BadRevision])});return l.gitError===Gp.GitError.BadRevision&&!1===i?Cf(e,t,n,r,!0):Tf(Buffer.from(l.stdout),e,t,o)}async function Sf(e,t,n=!1){if(0===t.length)throw new Error("No commits to diff...");const r=n?of:`${t[0]}^`,i=t.at(-1)??"",s=["diff",r,i,"-C","-M","-z","--raw","--numstat","--"],{stdout:o,gitError:a}=await _d(s,e.path,"getCommitRangeChangedFiles",{expectedErrors:new Set([Gp.GitError.BadRevision])});return a===Gp.GitError.BadRevision&&!1===n?Sf(e,t,!0):mf(o,i,r)}async function Ef(e,t,n=!1){const r=["diff",...n?["-w"]:[],"--no-ext-diff","--patch-with-raw","-z","--no-color"],i=new Set([0]);void 0!==t.status.submoduleStatus||t.status.kind!==Nu.New&&t.status.kind!==Nu.Untracked?t.status.kind===Nu.Renamed?r.push("--",t.path):r.push("HEAD","--",t.path):(i.add(1),r.push("--no-index","--","/dev/null",t.path));const{output:s,error:o}=await Bm(r,e.path,"getWorkingDirectoryDiff",i),a=function(e){if(0===e.length)return;const t=e.toString("utf-8"),n=Rf.exec(t);if(n){const e=Bu(n[1]),t=Bu(n[2]);if(e&&t)return{from:e,to:t}}}(o);return Tf(s,e,t,"HEAD",a)}function kf(e){return".png"===e?"image/png":".jpg"===e||".jpeg"===e?"image/jpg":".gif"===e?"image/gif":".ico"===e?"image/x-icon":".webp"===e?"image/webp":".bmp"===e?"image/bmp":".avif"===e?"image/avif":"text/plain"}const Rf=/', (CRLF|CR|LF) will be replaced by (CRLF|CR|LF) the .*/;async function Tf(e,n,r,i,s){if(void 0!==r.status.submoduleStatus)return async function(e,n,r,i){const s=r.path,o=t.join(n.path,s),a=await Bd(n,`submodule.${s}.url`,!0);let l=null,c=null;if(i.commitChanged||r.status.kind===Nu.New||r.status.kind===Nu.Deleted){const t=e.toString("utf-8").split("\n"),n="Subproject commit ([^-]+)(-dirty)?$",r=new RegExp("-"+n),i=new RegExp("\\+"+n),s=e=>t.flatMap((t=>{const n=t.match(e);return n?n[1]:[]})).at(0)??null;l=s(r),c=s(i)}return{kind:Du.Submodule,fullPath:o,path:s,url:a,status:i,oldSHA:l,newSHA:c}}(e,n,r,r.status.submoduleStatus);if(!function(e){return e.length<=7e7}(e))return{kind:Du.Unrenderable};const o=function(e){const t=e.toString("utf-8").split("\0");return(new tf).parse(ut("Invalid diff output",t.at(-1)))}(e);return function(e){return e.length>=4375e3}(e)||function(e){for(const t of e.hunks)for(const e of t.lines)if(e.text.length>5e3)return!0;return!1}(o)?{kind:Du.LargeText,text:o.contents,hunks:o.hunks,lineEndingsChange:s,maxLineNumber:o.maxLineNumber,hasHiddenBidiChars:o.hasHiddenBidiChars}:async function(e,n,r,i,s){const o=t.extname(n.path).toLowerCase();return r.isBinary?bf.has(o)?async function(e,n,r){let i,s;if(n instanceof ju){if(n.status.kind===Nu.Conflicted)return{kind:Du.Image};n.status.kind!==Nu.Deleted&&(i=await async function(e,n){const r=await(0,b.readFile)(t.join(e.path,n.path));return new Zu(r.toString("base64"),kf(t.extname(n.path)),r.length)}(e,n)),n.status.kind!==Nu.New&&n.status.kind!==Nu.Untracked&&(s=await Af(e,nf(n),"HEAD"))}else n.status.kind!==Nu.Deleted&&(i=await Af(e,n.path,r)),n.status.kind!==Nu.New&&n.status.kind!==Nu.Untracked&&n.status.kind!==Nu.Deleted&&(s=await Af(e,nf(n),`${r}^`)),n instanceof Ku&&n.status.kind===Nu.Deleted&&(s=await Af(e,nf(n),n.parentCommitish));return{kind:Du.Image,previous:s,current:i}}(e,n,i):{kind:Du.Binary}:{kind:Du.Text,text:r.contents,hunks:r.hunks,lineEndingsChange:s,maxLineNumber:r.maxLineNumber,hasHiddenBidiChars:r.hasHiddenBidiChars}}(n,r,o,i,s)}async function Af(e,n,r){const i=t.extname(n),s=await async function(e,t,n){const r=["show",`${t}:${n}`],i={successExitCodes:new Set([0,1]),processCallback:e=>{e.stdout&&e.stdout.setEncoding("binary")}},s=await _d(r,e.path,"getBlobContents",i);return Buffer.from(s.stdout,"binary")}(e,r,n);return new Zu(s.toString("base64"),kf(i),s.length)}async function xf(e,t){const{output:n}=await Bm(["diff","--numstat","-z",t],e.path,"getBinaryPaths"),r=Xp(n.toString("utf8"),Df);return 0===r.length?[]:r.reduce(((e,t)=>e.concat(t)))}const Df=/-\t-\t(?:\0.+\0)?([^\0]*)/gi;function _f(e,t){return`--- ${e?`a/${e}`:"/dev/null"}\n+++ ${t?`b/${t}`:"/dev/null"}\n`}function Mf(e,t,n,r,i){return`@@ -${1===t?`${e}`:`${e},${t}`} +${1===r?`${n}`:`${n},${r}`} @@${i=i?` ${i}`:""}\n`}async function Pf(e,t){if(t.status.kind===Nu.Renamed){await _d(["add","--u","--",t.status.oldPath],e.path,"applyPatchToIndex");const n=await _d(["ls-tree","HEAD","--",t.status.oldPath],e.path,"applyPatchToIndex"),[r]=n.stdout.split("\t",1),[i,,s]=r.split(" ",3);await _d(["update-index","--add","--cacheinfo",i,s,t.path],e.path,"applyPatchToIndex")}const n=await Ef(e,t);if(n.kind!==Du.Text&&n.kind!==Du.LargeText){const{kind:e}=n;switch(n.kind){case Du.Binary:case Du.Submodule:case Du.Image:throw new Error(`Can't create partial commit in binary file: ${t.path}`);case Du.Unrenderable:throw new Error(`File diff is too large to generate a partial commit: ${t.path}`);default:ct(0,`Unknown diff kind: ${e}`)}}const r=await function(e,t){let n="";if(t.hunks.forEach(((t,r)=>{let i="",s=0,o=0,a=!1;t.lines.forEach(((n,r)=>{const l=t.unifiedDiffStart+r;if(n.type!==_u.Hunk){if(n.type===_u.Context)i+=`${n.text}\n`,s++,o++;else if(e.selection.isSelected(l))i+=`${n.text}\n`,n.type===_u.Add&&o++,n.type===_u.Delete&&s++,a=!0;else{if(e.status.kind===Nu.New||e.status.kind===Nu.Untracked)return;if(n.type===_u.Add)return;n.type===_u.Delete?(i+=` ${n.text.substring(1)}\n`,s++,o++):ct(n.type,`Unsupported line type ${n.type}`)}n.noTrailingNewLine&&(i+="\\ No newline at end of file\n")}})),a&&(n+=Mf(t.header.oldStartLine,s,t.header.newStartLine,o),n+=i)})),!n.length)throw log.debug(`formatPatch: empty path for ${e.path}`),new Error("Could not generate a patch, no changes");return n=function(e){switch(e.status.kind){case Nu.New:case Nu.Untracked:return _f(null,e.path);case Nu.Renamed:case Nu.Deleted:case Nu.Modified:case Nu.Copied:case Nu.Conflicted:return _f(e.path,e.path);default:return ct(e.status,`Unknown file status ${e.status}`)}}(e)+n,n}(t,n);return await _d(["apply","--cached","--unidiff-zero","--whitespace=nowarn","-"],e.path,"applyPatchToIndex",{stdin:r}),Promise.resolve()}function If(e){return e.startsWith("heads/")?`refs/${e}`:e.startsWith("refs/heads/")?e:`refs/heads/${e}`}async function Of(e,t){const n=await _d(["symbolic-ref","-q",t],e.path,"getSymbolicRef",{successExitCodes:new Set([0,1,128])});return 1===n.exitCode||128===n.exitCode?null:n.stdout.trim()}async function Nf(e,t,n){const r=["update-ref","-d",t];void 0!==n&&r.push("-m",n),await _d(r,e.path,"deleteRef")}const Lf=new Set([Gp.GitError.HTTPSAuthenticationFailed,Gp.GitError.SSHAuthenticationFailed,Gp.GitError.HTTPSRepositoryNotFound,Gp.GitError.SSHRepositoryNotFound]);function Bf(e,t){switch(e.toLowerCase()){case"proxy":case"http":return`http://${t}`;case"https":return`https://${t}`;case"socks":case"socks4":return`socks4://${t}`;case"socks5":return`socks5://${t}`}return null}async function Ff(e){const t=function(e){if("DIRECT"===e)return null;const t=e.trim().split(/\s*;\s*/),n=new Array;for(const e of t){if(e.match(/^direct/i))break;const[t,r]=e.split(/\s+/,2);if(void 0!==r){const i=Bf(t,r);null!==i?n.push(i):log.warn(`Skipping proxy spec: ${e}`)}}return n.length>0?n:null}(await pe(e).catch((t=>(log.error(`Failed resolving proxy for '${e}'`,t),"DIRECT"))));if(null!==t)for(const e of t)return e}function Hf(e,t){return $r(e)?ar(e.gitHubRepository.endpoint):t?t.url:"https://github.com"}async function Uf(e){return{GIT_TERMINAL_PROMPT:"0",GIT_TRACE:localStorage.getItem("git-trace")||"0",...await Zf(e)}}async function Zf(e,t=process.env,n=Ff){const r=/^(https?):\/\//i.exec(e);if(null===r)return;const i=r[1].toLowerCase();if("ALL_PROXY"in t||"all_proxy"in t)return void log.info("proxy url not resolved, ALL_PROXY already set");const s=`${i}_proxy`;if(s in t||"https"===i&&"HTTPS_PROXY"in t)return void log.info(`proxy url not resolved, ${s} already set`);const o=await n(e).catch((e=>{log.error("Failed resolving Git proxy",e)}));return void 0===o?void 0:{[s]:o}}async function $f(e,t){return await _d(["branch","-D",t],e.path,"deleteLocalBranch"),!0}async function Wf(e,t,n){const r=["push",t.name,`:${n}`];if((await _d(r,e.path,"deleteRemoteBranch",{env:await Uf(t.url),expectedErrors:new Set([Gp.GitError.BranchDeletionFailed])})).gitError===Gp.GitError.BranchDeletionFailed){const r=`refs/remotes/${t.name}/${n}`;await Nf(e,r)}return!0}class qf{steps;stepIndex=0;lastPercent=0;constructor(e){if(!e.length)throw new Error("must specify at least one step");const t=e.reduce(((e,t)=>e+t.weight),0);this.steps=e.map((e=>({title:e.title,weight:e.weight/t})))}parse(e){const t=function(e){const t=e.lastIndexOf(": ");if(0===t)return null;if(t-2>=e.length)return null;const n=e.substring(0,t),r=e.substring(n.length+2).trim();if(!r.length)return null;const i=r.split(", ");if(!i.length)return null;let s,o,a;if(Gf.test(i[0])){if(s=parseInt(i[0],10),isNaN(s))return null}else{const e=Vf.exec(i[0]);if(!e||4!==e.length)return null;if(a=parseInt(e[1],10),s=parseInt(e[2],10),o=parseInt(e[3],10),isNaN(a)||isNaN(s)||isNaN(o))return null}let l=!1;for(let e=1;e<i.length;e++)if("done."===i[e]){l=!0;break}return{title:n,value:s,percent:a,total:o,done:l,text:e}}(e);if(!t)return{kind:"context",text:e,percent:this.lastPercent};let n=0;for(let e=0;e<this.steps.length;e++){const r=this.steps[e];if(e>=this.stepIndex&&t.title===r.title)return t.total&&(n+=r.weight*(t.value/t.total)),this.stepIndex=e,this.lastPercent=n,{kind:"progress",percent:n,details:t};n+=r.weight}return{kind:"context",text:e,percent:this.lastPercent}}}const Vf=/^(\d{1,3})% \((\d+)\/(\d+)\)$/,Gf=/^\d+$/,zf=[{title:"检出文件",weight:1}];class jf extends qf{constructor(){super(zf)}}const Kf=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.6},{title:"解决增量",weight:.1},{title:"检出文件",weight:.2}];class Yf extends qf{constructor(){super(Kf)}}const Xf=[{title:"压缩对象",weight:.2},{title:"写入对象",weight:.7},{title:"远程: 解决增量",weight:.1}];class Qf extends qf{constructor(){super(Xf)}}const Jf=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.7},{title:"解决增量",weight:.2}];class eg extends qf{constructor(){super(Jf)}}const tg=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.7},{title:"解决增量",weight:.15},{title:"检出文件",weight:.15}];class ng extends qf{constructor(){super(tg)}}var rg=n(8122),ig=n.n(rg);class sg{path;emitter=new ft.Emitter;state=null;constructor(e){this.path=e}onDataAvailable(e){return this.emitter.on("data",e)}onError(e){return this.emitter.on("error",e)}handleError(e){this.state=null,this.emitter.emit("error",e)}start(){if(this.state)throw new Error("Tailer already running");try{const e=i.watch(this.path,this.onWatchEvent);e.on("error",(e=>{this.handleError(e)})),this.state={watcher:e,position:0}}catch(e){this.handleError(e)}}onWatchEvent=e=>{"change"===e&&this.state&&i.stat(this.path,((e,t)=>{if(e)return;const n=this.state;n&&(t.size<=n.position||(this.state={...n,position:t.size},this.readChunk(t,n.position)))}))};readChunk(e,t){const n=i.createReadStream(this.path,{start:t,end:e.size});this.emitter.emit("data",n)}stop(){const e=this.state;e&&(e.watcher.close(),this.state=null)}}async function og(e){const n=t.join(hn.tmpdir(),`${e}-`),r=await(0,b.mkdtemp)(n);return t.join(r,e)}function ag(e,t){if(t<=0)return Math.round(e);const n=Math.pow(10,t);return Math.round((e+Number.EPSILON)*n)/n}const lg=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];function cg(e,t=0,n=!0){if(!Number.isFinite(e))return`${e}`;const r=Math.floor(Math.log(Math.abs(e))/Math.log(1024)),i=ag(e/Math.pow(1024,r),t);return`${n?i.toFixed(t):i} ${lg[r]}`}const ug=/^(.+?)\s{1}(\d+)\/(\d+)\s{1}(\d+)\/(\d+)\s{1}(.+)$/;class hg{files=new Map;parse(e){const t=e.match(ug);if(!t||7!==t.length)return{kind:"context",percent:0,text:e};const n=t[1],r=parseInt(t[3],10),i=parseInt(t[4],10),s=parseInt(t[5],10),o=t[6];if(isNaN(r)||isNaN(i)||isNaN(s))return{kind:"context",percent:0,text:e};this.files.set(o,{transferred:i,size:s,done:i===s});let a=0,l=0,c=0;const u=Math.max(r,this.files.size);for(const e of this.files.values())a+=e.transferred,l+=e.size,c+=e.done?1:0;const h=`${cg(a,1)} / ${cg(l,1)}`,p=this.directionToHumanFacingVerb(n);return{kind:"progress",percent:0,details:{title:`${p} "${o}"`,value:a,total:l,percent:0,done:!1,text:`${p} ${o} (${c} out of an estimated ${u} completed, ${h})`}}}directionToHumanFacingVerb(e){switch(e){case"download":default:return"Downloading";case"upload":return"Uploading";case"checkout":return"Checking out"}}}async function pg(e,t,n){let r=null,i={};if(e.trackLFSProgress)try{r=await async function(){const e=await og("GitHubDesktop-lfs-progress");return await(0,b.open)(e,"wx").then((e=>e.close())),e}(),i={GIT_LFS_PROGRESS:r}}catch(e){log.error("Error writing LFS progress file",e),i={GIT_LFS_PROGRESS:null}}return xp(e,{processCallback:dg(t,r,n),env:xp(e.env,i)})}function dg(e,n,r){return s=>{let o=!1;if(n){const e=new hg,a=function(t,n){const i=new sg(t),s=i.onError((e=>{log.warn(`Unable to tail path: ${t}`,e)})),a=i.onDataAvailable((t=>{ig()(t).on("data",(t=>{if(a.disposed)return;(t=>{const n=e.parse(t);"progress"===n.kind&&(o=!0,r(n))})(t.toString())}))}));return i.start(),new ft.Disposable((()=>{a.dispose(),s.dispose(),i.stop()}))}(n);s.on("close",(()=>{a.dispose(),i.unlink(n,(e=>{if(null==e){const e=t.dirname(n);i.rmdir(e,(()=>{}))}}))}))}s.stderr&&ig()(s.stderr).on("data",(t=>{const n=e.parse(t);if(o){if("context"===n.kind)return;const{title:e,done:t}=n.details;if("Filtering content"===e)return void(t&&(o=!1))}r(n)}))}}function mg(e){return["checkout",...e?["--progress"]:[]]}async function fg(e){return[e.name,...e.type===$p.Remote?["-b",e.nameWithoutRemote]:[],"--recurse-submodules","--"]}async function gg(e,t,n,r,i,s){const o={env:await Uf(Hf(e,r)),expectedErrors:Lf};if(!i)return o;const a="checkout";return i({kind:a,title:t,description:s??t,value:0,target:n}),await pg({...o,trackLFSProgress:!0},new jf,(e=>{if("progress"===e.kind){const r=e.details.text,s=e.percent;i({kind:a,title:t,description:r,value:s,target:n})}}))}async function yg(e,t,n,r){const i=await gg(e,`Checking out branch ${t.name}`,t.name,n,r,"切换到分支"),s=[...mg(r),...await fg(t)];return await _d(s,e.path,"checkoutBranch",i),!0}const wg="init.defaultBranch";async function bg(){return await async function(){return Fd(wg)}()??"main"}async function vg(e,t,n={}){if(0===t.length)return;const r=["update-index"];!1!==n.add&&r.push("--add"),!1===n.remove&&!0!==n.forceRemove||r.push("--remove"),n.forceRemove&&r.push("--force-remove"),!1!==n.replace&&r.push("--replace"),r.push("-z","--stdin"),await _d(r,e.path,"updateIndex",{stdin:t.join("\0")})}async function Cg(e,t){const n=[],r=[],i=[],s=[];for(const e of t)e.selection.getSelectionType()===Mu.All?(n.push(e.path),e.status.kind===Nu.Renamed?r.push(e.status.oldPath):e.status.kind===Nu.Deleted&&s.push(e.path)):i.push(e);await vg(e,r,{forceRemove:!0}),await vg(e,n),await vg(e,s,{forceRemove:!0});for(const t of i)await Pf(e,t)}function Sg(e,t){switch(e){case 0:return["reset","--hard",t];case 2:return["reset",t];case 1:return["reset","--soft",t];default:return ct(0,`Unknown reset mode: ${e}`)}}async function Eg(e,t,n){const r=Sg(t,n);return await _d(r,e.path,"reset"),!0}var kg;async function Rg(e,t,n){const{status:r}=t;if(!qu(r))return void log.error(`tried to manually resolve unconflicted file (${t.path})`);if(Vu(r)&&0===r.conflictMarkerCount)return;const i=n===kg.theirs?r.entry.them:r.entry.us,s=r.entry.us===Ou.Added&&r.entry.them===Ou.Added;switch((i===Ou.UpdatedButUnmerged||s)&&await async function(e,t,n){await _d(["checkout",`--${n}`,"--",t.path],e.path,"checkoutConflictedFile")}(e,t,n),i){case Ou.Deleted:return async function(e,t){await _d(["rm","--",t.path],e.path,"removeConflictedFile")}(e,t);case Ou.Added:case Ou.UpdatedButUnmerged:return async function(e,t){await _d(["add","--",t.path],e.path,"addConflictedFile")}(e,t);default:ct(0,"unaccounted for git status entry possibility")}}async function Tg(e,t,n,r=!1){await async function(e){return await _d(["reset","--","."],e.path,"unstageAll"),!0}(e),await Cg(e,n);const i=["-F","-"];return r&&i.push("--amend"),Ld(await _d(["commit",...i],e.path,"createCommit",{stdin:t}))}!function(e){e.theirs="theirs",e.ours="ours"}(kg||(kg={}));const Ag=".git/description";async function xg(e,t,n){await _d(["fetch",t.name,n],e.path,"fetchRefspec",{successExitCodes:new Set([0,128]),env:await Uf(t.url)})}async function Dg(e,...t){const{formatArgs:n,parse:r}=cf({fullName:"%(refname)",shortName:"%(refname:short)",upstreamShortName:"%(upstream:short)",sha:"%(objectname)",author:"%(author)",symRef:"%(symref)"});t&&t.length||(t=["refs/heads","refs/remotes"]);const i=await _d(["for-each-ref",...n,...t],e.path,"getBranches",{expectedErrors:new Set([Gp.GitError.NotAGitRepository])});if(i.gitError===Gp.GitError.NotAGitRepository)return[];const s=[];for(const e of r(i.stdout)){if(e.symRef.length>0)continue;const t=af.parseIdentity(e.author),n={sha:e.sha,author:t},r=e.fullName.startsWith("refs/heads")?$p.Local:$p.Remote,i=e.upstreamShortName.length>0?e.upstreamShortName:null;s.push(new Vp(e.shortName,i,n,r,e.fullName))}return s}async function _g(e){try{return null!==await Bd(e,"pull.ff")?[]:["--ff"]}catch(e){log.error("Couldn't read 'pull.ff' config",e)}return[]}const Mg=new RegExp("fatal: your current branch '.*' does not have any commits yet");async function Pg(e){const t=await _d(["remote","-v"],e.path,"getRemotes",{expectedErrors:new Set([Gp.GitError.NotAGitRepository])});return t.gitError===Gp.GitError.NotAGitRepository?[]:[...t.stdout.matchAll(/^(.+)\t(.+)\s\(fetch\)/gm)].map((([,e,t])=>({name:e,url:t})))}async function Ig(e,t,n){return await _d(["remote","add",t,n],e.path,"addRemote"),{url:n,name:t}}async function Og(e,t){const n={successExitCodes:new Set([0,2,128])};await _d(["remote","remove",t],e.path,"removeRemote",n)}async function Ng(e,t,n){return await _d(["remote","set-url",t,n],e.path,"setRemoteURL"),!0}async function Lg(e,t){const n=await _d(["remote","get-url",t],e.path,"getRemoteURL",{successExitCodes:new Set([0,2,128])});return 0!==n.exitCode?null:n.stdout}async function Bg(e,t,n){const r={successExitCodes:new Set([0,1,128]),env:await Uf(t.url),isBackgroundTask:n};await _d(["remote","set-head","-a",t.name],e.path,"updateRemoteHEAD",r)}async function Fg(e,t){const n=`refs/remotes/${t}/`,r=await Of(e,`${n}HEAD`);return null!=r&&r.length>n.length&&r.startsWith(n)?r.substring(n.length):null}function Hg(e,t){return`${e}..${t}`}function Ug(e,t){return`${e}...${t}`}async function Zg(e,t){const n=["rev-list","--left-right","--count",t,"--"],r=await _d(n,e.path,"getAheadBehind",{expectedErrors:new Set([Gp.GitError.BadRevision])});if(r.gitError===Gp.GitError.BadRevision)return null;const i=r.stdout.split("\t");if(2!==i.length)return null;const s=parseInt(i[0],10);if(isNaN(s))return null;const o=parseInt(i[1],10);return isNaN(o)?null:{ahead:s,behind:o}}async function $g(e,t,n){return Wg(e,Hg(t,n))}async function Wg(e,t){const n=["rev-list",t,"--reverse","--oneline","--no-abbrev-commit","--"],r={expectedErrors:new Set([Gp.GitError.BadRevision])},i=await _d(n,e.path,"getCommitsInRange",r);if(i.gitError===Gp.GitError.BadRevision)return null;const s=i.stdout.split("\n"),o=new Array,a=/^([a-z0-9]{40}) (.*)$/;for(const e of s){const t=a.exec(e);if(null!==t&&3===t.length){const e=t[1],n=t[2];o.push({sha:e,summary:n})}}return o}const qg=async e=>{try{return(await(0,b.stat)(e)).isDirectory()}catch(e){return!1}};async function Vg(e){if(!await qg(e))return{kind:"missing"};try{const n=await _d(["rev-parse","--is-bare-repository","--show-cdup"],e,"getRepositoryType",{successExitCodes:new Set([0,128])});if(0===n.exitCode){const[r,i]=n.stdout.split("\n",2);return"true"===r?{kind:"bare"}:{kind:"regular",topLevelWorkingDirectory:(0,t.resolve)(e,i)}}const r=/fatal: detected dubious ownership in repository at '(.+)'/.exec(n.stderr);return r?{kind:"unsafe",path:r[1]}:{kind:"missing"}}catch(e){if("ENOENT"===e.code)return{kind:"missing"};throw e}}async function Gg(e){const{output:t}=await Bm(["diff","--check"],e,"getFilesWithConflictMarkers",new Set([0,2])),n=Xp(t.toString("utf8"),zg);return 0===n.length?new Map:n.reduce(((e,t)=>e.concat(t))).reduce(((e,t)=>e.set(t,(e.get(t)||0)+1)),new Map)}const zg=/(.+):\d+: leftover conflict marker/gi;function jg(e){return"header"===e.kind}function Kg(e){return"entry"===e.kind}const Yg=/^1 ([MADRCUTX?!.]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([\s\S]*?)$/;function Xg(e){const t=Yg.exec(e);if(!t)throw log.debug(`parseChangedEntry parse error: ${e}`),new Error("Failed to parse status line for changed entry");return{kind:"entry",statusCode:t[1],submoduleStatusCode:t[2],path:t[8]}}const Qg=/^2 ([MADRCUTX?!.]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([RC]\d+) ([\s\S]*?)$/;function Jg(e,t){const n=Qg.exec(e);if(!n)throw log.debug(`parsedRenamedOrCopiedEntry parse error: ${e}`),new Error("Failed to parse status line for renamed or copied entry");if(!t)throw new Error("Failed to parse renamed or copied entry, could not parse old path");return{kind:"entry",statusCode:n[1],submoduleStatusCode:n[2],oldPath:t,path:n[9]}}const ey=/^u ([DAU]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([a-f0-9]+) ([\s\S]*?)$/;function ty(e){const t=ey.exec(e);if(!t)throw log.debug(`parseUnmergedEntry parse error: ${e}`),new Error("Failed to parse status line for unmerged entry");return{kind:"entry",statusCode:t[1],submoduleStatusCode:t[2],path:t[10]}}function ny(e){return{kind:"entry",statusCode:"??",submoduleStatusCode:"????",path:e.substring(2)}}function ry(e,t=-1/0,n=1/0){return"number"!=typeof e?ry(e.value,e.min,e.max):e<t?t:e>n?n:e}var iy,sy;function oy(e){return Math.round(100*ry(e,0,1))/100}function ay(e,t){if(null===t)return iy.NotAvailable;const{ahead:n,behind:r}=t;if(0===r||0===n)return iy.NotAvailable;const{tip:i,forcePushBranches:s}=e;let o=!1;if(i.kind===Hr.Valid){const e=i.branch.nameWithoutRemote,{sha:t}=i.branch.tip;o=s.get(e)===t}return o?iy.Recommended:iy.Available}function ly(e){const n=t.join(e.path,".git","REBASE_HEAD");return R(n)}async function cy(e){if(!await ly(e))return null;let n=null,r=null,i=null;try{n=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","orig-head"),"utf8"),n=n.trim(),r=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","head-name"),"utf8"),r.startsWith("refs/heads/")&&(r=r.substring(11).trim()),i=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","onto"),"utf8"),i=i.trim()}catch{}return null!=n&&null!=r&&null!=i?{originalBranchTip:n,targetBranch:r,baseBranchTip:i}:null}async function uy(e){if(!await ly(e))return null;let n=-1,r=-1,i=null,s=null;try{const o=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","msgnum"),"utf8");n=parseInt(o,10),isNaN(n)&&(log.warn(`[getCurrentProgress] found '${o}' in .git/rebase-merge/msgnum which could not be parsed to a valid number`),n=-1);const a=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","end"),"utf8");r=parseInt(a,10),isNaN(r)&&(log.warn(`[getCurrentProgress] found '${a}' in .git/rebase-merge/last which could not be parsed to a valid number`),r=-1),i=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","orig-head"),"utf8"),i=i.trim(),s=await(0,b.readFile)(t.join(e.path,".git","rebase-merge","onto"),"utf8"),s=s.trim()}catch{}if(n>0&&r>0&&null!==i&&null!==s){const t=oy(n/r),o=await $g(e,s,i);if(null===o||0===o.length)return null;const a=n-1;return{progress:{kind:"multiCommitOperation",value:t,position:n,totalCommitCount:r,currentCommitSummary:o.length>0&&a>=0&&a<o.length?o[a].summary:""},commits:o}}return null}!function(e){e[e.NotAvailable=0]="NotAvailable",e[e.Available=1]="Available",e[e.Recommended=2]="Recommended"}(iy||(iy={})),function(e){e.CompletedWithoutError="CompletedWithoutError",e.AlreadyUpToDate="AlreadyUpToDate",e.ConflictsEncountered="ConflictsEncountered",e.OutstandingFilesNotStaged="OutstandingFilesNotStaged",e.Aborted="Aborted",e.Error="Error"}(sy||(sy={}));const hy=/^Rebasing \((\d+)\/(\d+)\)$/;class py{commits;constructor(e){this.commits=e}parse(e){const t=hy.exec(e);if(null===t||3!==t.length)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);if(isNaN(n)||isNaN(r))return null;const i=this.commits[n-1]?.summary??"";return{kind:"multiCommitOperation",value:oy(n/r),position:n,totalCommitCount:r,currentCommitSummary:i}}}function dy(e,t){if(void 0===t)return e;const{commits:n,progressCallback:r}=t;return xp(e,{processCallback:e=>{if(null===e.stderr)return;const t=new py(n);ig()(e.stderr).on("data",(e=>{const n=t.parse(e);null!=n&&r(n)}))}})}function my(e){if(0===e.exitCode)return e.stdout.trim().match(/^Current branch [^ ]+ is up to date.$/i)?sy.AlreadyUpToDate:sy.CompletedWithoutError;if(e.gitError===Gp.GitError.RebaseConflicts)return sy.ConflictsEncountered;if(e.gitError===Gp.GitError.UnresolvedConflicts)return sy.OutstandingFilesNotStaged;throw new Error(`Unhandled result found: '${JSON.stringify(e)}'`)}async function fy(e,t,n,r="Interactive rebase",i=":",s,o){const a={expectedErrors:new Set([Gp.GitError.RebaseConflicts]),env:{GIT_EDITOR:i}};let l=a;if(void 0!==s){if(void 0===o)return log.warn("Unable to interactively rebase if no commits"),sy.Error;l=dy(a,{commits:o,progressCallback:s})}const c=null==n?"--root":n;return my(await _d(["-c",`sequence.editor=cat "${t}" >`,"rebase","-i",c],e.path,r,l))}var gy;!function(e){e.CompletedWithoutError="CompletedWithoutError",e.ConflictsEncountered="ConflictsEncountered",e.OutstandingFilesNotStaged="OutstandingFilesNotStaged",e.UnableToStart="UnableToStart",e.Error="Error"}(gy||(gy={}));class yy{commits;count;constructor(e,t=0){this.commits=e,this.count=t}parse(e){return null===/^\[(.*\s.*)\]/.exec(e)?null:(this.count++,{kind:"multiCommitOperation",value:ag(this.count/this.commits.length,2),position:this.count,totalCommitCount:this.commits.length,currentCommitSummary:this.commits[this.count-1]?.summary??""})}}function wy(e,t,n,r=0){return xp(e,{processCallback:e=>{if(null===e.stdout)return;const i=new yy(t,r);ig()(e.stdout).on("data",(e=>{const t=i.parse(e);null!=t&&n(t)}))}})}function by(e){if(0===e.exitCode)return gy.CompletedWithoutError;switch(e.gitError){case Gp.GitError.ConflictModifyDeletedInBranch:case Gp.GitError.MergeConflicts:return gy.ConflictsEncountered;case Gp.GitError.UnresolvedConflicts:return gy.OutstandingFilesNotStaged;default:throw new Error(`Unhandled result found: '${JSON.stringify(e)}'`)}}async function vy(e){if(!Sy(e))return null;let n="",r="";const i=[];try{if(n=(await(0,b.readFile)(t.join(e.path,".git","sequencer","abort-safety"),"utf8")).trim(),""===n)return null;if(r=(await(0,b.readFile)(t.join(e.path,".git","sequencer","head"),"utf8")).trim(),""===r)return null;const s=(await(0,b.readFile)(t.join(e.path,".git","sequencer","todo"),"utf8")).trim();if(""===s)return null;if(s.split("\n").forEach((e=>{if((e=e.replace(/^pick /,"")).trim().includes(" ")){const t=e.substr(0,e.indexOf(" ")),n={sha:t,summary:e.substr(t.length+1)};i.push(n)}})),0===i.length)return null}catch{if(!Sy(e))return null;const n=(await(0,b.readFile)(t.join(e.path,".git","CHERRY_PICK_HEAD"),"utf8")).trim(),i=await ff(e,n);return null===i?null:{progress:{kind:"multiCommitOperation",value:1,position:1,totalCommitCount:1,currentCommitSummary:i.summary},remainingCommits:[],commits:[{sha:i.sha,summary:i.summary}],targetBranchUndoSha:r,cherryPickedCount:0}}const s=n!==r?await Wg(e,Hg(r,n)):[];if(null===s)return null;const o=[...s,...i],a=s.length+1;return{progress:{kind:"multiCommitOperation",value:ag(a/o.length,2),position:a,totalCommitCount:o.length,currentCommitSummary:i[0].summary??""},remainingCommits:i,commits:o,targetBranchUndoSha:r,cherryPickedCount:s.length}}async function Cy(e){await _d(["cherry-pick","--abort"],e.path,"abortCherryPick")}async function Sy(e){try{const n=t.join(e.path,".git","CHERRY_PICK_HEAD");return R(n)}catch(e){return log.warn("[cherryPick] a problem was encountered reading .git/CHERRY_PICK_HEAD,\n so it is unsafe to continue cherry-picking",e),!1}}function Ey(e,t,n,r){if("ordinary"===t.kind)switch(t.type){case"added":return{kind:Nu.New,submoduleStatus:t.submoduleStatus};case"modified":return{kind:Nu.Modified,submoduleStatus:t.submoduleStatus};case"deleted":return{kind:Nu.Deleted,submoduleStatus:t.submoduleStatus}}else{if("copied"===t.kind&&null!=r)return{kind:Nu.Copied,oldPath:r,submoduleStatus:t.submoduleStatus};if("renamed"===t.kind&&null!=r)return{kind:Nu.Renamed,oldPath:r,submoduleStatus:t.submoduleStatus};if("untracked"===t.kind)return{kind:Nu.Untracked,submoduleStatus:t.submoduleStatus};if("conflicted"===t.kind)return function(e,t,n){switch(e.action){case Lu.BothAdded:case Lu.BothModified:return n.binaryFilePaths.includes(t)?{kind:Nu.Conflicted,entry:e}:{kind:Nu.Conflicted,entry:e,conflictMarkerCount:n.conflictCountsByPath.get(t)||0};default:return{kind:Nu.Conflicted,entry:e}}}(t,e,n)}return lt(`Unknown file status ${status}`)}const ky=["DD","AU","UD","UA","DU","AA","UU"];async function Ry(e){const n=await Bm(["--no-optional-locks","status","--untracked-files=all","--branch","--porcelain=2","-z"],e.path,"getStatus",new Set([0,128]));if(128===n.exitCode)return log.debug(`'git status' returned 128 for '${e.path}' and is likely missing its .git directory`),null;if(n.output.length>2e7)return log.error(`'git status' emitted ${n.output.length} bytes, which is beyond the supported threshold of 20000000 bytes`),null;const r=function(e){const t=new Array,n=e.split("\0");for(let e=0;e<n.length;e++){const r=n[e];if(r.startsWith("# ")&&r.length>2){t.push({kind:"header",value:r.substring(2)});continue}const i=r.substring(0,1);"1"===i?t.push(Xg(r)):"2"===i?t.push(Jg(r,n[++e])):"u"===i?t.push(ty(r)):"?"===i&&t.push(ny(r))}return t}(n.output.toString("utf8")),i=r.filter(jg),s=r.filter(Kg),o=await async function(e){const n=t.join(e.path,".git","MERGE_HEAD");return await R(n)}(e),a=s.some((e=>ky.indexOf(e.statusCode)>-1)),l=await cy(e),c=await async function(e,t,n,r){try{if(t)return await async function(e){return{conflictCountsByPath:await Gg(e.path),binaryFilePaths:await xf(e,"MERGE_HEAD")}}(e);if(null!==r)return await async function(e){return{conflictCountsByPath:await Gg(e.path),binaryFilePaths:await xf(e,"REBASE_HEAD")}}(e);if(n)return await async function(e){const t=await Gg(e.path);let n=[];try{n=await xf(e,"HEAD")}catch(e){}return{conflictCountsByPath:t,binaryFilePaths:n}}(e)}catch(e){log.error("Unexpected error from git operations in getConflictDetails",e)}return{conflictCountsByPath:new Map,binaryFilePaths:new Array}}(e,o,a,l),u=s.reduce(((e,t)=>function(e,t,n){const r=function(e,t){const n=function(e){if(e.startsWith("S"))return{commitChanged:"C"===e[1],modifiedChanges:"M"===e[2],untrackedChanges:"U"===e[3]}}(t);return"??"===e?{kind:"untracked",submoduleStatus:n}:".M"===e?{kind:"ordinary",type:"modified",index:Ou.Unchanged,workingTree:Ou.Modified,submoduleStatus:n}:"M."===e?{kind:"ordinary",type:"modified",index:Ou.Modified,workingTree:Ou.Unchanged,submoduleStatus:n}:".A"===e?{kind:"ordinary",type:"added",index:Ou.Unchanged,workingTree:Ou.Added,submoduleStatus:n}:"A."===e?{kind:"ordinary",type:"added",index:Ou.Added,workingTree:Ou.Unchanged,submoduleStatus:n}:".D"===e?{kind:"ordinary",type:"deleted",index:Ou.Unchanged,workingTree:Ou.Deleted,submoduleStatus:n}:"D."===e?{kind:"ordinary",type:"deleted",index:Ou.Deleted,workingTree:Ou.Unchanged,submoduleStatus:n}:"R."===e?{kind:"renamed",index:Ou.Renamed,workingTree:Ou.Unchanged,submoduleStatus:n}:".R"===e?{kind:"renamed",index:Ou.Unchanged,workingTree:Ou.Renamed,submoduleStatus:n}:"C."===e?{kind:"copied",index:Ou.Copied,workingTree:Ou.Unchanged,submoduleStatus:n}:".C"===e?{kind:"copied",index:Ou.Unchanged,workingTree:Ou.Copied,submoduleStatus:n}:"AD"===e?{kind:"ordinary",type:"added",index:Ou.Added,workingTree:Ou.Deleted,submoduleStatus:n}:"AM"===e?{kind:"ordinary",type:"added",index:Ou.Added,workingTree:Ou.Modified,submoduleStatus:n}:"RM"===e?{kind:"renamed",index:Ou.Renamed,workingTree:Ou.Modified,submoduleStatus:n}:"RD"===e?{kind:"renamed",index:Ou.Renamed,workingTree:Ou.Deleted,submoduleStatus:n}:"DD"===e?{kind:"conflicted",action:Lu.BothDeleted,us:Ou.Deleted,them:Ou.Deleted,submoduleStatus:n}:"AU"===e?{kind:"conflicted",action:Lu.AddedByUs,us:Ou.Added,them:Ou.UpdatedButUnmerged,submoduleStatus:n}:"UD"===e?{kind:"conflicted",action:Lu.DeletedByThem,us:Ou.UpdatedButUnmerged,them:Ou.Deleted,submoduleStatus:n}:"UA"===e?{kind:"conflicted",action:Lu.AddedByThem,us:Ou.UpdatedButUnmerged,them:Ou.Added,submoduleStatus:n}:"DU"===e?{kind:"conflicted",action:Lu.DeletedByUs,us:Ou.Deleted,them:Ou.UpdatedButUnmerged,submoduleStatus:n}:"AA"===e?{kind:"conflicted",action:Lu.BothAdded,us:Ou.Added,them:Ou.Added,submoduleStatus:n}:"UU"===e?{kind:"conflicted",action:Lu.BothModified,us:Ou.UpdatedButUnmerged,them:Ou.UpdatedButUnmerged,submoduleStatus:n}:{kind:"ordinary",type:"modified",submoduleStatus:n}}(t.statusCode,t.submoduleStatusCode);if("ordinary"===r.kind&&r.index===Ou.Added&&r.workingTree===Ou.Deleted)return e;"untracked"===r.kind&&e.delete(t.path);const i=Ey(t.path,r,n,t.oldPath),s=i.kind!==Nu.Modified||void 0===i.submoduleStatus||i.submoduleStatus.commitChanged?Mu.All:Mu.None,o=Uu.fromInitialSelection(s);return e.set(t.path,new ju(t.path,i,o)),e}(e,t,c)),new Map),{currentBranch:h,currentUpstreamBranch:p,currentTip:d,branchAheadBehind:m}=i.reduce(Ty,{currentBranch:void 0,currentUpstreamBranch:void 0,currentTip:void 0,branchAheadBehind:void 0,match:null}),f=Yu.fromFiles([...u.values()]),g=await Sy(e),y=await async function(e){const n=t.join(e.path,".git","SQUASH_MSG");return await R(n)}(e);return{currentBranch:h,currentTip:d,currentUpstreamBranch:p,branchAheadBehind:m,exists:!0,mergeHeadFound:o,rebaseInternalState:l,workingDirectory:f,isCherryPickingHeadFound:g,squashMsgFound:y,doConflictedFilesExist:a}}function Ty(e,t){let{currentBranch:n,currentUpstreamBranch:r,currentTip:i,branchAheadBehind:s,match:o}=e;const a=t.value;if(o=a.match(/^branch\.oid ([a-f0-9]+)$/))i=o[1];else if(o=a.match(/^branch.head (.*)/))"(detached)"!==o[1]&&(n=o[1]);else if(o=a.match(/^branch.upstream (.*)/))r=o[1];else if(o=a.match(/^branch.ab \+(\d+) -(\d+)$/)){const e=parseInt(o[1],10),t=parseInt(o[2],10);isNaN(e)||isNaN(t)||(s={ahead:e,behind:t})}return{currentBranch:n,currentUpstreamBranch:r,currentTip:i,branchAheadBehind:s,match:o}}async function Ay(e){const t=await _d(["var","GIT_AUTHOR_IDENT"],e.path,"getAuthorIdentity",{successExitCodes:new Set([0,128])});if(128===t.exitCode)return null;try{return af.parseIdentity(t.stdout)}catch(e){return null}}const xy=[{title:"",weight:0}];class Dy extends qf{constructor(){super(xy)}}class _y{sha;path;describe;constructor(e,t,n){this.sha=e,this.path=t,this.describe=n}}async function My(e){const n=t.join(e.path,".gitignore");return new Promise(((e,t)=>{i.readFile(n,"utf8",((n,r)=>{n?"ENOENT"===n.code?e(null):t(n):e(r)}))}))}async function Py(e,n){const r=t.join(e.path,".gitignore");if(""===n)return new Promise(((e,t)=>{i.unlink(r,(n=>{n?t(n):e()}))}));const s=await Ny(n,e);await(0,b.writeFile)(r,s)}async function Iy(e,t){const n=await My(e)||"",r=await Ny(n,e),i=t instanceof Array?t.join("\n"):t,s=await Ny(`${r}${i}`,e);await Py(e,s)}function Oy(e){return e.replaceAll(/[\[\]!\*\#\?]/g,(e=>"\\"+e))}async function Ny(e,t){const n=await Bd(t,"core.autocrlf"),r=await Bd(t,"core.safecrlf");return new Promise(((t,i)=>{"true"!==n||"true"!==r?e.endsWith("\n")?t(e):t(null==n||"true"===n?`${e}\n`:`${e}\r\n`):t(e.replace(/\r\n|\n\r|\n|\r/g,"\r\n"))}))}async function Ly(e,t){const n=["lfs","install"];t&&n.push("--force"),await _d(n,e.path,"installLFSHooks")}async function By(e,t){const{stdout:n}=await _d(["check-attr","filter",t],e.path,"checkAttrForLFS");return null!==/: filter: lfs/.exec(n)}function Fy(e){switch(e.kind){case Nu.New:case Nu.Untracked:return"New";case Nu.Modified:return"Modified";case Nu.Deleted:return"Deleted";case Nu.Renamed:return"Renamed";case Nu.Conflicted:return Vu(e)?e.conflictMarkerCount>0?"Conflicted":"Resolved":"Conflicted";case Nu.Copied:return"Copied";default:return ct(0,`Unknown file status ${e}`)}}function Hy(e){return e.kind===Nu.Conflicted}function Uy(e){return e.files.some((e=>Hy(e.status)))}function Zy(e,t){return void 0===t&&(!Vu(e)||e.conflictMarkerCount>0)}function $y(e,t){const n=t?` from ${t}`:"";switch(e){case Ou.Added:return`Using the added file${n}`;case Ou.UpdatedButUnmerged:return`Using the modified file${n}`;case Ou.Deleted:return`Using the deleted file${n}`;default:return ct(0,"Unknown status entry to format")}}function Wy(e,t){const n=t?` from ${t}`:"";switch(e){case Ou.Added:return`Use the added file${n}`;case Ou.UpdatedButUnmerged:return`Use the modified file${n}`;case Ou.Deleted:return"Do not include this file"+(t?` on ${t}`:"");default:return ct(0,"Unknown status entry to format")}}function qy(e,t){return e.files.filter((e=>qu(e.status)&&!Zy(e.status,t.get(e.path))))}function Vy(e,t){return e.files.filter((e=>qu(e.status)&&Zy(e.status,t.get(e.path))))}function Gy(e,{defaultBranch:t,upstreamDefaultBranch:n}){return $r(e)?n??t:t}class zy{_state;constructor(e=new Map){this._state=e}get state(){return new Map(this._state)}updateMenuItem(e,t){const n=this._state.get(e)||{};this._state.set(e,xp(n,t))}enable(e){return this.updateMenuItem(e,{enabled:!0}),this}disable(e){return this.updateMenuItem(e,{enabled:!1}),this}setEnabled(e,t){return this.updateMenuItem(e,{enabled:t}),this}merge(e){const t=new Map(this._state);for(const[n,r]of e._state)t.set(n,r);return new zy(t)}}function jy(e,t){return void 0===e.enabled||"separator"===t.type||t.enabled===e.enabled}const Ky=["rename-branch","delete-branch","discard-all-changes","stash-all-changes","preferences","update-branch-with-contribution-target-branch","compare-to-branch","merge-branch","rebase-branch","view-repository-on-github","compare-on-github","branch-on-github","open-in-shell","push","pull","branch","repository","go-to-commit-message","create-branch","show-changes","show-history","show-repository-list","show-branches-list","open-working-directory","show-repository-settings","open-external-editor","remove-repository","new-repository","add-local-repository","clone-repository","about","create-pull-request","preview-pull-request","squash-and-merge-branch"];function Yy(e){return e.currentPopup?function(){const e=new zy;for(const t of Ky)e.disable(t);return e}().state:function(){const e=new zy;for(const t of Ky)e.enable(t);return e}().merge(function(e){const t=e.selectedState,n=!(!t||!(r=t.repository)||r instanceof ti||!r.gitHubRepository||null===r.gitHubRepository.htmlURL);var r;let i=!1,s=!1,o=!1,a=!1,l=!1,c=!1,u=!1,h=!1,p=!1,d=!1,m=!1,f=!1,g=!1,y=!1;const w=null!==t&&t.repository instanceof Zr&&function(e){if($r(e)){const t=e.gitHubRepository;return t.parent?!1!==t.parent.issuesEnabled&&!0!==t.parent.isArchived:!1!==t.issuesEnabled&&!0!==t.isArchived}return!1}(t.repository);if(t&&t.type===Je.Repository){i=!0;const{branchesState:e,changesState:n}=t.state,r=e.tip,w=e.defaultBranch;o=r.kind===Hr.Valid,a=r.kind===Hr.Detached,p=r.kind===Hr.Unknown,d=r.kind===Hr.Unborn;const b=Gy(t.repository,e);y=null!==b,g=r.kind===Hr.Valid&&b?.name===r.branch.name,r.kind===Hr.Valid?(s=null===w||r.branch.name!==w.name,u=!!r.branch.upstream,f=null!==n.stashEntry):s=!0,h=t.state.isPushPullFetchInProgress;const{conflictState:v,workingDirectory:C}=t.state.changesState;m=null!==v&&"rebase"===v.kind,c=null!==n.conflictState||Uy(C),l=C.files.length>0}const b=["branch","repository","remove-repository","open-in-shell","open-working-directory","show-repository-settings","go-to-commit-message","show-changes","show-history","show-branches-list","open-external-editor","compare-to-branch"],v=new zy,C="hidden"!==e.windowState,S=e.showWelcomeFlow,E=C&&i&&!S;if(E){for(const e of b)v.enable(e);v.setEnabled("rename-branch",(s||!u)&&!d&&!a),v.setEnabled("delete-branch",s&&!d&&!a),v.setEnabled("update-branch-with-contribution-target-branch",o&&y&&!g),v.setEnabled("merge-branch",o),v.setEnabled("squash-and-merge-branch",o),v.setEnabled("rebase-branch",o),v.setEnabled("compare-on-github",n&&u),v.setEnabled("branch-on-github",n&&u),v.setEnabled("view-repository-on-github",n),v.setEnabled("create-issue-in-repository-on-github",w),v.setEnabled("create-pull-request",n&&!d&&!a),v.setEnabled("preview-pull-request",!d&&!a&&n),v.setEnabled("push",!d&&!a&&!h),v.setEnabled("pull",u&&!h),v.setEnabled("create-branch",!p&&!d&&!m),v.setEnabled("discard-all-changes",E&&l&&!m),v.setEnabled("stash-all-changes",l&&o&&!m&&!c),v.setEnabled("compare-to-branch",!a),v.setEnabled("toggle-stashed-changes",f),t&&t.type===Je.MissingRepository&&v.disable("open-external-editor")}else{for(const e of b)v.disable(e);v.disable("view-repository-on-github"),v.disable("create-pull-request"),v.disable("preview-pull-request"),t&&t.type===Je.MissingRepository&&(t.repository.gitHubRepository&&v.enable("view-repository-on-github"),v.enable("remove-repository")),v.disable("create-branch"),v.disable("rename-branch"),v.disable("delete-branch"),v.disable("discard-all-changes"),v.disable("stash-all-changes"),v.disable("update-branch-with-contribution-target-branch"),v.disable("merge-branch"),v.disable("squash-and-merge-branch"),v.disable("rebase-branch"),v.disable("push"),v.disable("pull"),v.disable("compare-to-branch"),v.disable("compare-on-github"),v.disable("branch-on-github"),v.disable("toggle-stashed-changes")}return v}(e)).merge(function(e){const t=new zy,n=e.resizablePaneActive;return t.setEnabled("increase-active-resizable-width",n),t.setEnabled("decrease-active-resizable-width",n),t}(e)).merge(function(e){const t=["new-repository","add-local-repository","clone-repository","preferences","about"],n=new zy;if(e)for(const e of t)n.disable(e);else for(const e of t)n.enable(e);return n}(e.showWelcomeFlow)).merge(function(e){const t=["show-repository-list"],n=new zy;if(0===e.repositories.length)for(const e of t)n.disable(e);return n}(e)).state}var Xy;!function(e){e.Terminal="Terminal",e.Hyper="Hyper",e.iTerm2="iTerm2",e.PowerShellCore="PowerShell Core",e.Kitty="Kitty",e.Alacritty="Alacritty",e.Tabby="Tabby",e.WezTerm="WezTerm",e.Warp="Warp"}(Xy||(Xy={})),Xy.Terminal;var Qy,Jy;!function(e){e.Cmd="Command Prompt",e.PowerShell="PowerShell",e.PowerShellCore="PowerShell Core",e.Hyper="Hyper",e.GitBash="Git Bash",e.Cygwin="Cygwin",e.WSL="WSL",e.WindowTerminal="Windows Terminal",e.FluentTerminal="Fluent Terminal",e.Alacritty="Alacritty"}(Qy||(Qy={})),Qy.Cmd,function(e){e.Gnome="GNOME Terminal",e.GnomeConsole="GNOME Console",e.Mate="MATE Terminal",e.Tilix="Tilix",e.Terminator="Terminator",e.Urxvt="URxvt",e.Konsole="Konsole",e.Xterm="XTerm",e.Terminology="Terminology",e.Deepin="Deepin Terminal",e.Elementary="Elementary Terminal",e.XFCE="XFCE Terminal",e.Alacritty="Alacritty",e.Kitty="Kitty",e.LXTerminal="LXDE Terminal",e.Warp="Warp"}(Jy||(Jy={}));const ew=Jy.Gnome;async function tw(e){return await vm(e)?e:null}function nw(e){switch(e){case Jy.Gnome:return tw("/usr/bin/gnome-terminal");case Jy.GnomeConsole:return tw("/usr/bin/kgx");case Jy.Mate:return tw("/usr/bin/mate-terminal");case Jy.Tilix:return tw("/usr/bin/tilix");case Jy.Terminator:return tw("/usr/bin/terminator");case Jy.Urxvt:return tw("/usr/bin/urxvt");case Jy.Konsole:return tw("/usr/bin/konsole");case Jy.Xterm:return tw("/usr/bin/xterm");case Jy.Terminology:return tw("/usr/bin/terminology");case Jy.Deepin:return tw("/usr/bin/deepin-terminal");case Jy.Elementary:return tw("/usr/bin/io.elementary.terminal");case Jy.XFCE:return tw("/usr/bin/xfce4-terminal");case Jy.Alacritty:return tw("/usr/bin/alacritty");case Jy.Kitty:return tw("/usr/bin/kitty");case Jy.LXTerminal:return tw("/usr/bin/lxterminal");case Jy.Warp:return tw("/usr/bin/warp-terminal");default:return ct(0,`Unknown shell: ${e}`)}}class rw extends Error{}const iw=ew;let sw=null;function ow(e){return function(e){return Ft(Jy,e)??ew}(e)}async function aw(){return sw||(sw=await async function(){const[e,t,n,r,i,s,o,a,l,c,u,h,p,d,m,f]=await Promise.all([nw(Jy.Gnome),nw(Jy.GnomeConsole),nw(Jy.Mate),nw(Jy.Tilix),nw(Jy.Terminator),nw(Jy.Urxvt),nw(Jy.Konsole),nw(Jy.Xterm),nw(Jy.Terminology),nw(Jy.Deepin),nw(Jy.Elementary),nw(Jy.XFCE),nw(Jy.Alacritty),nw(Jy.Kitty),nw(Jy.LXTerminal),nw(Jy.Warp)]),g=[];return e&&g.push({shell:Jy.Gnome,path:e}),t&&g.push({shell:Jy.GnomeConsole,path:t}),n&&g.push({shell:Jy.Mate,path:n}),r&&g.push({shell:Jy.Tilix,path:r}),i&&g.push({shell:Jy.Terminator,path:i}),s&&g.push({shell:Jy.Urxvt,path:s}),o&&g.push({shell:Jy.Konsole,path:o}),a&&g.push({shell:Jy.Xterm,path:a}),l&&g.push({shell:Jy.Terminology,path:l}),c&&g.push({shell:Jy.Deepin,path:c}),u&&g.push({shell:Jy.Elementary,path:u}),h&&g.push({shell:Jy.XFCE,path:h}),p&&g.push({shell:Jy.Alacritty,path:p}),d&&g.push({shell:Jy.Kitty,path:d}),m&&g.push({shell:Jy.LXTerminal,path:m}),f&&g.push({shell:Jy.Warp,path:f}),g}(),sw)}function lw(e,t,n){null!==t.stderr&&t.stderr.on("data",(t=>{const n=t instanceof Buffer?t.toString():t;log.debug(`[${e}] stderr: '${n}'`)})),t.on("error",(t=>{log.debug(`[${e}] an error was encountered`,t),n(t)})),t.on("exit",(t=>{0!==t&&log.debug(`[${e}] exit code: ${t}`)}))}function cw(e,t){return Promise.all([e(),uw(t)]).then((e=>e[0]))}async function uw(e){return new Promise((t=>window.setTimeout(t,e)))}const hw=36e5;class pw{repository;accountsStore;fetch;shouldPerformFetch;timeoutHandle=null;stopped=!1;constructor(e,t,n,r){this.repository=e,this.accountsStore=t,this.fetch=n,this.shouldPerformFetch=r}start(e){this.stopped&&lt("Cannot start a background fetcher that has been stopped.");const t=this.repository.gitHubRepository;t&&(e?this.timeoutHandle=window.setTimeout((()=>this.performAndScheduleFetch(t)),mw()):this.performAndScheduleFetch(t))}stop(){this.stopped=!0;const e=this.timeoutHandle;e&&(window.clearTimeout(e),this.timeoutHandle=null)}async performAndScheduleFetch(e){if(this.stopped)return;const t=await this.shouldPerformFetch(this.repository);if(this.stopped)return;if(t)try{await this.fetch(this.repository)}catch(e){const t=this.repository.gitHubRepository,n=null!==t?t.fullName:this.repository.name;log.error(`Error performing periodic fetch for '${n}'`,e)}if(this.stopped)return;const n=await this.getFetchInterval(e);this.stopped||(this.timeoutHandle=window.setTimeout((()=>this.performAndScheduleFetch(e)),n))}async getFetchInterval(e){const t=ur(await this.accountsStore.getAll(),e.endpoint);let n=hw;if(t){const r=ir.fromAccount(t);try{const t=await r.getFetchPollInterval(e.owner.login,e.name);n=t?Math.max(t,3e5):hw}catch(e){log.error("Error fetching poll interval",e)}}return n+mw()}}let dw=null;function mw(){if(null!==dw)return dw;const e=Math.ceil(3e4*Math.random());return dw=e,e}function fw(e){return Pt(__dirname,"emoji",e)}function gw(e){const t=e.toString(16);return t.length>=4?t:("0000"+t).substring(t.length)}const yw={summary:"",description:""};async function ww(){return new Promise(((e,t)=>{requestAnimationFrame(e)}))}class bw extends Error{repository;existingRemote;constructor(e,t){super(`The remote '${t.name}' 已存在`),this.repository=e,this.existingRemote=t}}const vw="upstream";function Cw(e,t){const n=t.find((e=>e.name===vw));return n&&Sr(e,n)?n:null}function Sw(e){return"known"===e.kind}var Ew;!function(e){e.NotLoaded="NotLoaded",e.Loading="Loading",e.Loaded="Loaded"}(Ew||(Ew={}));const kw=/!!GitHub_Desktop<(.+)>$/;async function Rw(e){const{formatArgs:t,parse:n}=lf({name:"%gD",stashSha:"%H",message:"%gs",tree:"%T",parents:"%P"}),r=await _d(["log","-g",...t,"refs/stash"],e.path,"getStashEntries",{successExitCodes:new Set([0,128])});if(128===r.exitCode)return{desktopEntries:[],stashEntryCount:0};const i=[],s={kind:Ew.NotLoaded},o=n(r.stdout);for(const{name:e,message:t,stashSha:n,tree:r,parents:a}of o){const o=Mw(t);null!==o&&i.push({name:e,stashSha:n,branchName:o,tree:r,parents:a.length>0?a.split(" "):[],files:s})}return{desktopEntries:i,stashEntryCount:o.length-1}}async function Tw(e,t){const n=await Rw(e),r="string"==typeof t?t:t.name;return n.desktopEntries.find((e=>e.branchName===r))||null}function Aw(e){return`!!GitHub_Desktop<${e}>`}async function xw(e,t){return(await Rw(e)).desktopEntries.find((e=>e.stashSha===t))||null}async function Dw(e,t){const n=await xw(e,t);if(null!==n){const t=["stash","drop",n.name];await _d(t,e.path,"dropStashEntry")}}async function _w(e,t){const n=new Set([Gp.GitError.MergeConflicts]),r=new Set([0,1]),i=await xw(e,t);if(null!==i){const s=["stash","pop","--quiet",`${i.name}`],o=await _d(s,e.path,"popStashEntry",{expectedErrors:n,successExitCodes:r});if(1===o.exitCode){if(o.stderr.length>0)throw new Dd(o,s);log.info(`[popStashEntry] a stash was popped successfully but exit code ${o.exitCode} reported.`),await Dw(e,t)}}}function Mw(e){const t=kw.exec(e);return null===t||0===t[1].length?null:t[1]}function Pw(e,t){0===t.length?Iw(e):function(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}(Ow(e),t)}function Iw(e){localStorage.removeItem(Ow(e))}function Ow(e){return`tags-to-push-${e.id}`}const Nw=100,Lw="history";class Bw extends Fp{repository;shell;statsStore;commitLookup=new Map;pullWithRebase;_history=[];requestsInFight=new Set;_tip={kind:Hr.Unknown};_defaultBranch=null;_upstreamDefaultBranch=null;_localTags=null;_allBranches=[];_recentBranches=[];_localCommitSHAs=[];_commitMessage=yw;_showCoAuthoredBy=!1;_coAuthors=[];_aheadBehind=null;_tagsToPush=[];_remotes=[];_defaultRemote=null;_currentRemote=null;_upstreamRemote=null;_lastFetched=null;_desktopStashEntries=new Map;_stashEntryCount=0;constructor(e,t,n){super(),this.repository=e,this.shell=t,this.statsStore=n,this._tagsToPush=function(e){return function(e){const t=localStorage.getItem(e)||"[]";try{const e=JSON.parse(t);return e instanceof Array?e.some((e=>"string"!=typeof e))?[]:e:[]}catch(e){return[]}}(Ow(e))}(e)}async reconcileHistory(e){if(0===this._history.length)return;if(this.requestsInFight.has(Lw))return;this.requestsInFight.add(Lw);const t=Hg("HEAD",e),n=await this.performFailableOperation((()=>df(this.repository,t,Nw)));if(null==n)return;const r=this._history,i=r.findIndex((t=>t===e));if(i>-1){log.debug(`reconciling history - adding ${n.length} commits before merge base ${e.substring(0,8)}`);const t=r.slice(i);this._history=[...n.map((e=>e.sha)),...t]}this.storeCommits(n),this.requestsInFight.delete(Lw),this.emitUpdate()}async loadCommitBatch(e,t){if(this.requestsInFight.has(Lw))return null;const n=`history/compare/${e}/skip/${t}`;if(this.requestsInFight.has(n))return null;this.requestsInFight.add(n);const r=await this.performFailableOperation((()=>df(this.repository,e,Nw,t)));return this.requestsInFight.delete(n),r?(this.storeCommits(r),r.map((e=>e.sha))):null}async refreshTags(){const e=this._localTags,t=await this.performFailableOperation((()=>async function(e){const t=(await _d(["show-ref","--tags","-d"],e.path,"getAllTags",{successExitCodes:new Set([0,1])})).stdout.split("\n").filter((e=>""!==e)).map((e=>{const[t,n]=e.split(" ");return[n.replace(/^refs\/tags\//,"").replace(/\^\{\}$/,""),t]}));return new Map(t)}(this.repository)));if(void 0!==t){this._localTags=t;for(const e of this._tagsToPush)this._localTags.has(e)||this.removeTagToPush(e);null!==e&&this.emitUpdatesForChangedTags(e,this._localTags)}}async emitUpdatesForChangedTags(e,t){const n=new Set;let r=0;for(const[r,i]of e){const e=t.get(r);e?e!==i&&(n.add(i),n.add(e)):n.add(i)}for(const[i,s]of t)e.has(i)||(n.add(s),r++);r>0&&this.statsStore.recordTagCreated(r);const i=[];for(const e of n){const t=await ff(this.repository,e);null!==t&&i.push(t)}this.storeCommits(i)}async createBranch(e,t,n=!1){const r=await this.performFailableOperation((async()=>(await async function(e,t,n,r){const i=null!==n?["branch",t,n]:["branch",t];r&&i.push("--no-track"),await _d(i,e.path,"createBranch")}(this.repository,e,t,n),!0)));if(!0===r)return await this.loadBranches(),this.allBranches.find((t=>t.type===$p.Local&&t.name===e))}async createTag(e,t){const n=await this.performFailableOperation((async()=>(await async function(e,t,n){const r=["tag","-a","-m","",t,n];await _d(r,e.path,"createTag")}(this.repository,e,t),!0)));void 0!==n&&(await this.refreshTags(),this.addTagToPush(e),this.statsStore.increment("tagsCreatedInDesktop"))}async deleteTag(e){const t=await this.performFailableOperation((async()=>(await async function(e,t){const n=["tag","-d",t];await _d(n,e.path,"deleteTag")}(this.repository,e),!0)));void 0!==t&&(await this.refreshTags(),this.removeTagToPush(e),this.statsStore.increment("tagsDeleted"))}get history(){return this._history}get tagsToPush(){return this._tagsToPush}get localTags(){return this._localTags}async loadBranches(){const[e,t]=await Promise.all([this.performFailableOperation((()=>Dg(this.repository)))||[],this.performFailableOperation((()=>async function(e,t){const n=new RegExp(/.*? (renamed|checkout)(?:: moving from|\s*) (?:refs\/heads\/|\s*)(.*?) to (?:refs\/heads\/|\s*)(.*?)$/i),r=await _d(["log","-g","--no-abbrev-commit","--pretty=oneline","HEAD","-n","2500","--"],e.path,"getRecentBranches",{successExitCodes:new Set([0,128])});if(128===r.exitCode)return[];const i=r.stdout.split("\n"),s=new Set,o=new Set;for(const e of i){const t=n.exec(e);if(t&&4===t.length){const e=t[1],n=t[2],r=t[3];"renamed"===e&&o.add(n),o.has(r)||s.add(r)}if(6===s.size)break}return[...s]}(this.repository)))]);e&&(this._allBranches=this.mergeRemoteAndLocalBranches(e),await this.refreshDefaultBranch(),this.refreshRecentBranches(t),await this.checkPullWithRebase(),this.emitUpdate())}mergeRemoteAndLocalBranches(e){const t=new Array,n=new Array;for(const r of e)r.type===$p.Local?t.push(r):r.type===$p.Remote&&n.push(r);const r=new Set,i=new Array;for(const e of t)i.push(e),e.upstream&&r.add(e.upstream);for(const e of n)r.has(e.name)||i.push(e);return i}async checkPullWithRebase(){const e=await Bd(this.repository,"pull.rebase");null===e||""===e?this.pullWithRebase=void 0:"true"===e?this.pullWithRebase=!0:"false"===e?this.pullWithRebase=!1:(log.warn(`Unexpected value found for pull.rebase in config: '${e}'`),this.pullWithRebase=void 0)}async refreshDefaultBranch(){if(this._defaultBranch=await async function(e,t,n){const r=jr(e)?vw:n,i=r?await Fg(e,r):null,s=i??await bg(),o=i?`${r}/${i}`:void 0;let a,l,c;for(const e of t)e.type===$p.Local?(e.name===s&&(a=e),o&&e.upstream===o&&(l&&e.name!==s||(l=e))):o&&e.name===o&&(c=e);return l??a??c??null}(this.repository,this.allBranches,this.defaultRemote?.name),!Wr(this.repository)||Gr(this.repository)===this.repository.gitHubRepository)return void(this._upstreamDefaultBranch=null);const e=await Fg(this.repository,vw)??bg();this._upstreamDefaultBranch=this._allBranches.find((t=>t.type===$p.Remote&&t.remoteName===vw&&t.nameWithoutRemote===e))??null}addTagToPush(e){this._tagsToPush=[...this._tagsToPush,e],Pw(this.repository,this._tagsToPush),this.emitUpdate()}removeTagToPush(e){this._tagsToPush=this._tagsToPush.filter((t=>t!==e)),Pw(this.repository,this._tagsToPush),this.emitUpdate()}clearTagsToPush(){this._tagsToPush=[],Pw(this.repository,this._tagsToPush),this.emitUpdate()}refreshRecentBranches(e){if(!e||!e.length)return void(this._recentBranches=[]);const t=new Map;for(const e of this._allBranches)e.type===$p.Local&&t.set(e.name,e);const n=new Array;for(const r of e){if(r===this.defaultBranch?.name)continue;const e=t.get(r);if(e&&(n.push(e),n.length>=5))break}this._recentBranches=n}get tip(){return this._tip}get defaultBranch(){return this._defaultBranch}get upstreamDefaultBranch(){return this._upstreamDefaultBranch}get allBranches(){return this._allBranches}get recentBranches(){return this._recentBranches}async loadLocalCommits(e){if(null===e)return void(this._localCommitSHAs=[]);let t;if(e.upstream){const n=Hg(e.upstream,e.name);t=await this.performFailableOperation((()=>df(this.repository,n,Nw)))}else t=await this.performFailableOperation((()=>df(this.repository,"HEAD",Nw,void 0,["--not","--remotes"])));t&&(this.storeCommits(t),this._localCommitSHAs=t.map((e=>e.sha)),this.emitUpdate())}get localCommitSHAs(){return this._localCommitSHAs}storeCommits(e){for(const t of e)this.commitLookup.set(t.sha,t)}async undoFirstCommit(e){const t=await this.performFailableOperation((()=>Ry(this.repository)));if(null==t)throw new Error("Unable to undo commit because there are too many files in your repository's working directory.");const n=t.workingDirectory.files.filter((e=>e.status.kind===Nu.Deleted)),r=n.map((e=>e.path));return await async function(e,t){await _d(["checkout","HEAD","--",...t],e.path,"checkoutPaths")}(e,r),await Nf(e,"HEAD","Reverting first commit"),await async function(e){await _d(["rm","--cached","-r","-f","."],e.path,"unstageAllFiles")}(e),!0}async undoCommit(e){void 0!==await this.performFailableOperation((()=>0===e.parentSHAs.length?this.undoFirstCommit(this.repository):Eg(this.repository,2,e.parentSHAs[0])))&&(await this.restoreCoAuthorsFromCommit(e)||(this._commitMessage={summary:e.summary,description:e.body},this.emitUpdate()))}async prepareToAmendCommit(e){await this.restoreCoAuthorsFromCommit(e)||(this._commitMessage={summary:e.summary,description:e.body},this.emitUpdate())}async restoreCoAuthorsFromCommit(e){if(this.repository.gitHubRepository)try{return await this.loadCommitAndCoAuthors(e),this.emitUpdate(),!0}catch(e){log.error("Failed to restore commit and co-authors, falling back",e)}return!1}async loadCommitAndCoAuthors(e){const t=this.repository,n=await Im(t,{summary:e.summary,description:e.body}),r=await async function(e,t){const n=await _d(["interpret-trailers","--parse"],e.path,"parseTrailers",{stdin:t});if(0===n.stdout.length)return[];const r=await Yd(e);return jd(n.stdout,r)}(t,n),i=r.filter(zd);if(0===i.length)return void(this._commitMessage={summary:e.summary,description:e.body});const s=(await Xd(t,n,[],!0)).split("\n");let o;const a=/^co-authored-by(.)\s(.*)/i,l=[];for(let e=s.length-1;e>=0;e--){const t=s[e],n=a.exec(t);if(!n)continue;if(o??=await Yd(this.repository),-1===o.indexOf(n[1]))continue;const r=Kd(t,n[1]);if(!r)continue;const c=i.findIndex((e=>e.value===r.value));-1!==c&&(l.unshift(i[c]),i.splice(c,1),s.splice(e,1))}s.splice(0,2);const c=s.join("\n").trim();this._commitMessage={summary:e.summary,description:c};const u=l.map((e=>Qd.parse(e.value))),h=new Array;for(let e=0;e<u.length;e++){const t=u[e];if(null===t)continue;const{name:n,email:r}=t,i=this.coAuthors.filter(Sw).find((e=>e.name===n&&e.email===r&&null!==e.username));h.push(i||{kind:"known",name:n,email:r,username:null})}this._coAuthors=h,this._coAuthors.length>0&&!1===this._showCoAuthoredBy&&(this._showCoAuthoredBy=!0)}async performFailableOperation(e,t){try{return await e()}catch(e){return e=new gt(e,{repository:this.repository,...t}),void this.emitError(e)}}get commitMessage(){return this._commitMessage}get showCoAuthoredBy(){return this._showCoAuthoredBy}get coAuthors(){return this._coAuthors}async fetch(e,t){const n=new Map;if(null!==this.currentRemote&&n.set(this.currentRemote.name,this.currentRemote),null!==this.defaultRemote&&n.set(this.defaultRemote.name,this.defaultRemote),null!==this.upstreamRemote&&n.set(this.upstreamRemote.name,this.upstreamRemote),n.size>0&&await this.fetchRemotes([...n.values()],e,t),this.tip.kind===Hr.Valid){const e=this.tip.branch;if(null!==e.upstreamRemoteName&&null!==e.upstream){const t=Ug(e.name,e.upstream);this._aheadBehind=await Zg(this.repository,t)}else this._aheadBehind=null}else this._aheadBehind=null;this.emitUpdate()}async fetchRemotes(e,t,n){if(!e.length)return;const r=1/e.length;for(let i=0;i<e.length;i++){const s=e[i],o=i*r;await this.fetchRemote(s,t,(e=>{e&&n&&n({...e,value:o+e.value*r})}))}}async fetchRemote(e,t,n){const r=this.repository,i={type:mt.Fetch,repository:r},s=await this.performFailableOperation((async()=>(await async function(e,t,n,r=!1){let i={successExitCodes:new Set([0]),env:await Uf(t.url)};if(n){const e=`同步 ${t.name}`,s="fetch";i=await pg({...i,trackLFSProgress:!0,isBackgroundTask:r},new eg,(r=>{if("context"===r.kind&&!r.text.startsWith("remote: Counting objects"))return;const i="progress"===r.kind?r.details.text:r.text,o=r.percent;n({kind:s,title:e,description:i,value:o,remote:t.name})})),n({kind:s,title:e,value:0,remote:t.name})}const s=await async function(e,t){return["fetch",...t?["--progress"]:[],"--prune","--recurse-submodules=on-demand",e]}(t.name,n);await _d(s,e.path,"fetch",i)}(r,e,n,t),!0)),{backgroundTask:t,retryAction:i});s&&await Bg(r,e,t).catch((e=>log.error("Failed updating remote HEAD",e)))}async fetchRefspec(e){const t=await Pg(this.repository);for(const n of t)await this.performFailableOperation((()=>xg(this.repository,n,e)))}async loadStatus(){const e=await this.performFailableOperation((()=>Ry(this.repository)));if(!e)return null;this._aheadBehind=e.branchAheadBehind||null;const{currentBranch:t,currentTip:n}=e;if(t||n)if(n&&t){const r=await this.lookupCommit(n),i=new Vp(t,e.currentUpstreamBranch||null,r,$p.Local,`refs/heads/${t}`);this._tip={kind:Hr.Valid,branch:i}}else n?this._tip={kind:Hr.Detached,currentSha:n}:t&&(this._tip={kind:Hr.Unborn,ref:t});else this._tip={kind:Hr.Unknown};return this.emitUpdate(),e}async lookupCommit(e){const t=this.commitLookup.get(e);if(null!=t)return Promise.resolve(t);const n=await this.performFailableOperation((()=>ff(this.repository,e)));if(null!=n)return this.commitLookup.set(e,n),n;throw new Error(`Could not load commit: '${e}'`)}async loadStashEntries(){const e=new Map,t=await Rw(this.repository);for(const n of t.desktopEntries)if(!e.has(n.branchName)){const t=this._desktopStashEntries.get(n.branchName);void 0!==t&&t.stashSha===n.stashSha?e.set(n.branchName,{...n,files:t.files}):e.set(n.branchName,n)}this._desktopStashEntries=e,this._stashEntryCount=t.stashEntryCount,this.emitUpdate(),this.loadFilesForCurrentStashEntry()}get currentBranchStashEntry(){return this._tip&&this._tip.kind===Hr.Valid&&this._desktopStashEntries.get(this._tip.branch.name)||null}get desktopStashEntries(){return this._desktopStashEntries}get stashEntryCount(){return this._stashEntryCount}get desktopStashEntryCount(){return this._desktopStashEntries.size}async loadFilesForCurrentStashEntry(){const e=this.currentBranchStashEntry;if(!e||e.files.kind!==Ew.NotLoaded)return;const{branchName:t}=e;this._desktopStashEntries.set(t,{...e,files:{kind:Ew.Loading}}),this.emitUpdate();const n=await async function(e,t){const n=["stash","show",t,"--raw","--numstat","-z","--format=format:","--no-show-signature","--"],{stdout:r}=await _d(n,e.path,"getStashedFiles");return mf(r,t,`${t}^`).files}(this.repository,e.stashSha),r=this._desktopStashEntries.get(t);r&&r.stashSha===e.stashSha&&(this._desktopStashEntries.set(t,{...r,files:{kind:Ew.Loaded,files:n}}),this.emitUpdate())}async loadRemotes(){const e=await Pg(this.repository);this._remotes=e,this._defaultRemote=function(e){return e.find((e=>"origin"===e.name))||e[0]||null}(e);const t=this.tip.kind===Hr.Valid&&null!==this.tip.branch.upstreamRemoteName?this.tip.branch.upstreamRemoteName:null;this._currentRemote=null!==t&&e.find((e=>e.name===t))||this._defaultRemote;const n=this.repository.gitHubRepository&&this.repository.gitHubRepository.parent;this._upstreamRemote=n?Cw(n,e):null,this.emitUpdate()}async addUpstreamRemoteIfNeeded(){const e=this.repository.gitHubRepository&&this.repository.gitHubRepository.parent;if(!e)return;const t=await Pg(this.repository);if(Cw(e,t))return;const n=t.find((e=>e.name===vw));if(n){const e=new bw(this.repository,n);return void this.emitError(e)}const r=ut("Parent repositories are fully loaded",e.cloneURL);this._upstreamRemote=await this.performFailableOperation((()=>Ig(this.repository,vw,r)))??null}async ensureUpstreamRemoteURL(e){await this.performFailableOperation((async()=>{try{await Ig(this.repository,vw,e)}catch(t){if(!(t instanceof Dd&&t.result.gitError===Gp.GitError.RemoteAlreadyExists))throw t;await Ng(this.repository,vw,e)}}))}get aheadBehind(){return this._aheadBehind}get remotes(){return this._remotes}get defaultRemote(){return this._defaultRemote}get currentRemote(){return this._currentRemote}get upstreamRemote(){return this._upstreamRemote}setShowCoAuthoredBy(e){this._showCoAuthoredBy=e,e||(this._coAuthors=[]),this.emitUpdate()}setCoAuthors(e){this._coAuthors=e,this.emitUpdate()}setCommitMessage(e){return this._commitMessage=e,this.emitUpdate(),Promise.resolve()}get lastFetched(){return this._lastFetched}async updateLastFetched(){const e=t.join(this.repository.path,".git","FETCH_HEAD");try{const t=await(0,b.stat)(e);t.size>0&&(this._lastFetched=t.mtime)}catch{this._lastFetched=null}return this.emitUpdate(),this._lastFetched}merge(e,t=!1){if(this.tip.kind!==Hr.Valid)throw new Error(`unable to merge as tip state is '${this.tip.kind}' and the application expects the repository to be on a branch currently`);const n=this.tip.branch.name;return this.performFailableOperation((()=>async function(e,t,n=!1){const r=["merge"];n&&r.push("--squash"),r.push(t);const{exitCode:i,stdout:s}=await _d(r,e.path,"merge",{expectedErrors:new Set([Gp.GitError.MergeConflicts])});if(0!==i)return yf.Failed;if(n){const{exitCode:t}=await _d(["commit","--no-edit"],e.path,"createSquashMergeCommit");if(0!==t)return yf.Failed}return"Already up to date.\n"===s?yf.AlreadyUpToDate:yf.Success}(this.repository,e.name,t)),{gitContext:{kind:"merge",currentBranch:n,theirBranch:e.name},retryAction:{type:mt.Merge,currentBranch:n,theirBranch:e,repository:this.repository}})}async setRemoteURL(e,t){const n=!0===await this.performFailableOperation((()=>Ng(this.repository,e,t)));return await this.loadRemotes(),this.emitUpdate(),n}async discardChanges(e,n=!0,r=!1){const i=new Array,s=new Array,o=await async function(e){const[n,r]=await Promise.all([R(t.join(e.path,".gitmodules")),R(t.join(e.path,".git","modules"))]);if(!n&&!r)return log.info('No submodules found. Skipping "git submodule status"'),[];const{stdout:i,exitCode:s}=await _d(["submodule","status","--"],e.path,"listSubmodules",{successExitCodes:new Set([0,128])});if(128===s)return[];const o=new Array,a=/^.([^ ]+) (.+) \((.+?)\)$/gm;for(const[,e,t,n]of i.matchAll(a))o.push(new _y(e,t,n));return o}(this.repository);await async function(e,t){const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;){const e=await ww();do{await Promise.resolve(t(r.value)),r=n.next()}while(!r.done&&performance.now()-e<10)}}(e,(async a=>{const l=o.some((e=>e.path===a.path));if(a.status.kind!==Nu.Deleted&&!l&&n)try{await this.shell.moveItemToTrash(t.resolve(this.repository.path,a.path))}catch(t){if(r)throw new wt(t,this.repository,e)}a.status.kind===Nu.Copied||a.status.kind===Nu.Renamed?(s.push(a.path),i.push(a.status.oldPath),s.push(a.status.oldPath)):(i.push(a.path),s.push(a.path))}));const a=await async function(e){const t=["diff-index","--cached","--name-status","--no-renames","-z"];let n=await _d([...t,"HEAD","--"],e.path,"getIndexChanges",{successExitCodes:new Set([0,128])});128===n.exitCode&&(n=await _d([...t,of],e.path,"getIndexChanges"));const r=new Map,i=n.stdout.split("\0");for(let e=0;e<i.length-1;e+=2){const t=sf(i[e]),n=i[e+1];r.set(n,t)}return r}(this.repository),l=s.filter((e=>a.has(e))),c=i.filter((e=>o.find((t=>t.path===e)))),u=i.filter((e=>-1===c.indexOf(e)||a.get(e)!==rf.Added));await this.performFailableOperation((async()=>{c.length>0&&await async function(e,t){0!==t.length&&await _d(["submodule","update","--recursive","--force","--",...t],e.path,"updateSubmodule")}(this.repository,c),await async function(e,t,n,r){if(r.length){const t=[...Sg(2,"HEAD"),"--",...r];await _d(t,e.path,"resetPaths")}}(this.repository,0,0,l),await async function(e,t){if(!t.length)return;const n={successExitCodes:new Set([0,1]),stdin:t.join("\0")};await _d(["checkout-index","-f","-u","-q","--stdin","-z"],e.path,"checkoutIndex",n)}(this.repository,u)}))}async discardChangesFromSelection(e,t,n){await this.performFailableOperation((()=>async function(e,t,n,r){const i=function(e,t,n){let r="";return t.hunks.forEach(((e,t)=>{let i="",s=0,o=0,a=!1;e.lines.forEach(((t,r)=>{const l=e.unifiedDiffStart+r;if(t.type!==_u.Hunk){if(t.type===_u.Context)i+=`${t.text}\n`,s++,o++;else if(n.isSelected(l))t.type===_u.Add?(i+=`-${t.text.substring(1)}\n`,o++):t.type===_u.Delete?(i+=`+${t.text.substring(1)}\n`,s++):ct(t.type,`Unsupported line type ${t.type}`),a=!0;else if(t.type===_u.Add)s++,o++,i+=` ${t.text.substring(1)}\n`;else{if(t.type===_u.Delete)return;ct(t.type,`Unsupported line type ${t.type}`)}t.noTrailingNewLine&&(i+="\\ No newline at end of file\n")}})),a&&(r+=Mf(e.header.newStartLine,o,e.header.oldStartLine,s),r+=i)})),0===r.length?null:_f(e,e)+r}(t,n,r);null!==i&&await _d(["apply","--unidiff-zero","--whitespace=nowarn","-"],e.path,"discardChangesFromSelection",{stdin:i})}(this.repository,e,t,n)))}async revertCommit(e,t,n){await this.performFailableOperation((()=>async function(e,t,n,r){const i=["revert"];t.parentSHAs.length>1&&i.push("-m","1"),i.push(t.sha);let s={};if(r){const t=await Uf(Hf(e,n));s=await pg({env:t,trackLFSProgress:!0},new Dy,(e=>{const t="progress"===e.kind?e.details.text:e.text,n="progress"===e.kind?e.details.title:"",i=e.percent;r({kind:"revert",description:t,value:i,title:n})}))}await _d(i,e.path,"revert",s)}(e,t,this.currentRemote,n))),this.emitUpdate()}async updateExistingUpstreamRemote(){const e=ut("To update an upstream remote, the repository must be a GitHub repository",this.repository.gitHubRepository),t=ut("To update an upstream remote, the repository must have a parent",e.parent),n=ut("Parent repositories are always fully loaded",t.cloneURL);await this.performFailableOperation((()=>Ng(this.repository,vw,n)))}async getCompareCommits(e,t){if(this.tip.kind!==Hr.Valid)return null;const n=this.tip.branch,r=await Zg(this.repository,Ug(n.name,e.name));if(null==r)return null;const i=t===it.Ahead?Hg(e.name,n.name):Hg(n.name,e.name),s=t===it.Ahead?r.ahead:r.behind,o=await df(this.repository,i,s);return o.length>0&&this.storeCommits(o),{commits:o,ahead:r.ahead,behind:r.behind}}async pruneForkedRemotes(e){const t=function(e,t,n){const r=new Set(t.map((e=>e.head.gitHubRepository.cloneURL))),i=new Set(n.map((e=>e.upstreamRemoteName)));return e.filter((e=>e.name.startsWith(Zp)&&!r.has(e.url)&&!i.has(e.name)))}(await Pg(this.repository),e,this.allBranches);for(const e of t)await Og(this.repository,e.name)}async getCommitsBetweenBranches(e,t){const n=Hg(e.name,t.name),r=await this.performFailableOperation((()=>df(this.repository,n)));return null==r?[]:(r.length>0&&this.storeCommits(r),r)}}class Fw{shell;statsStore;onGitStoreUpdated;onDidError;gitStores=new Map;constructor(e,t,n,r){this.shell=e,this.statsStore=t,this.onGitStoreUpdated=n,this.onDidError=r}remove(e){this.gitStores.has(e.hash)&&this.gitStores.delete(e.hash)}get(e){let t=this.gitStores.get(e.hash);return void 0===t&&(t=new Bw(e,this.shell,this.statsStore),t.onDidUpdate((()=>this.onGitStoreUpdated(e,t))),t.onDidError((e=>this.onDidError(e))),this.gitStores.set(e.hash,t)),t}}function Hw(e,t,n){const r=e.conflictState,i=function(e,t){if(null!==e.rebaseInternalState){const{currentTip:n}=e;if(null==n)return null;const{targetBranch:r,originalBranchTip:i,baseBranchTip:s}=e.rebaseInternalState;return{kind:"rebase",currentTip:n,manualResolutions:t,targetBranch:r,originalBranchTip:i,baseBranchTip:s}}if(e.isCherryPickingHeadFound){const{currentBranch:n}=e;return null==n?null:{kind:"cherryPick",manualResolutions:t,targetBranchName:n}}const{currentBranch:n,currentTip:r,mergeHeadFound:i,squashMsgFound:s}=e;return null==n||null==r||!i&&!s||!i&&!e.doConflictedFilesExist?null:{kind:"merge",currentBranch:n,currentTip:r,manualResolutions:t}}(t,null!==r?r.manualResolutions:new Map);return null==r&&null==i?null:null!=r&&!st(r)||null!=i&&!st(i)?(null!=r&&!ot(r)||null!=i&&!ot(i)||function(e,t,n,r){const i=null!=e?e.targetBranch:null,s=null!=t?t.targetBranch:null;if(null!=i&&null!=s&&i!==s)return void r.increment("rebaseAbortedAfterConflictsCount");const{currentTip:o,currentBranch:a}=n;null!=e&&null==t&&null!=o&&null!=a&&(e.originalBranchTip!==o&&a===e.targetBranch||r.increment("rebaseAbortedAfterConflictsCount"))}(r,i,t,n),i):(function(e,t,n,r){const i=null!=e?e.currentBranch:null,s=null!=t?t.currentBranch:null;if(null!=i&&null!=s&&i!==s)return void r.increment("mergeAbortedAfterConflictsCount");const{currentTip:o}=n;null!=e&&null==t&&null!=o&&(e.currentTip!==o?r.increment("mergeSuccessAfterConflictsCount"):r.increment("mergeAbortedAfterConflictsCount"))}(r,i,t,n),i)}const Uw=kt()(((e,t)=>new Intl.RelativeTimeFormat(e,t)),{cache:new(Tt())({maxSize:100}),cacheKey:(...e)=>JSON.stringify(e)});function Zw(e){const t=Uw("en-US",{numeric:"auto"}),n=e<0?-1:1,r=Math.round(Math.abs(e)/1e3),i=Math.round(r/60),s=Math.round(i/60),o=Math.round(s/24),a=Math.round(o/30),l=Math.round(a/12);return r<45?t.format(r*n,"second"):i<45?t.format(i*n,"minute"):s<24?t.format(s*n,"hour"):o<30?t.format(o*n,"day"):a<18?t.format(a*n,"month"):t.format(l*n,"year")}const $w=["HEAD","refs/heads/main","refs/heads/master","refs/heads/gh-pages","refs/heads/develop","refs/heads/dev","refs/heads/development","refs/heads/trunk","refs/heads/devel","refs/heads/release"],Ww={enforcePruneThreshold:!0,deleteBranch:!0};class qw{repository;gitStoreCache;repositoriesStore;repositoriesStateCache;onPruneCompleted;timer=null;constructor(e,t,n,r,i){this.repository=e,this.gitStoreCache=t,this.repositoriesStore=n,this.repositoriesStateCache=r,this.onPruneCompleted=i}async start(){null!==this.timer&&lt(`A background prune task is already active and cannot begin pruning on ${this.repository.name}`),await this.pruneLocalBranches(Ww),this.timer=window.setInterval((()=>this.pruneLocalBranches(Ww)),144e5)}stop(){null!==this.timer&&(clearInterval(this.timer),this.timer=null)}async testPrune(){return this.pruneLocalBranches({enforcePruneThreshold:!1,deleteBranch:!1})}async findBranchesMergedIntoDefaultBranch(e,t){const n=this.gitStoreCache.get(e),r=await n.performFailableOperation((()=>async function(e,t){const n=If(t),{formatArgs:r,parse:i}=cf({sha:"%(objectname)",canonicalRef:"%(refname)"}),s=["branch",...r,"--merged",t],o=new Map,{stdout:a}=await _d(s,e.path,"mergedBranches");for(const e of i(a))e.canonicalRef!==n&&o.set(e.canonicalRef,e.sha);return o}(e,t.name)));if(void 0===r)return new Map;const i=await Of(e,"HEAD");return i&&r.delete(i),r}async pruneLocalBranches(e){if(!$r(this.repository))return;const t=await this.repositoriesStore.getLastPruneDate(this.repository),n=_t(-24,"hours");if(e.enforcePruneThreshold&&null!=t&&n<t){const e=Zw(t-Date.now());return void log.info(`[BranchPruner] Last prune took place ${e} - skipping`)}await this.repositoriesStore.updateLastPruneDate(this.repository,Date.now());const{branchesState:r}=this.repositoriesStateCache.get(this.repository),{defaultBranch:i,allBranches:s}=r;if(null===i)return;const o=await this.findBranchesMergedIntoDefaultBranch(this.repository,i);if(0===o.size)return void log.info("[BranchPruner] No branches to prune.");const a=new Date(_t(-14,"days")),l=await async function(e,t){const n=new RegExp(/^[a-z0-9]{40}\sHEAD@{(.*)}\scheckout: moving from\s.*\sto\s(.*)$/),r=await _d(["reflog","--date=iso",`--after="${t.toISOString()}"`,"--pretty=%H %gd %gs","--grep-reflog=checkout: moving from .* to .*$","--"],e.path,"getCheckoutsAfterDate",{successExitCodes:new Set([0,128])}),i=new Map;if(128===r.exitCode&&Mg.test(r.stderr))return i;const s=r.stdout.split("\n");for(const e of s){const t=n.exec(e);if(null===t||3!==t.length)continue;const[,r,s]=t;i.has(s)||i.set(s,new Date(r))}return i}(this.repository,a),c=new Set([...l.keys()].map(If)),u=(await Dg(this.repository,"refs/remotes/")).map((e=>If(e.name))),h=Array.from(o.keys()).filter((e=>{if($w.includes(e))return!1;if(c.has(e))return!1;const t=function(e,t){const n=t.find((t=>If(t.name)===e));if(void 0===n)return;const{upstream:r}=n;return null!==r?If(r):void 0}(e,s);return void 0!==t&&!u.includes(t)}));log.info(`[BranchPruner] Pruning ${h.length} branches that have been merged into the default branch, ${i.name} (${i.tip.sha}), from '${this.repository.name}`);const p=this.gitStoreCache.get(this.repository),d="refs/heads/";for(const t of h){if(!t.startsWith(d))continue;const n=t.substring(d.length);e.deleteBranch?await p.performFailableOperation((()=>$f(this.repository,n)))&&log.info(`[BranchPruner] Pruned branch ${n} ((was ${o.get(t)}))`):log.info(`[BranchPruner] Branch '${n}' marked for deletion`)}this.onPruneCompleted(this.repository).catch((e=>{log.error("[BranchPruner] Error calling onPruneCompleted",e)}))}}var Vw,Gw,zw;!function(e){e.SuccessfulMerge="SuccessfulMerge",e.MergeConflictsFound="MergeConflictsFound",e.SuccessfulRebase="SuccessfulRebase",e.RebaseConflictsFound="RebaseConflictsFound",e.BranchAlreadyUpToDate="BranchAlreadyUpToDate",e.SuccessfulCherryPick="SuccessfulCherryPick",e.CherryPickConflictsFound="CherryPickConflictsFound",e.CherryPickUndone="CherryPickUndone",e.SquashUndone="SquashUndone",e.ReorderUndone="ReorderUndone",e.OpenThankYouCard="OpenThankYouCard",e.SuccessfulSquash="SuccessfulSquash",e.SuccessfulReorder="SuccessfulReorder",e.ConflictsFound="ConflictsFound",e.OSVersionNoLongerSupported="OSVersionNoLongerSupported",e.AccessibilitySettingsBanner="AccessibilitySettingsBanner"}(Vw||(Vw={})),function(e){e.Loading="loading",e.Clean="clean",e.Conflicts="conflicts",e.Invalid="invalid"}(Gw||(Gw={})),function(e){e.AskForConfirmation="AskForConfirmation",e.StashOnCurrentBranch="StashOnCurrentBranch",e.MoveToNewBranch="MoveToNewBranch"}(zw||(zw={}));const jw=zw.AskForConfirmation;function Kw(e,t,n){return e.kind!==Hr.Valid?null:null!==e.branch.upstreamWithoutRemote&&null!==t&&function(e,t){return null!==t.cloneURL&&kr(t.cloneURL,e)}(t.url,n)?e.branch.upstreamWithoutRemote:e.branch.nameWithoutRemote}var Yw;function Xw(e){return e!==Yw.NotApplicable&&e!==Yw.Paused}!function(e){e.NotApplicable="NotApplicable",e.PickEditor="PickEditor",e.CreateBranch="CreateBranch",e.EditFile="EditFile",e.MakeCommit="MakeCommit",e.PushBranch="PushBranch",e.OpenPullRequest="OpenPullRequest",e.AllDone="AllDone",e.Paused="Paused",e.Announced="Announced"}(Yw||(Yw={}));const Qw=[Yw.PickEditor,Yw.CreateBranch,Yw.EditFile,Yw.MakeCommit,Yw.PushBranch,Yw.OpenPullRequest,Yw.AllDone,Yw.Announced],Jw="tutorial-install-editor-skipped",eb="tutorial-pull-request-step-complete",tb="tutorial-paused";class nb{getResolvedExternalEditor;installEditorSkipped=Ht(Jw,!1);prStepComplete=Ht(eb,!1);tutorialPaused=Ht(tb,!1);tutorialAnnounced=!1;constructor(e){this.getResolvedExternalEditor=e}async getCurrentStep(e,t){return e?this.tutorialPaused?Yw.Paused:await this.isEditorInstalled()?this.isBranchCheckedOut(t)?this.hasChangedFile(t)?this.hasMultipleCommits(t)?this.commitPushed(t)?this.pullRequestCreated(t)?this.tutorialAnnounced?Yw.Announced:Yw.AllDone:Yw.OpenPullRequest:Yw.PushBranch:Yw.MakeCommit:Yw.EditFile:Yw.CreateBranch:Yw.PickEditor:(this.tutorialPaused&&this.resumeTutorial(),Yw.NotApplicable)}async isEditorInstalled(){return this.installEditorSkipped||null!==this.getResolvedExternalEditor()}isBranchCheckedOut(e){const{branchesState:t}=e,{tip:n}=t,r=n.kind===Hr.Valid?n.branch.name:null,i=null!==t.defaultBranch?t.defaultBranch.name:null;return null!==r&&null!==i&&r!==i}hasChangedFile(e){if(this.hasMultipleCommits(e))return!0;const{changesState:t}=e;return t.workingDirectory.files.length>0}hasMultipleCommits(e){const{branchesState:t}=e,{tip:n}=t;if(n.kind===Hr.Valid){const t=e.commitLookup.get(n.branch.tip.sha);return void 0!==t&&t.parentSHAs.some((e=>e.length>0))}return!1}commitPushed(e){const{aheadBehind:t}=e;return null!==t&&0===t.ahead}pullRequestCreated(e){return null!==e.branchesState.currentPullRequest&&this.markPullRequestTutorialStepAsComplete(),this.prStepComplete}skipPickEditor=()=>{this.installEditorSkipped=!0,Ut(Jw,this.installEditorSkipped)};markPullRequestTutorialStepAsComplete=()=>{this.prStepComplete=!0,Ut(eb,this.prStepComplete)};markTutorialCompletionAsAnnounced=()=>{this.tutorialAnnounced=!0};onNewTutorialRepository=()=>{this.installEditorSkipped=!1,localStorage.removeItem(Jw),this.prStepComplete=!1,localStorage.removeItem(eb),this.tutorialPaused=!1,localStorage.removeItem(tb)};pauseTutorial(){this.tutorialPaused=!0,Ut(tb,this.tutorialPaused)}resumeTutorial(){this.tutorialPaused=!1,Ut(tb,this.tutorialPaused)}}function rb(e,t,n){return null==e.upstreamWithoutRemote?null:t.find((t=>ib(e,t,n)))||null}function ib(e,t,n){return t.head.ref===e.upstreamWithoutRemote&&Sr(t.head.gitHubRepository,n)}function sb(e){return e.endpoint===cr()?"GitHub.com":o.parse(e.endpoint).hostname||e.endpoint}const ob="last-clone-location";async function ab(){return localStorage.getItem(ob)||t.join(await async function(){if(!Ct)try{Ct=await ee("documents")}catch(e){Ct=await ee("home")}return Ct}(),"GitHub")}function lb(e){localStorage.setItem(ob,e)}const cb=Math.ceil(3e4*Math.random());class ub{getRepositories;refreshRepositoryIndicators;running=!1;refreshTimeoutId=null;paused=!1;pausePromise=Promise.resolve();resolvePausePromise=null;lastRefreshStartedAt=null;constructor(e,t){this.getRepositories=e,this.refreshRepositoryIndicators=t}start(){this.running||(log.debug("[RepositoryIndicatorUpdater] Starting"),this.running=!0,this.scheduleRefresh())}scheduleRefresh(){if(this.running&&null===this.refreshTimeoutId){const e=null===this.lastRefreshStartedAt?1/0:Date.now()-this.lastRefreshStartedAt,t=Math.max(9e5-e,0)+cb,n=isFinite(e)?`${(e/1e3).toFixed(3)}s前`:"never",r=`${(t/1e3).toFixed(3)}s`;log.debug(`[RepositoryIndicatorUpdater] Last refresh: ${n}, scheduling in ${r}`),this.refreshTimeoutId=window.setTimeout((()=>this.refreshAllRepositories()),t)}}async refreshAllRepositories(){if(this.refreshTimeoutId=null,log.debug("[RepositoryIndicatorUpdater] Running refreshAllRepositories"),this.paused&&(log.debug("[RepositoryIndicatorUpdater] Paused before starting refreshAllRepositories"),await this.pausePromise,!this.running))return;let e;this.lastRefreshStartedAt=Date.now();const t=new Set,n=()=>this.getRepositories().find((e=>!t.has(e.id))),r=Date.now();let i=0;for(;this.running&&void 0!==(e=n());){if(await this.refreshRepositoryIndicators(e),this.paused){log.debug(`[RepositoryIndicatorUpdater] Pausing after ${t.size} repositories`);const e=Date.now();await this.pausePromise,i+=Date.now()-e,log.debug(`[RepositoryIndicatorUpdater] Resuming after ${i/1e3}s`)}t.add(e.id)}if(t.size>=1){const e=Date.now()-r,n=((e-i)/1e3).toFixed(1),s=(i/1e3).toFixed(1),o=(e/1e3).toFixed(1);log.info(`[RepositoryIndicatorUpdater]: Refreshing sidebar indicators for ${t.size} repositories took ${n}s of which ${s}s paused, total ${o}s`)}this.scheduleRefresh()}clearRefreshTimeout(){null!==this.refreshTimeoutId&&(window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null)}stop(){this.running&&(log.debug("[RepositoryIndicatorUpdater] Stopping"),this.running=!1,this.clearRefreshTimeout())}pause(){!1===this.paused&&(this.pausePromise=new Promise((e=>{this.resolvePausePromise=e})),this.paused=!0)}resume(){this.paused&&(null!==this.resolvePausePromise&&(this.resolvePausePromise(),this.resolvePausePromise=null),this.paused=!1)}}function hb(e){const t=e.emails;if(0===t.length)return mb(e.id,e.login,e.endpoint);const n=t.find((e=>e.primary));if(n&&("public"===(r=n).visibility||!r.visibility))return n.email;var r;const i=`@${pb(e.endpoint)}`,s=t.find((e=>e.email.toLowerCase().endsWith(i)));return s?s.email:t[0].email}const pb=e=>In(e)?`users.noreply.${new URL(e).hostname}`:"users.noreply.github.com";function db(e,t){return`${e}@${pb(t)}`}function mb(e,t,n){return`${e}+${t}@${pb(n)}`}const fb=(e,t)=>{const{id:n,login:r,endpoint:i,emails:s}=e,o=t.toLowerCase();return s.some((({email:e})=>e.toLowerCase()===o))||mb(n,r,i).toLowerCase()===o||db(r,i).toLowerCase()===o},gb=/^(?:(\d+)\+)?(.+?)@(users\.noreply\..+)$/i,yb="show-side-by-side-diff";function wb(){return Ht(yb,!1)}function bb(e){return e.kind===Hr.Valid?e.branch.tip.sha:e.kind===Hr.Detached?e.currentSha:"(unknown)"}function vb(e){return"Rebase"===e||"Cherry-pick"===e||"Squash"===e||"Merge"===e||"Reorder"===e}const Cb=["ShowConflicts","ConfirmAbort"];function Sb(e,t){const{defaultBranch:n,allBranches:r,recentBranches:i,tip:s}=e.branchesState;let o=null;if(s.kind!==Hr.Valid)throw new Error("Tip is not in a valid state, which is required to start the multi commit operation");return o=s.branch,{kind:"ChooseBranch",defaultBranch:n,currentBranch:o,allBranches:r,recentBranches:i,initialBranch:null!==t?t:void 0}}function Eb(e){switch(e.state){case"APPROVED":return"approved";case"CHANGES_REQUESTED":return"requested changes on";case"COMMENTED":return"reviewed"}}function kb(e){switch(e){case"APPROVED":return{symbol:Xi,className:"pr-review-approved"};case"CHANGES_REQUESTED":return{symbol:Do,className:"pr-review-changes-requested"};case"COMMENTED":return{symbol:no,className:"pr-review-commented"}}}const Rb=[{shortUnit:"d",longUnit:"day",ms:864e5},{shortUnit:"h",longUnit:"hour",ms:36e5},{shortUnit:"m",longUnit:"minute",ms:6e4},{shortUnit:"s",longUnit:"second",ms:1e3}],Tb=e=>{const t=new Array;e=Math.abs(e);for(const n of Rb)if(t.length>0||e>=n.ms||"s"===n.shortUnit){const r=Math.floor(e/n.ms);e-=r*n.ms,t.push(`${r}${n.shortUnit}`)}return t.join(" ")};function Ab(e){let t,n=null;return"success"===e.state?(t=Yn.Completed,n=Xn.Success):"pending"===e.state?t=Yn.InProgress:(t=Yn.Completed,n=Xn.Failure),{id:e.id,name:e.context,description:Db(t,n),status:t,conclusion:n,appName:"",checkSuiteId:null,htmlUrl:e.target_url}}function xb(e){if(null===e)return"In progress";switch(e){case Xn.ActionRequired:return"Action required";case Xn.Canceled:return"Canceled";case Xn.TimedOut:return"Timed out";case Xn.Failure:return"Failed";case Xn.Neutral:return"Neutral";case Xn.Success:return"Successful";case Xn.Skipped:return"Skipped";case Xn.Stale:return"Marked as stale"}}function Db(e,t,n){if(e!==Yn.Completed||null===t)return"In progress";const r=xb(t);if([Xn.ActionRequired,Xn.Skipped,Xn.Stale].includes(t))return r;const i=t===Xn.Success?"in":"after";return void 0!==n&&n>0?`${r} ${i} ${Tb(n)}`:r}const _b=e=>Date.parse(e.completed_at)-Date.parse(e.started_at);function Mb(e){return{id:e.id,name:e.name,description:Db(e.status,e.conclusion,_b(e)),status:e.status,conclusion:e.conclusion,appName:e.app.name,checkSuiteId:e.check_suite.id,htmlUrl:e.html_url}}function Pb(e){if(0===e.length)return null;if(1===e.length){const{status:t,conclusion:n}=e[0];return{status:t,conclusion:n,checks:e}}return e.some(Ib)?{status:Yn.Completed,conclusion:Xn.Failure,checks:e}:e.every(Nb)?{status:Yn.Completed,conclusion:Xn.Success,checks:e}:{status:Yn.InProgress,conclusion:null,checks:e}}function Ib(e){return function(e){if("completed"===e.status)switch(e.conclusion){case"timed_out":case"stale":case"cancelled":return!0}return!1}(e)||Ob(e)}function Ob(e){if("completed"===e.status)switch(e.conclusion){case"failure":case"action_required":return!0}return!1}function Nb(e){if("completed"===e.status)switch(e.conclusion){case"success":case"neutral":case"skipped":return!0}return!1}function Lb(e){const t=new Map;for(const n of e){const e=n.id+(n.pull_requests.length>0?"isPullRequestCheckRun":"isPushCheckRun"),r=t.get(e);(void 0===r||r.check_suite.id<n.check_suite.id)&&t.set(e,n)}return[...t.values()]}async function Bb(e,t,n,r){const i=new Map,s=new Array;for(const o of r){if(void 0===o.actionsWorkflow){s.push(o);continue}const{id:r}=o.actionsWorkflow,a=i.get(r)??await e.fetchWorkflowRunJobs(t,n,r);i.set(r,a);const l=a?.jobs.find((e=>e.id===o.id));void 0!==l?s.push({...o,htmlUrl:l.html_url,actionJobSteps:l.steps}):s.push(o)}return s}async function Fb(e,t,n,r,i){const s=ir.fromAccount(e);return Un(e.endpoint)?async function(e,t,n,r){if(0===r.length)return r;const i=new Array,s=new Map;for(const o of r){if(null===o.checkSuiteId){i.push(o);continue}const r=s.get(o.checkSuiteId),a=void 0===r?await e.fetchPRActionWorkflowRunByCheckSuiteId(t,n,o.checkSuiteId):r;s.set(o.checkSuiteId,a),null!==a?i.push({...o,actionsWorkflow:a}):i.push(o)}return i}(s,t,n,i):async function(e,t,n,r,i){const s=await async function(e,t,n,r){const i=new Map,s=await e.fetchPRWorkflowRunsByBranchName(t,n,r);if(null===s)return[];for(const e of s.workflow_runs){const t=i.get(e.workflow_id);if(void 0===t){i.set(e.workflow_id,e);continue}const n=new Date(t.created_at),r=new Date(e.created_at);n.getTime()<r.getTime()&&i.set(e.workflow_id,e)}return Array.from(i.values())}(e,t,n,r);return 0===s.length?i:function(e,t){if(0===t.length||0===e.length)return e;const n=new Array;for(const r of e){const e=t.find((e=>e.check_suite_id===r.checkSuiteId));void 0!==e?n.push({...r,actionsWorkflow:e}):n.push(r)}return n}(i,s)}(s,t,n,r,i)}function Hb(e){const t=_b(e);return isNaN(t)?"":(e=>{const t=new Array;e=Math.abs(e);for(const n of Rb)if(t.length>0||e>=n.ms||"s"===n.shortUnit){const r=Math.floor(e/n.ms);e-=r*n.ms,t.push(`${r} ${n.longUnit}${1===r?"":"s"}`)}return t.join(" ")})(t)}function Ub(e,t,n,r){return null===e.htmlUrl&&null===n.htmlURL?null:null!==e.htmlUrl?`${e.htmlUrl}/#step:${t.number}:1`:`${n.htmlURL}/pull/${r}`}function Zb(e){const t=new Set(e.map((e=>e.actionsWorkflow?.event)).filter((e=>void 0!==e&&""!==e.trim()))),n=t.size>1,r=new Map;for(const t of e){let e=t.actionsWorkflow?.name||"Other";n&&void 0!==t.actionsWorkflow&&""!==t.actionsWorkflow.event.trim()&&(e=`${e} (${t.actionsWorkflow.event})`),"Other"===e&&"GitHub Code Scanning"===t.appName&&(e="Code scanning results");const i=r.get(e),s=void 0!==i?[...i,t]:[t];r.set(e,s)}return $b(r).forEach((e=>{const t=r.get(e);if(void 0!==t){const n=t.sort(((e,t)=>e.name.localeCompare(t.name)));r.set(e,n)}})),r}function $b(e){const t=[...e.keys()];return t.sort(((e,t)=>"Other"===e&&"Other"!==t?1:"Other"!==e&&"Other"===t?-1:"Other"===e&&"Other"===t?0:e.localeCompare(t))),t}const Wb=[Xn.Failure,Xn.Canceled,Xn.ActionRequired,Xn.TimedOut];var qb=n(9379);const Vb=new(Tt())({maxSize:200});async function Gb(e){if(!(0,qb.VB)())return void(new Notification(e.title,{body:e.body}).onclick=()=>{I(),e.onClick()});const t=await be(e.title,e.body,e.userInfo);null!==t&&Vb.set(t,e.onClick)}function zb(e,t){if(e.length<=t)return e;const n=[...e];if(n.length<=t)return e;const r=n.reduce(((e,t)=>(t>=""&&t<=""?e.length&&e.push(`${e.pop()}${t}`):e.push(t),e)),[]);return r.length<=t?e:`${r.slice(0,t).join("")}…`}function jb(e){return"APPROVED"===e.state||"CHANGES_REQUESTED"===e.state||"COMMENTED"===e.state}const Kb="high-signal-notifications-enabled";function Yb(){return Ht(Kb,!0)}const Xb=/^(merged|added in remote|removed in remote|changed in both|removed in local|added in both)$/,Qb=/^\+[<>=]{7}$/;async function Jb(e,t,n){const r=await wf(e,t.tip.sha,n.tip.sha);if(null===r)return{kind:Gw.Invalid};if(r===t.tip.sha||r===n.tip.sha)return{kind:Gw.Clean};const i=await Lm(["merge-tree",r,t.tip.sha,n.tip.sha],e.path,"mergeTree");return await new Promise(((e,t)=>{const n=null!==i.stdout?(r=i.stdout,new Promise((e=>{let t=!1,n=0;r.pipe(ig()()).on("data",(e=>{Xb.test(e)?t&&(n++,t=!1):Qb.test(e)&&(t=!0)})).on("end",(()=>{t&&n++,e(n>0?{kind:Gw.Conflicts,conflictedFiles:n}:{kind:Gw.Clean})}))}))):Promise.reject(new Error("Failed reading merge-tree output"));var r;i.on("error",(e=>t(jp(e)?new Error(`merge-tree failed: ${e.code}`):e))),i.on("exit",(r=>{0!==r?t(new Error(`merge-tree exited with code '${r}'`)):n.then(e,t)}))}))}class ev{popupLimit;popupStack=[];constructor(e=50){this.popupLimit=e}get currentPopup(){return this.popupStack.at(-1)??null}get allPopups(){return this.popupStack}get isAPopupOpen(){return null!==this.currentPopup}getPopupsOfType(e){return this.popupStack.filter((t=>t.type===e))}areTherePopupsOfType(e){return this.popupStack.some((t=>t.type===e))}addPopup(e){if(e.type===dh.Error)return this.addErrorPopup(e.error);const t=this.getPopupsOfType(e.type),n={id:kn(),...e};return t.length>0?(log.warn(`Attempted to add a popup of already existing type - ${e.type}.`),e):(this.insertBeforeErrorPopups(n),this.checkStackLength(),n)}insertBeforeErrorPopups(e){if(this.popupStack.at(-1)?.type!==dh.Error)return void(this.popupStack=this.popupStack.concat(e));const t=this.getPopupsOfType(dh.Error),n=this.popupStack.filter((e=>e.type!==dh.Error));this.popupStack=[...n,e,...t]}addErrorPopup(e){const t={id:kn(),type:dh.Error,error:e};return this.popupStack=this.popupStack.concat(t),this.checkStackLength(),t}checkStackLength(){if(this.popupStack.length>this.popupLimit){const e=this.popupStack[0],t=e.type===dh.Error?`: ${e.error.message}`:null,n=this.currentPopup?.type===dh.Error?`Just added another Error: ${this.currentPopup.error.message}.`:null;FT("TooManyPopups",new Error(`Max number of ${this.popupLimit} popups reached while adding popup of type ${this.currentPopup?.type}.\n Removing last popup from the stack. Type ${e.type}${t}.\n ${n}`)),this.popupStack=this.popupStack.slice(1)}}updatePopup(e){if(void 0===e.id)return void log.warn("Attempted to update a popup without an id.");const t=this.popupStack.findIndex((t=>t.id===e.id));t<0?log.warn("Attempted to update a popup not in the stack."):this.popupStack=[...this.popupStack.slice(0,t),e,...this.popupStack.slice(t+1)]}removePopup(e){void 0!==e.id?this.popupStack=this.popupStack.filter((t=>t.id!==e.id)):log.warn("Attempted to remove a popup without an id.")}removePopupByType(e){this.popupStack=this.popupStack.filter((t=>t.type!==e))}removePopupById(e){this.popupStack=this.popupStack.filter((t=>t.id!==e))}}var tv;!function(e){e.Increase="Increase",e.Decrease="Decrease"}(tv||(tv={}));class nv extends Ae.Component{resizeContainer=null;startWidth=null;startX=null;getCurrentWidth(){return this.clampWidth(this.props.width)}clampWidth(e){const{minimumWidth:t,maximumWidth:n}=this.props;return ry(e,t??200,n??350)}handleDragStart=e=>{this.startX=e.clientX,this.startWidth=this.getCurrentWidth(),document.addEventListener("mousemove",this.handleDragMove),document.addEventListener("mouseup",this.handleDragStop),e.preventDefault()};handleDragMove=e=>{if(null===this.startWidth||null===this.startX)return;const t=e.clientX-this.startX,n=this.startWidth+t;this.props.onResize(this.clampWidth(n)),e.preventDefault()};unsubscribeFromGlobalEvents(){document.removeEventListener("mousemove",this.handleDragMove),document.removeEventListener("mouseup",this.handleDragStop)}handleDragStop=e=>{this.unsubscribeFromGlobalEvents(),e.preventDefault()};handleMenuResizeEventIncrease=e=>{this.handleMenuResizeEvent(tv.Increase),e?.preventDefault()};handleMenuResizeEventDecrease=e=>{this.handleMenuResizeEvent(tv.Decrease),e?.preventDefault()};handleMenuResizeEvent(e){const{width:t}=this.props,n=e===tv.Decrease?t-5:t+5,r=this.clampWidth(n);this.props.onResize(this.clampWidth(r))}onResizableRef=e=>{null===e?(this.resizeContainer?.removeEventListener("increase-active-resizable-width",this.handleMenuResizeEventIncrease),this.resizeContainer?.removeEventListener("decrease-active-resizable-width",this.handleMenuResizeEventDecrease)):(e.addEventListener("increase-active-resizable-width",this.handleMenuResizeEventIncrease),e.addEventListener("decrease-active-resizable-width",this.handleMenuResizeEventDecrease)),this.resizeContainer=e};render(){const e={width:this.getCurrentWidth(),maxWidth:this.props.maximumWidth,minWidth:this.props.minimumWidth};return Ae.createElement("div",{id:this.props.id,className:"resizable-component",style:e,ref:this.onResizableRef},this.props.children,Ae.createElement("div",{onMouseDown:this.handleDragStart,onDoubleClick:this.props.onReset,className:"resize-handle"}))}}class rv{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static MATCH_NL=rv.CLASS_NL|rv.DOT_NL;static PERL=rv.CLASS_NL|rv.ONE_LINE|rv.PERL_X|rv.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2}class iv{static CODES=new Map([["",7],["\b",8],["\t",9],["\n",10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]);static toUpperCase(e){const t=String.fromCodePoint(e).toUpperCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toLowerCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}static toLowerCase(e){const t=String.fromCodePoint(e).toLowerCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toUpperCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}}class sv{static CASE_ORBIT=new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[8179,8188],[8188,8179],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67e3],[67e3,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[93771,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]]);static C=[[0,31,1],[127,159,1],[173,888,715],[889,896,7],[897,899,1],[907,909,2],[930,1328,398],[1367,1368,1],[1419,1420,1],[1424,1480,56],[1481,1487,1],[1515,1518,1],[1525,1541,1],[1564,1757,193],[1806,1807,1],[1867,1868,1],[1970,1983,1],[2043,2044,1],[2094,2095,1],[2111,2140,29],[2141,2143,2],[2155,2159,1],[2191,2199,1],[2274,2436,162],[2445,2446,1],[2449,2450,1],[2473,2481,8],[2483,2485,1],[2490,2491,1],[2501,2502,1],[2505,2506,1],[2511,2518,1],[2520,2523,1],[2526,2532,6],[2533,2559,26],[2560,2564,4],[2571,2574,1],[2577,2578,1],[2601,2609,8],[2612,2618,3],[2619,2621,2],[2627,2630,1],[2633,2634,1],[2638,2640,1],[2642,2648,1],[2653,2655,2],[2656,2661,1],[2679,2688,1],[2692,2702,10],[2706,2729,23],[2737,2740,3],[2746,2747,1],[2758,2766,4],[2767,2769,2],[2770,2783,1],[2788,2789,1],[2802,2808,1],[2816,2820,4],[2829,2830,1],[2833,2834,1],[2857,2865,8],[2868,2874,6],[2875,2885,10],[2886,2889,3],[2890,2894,4],[2895,2900,1],[2904,2907,1],[2910,2916,6],[2917,2936,19],[2937,2945,1],[2948,2955,7],[2956,2957,1],[2961,2966,5],[2967,2968,1],[2971,2973,2],[2976,2978,1],[2981,2983,1],[2987,2989,1],[3002,3005,1],[3011,3013,1],[3017,3022,5],[3023,3025,2],[3026,3030,1],[3032,3045,1],[3067,3071,1],[3085,3089,4],[3113,3130,17],[3131,3141,10],[3145,3150,5],[3151,3156,1],[3159,3163,4],[3164,3166,2],[3167,3172,5],[3173,3184,11],[3185,3190,1],[3213,3217,4],[3241,3252,11],[3258,3259,1],[3269,3273,4],[3278,3284,1],[3287,3292,1],[3295,3300,5],[3301,3312,11],[3316,3327,1],[3341,3345,4],[3397,3401,4],[3408,3411,1],[3428,3429,1],[3456,3460,4],[3479,3481,1],[3506,3516,10],[3518,3519,1],[3527,3529,1],[3531,3534,1],[3541,3543,2],[3552,3557,1],[3568,3569,1],[3573,3584,1],[3643,3646,1],[3676,3712,1],[3715,3717,2],[3723,3748,25],[3750,3774,24],[3775,3781,6],[3783,3791,8],[3802,3803,1],[3808,3839,1],[3912,3949,37],[3950,3952,1],[3992,4029,37],[4045,4059,14],[4060,4095,1],[4294,4296,2],[4297,4300,1],[4302,4303,1],[4681,4686,5],[4687,4695,8],[4697,4702,5],[4703,4745,42],[4750,4751,1],[4785,4790,5],[4791,4799,8],[4801,4806,5],[4807,4823,16],[4881,4886,5],[4887,4955,68],[4956,4989,33],[4990,4991,1],[5018,5023,1],[5110,5111,1],[5118,5119,1],[5789,5791,1],[5881,5887,1],[5910,5918,1],[5943,5951,1],[5972,5983,1],[5997,6001,4],[6004,6015,1],[6110,6111,1],[6122,6127,1],[6138,6143,1],[6158,6170,12],[6171,6175,1],[6265,6271,1],[6315,6319,1],[6390,6399,1],[6431,6444,13],[6445,6447,1],[6460,6463,1],[6465,6467,1],[6510,6511,1],[6517,6527,1],[6572,6575,1],[6602,6607,1],[6619,6621,1],[6684,6685,1],[6751,6781,30],[6782,6794,12],[6795,6799,1],[6810,6815,1],[6830,6831,1],[6863,6911,1],[6989,6991,1],[7039,7156,117],[7157,7163,1],[7224,7226,1],[7242,7244,1],[7305,7311,1],[7355,7356,1],[7368,7375,1],[7419,7423,1],[7958,7959,1],[7966,7967,1],[8006,8007,1],[8014,8015,1],[8024,8030,2],[8062,8063,1],[8117,8133,16],[8148,8149,1],[8156,8176,20],[8177,8181,4],[8191,8203,12],[8204,8207,1],[8234,8238,1],[8288,8303,1],[8306,8307,1],[8335,8349,14],[8350,8351,1],[8385,8399,1],[8433,8447,1],[8588,8591,1],[9255,9279,1],[9291,9311,1],[11124,11125,1],[11158,11508,350],[11509,11512,1],[11558,11560,2],[11561,11564,1],[11566,11567,1],[11624,11630,1],[11633,11646,1],[11671,11679,1],[11687,11743,8],[11870,11903,1],[11930,12020,90],[12021,12031,1],[12246,12271,1],[12352,12439,87],[12440,12544,104],[12545,12548,1],[12592,12687,95],[12772,12782,1],[12831,42125,29294],[42126,42127,1],[42183,42191,1],[42540,42559,1],[42744,42751,1],[42955,42959,1],[42962,42964,2],[42970,42993,1],[43053,43055,1],[43066,43071,1],[43128,43135,1],[43206,43213,1],[43226,43231,1],[43348,43358,1],[43389,43391,1],[43470,43482,12],[43483,43485,1],[43519,43575,56],[43576,43583,1],[43598,43599,1],[43610,43611,1],[43715,43738,1],[43767,43776,1],[43783,43784,1],[43791,43792,1],[43799,43807,1],[43815,43823,8],[43884,43887,1],[44014,44015,1],[44026,44031,1],[55204,55215,1],[55239,55242,1],[55292,63743,1],[64110,64111,1],[64218,64255,1],[64263,64274,1],[64280,64284,1],[64311,64317,6],[64319,64325,3],[64451,64466,1],[64912,64913,1],[64968,64974,1],[64976,65007,1],[65050,65055,1],[65107,65127,20],[65132,65135,1],[65141,65277,136],[65278,65280,1],[65471,65473,1],[65480,65481,1],[65488,65489,1],[65496,65497,1],[65501,65503,1],[65511,65519,8],[65520,65531,1],[65534,65535,1],[65548,65575,27],[65595,65598,3],[65614,65615,1],[65630,65663,1],[65787,65791,1],[65795,65798,1],[65844,65846,1],[65935,65949,14],[65950,65951,1],[65953,65999,1],[66046,66175,1],[66205,66207,1],[66257,66271,1],[66300,66303,1],[66340,66348,1],[66379,66383,1],[66427,66431,1],[66462,66500,38],[66501,66503,1],[66518,66559,1],[66718,66719,1],[66730,66735,1],[66772,66775,1],[66812,66815,1],[66856,66863,1],[66916,66926,1],[66939,66955,16],[66963,66966,3],[66978,66994,16],[67002,67005,3],[67006,67071,1],[67383,67391,1],[67414,67423,1],[67432,67455,1],[67462,67505,43],[67515,67583,1],[67590,67591,1],[67593,67638,45],[67641,67643,1],[67645,67646,1],[67670,67743,73],[67744,67750,1],[67760,67807,1],[67827,67830,3],[67831,67834,1],[67868,67870,1],[67898,67902,1],[67904,67967,1],[68024,68027,1],[68048,68049,1],[68100,68103,3],[68104,68107,1],[68116,68120,4],[68150,68151,1],[68155,68158,1],[68169,68175,1],[68185,68191,1],[68256,68287,1],[68327,68330,1],[68343,68351,1],[68406,68408,1],[68438,68439,1],[68467,68471,1],[68498,68504,1],[68509,68520,1],[68528,68607,1],[68681,68735,1],[68787,68799,1],[68851,68857,1],[68904,68911,1],[68922,69215,1],[69247,69290,43],[69294,69295,1],[69298,69372,1],[69416,69423,1],[69466,69487,1],[69514,69551,1],[69580,69599,1],[69623,69631,1],[69710,69713,1],[69750,69758,1],[69821,69827,6],[69828,69839,1],[69865,69871,1],[69882,69887,1],[69941,69960,19],[69961,69967,1],[70007,70015,1],[70112,70133,21],[70134,70143,1],[70162,70210,48],[70211,70271,1],[70279,70281,2],[70286,70302,16],[70314,70319,1],[70379,70383,1],[70394,70399,1],[70404,70413,9],[70414,70417,3],[70418,70441,23],[70449,70452,3],[70458,70469,11],[70470,70473,3],[70474,70478,4],[70479,70481,2],[70482,70486,1],[70488,70492,1],[70500,70501,1],[70509,70511,1],[70517,70655,1],[70748,70754,6],[70755,70783,1],[70856,70863,1],[70874,71039,1],[71094,71095,1],[71134,71167,1],[71237,71247,1],[71258,71263,1],[71277,71295,1],[71354,71359,1],[71370,71423,1],[71451,71452,1],[71468,71471,1],[71495,71679,1],[71740,71839,1],[71923,71934,1],[71943,71944,1],[71946,71947,1],[71956,71959,3],[71990,71993,3],[71994,72007,13],[72008,72015,1],[72026,72095,1],[72104,72105,1],[72152,72153,1],[72165,72191,1],[72264,72271,1],[72355,72367,1],[72441,72447,1],[72458,72703,1],[72713,72759,46],[72774,72783,1],[72813,72815,1],[72848,72849,1],[72872,72887,15],[72888,72959,1],[72967,72970,3],[73015,73017,1],[73019,73022,3],[73032,73039,1],[73050,73055,1],[73062,73065,3],[73103,73106,3],[73113,73119,1],[73130,73439,1],[73465,73471,1],[73489,73531,42],[73532,73533,1],[73562,73647,1],[73649,73663,1],[73714,73726,1],[74650,74751,1],[74863,74869,6],[74870,74879,1],[75076,77711,1],[77811,77823,1],[78896,78911,1],[78934,82943,1],[83527,92159,1],[92729,92735,1],[92767,92778,11],[92779,92781,1],[92863,92874,11],[92875,92879,1],[92910,92911,1],[92918,92927,1],[92998,93007,1],[93018,93026,8],[93048,93052,1],[93072,93759,1],[93851,93951,1],[94027,94030,1],[94088,94094,1],[94112,94175,1],[94181,94191,1],[94194,94207,1],[100344,100351,1],[101590,101631,1],[101641,110575,1],[110580,110588,8],[110591,110883,292],[110884,110897,1],[110899,110927,1],[110931,110932,1],[110934,110947,1],[110952,110959,1],[111356,113663,1],[113771,113775,1],[113789,113791,1],[113801,113807,1],[113818,113819,1],[113824,118527,1],[118574,118575,1],[118599,118607,1],[118724,118783,1],[119030,119039,1],[119079,119080,1],[119155,119162,1],[119275,119295,1],[119366,119487,1],[119508,119519,1],[119540,119551,1],[119639,119647,1],[119673,119807,1],[119893,119965,72],[119968,119969,1],[119971,119972,1],[119975,119976,1],[119981,119994,13],[119996,120004,8],[120070,120075,5],[120076,120085,9],[120093,120122,29],[120127,120133,6],[120135,120137,1],[120145,120486,341],[120487,120780,293],[120781,121484,703],[121485,121498,1],[121504,121520,16],[121521,122623,1],[122655,122660,1],[122667,122879,1],[122887,122905,18],[122906,122914,8],[122917,122923,6],[122924,122927,1],[122990,123022,1],[123024,123135,1],[123181,123183,1],[123198,123199,1],[123210,123213,1],[123216,123535,1],[123567,123583,1],[123642,123646,1],[123648,124111,1],[124154,124895,1],[124903,124908,5],[124911,124927,16],[125125,125126,1],[125143,125183,1],[125260,125263,1],[125274,125277,1],[125280,126064,1],[126133,126208,1],[126270,126463,1],[126468,126496,28],[126499,126501,2],[126502,126504,2],[126515,126520,5],[126522,126524,2],[126525,126529,1],[126531,126534,1],[126536,126540,2],[126544,126547,3],[126549,126550,1],[126552,126560,2],[126563,126565,2],[126566,126571,5],[126579,126589,5],[126591,126602,11],[126620,126624,1],[126628,126634,6],[126652,126703,1],[126706,126975,1],[127020,127023,1],[127124,127135,1],[127151,127152,1],[127168,127184,16],[127222,127231,1],[127406,127461,1],[127491,127503,1],[127548,127551,1],[127561,127567,1],[127570,127583,1],[127590,127743,1],[128728,128731,1],[128749,128751,1],[128765,128767,1],[128887,128890,1],[128986,128991,1],[129004,129007,1],[129009,129023,1],[129036,129039,1],[129096,129103,1],[129114,129119,1],[129160,129167,1],[129198,129199,1],[129202,129279,1],[129620,129631,1],[129646,129647,1],[129661,129663,1],[129673,129679,1],[129726,129734,8],[129735,129741,1],[129756,129759,1],[129769,129775,1],[129785,129791,1],[129939,129995,56],[129996,130031,1],[130042,131071,1],[173792,173823,1],[177978,177983,1],[178206,178207,1],[183970,183983,1],[191457,194559,1],[195102,196607,1],[201547,201551,1],[205744,917759,1],[918e3,1114111,1]];static Cc=[[0,31,1],[127,159,1]];static Cf=[[173,1536,1363],[1537,1541,1],[1564,1757,193],[1807,2192,385],[2193,2274,81],[6158,8203,2045],[8204,8207,1],[8234,8238,1],[8288,8292,1],[8294,8303,1],[65279,65529,250],[65530,65531,1],[69821,69837,16],[78896,78911,1],[113824,113827,1],[119155,119162,1],[917505,917536,31],[917537,917631,1]];static Co=[[57344,63743,1],[983040,1048573,1],[1048576,1114109,1]];static Cs=[[55296,57343,1]];static L=[[65,90,1],[97,122,1],[170,181,11],[186,192,6],[193,214,1],[216,246,1],[248,705,1],[710,721,1],[736,740,1],[748,750,2],[880,884,1],[886,887,1],[890,893,1],[895,902,7],[904,906,1],[908,910,2],[911,929,1],[931,1013,1],[1015,1153,1],[1162,1327,1],[1329,1366,1],[1369,1376,7],[1377,1416,1],[1488,1514,1],[1519,1522,1],[1568,1610,1],[1646,1647,1],[1649,1747,1],[1749,1765,16],[1766,1774,8],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2036,2037,1],[2042,2048,6],[2049,2069,1],[2074,2084,10],[2088,2112,24],[2113,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2249,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2417,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3654,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3782,3804,22],[3805,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4256,18],[4257,4293,1],[4295,4301,6],[4304,4346,1],[4348,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5024,5109,1],[5112,5117,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6103,6108,5],[6176,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6823,6917,94],[6918,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7293,1],[7296,7304,1],[7312,7354,1],[7357,7359,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,7424,6],[7425,7615,1],[7680,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8124,1],[8126,8130,4],[8131,8132,1],[8134,8140,1],[8144,8147,1],[8150,8155,1],[8160,8172,1],[8178,8180,1],[8182,8188,1],[8305,8319,14],[8336,8348,1],[8450,8455,5],[8458,8467,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8495,8505,1],[8508,8511,1],[8517,8521,1],[8526,8579,53],[8580,11264,2684],[11265,11492,1],[11499,11502,1],[11506,11507,1],[11520,11557,1],[11559,11565,6],[11568,11623,1],[11631,11648,17],[11649,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[11823,12293,470],[12294,12337,43],[12338,12341,1],[12347,12348,1],[12353,12438,1],[12445,12447,1],[12449,12538,1],[12540,12543,1],[12549,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,42124,1],[42192,42237,1],[42240,42508,1],[42512,42527,1],[42538,42539,1],[42560,42606,1],[42623,42653,1],[42656,42725,1],[42775,42783,1],[42786,42888,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43471,43488,17],[43489,43492,1],[43494,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43741,1],[43744,43754,1],[43762,43764,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43824,43866,1],[43868,43881,1],[43888,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64256,64262,1],[64275,64279,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65313,65338,1],[65345,65370,1],[65382,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66560,66717,1],[66736,66771,1],[66776,66811,1],[66816,66855,1],[66864,66915,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68736,68786,1],[68800,68850,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71840,71903,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[92992,92995,1],[93027,93047,1],[93053,93071,1],[93760,93823,1],[93952,94026,1],[94032,94099,67],[94100,94111,1],[94176,94177,1],[94179,94208,29],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120512,1],[120514,120538,1],[120540,120570,1],[120572,120596,1],[120598,120628,1],[120630,120654,1],[120656,120686,1],[120688,120712,1],[120714,120744,1],[120746,120770,1],[120772,120779,1],[122624,122654,1],[122661,122666,1],[122928,122989,1],[123136,123180,1],[123191,123197,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124139,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[125184,125251,1],[125259,126464,1205],[126465,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static foldL=[[837,837,1]];static Ll=[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,311,2],[312,328,2],[329,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[397,402,5],[405,409,4],[410,411,1],[414,417,3],[419,421,2],[424,426,2],[427,429,2],[432,436,4],[438,441,3],[442,445,3],[446,447,1],[454,460,3],[462,476,2],[477,495,2],[496,499,3],[501,505,4],[507,563,2],[564,569,1],[572,575,3],[576,578,2],[583,591,2],[592,659,1],[661,687,1],[881,883,2],[887,891,4],[892,893,1],[912,940,28],[941,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1020,1072,52],[1073,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1376,1416,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7424,7467,1],[7531,7543,1],[7545,7578,1],[7681,7829,2],[7830,7837,1],[7839,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8016,8023,1],[8032,8039,1],[8048,8061,1],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8112,8116,1],[8118,8119,1],[8126,8130,4],[8131,8132,1],[8134,8135,1],[8144,8147,1],[8150,8151,1],[8160,8167,1],[8178,8180,1],[8182,8183,1],[8458,8462,4],[8463,8467,4],[8495,8505,5],[8508,8509,1],[8518,8521,1],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11377,11379,2],[11380,11382,2],[11383,11387,1],[11393,11491,2],[11492,11500,8],[11502,11507,5],[11520,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42800,42801,1],[42803,42865,2],[42866,42872,1],[42874,42876,2],[42879,42887,2],[42892,42894,2],[42897,42899,2],[42900,42901,1],[42903,42921,2],[42927,42933,6],[42935,42947,2],[42952,42954,2],[42961,42969,2],[42998,43002,4],[43824,43866,1],[43872,43880,1],[43888,43967,1],[64256,64262,1],[64275,64279,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[119834,119859,1],[119886,119892,1],[119894,119911,1],[119938,119963,1],[119990,119993,1],[119995,119997,2],[119998,120003,1],[120005,120015,1],[120042,120067,1],[120094,120119,1],[120146,120171,1],[120198,120223,1],[120250,120275,1],[120302,120327,1],[120354,120379,1],[120406,120431,1],[120458,120485,1],[120514,120538,1],[120540,120545,1],[120572,120596,1],[120598,120603,1],[120630,120654,1],[120656,120661,1],[120688,120712,1],[120714,120719,1],[120746,120770,1],[120772,120777,1],[120779,122624,1845],[122625,122633,1],[122635,122654,1],[122661,122666,1],[125218,125251,1]];static foldLl=[[65,90,1],[192,214,1],[216,222,1],[256,302,2],[306,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,453,1],[455,456,1],[458,459,1],[461,475,2],[478,494,2],[497,498,1],[500,502,2],[503,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[837,880,43],[882,886,4],[895,902,7],[904,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,984,9],[986,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8072,8079,1],[8088,8095,1],[8104,8111,1],[8120,8124,1],[8136,8140,1],[8152,8155,1],[8168,8172,1],[8184,8188,1],[8486,8490,4],[8491,8498,7],[8579,11264,2685],[11265,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[125184,125217,1]];static Lm=[[688,705,1],[710,721,1],[736,740,1],[748,750,2],[884,890,6],[1369,1600,231],[1765,1766,1],[2036,2037,1],[2042,2074,32],[2084,2088,4],[2249,2417,168],[3654,3782,128],[4348,6103,1755],[6211,6823,612],[7288,7293,1],[7468,7530,1],[7544,7579,35],[7580,7615,1],[8305,8319,14],[8336,8348,1],[11388,11389,1],[11631,11823,192],[12293,12337,44],[12338,12341,1],[12347,12445,98],[12446,12540,94],[12541,12542,1],[40981,42232,1251],[42233,42237,1],[42508,42623,115],[42652,42653,1],[42775,42783,1],[42864,42888,24],[42994,42996,1],[43e3,43001,1],[43471,43494,23],[43632,43741,109],[43763,43764,1],[43868,43871,1],[43881,65392,21511],[65438,65439,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[92992,92995,1],[94099,94111,1],[94176,94177,1],[94179,110576,16397],[110577,110579,1],[110581,110587,1],[110589,110590,1],[122928,122989,1],[123191,123197,1],[124139,125259,1120]];static Lo=[[170,186,16],[443,448,5],[449,451,1],[660,1488,828],[1489,1514,1],[1519,1522,1],[1568,1599,1],[1601,1610,1],[1646,1647,1],[1649,1747,1],[1749,1774,25],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2048,2069,1],[2112,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2248,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2418,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3653,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3804,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4352,114],[4353,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6108,6176,68],[6177,6210,1],[6212,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6917,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7287,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,8501,1083],[8502,8504,1],[11568,11623,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[12294,12348,54],[12353,12438,1],[12447,12449,2],[12450,12538,1],[12543,12549,6],[12550,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,40980,1],[40982,42124,1],[42192,42231,1],[42240,42507,1],[42512,42527,1],[42538,42539,1],[42606,42656,50],[42657,42725,1],[42895,42999,104],[43003,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43488,43492,1],[43495,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43631,1],[43633,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43740,1],[43744,43754,1],[43762,43777,15],[43778,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43968,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65382,65391,1],[65393,65437,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66640,66717,1],[66816,66855,1],[66864,66915,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[93027,93047,1],[93053,93071,1],[93952,94026,1],[94032,94208,176],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[122634,123136,502],[123137,123180,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124138,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static Lt=[[453,459,3],[498,8072,7574],[8073,8079,1],[8088,8095,1],[8104,8111,1],[8124,8140,16],[8188,8188,1]];static foldLt=[[452,454,2],[455,457,2],[458,460,2],[497,499,2],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8115,8131,16],[8179,8179,1]];static Lu=[[65,90,1],[192,214,1],[216,222,1],[256,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,461,3],[463,475,2],[478,494,2],[497,500,3],[502,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[880,882,2],[886,895,9],[902,904,2],[905,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,978,3],[979,980,1],[984,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8120,8123,1],[8136,8139,1],[8152,8155,1],[8168,8172,1],[8184,8187,1],[8450,8455,5],[8459,8461,1],[8464,8466,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8496,8499,1],[8510,8511,1],[8517,8579,62],[11264,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[119808,119833,1],[119860,119885,1],[119912,119937,1],[119964,119966,2],[119967,119973,3],[119974,119977,3],[119978,119980,1],[119982,119989,1],[120016,120041,1],[120068,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120120,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120172,120197,1],[120224,120249,1],[120276,120301,1],[120328,120353,1],[120380,120405,1],[120432,120457,1],[120488,120512,1],[120546,120570,1],[120604,120628,1],[120662,120686,1],[120720,120744,1],[120778,125184,4406],[125185,125217,1]];static Upper=this.Lu;static foldLu=[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,303,2],[307,311,2],[314,328,2],[331,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[402,405,3],[409,410,1],[414,417,3],[419,421,2],[424,429,5],[432,436,4],[438,441,3],[445,447,2],[453,454,1],[456,457,1],[459,460,1],[462,476,2],[477,495,2],[498,499,1],[501,505,4],[507,543,2],[547,563,2],[572,575,3],[576,578,2],[583,591,2],[592,596,1],[598,599,1],[601,603,2],[604,608,4],[609,613,2],[614,616,2],[617,620,1],[623,625,2],[626,629,3],[637,640,3],[642,643,1],[647,652,1],[658,669,11],[670,837,167],[881,883,2],[887,891,4],[892,893,1],[940,943,1],[945,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1072,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1377,1414,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7545,7549,4],[7566,7681,115],[7683,7829,2],[7835,7841,6],[7843,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8017,8023,2],[8032,8039,1],[8048,8061,1],[8112,8113,1],[8126,8144,18],[8145,8160,15],[8161,8165,4],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11379,11382,3],[11393,11491,2],[11500,11502,2],[11507,11520,13],[11521,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42803,42863,2],[42874,42876,2],[42879,42887,2],[42892,42897,5],[42899,42900,1],[42903,42921,2],[42933,42947,2],[42952,42954,2],[42961,42967,6],[42969,42998,29],[43859,43888,29],[43889,43967,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[125218,125251,1]];static M=[[768,879,1],[1155,1161,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2307,1],[2362,2364,1],[2366,2383,1],[2385,2391,1],[2402,2403,1],[2433,2435,1],[2492,2494,2],[2495,2500,1],[2503,2504,1],[2507,2509,1],[2519,2530,11],[2531,2558,27],[2561,2563,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2672,31],[2673,2677,4],[2689,2691,1],[2748,2750,2],[2751,2757,1],[2759,2761,1],[2763,2765,1],[2786,2787,1],[2810,2815,1],[2817,2819,1],[2876,2878,2],[2879,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2914,2915,1],[2946,3006,60],[3007,3010,1],[3014,3016,1],[3018,3021,1],[3031,3072,41],[3073,3076,1],[3132,3134,2],[3135,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3203,1],[3260,3262,2],[3263,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3298,3299,1],[3315,3328,13],[3329,3331,1],[3387,3388,1],[3390,3396,1],[3398,3400,1],[3402,3405,1],[3415,3426,11],[3427,3457,30],[3458,3459,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3570,3571,1],[3633,3636,3],[3637,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3902,3903,1],[3953,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4139,101],[4140,4158,1],[4182,4185,1],[4190,4192,1],[4194,4196,1],[4199,4205,1],[4209,4212,1],[4226,4237,1],[4239,4250,11],[4251,4253,1],[4957,4959,1],[5906,5909,1],[5938,5940,1],[5970,5971,1],[6002,6003,1],[6068,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6443,1],[6448,6459,1],[6679,6683,1],[6741,6750,1],[6752,6780,1],[6783,6832,49],[6833,6862,1],[6912,6916,1],[6964,6980,1],[7019,7027,1],[7040,7042,1],[7073,7085,1],[7142,7155,1],[7204,7223,1],[7376,7378,1],[7380,7400,1],[7405,7412,7],[7415,7417,1],[7616,7679,1],[8400,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12335,1],[12441,12442,1],[42607,42610,1],[42612,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43043,24],[43044,43047,1],[43052,43136,84],[43137,43188,51],[43189,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43347,1],[43392,43395,1],[43443,43456,1],[43493,43561,68],[43562,43574,1],[43587,43596,9],[43597,43643,46],[43644,43645,1],[43696,43698,2],[43699,43700,1],[43703,43704,1],[43710,43711,1],[43713,43755,42],[43756,43759,1],[43765,43766,1],[44003,44010,1],[44012,44013,1],[64286,65024,738],[65025,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69632,69634,1],[69688,69702,1],[69744,69747,3],[69748,69759,11],[69760,69762,1],[69808,69818,1],[69826,69888,62],[69889,69890,1],[69927,69940,1],[69957,69958,1],[70003,70016,13],[70017,70018,1],[70067,70080,1],[70089,70092,1],[70094,70095,1],[70188,70199,1],[70206,70209,3],[70367,70378,1],[70400,70403,1],[70459,70460,1],[70462,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70502,3],[70503,70508,1],[70512,70516,1],[70709,70726,1],[70750,70832,82],[70833,70851,1],[71087,71093,1],[71096,71104,1],[71132,71133,1],[71216,71232,1],[71339,71351,1],[71453,71467,1],[71724,71738,1],[71984,71989,1],[71991,71992,1],[71995,71998,1],[72e3,72002,2],[72003,72145,142],[72146,72151,1],[72154,72160,1],[72164,72193,29],[72194,72202,1],[72243,72249,1],[72251,72254,1],[72263,72273,10],[72274,72283,1],[72330,72345,1],[72751,72758,1],[72760,72767,1],[72850,72871,1],[72873,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73098,67],[73099,73102,1],[73104,73105,1],[73107,73111,1],[73459,73462,1],[73472,73473,1],[73475,73524,49],[73525,73530,1],[73534,73538,1],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94033,2],[94034,94087,1],[94095,94098,1],[94180,94192,12],[94193,113821,19628],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119141,119145,1],[119149,119154,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]];static foldM=[[921,953,32],[8126,8126,1]];static Mc=[[2307,2363,56],[2366,2368,1],[2377,2380,1],[2382,2383,1],[2434,2435,1],[2494,2496,1],[2503,2504,1],[2507,2508,1],[2519,2563,44],[2622,2624,1],[2691,2750,59],[2751,2752,1],[2761,2763,2],[2764,2818,54],[2819,2878,59],[2880,2887,7],[2888,2891,3],[2892,2903,11],[3006,3007,1],[3009,3010,1],[3014,3016,1],[3018,3020,1],[3031,3073,42],[3074,3075,1],[3137,3140,1],[3202,3203,1],[3262,3264,2],[3265,3268,1],[3271,3272,1],[3274,3275,1],[3285,3286,1],[3315,3330,15],[3331,3390,59],[3391,3392,1],[3398,3400,1],[3402,3404,1],[3415,3458,43],[3459,3535,76],[3536,3537,1],[3544,3551,1],[3570,3571,1],[3902,3903,1],[3967,4139,172],[4140,4145,5],[4152,4155,3],[4156,4182,26],[4183,4194,11],[4195,4196,1],[4199,4205,1],[4227,4228,1],[4231,4236,1],[4239,4250,11],[4251,4252,1],[5909,5940,31],[6070,6078,8],[6079,6085,1],[6087,6088,1],[6435,6438,1],[6441,6443,1],[6448,6449,1],[6451,6456,1],[6681,6682,1],[6741,6743,2],[6753,6755,2],[6756,6765,9],[6766,6770,1],[6916,6965,49],[6971,6973,2],[6974,6977,1],[6979,6980,1],[7042,7073,31],[7078,7079,1],[7082,7143,61],[7146,7148,1],[7150,7154,4],[7155,7204,49],[7205,7211,1],[7220,7221,1],[7393,7415,22],[12334,12335,1],[43043,43044,1],[43047,43136,89],[43137,43188,51],[43189,43203,1],[43346,43347,1],[43395,43444,49],[43445,43450,5],[43451,43454,3],[43455,43456,1],[43567,43568,1],[43571,43572,1],[43597,43643,46],[43645,43755,110],[43758,43759,1],[43765,44003,238],[44004,44006,2],[44007,44009,2],[44010,44012,2],[69632,69634,2],[69762,69808,46],[69809,69810,1],[69815,69816,1],[69932,69957,25],[69958,70018,60],[70067,70069,1],[70079,70080,1],[70094,70188,94],[70189,70190,1],[70194,70195,1],[70197,70368,171],[70369,70370,1],[70402,70403,1],[70462,70463,1],[70465,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70709,210],[70710,70711,1],[70720,70721,1],[70725,70832,107],[70833,70834,1],[70841,70843,2],[70844,70846,1],[70849,71087,238],[71088,71089,1],[71096,71099,1],[71102,71216,114],[71217,71218,1],[71227,71228,1],[71230,71340,110],[71342,71343,1],[71350,71456,106],[71457,71462,5],[71724,71726,1],[71736,71984,248],[71985,71989,1],[71991,71992,1],[71997,72e3,3],[72002,72145,143],[72146,72147,1],[72156,72159,1],[72164,72249,85],[72279,72280,1],[72343,72751,408],[72766,72873,107],[72881,72884,3],[73098,73102,1],[73107,73108,1],[73110,73461,351],[73462,73475,13],[73524,73525,1],[73534,73535,1],[73537,94033,20496],[94034,94087,1],[94192,94193,1],[119141,119142,1],[119149,119154,1]];static Me=[[1160,1161,1],[6846,8413,1567],[8414,8416,1],[8418,8420,1],[42608,42610,1]];static Mn=[[768,879,1],[1155,1159,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2306,1],[2362,2364,2],[2369,2376,1],[2381,2385,4],[2386,2391,1],[2402,2403,1],[2433,2492,59],[2497,2500,1],[2509,2530,21],[2531,2558,27],[2561,2562,1],[2620,2625,5],[2626,2631,5],[2632,2635,3],[2636,2637,1],[2641,2672,31],[2673,2677,4],[2689,2690,1],[2748,2753,5],[2754,2757,1],[2759,2760,1],[2765,2786,21],[2787,2810,23],[2811,2815,1],[2817,2876,59],[2879,2881,2],[2882,2884,1],[2893,2901,8],[2902,2914,12],[2915,2946,31],[3008,3021,13],[3072,3076,4],[3132,3134,2],[3135,3136,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3260,59],[3263,3270,7],[3276,3277,1],[3298,3299,1],[3328,3329,1],[3387,3388,1],[3393,3396,1],[3405,3426,21],[3427,3457,30],[3530,3538,8],[3539,3540,1],[3542,3633,91],[3636,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3953,3966,1],[3968,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4141,103],[4142,4144,1],[4146,4151,1],[4153,4154,1],[4157,4158,1],[4184,4185,1],[4190,4192,1],[4209,4212,1],[4226,4229,3],[4230,4237,7],[4253,4957,704],[4958,4959,1],[5906,5908,1],[5938,5939,1],[5970,5971,1],[6002,6003,1],[6068,6069,1],[6071,6077,1],[6086,6089,3],[6090,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6434,1],[6439,6440,1],[6450,6457,7],[6458,6459,1],[6679,6680,1],[6683,6742,59],[6744,6750,1],[6752,6754,2],[6757,6764,1],[6771,6780,1],[6783,6832,49],[6833,6845,1],[6847,6862,1],[6912,6915,1],[6964,6966,2],[6967,6970,1],[6972,6978,6],[7019,7027,1],[7040,7041,1],[7074,7077,1],[7080,7081,1],[7083,7085,1],[7142,7144,2],[7145,7149,4],[7151,7153,1],[7212,7219,1],[7222,7223,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8400,8412,1],[8417,8421,4],[8422,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12333,1],[12441,12442,1],[42607,42612,5],[42613,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43045,26],[43046,43052,6],[43204,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43345,1],[43392,43394,1],[43443,43446,3],[43447,43449,1],[43452,43453,1],[43493,43561,68],[43562,43566,1],[43569,43570,1],[43573,43574,1],[43587,43596,9],[43644,43696,52],[43698,43700,1],[43703,43704,1],[43710,43711,1],[43713,43756,43],[43757,43766,9],[44005,44008,3],[44013,64286,20273],[65024,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69633,69688,55],[69689,69702,1],[69744,69747,3],[69748,69759,11],[69760,69761,1],[69811,69814,1],[69817,69818,1],[69826,69888,62],[69889,69890,1],[69927,69931,1],[69933,69940,1],[70003,70016,13],[70017,70070,53],[70071,70078,1],[70089,70092,1],[70095,70191,96],[70192,70193,1],[70196,70198,2],[70199,70206,7],[70209,70367,158],[70371,70378,1],[70400,70401,1],[70459,70460,1],[70464,70502,38],[70503,70508,1],[70512,70516,1],[70712,70719,1],[70722,70724,1],[70726,70750,24],[70835,70840,1],[70842,70847,5],[70848,70850,2],[70851,71090,239],[71091,71093,1],[71100,71101,1],[71103,71104,1],[71132,71133,1],[71219,71226,1],[71229,71231,2],[71232,71339,107],[71341,71344,3],[71345,71349,1],[71351,71453,102],[71454,71455,1],[71458,71461,1],[71463,71467,1],[71727,71735,1],[71737,71738,1],[71995,71996,1],[71998,72003,5],[72148,72151,1],[72154,72155,1],[72160,72193,33],[72194,72202,1],[72243,72248,1],[72251,72254,1],[72263,72273,10],[72274,72278,1],[72281,72283,1],[72330,72342,1],[72344,72345,1],[72752,72758,1],[72760,72765,1],[72767,72850,83],[72851,72871,1],[72874,72880,1],[72882,72883,1],[72885,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73104,73],[73105,73109,4],[73111,73459,348],[73460,73472,12],[73473,73526,53],[73527,73530,1],[73536,73538,2],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94095,64],[94096,94098,1],[94180,113821,19641],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]];static foldMn=[[921,953,32],[8126,8126,1]];static N=[[48,57,1],[178,179,1],[185,188,3],[189,190,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2548,2553,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[2930,2935,1],[3046,3058,1],[3174,3183,1],[3192,3198,1],[3302,3311,1],[3416,3422,1],[3430,3448,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3891,1],[4160,4169,1],[4240,4249,1],[4969,4988,1],[5870,5872,1],[6112,6121,1],[6128,6137,1],[6160,6169,1],[6470,6479,1],[6608,6618,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[8304,8308,4],[8309,8313,1],[8320,8329,1],[8528,8578,1],[8581,8585,1],[9312,9371,1],[9450,9471,1],[10102,10131,1],[11517,12295,778],[12321,12329,1],[12344,12346,1],[12690,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[42528,42537,1],[42726,42735,1],[43056,43061,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[65799,65843,1],[65856,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[66369,66378,9],[66513,66517,1],[66720,66729,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[68912,68921,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70113,70132,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71483,1],[71904,71922,1],[72016,72025,1],[72784,72812,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[73664,73684,1],[74752,74862,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125127,125135,1],[125264,125273,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1],[130032,130041,1]];static Nd=[[48,57,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[3046,3055,1],[3174,3183,1],[3302,3311,1],[3430,3439,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3881,1],[4160,4169,1],[4240,4249,1],[6112,6121,1],[6160,6169,1],[6470,6479,1],[6608,6617,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[42528,42537,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[66720,66729,1],[68912,68921,1],[69734,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71481,1],[71904,71913,1],[72016,72025,1],[72784,72793,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125264,125273,1],[130032,130041,1]];static Nl=[[5870,5872,1],[8544,8578,1],[8581,8584,1],[12295,12321,26],[12322,12329,1],[12344,12346,1],[42726,42735,1],[65856,65908,1],[66369,66378,9],[66513,66517,1],[74752,74862,1]];static No=[[178,179,1],[185,188,3],[189,190,1],[2548,2553,1],[2930,2935,1],[3056,3058,1],[3192,3198,1],[3416,3422,1],[3440,3448,1],[3882,3891,1],[4969,4988,1],[6128,6137,1],[6618,8304,1686],[8308,8313,1],[8320,8329,1],[8528,8543,1],[8585,9312,727],[9313,9371,1],[9450,9471,1],[10102,10131,1],[11517,12690,1173],[12691,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[43056,43061,1],[65799,65843,1],[65909,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69733,1],[70113,70132,1],[71482,71483,1],[71914,71922,1],[72794,72812,1],[73664,73684,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[125127,125135,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1]];static P=[[33,35,1],[37,42,1],[44,47,1],[58,59,1],[63,64,1],[91,93,1],[95,123,28],[125,161,36],[167,171,4],[182,183,1],[187,191,4],[894,903,9],[1370,1375,1],[1417,1418,1],[1470,1472,2],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3898,38],[3899,3901,1],[3973,4048,75],[4049,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5120,5742,622],[5787,5788,1],[5867,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8208,829],[8209,8231,1],[8240,8259,1],[8261,8273,1],[8275,8286,1],[8317,8318,1],[8333,8334,1],[8968,8971,1],[9001,9002,1],[10088,10101,1],[10181,10182,1],[10214,10223,1],[10627,10648,1],[10712,10715,1],[10748,10749,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11822,1],[11824,11855,1],[11858,11869,1],[12289,12291,1],[12296,12305,1],[12308,12319,1],[12336,12349,13],[12448,12539,91],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,64830,20819],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65121,1],[65123,65128,5],[65130,65131,1],[65281,65283,1],[65285,65290,1],[65292,65295,1],[65306,65307,1],[65311,65312,1],[65339,65341,1],[65343,65371,28],[65373,65375,2],[65376,65381,1],[65792,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69293,69461,168],[69462,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]];static Pc=[[95,8255,8160],[8256,8276,20],[65075,65076,1],[65101,65103,1],[65343,65343,1]];static Pd=[[45,1418,1373],[1470,5120,3650],[6150,8208,2058],[8209,8213,1],[11799,11802,3],[11834,11835,1],[11840,11869,29],[12316,12336,20],[12448,65073,52625],[65074,65112,38],[65123,65293,170],[69293,69293,1]];static Pe=[[41,93,52],[125,3899,3774],[3901,5788,1887],[8262,8318,56],[8334,8969,635],[8971,9002,31],[10089,10101,2],[10182,10215,33],[10217,10223,2],[10628,10648,2],[10713,10715,2],[10749,11811,1062],[11813,11817,2],[11862,11868,2],[12297,12305,2],[12309,12315,2],[12318,12319,1],[64830,65048,218],[65078,65092,2],[65096,65114,18],[65116,65118,2],[65289,65341,52],[65373,65379,3]];static Pf=[[187,8217,8030],[8221,8250,29],[11779,11781,2],[11786,11789,3],[11805,11809,4]];static Pi=[[171,8216,8045],[8219,8220,1],[8223,8249,26],[11778,11780,2],[11785,11788,3],[11804,11808,4]];static Po=[[33,35,1],[37,39,1],[42,46,2],[47,58,11],[59,63,4],[64,92,28],[161,167,6],[182,183,1],[191,894,703],[903,1370,467],[1371,1375,1],[1417,1472,55],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3973,113],[4048,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5742,5867,125],[5868,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6149,1],[6151,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8214,835],[8215,8224,9],[8225,8231,1],[8240,8248,1],[8251,8254,1],[8257,8259,1],[8263,8273,1],[8275,8277,2],[8278,8286,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11782,5],[11783,11784,1],[11787,11790,3],[11791,11798,1],[11800,11801,1],[11803,11806,3],[11807,11818,11],[11819,11822,1],[11824,11833,1],[11836,11839,1],[11841,11843,2],[11844,11855,1],[11858,11860,1],[12289,12291,1],[12349,12539,190],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,65040,21029],[65041,65046,1],[65049,65072,23],[65093,65094,1],[65097,65100,1],[65104,65106,1],[65108,65111,1],[65119,65121,1],[65128,65130,2],[65131,65281,150],[65282,65283,1],[65285,65287,1],[65290,65294,2],[65295,65306,11],[65307,65311,4],[65312,65340,28],[65377,65380,3],[65381,65792,411],[65793,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69461,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]];static Ps=[[40,91,51],[123,3898,3775],[3900,5787,1887],[8218,8222,4],[8261,8317,56],[8333,8968,635],[8970,9001,31],[10088,10100,2],[10181,10214,33],[10216,10222,2],[10627,10647,2],[10712,10714,2],[10748,11810,1062],[11812,11816,2],[11842,11861,19],[11863,11867,2],[12296,12304,2],[12308,12314,2],[12317,64831,52514],[65047,65077,30],[65079,65091,2],[65095,65113,18],[65115,65117,2],[65288,65339,51],[65371,65375,4],[65378,65378,1]];static S=[[36,43,7],[60,62,1],[94,96,2],[124,126,2],[162,166,1],[168,169,1],[172,174,2],[175,177,1],[180,184,4],[215,247,32],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,1014,113],[1154,1421,267],[1422,1423,1],[1542,1544,1],[1547,1550,3],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2046,2047,1],[2184,2546,362],[2547,2554,7],[2555,2801,246],[2928,3059,131],[3060,3066,1],[3199,3407,208],[3449,3647,198],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6107,366],[6464,6622,158],[6623,6655,1],[7009,7018,1],[7028,7036,1],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8352,8384,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8472,1],[8478,8483,1],[8485,8489,2],[8494,8506,12],[8507,8512,5],[8513,8516,1],[8522,8525,1],[8527,8586,59],[8587,8592,5],[8593,8967,1],[8972,9e3,1],[9003,9254,1],[9280,9290,1],[9372,9449,1],[9472,10087,1],[10132,10180,1],[10183,10213,1],[10224,10626,1],[10649,10711,1],[10716,10747,1],[10750,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12443,12444,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43048,43051,1],[43062,43065,1],[43639,43641,1],[43867,43882,15],[43883,64297,20414],[64434,64450,1],[64832,64847,1],[64975,65020,45],[65021,65023,1],[65122,65124,2],[65125,65126,1],[65129,65284,155],[65291,65308,17],[65309,65310,1],[65342,65344,2],[65372,65374,2],[65504,65510,1],[65512,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,123647,432],[126124,126128,4],[126254,126704,450],[126705,126976,271],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]];static Sc=[[36,162,126],[163,165,1],[1423,1547,124],[2046,2047,1],[2546,2547,1],[2555,2801,246],[3065,3647,582],[6107,8352,2245],[8353,8384,1],[43064,65020,21956],[65129,65284,155],[65504,65505,1],[65509,65510,1],[73693,73696,1],[123647,126128,2481]];static Sk=[[94,96,2],[168,175,7],[180,184,4],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,2184,1283],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[12443,12444,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43867,43882,15],[43883,64434,20551],[64435,64450,1],[65342,65344,2],[65507,127995,62488],[127996,127999,1]];static Sm=[[43,60,17],[61,62,1],[124,126,2],[172,177,5],[215,247,32],[1014,1542,528],[1543,1544,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8472,8512,40],[8513,8516,1],[8523,8592,69],[8593,8596,1],[8602,8603,1],[8608,8614,3],[8622,8654,32],[8655,8658,3],[8660,8692,32],[8693,8959,1],[8992,8993,1],[9084,9115,31],[9116,9139,1],[9180,9185,1],[9655,9665,10],[9720,9727,1],[9839,10176,337],[10177,10180,1],[10183,10213,1],[10224,10239,1],[10496,10626,1],[10649,10711,1],[10716,10747,1],[10750,11007,1],[11056,11076,1],[11079,11084,1],[64297,65122,825],[65124,65126,1],[65291,65308,17],[65309,65310,1],[65372,65374,2],[65506,65513,7],[65514,65516,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[126704,126705,1]];static So=[[166,169,3],[174,176,2],[1154,1421,267],[1422,1550,128],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2554,2928,374],[3059,3064,1],[3066,3199,133],[3407,3449,42],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6464,723],[6622,6655,1],[7009,7018,1],[7028,7036,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8478,7],[8479,8483,1],[8485,8489,2],[8494,8506,12],[8507,8522,15],[8524,8525,1],[8527,8586,59],[8587,8597,10],[8598,8601,1],[8604,8607,1],[8609,8610,1],[8612,8613,1],[8615,8621,1],[8623,8653,1],[8656,8657,1],[8659,8661,2],[8662,8691,1],[8960,8967,1],[8972,8991,1],[8994,9e3,1],[9003,9083,1],[9085,9114,1],[9140,9179,1],[9186,9254,1],[9280,9290,1],[9372,9449,1],[9472,9654,1],[9656,9664,1],[9666,9719,1],[9728,9838,1],[9840,10087,1],[10132,10175,1],[10240,10495,1],[11008,11055,1],[11077,11078,1],[11085,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[43048,43051,1],[43062,43063,1],[43065,43639,574],[43640,43641,1],[64832,64847,1],[64975,65021,46],[65022,65023,1],[65508,65512,4],[65517,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73692,1],[73697,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,126124,2909],[126254,126976,722],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,127994,1],[128e3,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]];static Z=[[32,160,128],[5760,8192,2432],[8193,8202,1],[8232,8233,1],[8239,8287,48],[12288,12288,1]];static Zl=[[8232,8232,1]];static Zp=[[8233,8233,1]];static Zs=[[32,160,128],[5760,8192,2432],[8193,8202,1],[8239,8287,48],[12288,12288,1]];static Adlam=[[125184,125259,1],[125264,125273,1],[125278,125279,1]];static Ahom=[[71424,71450,1],[71453,71467,1],[71472,71494,1]];static Anatolian_Hieroglyphs=[[82944,83526,1]];static Arabic=[[1536,1540,1],[1542,1547,1],[1549,1562,1],[1564,1566,1],[1568,1599,1],[1601,1610,1],[1622,1647,1],[1649,1756,1],[1758,1791,1],[1872,1919,1],[2160,2190,1],[2192,2193,1],[2200,2273,1],[2275,2303,1],[64336,64450,1],[64467,64829,1],[64832,64911,1],[64914,64967,1],[64975,65008,33],[65009,65023,1],[65136,65140,1],[65142,65276,1],[69216,69246,1],[69373,69375,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[126704,126705,1]];static Armenian=[[1329,1366,1],[1369,1418,1],[1421,1423,1],[64275,64279,1]];static Avestan=[[68352,68405,1],[68409,68415,1]];static Balinese=[[6912,6988,1],[6992,7038,1]];static Bamum=[[42656,42743,1],[92160,92728,1]];static Bassa_Vah=[[92880,92909,1],[92912,92917,1]];static Batak=[[7104,7155,1],[7164,7167,1]];static Bengali=[[2432,2435,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2492,2500,1],[2503,2504,1],[2507,2510,1],[2519,2524,5],[2525,2527,2],[2528,2531,1],[2534,2558,1]];static Bhaiksuki=[[72704,72712,1],[72714,72758,1],[72760,72773,1],[72784,72812,1]];static Bopomofo=[[746,747,1],[12549,12591,1],[12704,12735,1]];static Brahmi=[[69632,69709,1],[69714,69749,1],[69759,69759,1]];static Braille=[[10240,10495,1]];static Buginese=[[6656,6683,1],[6686,6687,1]];static Buhid=[[5952,5971,1]];static Canadian_Aboriginal=[[5120,5759,1],[6320,6389,1],[72368,72383,1]];static Carian=[[66208,66256,1]];static Caucasian_Albanian=[[66864,66915,1],[66927,66927,1]];static Chakma=[[69888,69940,1],[69942,69959,1]];static Cham=[[43520,43574,1],[43584,43597,1],[43600,43609,1],[43612,43615,1]];static Cherokee=[[5024,5109,1],[5112,5117,1],[43888,43967,1]];static Chorasmian=[[69552,69579,1]];static Common=[[0,64,1],[91,96,1],[123,169,1],[171,185,1],[187,191,1],[215,247,32],[697,735,1],[741,745,1],[748,767,1],[884,894,10],[901,903,2],[1541,1548,7],[1563,1567,4],[1600,1757,157],[2274,2404,130],[2405,3647,1242],[4053,4056,1],[4347,5867,1520],[5868,5869,1],[5941,5942,1],[6146,6147,1],[6149,7379,1230],[7393,7401,8],[7402,7404,1],[7406,7411,1],[7413,7415,1],[7418,8192,774],[8193,8203,1],[8206,8292,1],[8294,8304,1],[8308,8318,1],[8320,8334,1],[8352,8384,1],[8448,8485,1],[8487,8489,1],[8492,8497,1],[8499,8525,1],[8527,8543,1],[8585,8587,1],[8592,9254,1],[9280,9290,1],[9312,10239,1],[10496,11123,1],[11126,11157,1],[11159,11263,1],[11776,11869,1],[12272,12292,1],[12294,12296,2],[12297,12320,1],[12336,12343,1],[12348,12351,1],[12443,12444,1],[12448,12539,91],[12540,12688,148],[12689,12703,1],[12736,12771,1],[12783,12832,49],[12833,12895,1],[12927,13007,1],[13055,13144,89],[13145,13311,1],[19904,19967,1],[42752,42785,1],[42888,42890,1],[43056,43065,1],[43310,43471,161],[43867,43882,15],[43883,64830,20947],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65126,1],[65128,65131,1],[65279,65281,2],[65282,65312,1],[65339,65344,1],[65371,65381,1],[65392,65438,46],[65439,65504,65],[65505,65510,1],[65512,65518,1],[65529,65533,1],[65792,65794,1],[65799,65843,1],[65847,65855,1],[65936,65948,1],[66e3,66044,1],[66273,66299,1],[113824,113827,1],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119142,1],[119146,119162,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119488,119507,1],[119520,119539,1],[119552,119638,1],[119648,119672,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120779,1],[120782,120831,1],[126065,126132,1],[126209,126269,1],[126976,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127232,127405,1],[127462,127487,1],[127489,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1],[130032,130041,1],[917505,917536,31],[917537,917631,1]];static foldCommon=[[924,956,32]];static Coptic=[[994,1007,1],[11392,11507,1],[11513,11519,1]];static Cuneiform=[[73728,74649,1],[74752,74862,1],[74864,74868,1],[74880,75075,1]];static Cypriot=[[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3]];static Cypro_Minoan=[[77712,77810,1]];static Cyrillic=[[1024,1156,1],[1159,1327,1],[7296,7304,1],[7467,7544,77],[11744,11775,1],[42560,42655,1],[65070,65071,1],[122928,122989,1],[123023,123023,1]];static Deseret=[[66560,66639,1]];static Devanagari=[[2304,2384,1],[2389,2403,1],[2406,2431,1],[43232,43263,1],[72448,72457,1]];static Dives_Akuru=[[71936,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71989,1],[71991,71992,1],[71995,72006,1],[72016,72025,1]];static Dogra=[[71680,71739,1]];static Duployan=[[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[113820,113823,1]];static Egyptian_Hieroglyphs=[[77824,78933,1]];static Elbasan=[[66816,66855,1]];static Elymaic=[[69600,69622,1]];static Ethiopic=[[4608,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4957,4988,1],[4992,5017,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1]];static Georgian=[[4256,4293,1],[4295,4301,6],[4304,4346,1],[4348,4351,1],[7312,7354,1],[7357,7359,1],[11520,11557,1],[11559,11565,6]];static Glagolitic=[[11264,11359,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1]];static Gothic=[[66352,66378,1]];static Grantha=[[70400,70403,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70460,70468,1],[70471,70472,1],[70475,70477,1],[70480,70487,7],[70493,70499,1],[70502,70508,1],[70512,70516,1]];static Greek=[[880,883,1],[885,887,1],[890,893,1],[895,900,5],[902,904,2],[905,906,1],[908,910,2],[911,929,1],[931,993,1],[1008,1023,1],[7462,7466,1],[7517,7521,1],[7526,7530,1],[7615,7936,321],[7937,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8132,1],[8134,8147,1],[8150,8155,1],[8157,8175,1],[8178,8180,1],[8182,8190,1],[8486,43877,35391],[65856,65934,1],[65952,119296,53344],[119297,119365,1]];static foldGreek=[[181,837,656]];static Gujarati=[[2689,2691,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2748,2757,1],[2759,2761,1],[2763,2765,1],[2768,2784,16],[2785,2787,1],[2790,2801,1],[2809,2815,1]];static Gunjala_Gondi=[[73056,73061,1],[73063,73064,1],[73066,73102,1],[73104,73105,1],[73107,73112,1],[73120,73129,1]];static Gurmukhi=[[2561,2563,1],[2565,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2649,8],[2650,2652,1],[2654,2662,8],[2663,2678,1]];static Han=[[11904,11929,1],[11931,12019,1],[12032,12245,1],[12293,12295,2],[12321,12329,1],[12344,12347,1],[13312,19903,1],[19968,40959,1],[63744,64109,1],[64112,64217,1],[94178,94179,1],[94192,94193,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static Hangul=[[4352,4607,1],[12334,12335,1],[12593,12686,1],[12800,12830,1],[12896,12926,1],[43360,43388,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1]];static Hanifi_Rohingya=[[68864,68903,1],[68912,68921,1]];static Hanunoo=[[5920,5940,1]];static Hatran=[[67808,67826,1],[67828,67829,1],[67835,67839,1]];static Hebrew=[[1425,1479,1],[1488,1514,1],[1519,1524,1],[64285,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64335,1]];static Hiragana=[[12353,12438,1],[12445,12447,1],[110593,110879,1],[110898,110928,30],[110929,110930,1],[127488,127488,1]];static Imperial_Aramaic=[[67648,67669,1],[67671,67679,1]];static Inherited=[[768,879,1],[1157,1158,1],[1611,1621,1],[1648,2385,737],[2386,2388,1],[6832,6862,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8204,8205,1],[8400,8432,1],[12330,12333,1],[12441,12442,1],[65024,65039,1],[65056,65069,1],[66045,66272,227],[70459,118528,48069],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[917760,917999,1]];static foldInherited=[[921,953,32],[8126,8126,1]];static Inscriptional_Pahlavi=[[68448,68466,1],[68472,68479,1]];static Inscriptional_Parthian=[[68416,68437,1],[68440,68447,1]];static Javanese=[[43392,43469,1],[43472,43481,1],[43486,43487,1]];static Kaithi=[[69760,69826,1],[69837,69837,1]];static Kannada=[[3200,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3260,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3293,3294,1],[3296,3299,1],[3302,3311,1],[3313,3315,1]];static Katakana=[[12449,12538,1],[12541,12543,1],[12784,12799,1],[13008,13054,1],[13056,13143,1],[65382,65391,1],[65393,65437,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110880,288],[110881,110882,1],[110933,110948,15],[110949,110951,1]];static Kawi=[[73472,73488,1],[73490,73530,1],[73534,73561,1]];static Kayah_Li=[[43264,43309,1],[43311,43311,1]];static Kharoshthi=[[68096,68099,1],[68101,68102,1],[68108,68115,1],[68117,68119,1],[68121,68149,1],[68152,68154,1],[68159,68168,1],[68176,68184,1]];static Khitan_Small_Script=[[94180,101120,6940],[101121,101589,1]];static Khmer=[[6016,6109,1],[6112,6121,1],[6128,6137,1],[6624,6655,1]];static Khojki=[[70144,70161,1],[70163,70209,1]];static Khudawadi=[[70320,70378,1],[70384,70393,1]];static Lao=[[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3773,1],[3776,3780,1],[3782,3784,2],[3785,3790,1],[3792,3801,1],[3804,3807,1]];static Latin=[[65,90,1],[97,122,1],[170,186,16],[192,214,1],[216,246,1],[248,696,1],[736,740,1],[7424,7461,1],[7468,7516,1],[7522,7525,1],[7531,7543,1],[7545,7614,1],[7680,7935,1],[8305,8319,14],[8336,8348,1],[8490,8491,1],[8498,8526,28],[8544,8584,1],[11360,11391,1],[42786,42887,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43007,1],[43824,43866,1],[43868,43876,1],[43878,43881,1],[64256,64262,1],[65313,65338,1],[65345,65370,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[122624,122654,1],[122661,122666,1]];static Lepcha=[[7168,7223,1],[7227,7241,1],[7245,7247,1]];static Limbu=[[6400,6430,1],[6432,6443,1],[6448,6459,1],[6464,6468,4],[6469,6479,1]];static Linear_A=[[67072,67382,1],[67392,67413,1],[67424,67431,1]];static Linear_B=[[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1]];static Lisu=[[42192,42239,1],[73648,73648,1]];static Lycian=[[66176,66204,1]];static Lydian=[[67872,67897,1],[67903,67903,1]];static Mahajani=[[69968,70006,1]];static Makasar=[[73440,73464,1]];static Malayalam=[[3328,3340,1],[3342,3344,1],[3346,3396,1],[3398,3400,1],[3402,3407,1],[3412,3427,1],[3430,3455,1]];static Mandaic=[[2112,2139,1],[2142,2142,1]];static Manichaean=[[68288,68326,1],[68331,68342,1]];static Marchen=[[72816,72847,1],[72850,72871,1],[72873,72886,1]];static Masaram_Gondi=[[72960,72966,1],[72968,72969,1],[72971,73014,1],[73018,73020,2],[73021,73023,2],[73024,73031,1],[73040,73049,1]];static Medefaidrin=[[93760,93850,1]];static Meetei_Mayek=[[43744,43766,1],[43968,44013,1],[44016,44025,1]];static Mende_Kikakui=[[124928,125124,1],[125127,125142,1]];static Meroitic_Cursive=[[68e3,68023,1],[68028,68047,1],[68050,68095,1]];static Meroitic_Hieroglyphs=[[67968,67999,1]];static Miao=[[93952,94026,1],[94031,94087,1],[94095,94111,1]];static Modi=[[71168,71236,1],[71248,71257,1]];static Mongolian=[[6144,6145,1],[6148,6150,2],[6151,6169,1],[6176,6264,1],[6272,6314,1],[71264,71276,1]];static Mro=[[92736,92766,1],[92768,92777,1],[92782,92783,1]];static Multani=[[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70313,1]];static Myanmar=[[4096,4255,1],[43488,43518,1],[43616,43647,1]];static Nabataean=[[67712,67742,1],[67751,67759,1]];static Nag_Mundari=[[124112,124153,1]];static Nandinagari=[[72096,72103,1],[72106,72151,1],[72154,72164,1]];static New_Tai_Lue=[[6528,6571,1],[6576,6601,1],[6608,6618,1],[6622,6623,1]];static Newa=[[70656,70747,1],[70749,70753,1]];static Nko=[[1984,2042,1],[2045,2047,1]];static Nushu=[[94177,110960,16783],[110961,111355,1]];static Nyiakeng_Puachue_Hmong=[[123136,123180,1],[123184,123197,1],[123200,123209,1],[123214,123215,1]];static Ogham=[[5760,5788,1]];static Ol_Chiki=[[7248,7295,1]];static Old_Hungarian=[[68736,68786,1],[68800,68850,1],[68858,68863,1]];static Old_Italic=[[66304,66339,1],[66349,66351,1]];static Old_North_Arabian=[[68224,68255,1]];static Old_Permic=[[66384,66426,1]];static Old_Persian=[[66464,66499,1],[66504,66517,1]];static Old_Sogdian=[[69376,69415,1]];static Old_South_Arabian=[[68192,68223,1]];static Old_Turkic=[[68608,68680,1]];static Old_Uyghur=[[69488,69513,1]];static Oriya=[[2817,2819,1],[2821,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2876,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2908,2909,1],[2911,2915,1],[2918,2935,1]];static Osage=[[66736,66771,1],[66776,66811,1]];static Osmanya=[[66688,66717,1],[66720,66729,1]];static Pahawh_Hmong=[[92928,92997,1],[93008,93017,1],[93019,93025,1],[93027,93047,1],[93053,93071,1]];static Palmyrene=[[67680,67711,1]];static Pau_Cin_Hau=[[72384,72440,1]];static Phags_Pa=[[43072,43127,1]];static Phoenician=[[67840,67867,1],[67871,67871,1]];static Psalter_Pahlavi=[[68480,68497,1],[68505,68508,1],[68521,68527,1]];static Rejang=[[43312,43347,1],[43359,43359,1]];static Runic=[[5792,5866,1],[5870,5880,1]];static Samaritan=[[2048,2093,1],[2096,2110,1]];static Saurashtra=[[43136,43205,1],[43214,43225,1]];static Sharada=[[70016,70111,1]];static Shavian=[[66640,66687,1]];static Siddham=[[71040,71093,1],[71096,71133,1]];static SignWriting=[[120832,121483,1],[121499,121503,1],[121505,121519,1]];static Sinhala=[[3457,3459,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3558,3567,1],[3570,3572,1],[70113,70132,1]];static Sogdian=[[69424,69465,1]];static Sora_Sompeng=[[69840,69864,1],[69872,69881,1]];static Soyombo=[[72272,72354,1]];static Sundanese=[[7040,7103,1],[7360,7367,1]];static Syloti_Nagri=[[43008,43052,1]];static Syriac=[[1792,1805,1],[1807,1866,1],[1869,1871,1],[2144,2154,1]];static Tagalog=[[5888,5909,1],[5919,5919,1]];static Tagbanwa=[[5984,5996,1],[5998,6e3,1],[6002,6003,1]];static Tai_Le=[[6480,6509,1],[6512,6516,1]];static Tai_Tham=[[6688,6750,1],[6752,6780,1],[6783,6793,1],[6800,6809,1],[6816,6829,1]];static Tai_Viet=[[43648,43714,1],[43739,43743,1]];static Takri=[[71296,71353,1],[71360,71369,1]];static Tamil=[[2946,2947,1],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3006,3010,1],[3014,3016,1],[3018,3021,1],[3024,3031,7],[3046,3066,1],[73664,73713,1],[73727,73727,1]];static Tangsa=[[92784,92862,1],[92864,92873,1]];static Tangut=[[94176,94208,32],[94209,100343,1],[100352,101119,1],[101632,101640,1]];static Telugu=[[3072,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3132,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3160,3162,1],[3165,3168,3],[3169,3171,1],[3174,3183,1],[3191,3199,1]];static Thaana=[[1920,1969,1]];static Thai=[[3585,3642,1],[3648,3675,1]];static Tibetan=[[3840,3911,1],[3913,3948,1],[3953,3991,1],[3993,4028,1],[4030,4044,1],[4046,4052,1],[4057,4058,1]];static Tifinagh=[[11568,11623,1],[11631,11632,1],[11647,11647,1]];static Tirhuta=[[70784,70855,1],[70864,70873,1]];static Toto=[[123536,123566,1]];static Ugaritic=[[66432,66461,1],[66463,66463,1]];static Vai=[[42240,42539,1]];static Vithkuqi=[[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1]];static Wancho=[[123584,123641,1],[123647,123647,1]];static Warang_Citi=[[71840,71922,1],[71935,71935,1]];static Yezidi=[[69248,69289,1],[69291,69293,1],[69296,69297,1]];static Yi=[[40960,42124,1],[42128,42182,1]];static Zanabazar_Square=[[72192,72263,1]];static CATEGORIES=new Map([["C",sv.C],["Cc",sv.Cc],["Cf",sv.Cf],["Co",sv.Co],["Cs",sv.Cs],["L",sv.L],["Ll",sv.Ll],["Lm",sv.Lm],["Lo",sv.Lo],["Lt",sv.Lt],["Lu",sv.Lu],["M",sv.M],["Mc",sv.Mc],["Me",sv.Me],["Mn",sv.Mn],["N",sv.N],["Nd",sv.Nd],["Nl",sv.Nl],["No",sv.No],["P",sv.P],["Pc",sv.Pc],["Pd",sv.Pd],["Pe",sv.Pe],["Pf",sv.Pf],["Pi",sv.Pi],["Po",sv.Po],["Ps",sv.Ps],["S",sv.S],["Sc",sv.Sc],["Sk",sv.Sk],["Sm",sv.Sm],["So",sv.So],["Z",sv.Z],["Zl",sv.Zl],["Zp",sv.Zp],["Zs",sv.Zs]]);static SCRIPTS=new Map([["Adlam",sv.Adlam],["Ahom",sv.Ahom],["Anatolian_Hieroglyphs",sv.Anatolian_Hieroglyphs],["Arabic",sv.Arabic],["Armenian",sv.Armenian],["Avestan",sv.Avestan],["Balinese",sv.Balinese],["Bamum",sv.Bamum],["Bassa_Vah",sv.Bassa_Vah],["Batak",sv.Batak],["Bengali",sv.Bengali],["Bhaiksuki",sv.Bhaiksuki],["Bopomofo",sv.Bopomofo],["Brahmi",sv.Brahmi],["Braille",sv.Braille],["Buginese",sv.Buginese],["Buhid",sv.Buhid],["Canadian_Aboriginal",sv.Canadian_Aboriginal],["Carian",sv.Carian],["Caucasian_Albanian",sv.Caucasian_Albanian],["Chakma",sv.Chakma],["Cham",sv.Cham],["Cherokee",sv.Cherokee],["Chorasmian",sv.Chorasmian],["Common",sv.Common],["Coptic",sv.Coptic],["Cuneiform",sv.Cuneiform],["Cypriot",sv.Cypriot],["Cypro_Minoan",sv.Cypro_Minoan],["Cyrillic",sv.Cyrillic],["Deseret",sv.Deseret],["Devanagari",sv.Devanagari],["Dives_Akuru",sv.Dives_Akuru],["Dogra",sv.Dogra],["Duployan",sv.Duployan],["Egyptian_Hieroglyphs",sv.Egyptian_Hieroglyphs],["Elbasan",sv.Elbasan],["Elymaic",sv.Elymaic],["Ethiopic",sv.Ethiopic],["Georgian",sv.Georgian],["Glagolitic",sv.Glagolitic],["Gothic",sv.Gothic],["Grantha",sv.Grantha],["Greek",sv.Greek],["Gujarati",sv.Gujarati],["Gunjala_Gondi",sv.Gunjala_Gondi],["Gurmukhi",sv.Gurmukhi],["Han",sv.Han],["Hangul",sv.Hangul],["Hanifi_Rohingya",sv.Hanifi_Rohingya],["Hanunoo",sv.Hanunoo],["Hatran",sv.Hatran],["Hebrew",sv.Hebrew],["Hiragana",sv.Hiragana],["Imperial_Aramaic",sv.Imperial_Aramaic],["Inherited",sv.Inherited],["Inscriptional_Pahlavi",sv.Inscriptional_Pahlavi],["Inscriptional_Parthian",sv.Inscriptional_Parthian],["Javanese",sv.Javanese],["Kaithi",sv.Kaithi],["Kannada",sv.Kannada],["Katakana",sv.Katakana],["Kawi",sv.Kawi],["Kayah_Li",sv.Kayah_Li],["Kharoshthi",sv.Kharoshthi],["Khitan_Small_Script",sv.Khitan_Small_Script],["Khmer",sv.Khmer],["Khojki",sv.Khojki],["Khudawadi",sv.Khudawadi],["Lao",sv.Lao],["Latin",sv.Latin],["Lepcha",sv.Lepcha],["Limbu",sv.Limbu],["Linear_A",sv.Linear_A],["Linear_B",sv.Linear_B],["Lisu",sv.Lisu],["Lycian",sv.Lycian],["Lydian",sv.Lydian],["Mahajani",sv.Mahajani],["Makasar",sv.Makasar],["Malayalam",sv.Malayalam],["Mandaic",sv.Mandaic],["Manichaean",sv.Manichaean],["Marchen",sv.Marchen],["Masaram_Gondi",sv.Masaram_Gondi],["Medefaidrin",sv.Medefaidrin],["Meetei_Mayek",sv.Meetei_Mayek],["Mende_Kikakui",sv.Mende_Kikakui],["Meroitic_Cursive",sv.Meroitic_Cursive],["Meroitic_Hieroglyphs",sv.Meroitic_Hieroglyphs],["Miao",sv.Miao],["Modi",sv.Modi],["Mongolian",sv.Mongolian],["Mro",sv.Mro],["Multani",sv.Multani],["Myanmar",sv.Myanmar],["Nabataean",sv.Nabataean],["Nag_Mundari",sv.Nag_Mundari],["Nandinagari",sv.Nandinagari],["New_Tai_Lue",sv.New_Tai_Lue],["Newa",sv.Newa],["Nko",sv.Nko],["Nushu",sv.Nushu],["Nyiakeng_Puachue_Hmong",sv.Nyiakeng_Puachue_Hmong],["Ogham",sv.Ogham],["Ol_Chiki",sv.Ol_Chiki],["Old_Hungarian",sv.Old_Hungarian],["Old_Italic",sv.Old_Italic],["Old_North_Arabian",sv.Old_North_Arabian],["Old_Permic",sv.Old_Permic],["Old_Persian",sv.Old_Persian],["Old_Sogdian",sv.Old_Sogdian],["Old_South_Arabian",sv.Old_South_Arabian],["Old_Turkic",sv.Old_Turkic],["Old_Uyghur",sv.Old_Uyghur],["Oriya",sv.Oriya],["Osage",sv.Osage],["Osmanya",sv.Osmanya],["Pahawh_Hmong",sv.Pahawh_Hmong],["Palmyrene",sv.Palmyrene],["Pau_Cin_Hau",sv.Pau_Cin_Hau],["Phags_Pa",sv.Phags_Pa],["Phoenician",sv.Phoenician],["Psalter_Pahlavi",sv.Psalter_Pahlavi],["Rejang",sv.Rejang],["Runic",sv.Runic],["Samaritan",sv.Samaritan],["Saurashtra",sv.Saurashtra],["Sharada",sv.Sharada],["Shavian",sv.Shavian],["Siddham",sv.Siddham],["SignWriting",sv.SignWriting],["Sinhala",sv.Sinhala],["Sogdian",sv.Sogdian],["Sora_Sompeng",sv.Sora_Sompeng],["Soyombo",sv.Soyombo],["Sundanese",sv.Sundanese],["Syloti_Nagri",sv.Syloti_Nagri],["Syriac",sv.Syriac],["Tagalog",sv.Tagalog],["Tagbanwa",sv.Tagbanwa],["Tai_Le",sv.Tai_Le],["Tai_Tham",sv.Tai_Tham],["Tai_Viet",sv.Tai_Viet],["Takri",sv.Takri],["Tamil",sv.Tamil],["Tangsa",sv.Tangsa],["Tangut",sv.Tangut],["Telugu",sv.Telugu],["Thaana",sv.Thaana],["Thai",sv.Thai],["Tibetan",sv.Tibetan],["Tifinagh",sv.Tifinagh],["Tirhuta",sv.Tirhuta],["Toto",sv.Toto],["Ugaritic",sv.Ugaritic],["Vai",sv.Vai],["Vithkuqi",sv.Vithkuqi],["Wancho",sv.Wancho],["Warang_Citi",sv.Warang_Citi],["Yezidi",sv.Yezidi],["Yi",sv.Yi],["Zanabazar_Square",sv.Zanabazar_Square]]);static FOLD_CATEGORIES=new Map([["L",sv.foldL],["Ll",sv.foldLl],["Lt",sv.foldLt],["Lu",sv.foldLu],["M",sv.foldM],["Mn",sv.foldMn]]);static FOLD_SCRIPT=new Map([["Common",sv.foldCommon],["Greek",sv.foldGreek],["Inherited",sv.foldInherited]])}class ov{static MAX_RUNE=1114111;static MAX_ASCII=127;static MAX_LATIN1=255;static MAX_BMP=65535;static MIN_FOLD=65;static MAX_FOLD=66639;static is32(e,t){let n=0,r=e.length;for(;n<r;){let i=n+Math.floor((r-n)/2),s=e[i];if(s[0]<=t&&t<=s[1])return(t-s[0])%s[2]==0;t<s[0]?r=i:n=i+1}return!1}static is(e,t){if(t<=this.MAX_LATIN1){for(let n of e)if(!(t>n[1]))return!(t<n[0])&&(t-n[0])%n[2]==0;return!1}return e.length>0&&t>=e[0][0]&&this.is32(e,t)}static isUpper(e){if(e<=this.MAX_LATIN1){const t=String.fromCodePoint(e);return t.toUpperCase()===t&&t.toLowerCase()!==t}return this.is(sv.Upper,e)}static isPrint(e){return e<=this.MAX_LATIN1?e>=32&&e<127||e>=161&&173!==e:this.is(sv.L,e)||this.is(sv.M,e)||this.is(sv.N,e)||this.is(sv.P,e)||this.is(sv.S,e)}static simpleFold(e){if(sv.CASE_ORBIT.has(e))return sv.CASE_ORBIT.get(e);const t=iv.toLowerCase(e);return t!==e?t:iv.toUpperCase(e)}static equalsIgnoreCase(e,t){if(e<0||t<0||e===t)return!0;if(e<=this.MAX_ASCII&&t<=this.MAX_ASCII)return iv.CODES.get("A")<=e&&e<=iv.CODES.get("Z")&&(e|=32),iv.CODES.get("A")<=t&&t<=iv.CODES.get("Z")&&(t|=32),e===t;for(let n=this.simpleFold(e);n!==e;n=this.simpleFold(n))if(n===t)return!0;return!1}}class av{static METACHARACTERS="\\.+*?()|[]{}^$";static EMPTY_BEGIN_LINE=1;static EMPTY_END_LINE=2;static EMPTY_BEGIN_TEXT=4;static EMPTY_END_TEXT=8;static EMPTY_WORD_BOUNDARY=16;static EMPTY_NO_WORD_BOUNDARY=32;static EMPTY_ALL=-1;static emptyInts(){return[]}static isalnum(e){return iv.CODES.get("0")<=e&&e<=iv.CODES.get("9")||iv.CODES.get("a")<=e&&e<=iv.CODES.get("z")||iv.CODES.get("A")<=e&&e<=iv.CODES.get("Z")}static unhex(e){return iv.CODES.get("0")<=e&&e<=iv.CODES.get("9")?e-iv.CODES.get("0"):iv.CODES.get("a")<=e&&e<=iv.CODES.get("f")?e-iv.CODES.get("a")+10:iv.CODES.get("A")<=e&&e<=iv.CODES.get("F")?e-iv.CODES.get("A")+10:-1}static escapeRune(e){let t="";if(ov.isPrint(e))this.METACHARACTERS.indexOf(String.fromCodePoint(e))>=0&&(t+="\\"),t+=String.fromCodePoint(e);else switch(e){case iv.CODES.get('"'):t+='\\"';break;case iv.CODES.get("\\"):t+="\\\\";break;case iv.CODES.get("\t"):t+="\\t";break;case iv.CODES.get("\n"):t+="\\n";break;case iv.CODES.get("\r"):t+="\\r";break;case iv.CODES.get("\b"):t+="\\b";break;case iv.CODES.get("\f"):t+="\\f";break;default:{let n=e.toString(16);e<256?(t+="\\x",1===n.length&&(t+="0"),t+=n):t+=`\\x{${n}}`;break}}return t}static stringToRunes(e){return String(e).split("").map((e=>e.codePointAt(0)))}static runeToString(e){return String.fromCodePoint(e)}static isWordRune(e){return iv.CODES.get("a")<=e&&e<=iv.CODES.get("z")||iv.CODES.get("A")<=e&&e<=iv.CODES.get("Z")||iv.CODES.get("0")<=e&&e<=iv.CODES.get("9")||e===iv.CODES.get("_")}static emptyOpContext(e,t){let n=0;return e<0&&(n|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE),e===iv.CODES.get("\n")&&(n|=this.EMPTY_BEGIN_LINE),t<0&&(n|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE),t===iv.CODES.get("\n")&&(n|=this.EMPTY_END_LINE),this.isWordRune(e)!==this.isWordRune(t)?n|=this.EMPTY_WORD_BOUNDARY:n|=this.EMPTY_NO_WORD_BOUNDARY,n}static quoteMeta(e){return e.split("").map((e=>this.METACHARACTERS.indexOf(e)>=0?`\\${e}`:e)).join("")}static charCount(e){return e>ov.MAX_BMP?2:1}static stringToUtf8ByteArray(e){if(globalThis.TextEncoder)return Array.from((new TextEncoder).encode(e));{let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}}static utf8ByteArrayToString(e){if(globalThis.TextDecoder)return new TextDecoder("utf-8").decode(new Uint8Array(e));{let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{let s=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return t.join("")}}}const lv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n={};for(let r=0;r<e.length;r++){const i=e[r],s=t+r;n[i]=s,n[s]=i}return Object.freeze(n)};class cv{static Encoding=lv(["UTF_16","UTF_8"]);getEncoding(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===cv.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===cv.Encoding.UTF_16}}class uv extends cv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.bytes=e}getEncoding(){return cv.Encoding.UTF_8}asCharSequence(){return av.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}}class hv extends cv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.charSequence=e}getEncoding(){return cv.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return this.charSequence.toString().split("").map((e=>e.codePointAt(0)))}length(){return this.charSequence.length}}class pv{static utf16(e){return new hv(e)}static utf8(e){return Array.isArray(e)?new uv(e):new uv(av.stringToUtf8ByteArray(e))}}class dv extends Error{constructor(e){super(e),this.name="RE2JSException"}}class mv extends dv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=`error parsing regexp: ${e}`;t&&(n+=`: \`${t}\``),super(n),this.name="RE2JSSyntaxException",this.message=n,this.error=e,this.input=t}getDescription(){return this.error}getPattern(){return this.input}}class fv extends dv{constructor(e){super(e),this.name="RE2JSCompileException"}}class gv extends dv{constructor(e){super(e),this.name="RE2JSGroupException"}}class yv extends dv{constructor(e){super(e),this.name="RE2JSFlagsException"}}class wv{static quoteReplacement(e){return e.indexOf("\\")<0&&e.indexOf("$")<0?e:e.split("").map((e=>{const t=e.codePointAt(0);return t===iv.CODES["\\"]||t===iv.CODES.$?`\\${e}`:e})).join("")}constructor(e,t){if(null===e)throw new Error("pattern is null");this.patternInput=e;const n=this.patternInput.re2();this.patternGroupCount=n.numberOfCapturingGroups(),this.groups=[],this.namedGroups=n.namedGroups,t instanceof cv?this.resetMatcherInput(t):Array.isArray(t)?this.resetMatcherInput(pv.utf8(t)):this.resetMatcherInput(pv.utf16(t))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(e){if(null===e)throw new Error("input is null");return this.matcherInput=e,this.reset(),this}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new gv(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e]}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new gv(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e+1]}group(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new gv(`group '${e}' not found`);e=t}const t=this.start(e),n=this.end(e);return t<0&&n<0?null:this.substring(t,n)}groupCount(){return this.patternGroupCount}loadGroup(e){if(e<0||e>this.patternGroupCount)throw new gv(`Group index out of bounds: ${e}`);if(!this.hasMatch)throw new gv("perhaps no match attempted");if(0===e||this.hasGroups)return;let t=this.groups[1]+1;t>this.matcherInputLength&&(t=this.matcherInputLength);const n=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],t,this.anchorFlag,1+this.patternGroupCount);if(!n[0])throw new gv("inconsistency in matching group data");this.groups=n[1],this.hasGroups=!0}matches(){return this.genMatch(0,rv.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,rv.ANCHOR_START)}find(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==e){if(e<0||e>this.matcherInputLength)throw new gv(`start index out of bounds: ${e}`);return this.reset(),this.genMatch(e,0)}return e=0,this.hasMatch&&(e=this.groups[1],this.groups[0]===this.groups[1]&&e++),this.genMatch(e,rv.UNANCHORED)}genMatch(e,t){const n=this.patternInput.re2().matchMachineInput(this.matcherInput,e,this.matcherInputLength,t,1);return!!n[0]&&(this.groups=n[1],this.hasMatch=!0,this.hasGroups=!1,this.anchorFlag=t,!0)}substring(e,t){return this.matcherInput.isUTF8Encoding()?av.utf8ByteArrayToString(this.matcherInput.asBytes().slice(e,t)):this.matcherInput.asCharSequence().substring(e,t).toString()}inputLength(){return this.matcherInputLength}appendReplacement(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";const r=this.start(),i=this.end();return this.appendPos<r&&(n+=this.substring(this.appendPos,r)),this.appendPos=i,n+=t?this.appendReplacementInternalPerl(e):this.appendReplacementInternal(e),n}appendReplacementInternal(e){let t="",n=0;const r=e.length;for(let i=0;i<r-1;i++)if(e.codePointAt(i)!==iv.CODES.get("\\")){if(e.codePointAt(i)===iv.CODES.get("$")){let s=e.codePointAt(i+1);if(iv.CODES.get("0")<=s&&s<=iv.CODES.get("9")){let o=s-iv.CODES.get("0");for(n<i&&(t+=e.substring(n,i)),i+=2;i<r&&(s=e.codePointAt(i),!(s<iv.CODES.get("0")||s>iv.CODES.get("9")||10*o+s-iv.CODES.get("0")>this.patternGroupCount));i++)o=10*o+s-iv.CODES.get("0");if(o>this.patternGroupCount)throw new gv(`n > number of groups: ${o}`);const a=this.group(o);null!==a&&(t+=a),n=i,i--;continue}if(s===iv.CODES.get("{")){n<i&&(t+=e.substring(n,i)),i++;let r=i+1;for(;r<e.length&&e.codePointAt(r)!==iv.CODES.get("}")&&e.codePointAt(r)!==iv.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==iv.CODES.get("}"))throw new gv("named capture group is missing trailing '}'");const s=e.substring(i+1,r);t+=this.group(s),n=r+1}}}else n<i&&(t+=e.substring(n,i)),i++,n=i;return n<r&&(t+=e.substring(n,r)),t}appendReplacementInternalPerl(e){let t="",n=0;const r=e.length;for(let i=0;i<r-1;i++)if(e.codePointAt(i)===iv.CODES.get("$")){let s=e.codePointAt(i+1);if(iv.CODES.get("$")===s){n<i&&(t+=e.substring(n,i)),t+="$",i++,n=i+1;continue}if(iv.CODES.get("&")===s){n<i&&(t+=e.substring(n,i));const r=this.group(0);t+=null!==r?r:"$&",i++,n=i+1;continue}if(iv.CODES.get("1")<=s&&s<=iv.CODES.get("9")){let o=s-iv.CODES.get("0");for(n<i&&(t+=e.substring(n,i)),i+=2;i<r&&(s=e.codePointAt(i),!(s<iv.CODES.get("0")||s>iv.CODES.get("9")||10*o+s-iv.CODES.get("0")>this.patternGroupCount));i++)o=10*o+s-iv.CODES.get("0");if(o>this.patternGroupCount){t+=`$${o}`,n=i,i--;continue}const a=this.group(o);null!==a&&(t+=a),n=i,i--;continue}if(s===iv.CODES.get("<")){n<i&&(t+=e.substring(n,i)),i++;let r=i+1;for(;r<e.length&&e.codePointAt(r)!==iv.CODES.get(">")&&e.codePointAt(r)!==iv.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==iv.CODES.get(">")){t+=e.substring(i-1,r+1),n=r+1;continue}const s=e.substring(i+1,r);Object.prototype.hasOwnProperty.call(this.namedGroups,s)?t+=this.group(s):t+=`$<${s}>`,n=r+1}}return n<r&&(t+=e.substring(n,r)),t}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!0,t)}replaceFirst(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!1,t)}replace(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";for(this.reset();this.find()&&(r+=this.appendReplacement(e,n),t););return r+=this.appendTail(),r}}class bv{static EOF(){return-8}canCheckPrefix(){return!0}endPos(){return this.end}}class vv extends bv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.bytes=e,this.start=t,this.end=n}step(e){if((e+=this.start)>=this.end)return bv.EOF();let t=255&this.bytes[e++];return 0==(128&t)?t<<3|1:192==(224&t)?(t&=31,e>=this.end?bv.EOF():(t=t<<6|63&this.bytes[e++],t<<3|2)):224==(240&t)?(t&=15,e+1>=this.end?bv.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|3)):(t&=7,e+2>=this.end?bv.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|4))}index(e,t){t+=this.start;const n=this.indexOf(this.bytes,e.prefixUTF8,t);return n<0?n:n-t}context(e){let t=-1;if((e+=this.start)>this.start&&e<=this.end){let n=e-1;if(t=this.bytes[n--],t>=128){let r=e-4;for(r<this.start&&(r=this.start);n>=r&&128==(192&this.bytes[n]);)n--;n<this.start&&(n=this.start),t=this.step(n)>>3}}const n=e<this.end?this.step(e)>>3:-1;return av.emptyOpContext(t,n)}indexOf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.length;if(0===r)return-1;let i=e.length;for(let s=n;s<=i-r;s++)for(let n=0;n<r&&e[s+n]===t[n];n++)if(n===r-1)return s;return-1}}class Cv extends bv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.charSequence=e,this.start=t,this.end=n}step(e){if((e+=this.start)<this.end){const t=this.charSequence.codePointAt(e);return t<<3|av.charCount(t)}return bv.EOF()}index(e,t){t+=this.start;const n=this.charSequence.indexOf(e.prefix,t);return n<0?n:n-t}context(e){const t=(e+=this.start)>0&&e<=this.charSequence.length?this.charSequence.codePointAt(e-1):-1,n=e<this.charSequence.length?this.charSequence.codePointAt(e):-1;return av.emptyOpContext(t,n)}}class Sv{static fromUTF8(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new vv(e,t,n)}static fromUTF16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new Cv(e,t,n)}}class Ev{static Op=lv(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","LEFT_PAREN","VERTICAL_BAR"]);static isPseudoOp(e){return e>=Ev.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(e){return e===iv.CODES.get("-")?"\\":""}static fromRegexp(e){const t=new Ev(e.op);return t.flags=e.flags,t.subs=e.subs,t.runes=e.runes,t.cap=e.cap,t.min=e.min,t.max=e.max,t.name=e.name,t.namedGroups=e.namedGroups,t}constructor(e){this.op=e,this.flags=0,this.subs=Ev.emptySubs(),this.runes=null,this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups={}}reinit(){this.flags=0,this.subs=Ev.emptySubs(),this.runes=null,this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups={}}toString(){return this.appendTo()}appendTo(){let e="";switch(this.op){case Ev.Op.NO_MATCH:e+="[^\\x00-\\x{10FFFF}]";break;case Ev.Op.EMPTY_MATCH:e+="(?:)";break;case Ev.Op.STAR:case Ev.Op.PLUS:case Ev.Op.QUEST:case Ev.Op.REPEAT:{const t=this.subs[0];switch(t.op>Ev.Op.CAPTURE||t.op===Ev.Op.LITERAL&&t.runes.length>1?e+=`(?:${t.appendTo()})`:e+=t.appendTo(),this.op){case Ev.Op.STAR:e+="*";break;case Ev.Op.PLUS:e+="+";break;case Ev.Op.QUEST:e+="?";break;case Ev.Op.REPEAT:e+=`{${this.min}`,this.min!==this.max&&(e+=",",this.max>=0&&(e+=this.max)),e+="}"}0!=(this.flags&rv.NON_GREEDY)&&(e+="?");break}case Ev.Op.CONCAT:for(let t of this.subs)t.op===Ev.Op.ALTERNATE?e+=`(?:${t.appendTo()})`:e+=t.appendTo();break;case Ev.Op.ALTERNATE:{let t="";for(let n of this.subs)e+=t,t="|",e+=n.appendTo();break}case Ev.Op.LITERAL:0!=(this.flags&rv.FOLD_CASE)&&(e+="(?i:");for(let t of this.runes)e+=av.escapeRune(t);0!=(this.flags&rv.FOLD_CASE)&&(e+=")");break;case Ev.Op.ANY_CHAR_NOT_NL:e+="(?-s:.)";break;case Ev.Op.ANY_CHAR:e+="(?s:.)";break;case Ev.Op.CAPTURE:null===this.name||0===this.name.length?e+="(":e+=`(?P<${this.name}>`,this.subs[0].op!==Ev.Op.EMPTY_MATCH&&(e+=this.subs[0].appendTo()),e+=")";break;case Ev.Op.BEGIN_TEXT:e+="\\A";break;case Ev.Op.END_TEXT:0!=(this.flags&rv.WAS_DOLLAR)?e+="(?-m:$)":e+="\\z";break;case Ev.Op.BEGIN_LINE:e+="^";break;case Ev.Op.END_LINE:e+="$";break;case Ev.Op.WORD_BOUNDARY:e+="\\b";break;case Ev.Op.NO_WORD_BOUNDARY:e+="\\B";break;case Ev.Op.CHAR_CLASS:if(this.runes.length%2!=0){e+="[invalid char class]";break}if(e+="[",0===this.runes.length)e+="^\\x00-\\x{10FFFF}";else if(0===this.runes[0]&&this.runes[this.runes.length-1]===ov.MAX_RUNE){e+="^";for(let t=1;t<this.runes.length-1;t+=2){const n=this.runes[t]+1,r=this.runes[t+1]-1;e+=Ev.quoteIfHyphen(n),e+=av.escapeRune(n),n!==r&&(e+="-",e+=Ev.quoteIfHyphen(r),e+=av.escapeRune(r))}}else for(let t=0;t<this.runes.length;t+=2){const n=this.runes[t],r=this.runes[t+1];e+=Ev.quoteIfHyphen(n),e+=av.escapeRune(n),n!==r&&(e+="-",e+=Ev.quoteIfHyphen(r),e+=av.escapeRune(r))}e+="]";break;default:e+=this.op}return e}maxCap(){let e=0;if(this.op===Ev.Op.CAPTURE&&(e=this.cap),null!==this.subs)for(let t of this.subs){const n=t.maxCap();e<n&&(e=n)}return e}equals(e){if(!(null!==e&&e instanceof Ev))return!1;if(this.op!==e.op)return!1;switch(this.op){case Ev.Op.END_TEXT:if((this.flags&rv.WAS_DOLLAR)!=(e.flags&rv.WAS_DOLLAR))return!1;break;case Ev.Op.LITERAL:case Ev.Op.CHAR_CLASS:if(null===this.runes&&null===e.runes)break;if(null===this.runes||null===e.runes)return!1;if(this.runes.length!==e.runes.length)return!1;for(let t=0;t<this.runes.length;t++)if(this.runes[t]!==e.runes[t])return!1;break;case Ev.Op.ALTERNATE:case Ev.Op.CONCAT:if(this.subs.length!==e.subs.length)return!1;for(let t=0;t<this.subs.length;++t)if(!this.subs[t].equals(e.subs[t]))return!1;break;case Ev.Op.STAR:case Ev.Op.PLUS:case Ev.Op.QUEST:if((this.flags&rv.NON_GREEDY)!=(e.flags&rv.NON_GREEDY)||!this.subs[0].equals(e.subs[0]))return!1;break;case Ev.Op.REPEAT:if((this.flags&rv.NON_GREEDY)!=(e.flags&rv.NON_GREEDY)||this.min!==e.min||this.max!==e.max||!this.subs[0].equals(e.subs[0]))return!1;break;case Ev.Op.CAPTURE:if(this.cap!==e.cap||(null===this.name?null!==e.name:this.name!==e.name)||!this.subs[0].equals(e.subs[0]))return!1}return!0}}class kv{static ALT=1;static ALT_MATCH=2;static CAPTURE=3;static EMPTY_WIDTH=4;static FAIL=5;static MATCH=6;static NOP=7;static RUNE=8;static RUNE1=9;static RUNE_ANY=10;static RUNE_ANY_NOT_NL=11;static isRuneOp(e){return kv.RUNE<=e&&e<=kv.RUNE_ANY_NOT_NL}static escapeRunes(e){let t='"';for(let n of e)t+=av.escapeRune(n);return t+='"',t}constructor(e){this.op=e,this.out=0,this.arg=0,this.runes=null}matchRune(e){if(1===this.runes.length){const t=this.runes[0];return 0!=(this.arg&rv.FOLD_CASE)?ov.equalsIgnoreCase(t,e):e===t}for(let t=0;t<this.runes.length&&t<=8;t+=2){if(e<this.runes[t])return!1;if(e<=this.runes[t+1])return!0}let t=0,n=this.runes.length/2|0;for(;t<n;){const r=t+((n-t)/2|0);if(this.runes[2*r]<=e){if(e<=this.runes[2*r+1])return!0;t=r+1}else n=r}return!1}toString(){switch(this.op){case kv.ALT:return`alt -> ${this.out}, ${this.arg}`;case kv.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case kv.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case kv.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case kv.MATCH:return"match";case kv.FAIL:return"fail";case kv.NOP:return`nop -> ${this.out}`;case kv.RUNE:return null===this.runes?"rune <null>":["rune ",kv.escapeRunes(this.runes),0!=(this.arg&rv.FOLD_CASE)?"/i":""," -> ",this.out].join("");case kv.RUNE1:return`rune1 ${kv.escapeRunes(this.runes)} -> ${this.out}`;case kv.RUNE_ANY:return`any -> ${this.out}`;case kv.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw new Error("unhandled case in Inst.toString")}}}class Rv{constructor(){this.inst=[],this.start=0,this.numCap=2}getInst(e){return this.inst[e]}numInst(){return this.inst.length}addInst(e){this.inst.push(new kv(e))}skipNop(e){let t=this.inst[e];for(;t.op===kv.NOP||t.op===kv.CAPTURE;)t=this.inst[e],e=t.out;return t}prefix(){let e="",t=this.skipNop(this.start);if(!kv.isRuneOp(t.op)||1!==t.runes.length)return[t.op===kv.MATCH,e];for(;kv.isRuneOp(t.op)&&1===t.runes.length&&0==(t.arg&rv.FOLD_CASE);)e+=String.fromCodePoint(t.runes[0]),t=this.skipNop(t.out);return[t.op===kv.MATCH,e]}startCond(){let e=0,t=this.start;e:for(;;){const n=this.inst[t];switch(n.op){case kv.EMPTY_WIDTH:e|=n.arg;break;case kv.FAIL:return-1;case kv.CAPTURE:case kv.NOP:break;default:break e}t=n.out}return e}next(e){const t=this.inst[e>>1];return 0==(1&e)?t.out:t.arg}patch(e,t){for(;0!==e;){const n=this.inst[e>>1];0==(1&e)?(e=n.out,n.out=t):(e=n.arg,n.arg=t)}}append(e,t){if(0===e)return t;if(0===t)return e;let n=e;for(;;){const e=this.next(n);if(0===e)break;n=e}const r=this.inst[n>>1];return 0==(1&n)?r.out=t:r.arg=t,e}toString(){let e="";for(let t=0;t<this.inst.length;t++){const n=e.length;e+=t,t===this.start&&(e+="*"),e+=" ".substring(e.length-n),e+=this.inst[t],e+="\n"}return e}}class Tv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.i=e,this.out=t,this.nullable=n}}class Av{static ANY_RUNE_NOT_NL(){return[0,iv.CODES.get("\n")-1,iv.CODES.get("\n")+1,ov.MAX_RUNE]}static ANY_RUNE(){return[0,ov.MAX_RUNE]}static compileRegexp(e){const t=new Av,n=t.compile(e);return t.prog.patch(n.out,t.newInst(kv.MATCH).i),t.prog.start=n.i,t.prog}constructor(){this.prog=new Rv,this.newInst(kv.FAIL)}newInst(e){return this.prog.addInst(e),new Tv(this.prog.numInst()-1,0,!0)}nop(){const e=this.newInst(kv.NOP);return e.out=e.i<<1,e}fail(){return new Tv}cap(e){const t=this.newInst(kv.CAPTURE);return t.out=t.i<<1,this.prog.getInst(t.i).arg=e,this.prog.numCap<e+1&&(this.prog.numCap=e+1),t}cat(e,t){return 0===e.i||0===t.i?this.fail():(this.prog.patch(e.out,t.i),new Tv(e.i,t.out,e.nullable&&t.nullable))}alt(e,t){if(0===e.i)return t;if(0===t.i)return e;const n=this.newInst(kv.ALT),r=this.prog.getInst(n.i);return r.out=e.i,r.arg=t.i,n.out=this.prog.append(e.out,t.out),n.nullable=e.nullable||t.nullable,n}loop(e,t){const n=this.newInst(kv.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),this.prog.patch(e.out,n.i),n}quest(e,t){const n=this.newInst(kv.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),n.out=this.prog.append(n.out,e.out),n}star(e,t){return e.nullable?this.quest(this.plus(e,t),t):this.loop(e,t)}plus(e,t){return new Tv(e.i,this.loop(e,t).out,e.nullable)}empty(e){const t=this.newInst(kv.EMPTY_WIDTH);return this.prog.getInst(t.i).arg=e,t.out=t.i<<1,t}rune(e,t){const n=this.newInst(kv.RUNE);n.nullable=!1;const r=this.prog.getInst(n.i);return r.runes=e,t&=rv.FOLD_CASE,1===e.length&&ov.simpleFold(e[0])!==e[0]||(t&=~rv.FOLD_CASE),r.arg=t,n.out=n.i<<1,0==(t&rv.FOLD_CASE)&&1===e.length||2===e.length&&e[0]===e[1]?r.op=kv.RUNE1:2===e.length&&0===e[0]&&e[1]===ov.MAX_RUNE?r.op=kv.RUNE_ANY:4===e.length&&0===e[0]&&e[1]===iv.CODES.get("\n")-1&&e[2]===iv.CODES.get("\n")+1&&e[3]===ov.MAX_RUNE&&(r.op=kv.RUNE_ANY_NOT_NL),n}compile(e){switch(e.op){case Ev.Op.NO_MATCH:return this.fail();case Ev.Op.EMPTY_MATCH:return this.nop();case Ev.Op.LITERAL:if(0===e.runes.length)return this.nop();{let t=null;for(let n of e.runes){const r=this.rune([n],e.flags);t=null===t?r:this.cat(t,r)}return t}case Ev.Op.CHAR_CLASS:return this.rune(e.runes,e.flags);case Ev.Op.ANY_CHAR_NOT_NL:return this.rune(Av.ANY_RUNE_NOT_NL(),0);case Ev.Op.ANY_CHAR:return this.rune(Av.ANY_RUNE(),0);case Ev.Op.BEGIN_LINE:return this.empty(av.EMPTY_BEGIN_LINE);case Ev.Op.END_LINE:return this.empty(av.EMPTY_END_LINE);case Ev.Op.BEGIN_TEXT:return this.empty(av.EMPTY_BEGIN_TEXT);case Ev.Op.END_TEXT:return this.empty(av.EMPTY_END_TEXT);case Ev.Op.WORD_BOUNDARY:return this.empty(av.EMPTY_WORD_BOUNDARY);case Ev.Op.NO_WORD_BOUNDARY:return this.empty(av.EMPTY_NO_WORD_BOUNDARY);case Ev.Op.CAPTURE:{const t=this.cap(e.cap<<1),n=this.compile(e.subs[0]),r=this.cap(e.cap<<1|1);return this.cat(this.cat(t,n),r)}case Ev.Op.STAR:return this.star(this.compile(e.subs[0]),0!=(e.flags&rv.NON_GREEDY));case Ev.Op.PLUS:return this.plus(this.compile(e.subs[0]),0!=(e.flags&rv.NON_GREEDY));case Ev.Op.QUEST:return this.quest(this.compile(e.subs[0]),0!=(e.flags&rv.NON_GREEDY));case Ev.Op.CONCAT:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.cat(t,e)}return t}case Ev.Op.ALTERNATE:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.alt(t,e)}return t}default:throw new fv("regexp: unhandled case in compile")}}}class xv{static simplify(e){if(null===e)return null;switch(e.op){case Ev.Op.CAPTURE:case Ev.Op.CONCAT:case Ev.Op.ALTERNATE:{let t=e;for(let n=0;n<e.subs.length;n++){const r=e.subs[n],i=xv.simplify(r);t===e&&i!==r&&(t=Ev.fromRegexp(e),t.runes=null,t.subs=e.subs.slice(0,e.subs.length)),t!==e&&(t.subs[n]=i)}return t}case Ev.Op.STAR:case Ev.Op.PLUS:case Ev.Op.QUEST:{const t=xv.simplify(e.subs[0]);return xv.simplify1(e.op,e.flags,t,e)}case Ev.Op.REPEAT:{if(0===e.min&&0===e.max)return new Ev(Ev.Op.EMPTY_MATCH);const t=xv.simplify(e.subs[0]);if(-1===e.max){if(0===e.min)return xv.simplify1(Ev.Op.STAR,e.flags,t,null);if(1===e.min)return xv.simplify1(Ev.Op.PLUS,e.flags,t,null);const n=new Ev(Ev.Op.CONCAT),r=[];for(let n=0;n<e.min-1;n++)r.push(t);return r.push(xv.simplify1(Ev.Op.PLUS,e.flags,t,null)),n.subs=r.slice(0),n}if(1===e.min&&1===e.max)return t;let n=null;if(e.min>0){n=[];for(let r=0;r<e.min;r++)n.push(t)}if(e.max>e.min){let r=xv.simplify1(Ev.Op.QUEST,e.flags,t,null);for(let n=e.min+1;n<e.max;n++){const n=new Ev(Ev.Op.CONCAT);n.subs=[t,r],r=xv.simplify1(Ev.Op.QUEST,e.flags,n,null)}if(null===n)return r;n.push(r)}if(null!==n){const e=new Ev(Ev.Op.CONCAT);return e.subs=n.slice(0),e}return new Ev(Ev.Op.NO_MATCH)}}return e}static simplify1(e,t,n,r){return n.op===Ev.Op.EMPTY_MATCH||e===n.op&&(t&rv.NON_GREEDY)==(n.flags&rv.NON_GREEDY)?n:(null!==r&&r.op===e&&(r.flags&rv.NON_GREEDY)==(t&rv.NON_GREEDY)&&n===r.subs[0]||((r=new Ev(e)).flags=t,r.subs=[n]),r)}}class Dv{constructor(e,t){this.sign=e,this.cls=t}}const _v=[48,57],Mv=[9,10,12,13,32,32],Pv=[48,57,65,90,95,95,97,122],Iv=new Map([["\\d",new Dv(1,_v)],["\\D",new Dv(-1,_v)],["\\s",new Dv(1,Mv)],["\\S",new Dv(-1,Mv)],["\\w",new Dv(1,Pv)],["\\W",new Dv(-1,Pv)]]),Ov=[48,57,65,90,97,122],Nv=[65,90,97,122],Lv=[0,127],Bv=[9,9,32,32],Fv=[0,31,127,127],Hv=[48,57],Uv=[33,126],Zv=[97,122],$v=[32,126],Wv=[33,47,58,64,91,96,123,126],qv=[9,13,32,32],Vv=[65,90],Gv=[48,57,65,90,95,95,97,122],zv=[48,57,65,70,97,102],jv=new Map([["[:alnum:]",new Dv(1,Ov)],["[:^alnum:]",new Dv(-1,Ov)],["[:alpha:]",new Dv(1,Nv)],["[:^alpha:]",new Dv(-1,Nv)],["[:ascii:]",new Dv(1,Lv)],["[:^ascii:]",new Dv(-1,Lv)],["[:blank:]",new Dv(1,Bv)],["[:^blank:]",new Dv(-1,Bv)],["[:cntrl:]",new Dv(1,Fv)],["[:^cntrl:]",new Dv(-1,Fv)],["[:digit:]",new Dv(1,Hv)],["[:^digit:]",new Dv(-1,Hv)],["[:graph:]",new Dv(1,Uv)],["[:^graph:]",new Dv(-1,Uv)],["[:lower:]",new Dv(1,Zv)],["[:^lower:]",new Dv(-1,Zv)],["[:print:]",new Dv(1,$v)],["[:^print:]",new Dv(-1,$v)],["[:punct:]",new Dv(1,Wv)],["[:^punct:]",new Dv(-1,Wv)],["[:space:]",new Dv(1,qv)],["[:^space:]",new Dv(-1,qv)],["[:upper:]",new Dv(1,Vv)],["[:^upper:]",new Dv(-1,Vv)],["[:word:]",new Dv(1,Gv)],["[:^word:]",new Dv(-1,Gv)],["[:xdigit:]",new Dv(1,zv)],["[:^xdigit:]",new Dv(-1,zv)]]);class Kv{static charClassToString(e,t){let n="[";for(let r=0;r<t;r+=2){r>0&&(n+=" ");const t=e[r],i=e[r+1];n+=t===i?`0x${t.toString(16)}`:`0x${t.toString(16)}-0x${i.toString(16)}`}return n+="]",n}static cmp(e,t,n,r){const i=e[t]-n;return 0!==i?i:r-e[t+1]}static qsortIntPair(e,t,n){const r=-2&((t+n)/2|0),i=e[r],s=e[r+1];let o=t,a=n;for(;o<=a;){for(;o<n&&Kv.cmp(e,o,i,s)<0;)o+=2;for(;a>t&&Kv.cmp(e,a,i,s)>0;)a-=2;if(o<=a){if(o!==a){let t=e[o];e[o]=e[a],e[a]=t,t=e[o+1],e[o+1]=e[a+1],e[a+1]=t}o+=2,a-=2}}t<a&&Kv.qsortIntPair(e,t,a),o<n&&Kv.qsortIntPair(e,o,n)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:av.emptyInts();this.r=e,this.len=e.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;Kv.qsortIntPair(this.r,0,this.len-2);let e=2;for(let t=2;t<this.len;t+=2){const n=this.r[t],r=this.r[t+1];n<=this.r[e-1]+1?r>this.r[e-1]&&(this.r[e-1]=r):(this.r[e]=n,this.r[e+1]=r,e+=2)}return this.len=e,this}appendLiteral(e,t){return 0!=(t&rv.FOLD_CASE)?this.appendFoldedRange(e,e):this.appendRange(e,e)}appendRange(e,t){if(this.len>0)for(let n=2;n<=4;n+=2)if(this.len>=n){const r=this.r[this.len-n],i=this.r[this.len-n+1];if(e<=i+1&&r<=t+1)return e<r&&(this.r[this.len-n]=e),t>i&&(this.r[this.len-n+1]=t),this}return this.r[this.len++]=e,this.r[this.len++]=t,this}appendFoldedRange(e,t){if(e<=ov.MIN_FOLD&&t>=ov.MAX_FOLD)return this.appendRange(e,t);if(t<ov.MIN_FOLD||e>ov.MAX_FOLD)return this.appendRange(e,t);e<ov.MIN_FOLD&&(this.appendRange(e,ov.MIN_FOLD-1),e=ov.MIN_FOLD),t>ov.MAX_FOLD&&(this.appendRange(ov.MAX_FOLD+1,t),t=ov.MAX_FOLD);for(let n=e;n<=t;n++){this.appendRange(n,n);for(let e=ov.simpleFold(n);e!==n;e=ov.simpleFold(e))this.appendRange(e,e)}return this}appendClass(e){for(let t=0;t<e.length;t+=2)this.appendRange(e[t],e[t+1]);return this}appendFoldedClass(e){for(let t=0;t<e.length;t+=2)this.appendFoldedRange(e[t],e[t+1]);return this}appendNegatedClass(e){let t=0;for(let n=0;n<e.length;n+=2){const r=e[n],i=e[n+1];t<=r-1&&this.appendRange(t,r-1),t=i+1}return t<=ov.MAX_RUNE&&this.appendRange(t,ov.MAX_RUNE),this}appendTable(e){for(let t of e){const e=t[0],n=t[1],r=t[2];if(1!==r)for(let t=e;t<=n;t+=r)this.appendRange(t,t);else this.appendRange(e,n)}return this}appendNegatedTable(e){let t=0;for(let n of e){const e=n[0],r=n[1],i=n[2];if(1!==i)for(let n=e;n<=r;n+=i)t<=n-1&&this.appendRange(t,n-1),t=n+1;else t<=e-1&&this.appendRange(t,e-1),t=r+1}return t<=ov.MAX_RUNE&&this.appendRange(t,ov.MAX_RUNE),this}appendTableWithSign(e,t){return t<0?this.appendNegatedTable(e):this.appendTable(e)}negateClass(){let e=0,t=0;for(let n=0;n<this.len;n+=2){const r=this.r[n],i=this.r[n+1];e<=r-1&&(this.r[t]=e,this.r[t+1]=r-1,t+=2),e=i+1}return this.len=t,e<=ov.MAX_RUNE&&(this.r[this.len++]=e,this.r[this.len++]=ov.MAX_RUNE),this}appendClassWithSign(e,t){return t<0?this.appendNegatedClass(e):this.appendClass(e)}appendGroup(e,t){let n=e.cls;return t&&(n=(new Kv).appendFoldedClass(n).cleanClass().toArray()),this.appendClassWithSign(n,e.sign)}toString(){return Kv.charClassToString(this.r,this.len)}}class Yv{static of(e,t){return new Yv(e,t)}constructor(e,t){this.first=e,this.second=t}}class Xv{constructor(e){this.str=e,this.position=0}pos(){return this.position}rewindTo(e){this.position=e}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(e){this.position+=e}skipString(e){this.position+=e.length}pop(){const e=this.str.codePointAt(this.position);return this.position+=av.charCount(e),e}lookingAt(e){return this.rest().startsWith(e)}rest(){return this.str.substring(this.position)}from(e){return this.str.substring(e,this.position)}toString(){return this.rest()}}class Qv{static ERR_INTERNAL_ERROR="regexp/syntax: internal error";static ERR_INVALID_CHAR_RANGE="invalid character class range";static ERR_INVALID_ESCAPE="invalid escape sequence";static ERR_INVALID_NAMED_CAPTURE="invalid named capture";static ERR_INVALID_PERL_OP="invalid or unsupported Perl syntax";static ERR_INVALID_REPEAT_OP="invalid nested repetition operator";static ERR_INVALID_REPEAT_SIZE="invalid repeat count";static ERR_MISSING_BRACKET="missing closing ]";static ERR_MISSING_PAREN="missing closing )";static ERR_MISSING_REPEAT_ARGUMENT="missing argument to repetition operator";static ERR_TRAILING_BACKSLASH="trailing backslash at end of expression";static ERR_DUPLICATE_NAMED_CAPTURE="duplicate capture group name";static ANY_TABLE(){return[[0,ov.MAX_RUNE,1]]}static unicodeTable(e){return"Any"===e?Yv.of(Qv.ANY_TABLE(),Qv.ANY_TABLE()):sv.CATEGORIES.has(e)?Yv.of(sv.CATEGORIES.get(e),sv.FOLD_CATEGORIES.get(e)):sv.SCRIPTS.has(e)?Yv.of(sv.SCRIPTS.get(e),sv.FOLD_SCRIPT.get(e)):null}static minFoldRune(e){if(e<ov.MIN_FOLD||e>ov.MAX_FOLD)return e;let t=e;const n=e;for(e=ov.simpleFold(e);e!==n;e=ov.simpleFold(e))t>e&&(t=e);return t}static leadingRegexp(e){if(e.op===Ev.Op.EMPTY_MATCH)return null;if(e.op===Ev.Op.CONCAT&&e.subs.length>0){const t=e.subs[0];return t.op===Ev.Op.EMPTY_MATCH?null:t}return e}static literalRegexp(e,t){const n=new Ev(Ev.Op.LITERAL);return n.flags=t,n.runes=av.stringToRunes(e),n}static parse(e,t){return new Qv(e,t).parseInternal()}static parseRepeat(e){const t=e.pos();if(!e.more()||!e.lookingAt("{"))return-1;e.skip(1);const n=Qv.parseInt(e);if(-1===n)return-1;if(!e.more())return-1;let r;if(e.lookingAt(",")){if(e.skip(1),!e.more())return-1;if(e.lookingAt("}"))r=-1;else if(-1===(r=Qv.parseInt(e)))return-1}else r=n;if(!e.more()||!e.lookingAt("}"))return-1;if(e.skip(1),n<0||n>1e3||-2===r||r>1e3||r>=0&&n>r)throw new mv(Qv.ERR_INVALID_REPEAT_SIZE,e.from(t));return n<<16|r&ov.MAX_BMP}static isValidCaptureName(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.codePointAt(t);if(n!==iv.CODES.get("_")&&!av.isalnum(n))return!1}return!0}static parseInt(e){const t=e.pos();for(;e.more()&&e.peek()>=iv.CODES.get("0")&&e.peek()<=iv.CODES.get("9");)e.skip(1);const n=e.from(t);return 0===n.length||n.length>1&&n.codePointAt(0)===iv.CODES.get("0")?-1:n.length>8?-2:parseFloat(n,10)}static isCharClass(e){return e.op===Ev.Op.LITERAL&&1===e.runes.length||e.op===Ev.Op.CHAR_CLASS||e.op===Ev.Op.ANY_CHAR_NOT_NL||e.op===Ev.Op.ANY_CHAR}static matchRune(e,t){switch(e.op){case Ev.Op.LITERAL:return 1===e.runes.length&&e.runes[0]===t;case Ev.Op.CHAR_CLASS:for(let n=0;n<e.runes.length;n+=2)if(e.runes[n]<=t&&t<=e.runes[n+1])return!0;return!1;case Ev.Op.ANY_CHAR_NOT_NL:return t!==iv.CODES.get("\n");case Ev.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(e,t){switch(e.op){case Ev.Op.ANY_CHAR:break;case Ev.Op.ANY_CHAR_NOT_NL:Qv.matchRune(t,iv.CODES.get("\n"))&&(e.op=Ev.Op.ANY_CHAR);break;case Ev.Op.CHAR_CLASS:t.op===Ev.Op.LITERAL?e.runes=new Kv(e.runes).appendLiteral(t.runes[0],t.flags).toArray():e.runes=new Kv(e.runes).appendClass(t.runes).toArray();break;case Ev.Op.LITERAL:if(t.runes[0]===e.runes[0]&&t.flags===e.flags)break;e.op=Ev.Op.CHAR_CLASS,e.runes=(new Kv).appendLiteral(e.runes[0],e.flags).appendLiteral(t.runes[0],t.flags).toArray()}}static parseEscape(e){const t=e.pos();if(e.skip(1),!e.more())throw new mv(Qv.ERR_TRAILING_BACKSLASH);let n=e.pop();e:switch(n){case iv.CODES.get("1"):case iv.CODES.get("2"):case iv.CODES.get("3"):case iv.CODES.get("4"):case iv.CODES.get("5"):case iv.CODES.get("6"):case iv.CODES.get("7"):if(!e.more()||e.peek()<iv.CODES.get("0")||e.peek()>iv.CODES.get("7"))break;case iv.CODES.get("0"):{let t=n-iv.CODES.get("0");for(let n=1;n<3&&!(!e.more()||e.peek()<iv.CODES.get("0")||e.peek()>iv.CODES.get("7"));n++)t=8*t+e.peek()-iv.CODES.get("0"),e.skip(1);return t}case iv.CODES.get("x"):{if(!e.more())break;if(n=e.pop(),n===iv.CODES.get("{")){let t=0,r=0;for(;;){if(!e.more())break e;if(n=e.pop(),n===iv.CODES.get("}"))break;const i=av.unhex(n);if(i<0)break e;if(r=16*r+i,r>ov.MAX_RUNE)break e;t++}if(0===t)break e;return r}const t=av.unhex(n);if(!e.more())break;n=e.pop();const r=av.unhex(n);if(t<0||r<0)break;return 16*t+r}case iv.CODES.get("a"):return iv.CODES.get("");case iv.CODES.get("f"):return iv.CODES.get("\f");case iv.CODES.get("n"):return iv.CODES.get("\n");case iv.CODES.get("r"):return iv.CODES.get("\r");case iv.CODES.get("t"):return iv.CODES.get("\t");case iv.CODES.get("v"):return iv.CODES.get("\v");default:if(!av.isalnum(n))return n}throw new mv(Qv.ERR_INVALID_ESCAPE,e.from(t))}static parseClassChar(e,t){if(!e.more())throw new mv(Qv.ERR_MISSING_BRACKET,e.from(t));return e.lookingAt("\\")?Qv.parseEscape(e):e.pop()}static concatRunes(e,t){return[...e,...t]}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.wholeRegexp=e,this.flags=t,this.numCap=0,this.namedGroups={},this.stack=[],this.free=null}newRegexp(e){let t=this.free;return null!==t&&null!==t.subs&&t.subs.length>0?(this.free=t.subs[0],t.reinit(),t.op=e):t=new Ev(e),t}reuse(e){null!==e.subs&&e.subs.length>0&&(e.subs[0]=this.free),this.free=e}pop(){return this.stack.pop()}popToPseudo(){const e=this.stack.length;let t=e;for(;t>0&&!Ev.isPseudoOp(this.stack[t-1].op);)t--;const n=this.stack.slice(t,e);return this.stack=this.stack.slice(0,t),n}push(e){if(e.op===Ev.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]===e.runes[1]){if(this.maybeConcat(e.runes[0],this.flags&~rv.FOLD_CASE))return null;e.op=Ev.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags&~rv.FOLD_CASE}else if(e.op===Ev.Op.CHAR_CLASS&&4===e.runes.length&&e.runes[0]===e.runes[1]&&e.runes[2]===e.runes[3]&&ov.simpleFold(e.runes[0])===e.runes[2]&&ov.simpleFold(e.runes[2])===e.runes[0]||e.op===Ev.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]+1===e.runes[1]&&ov.simpleFold(e.runes[0])===e.runes[1]&&ov.simpleFold(e.runes[1])===e.runes[0]){if(this.maybeConcat(e.runes[0],this.flags|rv.FOLD_CASE))return null;e.op=Ev.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags|rv.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(e),e}maybeConcat(e,t){const n=this.stack.length;if(n<2)return!1;const r=this.stack[n-1],i=this.stack[n-2];return r.op===Ev.Op.LITERAL&&i.op===Ev.Op.LITERAL&&(r.flags&rv.FOLD_CASE)==(i.flags&rv.FOLD_CASE)&&(i.runes=Qv.concatRunes(i.runes,r.runes),e>=0?(r.runes=[e],r.flags=t,!0):(this.pop(),this.reuse(r),!1))}newLiteral(e,t){const n=this.newRegexp(Ev.Op.LITERAL);return n.flags=t,0!=(t&rv.FOLD_CASE)&&(e=Qv.minFoldRune(e)),n.runes=[e],n}literal(e){this.push(this.newLiteral(e,this.flags))}op(e){const t=this.newRegexp(e);return t.flags=this.flags,this.push(t)}repeat(e,t,n,r,i,s){let o=this.flags;if(0!=(o&rv.PERL_X)&&(i.more()&&i.lookingAt("?")&&(i.skip(1),o^=rv.NON_GREEDY),-1!==s))throw new mv(Qv.ERR_INVALID_REPEAT_OP,i.from(s));const a=this.stack.length;if(0===a)throw new mv(Qv.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const l=this.stack[a-1];if(Ev.isPseudoOp(l.op))throw new mv(Qv.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const c=this.newRegexp(e);c.min=t,c.max=n,c.flags=o,c.subs=[l],this.stack[a-1]=c}concat(){this.maybeConcat(-1,0);const e=this.popToPseudo();return 0===e.length?this.push(this.newRegexp(Ev.Op.EMPTY_MATCH)):this.push(this.collapse(e,Ev.Op.CONCAT))}alternate(){const e=this.popToPseudo();return e.length>0&&this.cleanAlt(e[e.length-1]),0===e.length?this.push(this.newRegexp(Ev.Op.NO_MATCH)):this.push(this.collapse(e,Ev.Op.ALTERNATE))}cleanAlt(e){e.op===Ev.Op.CHAR_CLASS&&(e.runes=new Kv(e.runes).cleanClass().toArray(),2===e.runes.length&&0===e.runes[0]&&e.runes[1]===ov.MAX_RUNE?(e.runes=null,e.op=Ev.Op.ANY_CHAR):4===e.runes.length&&0===e.runes[0]&&e.runes[1]===iv.CODES.get("\n")-1&&e.runes[2]===iv.CODES.get("\n")+1&&e.runes[3]===ov.MAX_RUNE&&(e.runes=null,e.op=Ev.Op.ANY_CHAR_NOT_NL))}collapse(e,t){if(1===e.length)return e[0];let n=0;for(let r of e)n+=r.op===t?r.subs.length:1;let r=new Array(n).fill(null),i=0;for(let n of e)n.op===t?(r.splice(i,n.subs.length,...n.subs),i+=n.subs.length,this.reuse(n)):r[i++]=n;let s=this.newRegexp(t);if(s.subs=r,t===Ev.Op.ALTERNATE&&(s.subs=this.factor(s.subs),1===s.subs.length)){const e=s;s=s.subs[0],this.reuse(e)}return s}factor(e){if(e.length<2)return e;let t=0,n=e.length,r=0,i=null,s=0,o=0,a=0;for(let l=0;l<=n;l++){let c=null,u=0,h=0;if(l<n){let n=e[t+l];if(n.op===Ev.Op.CONCAT&&n.subs.length>0&&(n=n.subs[0]),n.op===Ev.Op.LITERAL&&(c=n.runes,u=n.runes.length,h=n.flags&rv.FOLD_CASE),h===o){let e=0;for(;e<s&&e<u&&i[e]===c[e];)e++;if(e>0){s=e;continue}}}if(l===a);else if(l===a+1)e[r++]=e[t+a];else{const n=this.newRegexp(Ev.Op.LITERAL);n.flags=o,n.runes=i.slice(0,s);for(let n=a;n<l;n++)e[t+n]=this.removeLeadingString(e[t+n],s);const c=this.collapse(e.slice(t+a,t+l),Ev.Op.ALTERNATE),u=this.newRegexp(Ev.Op.CONCAT);u.subs=[n,c],e[r++]=u}a=l,i=c,s=u,o=h}n=r,t=0,a=0,r=0;let l=null;for(let i=0;i<=n;i++){let s=null;if(!(i<n&&(s=Qv.leadingRegexp(e[t+i]),null!==l&&l.equals(s)&&(Qv.isCharClass(l)||l.op===Ev.Op.REPEAT&&l.min===l.max&&Qv.isCharClass(l.subs[0]))))){if(i===a);else if(i===a+1)e[r++]=e[t+a];else{const n=l;for(let n=a;n<i;n++){const r=n!==a;e[t+n]=this.removeLeadingRegexp(e[t+n],r)}const s=this.collapse(e.slice(t+a,t+i),Ev.Op.ALTERNATE),o=this.newRegexp(Ev.Op.CONCAT);o.subs=[n,s],e[r++]=o}a=i,l=s}}n=r,t=0,a=0,r=0;for(let i=0;i<=n;i++)if(!(i<n&&Qv.isCharClass(e[t+i]))){if(i===a);else if(i===a+1)e[r++]=e[t+a];else{let n=a;for(let r=a+1;r<i;r++){const i=e[t+n],s=e[t+r];(i.op<s.op||i.op===s.op&&(null!==i.runes?i.runes.length:0)<(null!==s.runes?s.runes.length:0))&&(n=r)}const s=e[t+a];e[t+a]=e[t+n],e[t+n]=s;for(let n=a+1;n<i;n++)Qv.mergeCharClass(e[t+a],e[t+n]),this.reuse(e[t+n]);this.cleanAlt(e[t+a]),e[r++]=e[t+a]}i<n&&(e[r++]=e[t+i]),a=i+1}n=r,t=0,a=0,r=0;for(let i=0;i<n;++i)i+1<n&&e[t+i].op===Ev.Op.EMPTY_MATCH&&e[t+i+1].op===Ev.Op.EMPTY_MATCH||(e[r++]=e[t+i]);return n=r,t=0,e.slice(t,n)}removeLeadingString(e,t){if(e.op===Ev.Op.CONCAT&&e.subs.length>0){const n=this.removeLeadingString(e.subs[0],t);if(e.subs[0]=n,n.op===Ev.Op.EMPTY_MATCH)switch(this.reuse(n),e.subs.length){case 0:case 1:e.op=Ev.Op.EMPTY_MATCH,e.subs=null;break;case 2:{const t=e;e=e.subs[1],this.reuse(t);break}default:e.subs=e.subs.slice(1,e.subs.length)}return e}return e.op===Ev.Op.LITERAL&&(e.runes=e.runes.slice(t,e.runes.length),0===e.runes.length&&(e.op=Ev.Op.EMPTY_MATCH)),e}removeLeadingRegexp(e,t){if(e.op===Ev.Op.CONCAT&&e.subs.length>0){switch(t&&this.reuse(e.subs[0]),e.subs=e.subs.slice(1,e.subs.length),e.subs.length){case 0:e.op=Ev.Op.EMPTY_MATCH,e.subs=Ev.emptySubs();break;case 1:{const t=e;e=e.subs[0],this.reuse(t);break}}return e}return t&&this.reuse(e),this.newRegexp(Ev.Op.EMPTY_MATCH)}parseInternal(){if(0!=(this.flags&rv.LITERAL))return Qv.literalRegexp(this.wholeRegexp,this.flags);let e=-1,t=-1,n=-1;const r=new Xv(this.wholeRegexp);for(;r.more();){let i=-1;e:switch(r.peek()){case iv.CODES.get("("):if(0!=(this.flags&rv.PERL_X)&&r.lookingAt("(?")){this.parsePerlFlags(r);break}this.op(Ev.Op.LEFT_PAREN).cap=++this.numCap,r.skip(1);break;case iv.CODES.get("|"):this.parseVerticalBar(),r.skip(1);break;case iv.CODES.get(")"):this.parseRightParen(),r.skip(1);break;case iv.CODES.get("^"):0!=(this.flags&rv.ONE_LINE)?this.op(Ev.Op.BEGIN_TEXT):this.op(Ev.Op.BEGIN_LINE),r.skip(1);break;case iv.CODES.get("$"):0!=(this.flags&rv.ONE_LINE)?this.op(Ev.Op.END_TEXT).flags|=rv.WAS_DOLLAR:this.op(Ev.Op.END_LINE),r.skip(1);break;case iv.CODES.get("."):0!=(this.flags&rv.DOT_NL)?this.op(Ev.Op.ANY_CHAR):this.op(Ev.Op.ANY_CHAR_NOT_NL),r.skip(1);break;case iv.CODES.get("["):this.parseClass(r);break;case iv.CODES.get("*"):case iv.CODES.get("+"):case iv.CODES.get("?"):{i=r.pos();let s=null;switch(r.pop()){case iv.CODES.get("*"):s=Ev.Op.STAR;break;case iv.CODES.get("+"):s=Ev.Op.PLUS;break;case iv.CODES.get("?"):s=Ev.Op.QUEST}this.repeat(s,t,n,i,r,e);break}case iv.CODES.get("{"):{i=r.pos();const s=Qv.parseRepeat(r);if(s<0){r.rewindTo(i),this.literal(r.pop());break}t=s>>16,n=(s&ov.MAX_BMP)<<16>>16,this.repeat(Ev.Op.REPEAT,t,n,i,r,e);break}case iv.CODES.get("\\"):{const e=r.pos();if(r.skip(1),0!=(this.flags&rv.PERL_X)&&r.more())switch(r.pop()){case iv.CODES.get("A"):this.op(Ev.Op.BEGIN_TEXT);break e;case iv.CODES.get("b"):this.op(Ev.Op.WORD_BOUNDARY);break e;case iv.CODES.get("B"):this.op(Ev.Op.NO_WORD_BOUNDARY);break e;case iv.CODES.get("C"):throw new mv(Qv.ERR_INVALID_ESCAPE,"\\C");case iv.CODES.get("Q"):{let e=r.rest();const t=e.indexOf("\\E");t>=0&&(e=e.substring(0,t)),r.skipString(e),r.skipString("\\E");let n=0;for(;n<e.length;){const t=e.codePointAt(n);this.literal(t),n+=av.charCount(t)}break e}case iv.CODES.get("z"):this.op(Ev.Op.END_TEXT);break e;default:r.rewindTo(e)}const t=this.newRegexp(Ev.Op.CHAR_CLASS);if(t.flags=this.flags,r.lookingAt("\\p")||r.lookingAt("\\P")){const e=new Kv;if(this.parseUnicodeClass(r,e)){t.runes=e.toArray(),this.push(t);break e}}const n=new Kv;if(this.parsePerlClassEscape(r,n)){t.runes=n.toArray(),this.push(t);break e}r.rewindTo(e),this.reuse(t),this.literal(Qv.parseEscape(r));break}default:this.literal(r.pop())}e=i}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),1!==this.stack.length)throw new mv(Qv.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(e){const t=e.pos(),n=e.rest();if(n.startsWith("(?P<")){const t=n.indexOf(">");if(t<0)throw new mv(Qv.ERR_INVALID_NAMED_CAPTURE,n);const r=n.substring(4,t);if(e.skipString(r),e.skip(5),!Qv.isValidCaptureName(r))throw new mv(Qv.ERR_INVALID_NAMED_CAPTURE,n.substring(0,t));const i=this.op(Ev.Op.LEFT_PAREN);if(i.cap=++this.numCap,this.namedGroups[r])throw new mv(Qv.ERR_DUPLICATE_NAMED_CAPTURE,r);return this.namedGroups[r]=this.numCap,void(i.name=r)}e.skip(2);let r=this.flags,i=1,s=!1;e:for(;e.more();){const t=e.pop();switch(t){case iv.CODES.get("i"):r|=rv.FOLD_CASE,s=!0;break;case iv.CODES.get("m"):r&=~rv.ONE_LINE,s=!0;break;case iv.CODES.get("s"):r|=rv.DOT_NL,s=!0;break;case iv.CODES.get("U"):r|=rv.NON_GREEDY,s=!0;break;case iv.CODES.get("-"):if(i<0)break e;i=-1,r=~r,s=!1;break;case iv.CODES.get(":"):case iv.CODES.get(")"):if(i<0){if(!s)break e;r=~r}return t===iv.CODES.get(":")&&this.op(Ev.Op.LEFT_PAREN),void(this.flags=r);default:break e}}throw new mv(Qv.ERR_INVALID_PERL_OP,e.from(t))}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(Ev.Op.VERTICAL_BAR)}swapVerticalBar(){const e=this.stack.length;if(e>=3&&this.stack[e-2].op===Ev.Op.VERTICAL_BAR&&Qv.isCharClass(this.stack[e-1])&&Qv.isCharClass(this.stack[e-3])){let t=this.stack[e-1],n=this.stack[e-3];if(t.op>n.op){const r=n;n=t,t=r,this.stack[e-3]=n}return Qv.mergeCharClass(n,t),this.reuse(t),this.pop(),!0}if(e>=2){const t=this.stack[e-1],n=this.stack[e-2];if(n.op===Ev.Op.VERTICAL_BAR)return e>=3&&this.cleanAlt(this.stack[e-3]),this.stack[e-2]=t,this.stack[e-1]=n,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new mv(Qv.ERR_INTERNAL_ERROR,"stack underflow");const e=this.pop(),t=this.pop();if(t.op!==Ev.Op.LEFT_PAREN)throw new mv(Qv.ERR_MISSING_PAREN,this.wholeRegexp);this.flags=t.flags,0===t.cap?this.push(e):(t.op=Ev.Op.CAPTURE,t.subs=[e],this.push(t))}parsePerlClassEscape(e,t){const n=e.pos();if(0==(this.flags&rv.PERL_X)||!e.more()||e.pop()!==iv.CODES.get("\\")||!e.more())return!1;e.pop();const r=e.from(n),i=Iv.has(r)?Iv.get(r):null;return null!==i&&(t.appendGroup(i,0!=(this.flags&rv.FOLD_CASE)),!0)}parseNamedClass(e,t){const n=e.rest(),r=n.indexOf(":]");if(r<0)return!1;const i=n.substring(0,r+2);e.skipString(i);const s=jv.has(i)?jv.get(i):null;if(null===s)throw new mv(Qv.ERR_INVALID_CHAR_RANGE,i);return t.appendGroup(s,0!=(this.flags&rv.FOLD_CASE)),!0}parseUnicodeClass(e,t){const n=e.pos();if(0==(this.flags&rv.UNICODE_GROUPS)||!e.lookingAt("\\p")&&!e.lookingAt("\\P"))return!1;e.skip(1);let r,i=1,s=e.pop();if(s===iv.CODES.get("P")&&(i=-1),!e.more())throw e.rewindTo(n),new mv(Qv.ERR_INVALID_CHAR_RANGE,e.rest());if(s=e.pop(),s!==iv.CODES.get("{"))r=av.runeToString(s);else{const t=e.rest(),i=t.indexOf("}");if(i<0)throw e.rewindTo(n),new mv(Qv.ERR_INVALID_CHAR_RANGE,e.rest());r=t.substring(0,i),e.skipString(r),e.skip(1)}0!==r.length&&r.codePointAt(0)===iv.CODES.get("^")&&(i=0-i,r=r.substring(1));const o=Qv.unicodeTable(r);if(null===o)throw new mv(Qv.ERR_INVALID_CHAR_RANGE,e.from(n));const a=o.first,l=o.second;if(0==(this.flags&rv.FOLD_CASE)||null===l)t.appendTableWithSign(a,i);else{const e=(new Kv).appendTable(a).appendTable(l).cleanClass().toArray();t.appendClassWithSign(e,i)}return!0}parseClass(e){const t=e.pos();e.skip(1);const n=this.newRegexp(Ev.Op.CHAR_CLASS);n.flags=this.flags;const r=new Kv;let i=1;e.more()&&e.lookingAt("^")&&(i=-1,e.skip(1),0==(this.flags&rv.CLASS_NL)&&r.appendRange(iv.CODES.get("\n"),iv.CODES.get("\n")));let s=!0;for(;!e.more()||e.peek()!==iv.CODES.get("]")||s;){if(e.more()&&e.lookingAt("-")&&0==(this.flags&rv.PERL_X)&&!s){const n=e.rest();if("-"===n||!n.startsWith("-]"))throw e.rewindTo(t),new mv(Qv.ERR_INVALID_CHAR_RANGE,e.rest())}s=!1;const n=e.pos();if(e.lookingAt("[:")){if(this.parseNamedClass(e,r))continue;e.rewindTo(n)}if(this.parseUnicodeClass(e,r))continue;if(this.parsePerlClassEscape(e,r))continue;e.rewindTo(n);const i=Qv.parseClassChar(e,t);let o=i;if(e.more()&&e.lookingAt("-"))if(e.skip(1),e.more()&&e.lookingAt("]"))e.skip(-1);else if(o=Qv.parseClassChar(e,t),o<i)throw new mv(Qv.ERR_INVALID_CHAR_RANGE,e.from(n));0==(this.flags&rv.FOLD_CASE)?r.appendRange(i,o):r.appendFoldedRange(i,o)}e.skip(1),r.cleanClass(),i<0&&r.negateClass(),n.runes=r.toArray(),this.push(n)}}class Jv{constructor(){this.inst=null,this.cap=[]}}class eC{constructor(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}contains(e){const t=this.sparse[e];return t<this.size&&this.densePcs[t]===e}isEmpty(){return 0===this.size}add(e){const t=this.size++;return this.sparse[e]=t,this.denseThreads[t]=null,this.densePcs[t]=e,t}clear(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}toString(){let e="{";for(let t=0;t<this.size;t++)0!==t&&(e+=", "),e+=this.densePcs[t];return e+="}",e}}class tC{static fromRE2(e){const t=new tC;return t.prog=e.prog,t.re2=e,t.q0=new eC(t.prog.numInst()),t.q1=new eC(t.prog.numInst()),t.pool=[],t.poolSize=0,t.matched=!1,t.matchcap=Array(t.prog.numCap<2?2:t.prog.numCap).fill(0),t.ncap=0,t}static fromMachine(e){const t=new tC;return t.re2=e.re2,t.prog=e.prog,t.q0=e.q0,t.q1=e.q1,t.pool=e.pool,t.poolSize=e.poolSize,t.matched=e.matched,t.matchcap=e.matchcap,t.ncap=e.ncap,t}init(e){this.ncap=e,e>this.matchcap.length?this.initNewCap(e):this.resetCap(e)}resetCap(e){for(let t=0;t<this.poolSize;t++)this.pool[t].cap=Array(e).fill(0)}initNewCap(e){for(let t=0;t<this.poolSize;t++)this.pool[t].cap=Array(e).fill(0);this.matchcap=Array(e).fill(0)}submatches(){return 0===this.ncap?av.emptyInts():this.matchcap.slice(0,this.ncap)}alloc(e){let t;return this.poolSize>0?(this.poolSize--,t=this.pool[this.poolSize]):t=new Jv,t.inst=e,t}freeQueue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.size-t,r=this.poolSize+n;this.pool.length<r&&(this.pool=this.pool.slice(0,Math.max(2*this.pool.length,r)));for(let n=t;n<e.size;n++){const t=e.denseThreads[n];null!==t&&(this.pool[this.poolSize]=t,this.poolSize++)}e.clear()}freeThread(e){this.pool.length<=this.poolSize&&(this.pool=this.pool.slice(0,2*this.pool.length)),this.pool[this.poolSize]=e,this.poolSize++}match(e,t,n){const r=this.re2.cond;if(r===av.EMPTY_ALL)return!1;if((n===rv.ANCHOR_START||n===rv.ANCHOR_BOTH)&&0!==t)return!1;this.matched=!1,this.matchcap=Array(this.prog.numCap).fill(-1);let i,s=this.q0,o=this.q1,a=e.step(t),l=a>>3,c=7&a,u=-1,h=0;for(a!==bv.EOF()&&(a=e.step(t+c),u=a>>3,h=7&a),i=0===t?av.emptyOpContext(-1,l):e.context(t);;){if(s.isEmpty()){if(0!=(r&av.EMPTY_BEGIN_TEXT)&&0!==t)break;if(this.matched)break;if(0!==this.re2.prefix.length&&u!==this.re2.prefixRune&&e.canCheckPrefix()){const n=e.index(this.re2,t);if(n<0)break;t+=n,a=e.step(t),l=a>>3,c=7&a,a=e.step(t+c),u=a>>3,h=7&a}}this.matched||0!==t&&n!==rv.UNANCHORED||(this.ncap>0&&(this.matchcap[0]=t),this.add(s,this.prog.start,t,this.matchcap,i,null));const p=t+c;if(i=e.context(p),this.step(s,o,t,p,l,i,n,t===e.endPos()),0===c)break;if(0===this.ncap&&this.matched)break;t+=c,l=u,c=h,-1!==l&&(a=e.step(t+c),u=a>>3,h=7&a);const d=s;s=o,o=d}return this.freeQueue(o),this.matched}step(e,t,n,r,i,s,o,a){const l=this.re2.longest;for(let c=0;c<e.size;c++){let u=e.denseThreads[c];if(null===u)continue;if(l&&this.matched&&this.ncap>0&&this.matchcap[0]<u.cap[0]){this.freeThread(u);continue}const h=u.inst;let p=!1;switch(h.op){case kv.MATCH:if(o===rv.ANCHOR_BOTH&&!a)break;this.ncap>0&&(!l||!this.matched||this.matchcap[1]<n)&&(u.cap[1]=n,this.matchcap=u.cap.slice(0,this.ncap)),l||this.freeQueue(e,c+1),this.matched=!0;break;case kv.RUNE:p=h.matchRune(i);break;case kv.RUNE1:p=i===h.runes[0];break;case kv.RUNE_ANY:p=!0;break;case kv.RUNE_ANY_NOT_NL:p=i!==iv.CODES.get("\n");break;default:throw new Error("bad inst")}p&&(u=this.add(t,h.out,r,u.cap,s,u)),null!==u&&(this.freeThread(u),e.denseThreads[c]=null)}e.clear()}add(e,t,n,r,i,s){if(0===t)return s;if(e.contains(t))return s;const o=e.add(t),a=this.prog.inst[t];switch(a.op){case kv.FAIL:break;case kv.ALT:case kv.ALT_MATCH:s=this.add(e,a.out,n,r,i,s),s=this.add(e,a.arg,n,r,i,s);break;case kv.EMPTY_WIDTH:0==(a.arg&~i)&&(s=this.add(e,a.out,n,r,i,s));break;case kv.NOP:s=this.add(e,a.out,n,r,i,s);break;case kv.CAPTURE:if(a.arg<this.ncap){const t=r[a.arg];r[a.arg]=n,this.add(e,a.out,n,r,i,null),r[a.arg]=t}else s=this.add(e,a.out,n,r,i,s);break;case kv.MATCH:case kv.RUNE:case kv.RUNE1:case kv.RUNE_ANY:case kv.RUNE_ANY_NOT_NL:null===s?s=this.alloc(a):s.inst=a,this.ncap>0&&s.cap!==r&&(s.cap=r.slice(0,this.ncap)),e.denseThreads[o]=s,s=null;break;default:throw new Error("unhandled")}return s}}class nC{constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}compareAndSet(e,t){return this.value===e&&(this.value=t,!0)}}class rC{static initTest(e){const t=rC.compile(e),n=new rC(t.expr,t.prog,t.numSubexp,t.longest);return n.cond=t.cond,n.prefix=t.prefix,n.prefixUTF8=t.prefixUTF8,n.prefixComplete=t.prefixComplete,n.prefixRune=t.prefixRune,n}static compile(e){return rC.compileImpl(e,rv.PERL,!1)}static compilePOSIX(e){return rC.compileImpl(e,rv.POSIX,!0)}static compileImpl(e,t,n){let r=Qv.parse(e,t);const i=r.maxCap();r=xv.simplify(r);const s=Av.compileRegexp(r),o=new rC(e,s,i,n),[a,l]=s.prefix();return o.prefixComplete=a,o.prefix=l,o.prefixUTF8=av.stringToUtf8ByteArray(o.prefix),o.prefix.length>0&&(o.prefixRune=o.prefix.codePointAt(0)),o.namedGroups=r.namedGroups,o}static match(e,t){return rC.compile(e).match(t)}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.expr=e,this.prog=t,this.numSubexp=n,this.longest=r,this.cond=t.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new nC}numberOfCapturingGroups(){return this.numSubexp}get(){let e;do{e=this.pooled.get()}while(e&&!this.pooled.compareAndSet(e,e.next));return e}reset(){this.pooled.set(null)}put(e,t){let n=this.pooled.get();do{n=this.pooled.get(),!t&&n&&(e=tC.fromMachine(e),t=!0),e.next!==n&&(e.next=n)}while(!this.pooled.compareAndSet(n,e))}toString(){return this.expr}doExecute(e,t,n,r){let i=this.get(),s=!1;i?null!==i.next&&(i=tC.fromMachine(i),s=!0):(i=tC.fromRE2(this),s=!0),i.init(r);const o=i.match(e,t,n)?i.submatches():null;return this.put(i,s),o}match(e){return null!==this.doExecute(Sv.fromUTF16(e),0,rv.UNANCHORED,0)}matchWithGroup(e,t,n,r,i){return e instanceof cv||(e=pv.utf16(e)),this.matchMachineInput(e,t,n,r,i)}matchMachineInput(e,t,n,r,i){if(t>n)return[!1,null];const s=e.isUTF16Encoding()?Sv.fromUTF16(e.asCharSequence(),0,n):Sv.fromUTF8(e.asBytes(),0,n),o=this.doExecute(s,t,r,2*i);return null===o?[!1,null]:[!0,o]}matchUTF8(e){return null!==this.doExecute(Sv.fromUTF8(e),0,rv.UNANCHORED,0)}replaceAll(e,t){return this.replaceAllFunc(e,(()=>t),2*e.length+1)}replaceFirst(e,t){return this.replaceAllFunc(e,(()=>t),1)}replaceAllFunc(e,t,n){let r=0,i=0,s="";const o=Sv.fromUTF16(e);let a=0;for(;i<=e.length;){const l=this.doExecute(o,i,rv.UNANCHORED,2);if(null===l||0===l.length)break;s+=e.substring(r,l[0]),(l[1]>r||0===l[0])&&(s+=t(e.substring(l[0],l[1])),a++),r=l[1];const c=7&o.step(i);if(i+c>l[1]?i+=c:i+1>l[1]?i++:i=l[1],a>=n)break}return s+=e.substring(r),s}pad(e){if(null===e)return null;let t=2*(1+this.numSubexp);if(e.length<t){let n=new Array(t).fill(-1);for(let t=0;t<e.length;t++)n[t]=e[t];e=n}return e}allMatches(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=[];const i=e.endPos();t<0&&(t=i+1);let s=0,o=0,a=-1;for(;o<t&&s<=i;){const t=this.doExecute(e,s,rv.UNANCHORED,this.prog.numCap);if(null===t||0===t.length)break;let l=!0;if(t[1]===s){t[0]===a&&(l=!1);const n=e.step(s);n<0?s=i+1:s+=7&n}else s=t[1];a=t[1],l&&(r.push(n(this.pad(t))),o++)}return r}findUTF8(e){const t=this.doExecute(Sv.fromUTF8(e),0,rv.UNANCHORED,2);return null===t?null:e.slice(t[0],t[1])}findUTF8Index(e){const t=this.doExecute(Sv.fromUTF8(e),0,rv.UNANCHORED,2);return null===t?null:t.slice(0,2)}find(e){const t=this.doExecute(Sv.fromUTF16(e),0,rv.UNANCHORED,2);return null===t?"":e.substring(t[0],t[1])}findIndex(e){return this.doExecute(Sv.fromUTF16(e),0,rv.UNANCHORED,2)}findUTF8Submatch(e){const t=this.doExecute(Sv.fromUTF8(e),0,rv.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}findUTF8SubmatchIndex(e){return this.pad(this.doExecute(Sv.fromUTF8(e),0,rv.UNANCHORED,this.prog.numCap))}findSubmatch(e){const t=this.doExecute(Sv.fromUTF16(e),0,rv.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}findSubmatchIndex(e){return this.pad(this.doExecute(Sv.fromUTF16(e),0,rv.UNANCHORED,this.prog.numCap))}findAllUTF8(e,t){const n=this.allMatches(Sv.fromUTF8(e),t,(t=>e.slice(t[0],t[1])));return 0===n.length?null:n}findAllUTF8Index(e,t){const n=this.allMatches(Sv.fromUTF8(e),t,(e=>e.slice(0,2)));return 0===n.length?null:n}findAll(e,t){const n=this.allMatches(Sv.fromUTF16(e),t,(t=>e.substring(t[0],t[1])));return 0===n.length?null:n}findAllIndex(e,t){const n=this.allMatches(Sv.fromUTF16(e),t,(e=>e.slice(0,2)));return 0===n.length?null:n}findAllUTF8Submatch(e,t){const n=this.allMatches(Sv.fromUTF8(e),t,(t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}));return 0===n.length?null:n}findAllUTF8SubmatchIndex(e,t){const n=this.allMatches(Sv.fromUTF8(e),t);return 0===n.length?null:n}findAllSubmatch(e,t){const n=this.allMatches(Sv.fromUTF16(e),t,(t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}));return 0===n.length?null:n}findAllSubmatchIndex(e,t){const n=this.allMatches(Sv.fromUTF16(e),t);return 0===n.length?null:n}}class iC{static CASE_INSENSITIVE=1;static DOTALL=2;static MULTILINE=4;static DISABLE_UNICODE_GROUPS=8;static LONGEST_MATCH=16;static quote(e){return av.quoteMeta(e)}static compile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;if(0!=(t&iC.CASE_INSENSITIVE)&&(n=`(?i)${n}`),0!=(t&iC.DOTALL)&&(n=`(?s)${n}`),0!=(t&iC.MULTILINE)&&(n=`(?m)${n}`),0!=(t&~(iC.MULTILINE|iC.DOTALL|iC.CASE_INSENSITIVE|iC.DISABLE_UNICODE_GROUPS|iC.LONGEST_MATCH)))throw new yv("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let r=rv.PERL;0!=(t&iC.DISABLE_UNICODE_GROUPS)&&(r&=~rv.UNICODE_GROUPS);const i=new iC(e,t);return i.re2Input=rC.compileImpl(n,r,0!=(t&iC.LONGEST_MATCH)),i}static matches(e,t){return iC.compile(e).matcher(t).matches()}static initTest(e,t,n){if(null==e)throw new Error("pattern is null");if(null==n)throw new Error("re2 is null");const r=new iC(e,t);return r.re2Input=n,r}constructor(e,t){this.patternInput=e,this.flagsInput=t}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(e){return this.matcher(e).matches()}matcher(e){return Array.isArray(e)&&(e=pv.utf8(e)),new wv(this,e)}split(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.matcher(e),r=[];let i=0,s=0;for(;n.find();)if(0!==s||0!==n.end()){if(t>0&&r.length===t-1)break;if(s===n.start()){if(0===t){i+=1,s=n.end();continue}}else for(;i>0;)r.push(""),i-=1;r.push(n.substring(s,n.start())),s=n.end()}else s=n.end();if(0===t&&s!==n.inputLength()){for(;i>0;)r.push(""),i-=1;r.push(n.substring(s,n.inputLength()))}return 0===t&&0!==r.length||r.push(n.substring(s,n.inputLength())),r}toString(){return this.patternInput}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(e){return this===e||null!==e&&this.constructor===e.constructor&&this.flagsInput===e.flagsInput&&this.patternInput===e.patternInput}}class sC{failed=[];bypassed=[];get status(){return 0===this.failed.length?0===this.bypassed.length?"pass":"bypass":"fail"}}class oC{rules=[];push(e){void 0!==e&&this.rules.push(e)}get hasRules(){return this.rules.length>0}getFailedRules(e){const t=new sC;for(const n of this.rules)n.matcher(e)||("bypass"===n.enforced?t.bypassed.push({description:n.humanDescription,rulesetId:n.rulesetId}):t.failed.push({description:n.humanDescription,rulesetId:n.rulesetId}));return t}}class aC{basicCommitWarning=!1;creationRestricted=!1;signedCommitsRequired=!1;pullRequestRequired=!1;commitMessagePatterns=new oC;commitAuthorEmailPatterns=new oC;committerEmailPatterns=new oC;branchNamePatterns=new oC}function lC(e,t){if(!e||!t||!$r(t))return!1;const{endpoint:n,owner:r,isPrivate:i}=t.gitHubRepository;return!(!$n(n)||!(e.login!==r.login||e.plan&&"free"!==e.plan)&&i)}async function cC(e,t,n){const r=new aC;let i;for(const s of e){const e=t.get(s.ruleset_id);if(null==e)continue;const o="always"!==e.current_user_can_bypass||"bypass";switch(s.type){case Qn.Update:case Qn.RequiredDeployments:case Qn.RequiredStatusChecks:r.basicCommitWarning=!0===r.basicCommitWarning||o;break;case Qn.Creation:r.creationRestricted=!0===r.creationRestricted||o;break;case Qn.RequiredSignatures:i??=await Hd(n,"commit.gpgsign")??!1,!0!==i&&(r.signedCommitsRequired=!0===r.signedCommitsRequired||o);break;case Qn.PullRequest:r.pullRequestRequired=!0===r.pullRequestRequired||o;break;case Qn.CommitMessagePattern:r.commitMessagePatterns.push(uC(s,o));break;case Qn.CommitAuthorEmailPattern:r.commitAuthorEmailPatterns.push(uC(s,o));break;case Qn.CommitterEmailPattern:r.committerEmailPatterns.push(uC(s,o));break;case Qn.BranchNamePattern:r.branchNamePatterns.push(uC(s,o))}}return r}function uC(e,t){if(e?.parameters)return{enforced:t,matcher:pC(e.parameters),humanDescription:hC(e.parameters),rulesetId:e.ruleset_id}}function hC(e){let t="must ";if(e.negate&&(t+="not "),e.operator===Jn.RegexMatch)return t+`match the regular expression "${e.pattern}"`;switch(e.operator){case Jn.StartsWith:t+="start with ";break;case Jn.EndsWith:t+="end with ";break;case Jn.Contains:t+="contain "}return t+`"${e.pattern}"`}function pC(e){if(!e)return()=>!1;let t;switch(e.operator){case Jn.StartsWith:t=iC.compile(`^${iC.quote(e.pattern)}`);break;case Jn.EndsWith:t=iC.compile(`${iC.quote(e.pattern)}$`);break;case Jn.Contains:t=iC.compile(`.*${iC.quote(e.pattern)}.*`);break;case Jn.RegexMatch:t=iC.compile(e.pattern)}return t?e.negate?e=>!t.matcher(e).find():e=>t.matcher(e).find():()=>!1}const dC="useExternalCredentialHelper",mC=()=>Ht(dC,!1),fC="last-selected-repository-id",gC="recently-selected-repositories",yC="sidebar-width",wC="commit-summary-width",bC="stashed-files-width",vC="pull-request-files-width",CC="askToMoveToApplicationsFolder",SC="confirmRepoRemoval",EC="showCommitLengthWarning",kC="confirmDiscardChanges",RC="confirmDiscardStash",TC="confirmCheckoutCommit",AC="confirmDiscardChangesPermanentlyKey",xC="confirmForcePush",DC="confirmUndoCommit",_C="uncommittedChangesStrategyKind",MC="externalEditor",PC=Iu.TwoUp,IC="image-diff-type",OC="hide-whitespace-in-changes-diff",NC="hide-whitespace-in-diff",LC="hide-whitespace-in-pull-request-diff",BC="commit-spellcheck-enabled",FC="tab-size",HC="shell",UC="enable-repository-indicators",ZC="version-and-users-of-last-thank-you",$C="pull-request-suggested-next-action-key",WC="use-custom-editor",qC="custom-editor",VC="use-custom-shell",GC="custom-shell",zC="underline-links",jC=!0,KC=!0,YC="diff-check-marks-visible";function XC(e){return e instanceof gt?XC(e.underlyingError):e instanceof Dd&&e.result.gitError===Gp.GitError.LocalChangesOverwritten}function QC(e,t=-1/0,n=1/0){const r=n<t?t:n;return{value:"number"==typeof e?e:e.value,min:t,max:r}}const JC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,eS=Object.keys,tS=Array.isArray;function nS(e,t){return"object"!=typeof t||eS(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||JC.Promise||(JC.Promise=Promise);const rS=Object.getPrototypeOf,iS={}.hasOwnProperty;function sS(e,t){return iS.call(e,t)}function oS(e,t){"function"==typeof t&&(t=t(rS(e))),("undefined"==typeof Reflect?eS:Reflect.ownKeys)(t).forEach((n=>{lS(e,n,t[n])}))}const aS=Object.defineProperty;function lS(e,t,n,r){aS(e,t,nS(n&&sS(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function cS(e){return{from:function(t){return e.prototype=Object.create(t.prototype),lS(e.prototype,"constructor",e),{extend:oS.bind(null,e.prototype)}}}}const uS=Object.getOwnPropertyDescriptor;function hS(e,t){let n;return uS(e,t)||(n=rS(e))&&hS(n,t)}const pS=[].slice;function dS(e,t,n){return pS.call(e,t,n)}function mS(e,t){return t(e)}function fS(e){if(!e)throw new Error("Assertion Failed")}function gS(e){JC.setImmediate?setImmediate(e):setTimeout(e,0)}function yS(e,t){return e.reduce(((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e}),{})}function wS(e,t){if(sS(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var s=wS(e,t[r]);n.push(s)}return n}var o=t.indexOf(".");if(-1!==o){var a=e[t.substr(0,o)];return void 0===a?void 0:wS(a,t.substr(o+1))}}function bS(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){fS("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)bS(e,t[r],n[r])}else{var s=t.indexOf(".");if(-1!==s){var o=t.substr(0,s),a=t.substr(s+1);if(""===a)void 0===n?tS(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=n;else{var l=e[o];l&&sS(e,o)||(l=e[o]={}),bS(l,a,n)}}else void 0===n?tS(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function vS(e){var t={};for(var n in e)sS(e,n)&&(t[n]=e[n]);return t}const CS=[].concat;function SS(e){return CS.apply([],e)}const ES="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(SS([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>JC[e])),kS=ES.map((e=>JC[e]));yS(ES,(e=>[e,!0]));let RS=null;function TS(e){RS="undefined"!=typeof WeakMap&&new WeakMap;const t=AS(e);return RS=null,t}function AS(e){if(!e||"object"!=typeof e)return e;let t=RS&&RS.get(e);if(t)return t;if(tS(e)){t=[],RS&&RS.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(AS(e[n]))}else if(kS.indexOf(e.constructor)>=0)t=e;else{const n=rS(e);for(var i in t=n===Object.prototype?{}:Object.create(n),RS&&RS.set(e,t),e)sS(e,i)&&(t[i]=AS(e[i]))}return t}const{toString:xS}={};function DS(e){return xS.call(e).slice(8,-1)}const _S="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",MS="symbol"==typeof _S?function(e){var t;return null!=e&&(t=e[_S])&&t.apply(e)}:function(){return null},PS={};function IS(e){var t,n,r,i;if(1===arguments.length){if(tS(e))return e.slice();if(this===PS&&"string"==typeof e)return[e];if(i=MS(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const OS="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var NS="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function LS(e,t){NS=e,BS=t}var BS=()=>!0;const FS=!new Error("").stack;function HS(){if(FS)try{throw HS.arguments,new Error}catch(e){return e}return new Error}function US(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(BS).map((e=>"\n"+e)).join("")):""}var ZS=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],$S=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ZS),WS={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function qS(e,t){this._e=HS(),this.name=e,this.message=t}function VS(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function GS(e,t,n,r){this._e=HS(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=VS(e,t)}function zS(e,t){this._e=HS(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=VS(e,t)}cS(qS).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+US(this._e,2))}},toString:function(){return this.name+": "+this.message}}),cS(GS).from(qS),cS(zS).from(qS);var jS=$S.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const KS=qS;var YS=$S.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=HS(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=WS[t]||n,this.inner=null)}return cS(r).from(KS),e[t]=r,e}),{});YS.Syntax=SyntaxError,YS.Type=TypeError,YS.Range=RangeError;var XS=ZS.reduce(((e,t)=>(e[t+"Error"]=YS[t],e)),{}),QS=$S.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=YS[t]),e)),{});function JS(){}function eE(e){return e}function tE(e,t){return null==e||e===eE?t:function(n){return t(e(n))}}function nE(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function rE(e,t){return e===JS?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?nE(r,this.onsuccess):r),i&&(this.onerror=this.onerror?nE(i,this.onerror):i),void 0!==s?s:n}}function iE(e,t){return e===JS?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?nE(n,this.onsuccess):n),r&&(this.onerror=this.onerror?nE(r,this.onerror):r)}}function sE(e,t){return e===JS?t:function(n){var r=e.apply(this,arguments);nS(n,r);var i=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?nE(i,this.onsuccess):i),s&&(this.onerror=this.onerror?nE(s,this.onerror):s),void 0===r?void 0===o?void 0:o:nS(r,o)}}function oE(e,t){return e===JS?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function aE(e,t){return e===JS?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,s=new Array(i);i--;)s[i]=arguments[i];return n.then((function(){return t.apply(r,s)}))}return t.apply(this,arguments)}}QS.ModifyError=GS,QS.DexieError=qS,QS.BulkError=zS;var lE={};const[cE,uE,hE]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,rS(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,rS(t),e]})(),pE=uE&&uE.then,dE=cE&&cE.constructor,mE=!!hE;var fE=!1,gE=hE?()=>{hE.then(HE)}:JC.setImmediate?setImmediate.bind(null,HE):JC.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{HE(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(HE,0)},yE=function(e,t){TE.push([e,t]),bE&&(gE(),bE=!1)},wE=!0,bE=!0,vE=[],CE=[],SE=null,EE=eE,kE={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ck,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{ck(e[0],e[1])}catch(e){}}))}},RE=kE,TE=[],AE=0,xE=[];function DE(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=JS,this._lib=!1;var t=this._PSD=RE;if(NS&&(this._stackHolder=HS(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==lE)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&IE(this,this._value))}this._state=null,this._value=null,++t.ref,PE(this,e)}const _E={get:function(){var e=RE,t=KE;function n(n,r){var i=!e.global&&(e!==RE||t!==KE);const s=i&&!JE();var o=new DE(((t,o)=>{NE(this,new ME(ak(n,e,i,s),ak(r,e,i,s),t,o,e))}));return NS&&FE(o,this),o}return n.prototype=lE,n},set:function(e){lS(this,"then",e&&e.prototype===lE?_E:{get:function(){return e},set:_E.set})}};function ME(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function PE(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&UE();t&&"function"==typeof t.then?PE(e,((e,n)=>{t instanceof DE?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,OE(e)),n&&ZE()}}),IE.bind(null,e))}catch(t){IE(e,t)}}function IE(e,t){if(CE.push(t),null===e._state){var n=e._lib&&UE();t=EE(t),e._state=!1,e._value=t,NS&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=hS(t,"stack");t._promise=e,lS(t,"stack",{get:()=>fE?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){vE.some((t=>t._value===e._value))||vE.push(e)}(e),OE(e),n&&ZE()}}function OE(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)NE(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===AE&&(++AE,yE((()=>{0==--AE&&$E()}),[]))}function NE(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++AE,yE(LE,[n,e,t])}else e._listeners.push(t)}function LE(e,t,n){try{SE=t;var r,i=t._value;t._state?r=e(i):(CE.length&&(CE=[]),r=e(i),-1===CE.indexOf(i)&&function(e){for(var t=vE.length;t;)if(vE[--t]._value===e._value)return void vE.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{SE=null,0==--AE&&$E(),--n.psd.ref||n.psd.finalize()}}function BE(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var i,s,o=e._value;null!=o?(i=o.name||"Error",s=o.message||o,r=US(o,0)):(i=o,s=""),t.push(i+(s?": "+s:"")+r)}return NS&&((r=US(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&BE(e._prev,t,n)),t}function FE(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function HE(){UE()&&ZE()}function UE(){var e=wE;return wE=!1,bE=!1,e}function ZE(){var e,t,n;do{for(;TE.length>0;)for(e=TE,TE=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(TE.length>0);wE=!0,bE=!0}function $E(){var e=vE;vE=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=xE.slice(0),n=t.length;n;)t[--n]()}function WE(e){return new DE(lE,!1,e)}function qE(e,t){var n=RE;return function(){var r=UE(),i=RE;try{return rk(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{rk(i,!1),r&&ZE()}}}oS(DE.prototype,{then:_E,_then:function(e,t){NE(this,new ME(null,null,e,t,RE))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):WE(e))):this.then(null,(e=>e&&e.name===t?n(e):WE(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),WE(t))))},stack:{get:function(){if(this._stack)return this._stack;try{fE=!0;var e=BE(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{fE=!1}}},timeout:function(e,t){return e<1/0?new DE(((n,r)=>{var i=setTimeout((()=>r(new YS.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&lS(DE.prototype,Symbol.toStringTag,"Dexie.Promise"),kE.env=ik(),oS(DE,{all:function(){var e=IS.apply(null,arguments).map(ek);return new DE((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((i,s)=>DE.resolve(i).then((n=>{e[s]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof DE)return e;if(e&&"function"==typeof e.then)return new DE(((t,n)=>{e.then(t,n)}));var t=new DE(lE,!0,e);return FE(t,SE),t},reject:WE,race:function(){var e=IS.apply(null,arguments).map(ek);return new DE(((t,n)=>{e.map((e=>DE.resolve(e).then(t,n)))}))},PSD:{get:()=>RE,set:e=>RE=e},totalEchoes:{get:()=>KE},newPSD:XE,usePSD:sk,scheduler:{get:()=>yE,set:e=>{yE=e}},rejectionMapper:{get:()=>EE,set:e=>{EE=e}},follow:(e,t)=>new DE(((n,r)=>XE(((t,n)=>{var r=RE;r.unhandleds=[],r.onunhandled=n,r.finalize=nE((function(){!function(e){xE.push((function t(){e(),xE.splice(xE.indexOf(t),1)})),++AE,yE((()=>{0==--AE&&$E()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),dE&&(dE.allSettled&&lS(DE,"allSettled",(function(){const e=IS.apply(null,arguments).map(ek);return new DE((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,i)=>DE.resolve(e).then((e=>r[i]={status:"fulfilled",value:e}),(e=>r[i]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),dE.any&&"undefined"!=typeof AggregateError&&lS(DE,"any",(function(){const e=IS.apply(null,arguments).map(ek);return new DE(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const i=new Array(r);e.forEach(((e,s)=>DE.resolve(e).then((e=>t(e)),(e=>{i[s]=e,--r||n(new AggregateError(i))}))))}))})));const VE={awaits:0,echoes:0,id:0};var GE=0,zE=[],jE=0,KE=0,YE=0;function XE(e,t,n,r){var i=RE,s=Object.create(i);s.parent=i,s.ref=0,s.global=!1,s.id=++YE;var o=kE.env;s.env=mE?{Promise:DE,PromiseProp:{value:DE,configurable:!0,writable:!0},all:DE.all,race:DE.race,allSettled:DE.allSettled,any:DE.any,resolve:DE.resolve,reject:DE.reject,nthen:lk(o.nthen,s),gthen:lk(o.gthen,s)}:{},t&&nS(s,t),++i.ref,s.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=sk(s,e,n,r);return 0===s.ref&&s.finalize(),a}function QE(){return VE.id||(VE.id=++GE),++VE.awaits,VE.echoes+=100,VE.id}function JE(){return!!VE.awaits&&(0==--VE.awaits&&(VE.id=0),VE.echoes=100*VE.awaits,!0)}function ek(e){return VE.echoes&&e&&e.constructor===dE?(QE(),e.then((e=>(JE(),e)),(e=>(JE(),uk(e))))):e}function tk(e){++KE,VE.echoes&&0!=--VE.echoes||(VE.echoes=VE.id=0),zE.push(RE),rk(e,!0)}function nk(){var e=zE[zE.length-1];zE.pop(),rk(e,!1)}function rk(e,t){var n=RE;if((t?!VE.echoes||jE++&&e===RE:!jE||--jE&&e===RE)||ok(t?tk.bind(null,e):nk),e!==RE&&(RE=e,n===kE&&(kE.env=ik()),mE)){var r=kE.env.Promise,i=e.env;uE.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(JC,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function ik(){var e=JC.Promise;return mE?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(JC,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:uE.then,gthen:e.prototype.then}:{}}function sk(e,t,n,r,i){var s=RE;try{return rk(e,!0),t(n,r,i)}finally{rk(s,!1)}}function ok(e){pE.call(cE,e)}function ak(e,t,n,r){return"function"!=typeof e?e:function(){var i=RE;n&&QE(),rk(t,!0);try{return e.apply(this,arguments)}finally{rk(i,!1),r&&ok(JE)}}}function lk(e,t){return function(n,r){return e.call(this,ak(n,t),ak(r,t))}}function ck(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,i={promise:t,reason:e};if(JC.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),nS(r,i)):JC.CustomEvent&&nS(r=new CustomEvent("unhandledrejection",{detail:i}),i),r&&JC.dispatchEvent&&(dispatchEvent(r),!JC.PromiseRejectionEvent&&JC.onunhandledrejection))try{JC.onunhandledrejection(r)}catch(e){}NS&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+pE).indexOf("[native code]")&&(QE=JE=JS);var uk=DE.reject;function hk(e,t,n,r){if(e.idbdb&&(e._state.openComplete||RE.letThrough||e._vip)){var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===jS.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>hk(e,t,n,r)))):uk(i)}return i._promise(t,((e,t)=>XE((()=>(RE.trans=i,r(e,t,i)))))).then((e=>i._completion.then((()=>e))))}if(e._state.openComplete)return uk(new YS.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return uk(new YS.DatabaseClosed);e.open().catch(JS)}return e._state.dbReadyPromise.then((()=>hk(e,t,n,r)))}const pk=String.fromCharCode(65535),dk="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",mk=[],fk="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),gk=fk,yk=fk,wk=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function bk(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const vk={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Ck(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=TS(t))[e],t)}class Sk{_trans(e,t,n){const r=this._tx||RE.trans,i=this.name;function s(e,n,r){if(!r.schema[i])throw new YS.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}const o=UE();try{return r&&r.db===this.db?r===RE.trans?r._promise(e,s,n):XE((()=>r._promise(e,s,n)),{trans:r,transless:RE.transless||RE}):hk(this.db,e,[this.name],s)}finally{o&&ZE()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(tS(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=eS(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==pk)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&NS&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function s(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}const[o,a]=t.reduce((([t,n],i)=>{const o=r[i],a=e[i];return[t||o,t||!o?bk(n,o&&o.multi?e=>{const t=wS(e,i);return tS(t)&&t.some((e=>s(a,e)))}:e=>s(a,wS(e,i))):n]}),[null,null]);return o?this.where(o.name).equals(e[o.keyPath]).filter(a):n?this.filter(a):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,tS(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(sS(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){nS(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=Ck(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]}))).then((e=>e.numFailures?DE.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{bS(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||tS(e))return this.where(":id").equals(e).modify(t);{const n=wS(e,this.schema.primKey.keyPath);if(void 0===n)return uk(new YS.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?eS(t).forEach((n=>{bS(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=Ck(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null}))).then((e=>e.numFailures?DE.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{bS(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?DE.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:vk}))).then((e=>e.numFailures?DE.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:s}=this.schema.primKey;if(s&&r)throw new YS.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new YS.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=s&&n?e.map(Ck(s)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new zS(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:s}=this.schema.primKey;if(s&&r)throw new YS.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new YS.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=s&&n?e.map(Ck(s)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new zS(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new zS(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Ek(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,s=new Array(i-1);--i;)s[i-1]=arguments[i];return t[n].subscribe.apply(null,s),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return n;function s(e,r,i){if("object"==typeof e)return o(e);r||(r=oE),i||(i=JS);var s={subscribers:[],fire:i,subscribe:function(e){-1===s.subscribers.indexOf(e)&&(s.subscribers.push(e),s.fire=r(s.fire,e))},unsubscribe:function(e){s.subscribers=s.subscribers.filter((function(t){return t!==e})),s.fire=s.subscribers.reduce(r,i)}};return t[e]=n[e]=s,s}function o(e){eS(e).forEach((function(t){var n=e[t];if(tS(n))s(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new YS.InvalidArgument("Invalid event config");var r=s(t,eE,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){gS((function(){e.apply(null,t)}))}))}))}}))}}function kk(e,t){return cS(t).from({prototype:e}),t}function Rk(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Tk(e,t){e.filter=bk(e.filter,t)}function Ak(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>bk(r(),t()):t,e.justLimit=n&&!r}function xk(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new YS.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Dk(e,t,n){const r=xk(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function _k(e,t,n,r){const i=e.replayFilter?bk(e.filter,e.replayFilter()):e.filter;if(e.or){const s={},o=(e,n,r)=>{if(!i||i(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var o=n.primaryKey,a=""+o;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(o)),sS(s,a)||(s[a]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(o,n),Mk(Dk(e,r,n),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return Mk(Dk(e,r,n),bk(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function Mk(e,t,n,r){var i=qE(r?(e,t,i)=>n(r(e),t,i):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=JS}),(t=>{e.fail(t),n=JS}))||i(e.value,e,(e=>n=e)),n()}))}))}function Pk(e,t){try{const n=Ik(e),r=Ik(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(Ok(e),Ok(t));case"Array":return function(e,t){const n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n){const r=Pk(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function Ik(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=DS(e);return"ArrayBuffer"===n?"binary":n}function Ok(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Nk{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,uk.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,uk.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=bk(t.algorithm,e)}_iterate(e,t){return _k(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&nS(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>_k(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Rk(t,!0))return n.count({trans:e,query:{index:xk(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return _k(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],i=n.length-1;function s(e,t){return t?s(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function a(e,t){var n=s(e,i),r=s(t,i);return n<r?-o:n>r?o:0}return this.toArray((function(e){return e.sort(a)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Rk(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=xk(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return _k(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Rk(t)?Ak(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):Ak(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Ak(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Tk(this._ctx,(function(n,r,i){return!e(n.value)||(r(i),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Tk(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=bk(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Rk(t,!0)&&t.limit>0)return this._read((e=>{var n=xk(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Tk(this._ctx,(function(e){var t=e.primaryKey.toString(),r=sS(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=eS(e),s=i.length;r=function(t){for(var n=!1,r=0;r<s;++r){var o=i[r],a=e[o];wS(t,o)!==a&&(bS(t,o,a),n=!0)}return n}}const o=t.table.core,{outbound:a,extractKey:l}=o.schema.primaryKey,c=this.db._options.modifyChunkSize||200,u=[];let h=0;const p=[],d=(e,t)=>{const{failures:n,numFailures:r}=t;h+=e-r;for(let e of eS(n))u.push(n[e])};return this.clone().primaryKeys().then((i=>{const s=u=>{const h=Math.min(c,i.length-u);return o.getMany({trans:n,keys:i.slice(u,u+h),cache:"immutable"}).then((p=>{const m=[],f=[],g=a?[]:null,y=[];for(let e=0;e<h;++e){const t=p[e],n={value:TS(t),primKey:i[u+e]};!1!==r.call(n,n.value,n)&&(null==n.value?y.push(i[u+e]):a||0===Pk(l(t),l(n.value))?(f.push(n.value),a&&g.push(i[u+e])):(y.push(i[u+e]),m.push(n.value)))}const w=Rk(t)&&t.limit===1/0&&("function"!=typeof e||e===Lk)&&{index:t.index,range:t.range};return Promise.resolve(m.length>0&&o.mutate({trans:n,type:"add",values:m}).then((e=>{for(let t in e.failures)y.splice(parseInt(t),1);d(m.length,e)}))).then((()=>(f.length>0||w&&"object"==typeof e)&&o.mutate({trans:n,type:"put",keys:g,values:f,criteria:w,changeSpec:"function"!=typeof e&&e}).then((e=>d(f.length,e))))).then((()=>(y.length>0||w&&e===Lk)&&o.mutate({trans:n,type:"delete",keys:y,criteria:w}).then((e=>d(y.length,e))))).then((()=>i.length>u+h&&s(u+c)))}))};return s(0).then((()=>{if(u.length>0)throw new GS("Error modifying one or more objects",u,h,p);return i.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Rk(e)&&(e.isPrimKey&&!yk||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,i=t;return e.table.core.count({trans:n,query:{index:r,range:i}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((({failures:e,lastResult:n,results:r,numFailures:i})=>{if(i)throw new GS("Could not delete some values",Object.keys(e).map((t=>e[t])),t-i);return t-i}))))})):this.modify(Lk)}}const Lk=(e,t)=>t.value=null;function Bk(e,t){return e<t?-1:e===t?0:1}function Fk(e,t){return e>t?-1:e===t?0:1}function Hk(e,t,n){var r=e instanceof Vk?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Uk(e){return new e.Collection(e,(()=>qk(""))).limit(0)}function Zk(e,t,n,r,i,s){for(var o=Math.min(e.length,r.length),a=-1,l=0;l<o;++l){var c=t[l];if(c!==r[l])return i(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):i(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):a>=0?e.substr(0,a)+t[a]+n.substr(a+1):null;i(e[l],c)<0&&(a=l)}return o<r.length&&"next"===s?e+n.substr(e.length):o<e.length&&"prev"===s?e.substr(0,n.length):a<0?null:e.substr(0,a)+r[a]+n.substr(a+1)}function $k(e,t,n,r){var i,s,o,a,l,c,u,h=n.length;if(!n.every((e=>"string"==typeof e)))return Hk(e,"String expected.");function p(e){i=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),s=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),o="next"===e?Bk:Fk;var t=n.map((function(e){return{lower:s(e),upper:i(e)}})).sort((function(e,t){return o(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,u="next"===e?"":r}p("next");var d=new e.Collection(e,(()=>Wk(a[0],l[h-1]+r)));d._ondirectionchange=function(e){p(e)};var m=0;return d._addAlgorithm((function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var p=s(i);if(t(p,l,m))return!0;for(var d=null,f=m;f<h;++f){var g=Zk(i,p,a[f],l[f],o,c);null===g&&null===d?m=f+1:(null===d||o(d,g)>0)&&(d=g)}return n(null!==d?function(){e.continue(d+u)}:r),!1})),d}function Wk(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function qk(e){return{type:1,lower:e,upper:e}}class Vk{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Uk(this):new this.Collection(this,(()=>Wk(e,t,!n,!r)))}catch(e){return Hk(this,dk)}}equals(e){return null==e?Hk(this,dk):new this.Collection(this,(()=>qk(e)))}above(e){return null==e?Hk(this,dk):new this.Collection(this,(()=>Wk(e,void 0,!0)))}aboveOrEqual(e){return null==e?Hk(this,dk):new this.Collection(this,(()=>Wk(e,void 0,!1)))}below(e){return null==e?Hk(this,dk):new this.Collection(this,(()=>Wk(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Hk(this,dk):new this.Collection(this,(()=>Wk(void 0,e)))}startsWith(e){return"string"!=typeof e?Hk(this,"String expected."):this.between(e,e+pk,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):$k(this,((e,t)=>0===e.indexOf(t[0])),[e],pk)}equalsIgnoreCase(e){return $k(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=IS.apply(PS,arguments);return 0===e.length?Uk(this):$k(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=IS.apply(PS,arguments);return 0===e.length?Uk(this):$k(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,pk)}anyOf(){const e=IS.apply(PS,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Hk(this,dk)}if(0===e.length)return Uk(this);const n=new this.Collection(this,(()=>Wk(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,i,s)=>{const o=n.key;for(;t(o,e[r])>0;)if(++r,r===e.length)return i(s),!1;return 0===t(o,e[r])||(i((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=IS.apply(PS,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Hk(this,dk)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,i=this._descending,s=this._min,o=this._max;if(0===e.length)return Uk(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Hk(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",YS.InvalidArgument);const a=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let c,u=r;function h(e,t){return u(e[0],t[0])}try{c=e.reduce((function(e,t){let r=0,i=e.length;for(;r<i;++r){const i=e[r];if(n(t[0],i[1])<0&&n(t[1],i[0])>0){i[0]=s(i[0],t[0]),i[1]=o(i[1],t[1]);break}}return r===i&&e.push(t),e}),[]),c.sort(h)}catch(e){return Hk(this,dk)}let p=0;const d=l?e=>r(e,c[p][1])>0:e=>r(e,c[p][1])>=0,m=a?e=>i(e,c[p][0])>0:e=>i(e,c[p][0])>=0;let f=d;const g=new this.Collection(this,(()=>Wk(c[0][0],c[c.length-1][1],!a,!l)));return g._ondirectionchange=e=>{"next"===e?(f=d,u=r):(f=m,u=i),c.sort(h)},g._addAlgorithm(((e,t,n)=>{for(var i=e.key;f(i);)if(++p,p===c.length)return t(n),!1;return!!function(e){return!d(e)&&!m(e)}(i)||(0===this._cmp(i,c[p][1])||0===this._cmp(i,c[p][0])||t((()=>{u===r?e.continue(c[p][0]):e.continue(c[p][1])})),!1)})),g}startsWithAnyOf(){const e=IS.apply(PS,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Uk(this):this.inAnyRange(e.map((e=>[e,e+pk]))):Hk(this,"startsWithAnyOf() only works with strings")}}function Gk(e){return qE((function(t){return zk(t),e(t.target.error),!1}))}function zk(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const jk=Ek(null,"storagemutated");class Kk{_lock(){return fS(!RE.global),++this._reculock,1!==this._reculock||RE.global||(RE.lockOwnerFor=this),this}_unlock(){if(fS(!RE.global),0==--this._reculock)for(RE.global||(RE.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{sk(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&RE.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(fS(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new YS.DatabaseClosed(n);case"MissingAPIError":throw new YS.MissingAPI(n.message,n);default:throw new YS.OpenFailed(n)}if(!this.active)throw new YS.TransactionInactive;return fS(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=qE((t=>{zk(t),this._reject(e.error)})),e.onabort=qE((t=>{zk(t),this.active&&this._reject(new YS.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=qE((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&jk.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return uk(new YS.ReadOnly("Transaction is readonly"));if(!this.active)return uk(new YS.TransactionInactive);if(this._locked())return new DE(((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},RE])}));if(n)return XE((()=>{var e=new DE(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new DE(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=DE.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new DE(((e,r)=>{n.then((n=>t._waitingQueue.push(qE(e.bind(null,n)))),(e=>t._waitingQueue.push(qE(r.bind(null,e))))).finally((()=>{t._waitingFor===i&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new YS.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(sS(t,e))return t[e];const n=this.schema[e];if(!n)throw new YS.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function Yk(e,t,n,r,i,s,o){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:s,src:(n&&!o?"&":"")+(r?"*":"")+(i?"++":"")+Xk(t)}}function Xk(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function Qk(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:yS(n,(e=>[e.name,e]))}}let Jk=e=>{try{return e.only([[]]),Jk=()=>[[]],[[]]}catch(e){return Jk=()=>pk,pk}};function eR(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>wS(t,e)}(e):t=>wS(t,e)}function tR(e){return[].slice.call(e)}let nR=0;function rR(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function iR(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:i,upperOpen:s}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!s):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!s)}const{schema:i,hasGetAll:s}=function(e,t){const n=tR(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=tS(t),i=null==t,s={},o={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:eR(t)},indexes:tR(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:i}=e,o={name:t,compound:tS(i),keyPath:i,unique:n,multiEntry:r,extractKey:eR(i)};return s[rR(i)]=o,o})),getIndexByKeyPath:e=>s[rR(e)]};return s[":id"]=o.primaryKey,null!=t&&(s[rR(t)]=o.primaryKey),o}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),o=i.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:s,range:o}){return new Promise(((a,l)=>{a=qE(a);const c=e.objectStore(t),u=null==c.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:p}=i||s||{length:1};if(i&&s&&i.length!==s.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return a({numFailures:0,failures:{},results:[],lastResult:void 0});let d;const m=[],f=[];let g=0;const y=e=>{++g,zk(e)};if("deleteRange"===n){if(4===o.type)return a({numFailures:g,failures:f,results:[],lastResult:void 0});3===o.type?m.push(d=c.clear()):m.push(d=c.delete(r(o)))}else{const[e,t]=h?u?[s,i]:[s,null]:[i,null];if(h)for(let r=0;r<p;++r)m.push(d=t&&void 0!==t[r]?c[n](e[r],t[r]):c[n](e[r])),d.onerror=y;else for(let t=0;t<p;++t)m.push(d=c[n](e[t])),d.onerror=y}const w=e=>{const t=e.target.result;m.forEach(((e,t)=>null!=e.error&&(f[t]=e.error))),a({numFailures:g,failures:f,results:"delete"===n?i:m.map((e=>e.result)),lastResult:t})};d.onerror=e=>{y(e),w(e)},d.onsuccess=w}))},getMany:({trans:e,keys:n})=>new Promise(((r,i)=>{r=qE(r);const s=e.objectStore(t),o=n.length,a=new Array(o);let l,c=0,u=0;const h=e=>{const t=e.target;a[t._pos]=t.result,++u===c&&r(a)},p=Gk(i);for(let e=0;e<o;++e)null!=n[e]&&(l=s.get(n[e]),l._pos=e,l.onsuccess=h,l.onerror=p,++c);0===c&&r(a)})),get:({trans:e,key:n})=>new Promise(((r,i)=>{r=qE(r);const s=e.objectStore(t).get(n);s.onsuccess=e=>r(e.target.result),s.onerror=Gk(i)})),query:function(e){return n=>new Promise(((i,s)=>{i=qE(i);const{trans:o,values:a,limit:l,query:c}=n,u=l===1/0?void 0:l,{index:h,range:p}=c,d=o.objectStore(t),m=h.isPrimaryKey?d:d.index(h.name),f=r(p);if(0===l)return i({result:[]});if(e){const e=a?m.getAll(f,u):m.getAllKeys(f,u);e.onsuccess=e=>i({result:e.target.result}),e.onerror=Gk(s)}else{let e=0;const t=a||!("openKeyCursor"in m)?m.openCursor(f):m.openKeyCursor(f),n=[];t.onsuccess=r=>{const s=t.result;return s?(n.push(a?s.value:s.primaryKey),++e===l?i({result:n}):void s.continue()):i({result:n})},t.onerror=Gk(s)}}))}(s),openCursor:function({trans:e,values:n,query:i,reverse:s,unique:o}){return new Promise(((a,l)=>{a=qE(a);const{index:c,range:u}=i,h=e.objectStore(t),p=c.isPrimaryKey?h:h.index(c.name),d=s?o?"prevunique":"prev":o?"nextunique":"next",m=n||!("openKeyCursor"in p)?p.openCursor(r(u),d):p.openKeyCursor(r(u),d);m.onerror=Gk(l),m.onsuccess=qE((t=>{const n=m.result;if(!n)return void a(null);n.___id=++nR,n.done=!1;const r=n.continue.bind(n);let i=n.continuePrimaryKey;i&&(i=i.bind(n));const s=n.advance.bind(n),o=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=qE(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=qE(e),m.onerror=Gk(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,e(t)}})),a=()=>{if(m.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return m.onsuccess=qE((e=>{m.onsuccess=a,a()})),n.continue=r,n.continuePrimaryKey=i,n.advance=s,a(),t},a(n)}),l)}))},count({query:e,trans:n}){const{index:i,range:s}=e;return new Promise(((e,o)=>{const a=n.objectStore(t),l=i.isPrimaryKey?a:a.index(i.name),c=r(s),u=c?l.count(c):l.count();u.onsuccess=qE((t=>e(t.target.result))),u.onerror=Gk(o)}))}}}(e))),a={};return o.forEach((e=>a[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw new Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:Jk(t),schema:i}}function sR({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){const s=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(iR(t,n,i),e.dbcore);return{dbcore:s}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function oR({_novip:e},t,n,r){n.forEach((n=>{const i=r[n];t.forEach((t=>{const r=hS(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?lS(t,n,{get(){return this.table(n)},set(e){aS(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function aR({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function lR(e,t){return e._cfg.version-t._cfg.version}function cR(e,t,n,r){const i=e._dbSchema,s=e._createTransaction("readwrite",e._storeNames,i);s.create(n),s._completion.catch(r);const o=s._reject.bind(s),a=RE.transless||RE;XE((()=>{RE.trans=s,RE.transless=a,0===t?(eS(i).forEach((e=>{hR(n,e,i[e].primKey,i[e].indexes)})),sR(e,n),DE.follow((()=>e.on.populate.fire(s))).catch(o)):function({_novip:e},t,n,r){const i=[],s=e._versions;let o=e._dbSchema=dR(0,e.idbdb,r),a=!1;return s.filter((e=>e._cfg.version>=t)).forEach((s=>{i.push((()=>{const i=o,l=s._cfg.dbschema;mR(e,i,r),mR(e,l,r),o=e._dbSchema=l;const c=uR(i,l);c.add.forEach((e=>{hR(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new YS.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>pR(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),pR(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const u=s._cfg.contentUpgrade;if(u&&s._cfg.version>t){sR(e,r),n._memoizedTables={},a=!0;let t=vS(l);c.del.forEach((e=>{t[e]=i[e]})),aR(e,[e.Transaction.prototype]),oR(e,[e.Transaction.prototype],eS(t),t),n.schema=t;const s=OS(u);let o;s&&QE();const h=DE.follow((()=>{if(o=u(n),o&&s){var e=JE.bind(null,null);o.then(e,e)}}));return o&&"function"==typeof o.then?DE.resolve(o):h.then((()=>o))}})),i.push((t=>{a&&gk||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(s._cfg.dbschema,t),aR(e,[e.Transaction.prototype]),oR(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?DE.resolve(i.shift()(n.idbtrans)).then(e):DE.resolve()}().then((()=>{var e,t;t=r,eS(e=o).forEach((n=>{t.db.objectStoreNames.contains(n)||hR(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,s,n).catch(o)}))}function uR(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const i=e[r],s=t[r];if(i){const e={name:r,def:s,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(s.primKey.keyPath||"")||i.primKey.auto!==s.primKey.auto&&!fk)e.recreate=!0,n.change.push(e);else{const t=i.idxByName,r=s.idxByName;let o;for(o in t)r[o]||e.del.push(o);for(o in r){const n=t[o],i=r[o];n?n.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,s])}return n}function hR(e,t,n,r){const i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>pR(i,e))),i}function pR(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function dR(e,t,n){const r={};return dS(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let i=t.keyPath;const s=Yk(Xk(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),o=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);i=n.keyPath;var a=Yk(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);o.push(a)}r[e]=Qk(e,s,o)})),r}function mR({_novip:e},t,n){const r=n.db.objectStoreNames;for(let i=0;i<r.length;++i){const s=r[i],o=n.objectStore(s);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){const n=o.indexNames[e],r=o.index(n).keyPath,i="string"==typeof r?r:"["+dS(r).join("+")+"]";if(t[s]){const e=t[s].idxByName[i];e&&(e.name=n,delete t[s].idxByName[i],t[s].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&JC.WorkerGlobalScope&&JC instanceof JC.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class fR{_parseStoresSpec(e,t){eS(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Yk(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),tS(r),0===t)})),i=r.shift();if(i.multi)throw new YS.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new YS.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new YS.Schema("Index must have a name and cannot be an empty string")})),t[n]=Qk(n,i,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?nS(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{nS(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,aR(t,[t._allTables,t,t.Transaction.prototype]),oR(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],eS(i),i),t._storeNames=eS(i),this}upgrade(e){return this._cfg.contentUpgrade=aE(this._cfg.contentUpgrade||JS,e),this}}function gR(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new BR("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function yR(e){return e&&"function"==typeof e.databases}function wR(e){return XE((function(){return RE.letThrough=!0,e()}))}function bR(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function vR(e){var t=t=>e.next(t),n=i(t),r=i((t=>e.throw(t)));function i(e){return t=>{var i=e(t),s=i.value;return i.done?s:s&&"function"==typeof s.then?s.then(n,r):tS(s)?Promise.all(s).then(n,r):n(s)}}return i(t)()}function CR(e,t,n){var r=arguments.length;if(r<2)throw new YS.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var s=SS(i);return[e,s,n]}function SR(e,t,n,r,i){return DE.resolve().then((()=>{const s=RE.transless||RE,o=e._createTransaction(t,n,e._dbSchema,r),a={trans:o,transless:s};if(r)o.idbtrans=r.idbtrans;else try{o.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===jS.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>SR(e,t,n,null,i)))):uk(r)}const l=OS(i);let c;l&&QE();const u=DE.follow((()=>{if(c=i.call(o,o),c)if(l){var e=JE.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=vR(c))}),a);return(c&&"function"==typeof c.then?DE.resolve(c).then((e=>o.active?e:uk(new YS.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):u.then((()=>c))).then((e=>(r&&o._resolve(),o._completion.then((()=>e))))).catch((e=>(o._reject(e),uk(e))))}))}function ER(e,t,n){const r=tS(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const kR={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,i={},s=[];function o(e,t,n){const r=rR(e),a=i[r]=i[r]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,u={...n,isVirtual:c,keyTail:t,keyLength:l,extractKey:eR(e),unique:!c&&n.unique};return a.push(u),u.isPrimaryKey||s.push(u),l>1&&o(2===l?e[0]:e.slice(0,l-1),t+1,n),a.sort(((e,t)=>e.keyTail-t.keyTail)),u}const a=o(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[a];for(const e of r.indexes)o(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,i=n.keyTail,{type:1===r.type?2:r.type,lower:ER(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:ER(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}:t;var r,i}const c={...n,schema:{...r,primaryKey:a,indexes:s,getIndexByKeyPath:function(e){const t=i[rR(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:r,isVirtual:i,keyLength:s}=t.query.index;return i?n.openCursor(l(t)).then((n=>n&&function(n){const i=Object.create(n,{continue:{value:function(i){null!=i?n.continue(ER(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,s).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(ER(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===s?e[0]:e.slice(0,s)}},value:{get:()=>n.value}});return i}(n))):n.openCursor(t)}};return c}}}};function RR(e,t,n,r){return n=n||{},r=r||"",eS(e).forEach((i=>{if(sS(t,i)){var s=e[i],o=t[i];if("object"==typeof s&&"object"==typeof o&&s&&o){const e=DS(s);e!==DS(o)?n[r+i]=t[i]:"Object"===e?RR(s,o,n,r+i+"."):s!==o&&(n[r+i]=t[i])}else s!==o&&(n[r+i]=t[i])}else n[r+i]=void 0})),eS(t).forEach((i=>{sS(e,i)||(n[r+i]=t[i])})),n}const TR={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,i={...n,mutate(e){const i=RE.trans,{deleting:s,creating:o,updating:a}=i.table(t).hook;switch(e.type){case"add":if(o.fire===JS)break;return i._promise("readwrite",(()=>l(e)),!0);case"put":if(o.fire===JS&&a.fire===JS)break;return i._promise("readwrite",(()=>l(e)),!0);case"delete":if(s.fire===JS)break;return i._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(s.fire===JS)break;return i._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=RE.trans,i=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!i)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:i}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,i).then((l=>{const c=i.map(((n,i)=>{const c=l[i],u={onerror:null,onsuccess:null};if("delete"===e.type)s.fire.call(u,n,c,t);else if("add"===e.type||void 0===c){const s=o.fire.call(u,n,e.values[i],t);null==n&&null!=s&&(n=s,e.keys[i]=n,r.outbound||bS(e.values[i],r.keyPath,n))}else{const r=RR(c,e.values[i]),s=a.fire.call(u,r,n,c,t);if(s){const t=e.values[i];Object.keys(s).forEach((e=>{sS(t,e)?t[e]=s[e]:bS(t,e,s[e])}))}}return u}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:s})=>{for(let r=0;r<i.length;++r){const s=n?n[r]:i[r],o=c[r];null==s?o.onerror&&o.onerror(t[r]):o.onsuccess&&o.onsuccess("put"===e.type&&l[r]?e.values[r]:s)}return{failures:t,results:n,numFailures:r,lastResult:s}})).catch((e=>(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<i?{failures:[],numFailures:0,lastResult:void 0}:c(e,{...t,lower:n[n.length-1],lowerOpen:!0},i)))))}}};return i}})};function AR(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let i=0,s=0;i<t.keys.length&&s<e.length;++i)0===Pk(t.keys[i],e[s])&&(r.push(n?TS(t.values[i]):t.values[i]),++s);return r.length===e.length?r:null}catch(e){return null}}const xR={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=AR(e.keys,e.trans._cache,"clone"===e.cache);return t?DE.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?TS(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function DR(e){return!("from"in e)}const _R=function(e,t){if(!this){const t=new _R;return e&&"d"in e&&nS(t,e),t}nS(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function MR(e,t,n){const r=Pk(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(DR(e))return nS(e,{from:t,to:n,d:1});const i=e.l,s=e.r;if(Pk(n,e.from)<0)return i?MR(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},OR(e);if(Pk(t,e.to)>0)return s?MR(s,t,n):e.r={from:t,to:n,d:1,l:null,r:null},OR(e);Pk(t,e.from)<0&&(e.from=t,e.l=null,e.d=s?s.d+1:1),Pk(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const o=!e.r;i&&!e.l&&PR(e,i),s&&o&&PR(e,s)}function PR(e,t){DR(t)||function e(t,{from:n,to:r,l:i,r:s}){MR(t,n,r),i&&e(t,i),s&&e(t,s)}(e,t)}function IR(e){let t=DR(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Pk(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Pk(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function OR(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){const t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=NR(n)}e.d=NR(e)}function NR({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}oS(_R.prototype,{add(e){return PR(this,e),this},addKey(e){return MR(this,e,e),this},addKeys(e){return e.forEach((e=>MR(this,e,e))),this},[_S](){return IR(this)}});const LR={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new _R(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const i=e.table(r),{schema:s}=i,{primaryKey:o}=s,{extractKey:a,outbound:l}=o,c={...i,mutate:e=>{const o=e.trans,a=o.mutatedParts||(o.mutatedParts={}),l=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new _R)},c=l(""),u=l(":dels"),{type:h}=e;let[p,d]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return i.mutate(e).then((e=>{if(tS(p)){"delete"!==h&&(p=e.results),c.addKeys(p);const t=AR(p,m);t||"add"===h||u.addKeys(p),(t||d)&&function(e,t,n,r){t.indexes.forEach((function(t){const i=e(t.name||"");function s(e){return null!=e?t.extractKey(e):null}const o=e=>t.multiEntry&&tS(e)?e.forEach((e=>i.addKey(e))):i.addKey(e);(n||r).forEach(((e,t)=>{const i=n&&s(n[t]),a=r&&s(r[t]);0!==Pk(i,a)&&(null!=i&&o(i),null!=a&&o(a))}))}))}(l,s,t,d)}else if(p){const e={from:p.lower,to:p.upper};u.add(e),c.add(e)}else c.add(n),u.add(n),s.indexes.forEach((e=>l(e.name).add(n)));return e}))}},u=({query:{index:t,range:n}})=>{var r,i;return[t,new _R(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(i=n.upper)&&void 0!==i?i:e.MAX_KEY)]},h={get:e=>[o,new _R(e.key)],getMany:e=>[o,(new _R).addKeys(e.keys)],count:u,query:u,openCursor:u};return eS(h).forEach((e=>{c[e]=function(s){const{subscr:o}=RE;if(o){const c=e=>{const n=`idb://${t}/${r}/${e}`;return o[n]||(o[n]=new _R)},u=c(""),p=c(":dels"),[d,m]=h[e](s);if(c(d.name||"").add(m),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&l&&s.values&&i.query({...s,values:!1});return i[e].apply(this,arguments).then((n=>{if("query"===e){if(l&&s.values)return t.then((({result:e})=>(u.addKeys(e),n)));const e=s.values?n.result.map(a):n.result;s.values?u.addKeys(e):p.addKeys(e)}else if("openCursor"===e){const e=n,t=s.values;return e&&Object.create(e,{key:{get:()=>(p.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return p.addKey(t),t}},value:{get:()=>(t&&u.addKey(e.primaryKey),e.value)}})}return n}))}p.add(n)}}return i[e].apply(this,arguments)}})),c}}}};class BR{constructor(e,t){this._middlewares={},this.verno=0;const n=BR.dependencies;this._options=t={addons:BR.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:JS,dbReadyPromise:null,cancelOpen:JS,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var s;i.dbReadyPromise=new DE((e=>{i.dbReadyResolve=e})),i.openCanceller=new DE(((e,t)=>{i.cancelOpen=t})),this._state=i,this.name=e,this.on=Ek(this,"populate","blocked","versionchange","close",{ready:[aE,JS]}),this.on.ready.subscribe=mS(this.on.ready.subscribe,(e=>(t,n)=>{BR.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||DE.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(s=this,kk(Nk.prototype,(function(e,t){this.db=s;let n=vk,r=null;if(t)try{n=t()}catch(e){r=e}const i=e._ctx,o=i.table,a=o.hook.reading.fire;this._ctx={table:o,index:i.index,isPrimKey:!i.index||o.schema.primKey.keyPath&&i.index===o.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:a!==eE?a:null}}))),this.Table=function(e){return kk(Sk.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Ek(null,{creating:[rE,JS],reading:[tE,eE],updating:[sE,JS],deleting:[iE,JS]})}))}(this),this.Transaction=function(e){return kk(Kk.prototype,(function(t,n,r,i,s){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=Ek(this,"complete","error","abort"),this.parent=s||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new DE(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),uk(e)}))}))}(this),this.Version=function(e){return kk(fR.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return kk(Vk.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const i=e._deps.indexedDB;if(!i)throw new YS.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(e,t)=>i.cmp(t,e),this._max=(e,t)=>i.cmp(e,t)>0?e:t,this._min=(e,t)=>i.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=Jk(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),mk.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(kR),this.use(TR),this.use(LR),this.use(xR),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new YS.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new YS.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(lR),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||RE.letThrough||this._vip)?e():new DE(((e,t)=>{if(this._state.openComplete)return t(new YS.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new YS.DatabaseClosed);this.open().catch(JS)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?uk(t.dbOpenError):e));NS&&(t.openCanceller._stackHolder=HS()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new YS.DatabaseClosed("db.open() was cancelled")}let s=t.dbReadyResolve,o=null,a=!1;return DE.race([r,("undefined"==typeof navigator?DE.resolve():bR()).then((()=>new DE(((r,s)=>{if(i(),!n)throw new YS.MissingAPI;const l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new YS.MissingAPI;c.onerror=Gk(s),c.onblocked=qE(e._fireOnBlocked),c.onupgradeneeded=qE((r=>{if(o=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=zk,o.abort(),c.result.close();const e=n.deleteDatabase(l);e.onsuccess=e.onerror=qE((()=>{s(new YS.NoSuchDatabase(`Database ${l} doesnt exist`))}))}else{o.onerror=Gk(s);var i=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;a=i<1,e._novip.idbdb=c.result,cR(e,i/10,o,s)}}),s),c.onsuccess=qE((()=>{o=null;const n=e._novip.idbdb=c.result,i=dS(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(s=i).length?s[0]:s,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=dR(0,t,n);e._storeNames=dS(t.objectStoreNames,0),oR(e,[e._allTables],eS(r),r)}(e,n,r):(mR(e,e._dbSchema,r),function(e,t){const n=uR(dR(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),sR(e,r)}catch(e){}var s;mk.push(e),n.onversionchange=qE((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=qE((t=>{e.on("close").fire(t)})),a&&function({indexedDB:e,IDBKeyRange:t},n){!yR(e)&&"__dbnames"!==n&&gR(e,t).put({name:n}).catch(JS)}(e._deps,l),r()}),s)}))))]).then((()=>(i(),t.onReadyBeingFired=[],DE.resolve(wR((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(aE,JS);return t.onReadyBeingFired=[],DE.resolve(wR((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{o&&o.abort()}catch(e){}return r===t.openCanceller&&e._close(),uk(n)})).finally((()=>{t.openComplete=!0,s()}))}(this)}_close(){const e=this._state,t=mk.indexOf(this);if(t>=0&&mk.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new DE((t=>{e.dbReadyResolve=t})),e.openCanceller=new DE(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new YS.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new DE(((n,r)=>{const i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=qE((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!yR(e)&&"__dbnames"!==n&&gR(e,t).delete(n).catch(JS)}(this._deps,this.name),n()})),e.onerror=Gk(r),e.onblocked=this._fireOnBlocked};if(e)throw new YS.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return eS(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=CR.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=RE.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const i=-1!==e.indexOf("?");let s,o;e=e.replace("!","").replace("?","");try{if(o=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)s="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new YS.InvalidArgument("Invalid transaction mode: "+e);s="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===s){if(!i)throw new YS.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!i)throw new YS.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):uk(e)}const a=SR.bind(null,this,s,o,r,n);return r?r._promise(s,a,"lock"):RE.trans?sk(RE.transless,(()=>this._whenReady(a))):this._whenReady(a)}table(e){if(!sS(this._allTables,e))throw new YS.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const FR="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class HR{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[FR](){return this}}function UR(e,t){return eS(t).forEach((n=>{PR(e[n]||(e[n]=new _R),t[n])})),e}let ZR;try{ZR={indexedDB:JC.indexedDB||JC.mozIndexedDB||JC.webkitIndexedDB||JC.msIndexedDB,IDBKeyRange:JC.IDBKeyRange||JC.webkitIDBKeyRange}}catch(JC){ZR={indexedDB:null,IDBKeyRange:null}}const $R=BR;function WR(e){let t=qR;try{qR=!0,jk.storagemutated.fire(e)}finally{qR=t}}oS($R,{...QS,delete:e=>new $R(e,{addons:[]}).delete(),exists:e=>new $R(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return yR(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):gR(e,t).toCollection().primaryKeys()}($R.dependencies).then(e)}catch(e){return uk(new YS.MissingAPI)}},defineClass:()=>function(e){nS(this,e)},ignoreTransaction:e=>RE.trans?sk(RE.transless,e):e(),vip:wR,async:function(e){return function(){try{var t=vR(e.apply(this,arguments));return t&&"function"==typeof t.then?t:DE.resolve(t)}catch(e){return uk(e)}}},spawn:function(e,t,n){try{var r=vR(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:DE.resolve(r)}catch(e){return uk(e)}},currentTransaction:{get:()=>RE.trans||null},waitFor:function(e,t){const n=DE.resolve("function"==typeof e?$R.ignoreTransaction(e):e).timeout(t||6e4);return RE.trans?RE.trans.waitFor(n):n},Promise:DE,debug:{get:()=>NS,set:e=>{LS(e,"dexie"===e?()=>!0:wk)}},derive:cS,extend:nS,props:oS,override:mS,Events:Ek,on:jk,liveQuery:function(e){return new HR((t=>{const n=OS(e);let r=!1,i={},s={};const o={get closed(){return r},unsubscribe:()=>{r=!0,jk.storagemutated.unsubscribe(u)}};t.start&&t.start(o);let a=!1,l=!1;function c(){return eS(s).some((e=>i[e]&&function(e,t){const n=IR(t);let r=n.next();if(r.done)return!1;let i=r.value;const s=IR(e);let o=s.next(i.from),a=o.value;for(;!r.done&&!o.done;){if(Pk(a.from,i.to)<=0&&Pk(a.to,i.from)>=0)return!0;Pk(i.from,a.from)<0?i=(r=n.next(a.from)).value:a=(o=s.next(i.from)).value}return!1}(i[e],s[e])))}const u=e=>{UR(i,e),c()&&h()},h=()=>{if(a||r)return;i={};const p={},d=function(t){n&&QE();const r=()=>XE(e,{subscr:t,trans:null}),i=RE.trans?sk(RE.transless,r):r();return n&&i.then(JE,JE),i}(p);l||(jk("storagemutated",u),l=!0),a=!0,Promise.resolve(d).then((e=>{a=!1,r||(c()?h():(i={},s=p,t.next&&t.next(e)))}),(e=>{a=!1,t.error&&t.error(e),o.unsubscribe()}))};return h(),o}))},extendObservabilitySet:UR,getByKeyPath:wS,setByKeyPath:bS,delByKeyPath:function(e,t){"string"==typeof t?bS(e,t,void 0):"length"in t&&[].map.call(t,(function(t){bS(e,t,void 0)}))},shallowClone:vS,deepClone:TS,getObjectDiff:RR,cmp:Pk,asap:gS,minKey:-1/0,addons:[],connections:mk,errnames:jS,dependencies:ZR,semVer:"3.2.2",version:"3.2.2".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),$R.maxKey=Jk($R.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(jk("storagemutated",(e=>{if(!qR){let t;fk?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),qR=!0,dispatchEvent(t),qR=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{qR||WR(e)})));let qR=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");jk("storagemutated",(t=>{qR||e.postMessage(t)})),e.onmessage=e=>{e.data&&WR(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){jk("storagemutated",(e=>{try{qR||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&WR(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&WR(e.changedParts)}))}DE.rejectionMapper=function(e,t){if(!e||e instanceof qS||e instanceof TypeError||e instanceof SyntaxError||!e.name||!XS[e.name])return e;var n=new XS[e.name](t||e.message,e);return"stack"in e&&lS(n,"stack",{get:function(){return this.inner.stack}}),n},LS(NS,wk);class VR extends BR{schemaVersion;constructor(e,t){super(e),this.schemaVersion=t}async conditionalVersion(e,t,n){if(null!=this.schemaVersion&&this.schemaVersion<e)return;const r=this.version(e).stores(t);null!=n&&await r.upgrade(n)}}function GR(e){const t=e.table("gitHubRepositories"),n=new Set;return t.toCollection().each((e=>{const r=`${e.ownerID}+${e.name}`;if(n.has(r)){const n=e.id;t.delete(n)}else n.add(r)}))}async function zR(e){return e.table("gitHubRepositories").toCollection().filter((e=>void 0===e.parentID)).modify({parentID:null}).then((e=>log.info(`ensureNoUndefinedParentID: ${e}`)))}async function jR(e){const t=e.table("owners"),n=e.table("gitHubRepositories"),r=await t.toArray(),i=new Map,s=new Array,o=new Array;for(const e of r){ht(e.id,"Missing owner id");const t=KR(e.endpoint,e.login),n=i.get(t);void 0!==n?(ht(n.id,"Missing existing owner id"),log.warn(`createOwnerKey: Conflicting owner data ${e.id} (${e.login}) and ${n.id} (${n.login})`),s.push({from:e.id,to:n.id}),o.push(e.id)):i.set(t,{...e,key:t})}log.info(`createOwnerKey: Updating ${i.size} owners with keys`),await t.bulkPut([...i.values()]);for(const e of s){const t=await n.where("[ownerID+name]").between([e.from],[e.from+1]).modify({ownerID:e.to});log.info(`createOwnerKey: ${t} repositories got new owner ids`)}await t.bulkDelete(o)}function KR(e,t){return`${e}/users/${t}`.toLowerCase()}class YR{login;endpoint;id;type;constructor(e,t,n,r){this.login=e,this.endpoint=t,this.id=n,this.type=r}}function XR(e,t){return`${QR(e)}${t}`}function QR(e){return`${e}-`}const JR=new Set(["https:","http:"]),eT="invalid-url",tT="invalid-protocol";var nT=n(9599),rT=n.n(nT),iT=n(1928);function sT(e){return`Unable to authenticate. The account ${e} is lacking a verified email address. Please sign in to GitHub.com, confirm your email address in the Emails section under Personal settings, and try again.`}const oT="The GitHub Enterprise version does not support GitHub Desktop. Talk to your server's administrator about upgrading to the latest version of GitHub Enterprise.";var aT,lT;function cT(e,t){return[e.dbID,t]}function uT(e){const t=e.owner.login;return{name:e.name,owner:t}}!function(e){e.EndpointEntry="EndpointEntry",e.Authentication="Authentication",e.TwoFactorAuthentication="TwoFactorAuthentication",e.Success="Success"}(aT||(aT={})),function(e){e.Basic="basic",e.Web="web"}(lT||(lT={}));const hT=12e4;class pT{repository;account;coordinator;timeoutId=null;running=!1;constructor(e,t,n){this.repository=e,this.account=t,this.coordinator=n}start(){this.running||(this.running=!0,this.scheduleTick(hT))}getTimeSinceLastRefresh(){const e=this.coordinator.getLastRefreshed(this.repository);return void 0===e?1/0:Date.now()-e}scheduleTick(e=18e5){if(this.running){const t=Math.max(e-this.getTimeSinceLastRefresh(),0);this.timeoutId=window.setTimeout((()=>this.tick()),t)}}tick(){this.running&&(this.timeoutId=null,this.getTimeSinceLastRefresh()<hT&&this.scheduleTick(),this.coordinator.refreshPullRequests(this.repository,this.account).catch((()=>{})).then((()=>this.scheduleTick())))}stop(){this.running&&(null!==this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=null),this.running=!1)}}function dT(e,t){const{dbID:n}=e;return t.filter((e=>Gr(e).dbID===n))}const mT="stats-guid";let fT=null;async function gT(){return fT=fT??await ge(),fT}const yT="https://desktop.github.com/usage-data/",wT="last-daily-stats-report",bT="stats-opt-out",vT="has-sent-stats-opt-in-ping",CT="welcome-wizard-initiated-at",ST="welcome-wizard-terminated-at",ET="first-repository-added-at",kT="first-repository-cloned-at",RT="first-repository-created-at",TT="first-commit-created-at",AT="first-push-to-github-at",xT="first-non-default-branch-checkout-at",DT="welcome-wizard-sign-in-method",_T="repositories-committed-in-without-write-access",MT={commits:0,partialCommits:0,openShellCount:0,coAuthoredCommits:0,commitsUndoneWithChanges:0,commitsUndoneWithoutChanges:0,branchComparisons:0,defaultBranchComparisons:0,mergesInitiatedFromComparison:0,updateFromDefaultBranchMenuCount:0,mergeIntoCurrentBranchMenuCount:0,prBranchCheckouts:0,repoWithIndicatorClicked:0,repoWithoutIndicatorClicked:0,dotcomPushCount:0,dotcomForcePushCount:0,enterprisePushCount:0,enterpriseForcePushCount:0,externalPushCount:0,externalForcePushCount:0,active:!1,mergeConflictFromPullCount:0,mergeConflictFromExplicitMergeCount:0,mergedWithLoadingHintCount:0,mergedWithCleanMergeHintCount:0,mergedWithConflictWarningHintCount:0,mergeSuccessAfterConflictsCount:0,mergeAbortedAfterConflictsCount:0,unattributedCommits:0,enterpriseCommits:0,dotcomCommits:0,mergeConflictsDialogDismissalCount:0,anyConflictsLeftOnMergeConflictsDialogDismissalCount:0,mergeConflictsDialogReopenedCount:0,guidedConflictedMergeCompletionCount:0,unguidedConflictedMergeCompletionCount:0,createPullRequestCount:0,createPullRequestFromPreviewCount:0,rebaseConflictsDialogDismissalCount:0,rebaseConflictsDialogReopenedCount:0,rebaseAbortedAfterConflictsCount:0,rebaseSuccessAfterConflictsCount:0,rebaseSuccessWithoutConflictsCount:0,rebaseWithBranchAlreadyUpToDateCount:0,pullWithRebaseCount:0,pullWithDefaultSettingCount:0,stashEntriesCreatedOutsideDesktop:0,errorWhenSwitchingBranchesWithUncommmittedChanges:0,rebaseCurrentBranchMenuCount:0,stashViewedAfterCheckoutCount:0,stashCreatedOnCurrentBranchCount:0,stashNotViewedAfterCheckoutCount:0,changesTakenToNewBranchCount:0,stashRestoreCount:0,stashDiscardCount:0,stashViewCount:0,noActionTakenOnStashCount:0,suggestedStepOpenInExternalEditor:0,suggestedStepOpenWorkingDirectory:0,suggestedStepViewOnGitHub:0,suggestedStepPublishRepository:0,suggestedStepPublishBranch:0,suggestedStepCreatePullRequest:0,suggestedStepViewStash:0,commitsToProtectedBranch:0,commitsToRepositoryWithBranchProtections:0,tutorialStarted:!1,tutorialRepoCreated:!1,tutorialEditorInstalled:!1,tutorialBranchCreated:!1,tutorialFileEdited:!1,tutorialCommitCreated:!1,tutorialBranchPushed:!1,tutorialPrCreated:!1,tutorialCompleted:!1,highestTutorialStepCompleted:-1,commitsToRepositoryWithoutWriteAccess:0,forksCreated:0,issueCreationWebpageOpenedCount:0,tagsCreatedInDesktop:0,tagsCreated:0,tagsDeleted:0,diffModeChangeCount:0,diffOptionsViewedCount:0,repositoryViewChangeCount:0,unhandledRejectionCount:0,cherryPickSuccessfulCount:0,cherryPickViaDragAndDropCount:0,cherryPickViaContextMenuCount:0,dragStartedAndCanceledCount:0,cherryPickConflictsEncounteredCount:0,cherryPickSuccessfulWithConflictsCount:0,cherryPickMultipleCommitsCount:0,cherryPickUndoneCount:0,cherryPickBranchCreatedCount:0,amendCommitStartedCount:0,amendCommitSuccessfulWithFileChangesCount:0,amendCommitSuccessfulWithoutFileChangesCount:0,reorderSuccessfulCount:0,reorderStartedCount:0,reorderConflictsEncounteredCount:0,reorderSuccessfulWithConflictsCount:0,reorderMultipleCommitsCount:0,reorderUndoneCount:0,squashConflictsEncounteredCount:0,squashMultipleCommitsInvokedCount:0,squashSuccessfulCount:0,squashSuccessfulWithConflictsCount:0,squashViaContextMenuInvokedCount:0,squashViaDragAndDropInvokedCount:0,squashUndoneCount:0,squashMergeIntoCurrentBranchMenuCount:0,squashMergeSuccessfulWithConflictsCount:0,squashMergeSuccessfulCount:0,squashMergeInvokedCount:0,resetToCommitCount:0,opensCheckRunsPopover:0,viewsCheckOnline:0,viewsCheckJobStepOnline:0,rerunsChecks:0,checksFailedNotificationCount:0,checksFailedNotificationFromRecentRepoCount:0,checksFailedNotificationFromNonRecentRepoCount:0,checksFailedNotificationClicked:0,checksFailedDialogOpenCount:0,checksFailedDialogSwitchToPullRequestCount:0,checksFailedDialogRerunChecksCount:0,pullRequestReviewNotificationFromRecentRepoCount:0,pullRequestReviewNotificationFromNonRecentRepoCount:0,pullRequestReviewApprovedNotificationCount:0,pullRequestReviewApprovedNotificationClicked:0,pullRequestReviewApprovedDialogSwitchToPullRequestCount:0,pullRequestReviewCommentedNotificationCount:0,pullRequestReviewCommentedNotificationClicked:0,pullRequestReviewCommentedDialogSwitchToPullRequestCount:0,pullRequestReviewChangesRequestedNotificationCount:0,pullRequestReviewChangesRequestedNotificationClicked:0,pullRequestReviewChangesRequestedDialogSwitchToPullRequestCount:0,pullRequestCommentNotificationCount:0,pullRequestCommentNotificationClicked:0,pullRequestCommentNotificationFromRecentRepoCount:0,pullRequestCommentNotificationFromNonRecentRepoCount:0,pullRequestCommentDialogSwitchToPullRequestCount:0,multiCommitDiffWithUnreachableCommitWarningCount:0,multiCommitDiffFromHistoryCount:0,multiCommitDiffFromCompareCount:0,multiCommitDiffUnreachableCommitsDialogOpenedCount:0,submoduleDiffViewedFromChangesListCount:0,submoduleDiffViewedFromHistoryCount:0,openSubmoduleFromDiffCount:0,previewedPullRequestCount:0},PT=e=>fetch("https://central.github.com/api/usage/desktop",{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)});function IT(e){null===localStorage.getItem(e)&&$t(e,Date.now())}function OT(e){return Zt(e)??null}function NT(e){const t=OT(CT);if(null===t)return;const n=OT(e);return null===n||n<=t?-1:Math.round((n-t)/1e3)}function LT(){return Ht(bT)}let BT;function FT(e,t){if(LT())return;const n=Date.now();void 0!==BT&&n-BT<6e4||(BT=n,process.emit("send-non-fatal-exception",t,{kind:e}))}function HT(e,t,n){const r=mp(e,n),i=mp(t,n);if(null===r||null===i)return[];const s=Rp(r,i>r?i+1:i-1),o=new Array(s.length);for(let e=0;e<s.length;e++){const t=fp(s[e],n);null!==t&&(o[e]=t)}return o}class UT{map=new Map;getIndexPathKey(e){return`${e.section}-${e.row}`}get(e){return this.map.get(this.getIndexPathKey(e))}set(e,t){this.map.set(this.getIndexPathKey(e),t)}delete(e){this.map.delete(this.getIndexPathKey(e))}}class ZT extends Ae.Component{fakeScroll=null;focusRow=hp;rowRefs=new UT;gridStyle={overflowX:"hidden"};lastScroll=null;list=null;rootGrid=null;grids=new Map;resizeObserver=null;updateSizeTimeoutId=null;getContainerProps=Tr((e=>({onKeyDown:this.onKeyDown,"aria-activedescendant":e,"aria-multiselectable":"multi"===this.props.selectionMode||"range"===this.props.selectionMode?"true":void 0})));constructor(e){super(e),this.state={scrollTop:0};const t=window.ResizeObserver;ResizeObserver&&(this.resizeObserver=new t((e=>{for(const{target:t,contentRect:n}of e)t===this.list&&null!==this.list&&(null!==this.updateSizeTimeoutId&&clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=setImmediate(this.onResized,this.list,n))})))}get totalRowCount(){return dp(this.props.rowCount)}getRowId(e){return this.props.rowId?this.props.rowId(e):void 0===this.state.rowIdPrefix?void 0:`${this.state.rowIdPrefix}-${e.section}-${e.row}`}onResized=(e,t)=>{this.updateSizeTimeoutId=null;const[n,r]=[e.offsetWidth,e.offsetHeight];this.state.width===n&&this.state.height===r||this.setState({width:n,height:r})};onSelectAll=e=>{const t=this.props.selectionMode;if("range"!==t&&"multi"!==t)return;if(e.preventDefault(),this.totalRowCount<=0)return;const n={kind:"select-all"},r={section:0,row:0},i={section:this.props.rowCount.length-1,row:this.props.rowCount[this.props.rowCount.length-1]-1};if(this.props.onSelectionChanged){const e=HT(r,i,this.props.rowCount);this.props.onSelectionChanged(e,n)}"range"===t&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,i,n)};onRef=e=>{null===e&&null!==this.list&&this.list.removeEventListener("select-all",this.onSelectAll),this.list=e,null!==e&&e.addEventListener("select-all",this.onSelectAll),this.resizeObserver&&(this.resizeObserver.disconnect(),null!==e?this.resizeObserver.observe(e):this.setState({width:void 0,height:void 0}))};onKeyDown=e=>{if(this.props.onRowKeyDown)for(const t of this.props.selectedRows)this.props.onRowKeyDown(t,e);if(e.defaultPrevented)return;const t={kind:"keyboard",event:e},n="Home"===e.key,r="End"===e.key,i=e.shiftKey&&void 0!==this.props.selectionMode&&"single"!==this.props.selectionMode;if(n||r){const r=n?"up":"down";i?this.addSelectionToLastSelectableRow(r,t):this.moveSelectionToLastSelectableRow(r,t),e.preventDefault()}else if("ArrowUp"===e.key||"ArrowDown"===e.key){const n="ArrowUp"===e.key?"up":"down";i?this.addSelection(n,t):this.moveSelection(n,t),e.preventDefault()}else if("a"===e.key&&e.ctrlKey)this.onSelectAll(e);else if("PageUp"===e.key||"PageDown"===e.key){const n="PageUp"===e.key?"up":"down";i?this.addSelectionByPage(n,t):this.moveSelectionByPage(n,t),e.preventDefault()}};moveSelectionByPage(e,t){const n=this.getNextPageRowIndexPath(e);this.moveSelectionTo(n,t)}addSelectionByPage(e,t){const{selectedRows:n}=this.props,r=this.getNextPageRowIndexPath(e),i=HT(n[0]??0,r,this.props.rowCount);this.props.onSelectionChanged&&this.props.onSelectionChanged(i,t),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(i[0],i[i.length-1],t),this.scrollRowToVisible(r)}getNextPageRowIndexPath(e){const{selectedRows:t}=this.props,n=t.at(-1)??{row:0,section:0};return this.findNextPageSelectableRow(n,e)}getHeightForRowAtIndexPath(e){const{rowHeight:t}=this.props;return"number"==typeof t?t:t({index:e})}findNextPageSelectableRow(e,t){const{height:n}=this.state,{rowCount:r}=this.props;if(void 0===n)return e;let i=0,s=e;const o="up"===t?-1:1;for(let t=e.section;t<r.length&&t>=0;t+=o)for(let a=t===e.section?e.row:0;a<r[t]&&a>=0;a+=o){const e={section:t,row:a},r=this.getHeightForRowAtIndexPath(e);if(i+r>n)break;i+=r,this.canSelectRow(e)&&(s=e)}return s}onRowKeyDown=(e,t)=>{this.props.onRowKeyDown&&this.props.onRowKeyDown(e,t);const n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;t.defaultPrevented||n||"Enter"!==t.key&&" "!==t.key||(this.toggleSelection(t),t.preventDefault())};onFocusContainerKeyDown=e=>{const t=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;e.defaultPrevented||t||"Enter"!==e.key&&" "!==e.key||(this.toggleSelection(e),e.preventDefault())};onFocusWithinChanged=e=>{if(e){if(0===this.props.selectedRows.length){const e=this.getFirstSelectableRowIndexPath();null!==e&&this.moveSelectionTo(e,{kind:"focus"})}}else this.focusRow=hp};toggleSelection=e=>{this.props.selectedRows.forEach((t=>{this.props.onRowClick&&(gp(t,this.props.rowCount)?this.props.onRowClick(t,{kind:"keyboard",event:e}):log.debug(`[List.toggleSelection] unable to onRowClick for row ${t} as it is outside the bounds`))}))};onRowFocus=(e,t)=>{this.focusRow=e,this.props.onRowFocus?.(e,t)};onRowKeyboardFocus=(e,t)=>{this.props.onRowKeyboardFocus?.(e,t)};onRowBlur=(e,t)=>{pp(this.focusRow,e)&&(this.focusRow=hp),this.props.onRowBlur?.(e,t)};onRowContextMenu=(e,t)=>{this.props.onRowContextMenu?.(e,t)};get firstRowIndexPath(){for(let e=0;e<this.props.rowCount.length;e++)if(this.props.rowCount[e]>0)return{section:e,row:0};return hp}canSelectRow=e=>!this.props.canSelectRow||this.props.canSelectRow(e);getFirstSelectableRowIndexPath(){const{rowCount:e}=this.props;for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n;e++){const n={section:t,row:e};if(this.canSelectRow(n))return n}}return null}addSelection(e,t){if(0===this.props.selectedRows.length)return this.moveSelection(e,t);const n=this.props.selectedRows[this.props.selectedRows.length-1],r=this.props.selectedRows[0],i=yp(this.props.rowCount,{direction:e,row:n,wrap:!1},this.canSelectRow);if(null!=i){if(this.props.onSelectionChanged){const e=HT(r,i,this.props.rowCount);this.props.onSelectionChanged(e,t)}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,i,t),this.scrollRowToVisible(i)}}moveSelection(e,t){const n=this.props.selectedRows.length>0?this.props.selectedRows[this.props.selectedRows.length-1]:hp,r=yp(this.props.rowCount,{direction:e,row:n},this.canSelectRow);null!=r&&this.moveSelectionTo(r,t)}moveSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:i}=r,s=wp(e,i,n);null!==s&&this.moveSelectionTo(s,t)}addSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:i,selectedRows:s}=r,o=wp(e,i,n);if(null===o)return;const a=this.firstRowIndexPath,l=HT(s[0]??a,o,i);this.props.onSelectionChanged?.(l,t);const c=l.at(0)??a,u=l.at(-1)??a;this.props.onSelectedRangeChanged?.(c,u,t),this.scrollRowToVisible(o)}moveSelectionTo(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],t),this.props.onSelectedRowChanged){if(!gp(e,this.props.rowCount))return void log.debug(`[List.moveSelection] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds`);this.props.onSelectedRowChanged(e,t)}this.scrollRowToVisible(e)}scrollRowToVisible(e,t=!0){if(null===this.rootGrid)return;const{scrollTop:n}=this.state,r=this.getHeightForRowAtIndexPath(e),i=this.getSectionScrollOffset(e.section),s=this.getRowOffsetInSection(e),o=De.findDOMNode(this.rootGrid);if(!(o instanceof HTMLElement))return;const a=i+s+r-o.getBoundingClientRect().height,l=i+s,c=Math.max(a,Math.min(l,n));this.rootGrid?.scrollToPosition({scrollLeft:0,scrollTop:c}),t&&(this.focusRow=e,this.rowRefs.get(e)?.focus({preventScroll:!0}))}componentDidMount(){const{props:e}=this,{selectedRows:t,scrollToRow:n,setScrollTop:r}=e,i=n??t.at(0);if(void 0===i)return;const s=this.grids.get(i.section);void 0!==s&&void 0===r&&s.scrollToCell({rowIndex:i.row,columnIndex:0})}componentDidUpdate(e,t){const{scrollToRow:n,setScrollTop:r}=this.props;if(void 0===n||void 0!==e.scrollToRow&&pp(e.scrollToRow,n)||void 0===r&&this.scrollRowToVisible(n,!1),this.grids.size>0){const n=sp(this.props.rowCount,e.rowCount),r=!n||this.state.width!==t.width||this.state.height!==t.height;if(n||this.rootGrid?.recomputeGridSize(),!r){const t=!sp(e.selectedRows,this.props.selectedRows),n=!op(e.invalidationProps,this.props.invalidationProps);if(t||n)for(const e of this.grids.values())e.forceUpdate()}}}componentWillMount(){this.setState({rowIdPrefix:si("ListRow")})}componentWillUnmount(){null!==this.updateSizeTimeoutId&&(clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=null),this.resizeObserver&&this.resizeObserver.disconnect(),this.state.rowIdPrefix&&oi(this.state.rowIdPrefix)}onRowRef=(e,t)=>{if(null===t?this.rowRefs.delete(e):this.rowRefs.set(e,t),pp(e,this.focusRow))if(null===t){const t=this.grids.get(e.section);if(void 0===t){const e=De.findDOMNode(t);e instanceof HTMLElement&&e.focus({preventScroll:!0})}}else t.focus({preventScroll:!0})};getCustomRowClassNames=e=>{const{rowCustomClassNameMap:t}=this.props;if(void 0===t)return;const n=new Array;return t.forEach(((t,r)=>{t.includes(e)&&n.push(r)})),0===n.length?void 0:n.join(" ")};getRowRenderer=(e,t)=>n=>{const{selectedRows:r}=this.props,i={section:e,row:n.rowIndex},s=this.canSelectRow(i),o=-1!==r.findIndex((e=>pp(e,i))),a=this.getCustomRowClassNames(i);let l;s&&(l=o&&pp(r[0],i)||0===r.length&&null!==t&&pp(t,i)?0:-1);const c=this.props.rowRenderer(i),u=this.props.sectionHasHeader?.(i.section)??!1,h=void 0!==this.props.insertionDragType?Ae.createElement(kp,{onDropDataInsertion:this.props.onDropDataInsertion,itemIndex:i,dragType:this.props.insertionDragType,forcedFeedbackType:Ep.None},c):c,p=this.getRowId(i),d=void 0!==this.props.getRowAriaLabel?this.props.getRowAriaLabel(i):void 0;return Ae.createElement(up,{key:n.key,id:p,ariaLabel:d,sectionHasHeader:u,onRowRef:this.onRowRef,rowCount:this.props.rowCount[i.section],rowIndex:i,selected:o,inKeyboardInsertionMode:!1,onRowClick:this.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyDown:this.onRowKeyDown,onRowMouseDown:this.onRowMouseDown,onRowMouseUp:this.onRowMouseUp,onRowFocus:this.onRowFocus,onRowKeyboardFocus:this.onRowKeyboardFocus,onRowBlur:this.onRowBlur,onContextMenu:this.onRowContextMenu,style:n.style,tabIndex:l,children:h,selectable:s,className:a})};render(){let e;return e=this.resizeObserver?this.renderContents(this.state.width??0,this.state.height??0):Ae.createElement(_h,{disableWidth:!0,disableHeight:!0},(({width:e,height:t})=>this.renderContents(e,t))),Ae.createElement("div",{ref:this.onRef,id:this.props.id,className:"list","aria-labelledby":this.props.ariaLabelledBy,"aria-label":this.props.ariaLabel},e)}renderContents(e,t){return this.renderGrid(e,t)}getRowHeight=e=>{const t=this.props.rowHeight;return"number"==typeof t?t:n=>{const r={section:e,row:n.index};return t({index:r})}};onRootGridRef=e=>{this.rootGrid=e};getOnGridRef=e=>t=>{null===t?this.grids.delete(e):this.grids.set(e,t)};onFakeScrollRef=e=>{this.fakeScroll=e};getSectionScrollOffset=e=>this.props.rowCount.slice(0,e).reduce(((e,t,n)=>e+this.getSectionHeight(n)),0);getSectionGridRenderer=(e,t)=>e=>{const n=e.rowIndex,r=this.getSectionHeight(n),i=this.getSectionScrollOffset(n),s=Math.max(0,Math.min(r,this.state.scrollTop-i));return Ae.createElement(np,{key:n,id:this.props.accessibleListId,role:"listbox",ref:this.getOnGridRef(n),autoContainerWidth:!0,containerRole:"presentation","aria-multiselectable":"single"!==this.props.selectionMode||void 0,columnWidth:1e4,width:1e4,height:Math.min(r,t),columnCount:1,rowCount:this.props.rowCount[n],rowHeight:this.getRowHeight(n),cellRenderer:this.getRowRenderer(n,this.getFirstSelectableRowIndexPath()),scrollTop:s,overscanRowCount:4,style:{...e.style,width:"100%"},tabIndex:-1})};getRowOffsetInSection(e){if("number"==typeof this.props.rowHeight)return e.row*this.props.rowHeight;let t=0;for(let n=0;n<e.row;n++)t+=this.props.rowHeight({index:e});return t}getSectionHeight(e){if("number"==typeof this.props.rowHeight)return this.props.rowCount[e]*this.props.rowHeight;let t=0;for(let n=0;n<this.props.rowCount[e];n++)t+=this.props.rowHeight({index:{section:e,row:n}});return t}get totalHeight(){return this.props.rowCount.reduce(((e,t,n)=>e+this.getSectionHeight(n)))}sectionHeight=({index:e})=>this.getSectionHeight(e);renderGrid(e,t){const n=this.props.selectedRows.at(0);n&&pp(n,hp)&&FT("invalidListSelection",new Error("Invalid selected rows that contained a negative number passed to SectionList component. This will cause keyboard navigation and focus problems."));const{selectedRows:r}=this.props,i=r.length&&this.state.rowIdPrefix?this.getRowId(r[r.length-1]):void 0,s=this.getContainerProps(i),o=r.length>0?-1:0;return Ae.createElement(cp,{className:"list-focus-container",onKeyDown:this.onFocusContainerKeyDown,onFocusWithinChanged:this.onFocusWithinChanged},Ae.createElement(np,{id:this.props.accessibleListId,role:"presentation",ref:this.onRootGridRef,autoContainerWidth:!0,containerRole:"presentation",containerProps:s,width:e,height:t,columnWidth:e,columnCount:1,rowCount:this.props.rowCount.length,rowHeight:this.sectionHeight,cellRenderer:this.getSectionGridRenderer(e,t),onScroll:this.onScroll,scrollTop:this.props.setScrollTop,overscanRowCount:4,style:this.gridStyle,tabIndex:o}))}renderFakeScroll(e){return Ae.createElement("div",{className:"fake-scroll",ref:this.onFakeScrollRef,style:{height:e},onScroll:this.onFakeScroll},Ae.createElement("div",{style:{height:this.totalHeight,pointerEvents:"none"}}))}onFakeScroll=e=>{if("grid"!==this.lastScroll){if(this.lastScroll="fake",this.rootGrid){const t=De.findDOMNode(this.rootGrid);t instanceof Element&&(t.scrollTop=e.currentTarget.scrollTop)}this.setState({scrollTop:e.currentTarget.scrollTop}),this.rootGrid?.recomputeGridSize()}else this.lastScroll=null};onRowMouseDown=(e,t)=>{if(this.canSelectRow(e)){if(this.props.onRowMouseDown&&this.props.onRowMouseDown(e,t),2===t.button&&this.props.selectedRows.includes(e))return;const n=t.ctrlKey;if(t.shiftKey&&this.props.selectedRows.length&&this.props.selectionMode&&"single"!==this.props.selectionMode){const n=this.props.selectedRows[0];if(this.props.onSelectionChanged){const r=HT(n,e,this.props.rowCount);this.props.onSelectionChanged(r,{kind:"mouseclick",event:t})}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(n,e,{kind:"mouseclick",event:t})}else if(n&&"multi"===this.props.selectionMode){if(this.props.onSelectionChanged){let n;if(this.props.selectedRows.includes(e)){if(1===this.props.selectedRows.length)return;n=this.props.selectedRows.filter((t=>!pp(t,e)))}else n=[...this.props.selectedRows,e];this.props.onSelectionChanged(n,{kind:"mouseclick",event:t})}}else("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(e)||(1!==this.props.selectedRows.length||1===this.props.selectedRows.length&&!pp(e,this.props.selectedRows[0]))&&this.selectSingleRowAfterMouseEvent(e,t)}};onRowMouseUp=(e,t)=>{if(!this.canSelectRow(e))return;if(2===t.button&&this.props.selectedRows.includes(e))return;const n=t.ctrlKey;!t.shiftKey&&!n&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(e)&&("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.selectSingleRowAfterMouseEvent(e,t)};selectSingleRowAfterMouseEvent(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],{kind:"mouseclick",event:t}),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,e,{kind:"mouseclick",event:t}),this.props.onSelectedRowChanged){if(!gp(e,this.props.rowCount))return void log.debug(`[List.selectSingleRowAfterMouseEvent] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds`);this.props.onSelectedRowChanged(e,{kind:"mouseclick",event:t})}}onRowClick=(e,t)=>{if(this.canSelectRow(e)&&this.props.onRowClick){if(!gp(e,this.props.rowCount))return void log.debug(`[List.onRowClick] unable to onRowClick for row ${e} as it is outside the bounds`);this.props.onRowClick(e,{kind:"mouseclick",event:t})}};onRowDoubleClick=(e,t)=>{this.props.onRowDoubleClick&&this.props.onRowDoubleClick(e,{kind:"mouseclick",event:t})};onScroll=({scrollTop:e,clientHeight:t})=>{this.props.onScroll&&this.props.onScroll(e,t),this.setState({scrollTop:e}),this.rootGrid?.recomputeGridSize()};focus(){const{selectedRows:e,rowCount:t}=this.props,n=e.at(-1);void 0!==n&&gp(n,t)&&this.scrollRowToVisible(n)}}var $T=n(4397),WT=n.n($T);class qT extends Ae.Component{suffix="";onTrackedInputChanged=WT()((()=>{this.setState({message:this.buildMessage()})}),1e3);constructor(e){super(e),this.state={message:null!==this.props.message?this.buildMessage():null}}componentDidUpdate(e){e.trackedUserInput!==this.props.trackedUserInput&&this.onTrackedInputChanged()}componentWillUnmount(){this.onTrackedInputChanged.cancel()}buildMessage(){return this.suffix="  "===this.suffix?" ":"  ",xe().createElement(xe().Fragment,null,this.props.message+this.suffix)}renderMessage(){return void 0===this.props.trackedUserInput?this.props.message:null!==this.props.message?this.state.message:""}render(){return xe().createElement("div",{id:this.props.id,className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.renderMessage())}}class VT extends Ae.Component{inputElement=null;componentWillMount(){const e=si(`TextBox_${this.props.label||this.props.placeholder}`);this.setState({inputId:e,value:this.props.value,valueCleared:!1})}componentWillUnmount(){this.state.inputId&&oi(this.state.inputId)}componentWillReceiveProps(e){this.state.value!==e.value&&this.setState({value:e.value})}selectAll(){null!==this.inputElement&&this.inputElement.select()}get isFocused(){return null!==this.inputElement&&null!==document.activeElement&&this.inputElement===document.activeElement}focus(){null!==this.inputElement&&this.inputElement.focus()}blur(){null!==this.inputElement&&this.inputElement.blur()}onChange=e=>{const t=e.currentTarget.value;this.setState({value:t,valueCleared:!1},(()=>{this.props.onValueChanged&&this.props.onValueChanged(t)}))};onSearchTextCleared=()=>{this.setState({valueCleared:!0}),this.props.onSearchCleared?.()};clearSearchText=()=>{null!==this.inputElement&&(this.inputElement.value="",this.setState({value:"",valueCleared:!0},(()=>{this.props.onValueChanged&&this.props.onValueChanged(""),this.props.onSearchCleared?.(),this.focus()})))};onInputRef=e=>{null!=this.inputElement&&"search"===this.props.type&&this.inputElement.removeEventListener("search",this.onSearchTextCleared),this.inputElement=e,null!=this.inputElement&&"search"===this.props.type&&this.inputElement.addEventListener("search",this.onSearchTextCleared)};onContextMenu=e=>{e.preventDefault(),hh([{role:"editMenu"}])};onKeyDown=e=>{const t=this.state.value;if(""!==t&&"search"===this.props.type&&"Escape"===e.key){const t="";e.preventDefault(),this.setState({value:t}),this.props.onValueChanged&&this.props.onValueChanged(t)}else"search"===this.props.type&&"Escape"===e.key&&""===t?this.props.onBlur&&(this.props.onBlur(t),null!==this.inputElement&&this.inputElement.blur()):"search"===this.props.type&&"Enter"===e.key&&void 0!==t&&""!==t&&void 0!==this.props.onEnterPressed&&this.props.onEnterPressed(t);void 0!==this.props.onKeyDown&&this.props.onKeyDown(e)};render(){const{label:e,className:t}=this.props,n=e?this.state.inputId:void 0;return Ae.createElement("div",{className:ri()("text-box-component",t,{"no-invalid-state":!1===this.props.displayInvalidState,"display-clear-button":!0===this.props.displayClearButton})},e&&Ae.createElement("label",{htmlFor:n},e),Ae.createElement("input",{id:n,ref:this.onInputRef,onFocus:this.onFocus,onBlur:this.onBlur,autoFocus:this.props.autoFocus,disabled:this.props.disabled,readOnly:this.props.readOnly,type:this.props.type??"text",placeholder:this.props.placeholder,value:this.state.value,onChange:this.onChange,onKeyDown:this.onKeyDown,tabIndex:this.props.tabIndex,onContextMenu:this.onContextMenu,spellCheck:!0===this.props.spellcheck,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-controls":this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy,required:this.props.required}),this.props.displayClearButton&&void 0!==this.state.value&&""!==this.state.value&&Ae.createElement("button",{className:"clear-button","aria-label":"Clear",onClick:this.clearSearchText},Ae.createElement(yi,{symbol:yu})),this.state.valueCleared&&Ae.createElement(qT,{message:"Input cleared"}))}onFocus=e=>{this.props.autoFocus||void 0===this.props.onFocus||this.props.onFocus()};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(e.target.value)}}class GT extends Ae.Component{render(){const e=ri()("row-component",this.props.className);return Ae.createElement("div",{id:this.props.id,className:e},this.props.children)}}var zT=n(5170);function jT(e,t,n){return zT.score(e,t)/n}function KT(e,t,n){const r=jT(e,e,1);return t.map((t=>{const i=[],s=n(t);return s.forEach((t=>{i.push(zT.match(t,e))})),{score:jT(s.join(""),e,r),item:t,matches:{title:i[0],subtitle:i.length>1?i[1]:[]}}})).filter((({matches:e})=>e.title.length>0||e.subtitle.length>0)).sort((({score:e},{score:t})=>yr(e,t)))}class YT extends Ae.Component{list=null;filterTextBox=null;constructor(e){super(e),void 0!==e.filterTextBox&&(this.filterTextBox=e.filterTextBox),this.state=QT(e,null)}componentWillReceiveProps(e){this.setState(QT(e,this.state))}componentDidUpdate(e,t){if(this.props.onSelectionChanged){const e=eA(t.rows,t.selectedRow),n=eA(this.state.rows,this.state.selectedRow);if(e!==n&&(this.props.selectedItem?this.props.selectedItem.id:null)!==n){const e=JT(this.state.rows,this.state.selectedRow);this.props.onSelectionChanged(e,{kind:"filter",filterText:this.props.filterText||""})}}if(void 0!==this.props.onFilterListResultsChanged){const e=this.state.rows.flat().filter((e=>"item"===e.kind)).length;this.props.onFilterListResultsChanged(e)}}componentDidMount(){null!==this.filterTextBox&&this.filterTextBox.selectAll()}renderTextBox(){return Ae.createElement(VT,{ref:this.onTextBoxRef,displayClearButton:!0,autoFocus:!0,placeholder:this.props.placeholderText||"请输入筛选条件",className:"filter-list-filter-field",onValueChanged:this.onFilterValueChanged,onEnterPressed:this.onEnterPressed,onKeyDown:this.onKeyDown,value:this.props.filterText,disabled:this.props.disabled})}renderLiveContainer(){if(!this.state.filterValueChanged)return null;const e=this.state.rows.flat().filter((e=>"item"===e.kind)),t=1===e.length?"result":"results",n=`${e.length} ${t}`;return Ae.createElement(qT,{trackedUserInput:this.state.filterValue,message:n})}renderFilterRow(){return!0===this.props.hideFilterRow?null:Ae.createElement(GT,{className:"filter-field-row"},void 0===this.props.filterTextBox?this.renderTextBox():null,this.props.renderPostFilter?this.props.renderPostFilter():null)}render(){return Ae.createElement("div",{className:ri()("filter-list",this.props.className)},this.renderLiveContainer(),this.props.renderPreList?this.props.renderPreList():null,this.renderFilterRow(),Ae.createElement("div",{className:"filter-list-container"},this.renderContent()))}selectNextItem(e=!1,t="down"){if(null===this.list)return;let n=null;const r=this.state.rows.map((e=>e.length));n=-1===this.state.selectedRow.row||this.state.selectedRow.row===this.state.rows.length?yp(r,{direction:t,row:hp},this.canSelectRow):yp(r,{direction:t,row:this.state.selectedRow},this.canSelectRow),null!==n&&this.setState({selectedRow:n},(()=>{e&&null!==this.list&&this.list.focus()}))}renderContent(){return 0===this.state.rows.length&&this.props.renderNoItems?this.props.renderNoItems():Ae.createElement(ZT,{ref:this.onListRef,rowCount:this.state.rows.map((e=>e.length)),rowRenderer:this.renderRow,sectionHasHeader:this.sectionHasHeader,getRowAriaLabel:this.getRowAriaLabel,rowHeight:this.props.rowHeight,selectedRows:pp(this.state.selectedRow,hp)?[]:[this.state.selectedRow],onSelectedRowChanged:this.onSelectedRowChanged,onRowClick:this.onRowClick,onRowKeyDown:this.onRowKeyDown,onRowContextMenu:this.onRowContextMenu,canSelectRow:this.canSelectRow,invalidationProps:{...this.props,...this.props.invalidationProps}})}sectionHasHeader=e=>{const t=this.state.rows[e];return t.length>0&&"group"===t[0].kind};getRowAriaLabel=e=>{const t=this.state.rows[e.section][e.row];if("item"!==t.kind)return;const n=this.props.getItemAriaLabel?.(t.item);if(void 0===n)return;const r=this.props.getGroupAriaLabel?.(this.state.groups[e.section]);return void 0!==r?`${n}, ${r}`:n};renderRow=e=>{const t=this.state.rows[e.section][e.row];return"item"===t.kind?this.props.renderItem(t.item,t.matches):this.props.renderGroupHeader?this.props.renderGroupHeader(t.identifier):null};onTextBoxRef=e=>{this.filterTextBox=e};onListRef=e=>{this.list=e};onFilterValueChanged=e=>{this.props.onFilterTextChanged&&this.props.onFilterTextChanged(e)};onEnterPressed=e=>{0===this.state.rows.length&&e.trim().length>0&&void 0!==this.props.onEnterPressedWithoutFilteredItems&&this.props.onEnterPressedWithoutFilteredItems(e)};onSelectedRowChanged=(e,t)=>{if(this.setState({selectedRow:e}),this.props.onSelectionChanged){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onSelectionChanged(n.item,t)}};canSelectRow=e=>!this.props.disabled&&"item"===this.state.rows[e.section][e.row].kind;onRowClick=(e,t)=>{if(this.props.onItemClick){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemClick(n.item,t)}};onRowContextMenu=(e,t)=>{if(!this.props.onItemContextMenu)return;const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemContextMenu(n.item,t)};onRowKeyDown=(e,t)=>{if(!this.list)return;const n=this.state.rows.map((e=>e.length)),r=yp(n,{direction:"down",row:hp},this.canSelectRow),i=yp(n,{direction:"up",row:{section:0,row:0}},this.canSelectRow);let s=!1;if(("ArrowUp"===t.key&&r&&pp(e,r)||"ArrowDown"===t.key&&i&&pp(e,i))&&(s=!0),s){const e=this.filterTextBox;e&&(t.preventDefault(),e.focus())}};onKeyDown=e=>{const t=this.list,n=e.key;if(!t)return;if(this.props.onFilterKeyDown&&this.props.onFilterKeyDown(e),e.defaultPrevented)return;const r=this.state.rows.map((e=>e.length));if("ArrowDown"===n){if(r.length>0){const e=yp(r,{direction:"down",row:hp},this.canSelectRow);null!=e&&this.setState({selectedRow:e},(()=>{t.focus()}))}e.preventDefault()}else if("ArrowUp"===n){if(r.length>0){const e=yp(r,{direction:"up",row:{section:0,row:0}},this.canSelectRow);null!=e&&this.setState({selectedRow:e},(()=>{t.focus()}))}e.preventDefault()}else if("Enter"===n){if(0===r.length)return e.preventDefault();const t=this.props.filterText;if(void 0!==t&&!/\S/.test(t))return e.preventDefault();const n=yp(r,{direction:"down",row:hp},this.canSelectRow);null!=n&&this.onRowClick(n,{kind:"keyboard",event:e})}}}function XT(e){return e.text}function QT(e,t){const n=new Array,r=(e.filterText||"").toLowerCase();let i=hp,s=0;const o=e.selectedItem,a=[];for(const[t,l]of e.groups.entries()){const c=new Array,u=r?KT(r,l.items,XT):l.items.map((e=>({score:1,matches:{title:[],subtitle:[]},item:e})));if(u.length){a.push(t),e.renderGroupHeader&&c.push({kind:"group",identifier:l.identifier});for(const{item:e,matches:t}of u)o&&e.id===o.id&&(i={section:s,row:c.length}),c.push({kind:"item",item:e,matches:t});n.push(c),s++}}return i.row<0&&r.length&&(i=function(e){for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)if("item"===n[e].kind)return{section:t,row:e}}return hp}(n)),{rows:n,selectedRow:i,filterValue:r,filterValueChanged:!!t?.filterValueChanged||r.length>0,groups:a}}function JT(e,t){if(t.section<0||t.section>=e.length)return null;const n=e[t.section];if(t.row<0||t.row>=n.length)return null;const r=n[t.row];return"item"===r.kind?r.item:null}function eA(e,t){const n=JT(e,t);return n?n.id:null}const tA=Pt(__dirname,"static/empty-no-repo.svg");function nA(e,t){if(null!==t)for(const n of e)for(const e of n.items)if(e.repository.id===t.id)return e;return null}class rA extends Ae.Component{getRepositoryGroups=Tr(((e,t)=>null===e?[]:function(e,t){const n=new Map,r=new Set;for(const t of e){const e=t instanceof Zr?t.gitHubRepository:null;let i=oh.NonGitHub;e?e.endpoint===cr()?(i=e.owner.login,r.add(i)):i=oh.Enterprise:i=oh.NonGitHub;let s=n.get(i);s||(s=new Array,n.set(i,s)),s.push(t)}const i=new Array,s=e=>{const r=n.get(e);if(!r||0===r.length)return;const s=new Map;for(const e of r){const t=s.get(e.name)||0;s.set(e.name,t+1)}r.sort(((e,t)=>br(ch(e),ch(t))));const o=r.map((n=>{const r=s.get(n.name)||0,{aheadBehind:i,changedFilesCount:o}=t.get(n.id)||ah;return{text:n instanceof Zr?[n.alias??n.name,qr(n)]:[n.name],id:n.id.toString(),repository:n,needsDisambiguation:r>1&&e===oh.Enterprise,aheadBehind:i,changedFilesCount:o}}));i.push({identifier:e,items:o})},o=[...r.values()];return o.sort(br),o.forEach(s),s(oh.Enterprise),s(oh.NonGitHub),i}(e,t)));getSelectedListItem=Tr(nA);constructor(e){super(e),this.state={newRepositoryMenuExpanded:!1}}renderItem=(e,t)=>{const n=e.repository;return Ae.createElement(th,{key:n.id,repository:n,needsDisambiguation:e.needsDisambiguation,matches:t,aheadBehind:e.aheadBehind,changedFilesCount:e.changedFilesCount})};getGroupLabel(e){return e===oh.Enterprise?"Enterprise":e===oh.NonGitHub?"Other":e}renderGroupHeader=e=>{const t=e,n=this.getGroupLabel(t);return Ae.createElement(eh,{key:t,className:"filter-list-group-header",tooltip:n,onlyWhenOverflowed:!0,tagName:"div"},n)};onItemClick=e=>{const t=e.changedFilesCount>0||null!==e.aheadBehind&&(e.aheadBehind.ahead>0||e.aheadBehind.behind>0);this.props.dispatcher.recordRepoClicked(t),this.props.onSelectionChanged(e.repository)};onItemContextMenu=(e,t)=>{t.preventDefault(),hh(vh({onRemoveRepository:this.props.onRemoveRepository,onShowRepository:this.props.onShowRepository,onOpenInShell:this.props.onOpenInShell,onOpenInExternalEditor:this.props.onOpenInExternalEditor,askForConfirmationOnRemoveRepository:this.props.askForConfirmationOnRemoveRepository,externalEditorLabel:this.props.externalEditorLabel,onChangeRepositoryAlias:this.onChangeRepositoryAlias,onRemoveRepositoryAlias:this.onRemoveRepositoryAlias,onViewOnGitHub:this.props.onViewOnGitHub,repository:e.repository,shellLabel:this.props.shellLabel}))};getItemAriaLabel=e=>e.repository.name;getGroupAriaLabelGetter=e=>t=>e[t].identifier;render(){const e=this.getRepositoryGroups(this.props.repositories,this.props.localRepositoryStateLookup),t=this.getSelectedListItem(e,this.props.selectedRepository),n=this.props.repositories.length>7?[lh(this.props.recentRepositories,this.props.repositories,this.props.localRepositoryStateLookup),...e]:e;return Ae.createElement("div",{className:"repository-list"},Ae.createElement(YT,{rowHeight:29,selectedItem:t,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,renderItem:this.renderItem,renderGroupHeader:this.renderGroupHeader,onItemClick:this.onItemClick,renderPostFilter:this.renderPostFilter,renderNoItems:this.renderNoItems,groups:n,invalidationProps:{repositories:this.props.repositories,filterText:this.props.filterText},onItemContextMenu:this.onItemContextMenu,getGroupAriaLabel:this.getGroupAriaLabelGetter(n),getItemAriaLabel:this.getItemAriaLabel}))}renderPostFilter=()=>Ae.createElement(mi,{className:"new-repository-button",onClick:this.onNewRepositoryButtonClick,ariaExpanded:this.state.newRepositoryMenuExpanded},"添加",Ae.createElement(yi,{symbol:Qc}));renderNoItems=()=>Ae.createElement("div",{className:"no-items no-results-found"},Ae.createElement("img",{src:tA,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"title"},"抱歉,未找到存储库"),Ae.createElement("div",{className:"protip"},"ProTip! Press"," ",Ae.createElement("div",{className:"kbd-shortcut"},Ae.createElement(Ru,{darwinKeys:["⌘","O"],keys:["Ctrl","O"]}))," ","可快速添加本地存储库,"," ",Ae.createElement("div",{className:"kbd-shortcut"},Ae.createElement(Ru,{darwinKeys:["⇧","⌘","O"],keys:["Ctrl","Shift","O"]}))," ","to clone from anywhere within the app"));onNewRepositoryButtonClick=()=>{const e=[{label:"克隆存储库",action:this.onCloneRepository},{label:"创建存储库",action:this.onCreateNewRepository},{label:"添加存储库",action:this.onAddExistingRepository}];this.setState({newRepositoryMenuExpanded:!0}),hh(e).then((()=>{this.setState({newRepositoryMenuExpanded:!1})}))};onCloneRepository=()=>{this.props.dispatcher.showPopup({type:dh.CloneRepository,initialURL:null})};onAddExistingRepository=()=>{this.props.dispatcher.showPopup({type:dh.AddRepository})};onCreateNewRepository=()=>{this.props.dispatcher.showPopup({type:dh.CreateRepository})};onChangeRepositoryAlias=e=>{this.props.dispatcher.showPopup({type:dh.ChangeRepositoryAlias,repository:e})};onRemoveRepositoryAlias=e=>{this.props.dispatcher.changeRepositoryAlias(e,null)}}class iA extends Ae.Component{render(){const{id:e,className:t,children:n}=this.props,r=ri()(t,"ui-view");return Ae.createElement("div",{id:e,className:r},n)}}function sA(e,t,n=(e=>!0)){if(0===e)return null;const{direction:r,row:i}=t,s=t.wrap??!0;let o=i<0||i>=e?"up"===r?e-1:0:i;"down"===r&&-1===i&&(o=-1);const a="up"===r?-1:1;for(let t=0;t<e;t++){if(o+=a,o>=e){if(!s)break;o=0}else if(o<0){if(!s)break;o=e-1}if(i!==o&&n(o))return o}return null}function oA(e,t,n){let r="up"===e?0:t-1;const i="up"===e?1:-1;for(;r>=0&&r<t;r+=i)if(n(r))return r;return null}function aA(e,t){return Rp(e,t>e?t+1:t-1)}class lA extends Ae.Component{fakeScroll=null;focusRow=-1;rowRefs=new Map;keyboardInsertionElementRef=Ae.createRef();gridStyle={overflowX:"hidden"};lastScroll=null;list=null;grid=null;resizeObserver=null;updateSizeTimeoutId=null;getContainerProps=Tr((e=>({onKeyDown:this.onKeyDown,"aria-activedescendant":e,"aria-multiselectable":"multi"===this.props.selectionMode||"range"===this.props.selectionMode?"true":void 0})));constructor(e){super(e),this.state={keyboardInsertionIndexPath:null};const t=window.ResizeObserver;ResizeObserver&&(this.resizeObserver=new t((e=>{for(const{target:t,contentRect:n}of e)t===this.list&&null!==this.list&&(null!==this.updateSizeTimeoutId&&clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=setImmediate(this.onResized,this.list,n))})))}getRowId(e){return this.props.rowId?this.props.rowId(e):void 0===this.state.rowIdPrefix?void 0:`${this.state.rowIdPrefix}-${e}`}onResized=(e,t)=>{this.updateSizeTimeoutId=null;const[n,r]=[e.offsetWidth,e.offsetHeight];this.state.width===n&&this.state.height===r||this.setState({width:n,height:r})};onSelectAll=e=>{const t=this.props.selectionMode;if("range"!==t&&"multi"!==t)return;if(e.preventDefault(),this.props.rowCount<=0)return;const n={kind:"select-all"},r=this.props.rowCount-1;if(this.props.onSelectionChanged){const e=aA(0,r);this.props.onSelectionChanged(e,n)}"range"===t&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(0,r,n)};onRef=e=>{null===e&&null!==this.list&&this.list.removeEventListener("select-all",this.onSelectAll),this.list=e,null!==e&&e.addEventListener("select-all",this.onSelectAll),this.resizeObserver&&(this.resizeObserver.disconnect(),null!==e?this.resizeObserver.observe(e):this.setState({width:void 0,height:void 0}))};onKeyDown=e=>{if(this.props.onRowKeyDown)for(const t of this.props.selectedRows)this.props.onRowKeyDown(t,e);if(e.defaultPrevented)return;const t={kind:"keyboard",event:e},n="Home"===e.key,r="End"===e.key,{keyboardInsertionData:i}=this.props;if(void 0!==i){if("Escape"===e.key)return this.props.onCancelKeyboardInsertion?.(),void e.preventDefault();const{keyboardInsertionIndexPath:s}=this.state;if("Enter"===e.key&&s)return this.props.onConfirmKeyboardInsertion?.(s,i),void e.preventDefault();const{rowCount:o}=this.props;let a=-1;if(n)a=0;else if(r)a=o;else{if(!s)return;if("ArrowUp"===e.key)a=Math.max(s.row-1,0);else{if("ArrowDown"!==e.key)return;a=Math.min(s.row+1,o)}}const l={section:0,row:a};return this.setState({keyboardInsertionIndexPath:l}),this.props.onKeyboardInsertionIndexPathChanged?.(l),this.moveSelectionTo(Math.min(a,o-1),t),void e.preventDefault()}const s=e.shiftKey&&void 0!==this.props.selectionMode&&"single"!==this.props.selectionMode;if(n||r){const r=n?"up":"down";s?this.addSelectionToLastSelectableRow(r,t):this.moveSelectionToLastSelectableRow(r,t),e.preventDefault()}else if("ArrowUp"===e.key||"ArrowDown"===e.key){const n="ArrowUp"===e.key?"up":"down";s?this.addSelection(n,t):this.moveSelection(n,t),e.preventDefault()}else if("a"===e.key&&e.ctrlKey)this.onSelectAll(e);else if("PageUp"===e.key||"PageDown"===e.key){const n="PageUp"===e.key?"up":"down";s?this.addSelectionByPage(n,t):this.moveSelectionByPage(n,t),e.preventDefault()}};get inKeyboardInsertionMode(){return void 0!==this.props.keyboardInsertionData}moveSelectionByPage(e,t){const n=this.getNextPageRowIndex(e);this.moveSelectionTo(n,t)}addSelectionByPage(e,t){const{selectedRows:n}=this.props,r=this.getNextPageRowIndex(e),i=aA(n[0]??0,r);this.props.onSelectionChanged&&this.props.onSelectionChanged(i,t),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(i[0],i[i.length-1],t),this.scrollRowToVisible(r)}getNextPageRowIndex(e){const{selectedRows:t}=this.props,n=t.at(-1)??0;return this.findNextPageSelectableRow(n,e)}getRowHeight(e){const{rowHeight:t}=this.props;return"number"==typeof t?t:t({index:e})}findNextPageSelectableRow(e,t){const{height:n}=this.state,{rowCount:r}=this.props;if(void 0===n)return e;let i=0,s=e;const o="up"===t?-1:1;for(let t=e;t<r&&t>=0;t+=o){const e=this.getRowHeight(t);if(i+e>n)break;i+=e,this.canSelectRow(t)&&(s=t)}return s}onRowKeyDown=(e,t)=>{if(this.inKeyboardInsertionMode)return;this.props.onRowKeyDown&&this.props.onRowKeyDown(e.row,t);const n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;t.defaultPrevented||n||"Enter"!==t.key&&" "!==t.key||(this.toggleSelection(t),t.preventDefault())};onFocusContainerKeyDown=e=>{if(this.inKeyboardInsertionMode)return;const t=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;e.defaultPrevented||t||"Enter"!==e.key&&" "!==e.key||(this.toggleSelection(e),e.preventDefault())};onFocusWithinChanged=e=>{if(e){if(0===this.props.selectedRows.length){const e=this.getFirstSelectableRowIndexPath();null!==e&&this.moveSelectionTo(e,{kind:"focus"})}}else this.focusRow=-1,this.inKeyboardInsertionMode&&this.props.onCancelKeyboardInsertion?.()};toggleSelection=e=>{this.props.selectedRows.forEach((t=>{if(!this.props.onRowClick)return;const{rowCount:n}=this.props;t<0||t>=n?log.debug(`[List.toggleSelection] unable to onRowClick for row ${t} as it is outside the bounds of the array [0, ${n}]`):this.props.onRowClick(t,{kind:"keyboard",event:e})}))};onRowFocus=(e,t)=>{this.focusRow=e.row,this.props.onRowFocus?.(e.row,t)};onRowKeyboardFocus=(e,t)=>{this.focusRow=e.row,this.props.onRowKeyboardFocus?.(e.row,t)};onRowBlur=(e,t)=>{this.focusRow===e.row&&(this.focusRow=-1),this.props.onRowBlur?.(e.row,t)};onRowContextMenu=(e,t)=>{this.props.onRowContextMenu?.(e.row,t)};canSelectRow=e=>!this.props.canSelectRow||this.props.canSelectRow(e);getFirstSelectableRowIndexPath(){for(let e=0;e<this.props.rowCount;e++)if(this.canSelectRow(e))return e;return null}addSelection(e,t){if(0===this.props.selectedRows.length)return this.moveSelection(e,t);const n=this.props.selectedRows[this.props.selectedRows.length-1],r=this.props.selectedRows[0],i=sA(this.props.rowCount,{direction:e,row:n,wrap:!1},this.canSelectRow);if(null!=i){if(this.props.onSelectionChanged){const e=aA(r,i);this.props.onSelectionChanged(e,t)}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,i,t),this.scrollRowToVisible(i)}}moveSelection(e,t){const n=this.props.selectedRows.length>0?this.props.selectedRows[this.props.selectedRows.length-1]:-1,r=sA(this.props.rowCount,{direction:e,row:n},this.canSelectRow);null!=r&&this.moveSelectionTo(r,t)}moveSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:i}=r,s=oA(e,i,n);null!==s&&this.moveSelectionTo(s,t)}addSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:i,selectedRows:s}=r,o=oA(e,i,n);if(null===o)return;const a=aA(s[0]??0,o);this.props.onSelectionChanged?.(a,t);const l=a.at(0)??0,c=a.at(-1)??0;this.props.onSelectedRangeChanged?.(l,c,t),this.scrollRowToVisible(o)}moveSelectionTo(e,t){if(this.props.onSelectionChanged&&!this.inKeyboardInsertionMode&&this.props.onSelectionChanged([e],t),this.props.onSelectedRowChanged&&!this.inKeyboardInsertionMode){const n=this.props.rowCount;if(e<0||e>=n)return void log.debug(`[List.moveSelection] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds of the array [0, ${n}]`);this.props.onSelectedRowChanged(e,t)}this.scrollRowToVisible(e)}scrollRowToVisible(e,t=!0){null!==this.grid&&(this.grid.scrollToCell({rowIndex:e,columnIndex:0}),t&&(this.focusRow=e,this.rowRefs.get(e)?.focus({preventScroll:!0})))}componentDidMount(){const{props:e,grid:t}=this,{selectedRows:n,scrollToRow:r,setScrollTop:i}=e;null!==t&&void 0===i&&(void 0!==r?t.scrollToCell({rowIndex:r,columnIndex:0}):n.length>0&&t.scrollToCell({rowIndex:n[0],columnIndex:0}))}componentDidUpdate(e,t){const{scrollToRow:n,setScrollTop:r}=this.props;if(void 0!==n&&e.scrollToRow!==n&&void 0===r&&this.scrollRowToVisible(n,!1),this.grid&&this.props.rowCount===e.rowCount&&this.state.width===t.width&&this.state.height===t.height){const t=!ap(e.selectedRows,this.props.selectedRows),n=!op(e.invalidationProps,this.props.invalidationProps);(t||n)&&this.grid.forceUpdate()}void 0===e.keyboardInsertionData&&void 0!==this.props.keyboardInsertionData&&this.setState({keyboardInsertionIndexPath:this.props.selectedRows.length>0?{section:0,row:this.props.selectedRows[0]}:{section:0,row:0}}),t.keyboardInsertionIndexPath!==this.state.keyboardInsertionIndexPath&&this.updateKeyboardInsertionElementPosition()}componentWillMount(){this.setState({rowIdPrefix:si("ListRow")})}componentWillUnmount(){null!==this.updateSizeTimeoutId&&(clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=null),this.resizeObserver&&this.resizeObserver.disconnect(),this.state.rowIdPrefix&&oi(this.state.rowIdPrefix)}onRowRef=(e,t)=>{if(null===t?this.rowRefs.delete(e.row):this.rowRefs.set(e.row,t),e.row===this.focusRow)if(null===t){const e=De.findDOMNode(this.grid);e instanceof HTMLElement&&e.focus({preventScroll:!0})}else t.focus({preventScroll:!0})};getCustomRowClassNames=e=>{const{rowCustomClassNameMap:t}=this.props;if(void 0===t)return;const n=new Array;return t.forEach(((t,r)=>{t.includes(e)&&n.push(r)})),0===n.length?void 0:n.join(" ")};getRowRenderer=e=>t=>{const{selectedRows:n,keyboardInsertionData:r}=this.props,{keyboardInsertionIndexPath:i}=this.state,s=t.rowIndex,o=this.canSelectRow(s),a=-1!==n.indexOf(s),l=this.getCustomRowClassNames(s);let c;o&&(c=a&&n[0]===s||0===n.length&&e===s?0:-1);const u=this.props.rowRenderer(s);let h=Ep.None;r&&i&&(i.row===s?h=Ep.Top:i.row===s+1&&(h=Ep.Bottom));const p=void 0!==this.props.insertionDragType?Ae.createElement(kp,{isKeyboardInsertion:this.inKeyboardInsertionMode,onDropDataInsertion:this.onDropDataInsertion,itemIndex:{section:0,row:s},dragType:this.props.insertionDragType,forcedFeedbackType:h},u):u,d=this.getRowId(s),m=void 0!==this.props.getRowAriaLabel?this.props.getRowAriaLabel(s):void 0;return Ae.createElement(up,{key:t.key,id:d,onRowRef:this.onRowRef,rowCount:this.props.rowCount,rowIndex:{section:0,row:s},sectionHasHeader:!1,selected:a,selectedForKeyboardInsertion:void 0!==r&&r.itemIndices.includes(s),inKeyboardInsertionMode:this.inKeyboardInsertionMode,ariaLabel:m,onRowClick:this.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyDown:this.onRowKeyDown,onRowMouseDown:this.onRowMouseDown,onRowMouseUp:this.onRowMouseUp,onRowFocus:this.onRowFocus,onRowKeyboardFocus:this.onRowKeyboardFocus,onRowBlur:this.onRowBlur,onContextMenu:this.onRowContextMenu,style:t.style,tabIndex:c,children:p,selectable:o,className:l})};render(){let e;return e=this.resizeObserver?this.renderContents(this.state.width??0,this.state.height??0):Ae.createElement(_h,{disableWidth:!0,disableHeight:!0},(({width:e,height:t})=>this.renderContents(e,t))),Ae.createElement("div",{ref:this.onRef,id:this.props.id,className:"list","aria-labelledby":this.props.ariaLabelledBy,"aria-label":this.props.ariaLabel},e,this.renderKeyboardInsertionElement())}renderKeyboardInsertionElement=()=>{const{keyboardInsertionData:e,keyboardInsertionElementRenderer:t}=this.props,{keyboardInsertionIndexPath:n}=this.state;if(!e||!n)return null;if(!this.list)return;const r=this.list.getBoundingClientRect(),i=(e,t,n,r)=>Ae.createElement("div",{style:{top:e,left:t,width:n,height:r},className:"overlay"});return Ae.createElement(Ae.Fragment,null,i(0,0,"100%",r.top),i(r.top,0,r.left,r.height),i(r.top,r.right,"100%",r.height),i(r.bottom,0,"100%","100%"),Ae.createElement("div",{className:"keyboard-insertion-element",style:{top:0,left:0},ref:this.keyboardInsertionElementRef},t?.(e)))};updateKeyboardInsertionElementPosition=()=>{const{keyboardInsertionData:e}=this.props,{keyboardInsertionIndexPath:t}=this.state,n=this.keyboardInsertionElementRef.current;if(!e||!t||!n)return;const r=this.rowRefs.get(t.row);if(!r||!this.list)return;const i=r.getBoundingClientRect(),s=this.list.getBoundingClientRect(),o=Math.min(Math.max(s.top,i.top),s.top+s.height-n.clientHeight);n.style.top=`${o}px`,n.style.left=`${i.right+20}px`};renderContents(e,t){return this.renderGrid(e,t)}onGridRef=e=>{this.grid=e};onFakeScrollRef=e=>{this.fakeScroll=e};renderGrid(e,t){this.props.selectedRows[0]<0&&FT("invalidListSelection",new Error("Invalid selected rows that contained a negative number passed to List component. This will cause keyboard navigation and focus problems."));const n=this.props.selectedRows.length<1?0:-1,r=this.props.selectedRows.length&&this.state.rowIdPrefix?this.getRowId(this.props.selectedRows[this.props.selectedRows.length-1]):void 0,i=this.getContainerProps(r),s=ri()("list-focus-container",{"in-keyboard-insertion-mode":this.inKeyboardInsertionMode});return Ae.createElement(cp,{className:s,onKeyDown:this.onFocusContainerKeyDown,onFocusWithinChanged:this.onFocusWithinChanged},Ae.createElement(np,{id:this.props.accessibleListId,role:"listbox",ref:this.onGridRef,autoContainerWidth:!0,containerRole:"presentation",containerProps:i,width:e,height:t,columnWidth:e,columnCount:1,"aria-multiselectable":"single"!==this.props.selectionMode||void 0,rowCount:this.props.rowCount,rowHeight:this.props.rowHeight,cellRenderer:this.getRowRenderer(this.getFirstSelectableRowIndexPath()),onScroll:this.onScroll,scrollTop:this.props.setScrollTop,overscanRowCount:4,style:this.gridStyle,tabIndex:n}))}renderFakeScroll(e){let t=0;if("number"==typeof this.props.rowHeight)t=this.props.rowHeight*this.props.rowCount;else for(let e=0;e<this.props.rowCount;e++)t+=this.props.rowHeight({index:e});return Ae.createElement("div",{className:"fake-scroll",ref:this.onFakeScrollRef,style:{height:e},onScroll:this.onFakeScroll},Ae.createElement("div",{style:{height:t,pointerEvents:"none"}}))}onFakeScroll=e=>{if("grid"!==this.lastScroll){if(this.lastScroll="fake",this.grid){const t=De.findDOMNode(this.grid);t instanceof Element&&(t.scrollTop=e.currentTarget.scrollTop)}}else this.lastScroll=null};onRowMouseDown=(e,t)=>{if(this.inKeyboardInsertionMode)return;const{row:n}=e;if(this.canSelectRow(n)){if(this.props.onRowMouseDown&&this.props.onRowMouseDown(n,t),2===t.button&&this.props.selectedRows.includes(n))return;const e=t.ctrlKey;if(t.shiftKey&&this.props.selectedRows.length&&this.props.selectionMode&&"single"!==this.props.selectionMode){const e=this.props.selectedRows[0];if(this.props.onSelectionChanged){const r=aA(e,n);this.props.onSelectionChanged(r,{kind:"mouseclick",event:t})}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,n,{kind:"mouseclick",event:t})}else if(e&&"multi"===this.props.selectionMode){if(this.props.onSelectionChanged){let e;if(this.props.selectedRows.includes(n)){if(1===this.props.selectedRows.length)return;e=this.props.selectedRows.filter((e=>e!==n))}else e=[...this.props.selectedRows,n];this.props.onSelectionChanged(e,{kind:"mouseclick",event:t})}}else("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(n)||(1!==this.props.selectedRows.length||1===this.props.selectedRows.length&&n!==this.props.selectedRows[0])&&this.selectSingleRowAfterMouseEvent(n,t)}};onRowMouseUp=(e,t)=>{if(this.inKeyboardInsertionMode)return;const{row:n}=e;if(!this.canSelectRow(n))return;if(2===t.button&&this.props.selectedRows.includes(n))return;const r=t.ctrlKey;!t.shiftKey&&!r&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(n)&&("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.selectSingleRowAfterMouseEvent(n,t)};selectSingleRowAfterMouseEvent(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],{kind:"mouseclick",event:t}),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,e,{kind:"mouseclick",event:t}),this.props.onSelectedRowChanged){const{rowCount:n}=this.props;if(e<0||e>=n)return void log.debug(`[List.selectSingleRowAfterMouseEvent] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds of the array [0, ${n}]`);this.props.onSelectedRowChanged(e,{kind:"mouseclick",event:t})}}onDropDataInsertion=(e,t)=>{this.props.onDropDataInsertion?.(e.row,t)};onRowClick=(e,t)=>{if(!this.inKeyboardInsertionMode&&this.canSelectRow(e.row)&&this.props.onRowClick){const n=this.props.rowCount;if(e.row<0||e.row>=n)return void log.debug(`[List.onRowClick] unable to onRowClick for row ${e.row} as it is outside the bounds of the array [0, ${n}]`);this.props.onRowClick(e.row,{kind:"mouseclick",event:t})}};onRowDoubleClick=(e,t)=>{this.inKeyboardInsertionMode||this.props.onRowDoubleClick&&this.props.onRowDoubleClick(e.row,{kind:"mouseclick",event:t})};onScroll=({scrollTop:e,clientHeight:t})=>{this.props.onScroll&&this.props.onScroll(e,t),this.updateKeyboardInsertionElementPosition()};focus(){const{selectedRows:e,rowCount:t}=this.props,n=e.at(-1);if(void 0!==n&&n<t)this.scrollRowToVisible(n);else if(this.grid){const e=De.findDOMNode(this.grid);e&&e.focus()}}}var cA;!function(e){e[e.On=0]="On",e[e.Off=1]="Off",e[e.Mixed=2]="Mixed"}(cA||(cA={}));class uA extends Ae.Component{input=null;onChange=e=>{this.props.onChange&&this.props.onChange(e)};componentDidUpdate(){this.updateInputState()}componentWillMount(){const e=si(`Checkbox_${this.props.label&&"string"==typeof this.props.label?this.props.label:rT()()}`);this.setState({inputId:e})}componentWillUnmount(){this.state.inputId&&oi(this.state.inputId)}focus(){this.input?.focus()}updateInputState(){const e=this.input;if(e){const t=this.props.value;e.indeterminate=t===cA.Mixed,e.checked=t!==cA.Off}}onInputRef=e=>{this.input=e,this.updateInputState()};onDoubleClick=e=>{e.preventDefault(),e.stopPropagation()};renderLabel(){const e=this.props.label,t=this.state.inputId;return e?Ae.createElement("label",{htmlFor:t},e):null}render(){return Ae.createElement("div",{className:"checkbox-component"},Ae.createElement("input",{id:this.state.inputId,tabIndex:this.props.tabIndex,type:"checkbox",onChange:this.onChange,onDoubleClick:this.onDoubleClick,ref:this.onInputRef,disabled:this.props.disabled,"aria-describedby":this.props.ariaDescribedBy}),this.renderLabel())}}var hA=n(4878),pA=n.n(hA),dA=n(3318),mA=n.n(dA);function fA(e){return e.split("-")[1]}function gA(e){return"y"===e?"height":"width"}function yA(e){return e.split("-")[0]}function wA(e){return["top","bottom"].includes(yA(e))?"x":"y"}function bA(e,t,n){let{reference:r,floating:i}=e;const s=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,a=wA(t),l=gA(a),c=r[l]/2-i[l]/2,u="x"===a;let h;switch(yA(t)){case"top":h={x:s,y:r.y-i.height};break;case"bottom":h={x:s,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:o};break;case"left":h={x:r.x-i.width,y:o};break;default:h={x:r.x,y:r.y}}switch(fA(t)){case"start":h[a]-=c*(n&&u?-1:1);break;case"end":h[a]+=c*(n&&u?-1:1)}return h}function vA(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function CA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function SA(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=t,m=vA(d),f=a[p?"floating"===h?"reference":"floating":h],g=CA(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(f)))||n?f:f.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===h?{...o.floating,x:r,y:i}:o.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},v=CA(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:w,strategy:l}):y);return{top:(g.top-v.top+m.top)/b.y,bottom:(v.bottom-g.bottom+m.bottom)/b.y,left:(g.left-v.left+m.left)/b.x,right:(v.right-g.right+m.right)/b.x}}const EA=Math.min,kA=Math.max;function RA(e,t,n){return kA(e,EA(t,n))}const TA=(["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function AA(e){return e.replace(/left|right|bottom|top/g,(e=>TA[e]))}const xA={start:"end",end:"start"};function DA(e){return e.replace(/start|end/g,(e=>xA[e]))}const _A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:s,initialPlacement:o,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...f}=e,g=yA(r),y=yA(o)===o,w=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=h||(y||!m?[AA(o)]:function(e){const t=AA(e);return[DA(e),t,DA(t)]}(o));h||"none"===d||b.push(...function(e,t,n,r){const i=fA(e);let s=function(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}(yA(e),"start"===n,r);return i&&(s=s.map((e=>e+"-"+i)),t&&(s=s.concat(s.map(DA)))),s}(o,m,d,w));const v=[o,...b],C=await SA(t,f),S=[];let E=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&S.push(C[g]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=fA(e),i=wA(e),s=gA(i);let o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=AA(o)),{main:o,cross:AA(o)}}(r,s,w);S.push(C[e],C[t])}if(E=[...E,{placement:r,overflows:S}],!S.every((e=>e<=0))){var k,R;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=v[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(R=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=E.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},MA=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,s=await(null==r.isRTL?void 0:r.isRTL(i.floating)),o=yA(n),a=fA(n),l="x"===wA(n),c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,h="function"==typeof t?t(e):t;let{mainAxis:p,crossAxis:d,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof m&&(d="end"===a?-1*m:m),l?{x:d*u,y:p*c}:{x:p*c,y:d*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};const PA=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await SA(t,l),h=wA(yA(i)),p=function(e){return"x"===e?"y":"x"}(h);let d=c[h],m=c[p];if(s){const e="y"===h?"bottom":"right";d=RA(d+u["y"===h?"top":"left"],d,d-u[e])}if(o){const e="y"===p?"bottom":"right";m=RA(m+u["y"===p?"top":"left"],m,m-u[e])}const f=a.fn({...t,[h]:d,[p]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}},IA=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:s}=t,{apply:o=(()=>{}),...a}=e,l=await SA(t,a),c=yA(n),u=fA(n),h="x"===wA(n),{width:p,height:d}=r.floating;let m,f;"top"===c||"bottom"===c?(m=c,f=u===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(f=c,m="end"===u?"top":"bottom");const g=d-l[m],y=p-l[f],w=!t.middlewareData.shift;let b=g,v=y;if(h){const e=p-l.left-l.right;v=u||w?EA(y,e):e}else{const e=d-l.top-l.bottom;b=u||w?EA(g,e):e}if(w&&!u){const e=kA(l.left,0),t=kA(l.right,0),n=kA(l.top,0),r=kA(l.bottom,0);h?v=p-2*(0!==e||0!==t?e+t:kA(l.left,l.right)):b=d-2*(0!==n||0!==r?n+r:kA(l.top,l.bottom))}await o({...t,availableWidth:v,availableHeight:b});const C=await i.getDimensions(s.floating);return p!==C.width||d!==C.height?{reset:{rects:!0}}:{}}}};function OA(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function NA(e){return OA(e).getComputedStyle(e)}function LA(e){return e instanceof OA(e).Node}function BA(e){return LA(e)?(e.nodeName||"").toLowerCase():""}let FA;function HA(){if(FA)return FA;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(FA=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),FA):navigator.userAgent}function UA(e){return e instanceof OA(e).HTMLElement}function ZA(e){return e instanceof OA(e).Element}function $A(e){return"undefined"!=typeof ShadowRoot&&(e instanceof OA(e).ShadowRoot||e instanceof ShadowRoot)}function WA(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=NA(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function qA(e){return["table","td","th"].includes(BA(e))}function VA(e){const t=/firefox/i.test(HA()),n=NA(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function GA(){return/^((?!chrome|android).)*safari/i.test(HA())}function zA(e){return["html","body","#document"].includes(BA(e))}const jA=Math.min,KA=Math.max,YA=Math.round;function XA(e){const t=NA(e);let n=parseFloat(t.width),r=parseFloat(t.height);const i=UA(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=YA(n)!==s||YA(r)!==o;return a&&(n=s,r=o),{width:n,height:r,fallback:a}}function QA(e){return ZA(e)?e:e.contextElement}const JA={x:1,y:1};function ex(e){const t=QA(e);if(!UA(t))return JA;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:s}=XA(t);let o=(s?YA(n.width):n.width)/r,a=(s?YA(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}function tx(e,t,n,r){var i,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=QA(e);let l=JA;t&&(r?ZA(r)&&(l=ex(r)):l=ex(e));const c=a?OA(a):window,u=GA()&&n;let h=(o.left+(u&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,p=(o.top+(u&&(null==(s=c.visualViewport)?void 0:s.offsetTop)||0))/l.y,d=o.width/l.x,m=o.height/l.y;if(a){const e=OA(a),t=r&&ZA(r)?OA(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ex(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,h*=e.x,p*=e.y,d*=e.x,m*=e.y,h+=t.x,p+=t.y,n=OA(n).frameElement}}return CA({width:d,height:m,x:h,y:p})}function nx(e){return((LA(e)?e.ownerDocument:e.document)||window.document).documentElement}function rx(e){return ZA(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ix(e){return tx(nx(e)).left+rx(e).scrollLeft}function sx(e){if("html"===BA(e))return e;const t=e.assignedSlot||e.parentNode||$A(e)&&e.host||nx(e);return $A(t)?t.host:t}function ox(e){const t=sx(e);return zA(t)?t.ownerDocument.body:UA(t)&&WA(t)?t:ox(t)}function ax(e,t){var n;void 0===t&&(t=[]);const r=ox(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),s=OA(r);return i?t.concat(s,s.visualViewport||[],WA(r)?r:[]):t.concat(r,ax(r))}function lx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=OA(e),r=nx(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const e=GA();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=nx(e),n=rx(e),r=e.ownerDocument.body,i=KA(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=KA(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ix(e);const a=-n.scrollTop;return"rtl"===NA(r).direction&&(o+=KA(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}(nx(e));else if(ZA(t))r=function(e,t){const n=tx(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=UA(e)?ex(e):{x:1,y:1};return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:i*s.x,y:r*s.y}}(t,n);else{const n={...t};if(GA()){var i,s;const t=OA(e);n.x-=(null==(i=t.visualViewport)?void 0:i.offsetLeft)||0,n.y-=(null==(s=t.visualViewport)?void 0:s.offsetTop)||0}r=n}return CA(r)}function cx(e,t){const n=sx(e);return!(n===t||!ZA(n)||zA(n))&&("fixed"===NA(n).position||cx(n,t))}function ux(e,t){return UA(e)&&"fixed"!==NA(e).position?t?t(e):e.offsetParent:null}function hx(e,t){const n=OA(e);if(!UA(e))return n;let r=ux(e,t);for(;r&&qA(r)&&"static"===NA(r).position;)r=ux(r,t);return r&&("html"===BA(r)||"body"===BA(r)&&"static"===NA(r).position&&!VA(r))?n:r||function(e){let t=sx(e);for(;UA(t)&&!zA(t);){if(VA(t))return t;t=sx(t)}return null}(e)||n}function px(e,t,n){const r=UA(t),i=nx(t),s=tx(e,!0,"fixed"===n,t);let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==BA(t)||WA(i))&&(o=rx(t)),UA(t)){const e=tx(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=ix(i));return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}const dx={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ax(e).filter((e=>ZA(e)&&"body"!==BA(e))),i=null;const s="fixed"===NA(e).position;let o=s?sx(e):e;for(;ZA(o)&&!zA(o);){const t=NA(o),n=VA(o);n||"fixed"!==t.position||(i=null),(s?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||WA(o)&&!n&&cx(e,o))?r=r.filter((e=>e!==o)):i=t,o=sx(o)}return t.set(e,r),r}(t,this._c):[].concat(n),o=[...s,r],a=o[0],l=o.reduce(((e,n)=>{const r=lx(t,n,i);return e.top=KA(r.top,e.top),e.right=jA(r.right,e.right),e.bottom=jA(r.bottom,e.bottom),e.left=KA(r.left,e.left),e}),lx(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=UA(n),s=nx(n);if(n===s)return t;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==BA(n)||WA(s))&&(o=rx(n)),UA(n))){const e=tx(n);a=ex(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}},isElement:ZA,getDimensions:function(e){return XA(e)},getOffsetParent:hx,getDocumentElement:nx,getScale:ex,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||hx,s=this.getDimensions;return{reference:px(t,await i(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===NA(e).direction};var mx,fx,gx,yx;!function(e){e.Top="top",e.TopRight="top-right",e.TopLeft="top-left",e.Left="left",e.LeftTop="left-top",e.LeftBottom="left-bottom",e.Bottom="bottom",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e.Right="right",e.RightTop="right-top",e.RightBottom="right-bottom"}(mx||(mx={})),function(e){e.Shake="shake"}(fx||(fx={})),function(e){e.None="none",e.Balloon="balloon"}(gx||(gx={}));class wx extends Ae.Component{focusTrapOptions;containerDivRef=Ae.createRef();contentDivRef=Ae.createRef();tipDivRef=Ae.createRef();floatingCleanUp=null;constructor(e){super(e),this.focusTrapOptions={allowOutsideClick:!0,escapeDeactivates:!0,onDeactivate:this.props.onMousedownOutside??this.props.onClickOutside},this.state={position:null}}async setupPosition(){this.floatingCleanUp?.(),this.floatingCleanUp=null;const{anchor:e}=this.props;null!=e&&null!==this.containerDivRef.current&&(this.floatingCleanUp=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:a=!1}=r,l=i||s?[...ZA(e)?ax(e):e.contextElement?ax(e.contextElement):[],...ax(t)]:[];l.forEach((e=>{const t=!ZA(e)&&e.toString().includes("V");!i||a&&!t||e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let c,u=null;o&&(u=new ResizeObserver((()=>{n()})),ZA(e)&&!a&&u.observe(e),ZA(e)||!e.contextElement||a||u.observe(e.contextElement),u.observe(t));let h=a?tx(e):null;return a&&function t(){const r=tx(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,c=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{i&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=u)||e.disconnect(),u=null,a&&cancelAnimationFrame(c)}}(e,this.containerDivRef.current,this.updatePosition))}updatePosition=async()=>{const{anchor:e,anchorOffset:t,decoration:n,maxHeight:r}=this.props,i=this.containerDivRef.current,s=this.contentDivRef.current;if(null==e||null===i||null===s)return;const o=this.tipDivRef.current,a=t??0,l=n===gx.Balloon?8:0,c=[MA(l+a),PA({padding:10}),_A({padding:10}),IA({apply({availableHeight:e,availableWidth:t}){Object.assign(s.style,{maxHeight:void 0===r?`${e}px`:`${Math.min(e,r)}px`,maxWidth:`${t}px`})},padding:10})];n===gx.Balloon&&o&&c.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:s,placement:o,rects:a,platform:l,elements:c}=t;if(null==n)return{};const u=vA(r),h={x:i,y:s},p=wA(o),d=gA(p),m=await l.getDimensions(n),f="y"===p,g=f?"top":"left",y=f?"bottom":"right",w=f?"clientHeight":"clientWidth",b=a.reference[d]+a.reference[p]-h[p]-a.floating[d],v=h[p]-a.reference[p],C=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let S=C?C[w]:0;S&&await(null==l.isElement?void 0:l.isElement(C))||(S=c.floating[w]||a.floating[d]);const E=b/2-v/2,k=u[g],R=S-m[d]-u[y],T=S/2-m[d]/2+E,A=RA(k,T,R),x=null!=fA(o)&&T!=A&&a.reference[d]/2-(T<k?u[g]:u[y])-m[d]/2<0;return{[p]:h[p]-(x?T<k?k-T:R-T:0),data:{[p]:A,centerOffset:T-A}}}}))({element:o,padding:8}));const u=await((e,t,n)=>{const r=new Map,i={platform:dx,...n},s={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=bA(c,r,l),p=r,d={},m=0;for(let n=0;n<a.length;n++){const{name:s,fn:f}=a[n],{x:g,y,data:w,reset:b}=await f({x:u,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:d,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=g?g:u,h=null!=y?y:h,d={...d,[s]:{...d[s],...w}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:h}=bA(c,p,l))),n=-1)}return{x:u,y:h,placement:p,strategy:i,middlewareData:d}})(e,t,{...i,platform:s})})(e,i,{strategy:"fixed",placement:this.getFloatingPlacementForAnchorPosition(),middleware:c});this.setState({position:u})};componentDidMount(){document.addEventListener("click",this.onDocumentClick),document.addEventListener("mousedown",this.onDocumentMouseDown),this.setupPosition()}componentDidUpdate(e){e.anchor!==this.props.anchor&&this.setupPosition()}componentWillUnmount(){document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("mousedown",this.onDocumentMouseDown)}onDocumentClick=e=>{const t=this.containerDivRef.current,{target:n}=e;null!==t&&null!==t.parentElement&&n instanceof Node&&!t.parentElement.contains(n)&&void 0!==this.props.onClickOutside&&this.props.onClickOutside(e)};onDocumentMouseDown=e=>{const t=this.containerDivRef.current,{target:n}=e;null!==t&&null!==t.parentElement&&n instanceof Node&&!t.parentElement.contains(n)&&void 0!==this.props.onMousedownOutside&&this.props.onMousedownOutside(e)};getAriaAttributes(){return!1===this.props.isDialog?{}:xr()?{"aria-describedby":this.props.ariaLabelledby}:Dr()?{}:{"aria-labelledby":this.props.ariaLabelledby}}render(){const{trapFocus:e,className:t,appearEffect:n,children:r,decoration:i,maxHeight:s,minHeight:o,isDialog:a}=this.props,l=ri()(i===gx.Balloon&&"popover-component",t,n&&`appear-${n}`),{position:c}=this.state,u={position:"fixed",zIndex:17,height:"auto",...this.props.style},h={overflow:"hidden",width:"100%"};let p={};if(c){u.top=void 0===c.y?void 0:`${c.y}px`,u.left=void 0===c.x?void 0:`${c.x}px`,h.minHeight=void 0===o?void 0:`${o}px`,h.height=void 0===s?void 0:`${s}px`;const e=c.middlewareData.arrow;if(e){const t=c.placement.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[t],r={top:"270deg",right:"0deg",bottom:"90deg",left:"180deg"}[t];p={top:e.y,left:e.x,transform:`rotate(${r})`,[n]:this.tipDivRef.current?-this.tipDivRef.current.offsetWidth+"px":void 0}}}const d=Ae.createElement("div",{className:l,style:u,ref:this.containerDivRef,...this.getAriaAttributes(),role:!1===a?void 0:"dialog"},Ae.createElement("div",{className:"popover-content",style:h,ref:this.contentDivRef},r),i===gx.Balloon&&Ae.createElement("div",{className:"popover-tip",style:{position:"absolute",width:16,height:16,...p},ref:this.tipDivRef},Ae.createElement("div",{className:"popover-tip-border",style:{position:"absolute",right:1,width:0,height:0,borderWidth:"8px",borderRightWidth:"7px"}}),Ae.createElement("div",{className:"popover-tip-background",style:{position:"absolute",right:0,width:0,height:0,borderWidth:"8px",borderRightWidth:"7px"}})));return!1!==e?Ae.createElement(mA(),{focusTrapOptions:this.focusTrapOptions},d):d}getFloatingPlacementForAnchorPosition(){const{anchorPosition:e}=this.props;switch(e){case mx.Top:return"top";case mx.TopLeft:return"top-start";case mx.TopRight:return"top-end";case mx.Left:return"left";case mx.LeftTop:return"left-start";case mx.LeftBottom:return"left-end";case mx.Right:return"right";case mx.RightTop:return"right-start";case mx.RightBottom:return"right-end";case mx.Bottom:return"bottom";case mx.BottomLeft:return"bottom-start";case mx.BottomRight:return"bottom-end";default:ct(0,"Unknown anchor position")}}}class bx extends Ae.Component{element=null;invisibleCaretRef=Ae.createRef();autocompletionRequestID=0;constructor(e){super(e),this.state={autocompletionState:null,caretCoordinates:null}}componentWillMount(){const e=si("autocompleting-text-input"),t=si("autocomplete-container");this.setState({uniqueInternalElementId:e,autocompleteContainerId:t})}componentWillUnmount(){this.state.uniqueInternalElementId&&oi(this.state.uniqueInternalElementId),this.state.autocompleteContainerId&&oi(this.state.autocompleteContainerId)}componentDidUpdate(e){this.props.autocompleteItemFilter!==e.autocompleteItemFilter&&null!==this.state.autocompletionState&&this.open(this.element?.value??"")}get elementId(){return this.props.elementId??this.state.uniqueInternalElementId}renderItem=e=>{const t=this.state.autocompletionState;if(!t)return null;const n=t.items[e],r=n===t.selectedItem?"selected":"";return Ae.createElement("div",{className:`autocompletion-item ${r}`},t.provider.renderItem(n))};renderAutocompletions(){const e=this.state.autocompletionState;if(!e)return null;const t=e.items;if(!t.length)return null;const n=e.selectedItem?[t.indexOf(e.selectedItem)]:[],r=29*t.length,i=29*Math.min(t.length,3),s=e.rangeText,o=ri()("autocompletion-popup",e.provider.kind);return Ae.createElement(wx,{anchor:this.invisibleCaretRef.current,anchorPosition:mx.BottomLeft,decoration:gx.None,maxHeight:Math.min(100,r),minHeight:i,trapFocus:!1,className:o},Ae.createElement(lA,{accessibleListId:this.state.autocompleteContainerId,ref:this.onAutocompletionListRef,rowCount:t.length,rowHeight:29,rowId:this.getRowId,selectedRows:n,rowRenderer:this.renderItem,scrollToRow:n.at(0),onRowMouseDown:this.onRowMouseDown,onRowClick:this.insertCompletionOnClick,onSelectedRowChanged:this.onSelectedRowChanged,invalidationProps:s}))}getRowId=e=>{const t=this.state.autocompletionState;return t?`autocomplete-item-row-${t.itemListRowIdPrefix}-${e}`:""};onAutocompletionListRef=e=>{const{autocompletionState:t}=this.state;if(e&&t&&t.selectedItem){const{items:e,selectedItem:n}=t;this.setState({autocompletionState:{...t,selectedRowId:this.getRowId(e.indexOf(n))}})}};onRowMouseDown=(e,t)=>{const n=this.state.autocompletionState;if(!n)return;const r=n.items[e];r&&this.insertCompletion(r,"mouseclick")};onSelectedRowChanged=(e,t)=>{const n=this.state.autocompletionState;if(!n)return;const r=n.items[e],i={...n,selectedItem:r,selectedRowId:null===r?void 0:this.getRowId(e)};this.setState({autocompletionState:i})};insertCompletionOnClick=e=>{const t=this.state.autocompletionState;if(!t)return;const n=t.items;if(!n.length)return;const r=n[e];this.insertCompletion(r,"mouseclick")};onContextMenu=e=>{this.props.onContextMenu?this.props.onContextMenu(e):(e.preventDefault(),hh([{role:"editMenu"}]))};getActiveAutocompleteItemId(){const{autocompletionState:e}=this.state;if(null===e)return;if(e.selectedRowId)return e.selectedRowId;if(null===e.selectedItem)return;const t=e.items.indexOf(e.selectedItem);return this.getRowId(t)}renderTextInput(){const{autocompletionState:e}=this.state,t=null!==e&&e.items.length>0,n={type:"text",id:this.elementId,role:"combobox",placeholder:this.props.placeholder,value:this.props.value,ref:this.onRef,onChange:this.onChange,onScroll:this.onScroll,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onContextMenu:this.onContextMenu,readOnly:this.props.readOnly,required:!!this.props.required,spellCheck:this.props.spellcheck,autoComplete:"off","aria-expanded":t,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":this.state.autocompleteContainerId,"aria-owns":this.state.autocompleteContainerId,"aria-activedescendant":this.getActiveAutocompleteItemId()};return Ae.createElement(this.getElementTagName(),n)}updateCaretCoordinates=()=>{const e=this.element;if(!e)return void this.setState({caretCoordinates:null});const t=e.selectionEnd;if(null===t)return void this.setState({caretCoordinates:null});const n=pA()(e,t);this.setState({caretCoordinates:{top:n.top-e.scrollTop,left:n.left-e.scrollLeft,height:n.height}})};renderInvisibleCaret=()=>{const{caretCoordinates:e}=this.state;return e?Ae.createElement("div",{style:{backgroundColor:"transparent",width:2,height:20,position:"absolute",left:e.left,top:e.top},ref:this.invisibleCaretRef}," "):null};onBlur=e=>{this.close()};onFocus=e=>{this.props.alwaysAutocomplete&&null!==this.element&&(this.open(this.element.value),this.props.onFocus?.(e))};onRef=e=>{this.element=e,this.updateCaretCoordinates(),this.props.onElementRef&&this.props.onElementRef(e)};focus(){this.element&&this.element.focus()}render(){const e=this.getElementTagName(),t=ri()("autocompletion-container","no-invalid-state",this.props.className,{"text-box-component":"input"===e,"text-area-component":"textarea"===e}),n=this.state.autocompletionState?.items??[],r=1===n.length?"1 suggestion":`${n.length} suggestions`;return Ae.createElement("div",{className:t},this.renderAutocompletions(),this.props.screenReaderLabel&&Ae.createElement("label",{className:"sr-only",htmlFor:this.elementId},this.props.screenReaderLabel),this.renderTextInput(),this.renderInvisibleCaret(),Ae.createElement(qT,{message:n.length>0?r:null,trackedUserInput:this.state.autocompletionState?.rangeText}))}setCursorPosition(e){null!=this.element?(this.element.selectionStart=e,this.element.selectionEnd=e):log.warn("Unable to set cursor position when element is null")}insertCompletion(e,t){const n=this.element,r=this.state.autocompletionState,i=n.value,s=r.range,o=r.provider.getCompletionText(e),a=i.substr(0,s.start-1)+o+" ",l=a+i.substring(s.start+s.length);n.value=l,this.props.onValueChanged&&this.props.onValueChanged(l);const c=a.length;"mouseclick"===t?window.setTimeout((()=>{n.focus(),this.setCursorPosition(c)}),0):this.setCursorPosition(c),this.props.onAutocompleteItemSelected?.(e),this.close(),this.props.alwaysAutocomplete&&this.open("")}getMovementDirection(e){switch(e.key){case"ArrowUp":return"up";case"ArrowDown":return"down"}return null}onKeyDown=e=>{if(this.props.onKeyDown&&this.props.onKeyDown(e),e.defaultPrevented)return;const t=this.state.autocompletionState;if(!t||!t.items.length)return;const n=t.selectedItem?t.items.indexOf(t.selectedItem):-1,r=this.getMovementDirection(e);if(r){e.preventDefault();const i=sA(t.items.length,{direction:r,row:n});if(null!==i){const e=t.items[i],n={...t,selectedItem:e,selectedRowId:null===e?void 0:this.getRowId(i)};this.setState({autocompletionState:n})}}else if("Enter"===e.key||"Tab"===e.key&&!e.shiftKey){const n=t.selectedItem;n&&(e.preventDefault(),this.insertCompletion(n,"keyboard"))}else"Escape"===e.key&&this.close()};close(){this.setState({autocompletionState:null})}async attemptAutocompletion(e,t){const n=e.toLowerCase();for(const e of this.props.autocompletionProviders){const r=new RegExp(e.getRegExp());r.global||lt(`The regex (${r}) returned from ${e} isn't global, but it should be!`);let i=null;for(;i=r.exec(n);){const n=r.lastIndex,s=i[1]||"";if(n===t||this.props.alwaysAutocomplete){const t={start:n-s.length,length:s.length};let r=await e.getAutocompletionItems(s);return this.props.autocompleteItemFilter&&(r=r.filter(this.props.autocompleteItemFilter)),{provider:e,items:r,range:t,selectedItem:null,selectedRowId:void 0,rangeText:s,itemListRowIdPrefix:this.buildAutocompleteListRowIdPrefix()}}}}return null}buildAutocompleteListRowIdPrefix(){return(new Date).getTime().toString()}onScroll=()=>{this.updateCaretCoordinates()};onChange=async e=>{const t=e.currentTarget.value;return this.props.onValueChanged&&this.props.onValueChanged(t),this.updateCaretCoordinates(),this.open(t)};async open(e){const t=this.element;if(null===t)return;const n=t.selectionStart;if(null===n)return;const r=++this.autocompletionRequestID,i=await this.attemptAutocompletion(e,n);r===this.autocompletionRequestID&&this.setState({autocompletionState:i})}}class vx extends bx{getElementTagName(){return"textarea"}}class Cx extends bx{getElementTagName(){return"input"}}class Sx{kind="emoji";emoji;constructor(e){this.emoji=e}getRegExp(){return/(?:^|\n| )(?::)([a-z\d\\+-][a-z\d_]*)?/g}async getAutocompletionItems(e,t=25){if(0===e.length)return[...this.emoji.keys()].map((e=>({emoji:e,matchStart:0,matchLength:0}))).slice(0,t);const n=new Array,r=e.toLowerCase();for(const e of this.emoji.keys()){const t=e.indexOf(r);-1!==t&&n.push({emoji:e,matchStart:t,matchLength:r.length})}return n.sort(((e,t)=>gr(e.matchStart,t.matchStart)||gr(e.emoji.length,t.emoji.length)||gr(e.emoji,t.emoji))).slice(0,t)}renderItem(e){const t=e.emoji;return Ae.createElement("div",{className:"emoji",key:t},Ae.createElement("img",{className:"icon",src:this.emoji.get(t),alt:t}),this.renderHighlightedTitle(e))}renderHighlightedTitle(e){const t=e.emoji.replaceAll(":","");if(!e.matchLength)return Ae.createElement("div",{className:"title"},t);const n=e.matchStart-1;return Ae.createElement("div",{className:"title"},t.substring(0,n),Ae.createElement("mark",null,t.substring(n,n+e.matchLength)),t.substring(n+e.matchLength))}getCompletionText(e){return e.emoji}}class Ex{delay;timeoutId=null;constructor(e){this.delay=e}queue(e){this.clear(),this.timeoutId=window.setTimeout(e,this.delay)}clear(){null!=this.timeoutId&&window.clearTimeout(this.timeoutId)}}class kx{kind="issue";issuesStore;repository;dispatcher;updateIssuesScheduler=new Ex(6e4);constructor(e,t,n){this.issuesStore=e,this.repository=t,this.dispatcher=n}getRegExp(){return/(?:^|\n| )(?:#)([a-z\d\\+-][a-z\d_]*)?/g}getAutocompletionItems(e){return this.updateIssuesScheduler.queue((()=>{this.dispatcher.refreshIssues(this.repository)})),this.issuesStore.getIssuesMatching(this.repository,e)}renderItem(e){return Ae.createElement("div",{className:"issue",key:e.number},Ae.createElement("span",{className:"number"},"#",e.number)," ",Ae.createElement("span",{className:"title"},e.title))}getCompletionText(e){return`#${e.number}`}}function Rx(e,t){return{kind:"known-user",username:t.login,name:t.name,email:t.email,endpoint:e.endpoint}}class Tx{kind="user";gitHubUserStore;repository;account;constructor(e,t,n){this.gitHubUserStore=e,this.repository=t,this.account=n||null}getRegExp(){return/(?:^|\n| )(?:@)([a-z\d\\+-][a-z\d_-]*)?/g}async getUserAutocompletionItems(e,t){const n=await this.gitHubUserStore.getMentionableUsersMatching(this.repository,e),r=this.account,i=r?n.filter((e=>e.login!==r.login)):n,s=i.map((e=>Rx(this.repository,e)));return t&&e.length>0&&(s.some((t=>t.username.toLowerCase()===e.toLowerCase()))||s.push({kind:"unknown-user",username:e})),s}async getAutocompletionItems(e){return this.getUserAutocompletionItems(e,!1)}renderItem(e){return"known-user"===e.kind?Ae.createElement("div",{className:"user",key:e.username},Ae.createElement("span",{className:"username"},e.username),Ae.createElement("span",{className:"name"},e.name)):Ae.createElement("div",{className:"user unknown",key:e.username},Ae.createElement("span",{className:"username"},e.username),Ae.createElement("span",{className:"description"},"Search for user"))}getCompletionText(e){return`@${e.username}`}async exactMatch(e){if(null===this.account)return null;const t=await this.gitHubUserStore.getByLogin(this.account,e);return t?Rx(this.repository,t):null}}class Ax extends Tx{getRegExp(){return/(?:^|\n| )(?:@)?([a-z\d\\+-][a-z\d_-]*)?/g}async getAutocompletionItems(e){return super.getUserAutocompletionItems(e,!0)}}function xx(e,t,n,r,i,s){const o=[new Sx(n)],a=$r(e)?Gr(e):null;if(null!==a){o.push(new kx(r,a,t));const e=s.find((e=>e.endpoint===a.endpoint));o.push(new Tx(i,a,e),new Ax(i,a,e))}return o}class Dx extends Ae.Component{render(){return Ae.createElement(yi,{className:"spin",symbol:Qu})}}function _x(e){return Sw(e)?null===e.username?e.name:`@${e.username} (${e.name})`:`@${e.username}`}class Mx extends xe().Component{getAriaLabel(){const{author:e}=this.props;if(Sw(e))return`${_x(e)} press backspace or delete to remove`;const t="error"===e.state?"user not found":"searching";return`${e.username}, ${t}, press backspace or delete to remove`}getClassName(){const{author:e,isFocused:t}=this.props,n=["handle",{focused:t}];if(!Sw(e)){const t="error"===e.state;n.push({progress:!t,error:t})}return ri()(n)}getTitle(){const{author:e}=this.props;if(!Sw(e))return"error"===e.state?`Could not find user with username ${e.username}`:`Searching for @${e.username}`}getTabIndex(){const{isFocusWithinContainer:e,isFocused:t,isLastAuthor:n,isFirstAuthor:r,isInputFocused:i}=this.props;return e?t||n&&i?0:-1:r?0:-1}render(){const{author:e,isFocused:t}=this.props;return xe().createElement("div",{className:this.getClassName(),title:this.getTitle(),role:"option","aria-label":this.getAriaLabel(),"aria-selected":t,onKeyDown:this.onKeyDown,onClick:this.onHandleClick,tabIndex:this.getTabIndex(),onFocus:this.onFocus},xe().createElement("span",{"aria-hidden":"true"},function(e){return Sw(e)&&null===e.username?e.name:`@${e.username}`}(e)),!Sw(e)&&xe().createElement(yi,{className:ri()("icon",{spin:"error"!==e.state}),symbol:"error"===e.state?Pc:Qu}),xe().createElement("button",{onClick:this.onRemoveClick,tabIndex:-1},xe().createElement(yi,{className:"delete",symbol:yu})))}onKeyDown=e=>{this.props.onKeyDown(this.props.index,e)};onRemoveClick=e=>{e.preventDefault(),this.props.onRemoveClick(this.props.index,e)};onHandleClick=e=>{e.isDefaultPrevented()||this.props.onHandleClick(this.props.index,e)};onFocus=e=>{this.props.onFocus(this.props.index,e)}}function Px(e){return e.email&&e.email.length>0?e.email:db(e.username,e.endpoint)}function Ix(e){return{kind:"known",name:e.name||e.username,email:Px(e),username:e.username}}class Ox extends Ae.Component{autocompletingInputRef=Ae.createRef();shadowInputRef=Ae.createRef();inputRef=null;authorContainerRef=Ae.createRef();getAutocompleteItemFilter=Tr((e=>t=>{if("known-user"!==t.kind)return!0;const n=e.map((e=>e.username));return!n.some((e=>e===t.username))}));constructor(e){super(e),this.state={isFocusedWithin:!1,focusedAuthorIndex:null,lastActionDescription:null}}componentDidUpdate(e,t){!this.state.isFocusedWithin||e.authors.length===this.props.authors.length&&t.focusedAuthorIndex===this.state.focusedAuthorIndex||this.focusAuthorHandle(this.state.focusedAuthorIndex)}focus(){this.autocompletingInputRef.current?.focus()}focusAuthorHandle(e){if(null===e)return void this.inputRef?.focus();const t=this.authorContainerRef.current?.getElementsByClassName("handle")[e];t?.focus()}render(){const e=ri()("author-input-component",this.props.className,{disabled:this.props.readOnly});return Ae.createElement(cp,{className:e,onFocusWithinChanged:this.onFocusWithinChanged},Ae.createElement("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.state.lastActionDescription),Ae.createElement("div",{className:"shadow-input",ref:this.shadowInputRef}),Ae.createElement("label",{id:"author-input-label",className:"label",htmlFor:"author-input"},"Co-Authors "),this.renderAuthors(),Ae.createElement(Cx,{elementId:"author-input",placeholder:"@username",alwaysAutocomplete:!0,autocompletionProviders:[this.props.autoCompleteProvider],autocompleteItemFilter:this.getAutocompleteItemFilter(this.props.authors),ref:this.autocompletingInputRef,onElementRef:this.onInputRef,onAutocompleteItemSelected:this.onAutocompleteItemSelected,onValueChanged:this.onCoAuthorsValueChanged,onKeyDown:this.onInputKeyDown,onFocus:this.onInputFocus,readOnly:this.props.readOnly}))}renderAuthors(){return Ae.createElement("div",{className:"added-author-container",ref:this.authorContainerRef,"aria-labelledby":"author-input-label",role:"listbox"},this.props.authors.map(((e,t)=>this.renderAuthor(e,t))))}renderAuthor(e,t){const{focusedAuthorIndex:n,isFocusedWithin:r}=this.state;return Ae.createElement(Mx,{key:Sw(e)?_x(e):e.username,index:t,author:e,isFocusWithinContainer:r,isFocused:n===t,isLastAuthor:t===this.props.authors.length-1,isFirstAuthor:0===t,isInputFocused:null===n,onKeyDown:this.onAuthorKeyDown,onHandleClick:this.onAuthorClick,onRemoveClick:this.onRemoveAuthorClick,onFocus:this.onAuthorFocus})}onFocusWithinChanged=e=>{const t=e?this.state.focusedAuthorIndex:null;this.setState({focusedAuthorIndex:t,isFocusedWithin:e})};onAuthorKeyDown=(e,t)=>{"ArrowLeft"===t.key?this.focusPreviousAuthor():"ArrowRight"===t.key?this.focusNextAuthor():null===this.state.focusedAuthorIndex||"Backspace"!==t.key&&"Delete"!==t.key||this.removeAuthor(this.state.focusedAuthorIndex,"Backspace"===t.key?"back":"forward")};removeAuthor(e,t){const{authors:n}=this.props;if(e>=n.length)return;const r=n[e],i=n.slice(0,e).concat(n.slice(e+1));let s=null;i.length>0&&(s="back"===t?Math.max(0,e-1):e===n.length-1?null:Math.min(i.length-1,e));let o=`Removed ${r.username}`;Sw(r)&&(o+=` (${r.name})`),this.setState({focusedAuthorIndex:s,lastActionDescription:o}),this.emitAuthorsUpdated(i)}emitAuthorsUpdated(e){this.props.onAuthorsUpdated(e)}focusPreviousAuthor(){const{focusedAuthorIndex:e}=this.state,{authors:t}=this.props;null===e?this.setState({focusedAuthorIndex:t.length-1}):e>0&&this.setState({focusedAuthorIndex:e-1})}focusNextAuthor(){const{focusedAuthorIndex:e}=this.state,{authors:t}=this.props;null!==e&&e<t.length-1?this.setState({focusedAuthorIndex:e+1}):this.setState({focusedAuthorIndex:null})}onInputFocus=()=>{this.setState({focusedAuthorIndex:null})};onCoAuthorsValueChanged=e=>{if(null===this.shadowInputRef.current||null===this.inputRef||null===this.inputRef.parentElement||null===this.inputRef.parentElement.parentElement)return;this.shadowInputRef.current.textContent=e;const t=this.shadowInputRef.current.clientWidth;this.shadowInputRef.current.textContent=this.inputRef.placeholder;const n=this.shadowInputRef.current.clientWidth,r=this.inputRef.parentElement,i=this.inputRef.parentElement.parentElement;r.style.minWidth=`${Math.min(i.getBoundingClientRect().width-10,Math.max(t,n))}px`};onInputRef=e=>{null!==e&&(this.inputRef=e)};onAutocompleteItemSelected=e=>{const t="known-user"===e.kind?Ix(e):{kind:"unknown",username:e.username,state:"searching"},n=[...this.props.authors,t];this.emitAuthorsUpdated(n);let r=`Added ${t.username}`;Sw(t)?r+=` (${t.name})`:this.attemptUnknownAuthorSearch(t),this.setState({lastActionDescription:r}),null!==this.inputRef&&(this.inputRef.value="",this.onCoAuthorsValueChanged(""))};async attemptUnknownAuthorSearch(e){const t=this.props.authors.filter(Sw).find((t=>t.username?.toLowerCase()===e.username.toLowerCase()));if(void 0!==t)return void this.updateUnknownAuthor(t);const n=await this.props.autoCompleteProvider.exactMatch(e.username);if(null===n||"known-user"!==n.kind){const t={...e,state:"error"};return this.updateUnknownAuthor(t),void this.setState({lastActionDescription:`Error: user ${e.username} not found`})}const r=Ix(n);this.updateUnknownAuthor(r)}updateUnknownAuthor(e){const t=this.props.authors.map((t=>t.username?.toLowerCase()!==e.username?.toLowerCase()||Sw(t)?t:e));this.emitAuthorsUpdated(t)}onInputKeyDown=e=>{if(null!==this.inputRef&&("ArrowLeft"!==e.key&&"Backspace"!==e.key||0!==this.inputRef.selectionStart||this.focusPreviousAuthor()," "===e.key&&this.inputRef.selectionStart===this.inputRef.value.length)){e.preventDefault();const t=this.inputRef.value.trim();0!==t.length&&this.onAutocompleteItemSelected({kind:"unknown-user",username:t})}};onAuthorClick=e=>{this.setState({focusedAuthorIndex:e})};onRemoveAuthorClick=e=>{this.removeAuthor(e,"forward")};onAuthorFocus=e=>{this.setState({focusedAuthorIndex:e})}}function Nx(e,t){return()=>{const n=((performance.now()-e)/1e3).toFixed(3),r=`[Timing] ${t} took ${n}s`;log.info(r)}}function Lx(e,t){const n=performance&&performance.now?performance.now():null;return null===n?(log.warn("[Timing] invoked but performance.now not found - are you using this outside the renderer?"),{done:()=>{}}):{done:Nx(n,`Action '${e}' for '${qr(t)}'`)}}!function(e){e[e.Warning=0]="Warning",e[e.Information=1]="Information",e[e.Error=2]="Error"}(yx||(yx={}));const Bx=e=>Ae.createElement("div",{className:"commit-warning-component",onContextMenu:Fx},Ae.createElement("div",{className:"warning-icon-container"},(e=>{let t="",n=vi;switch(e){case yx.Warning:t="warning-icon",n=vi;break;case yx.Information:t="information-icon",n=Ca;break;case yx.Error:t="error-icon",n=Pc;break;default:ct(0,`Unexpected icon value ${e}`)}return Ae.createElement(yi,{className:t,symbol:n})})(e.icon)),Ae.createElement("div",{className:"warning-message"},e.children)),Fx=e=>{e.preventDefault()};class Hx extends Ae.Component{anchorRef=di();render(){const e=this.props.uri||"",t=ri()("link-button-component",this.props.className),{title:n}=this.props;return Ae.createElement("a",{ref:this.anchorRef,className:t,href:e,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onClick:this.onClick,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},n&&Ae.createElement(ci,{target:this.anchorRef},n),this.props.children)}onClick=e=>{if(e.preventDefault(),this.props.disabled)return;const t=this.props.uri;t&&pt.openExternal(t);const n=this.props.onClick;n&&n()}}function Ux(e,t){if(!t)return!1;const n=t.owner.endpoint,{name:r,email:i}=e.committer;return n===cr()&&"GitHub"===r&&"noreply@github.com"===i||n!==cr()&&"GitHub Enterprise"===r}function Zx(e,t){return{email:e.email,name:e.name,endpoint:null===t?null:t.endpoint,avatarURL:void 0}}function $x(e,t){const n=[];n.push(Zx(t.author,e)),n.push(...t.coAuthors.map((t=>Zx(t,e))));const r=t.coAuthors.some((e=>e.name===t.committer.name&&e.email===t.committer.email)),i=null!==e&&Ux(t,e);return t.authoredByCommitter||i||r||n.push(Zx(t.committer,e)),n}class Wx extends Ae.Component{componentWillMount(){const e=si(`Select_${this.props.label||"unknown"}`);this.setState({inputId:e})}componentWillUnmount(){this.state.inputId&&oi(this.state.inputId)}renderLabel(){const e=this.props.label,t=this.state.inputId;return e?Ae.createElement("label",{htmlFor:t},e):null}render(){return Ae.createElement("div",{className:"select-component"},this.renderLabel(),Ae.createElement("select",{id:this.state.inputId,onChange:this.props.onChange,value:this.props.value,defaultValue:this.props.defaultValue,disabled:this.props.disabled},this.props.children))}}const qx=e=>"object"==typeof e&&null!==e&&"then"in e;class Vx{keyFunc;valueFunc;expirationFunc;data=new Map;constructor(e,t,n=(()=>1/0)){this.keyFunc=e,this.valueFunc=t,this.expirationFunc=n}set(e,t,n){const r=n??this.expirationFunc(e,t);if(r<=0)return this.delete(e);const i=this.keyFunc(e),s={item:t,timeoutId:isFinite(r)?window.setTimeout((()=>{this.data.get(i)===s&&this.data.delete(i)}),r):void 0};this.delete(e),this.data.set(i,s)}delete(e){const t=this.keyFunc(e),n=this.data.get(t);n&&!qx(n)&&void 0!==n.timeoutId&&window.clearTimeout(n.timeoutId),this.data.delete(t)}tryGet(e){const t=this.data.get(this.keyFunc(e));return t&&!qx(t)?t.item:void 0}async get(e){const t=this.keyFunc(e),n=this.data.get(t);if(n)return qx(n)?n:n.item;const r=this.valueFunc(e).then((n=>(this.data.get(t)===r&&this.set(e,n),n))).catch((e=>(this.data.get(t)===r&&this.data.delete(t),Promise.reject(e))));return this.data.set(this.keyFunc(e),r),r}}const Gx=new Vx((({endpoint:e})=>e),(async({endpoint:e,accounts:t})=>{if(!Pn(e))throw new Error("Avatar tokens are only available for ghe.com");const n=t.find((t=>t.endpoint===e));if(!n)throw new Error("No account found for endpoint");const r=new ir(e,n.token);return ut("Avatar token missing",await r.getAvatarToken())}),(()=>Mt(0,50,"minutes"))),zx=e=>{const{endpoint:t}=e;if(void 0!==e.avatarURL||null===t)return;const n=((e,t)=>{const n=pb(t),r=gb.exec(e);if(!r||n!==r[3])return null;const[,i,s]=r;return{id:i?parseInt(i,10):void 0,login:s}})(e.email,t);return n?.login?.endsWith("[bot]")?n.login:void 0},jx=new Vx((({user:e})=>`${e.endpoint}:${e.email}`),(async({user:e,accounts:t})=>{const{endpoint:n}=e;if(void 0!==e.avatarURL||null===n)throw new Error("Avatar URL already resolved or endpoint is missing");const r=t.find((t=>t.endpoint===e.endpoint));if(!r)throw new Error("No account found for endpoint");const i=zx(e);if(!i)throw new Error("Email does not appear to be a bot email");const s=new ir(n,r.token),o=await s.fetchUser(i);if(!o?.avatar_url)throw new Error("No avatar url returned from API");return{...e,avatarURL:o.avatar_url}}),(({user:e})=>e.endpoint&&Pn(e.endpoint)?Mt(0,50,"minutes"):1/0)),Kx=(e,t,n)=>{const r=`https://avatars.githubusercontent.com/in/${n}?v=4`,i=cr(),s="users.noreply.github.com";return[{email:`${t}+${e}@${s}`,name:e,avatarURL:r,endpoint:i},{email:`${e}@${s}`,name:e,avatarURL:r,endpoint:i}]};[...Kx("dependabot[bot]",49699333,29110),...Kx("github-actions[bot]",41898282,15368),...Kx("github-pages[bot]",52472962,34598)].forEach((e=>jx.set({user:e,accounts:[]},e,1/0)));const Yx=new Map,Xx=3e5,Qx={w:16,h:16,p:["M13 13.145a.844.844 0 0 1-.832.855H3.834A.846.846 0 0 1 3 13.142v-.856c0-2.257 3.333-3.429 3.333-3.429s.191-.35 0-.857c-.7-.531-.786-1.363-.833-3.429C5.644 2.503 7.056 2 8 2s2.356.502 2.5 2.571C10.453 6.637 10.367 7.47 9.667 8c-.191.506 0 .857 0 .857S13 10.03 13 12.286v.859z"]};function Jx(e,t,n=64){const r=new Array;if(void 0===e)return r;const{email:i,avatarURL:s}=e,o=e.endpoint??cr();if(!In(o)&&void 0!==s)try{const e=new URL(s);e.searchParams.set("s",`${n}`),r.push(e.toString())}catch(e){r.push(s)}if(In(o)&&!Bn(o))return[];if(Pn(o)&&!t)return[];const a=function(e){return In(e)?new URL("enterprise/avatars/u/e",e.endsWith("/")?e:`${e}/`):Pn(e)?new URL("/avatars/u/e",ar(e)):new URL("https://avatars.githubusercontent.com/u/e")}(o);return a.searchParams.set("email",i),a.searchParams.set("s",`${n}`),Pn(o)&&t&&a.searchParams.set("token",t),r.push(`${a}`),r}const eD=(e,t,n,r)=>{e&&!e.avatarURL&&(e=jx.tryGet({user:e,accounts:t})??e);const i=e?.endpoint;return r??=i&&Pn(i)?Gx.tryGet({endpoint:i,accounts:t}):void 0,{user:e,candidates:Jx(e,r,n),avatarToken:r}};class tD extends Ae.Component{static getDerivedStateFromProps(e,t){return e.user?.email!==t.user?.email||e.user?.endpoint!==t.user?.endpoint||e.user?.name!==t.user?.name?eD(e.user,e.accounts,e.size):null}cancelAvatarRequests=!1;constructor(e){super(e);const{user:t,size:n,accounts:r}=e;this.state={...eD(t,r,n),imageError:!1}}getTitle(){const{title:e,accounts:t}=this.props,{user:n}=this.state;if(null!==e)return void 0!==e?e:n?.name?Ae.createElement(Ae.Fragment,null,Ae.createElement(tD,{title:null,user:n,accounts:t}),Ae.createElement("div",null,Ae.createElement("div",null,Ae.createElement("strong",null,n.name)),Ae.createElement("div",null,n.email))):n?.email??"Unknown user"}onImageError=e=>{const{src:t}=e.currentTarget,n=this.state.candidates.filter((e=>e!==t));this.setState({candidates:n,imageError:0===n.length})};onImageLoad=e=>{this.state.imageError&&this.setState({imageError:!1})};render(){const e=this.getTitle(),{imageError:t,user:n}=this.state,r=n?`Avatar for ${n.name||n.email}`:"Avatar for unknown user",i=Date.now(),s=this.state.candidates.find((e=>{const t=Yx.get(e);return void 0===t||i-t>Xx}));return Ae.createElement(eh,{className:"avatar-container",tooltipClassName:this.props.title?void 0:"user-info",tooltip:e,direction:li.NORTH,tagName:"div"},(!s||t)&&Ae.createElement(yi,{symbol:Qx,className:"avatar"}),s&&Ae.createElement("img",{className:"avatar",key:s,ref:this.onImageRef,src:s,alt:r,onLoad:this.onImageLoad,onError:this.onImageError,style:{display:t?"none":void 0}}))}onImageRef=e=>{e?.addEventListener("error",(()=>{Yx.delete(e.src),Yx.set(e.src,Date.now())}))};ensureAvatarToken(){const{accounts:e}=this.props,{user:t}=this.state,n=t?.endpoint;if(this.state.avatarToken||!t||!e)return;if(!n||!Pn(n))return;const r=Gx.tryGet({endpoint:n,accounts:e});r?this.resetAvatarCandidates(r):this.setState({avatarToken:Gx.get({endpoint:n,accounts:e}).then((e=>{this.cancelAvatarRequests||e&&this.state.user?.endpoint===n&&this.resetAvatarCandidates(e)})).catch((e=>log.debug(`Failed to fetch avatar token: ${e}`)))})}componentDidUpdate(e,t){this.ensureAvatarToken();const n=t.user,r=this.state.user;n?.endpoint===r?.endpoint&&n?.email===r?.email||this.resolveBotAvatar()}resetAvatarCandidates(e){const{user:t}=this.state,{size:n,accounts:r}=this.props;this.setState(eD(t,r,n,e))}componentDidMount(){window.addEventListener("online",this.onInternetConnected),function(){const e=new Array;for(const[t,n]of Yx.entries()){if(!(Date.now()-n>Xx))break;e.push(t)}e.forEach((e=>Yx.delete(e)))}(),this.ensureAvatarToken(),this.resolveBotAvatar()}resolveBotAvatar(){const{accounts:e}=this.props,{user:t}=this.state;t?.endpoint&&!t.avatarURL&&zx(t)&&jx.get({user:t,accounts:e}).then((e=>{this.cancelAvatarRequests||t.endpoint!==e.endpoint||t.email!==e.email||t.name!==e.name||t.avatarURL===e.avatarURL||this.setState({user:e},(()=>this.resetAvatarCandidates()))})).catch(iT.noop)}componentWillUnmount(){window.removeEventListener("online",this.onInternetConnected),this.cancelAvatarRequests=!0}onInternetConnected=()=>{Yx.clear(),0===this.state.candidates.length&&this.resetAvatarCandidates()}}class nD extends Ae.Component{render(){const e=ri()("dialog-content",this.props.className);return Ae.createElement("div",{className:e,ref:this.props.onRef},this.props.children)}}class rD extends Ae.Component{onCloseButtonClick=e=>{e.preventDefault(),this.props.onCloseButtonClick&&this.props.onCloseButtonClick()};renderCloseButton(){return!1===this.props.showCloseButton?null:Ae.createElement("button",{className:"close",onClick:this.onCloseButtonClick,"aria-label":"Close"},Ae.createElement(yi,{symbol:yu}))}render(){const e=this.props.loading?Ae.createElement(yi,{className:"icon spin",symbol:Qu}):null;return Ae.createElement("div",{className:"dialog-header"},Ae.createElement("h1",{id:this.props.titleId},this.props.title),this.props.renderAccessory?.(),e,this.renderCloseButton(),this.props.children)}}function iD(e,t){return Tr((n=>{n?e():t()}))}const sD="dialog-preferred-focus",oD=Ae.createContext({isTopMost:!1});class aD extends Ae.Component{static contextType=oD;checkIsTopMostDialog=iD((()=>{this.onDialogIsTopMost()}),(()=>{this.onDialogIsNotTopMost()}));dialogElement=null;dismissGraceTimeoutId;disableClickDismissalTimeoutId=null;disableClickDismissal=!1;resizeObserver;resizeDebounceId=null;constructor(e){super(e),this.state={isAppearing:!0},this.resizeObserver=new ResizeObserver(this.scheduleResizeEvent)}scheduleResizeEvent=()=>{null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame(this.onResized)};onResized=()=>{if(!this.dialogElement)return;const{offsetTop:e,offsetHeight:t}=this.dialogElement;if(t>window.innerHeight-28)return;const n=e+t+10-window.innerHeight;if(n>0){const t=Math.max(28,e-n);this.dialogElement.style.top=`${t}px`}};clearDismissGraceTimeout(){void 0!==this.dismissGraceTimeoutId&&(window.clearTimeout(this.dismissGraceTimeoutId),this.dismissGraceTimeoutId=void 0)}scheduleDismissGraceTimeout(){this.clearDismissGraceTimeout(),this.dismissGraceTimeoutId=window.setTimeout(this.onDismissGraceTimer,250)}onDismissGraceTimer=()=>{this.setState({isAppearing:!1}),this.dialogElement?.dispatchEvent(new CustomEvent("dialog-appeared",{bubbles:!0,cancelable:!1}))};isBackdropDismissable(){return!1!==this.props.backdropDismissable}isDismissable(){return!0!==this.props.dismissDisabled}updateTitleId(){if(this.state.titleId&&(oi(this.state.titleId),this.setState({titleId:void 0})),this.props.title){const e="string"==typeof this.props.title?this.props.title:"???";this.setState({titleId:si(`Dialog_${this.props.id}_${e}`)})}}componentWillMount(){this.updateTitleId()}componentDidMount(){U(),this.checkIsTopMostDialog(this.context.isTopMost)}onDialogIsTopMost(){null!=this.dialogElement&&(this.dialogElement.open||this.dialogElement.showModal(),this.dialogElement.dispatchEvent(new CustomEvent("dialog-show",{bubbles:!0,cancelable:!1})),this.setState({isAppearing:!0}),this.scheduleDismissGraceTimeout(),this.focusFirstSuitableChild(),window.addEventListener("focus",this.onWindowFocus),this.resizeObserver.observe(this.dialogElement),window.addEventListener("resize",this.scheduleResizeEvent))}onDialogIsNotTopMost(){null!==this.dialogElement&&this.dialogElement.open&&this.dialogElement?.close(),this.clearDismissGraceTimeout(),window.removeEventListener("focus",this.onWindowFocus),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.scheduleResizeEvent)}focusFirstSuitableChild(){const e=this.dialogElement;if(null===e)return;const t=['input:not([type=hidden]):not(:disabled):not([tabindex="-1"])','textarea:not(:disabled):not([tabindex="-1"])','button:not(:disabled):not([tabindex="-1"])','[tabindex]:not(:disabled):not([tabindex="-1"])'].join(", ");let n=null,r=[1/0,null],i=null,s=null,o=null;const a=e.querySelector(":scope > div.dialog-header button.close");if(a instanceof HTMLElement&&this.props.focusCloseButtonOnOpen)return void a.focus();const l=`input${[":not([type=button])",":not([type=submit])",":not([type=reset])",":not([type=hidden])",":not([type=radio])"].join("")}, textarea`;for(const c of e.querySelectorAll(t)){if(!(c instanceof HTMLElement))continue;const e=parseInt(c.getAttribute("tabindex")||"",10);null===n&&c.matches(".dialog-preferred-focus")?n=c:e>0&&e<r[0]?r=[e,c]:null!==o||0!==e&&!c.matches(l)?null===i&&c.matches("input[type=submit], button[type=submit]")?i=c:null===s&&c.matches("input[type=button], input[type=submit] input[type=reset], button")&&c!==a&&(s=c):o=c}const c=[n,r[1],o,i,s,a];for(const e of c)if(e instanceof HTMLElement){e.focus();break}}onWindowFocus=()=>{this.clearClickDismissalTimer(),this.disableClickDismissal=!0,this.disableClickDismissalTimeoutId=window.setTimeout((()=>{this.disableClickDismissal=!1,this.disableClickDismissalTimeoutId=null}),500)};clearClickDismissalTimer(){this.disableClickDismissalTimeoutId&&(window.clearTimeout(this.disableClickDismissalTimeoutId),this.disableClickDismissalTimeoutId=null)}componentWillUnmount(){this.state.titleId&&oi(this.state.titleId),this.checkIsTopMostDialog(!1)}componentDidUpdate(e){!this.props.title&&this.state.titleId&&this.updateTitleId(),this.checkIsTopMostDialog(this.context.isTopMost)}onDialogCancel=e=>{e.preventDefault(),this.onDismiss()};onDialogMouseDown=e=>{if(!e.defaultPrevented&&this.isDismissable()&&this.isBackdropDismissable()&&e.target===this.dialogElement)return this.disableClickDismissal?(this.disableClickDismissal=!1,void this.clearClickDismissalTimer()):void(this.mouseEventIsInsideDialog(e)||document.addEventListener("mouseup",this.onDocumentMouseUp,{once:!0}))};mouseEventIsInsideDialog(e){if(null===this.dialogElement)return!1;if(e.clientY<=28)return!1;const t=this.dialogElement.getBoundingClientRect();return t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width}onDocumentMouseUp=e=>{e.defaultPrevented||this.mouseEventIsInsideDialog(e)||(e.preventDefault(),this.onDismiss())};onDialogRef=e=>{e?e.addEventListener("cancel",this.onDialogCancel):this.dialogElement&&this.dialogElement.removeEventListener("cancel",this.onDialogCancel),this.dialogElement=e,this.props.onDialogRef?.(e)};onKeyDown=e=>{e.defaultPrevented||(e.ctrlKey&&"w"===e.key||"Escape"===e.key)&&this.onDialogCancel(e)};onDismiss=()=>{this.isDismissable()&&!this.state.isAppearing&&this.props.onDismissed&&this.props.onDismissed()};onSubmit=e=>{e.preventDefault(),this.props.onSubmit?this.props.onSubmit():this.onDismiss()};renderHeader(){return this.props.title?Ae.createElement(rD,{title:this.props.title,titleId:this.state.titleId,showCloseButton:this.isDismissable(),onCloseButtonClick:this.onDismiss,renderAccessory:this.props.renderHeaderAccessory,loading:this.props.loading}):null}getAriaAttributes(){return xr()?"alertdialog"===this.props.role?{"aria-labelledby":`${this.state.titleId} ${this.props.ariaDescribedBy}`}:{"aria-describedby":`${this.state.titleId} ${this.props.ariaDescribedBy??""}`}:Dr()&&"alertdialog"!==this.props.role?{"aria-describedby":this.props.ariaDescribedBy}:{"aria-labelledby":this.state.titleId,"aria-describedby":this.props.ariaDescribedBy}}render(){const e=ri()({error:"error"===this.props.type,warning:"warning"===this.props.type},this.props.className,"tooltip-host");return Ae.createElement("dialog",{ref:this.onDialogRef,id:this.props.id,role:this.props.role,onMouseDown:this.onDialogMouseDown,onKeyDown:this.onKeyDown,className:e,...this.getAriaAttributes(),tabIndex:-1},this.renderHeader(),Ae.createElement("form",{onSubmit:this.onSubmit,onReset:this.onDismiss},Ae.createElement("fieldset",{disabled:this.props.disabled},this.props.children)))}}class lD extends Ae.Component{render(){return Ae.createElement("div",{className:"dialog-banner dialog-error",role:"alert"},Ae.createElement(yi,{symbol:Pc}),Ae.createElement("div",null,this.props.children))}}class cD extends Ae.Component{render(){return Ae.createElement("div",{className:"dialog-footer"},this.props.children)}}class uD extends Ae.Component{onOkButtonClick=e=>{void 0!==this.props.onOkButtonClick&&this.props.onOkButtonClick(e),e.defaultPrevented||!0===this.props.destructive&&(e.preventDefault(),e.currentTarget.form&&e.currentTarget.form.dispatchEvent(new Event("submit")))};onCancelButtonClick=e=>{void 0!==this.props.onCancelButtonClick&&this.props.onCancelButtonClick(e),e.defaultPrevented||!0===this.props.destructive&&(e.preventDefault(),e.currentTarget.form&&e.currentTarget.form.dispatchEvent(new Event("reset")))};renderOkButton(){return Ae.createElement(mi,{onClick:this.onOkButtonClick,disabled:this.props.okButtonDisabled,tooltip:this.props.okButtonTitle,type:!0===this.props.destructive?"button":"submit",ariaDescribedBy:this.props.okButtonAriaDescribedBy},this.props.okButtonText||"Ok")}renderCancelButton(){return!1===this.props.cancelButtonVisible?null:Ae.createElement(mi,{onClick:this.onCancelButtonClick,disabled:this.props.cancelButtonDisabled,tooltip:this.props.cancelButtonTitle,type:!0===this.props.destructive?"submit":"reset"},this.props.cancelButtonText||"取消")}renderButtons(){return Ae.createElement(Ae.Fragment,null,this.renderOkButton(),this.renderCancelButton())}render(){const e=ri()("button-group",this.props.className,{destructive:!0===this.props.destructive});return Ae.createElement("div",{className:e},this.renderButtons(),this.props.children)}}class hD extends Ae.Component{render(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:this.props.buttonText||"关闭",okButtonTitle:this.props.buttonTitle,onOkButtonClick:this.props.onButtonClick,okButtonDisabled:this.props.disabled,cancelButtonVisible:!1}))}}class pD extends Ae.Component{render(){const{repository:e,branch:t,children:n}=this.props;if(!e||!t)return n;const r=`${e.htmlURL}/rules/?ref=${encodeURIComponent("refs/heads/"+t)}`;return Ae.createElement(Hx,{uri:r,className:"repo-rulesets-for-branch-link"},n)}}class dD extends Ae.Component{render(){const{repository:e,rulesetId:t,children:n}=this.props,r=`${e.htmlURL}/rules/${t}`;return Ae.createElement(Hx,{uri:r,className:"repo-ruleset-link"},n)}}class mD extends Ae.Component{render(){const{repository:e,branch:t,failures:n,leadingText:r}=this.props,i=n.failed.length+n.bypassed.length;let s;s="bypass"===n.status?`, but you can bypass ${1===i?"it":"them"}. Proceed with caution!`:".";const o="rules";return Ae.createElement("div",{className:"repo-rules-failure-list-component"},Ae.createElement("p",null,r," fails ",i," rule",i>1?"s":"",s," ",Ae.createElement(pD,{repository:e,branch:t},"View all rulesets for this branch.")),n.failed.length>0&&Ae.createElement("div",{className:"repo-rule-list"},Ae.createElement("strong",null,"Failed ",o,":"),this.renderRuleFailureList(n.failed)),n.bypassed.length>0&&Ae.createElement("div",{className:"repo-rule-list"},Ae.createElement("strong",null,"Bypassed ",o,":"),this.renderRuleFailureList(n.bypassed)))}renderRuleFailureList(e){return Ae.createElement("ul",null,e.map((e=>Ae.createElement("li",{key:`${e.description}-${e.rulesetId}`},Ae.createElement(dD,{repository:this.props.repository,rulesetId:e.rulesetId},e.description)))))}}class fD extends xe().Component{avatarButtonRef=null;warningBadgeRef=xe().createRef();constructor(e){super(e),this.state={isPopoverOpen:!1,accountEmail:this.props.preferredAccountEmail,isGitConfigLocal:!1},this.determineGitConfigLocation()}componentDidUpdate(e){this.props.user?.name===e.user?.name&&this.props.user?.email===e.user?.email||this.determineGitConfigLocation()}async determineGitConfigLocation(){const e=await this.isGitConfigLocal();this.setState({isGitConfigLocal:e})}isGitConfigLocal=async()=>{const{repository:e}=this.props,t=await Bd(e,"user.name",!0),n=await Bd(e,"user.email",!0);return null!==t||null!==n};onButtonRef=e=>{this.avatarButtonRef=e};render(){const{warningType:e,user:t}=this.props;let n="";switch(e){case"none":n="View commit author information";break;case"misattribution":n="Commit may be misattributed. View warning.";break;case"disallowedEmail":n="Email address is disallowed. View warning."}const r=ri()("commit-message-avatar-component",{misattributed:"none"!==e});return xe().createElement("div",{className:r},xe().createElement(mi,{className:"avatar-button",ariaLabel:n,onButtonRef:this.onButtonRef,onClick:this.onAvatarClick},"none"!==e&&this.renderWarningBadge(),xe().createElement(tD,{accounts:this.props.accounts,user:t,title:null})),this.state.isPopoverOpen&&this.renderPopover())}renderWarningBadge(){const{warningType:e,emailRuleFailures:t}=this.props,n="disallowedEmail"===e&&"fail"===t?.status,r=ri()("warning-badge",{error:n,warning:!n}),i=n?Pc:vi;return xe().createElement("div",{className:r,ref:this.warningBadgeRef},xe().createElement(yi,{symbol:i}))}openPopover=()=>{this.setState((e=>!1===e.isPopoverOpen?{isPopoverOpen:!0}:null))};closePopover=()=>{this.setState((e=>e.isPopoverOpen?{isPopoverOpen:!1}:null))};onAvatarClick=e=>{e.preventDefault(),this.state.isPopoverOpen?this.closePopover():this.openPopover()};renderGitConfigPopover(){const{user:e}=this.props,{isGitConfigLocal:t}=this.state,n=t?"local":"global",r=t?"for your repository":"",i=t?"存储库设置":"git options";return xe().createElement(xe().Fragment,null,xe().createElement("p",null,e&&e.name&&`Email: ${e.email}`),xe().createElement("p",null,"You can update your ",n," git configuration ",r," in your ",i,"."),!t&&xe().createElement("p",{className:"secondary-text"},"You can also set an email local to this repository from the"," ",xe().createElement(Hx,{onClick:this.onRepositorySettingsClick},"存储库设置"),"."),xe().createElement(GT,{className:"button-row"},xe().createElement(uD,{okButtonText:"Open git settings",onOkButtonClick:this.onOpenGitSettings,onCancelButtonClick:this.onIgnoreClick})))}renderWarningPopover(){const{warningType:e,emailRuleFailures:t}=this.props,n=xe().createElement(xe().Fragment,null,"Git 全局配置文件中的邮箱 (",xe().createElement("span",{className:"git-email"},this.props.email),")"),r=xe().createElement(xe().Fragment,null,xe().createElement(GT,null,xe().createElement(Wx,{label:"Your Account Emails",value:this.state.accountEmail,onChange:this.onSelectedGitHubEmailChange},this.props.accountEmails.map((e=>xe().createElement("option",{key:e,value:e},e))))),xe().createElement(GT,null,xe().createElement("div",{className:"secondary-text"},"你也可以从该代码库中选择一个与之关联的邮箱"," ",xe().createElement(Hx,{onClick:this.onRepositorySettingsClick},"存储库设置"),".")),xe().createElement(GT,{className:"button-row"},xe().createElement(mi,{onClick:this.onIgnoreClick,type:"button"},"忽略"),xe().createElement(mi,{onClick:this.onUpdateEmailClick,type:"submit"},"更新邮箱")));if("misattribution"===e){const e=this.props.isEnterpriseAccount?" Enterprise":"",t=this.props.user&&this.props.user.name?` for ${this.props.user.name}`:"";return xe().createElement(xe().Fragment,null,xe().createElement(GT,null,xe().createElement("div",null,n," 与你的 GitHub 邮箱地址不匹配",e," ","account",t,"."," ",xe().createElement(Hx,{ariaLabel:"Learn more about commit attribution",uri:"https://docs.github.com/en/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user"},"了解更多"))),r)}if("disallowedEmail"===e&&t&&this.props.branch&&this.props.repository.gitHubRepository)return xe().createElement(xe().Fragment,null,xe().createElement(mD,{repository:this.props.repository.gitHubRepository,branch:this.props.branch,failures:t,leadingText:n}),r)}getCommittingAsTitle(){const{user:e}=this.props;if(void 0===e)return"Unknown user";const{name:t,email:n}=e;return t?xe().createElement(xe().Fragment,null,"提交者为 ",xe().createElement("strong",null,t)):xe().createElement(xe().Fragment,null,"Committing with ",n)}renderPopover(){const{warningType:e}=this.props;let t="";switch(this.props.warningType){case"misattribution":t="此次提交有误";break;case"disallowedEmail":t="This email address is disallowed";break;default:t=this.getCommittingAsTitle()}return xe().createElement(wx,{anchor:"none"!==e?this.warningBadgeRef.current:this.avatarButtonRef,anchorPosition:mx.RightBottom,decoration:gx.Balloon,onClickOutside:this.closePopover,ariaLabelledby:"commit-avatar-popover-header"},xe().createElement("h3",{id:"commit-avatar-popover-header"},t),"none"!==e?this.renderWarningPopover():this.renderGitConfigPopover())}onRepositorySettingsClick=()=>{this.closePopover(),this.props.onOpenRepositorySettings()};onOpenGitSettings=()=>{this.closePopover(),this.state.isGitConfigLocal?this.props.onOpenRepositorySettings():this.props.onOpenGitSettings()};onIgnoreClick=e=>{e.preventDefault(),this.closePopover()};onUpdateEmailClick=async e=>{e.preventDefault(),this.closePopover(),this.props.email!==this.state.accountEmail&&this.props.onUpdateEmail(this.state.accountEmail)};onSelectedGitHubEmailChange=e=>{const t=e.currentTarget.value;t&&this.setState({accountEmail:t})}}var gD;!function(e){e[e.Tabs=0]="Tabs",e[e.Switch=1]="Switch",e[e.Vertical=2]="Vertical"}(gD||(gD={}));class yD extends Ae.Component{onClick=e=>{this.props.onClick(this.props.index)};onKeyDown=e=>{const{type:t,index:n}=this.props,r=t===gD.Vertical?"ArrowUp":"ArrowLeft",i=t===gD.Vertical?"ArrowDown":"ArrowRight";e.key===r?(this.props.onSelectAdjacent("previous",n),e.preventDefault()):e.key===i&&(this.props.onSelectAdjacent("next",n),e.preventDefault())};onButtonRef=e=>{this.props.onButtonRef(this.props.index,e)};onMouseEnter=()=>{this.props.onMouseEnter(this.props.index)};render(){const e=this.props.selected,t=ri()("tab-bar-item",{selected:e});return Ae.createElement("button",{ref:this.onButtonRef,className:t,onClick:this.onClick,role:"tab","aria-selected":e,tabIndex:e?void 0:-1,onKeyDown:this.onKeyDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.props.onMouseLeave,type:"button"},this.props.children)}}class wD extends Ae.Component{tabRefsByIndex=new Map;mouseOverTimeoutId=null;render(){const{type:e}=this.props;return Ae.createElement("div",{className:"tab-bar "+(e===gD.Switch?"switch":e===gD.Vertical?"vertical":"tabs"),role:"tablist"},this.renderItems())}onSelectAdjacentTab=(e,t)=>{const n=Ae.Children.toArray(this.props.children);if(0===n.length)return;const r=(t+("next"===e?1:-1)+n.length)%n.length,i=this.tabRefsByIndex.get(r);i&&i.focus(),this.props.onTabClicked(r)};onTabClicked=e=>{this.props.onTabClicked(e)};onTabRef=(e,t)=>{t?this.tabRefsByIndex.set(e,t):this.tabRefsByIndex.delete(e)};onMouseEnter=e=>{e!==this.props.selectedIndex&&bp.isDragInProgress&&void 0!==this.props.allowDragOverSwitching&&this.props.allowDragOverSwitching&&(this.mouseOverTimeoutId=window.setTimeout((()=>{this.onTabClicked(e)}),500))};onMouseLeave=()=>{null!==this.mouseOverTimeoutId&&window.clearTimeout(this.mouseOverTimeoutId)};renderItems(){return Ae.Children.toArray(this.props.children).map(((e,t)=>{const n=t===this.props.selectedIndex;return Ae.createElement(yD,{key:t,selected:n,index:t,onClick:this.onTabClicked,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onSelectAdjacent:this.onSelectAdjacentTab,onButtonRef:this.onTabRef,type:this.props.type},e)}))}}class bD extends Ae.Component{render(){const e=this.props.remote;return Ae.createElement(nD,null,Ae.createElement("p",null,"远程存储库 (",e.name,")"),Ae.createElement(VT,{placeholder:"远程 URL",value:e.url,onValueChanged:this.props.onRemoteUrlChanged}))}}class vD extends Ae.Component{onChange=e=>{this.props.onChange&&this.props.onChange(e),this.props.onValueChanged&&!e.defaultPrevented&&this.props.onValueChanged(e.currentTarget.value)};onContextMenu=e=>{e.preventDefault(),hh([{role:"editMenu"}])};render(){const e=ri()("text-area-component",this.props.labelClassName);return Ae.createElement("label",{className:e},this.props.label,Ae.createElement("textarea",{autoFocus:this.props.autoFocus,className:this.props.textareaClassName,disabled:this.props.disabled,rows:this.props.rows||3,placeholder:this.props.placeholder,value:this.props.value,onChange:this.onChange,onKeyDown:this.props.onKeyDown,ref:this.props.onTextAreaRef,onContextMenu:this.onContextMenu}))}}class CD extends Ae.Component{render(){return Ae.createElement("em",{className:"ref-component"},this.props.children)}}class SD extends Ae.Component{render(){return Ae.createElement(nD,null,Ae.createElement("p",null,"编辑 ",Ae.createElement(CD,null,".gitignore"),". 文件该文件指定Git应该忽略的故意未跟踪的文件Git已经跟踪的文件不受影响."," ",Ae.createElement(Hx,{onClick:this.props.onShowExamples},"Learn more about gitignore files")),Ae.createElement(vD,{placeholder:"忽略文件",value:this.props.text||"",onValueChanged:this.props.onIgnoreTextChanged,textareaClassName:"gitignore"}))}}class ED extends Ae.Component{render(){const e=ri()("action-button","button-component-primary",this.props.buttonClassName);return Ae.createElement(GT,{className:"call-to-action"},this.props.children,Ae.createElement(mi,{className:e,onClick:this.onClick},this.props.actionTitle))}onClick=e=>{e.preventDefault(),this.props.onAction()}}class kD extends Ae.Component{render(){return Ae.createElement(nD,null,Ae.createElement(ED,{actionTitle:"发布",onAction:this.props.onPublish},Ae.createElement("div",{className:"no-remote-publish-message"},"将存储库发布到Github。需要帮助"," ",Ae.createElement(Hx,{uri:"https://help.github.com/articles/about-remote-repositories/"},"Learn more 关于远程存储库。"))))}}function RD(e){const t=e.forkContributionTarget===Br.Self?e.repository.gitHubRepository:e.repository.gitHubRepository.parent;return Ae.createElement("ul",{className:"fork-settings-description"},Ae.createElement("li",null,"针对的拉取请求目标 ",Ae.createElement("strong",null,t.fullName)," ","将显示在拉取请求列表中."),Ae.createElement("li",null,"Issues will be created in ",Ae.createElement("strong",null,t.fullName),"."),Ae.createElement("li",null,'"在Github上查看" will open ',Ae.createElement("strong",null,t.fullName)," ","in the browser."),Ae.createElement("li",null,"New branches will be based on"," ",Ae.createElement("strong",null,t.fullName),"'s default branch."),Ae.createElement("li",null,"Autocompletion of user and issues will be based on"," ",Ae.createElement("strong",null,t.fullName),"."))}class TD extends Ae.Component{constructor(e){super(e),this.state={inputId:si(`RadioButton_${this.props.value}`)}}componentWillUnmount(){oi(this.state.inputId)}render(){return Ae.createElement("div",{className:"radio-button-component"},Ae.createElement("input",{type:"radio",id:this.state.inputId,value:this.props.value,checked:this.props.checked,onChange:this.onSelected,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus}),Ae.createElement("label",{htmlFor:this.state.inputId},this.props.label??this.props.children))}onSelected=e=>{this.props.onSelected(this.props.value,e)}}class AD extends Ae.Component{onSelectionChanged=e=>{this.props.onSelectionChanged(e)};renderRadioButtons(){const{radioButtonKeys:e,selectedKey:t}=this.props;return e.map((e=>{const n=t===e;return Ae.createElement(TD,{key:e,checked:n,value:e,onSelected:this.onSelectionChanged,tabIndex:n?0:-1},this.props.renderRadioButtonLabelContents(e))}))}render(){return Ae.createElement("div",{role:"radiogroup","aria-labelledby":this.props.ariaLabelledBy,className:this.props.className},this.renderRadioButtons())}}class xD extends Ae.Component{renderForkOptionsLabel=e=>{switch(e){case Br.Parent:return"To contribute to the parent repository";case Br.Self:return"For my own purposes";default:return ct(0,`Unknown fork contribution target: ${e}`)}};render(){const e=[Br.Parent,Br.Self],t=e.find((e=>e===this.props.forkContributionTarget))??Br.Parent;return Ae.createElement(nD,null,Ae.createElement("h2",{id:"fork-usage-heading"},"使用这个 fork…"),Ae.createElement(AD,{ariaLabelledBy:"fork-usage-heading",selectedKey:t,radioButtonKeys:e,onSelectionChanged:this.onForkContributionTargetChanged,renderRadioButtonLabelContents:this.renderForkOptionsLabel}),Ae.createElement(RD,{repository:this.props.repository,forkContributionTarget:this.props.forkContributionTarget}))}onForkContributionTargetChanged=e=>{this.props.onForkContributionTargetChanged(e)}}class DD extends Ae.Component{buildMessage(e){const t=e?Ae.createElement("span",{className:"green-circle"},Ae.createElement(yi,{className:"check-icon",symbol:Xi})):Ae.createElement("span",{className:"warning-icon"},"⚠️"),n=e?null:Ae.createElement(Hx,{ariaLabel:"Learn more about commit attribution",uri:"https://docs.github.com/en/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user"},"学习更多");return Ae.createElement(Ae.Fragment,null,t,this.buildScreenReaderMessage(e),n)}buildScreenReaderMessage(e){const t=e?"":"Your commits will be wrongly attributed. ";return`This email address ${e?"matches":"does not match"} ${this.getAccountTypeDescription()}. ${t}`}render(){const{accounts:e,email:t}=this.props;if(0===e.length||0===t.trim().length)return null;const n=e.some((e=>fb(e,t)));return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"git-email-not-found-warning"},this.buildMessage(n)),Ae.createElement(qT,{id:"git-email-not-found-warning-for-screen-readers",trackedUserInput:this.props.email,message:this.buildScreenReaderMessage(n)}))}getAccountTypeDescription(){return 1===this.props.accounts.length?`your ${this.props.accounts[0].endpoint===cr()?"GitHub":"GitHub Enterprise"} account`:"either of your GitHub.com nor GitHub Enterprise accounts"}}const _D="Other";class MD extends Ae.Component{emailInputRef=Ae.createRef();constructor(e){super(e),this.state={emailIsOther:this.accountEmails.length>0&&!this.accountEmails.includes(this.props.email)&&!this.props.isLoadingGitConfig}}componentDidUpdate(e,t){const n=null!==this.emailInputRef.current&&this.emailInputRef.current.isFocused;if(e.email===this.props.email||n||this.setState({emailIsOther:this.accountEmails.length>0&&!this.accountEmails.includes(this.props.email)&&!this.props.isLoadingGitConfig}),this.state.emailIsOther!==t.emailIsOther&&!0===this.state.emailIsOther&&null!==this.emailInputRef.current){const e=this.emailInputRef.current;e.focus(),e.selectAll()}}render(){return Ae.createElement("div",null,Ae.createElement(GT,null,Ae.createElement(VT,{label: "名称",value:this.props.name,disabled:this.props.disabled,onValueChanged:this.props.onNameChanged})),this.renderEmailDropdown(),this.renderEmailTextBox(),this.state.emailIsOther?Ae.createElement(DD,{accounts:this.accounts,email:this.props.email}):null)}renderEmailDropdown(){if(0===this.accountEmails.length)return null;const e=this.props.dotComAccount?.emails.map((e=>e.email))??[],t=this.props.enterpriseAccount?.emails.map((e=>e.email))??[],n=null!==this.props.dotComAccount&&null!==this.props.enterpriseAccount,r=n?"(GitHub.com)":"",i=n?"(GitHub Enterprise)":"";return Ae.createElement(GT,null,Ae.createElement(Wx,{label:"邮箱",value:this.state.emailIsOther?_D:this.props.email,disabled:this.props.disabled,onChange:this.onEmailSelectChange},e.map((e=>Ae.createElement("option",{key:e,value:e},e," ",r))),t.map((e=>Ae.createElement("option",{key:e,value:e},e," ",i))),Ae.createElement("option",{key:_D,value:_D},_D)))}renderEmailTextBox(){if(!1===this.state.emailIsOther&&this.accountEmails.length>0)return null;const e=this.state.emailIsOther?void 0:"Email",t=e?void 0:"Email";return Ae.createElement(GT,null,Ae.createElement(VT,{ref:this.emailInputRef,label:e,type:"email",value:this.props.email,disabled:this.props.disabled,onValueChanged:this.props.onEmailChanged,ariaLabel:t,ariaDescribedBy:"git-email-not-found-warning-for-screen-readers",ariaControls:"git-email-not-found-warning-for-screen-readers"}))}get accounts(){const e=[];return this.props.dotComAccount&&e.push(this.props.dotComAccount),this.props.enterpriseAccount&&e.push(this.props.enterpriseAccount),e}get accountEmails(){return this.accounts.reduce(((e,t)=>e.concat(t.emails.map((e=>e.email)))),[])}onEmailSelectChange=e=>{const t=e.currentTarget.value;this.setState({emailIsOther:t===_D}),t!==_D&&this.props.onEmailChanged?.(t)}}var PD;!function(e){e.Global="Global",e.Local="Local"}(PD||(PD={}));class ID extends Ae.Component{onGitConfigLocationChanged=e=>{this.props.onGitConfigLocationChanged(e)};renderConfigOptionLabel=e=>{switch(e){case PD.Global:return"使用全局Git配置";case PD.Local:return"使用本地Git配置";default:return ct(0,`Unknown git config location: ${e}`)}};render(){const e=null!==this.props.account&&this.props.account.endpoint===cr(),t=e?null:this.props.account,n=e?this.props.account:null,r=[PD.Global,PD.Local],i=r.find((e=>e===this.props.gitConfigLocation))??PD.Global;return Ae.createElement(nD,null,Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",{id:"git-config-heading"},"对于此仓库,我想"),Ae.createElement(GT,null,Ae.createElement(AD,{ariaLabelledBy:"git-config-heading",selectedKey:i,radioButtonKeys:r,onSelectionChanged:this.onGitConfigLocationChanged,renderRadioButtonLabelContents:this.renderConfigOptionLabel})),Ae.createElement(MD,{email:this.props.gitConfigLocation===PD.Global?this.props.globalEmail:this.props.email,name:this.props.gitConfigLocation===PD.Global?this.props.globalName:this.props.name,enterpriseAccount:t,dotComAccount:n,disabled:this.props.gitConfigLocation===PD.Global,onEmailChanged:this.props.onEmailChanged,onNameChanged:this.props.onNameChanged,isLoadingGitConfig:this.props.isLoadingGitConfig})))}}const OD=/^[\x00-\x20.,:;<>"\\']+$/;function ND(e){return!OD.test(e)}const LD="Name is invalid, it consists only of disallowed characters.";var BD,FD;!function(e){e[e.Remote=0]="Remote",e[e.IgnoredFiles=1]="IgnoredFiles",e[e.GitConfig=2]="GitConfig",e[e.ForkSettings=3]="ForkSettings"}(BD||(BD={}));class HD extends Ae.Component{constructor(e){super(e),this.state={selectedTab:this.props.initialSelectedTab||BD.Remote,remote:e.remote,ignoreText:null,ignoreTextHasChanged:!1,disabled:!1,forkContributionTarget:zr(e.repository),saveDisabled:!1,gitConfigLocation:PD.Global,committerName:"",committerEmail:"",globalCommitterName:"",globalCommitterEmail:"",initialGitConfigLocation:PD.Global,initialCommitterName:null,initialCommitterEmail:null,isLoadingGitConfig:!0}}async componentWillMount(){try{const e=await My(this.props.repository);this.setState({ignoreText:e})}catch(e){log.error(`RepositorySettings: unable to read root .gitignore file for ${this.props.repository.path}`,e),this.setState({errors:[`Could not read root .gitignore: ${e}`]})}const e=await Bd(this.props.repository,"user.name",!0),t=await Bd(this.props.repository,"user.email",!0),n=await Fd("user.name")||"",r=await Fd("user.email")||"",i=null===e&&null===t?PD.Global:PD.Local;let s=n,o=r;i===PD.Local&&(s=e??"",o=t??""),this.setState({gitConfigLocation:i,committerName:s,committerEmail:o,globalCommitterName:n,globalCommitterEmail:r,initialGitConfigLocation:i,initialCommitterName:e,initialCommitterEmail:t,isLoadingGitConfig:!1})}renderErrors(){const e=this.state.errors;return e&&e.length?e.map(((e,t)=>{const n=`err-${t}`;return Ae.createElement(lD,{key:n},e)})):null}render(){const e=Wr(this.props.repository);return Ae.createElement(aD,{id:"repository-settings",title:"存储库设置",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,disabled:this.state.disabled},this.renderErrors(),Ae.createElement("div",{className:"tab-container"},Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedTab,type:gD.Vertical},Ae.createElement("span",null,Ae.createElement(yi,{className:"icon",symbol:sc}),"远程"),Ae.createElement("span",null,Ae.createElement(yi,{className:"icon",symbol:ko}),"忽略文件"),Ae.createElement("span",null,Ae.createElement(yi,{className:"icon",symbol:Yo}),"Git 配置"),e&&Ae.createElement("span",null,Ae.createElement(yi,{className:"icon",symbol:Gl}),"分支行为")),Ae.createElement("div",{className:"active-tab"},this.renderActiveTab())),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"保存",okButtonDisabled:this.state.saveDisabled})))}renderActiveTab(){const e=this.state.selectedTab;switch(e){case BD.Remote:{const e=this.state.remote;return e?Ae.createElement(bD,{remote:e,onRemoteUrlChanged:this.onRemoteUrlChanged}):Ae.createElement(kD,{onPublish:this.onPublish})}case BD.IgnoredFiles:return Ae.createElement(SD,{text:this.state.ignoreText,onIgnoreTextChanged:this.onIgnoreTextChanged,onShowExamples:this.onShowGitIgnoreExamples});case BD.ForkSettings:return Wr(this.props.repository)?Ae.createElement(xD,{forkContributionTarget:this.state.forkContributionTarget,repository:this.props.repository,onForkContributionTargetChanged:this.onForkContributionTargetChanged}):null;case BD.GitConfig:return Ae.createElement(ID,{account:this.props.repositoryAccount,gitConfigLocation:this.state.gitConfigLocation,onGitConfigLocationChanged:this.onGitConfigLocationChanged,name:this.state.committerName,email:this.state.committerEmail,globalName:this.state.globalCommitterName,globalEmail:this.state.globalCommitterEmail,onNameChanged:this.onCommitterNameChanged,onEmailChanged:this.onCommitterEmailChanged,isLoadingGitConfig:this.state.isLoadingGitConfig});default:return ct(0,`Unknown tab type: ${e}`)}}onPublish=()=>{this.props.dispatcher.showPopup({type:dh.PublishRepository,repository:this.props.repository})};onShowGitIgnoreExamples=()=>{this.props.dispatcher.openInBrowser("https://git-scm.com/docs/gitignore")};onSubmit=async()=>{this.setState({disabled:!0,errors:void 0});const e=new Array;if(this.state.remote&&this.props.remote){const t=this.state.remote.url.trim();if(t!==this.props.remote.url)try{await this.props.dispatcher.setRemoteURL(this.props.repository,this.props.remote.name,t)}catch(t){log.error(`RepositorySettings: unable to set remote URL at ${this.props.repository.path}`,t),e.push(`Failed setting the remote URL: ${t}`)}}if(this.state.ignoreTextHasChanged&&null!==this.state.ignoreText)try{await this.props.dispatcher.saveGitIgnore(this.props.repository,this.state.ignoreText)}catch(t){log.error(`RepositorySettings: unable to save gitignore at ${this.props.repository.path}`,t),e.push(`Failed saving the .gitignore file: ${t}`)}this.state.forkContributionTarget!==this.props.repository.workflowPreferences.forkContributionTarget&&await this.props.dispatcher.updateRepositoryWorkflowPreferences(this.props.repository,{...this.props.repository.workflowPreferences,forkContributionTarget:this.state.forkContributionTarget});let t=!1;this.state.gitConfigLocation!==this.state.initialGitConfigLocation&&this.state.gitConfigLocation===PD.Global?(await Gd(this.props.repository,"user.name"),await Gd(this.props.repository,"user.email"),t=!0):this.state.gitConfigLocation===PD.Local&&(this.state.committerName!==this.state.initialCommitterName&&(await $d(this.props.repository,"user.name",this.state.committerName),t=!0),this.state.committerEmail!==this.state.initialCommitterEmail&&(await $d(this.props.repository,"user.email",this.state.committerEmail),t=!0)),t&&this.props.dispatcher.refreshAuthor(this.props.repository),e.length?this.setState({disabled:!1,errors:e}):this.props.onDismissed()};onRemoteUrlChanged=e=>{const t=this.props.remote;if(!t)return;const n={...t,url:e};this.setState({remote:n})};onIgnoreTextChanged=e=>{this.setState({ignoreText:e,ignoreTextHasChanged:!0})};onTabClicked=e=>{this.setState({selectedTab:e})};onForkContributionTargetChanged=e=>{this.setState({forkContributionTarget:e})};onGitConfigLocationChanged=e=>{this.setState({gitConfigLocation:e})};onCommitterNameChanged=e=>{const t=new Array;ND(e)?this.setState({saveDisabled:!1}):(this.setState({saveDisabled:!0}),t.push(LD)),this.setState({committerName:e,errors:t})};onCommitterEmailChanged=e=>{this.setState({committerEmail:e})}}!function(e){e[e.Text=0]="Text",e[e.Emoji=1]="Emoji",e[e.Link=2]="Link"}(FD||(FD={}));class UD{emoji;repository=null;_results=new Array;_currentString="";constructor(e,t){this.emoji=e,t&&$r(t)&&(this.repository=Gr(t))}reset(){this._results=new Array,this._currentString=""}append(e){this._currentString+=e}flush(){this._currentString.length&&(this._results.push({kind:FD.Text,text:this._currentString}),this._currentString="")}getLastProcessedChar=()=>this._currentString?.at(-1);scanForEndOfWord(e,t){const n=e.indexOf("\n",t+1),r=e.indexOf(" ",t+1);return n>-1&&r>-1?Math.min(n,r):n>-1?n:r>-1?r:e.length}scanForEmoji(e,t){const n=this.scanForEndOfWord(e,t),r=e.slice(t,n);if(!/^:.*?:$/.test(r))return null;const i=this.emoji.get(r);return i?(this.flush(),this._results.push({kind:FD.Emoji,text:r,path:i}),{nextIndex:n}):null}scanForIssue(e,t,n){let r=this.scanForEndOfWord(e,t),i=e.slice(t,r);if(i.endsWith(")")&&(r-=1,i=e.slice(t,r)),i.endsWith(".")&&(r-=1,i=e.slice(t,r)),i.endsWith(",")&&(r-=1,i=e.slice(t,r)),!/^#\d+$/.test(i))return null;this.flush();const s=parseInt(i.substring(1),10);if(isNaN(s))return null;const o=`${n.htmlURL}/issues/${s}`;return this._results.push({kind:FD.Link,text:i,url:o}),{nextIndex:r}}scanForMention(e,t,n){const r=this.getLastProcessedChar();if(r&&!/\s/.test(r))return null;let i=this.scanForEndOfWord(e,t),s=e.slice(t,i);if((s.endsWith("!")||s.endsWith(","))&&(i-=1,s=e.slice(t,i)),!/^@[a-zA-Z0-9\-]+$/.test(s))return null;this.flush();const o=s.substring(1),a=`${ar(n.endpoint)}/${o}`;return this._results.push({kind:FD.Link,text:s,url:a}),{nextIndex:i}}scanForHyperlink(e,t,n){const r=this.getLastProcessedChar();if(r&&!/\s/.test(r))return null;const i=this.scanForEndOfWord(e,t),s=e.slice(t,i);if(!/^https?:\/\/.+/.test(s))return null;if(this.flush(),n&&n.htmlURL){const e=n.htmlURL.toLowerCase();if(s.toLowerCase().startsWith(`${e}/issues/`)){const e=/\/issues\/(\d+)/.exec(s);if(e){const t=e[1];return this._results.push({kind:FD.Link,url:s,text:`#${t}`}),{nextIndex:i}}}}return this._results.push({kind:FD.Link,url:s,text:s}),{nextIndex:i}}inspectAndMove(e,t,n){const r=n();return r?r.nextIndex:(this.append(e),t+1)}tokenizeNonGitHubRepository(e){let t=0;for(;t<e.length;){const n=e[t];switch(n){case":":t=this.inspectAndMove(n,t,(()=>this.scanForEmoji(e,t)));break;case"h":t=this.inspectAndMove(n,t,(()=>this.scanForHyperlink(e,t)));break;default:this.append(n),t++}}return this.flush(),this._results}tokenizeGitHubRepository(e,t){let n=0;for(;n<e.length;){const r=e[n];switch(r){case":":n=this.inspectAndMove(r,n,(()=>this.scanForEmoji(e,n)));break;case"#":n=this.inspectAndMove(r,n,(()=>this.scanForIssue(e,n,t)));break;case"@":n=this.inspectAndMove(r,n,(()=>this.scanForMention(e,n,t)));break;case"h":n=this.inspectAndMove(r,n,(()=>this.scanForHyperlink(e,n,t)));break;default:this.append(r),n++}}return this.flush(),this._results}tokenize(e){return this.reset(),this.repository?this.tokenizeGitHubRepository(e,this.repository):this.tokenizeNonGitHubRepository(e)}}function ZD(){return $D("…")}function $D(e){return{kind:FD.Text,text:e}}function WD(e,t){return{kind:FD.Link,text:e,url:t}}const qD=e=>0===e.length||!/\S/.test(e);class VD extends Ae.Component{buttonRef=null;buttonRefObservable=di();shouldForceAriaLiveMessage=!1;constructor(e){super(e),this.state={tooltipVisible:!1},this.buttonRefObservable.subscribe(this.onButtonRef)}onToggle=()=>{this.shouldForceAriaLiveMessage=!this.shouldForceAriaLiveMessage};onTooltipVisible=()=>{this.setState({tooltipVisible:!0})};onTooltipHidden=()=>{this.setState({tooltipVisible:!1})};onButtonRef=e=>{if(null===e){const e=this.buttonRef;e?.removeEventListener("tooltip-shown",this.onTooltipVisible),e?.removeEventListener("tooltip-hidden",this.onTooltipHidden)}else e.addEventListener("tooltip-shown",this.onTooltipVisible),e.addEventListener("tooltip-hidden",this.onTooltipHidden);this.buttonRef=e};render(){const{tooltip:e,children:t,className:n,tooltipClassName:r,ariaLabel:i,ariaLiveMessage:s,...o}=this.props,a=ri()("toggletip",n);return Ae.createElement("button",{ref:this.buttonRefObservable,className:a,"aria-label":i,"aria-haspopup":"dialog",type:"button",onClick:this.onToggle},Ae.createElement(Ae.Fragment,null,void 0!==e&&Ae.createElement(ci,{target:this.buttonRefObservable,className:r,isToggleTip:!0,...o},e),t,this.state.tooltipVisible&&Ae.createElement(qT,{message:s,trackedUserInput:this.shouldForceAriaLiveMessage})))}}const GD={w:18,h:13,p:["M14 6V4.25a.75.75 0 0 1 1.5 0V6h1.75a.75.75 0 1 1 0 1.5H15.5v1.75a.75.75 0 0 1-1.5 0V7.5h-1.75a.75.75 0 1 1 0-1.5H14zM8.5 4a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm.063 3.064a3.995 3.995 0 0 0 1.2-4.429A3.996 3.996 0 0 0 8.298.725a4.01 4.01 0 0 0-6.064 1.91 3.987 3.987 0 0 0 1.2 4.43A5.988 5.988 0 0 0 0 12.2a.748.748 0 0 0 .716.766.751.751 0 0 0 .784-.697 4.49 4.49 0 0 1 1.39-3.04 4.51 4.51 0 0 1 6.218 0 4.49 4.49 0 0 1 1.39 3.04.748.748 0 0 0 .786.73.75.75 0 0 0 .714-.8 5.989 5.989 0 0 0-3.435-5.136z"]};function zD(e){return e.filter((e=>!(e instanceof Ax)))}function jD(e){for(const t of e)if(t instanceof Ax)return t;return null}class KD extends Ae.Component{descriptionComponent=null;summaryTextInput=null;descriptionTextArea=null;descriptionTextAreaScrollDebounceId=null;coAuthorInputRef=Ae.createRef();COMMIT_MSG_ERROR_BTN_ID="commit-message-failure-hint";constructor(e){super(e);const{commitMessage:t}=this.props;this.state={summary:t?t.summary:"",description:t?t.description:null,commitMessageAutocompletionProviders:zD(e.autocompletionProviders),coAuthorAutocompletionProvider:jD(e.autocompletionProviders),descriptionObscured:!1,isCommittingStatusMessage:"",repoRulesEnabled:!1,isRuleFailurePopoverOpen:!1,repoRuleCommitMessageFailures:new sC,repoRuleCommitAuthorFailures:new sC,repoRuleBranchNameFailures:new sC}}componentWillUnmount(){const{props:e,state:t}=this;e.onPersistCommitMessage?.(function(e,...t){return Object.fromEntries(t.filter((t=>t in e)).map((t=>[t,e[t]])))}(t,"summary","description")),window.removeEventListener("keydown",this.onKeyDown)}async componentDidMount(){window.addEventListener("keydown",this.onKeyDown),await this.updateRepoRuleFailures(void 0,void 0,!0)}componentWillReceiveProps(e){const{commitMessage:t}=e;t&&t!==this.props.commitMessage&&(""===this.state.summary&&!this.state.description||null===this.props.commitToAmend&&e.commitToAmend)&&this.setState({summary:t.summary,description:t.description})}async componentDidUpdate(e,t){this.props.autocompletionProviders!==e.autocompletionProviders&&this.setState({commitMessageAutocompletionProviders:zD(this.props.autocompletionProviders),coAuthorAutocompletionProvider:jD(this.props.autocompletionProviders)}),this.props.focusCommitMessage&&this.props.focusCommitMessage!==e.focusCommitMessage?this.focusSummary():!1===e.showCoAuthoredBy&&this.isCoAuthorInputVisible&&e.repository.id===this.props.repository.id&&!!e.commitToAmend==!!this.props.commitToAmend&&this.coAuthorInputRef.current?.focus(),e.isCommitting!==this.props.isCommitting&&this.props.isCommitting&&""===this.state.isCommittingStatusMessage&&this.setState({isCommittingStatusMessage:this.getButtonTitle()}),e.mostRecentLocalCommit?.sha!==this.props.mostRecentLocalCommit?.sha&&null!==this.props.mostRecentLocalCommit&&this.setState({isCommittingStatusMessage:`Committed Just now - ${this.props.mostRecentLocalCommit.summary} (Sha: ${this.props.mostRecentLocalCommit.shortSha})`}),await this.updateRepoRuleFailures(e,t)}async updateRepoRuleFailures(e,t,n=!1){let r=this.state.repoRulesEnabled;(n||e?.repository!==this.props.repository||e?.repositoryAccount!==this.props.repositoryAccount)&&(r=lC(this.props.repositoryAccount,this.props.repository),this.setState({repoRulesEnabled:r})),r&&(await this.updateRepoRulesCommitMessageFailures(e,t,n),this.updateRepoRulesCommitAuthorFailures(e,n),this.updateRepoRulesBranchNameFailures(e,n))}async updateRepoRulesCommitMessageFailures(e,t,n){if(n||t?.summary!==this.state.summary||t?.description!==this.state.description||e?.coAuthors!==this.props.coAuthors||e?.commitToAmend!==this.props.commitToAmend||e?.repository!==this.props.repository||e?.repoRulesInfo.commitMessagePatterns!==this.props.repoRulesInfo.commitMessagePatterns){let e=this.state.summary;e||this.state.description||(e=this.summaryOrPlaceholder);const t={summary:e,description:this.state.description,trailers:this.getCoAuthorTrailers(),amend:null!==this.props.commitToAmend},n=await Im(this.props.repository,t),r=this.props.repoRulesInfo.commitMessagePatterns.getFailedRules(n);this.setState({repoRuleCommitMessageFailures:r})}}updateRepoRulesCommitAuthorFailures(e,t){if(t||e?.commitAuthor?.email!==this.props.commitAuthor?.email||e?.repoRulesInfo.commitAuthorEmailPatterns!==this.props.repoRulesInfo.commitAuthorEmailPatterns){const e=this.props.commitAuthor?.email;let t;t=e?this.props.repoRulesInfo.commitAuthorEmailPatterns.getFailedRules(e):new sC,this.setState({repoRuleCommitAuthorFailures:t})}}updateRepoRulesBranchNameFailures(e,t){if(t||e?.branch!==this.props.branch||e?.repoRulesInfo.branchNamePatterns!==this.props.repoRulesInfo.branchNamePatterns){const e=this.props.branch;let t;t=e?this.props.repoRulesInfo.branchNamePatterns.getFailedRules(e):new sC,this.setState({repoRuleBranchNameFailures:t})}}clearCommitMessage(){this.setState({summary:"",description:null})}focusSummary(){null!==this.summaryTextInput&&(this.summaryTextInput.focus(),this.props.onCommitMessageFocusSet())}onSummaryChanged=e=>{this.setState({summary:e})};onDescriptionChanged=e=>{this.setState({description:e})};onSubmit=()=>{this.shouldWarnForRepoRuleBypass()&&this.props.repository.gitHubRepository&&this.props.branch?this.props.dispatcher.showRepoRulesCommitBypassWarning(this.props.repository.gitHubRepository,this.props.branch,(()=>this.createCommit())):this.createCommit()};getCoAuthorTrailers(){const{coAuthors:e}=this.props;return this.isCoAuthorInputEnabled?e.filter(Sw).map((e=>({token:"Co-Authored-By",value:`${e.name} <${e.email}>`}))):[]}get summaryOrPlaceholder(){return this.props.prepopulateCommitSummary&&!this.state.summary?this.props.placeholder:this.state.summary}forceCreateCommit=async()=>this.createCommit(!1);async createCommit(e=!0){const{description:t}=this.state;if(!this.canCommit()&&!this.canAmend())return;if(e){const e=this.props.coAuthors.filter((e=>!Sw(e)));if(e.length>0)return void this.props.onConfirmCommitWithUnknownCoAuthors(e,this.forceCreateCommit)}const n=this.getCoAuthorTrailers(),r={summary:this.summaryOrPlaceholder,description:t,trailers:n,amend:null!==this.props.commitToAmend},i=Lx("create commit",this.props.repository),s=await this.props.onCreateCommit(r);i.done(),s&&this.clearCommitMessage()}canCommit(){return(!0===this.props.anyFilesSelected&&this.state.summary.length>0||this.props.prepopulateCommitSummary)&&!this.hasRepoRuleFailure()}canAmend(){return null!==this.props.commitToAmend&&(this.state.summary.length>0||this.props.prepopulateCommitSummary)&&!this.hasRepoRuleFailure()}hasRepoRuleFailure(){const{aheadBehind:e,repoRulesInfo:t}=this.props;return!!this.state.repoRulesEnabled&&(!0===t.basicCommitWarning||!0===t.signedCommitsRequired||!0===t.pullRequestRequired||"fail"===this.state.repoRuleCommitMessageFailures.status||"fail"===this.state.repoRuleCommitAuthorFailures.status||null===e&&(!0===t.creationRestricted||"fail"===this.state.repoRuleBranchNameFailures.status))}shouldWarnForRepoRuleBypass(){const{aheadBehind:e,branch:t,repoRulesInfo:n}=this.props;return!!this.state.repoRulesEnabled&&("bypass"===n.basicCommitWarning||"bypass"===n.signedCommitsRequired||"bypass"===n.pullRequestRequired||"bypass"===this.state.repoRuleCommitMessageFailures.status||"bypass"===this.state.repoRuleCommitAuthorFailures.status||null===e&&null!==t&&("bypass"===n.creationRestricted||"bypass"===this.state.repoRuleBranchNameFailures.status))}canExcecuteCommitShortcut(){return!this.props.isShowingFoldout&&!this.props.isShowingModal}onKeyDown=e=>{e.defaultPrevented||e.ctrlKey&&"Enter"===e.key&&(this.canCommit()||this.canAmend())&&this.canExcecuteCommitShortcut()&&(this.createCommit(),e.preventDefault())};renderAvatar(){const{commitAuthor:e,repository:t}=this.props,{gitHubRepository:n}=t,r=null!==e?Zx(e,n):void 0,i=this.props.repositoryAccount,s=i?.emails.map((e=>e.email))??[],o=e?.email;let a="none";return void 0!==o&&(this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitAuthorFailures.status?a="disallowedEmail":null!=i&&!1===fb(i,o)&&(a="misattribution")),Ae.createElement(fD,{user:r,email:e?.email,isEnterpriseAccount:i?.endpoint!==cr(),warningType:a,emailRuleFailures:this.state.repoRuleCommitAuthorFailures,branch:this.props.branch,accountEmails:s,preferredAccountEmail:null!=i?hb(i):"",onUpdateEmail:this.onUpdateUserEmail,onOpenRepositorySettings:this.onOpenRepositorySettings,onOpenGitSettings:this.onOpenGitSettings,repository:t,accounts:this.props.accounts})}onUpdateUserEmail=async e=>{await Wd("user.email",e),this.props.onRefreshAuthor()};onOpenRepositorySettings=()=>{this.props.onShowPopup({type:dh.RepositorySettings,repository:this.props.repository,initialSelectedTab:BD.GitConfig})};onOpenGitSettings=()=>{this.props.onShowPopup({type:dh.Preferences,initialSelectedTab:Fr.Git})};get isCoAuthorInputEnabled(){return null!==this.props.repository.gitHubRepository}get isCoAuthorInputVisible(){return this.props.showCoAuthoredBy&&this.isCoAuthorInputEnabled}onCoAuthorsUpdated=e=>this.props.onCoAuthorsUpdated(e);renderCoAuthorInput(){if(!this.isCoAuthorInputVisible)return null;const e=this.state.coAuthorAutocompletionProvider;return e?Ae.createElement(Ox,{ref:this.coAuthorInputRef,onAuthorsUpdated:this.onCoAuthorsUpdated,authors:this.props.coAuthors,autoCompleteProvider:e,readOnly:!0===this.props.isCommitting}):null}onToggleCoAuthors=()=>{this.props.onShowCoAuthoredByChanged(!this.props.showCoAuthoredBy)};get toggleCoAuthorsText(){return this.props.showCoAuthoredBy?"移除合作者":"添加合作者"}getAddRemoveCoAuthorsMenuItem(){return{label:this.toggleCoAuthorsText,action:this.onToggleCoAuthors,enabled:null!==this.props.repository.gitHubRepository&&!0!==this.props.isCommitting}}onContextMenu=e=>{e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement||hh([this.getAddRemoveCoAuthorsMenuItem()])};onAutocompletingInputContextMenu=()=>{const e=[this.getAddRemoveCoAuthorsMenuItem(),{type:"separator"},{role:"editMenu"},{type:"separator"}];e.push(this.getCommitSpellcheckEnabilityMenuItem(this.props.commitSpellcheckEnabled)),hh(e,!0)};getCommitSpellcheckEnabilityMenuItem(e){return{label:e?"禁用提交时的拼写检查":"启用提交时的拼写检查",action:()=>this.props.onCommitSpellcheckEnabledChanged(!e)}}onCoAuthorToggleButtonClick=e=>{e.preventDefault(),this.onToggleCoAuthors()};renderCoAuthorToggleButton(){return null===this.props.repository.gitHubRepository?null:Ae.createElement("button",{className:"co-authors-toggle",onClick:this.onCoAuthorToggleButtonClick,"aria-label":this.toggleCoAuthorsText,disabled:!0===this.props.isCommitting},Ae.createElement(yi,{symbol:GD}))}onDescriptionFieldRef=e=>{this.descriptionComponent=e};onDescriptionTextAreaScroll=()=>{this.descriptionTextAreaScrollDebounceId=null;const e=this.descriptionTextArea,t=null!==e&&e.scrollTop+e.offsetHeight<e.scrollHeight;this.state.descriptionObscured!==t&&this.setState({descriptionObscured:t})};onDescriptionTextAreaRef=e=>{if(e){const t=()=>{null!==this.descriptionTextAreaScrollDebounceId&&(cancelAnimationFrame(this.descriptionTextAreaScrollDebounceId),this.descriptionTextAreaScrollDebounceId=null),this.descriptionTextAreaScrollDebounceId=requestAnimationFrame(this.onDescriptionTextAreaScroll)};e.addEventListener("input",t),e.addEventListener("scroll",t)}this.descriptionTextArea=e};onSummaryInputRef=e=>{this.summaryTextInput=e};onFocusContainerClick=e=>{this.descriptionComponent&&this.descriptionComponent.focus()};get isActionBarEnabled(){return this.isCoAuthorInputEnabled}renderActionBar(){if(!this.isCoAuthorInputEnabled)return null;const e=ri()("action-bar",{disabled:!0===this.props.isCommitting});return Ae.createElement("div",{className:e},this.renderCoAuthorToggleButton())}renderAmendCommitNotice(){const{commitToAmend:e}=this.props;return null!==e?Ae.createElement(Bx,{icon:yx.Information},"您的更改将修改 ",Ae.createElement("strong",null,"最近提交"),"."," ",Ae.createElement(Hx,{onClick:this.props.onStopAmending},"停止修改")," ","将这些更改作为新提交。"):null}renderBranchProtectionsRepoRulesCommitWarning(){const{showNoWriteAccess:e,showBranchProtected:t,repoRulesInfo:n,aheadBehind:r,repository:i,branch:s}=this.props,{repoRuleBranchNameFailures:o,repoRulesEnabled:a}=this.state,l=new Map;let c=null;if(a){null===r&&null!==s&&(!0===n.creationRestricted||"fail"===o.status?l.set("publish",!0):"bypass"===n.creationRestricted||"bypass"===o.status?l.set("publish","bypass"):l.set("publish",!1)),l.set("commitSigning",n.signedCommitsRequired),l.set("basic",n.basicCommitWarning);for(const e of l)if(!0===e[1]){c=e[0];break}if(null===c)for(const e of l)if("bypass"===e[1]){c=e[0];break}}if(e)return Ae.createElement(Bx,{icon:yx.Warning},"您没有写入权限 ",Ae.createElement("strong",null,i.name),". 想要"," ",Ae.createElement(Hx,{onClick:this.props.onShowCreateForkDialog},"创建分支"),"?");if(t)return null===s?null:Ae.createElement(Bx,{icon:yx.Warning},Ae.createElement("strong",null,s)," 是受保护的分支。想要"," ",Ae.createElement(Hx,{onClick:this.onSwitchBranch},"交换分支"),"?");if("publish"===c){const e="bypass"===l.get("publish");return Ae.createElement(Bx,{icon:e?yx.Warning:yx.Error},"The branch name ",Ae.createElement("strong",null,s)," fails"," ",Ae.createElement(pD,{repository:i.gitHubRepository,branch:s},"one or more rules")," ","that ",e?"would":"will"," prevent it from being published",e&&", but you can bypass them. Proceed with caution!",!e&&Ae.createElement(Ae.Fragment,null,". 想要"," ",Ae.createElement(Hx,{onClick:this.onSwitchBranch},"交换分支"),"?"))}if("commitSigning"===c){const e="bypass"===n.signedCommitsRequired;return Ae.createElement(Bx,{icon:e?yx.Warning:yx.Error},Ae.createElement(pD,{repository:i.gitHubRepository,branch:s},"One or more rules")," ","apply to the branch ",Ae.createElement("strong",null,s)," that require signed commits",e&&", but you can bypass them. Proceed with caution!",!e&&"."," ",Ae.createElement(Hx,{uri:"https://docs.github.com/authentication/managing-commit-signature-verification/signing-commits"},"Learn more about commit signing."))}if("basic"===c){const e="bypass"===n.basicCommitWarning;return Ae.createElement(Bx,{icon:e?yx.Warning:yx.Error},Ae.createElement(pD,{repository:i.gitHubRepository,branch:s},"One or more rules")," ","apply to the branch ",Ae.createElement("strong",null,s)," 那"," ",e?"would":"will"," prevent pushing",e&&", but you can bypass them. Proceed with caution!",!e&&Ae.createElement(Ae.Fragment,null,". 想要"," ",Ae.createElement(Hx,{onClick:this.onSwitchBranch},"交换分支"),"?"))}return null}renderRuleFailurePopover(){const{branch:e,repository:t}=this.props;if(e&&t.gitHubRepository&&this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitMessageFailures.status)return Ae.createElement(wx,{anchor:this.summaryTextInput,anchorPosition:mx.Right,decoration:gx.Balloon,minHeight:200,trapFocus:!1,ariaLabelledby:"commit-message-rule-failure-popover-header",onClickOutside:this.closeRuleFailurePopover},Ae.createElement("h3",{id:"commit-message-rule-failure-popover-header"},"Commit message rule failures"),Ae.createElement(mD,{repository:t.gitHubRepository,branch:e,failures:this.state.repoRuleCommitMessageFailures,leadingText:"This commit message"}))}toggleRuleFailurePopover=()=>{this.setState({isRuleFailurePopoverOpen:!this.state.isRuleFailurePopoverOpen})};closeRuleFailurePopover=()=>{this.setState({isRuleFailurePopoverOpen:!1})};onSwitchBranch=()=>{this.props.onShowFoldout({type:et.Branch})};getButtonVerb(){const{isCommitting:e,commitToAmend:t}=this.props;return null!==t?e?"修改中":"修改":e?"提交中":"Commit"}getCommittingButtonText(){const{branch:e}=this.props,t=this.getButtonVerb();return null===e?t:Ae.createElement(Ae.Fragment,null,t," 到 ",Ae.createElement("strong",null,e))}getCommittingButtonTitle(){const{branch:e}=this.props,t=this.getButtonVerb();return null===e?t:`${t} to ${e}`}getButtonText(){const{commitToAmend:e,commitButtonText:t}=this.props;return t||(null!==e?this.getButtonTitle():this.getCommittingButtonText())}getButtonTitle(){const{commitToAmend:e,commitButtonText:t}=this.props;return t||(null!==e?`${this.getButtonVerb()} 上次提交`:this.getCommittingButtonTitle())}getButtonTooltip(e){return e?this.getButtonTitle():qD(this.summaryOrPlaceholder)?"提交时需要提交摘要":!this.props.anyFilesSelected&&this.props.anyFilesAvailable?"请选择一个或多个要提交的文件":this.props.isCommitting?"正在提交更改…":void 0}renderSubmitButton(){const{isCommitting:e}=this.props,t=qD(this.summaryOrPlaceholder),n=(this.canCommit()||this.canAmend())&&!e&&!t,r=e?Ae.createElement(Dx,null):void 0,i=this.getButtonTooltip(n),s=this.getButtonText();return Ae.createElement(mi,{type:"submit",className:"commit-button",onClick:this.onSubmit,disabled:!n,tooltip:i,tooltipDismissable:!1,onlyShowTooltipWhenOverflowed:n},Ae.createElement(Ae.Fragment,null,r,s))}renderSummaryLengthHint(){return Ae.createElement(VD,{delay:0,tooltip:Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"title"},"优秀的提交摘要要精简"),Ae.createElement("div",{className:"description"},"在描述字段中放置额外信息。")),ariaLiveMessage:"优秀的提交摘要要精简. 在描述字段中放置额外信息。",direction:li.NORTH,className:"length-hint",tooltipClassName:"length-hint-tooltip",ariaLabel:"Open Summary Length Info"},Ae.createElement(yi,{symbol:Oa}))}renderRepoRuleCommitMessageFailureHint(){if("pass"===this.state.repoRuleCommitMessageFailures.status)return null;const e="bypass"===this.state.repoRuleCommitMessageFailures.status;let t,n="";return e?(t="Warning",n=", but you can bypass them"):t="Error",Ae.createElement("button",{id:"commit-message-failure-hint",className:"commit-message-failure-hint button-component","aria-label":`${t}: Commit message fails repository rules${n}. View details.`,"aria-haspopup":"dialog","aria-expanded":this.state.isRuleFailurePopoverOpen,onClick:this.toggleRuleFailurePopover},Ae.createElement(yi,{symbol:e?vi:Pc,className:e?"warning-icon":"error-icon"}))}render(){const e=ri()("commit-message-component",{"with-action-bar":this.isActionBarEnabled,"with-co-authors":this.isCoAuthorInputVisible}),t=ri()("description-field",{"with-overflow":this.state.descriptionObscured}),n=this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitMessageFailures.status,r=this.props.showCommitLengthWarning&&!n&&this.state.summary.length>50,i=ri()("summary",{"with-trailing-icon":n||r}),s=ri()("summary-field","nudge-arrow",{"nudge-arrow-left":!0===this.props.shouldNudge}),o=n?this.COMMIT_MSG_ERROR_BTN_ID:void 0,{placeholder:a,isCommitting:l,commitSpellcheckEnabled:c}=this.props;return Ae.createElement("div",{role:"group","aria-label":"Create commit",className:e,onContextMenu:this.onContextMenu,onKeyDown:this.onKeyDown},Ae.createElement("div",{className:i},this.renderAvatar(),Ae.createElement(Cx,{required:!0,screenReaderLabel:"Commit summary",className:s,placeholder:a,value:this.state.summary,onValueChanged:this.onSummaryChanged,onElementRef:this.onSummaryInputRef,autocompletionProviders:this.state.commitMessageAutocompletionProviders,"aria-describedby":o,onContextMenu:this.onAutocompletingInputContextMenu,readOnly:!0===l,spellcheck:c}),n&&this.renderRepoRuleCommitMessageFailureHint(),r&&this.renderSummaryLengthHint()),this.state.isRuleFailurePopoverOpen&&this.renderRuleFailurePopover(),Ae.createElement(cp,{className:"description-focus-container",onClick:this.onFocusContainerClick},Ae.createElement(vx,{className:t,screenReaderLabel:"Commit description",placeholder:"描述",value:this.state.description||"",onValueChanged:this.onDescriptionChanged,autocompletionProviders:this.state.commitMessageAutocompletionProviders,"aria-describedby":o,ref:this.onDescriptionFieldRef,onElementRef:this.onDescriptionTextAreaRef,onContextMenu:this.onAutocompletingInputContextMenu,readOnly:!0===l,spellcheck:c}),this.renderActionBar()),this.renderCoAuthorInput(),this.renderAmendCommitNotice(),this.renderBranchProtectionsRepoRulesCommitWarning(),this.renderSubmitButton(),Ae.createElement("span",{className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.state.isCommittingStatusMessage))}}function YD(e,t){if(e.length<=t)return e;if(t<=0)return"";if(1===t)return"…";const n=(t-1)/2;return`${e.substring(0,Math.floor(n))}…${e.substring(e.length-Math.ceil(n))}`}function XD(e,n){if((n=void 0===n?e.length:n)<=0)return{normalizedPath:e,directoryText:"",fileText:"",length:n};const{normalizedFileName:r,normalizedDirectory:i}=function(e){e=e.endsWith(t.sep)?e.substring(0,e.length-1):e;const n=t.basename(e);return{normalizedFileName:n,normalizedDirectory:e.substring(0,e.length-n.length)}}(e);if(n>=e.length)return{normalizedPath:e,directoryText:i,fileText:r,length:n};const s=function(e,n){if(e.length<=n)return e;if(n<=0)return"";if(1===n)return"…";const r=e.lastIndexOf(t.sep);if(-1===r)return YD(e,n);const i=e.length-r-1;return i+2>n?YD(e,n):`${e.substring(0,n-i-2)}…${e.substring(r)}`}(e,n);let o=0;for(let e=0;e<s.length&&e<i.length;e++){const n=i[e],r=s[e];if(n!==r){if("…"===r){o++;const n=e+1;s.length>n&&s[n]===t.sep&&o++}break}o++}const a=s.substring(o);return{normalizedPath:e,directoryText:s.substring(0,o),fileText:a,length:n}}function QD(e,n){return{longestFit:0,shortestNonFit:void 0,availableWidth:void 0,fullTextWidth:void 0,...XD(t.normalize(e),n)}}class JD extends Ae.PureComponent{pathElementRef=di();pathInnerElement=null;constructor(e){super(e),this.state=QD(e.path)}componentWillReceiveProps(e){e.path!==this.props.path&&this.setState(QD(e.path))}componentDidMount(){this.resizeIfNecessary(),document.addEventListener("dialog-show",this.onDialogShow)}componentWillUnmount(){document.removeEventListener("dialog-show",this.onDialogShow)}componentDidUpdate(){this.resizeIfNecessary()}onDialogShow=e=>{const t=e.target;t instanceof Element&&t.contains(this.pathElementRef.current)&&this.resizeIfNecessary()};onPathInnerElementRef=e=>{this.pathInnerElement=e};render(){const e=this.state.directoryText&&this.state.directoryText.length?Ae.createElement("span",{className:"dirname"},this.state.directoryText):null,t=this.state.length<this.state.normalizedPath.length;return Ae.createElement("div",{className:"path-text-component",ref:this.pathElementRef},Ae.createElement("span",{ref:this.onPathInnerElementRef},e,Ae.createElement("span",{className:"filename"},this.state.fileText)),t&&Ae.createElement(ci,{target:this.pathElementRef,interactive:!0,className:"selectable"},this.state.normalizedPath))}resizeIfNecessary(){if(!this.pathElementRef.current||!this.pathInnerElement)return;const e=void 0!==this.props.availableWidth?this.props.availableWidth:this.pathElementRef.current.getBoundingClientRect().width,t=Math.max(e,0);if(void 0!==this.state.fullTextWidth&&this.state.fullTextWidth<=t)return this.state.length===this.state.normalizedPath.length?void(t!==this.state.availableWidth&&this.setState({...this.state,availableWidth:t})):void this.setState({...this.state,...XD(this.state.normalizedPath),availableWidth:t});if(void 0!==this.state.availableWidth&&this.state.availableWidth!==t){const e=QD(this.props.path,this.state.length);return void(t<this.state.availableWidth?this.setState({...e,fullTextWidth:this.state.fullTextWidth,shortestNonFit:this.state.shortestNonFit,availableWidth:t}):t>this.state.availableWidth&&this.setState({...e,fullTextWidth:this.state.fullTextWidth,longestFit:this.state.longestFit,availableWidth:t}))}if(0===t)return void(0!==this.state.length&&this.setState({...this.state,...XD(this.state.normalizedPath,0),availableWidth:t,longestFit:0,shortestNonFit:1}));const n=this.pathInnerElement.getBoundingClientRect().width,r=this.state.length===this.state.normalizedPath.length?n:this.state.fullTextWidth,i=0===n?.5:t/n;if(n<=t){if(this.state.length===this.state.normalizedPath.length)return void this.setState({...this.state,availableWidth:t,fullTextWidth:r});{const e=this.state.length,s=void 0!==this.state.shortestNonFit?this.state.shortestNonFit-1:this.state.normalizedPath.length,o=e+1;if(o>=s)return void this.setState({...this.state,longestFit:e,availableWidth:t,fullTextWidth:r});if(t-n<3)return void this.setState({...this.state,longestFit:e,availableWidth:t,fullTextWidth:r});const a=ry(Math.floor(this.state.length*i),o,s);this.setState({...this.state,...XD(this.state.normalizedPath,a),longestFit:e,availableWidth:t,fullTextWidth:r})}}else{const e=this.state.length,n=e-1,s=this.state.longestFit||0,o=ry(Math.floor(this.state.length*i),s,n);this.setState({...this.state,...XD(this.state.normalizedPath,o),shortestNonFit:e,availableWidth:t,fullTextWidth:r})}}}class e_ extends Ae.Component{render(){const e={className:"path-label-component"},{status:t}=this.props,n=this.props.availableWidth;if(t.kind===Nu.Renamed||t.kind===Nu.Copied){const r=n?n/2-10:void 0;return Ae.createElement("span",{...e,"aria-hidden":this.props.ariaHidden},Ae.createElement(JD,{path:t.oldPath,availableWidth:r}),Ae.createElement(yi,{className:"rename-arrow",symbol:Di}),Ae.createElement(JD,{path:this.props.path,availableWidth:r}))}return Ae.createElement("span",{...e,"aria-hidden":this.props.ariaHidden},Ae.createElement(JD,{path:this.props.path,availableWidth:n}))}}class t_ extends Ae.Component{handleCheckboxChange=e=>{const t=e.currentTarget.checked;this.props.onIncludeChanged(this.props.file.path,t)};get checkboxValue(){return!0===this.props.include?cA.On:!1===this.props.include?cA.Off:cA.Mixed}render(){const{file:e,availableWidth:t,disableSelection:n,checkboxTooltip:r,focused:i}=this.props,{status:s,path:o}=e,a=Fy(s),l=t-20-20-5-16,c=!0===this.props.include?"included":void 0===this.props.include?"partially included":"not included",u=`${o} ${Fy(s)} ${c}`;return Ae.createElement("div",{className:"file"},Ae.createElement(eh,{tooltip:r,direction:li.EAST,tagName:"div"},Ae.createElement(uA,{tabIndex:-1,value:this.checkboxValue,onChange:this.handleCheckboxChange,disabled:n})),Ae.createElement(e_,{path:o,status:s,availableWidth:l,ariaHidden:!0}),Ae.createElement(qT,{message:u}),Ae.createElement(eh,{ancestorFocused:i,openOnFocus:!0,tooltip:a,direction:li.EAST},Ae.createElement(yi,{symbol:Xu(s),className:"status status-"+a.toLowerCase()})))}}class n_ extends Ae.Component{onSubmit=async()=>{const{rebaseConflictState:e}=this.props;await this.props.dispatcher.continueRebase("Rebase",this.props.repository,this.props.workingDirectory,e)};render(){const{manualResolutions:e}=this.props.rebaseConflictState;let t=!0,n="Continue rebase";Vy(this.props.workingDirectory,e).length>0&&(n="Resolve all conflicts before continuing",t=!1);const r=t&&!this.props.isCommitting,i=this.props.isCommitting?Ae.createElement(Dx,null):void 0,s=this.props.hasUntrackedChanges?Ae.createElement("div",{className:"warning-untracked-files"},"Untracked files will be excluded"):void 0;return Ae.createElement("div",{id:"continue-rebase"},Ae.createElement(mi,{type:"submit",className:"commit-button",onClick:this.onSubmit,disabled:!r,tooltip:n},i,Ae.createElement("span",null,void 0!==i?"Rebasing":"Continue rebase")),s)}}class r_ extends Ae.Component{render(){const{file:e,focused:t}=this.props,{status:n}=e,r=Fy(n),i=this.props.availableWidth-20-5-16;return Ae.createElement("div",{className:"file"},Ae.createElement(e_,{path:e.path,status:e.status,availableWidth:i,ariaHidden:!0}),Ae.createElement(eh,{ancestorFocused:t,openOnFocus:!0,tooltip:r,direction:li.NORTH},Ae.createElement(yi,{symbol:Xu(n),className:"status status-"+r.toLowerCase()})))}}class i_ extends Ae.Component{constructor(e){super(e),this.state={focusedRow:null}}onSelectedRowChanged=e=>{const t=this.props.files[e];this.props.onSelectedFileChanged(t)};renderFile=e=>Ae.createElement(r_,{file:this.props.files[e],availableWidth:this.props.availableWidth,focused:this.state.focusedRow===e});selectedRowsForFile(){const{selectedFile:e,files:t}=this.props,n=e?t.findIndex((t=>t.path===e.path)):-1;return n>=0?[n]:[]}onRowContextMenu=(e,t)=>{this.props.onContextMenu?.(this.props.files[e],t)};getFileAriaLabel=e=>{const t=this.props.files[e],{path:n,status:r}=t;return`${n} ${Fy(r)}`};render(){return Ae.createElement("div",{className:"file-list"},Ae.createElement(lA,{rowRenderer:this.renderFile,rowCount:this.props.files.length,rowHeight:29,selectedRows:this.selectedRowsForFile(),onSelectedRowChanged:this.onSelectedRowChanged,onRowDoubleClick:this.props.onRowDoubleClick,onRowContextMenu:this.onRowContextMenu,onRowKeyboardFocus:this.onRowFocus,onRowBlur:this.onRowBlur,getRowAriaLabel:this.getFileAriaLabel,invalidationProps:{focusedRow:this.state.focusedRow}}))}onRowFocus=e=>{this.setState({focusedRow:e})};onRowBlur=e=>{this.state.focusedRow===e&&this.setState({focusedRow:null})}}class s_ extends Ae.Component{constructor(e){super(e),this.state={isRestoring:!1,isDiscarding:!1}}render(){const{isRestoring:e,isDiscarding:t}=this.state;return Ae.createElement("div",{className:"header"},Ae.createElement("h3",null,"暂存的更改"),Ae.createElement("div",{className:"row"},Ae.createElement(uD,{okButtonText:"恢复",okButtonDisabled:e||t,onOkButtonClick:this.onRestoreClick,cancelButtonText:"放弃",cancelButtonDisabled:e||t,onCancelButtonClick:this.onDiscardClick,okButtonAriaDescribedBy:"restore-description"}),Ae.createElement("div",{className:"explanatory-text",id:"restore-description"},Ae.createElement("span",{className:"text"},Ae.createElement("strong",null,"Restore")," will move your stashed files to the Changes list."))))}onDiscardClick=async()=>{const{dispatcher:e,repository:t,stashEntry:n,askForConfirmationOnDiscardStash:r}=this.props;if(r)e.showPopup({type:dh.ConfirmDiscardStash,stash:n,repository:t});else{this.setState({isDiscarding:!0});try{await e.dropStash(t,n)}finally{this.setState({isDiscarding:!1})}}};onRestoreClick=async()=>{const{dispatcher:e,repository:t,stashEntry:n}=this.props;try{this.setState({isRestoring:!0}),await e.popStash(t,n)}catch(n){const r=new gt(n,{repository:t});e.postError(r)}finally{this.setState({isRestoring:!1})}}}class o_ extends Ae.Component{render(){const e=this.props.image,t=`data:${e.mediaType};base64,${e.contents}`;return Ae.createElement("div",{className:"image-wrapper"},Ae.createElement("img",{src:t,style:this.props.style,onLoad:this.onLoad,alt:""}))}onLoad=e=>{this.props.onElementLoad&&this.props.onElementLoad(e.currentTarget)}}class a_ extends Ae.Component{render(){const e={width:0,height:0},t=this.props.previousImageSize||e,n=this.props.currentImageSize||e,{current:r,previous:i}=this.props,s=function(e,t){return`${Math.abs(Math.round(t/e*100))}%`}(i.bytes,r.bytes),o=r.bytes-i.bytes,a=o>=0?"+":"",l={maxWidth:this.props.maxSize.width<200?void 0:this.props.maxSize.width};return Ae.createElement("div",{className:"image-diff-container",ref:this.props.onContainerRef},Ae.createElement("div",{className:"image-diff-two-up"},Ae.createElement("div",{className:"image-diff-previous",style:l},Ae.createElement("div",{className:"image-diff-header"},"Deleted"),Ae.createElement(o_,{image:i,onElementLoad:this.props.onPreviousImageLoad}),Ae.createElement("div",{className:"image-diff-footer"},Ae.createElement("span",{className:"strong"},"W:")," ",t.width,"px | ",Ae.createElement("span",{className:"strong"},"H:")," ",t.height,"px | ",Ae.createElement("span",{className:"strong"},"Size:")," ",cg(i.bytes,2,!1))),Ae.createElement("div",{className:"image-diff-current",style:l},Ae.createElement("div",{className:"image-diff-header"},"Added"),Ae.createElement(o_,{image:r,onElementLoad:this.props.onCurrentImageLoad}),Ae.createElement("div",{className:"image-diff-footer"},Ae.createElement("span",{className:"strong"},"W:")," ",n.width,"px | ",Ae.createElement("span",{className:"strong"},"H:")," ",n.height,"px | ",Ae.createElement("span",{className:"strong"},"Size:")," ",cg(r.bytes,2,!1)))),Ae.createElement("div",{className:"image-diff-summary"},"Diff:"," ",Ae.createElement("span",{className:ri()({added:o>0,removed:o<0})},0!==o?`${a}${cg(o,2,!1)} (${s})`:"No size difference")))}}class l_ extends Ae.Component{render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return Ae.createElement("div",{className:"image-diff-difference",ref:this.props.onContainerRef},Ae.createElement("div",{className:"sizing-container"},Ae.createElement("div",{className:"image-container",style:e},Ae.createElement("div",{className:"image-diff-previous"},Ae.createElement(o_,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:t})),Ae.createElement("div",{className:"image-diff-current"},Ae.createElement(o_,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:{...t,mixBlendMode:"difference"}})))))}}class c_ extends Ae.Component{constructor(e){super(e),this.state={crossfade:1}}render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return Ae.createElement("div",{className:"image-diff-onion-skin"},Ae.createElement("div",{className:"sizing-container",ref:this.props.onContainerRef},Ae.createElement("div",{className:"image-container",style:e},Ae.createElement("div",{className:"image-diff-previous",style:e},Ae.createElement(o_,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:t})),Ae.createElement("div",{className:"image-diff-current",style:{...e,opacity:this.state.crossfade}},Ae.createElement(o_,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:t})))),Ae.createElement("input",{style:{width:this.props.maxSize.width/2},className:"slider",type:"range",max:1,min:0,value:this.state.crossfade,step:.001,onChange:this.onValueChange}))}onValueChange=e=>{this.setState({crossfade:e.currentTarget.valueAsNumber})}}class u_ extends Ae.Component{constructor(e){super(e),this.state={percentage:0}}render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t=this.props.maxSize.width*(1-this.state.percentage),n={height:this.props.maxSize.height,width:this.props.maxSize.width,left:-(this.props.maxSize.width-t)},r={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return Ae.createElement("div",{className:"image-diff-swipe"},Ae.createElement("div",{className:"sizing-container",ref:this.props.onContainerRef},Ae.createElement("div",{className:"image-container",style:e},Ae.createElement("div",{className:"image-diff-previous",style:e},Ae.createElement(o_,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:r})),Ae.createElement("div",{className:"swiper",style:{width:t,height:this.props.maxSize.height}},Ae.createElement("div",{className:"image-diff-current",style:n},Ae.createElement(o_,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:r}))))),Ae.createElement("input",{style:{width:this.props.maxSize.width+14},className:"slider",type:"range",max:1,min:0,value:this.state.percentage,step:.001,onChange:this.onValueChange}))}onValueChange=e=>{const t=e.currentTarget.valueAsNumber;this.setState({percentage:t})}}function h_(e,t){const n=t.height<e.height?e.height/t.height:1,r=t.width<e.width?e.width/t.width:1;let i=Math.max(1,r);return r<n&&(i=Math.max(1,n)),{width:e.width/i,height:e.height/i}}class p_ extends Ae.Component{container=null;resizeObserver;resizedTimeoutID=null;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>{for(const{target:t,contentRect:n}of e)t===this.container&&t instanceof HTMLElement&&(null!==this.resizedTimeoutID&&clearImmediate(this.resizedTimeoutID),this.resizedTimeoutID=setImmediate(this.onResized,t,n))})),this.state={previousImageSize:null,currentImageSize:null,containerSize:null}}onPreviousImageLoad=e=>{const t={width:e.naturalWidth,height:e.naturalHeight};this.setState({previousImageSize:t})};onCurrentImageLoad=e=>{const t={width:e.naturalWidth,height:e.naturalHeight};this.setState({currentImageSize:t})};onResized=(e,t)=>{this.resizedTimeoutID=null;const n={width:e.offsetWidth,height:e.offsetHeight};this.setState({containerSize:n})};getMaxSize(){const e={width:0,height:0,containerWidth:0},t=this.state.containerSize;if(!t)return e;const{previousImageSize:n,currentImageSize:r}=this.state;if(!n||!r)return e;const i=function(e,t,n){const r=h_(e,n),i=h_(t,n);return{width:Math.max(r.width,i.width),height:Math.max(r.height,i.height)}}(n,r,t);return i}onContainerRef=e=>{this.container=e,this.resizeObserver.disconnect(),e&&this.resizeObserver.observe(e)};render(){return Ae.createElement("div",{className:"panel image",id:"diff"},this.renderCurrentDiffType(),Ae.createElement(wD,{selectedIndex:this.props.diffType,onTabClicked:this.props.onChangeDiffType,type:gD.Switch},Ae.createElement("span",null,"2-up"),Ae.createElement("span",null,"Swipe"),Ae.createElement("span",null,"Onion Skin"),Ae.createElement("span",null,"Difference")))}renderCurrentDiffType(){const e=this.getMaxSize(),t=this.props.diffType;switch(t){case Iu.TwoUp:return Ae.createElement(a_,{...this.getCommonProps(e),previousImageSize:this.state.previousImageSize,currentImageSize:this.state.currentImageSize});case Iu.Swipe:return Ae.createElement(u_,{...this.getCommonProps(e)});case Iu.OnionSkin:return Ae.createElement(c_,{...this.getCommonProps(e)});case Iu.Difference:return Ae.createElement(l_,{...this.getCommonProps(e)});default:return ct(0,`Unknown diff type: ${t}`)}}getCommonProps(e){return{maxSize:e,previous:this.props.previous,current:this.props.current,onPreviousImageLoad:this.onPreviousImageLoad,onCurrentImageLoad:this.onCurrentImageLoad,onContainerRef:this.onContainerRef}}}class d_ extends Ae.Component{render(){return Ae.createElement("div",{className:"panel image",id:"diff"},Ae.createElement("div",{className:"image-diff-current"},Ae.createElement("div",{className:"image-diff-header"},"Added"),Ae.createElement(o_,{image:this.props.current})))}}class m_ extends Ae.Component{render(){return Ae.createElement("div",{className:"panel image",id:"diff"},Ae.createElement("div",{className:"image-diff-previous"},Ae.createElement("div",{className:"image-diff-header"},"Deleted"),Ae.createElement(o_,{image:this.props.previous})))}}class f_ extends Ae.Component{open=()=>{const e=t.join(this.props.repository.path,this.props.path);this.props.onOpenBinaryFile(e)};render(){return Ae.createElement("div",{className:"panel binary",id:"diff"},Ae.createElement("div",{className:"image-header"},"此二进制文件已更改"),Ae.createElement("div",{className:"image-header"},Ae.createElement(Hx,{onClick:this.open},"使用外部程序打开文件")))}}const g_=new Array,y_=Pt(__dirname,"highlighter.js");function w_(e,t,n,r,i){if(!e.length||!i.length)return Promise.resolve({});const s=g_.shift()||new Worker(y_);return new Promise(((o,a)=>{let l=null;const c=()=>{l&&(window.clearTimeout(l),l=null)};s.onerror=e=>{c(),s.terminate(),a(e.error||new Error(e.message))},s.onmessage=e=>{c(),g_.length<2?g_.push(s):s.terminate(),o(e.data)};const u={contentLines:e,basename:t,extension:n,tabSize:r,lines:i,addModeClass:!0};s.postMessage(u),l=window.setTimeout((()=>{s.terminate(),a(new Error("timed out"))}),5e3)}))}const b_=262144;async function v_(e,t){if(t.status.kind===Nu.New||t.status.kind===Nu.Untracked)return null;let n;if(t instanceof ju)n="HEAD";else{if(!(t instanceof Ku))return ct(0,"Unknown file change type");n=t.parentCommitish}return Nm(e,n,nf(t),b_)}async function C_(e,n){return n.status.kind===Nu.Deleted?null:n instanceof ju?async function(e,t,n){return await new Promise(((t,n)=>{const r=new Array;let s=0;(0,i.createReadStream)(e,{start:0,end:262143}).on("data",(e=>{r.push(e),s+=e.length})).on("error",n).on("end",(()=>t(Buffer.concat(r,s))))}))}(t.join(e.path,n.path)):n instanceof Ku?Nm(e,n.commitish,n.path,b_):ct(0,"Unknown file change type")}var S_=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Rh.Z)(this,e),this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._columnCount=0,this._rowCount=0,this.columnWidth=function(e){var n=e.index,r=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(r)?t._columnWidthCache[r]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,r=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(r)?t._rowHeightCache[r]:t._defaultHeight};var r=n.defaultHeight,i=n.defaultWidth,s=n.fixedHeight,o=n.fixedWidth,a=n.keyMapper,l=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===s,this._hasFixedWidth=!0===o,this._minHeight=l||0,this._minWidth=c||0,this._keyMapper=a||k_,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:100)}return(0,Th.Z)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,r){var i=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[i]=r,this._cellWidthCache[i]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var i=this._keyMapper(0,t);this._columnWidthCache[i]=n}if(!this._hasFixedHeight){for(var s=0,o=0;o<this._columnCount;o++)s=Math.max(s,this.getHeight(e,o));var a=this._keyMapper(e,0);this._rowHeightCache[a]=s}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();const E_=S_;function k_(e,t){return e+"-"+t}var R_=n(9042),T_=n.n(R_),A_=function(e){function t(){var e,n,r,i;(0,Rh.Z)(this,t);for(var s=arguments.length,o=Array(s),a=0;a<s;a++)o[a]=arguments[a];return n=r=(0,Ah.Z)(this,(e=t.__proto__||kh()(t)).call.apply(e,[this].concat(o))),r._cellRenderer=function(e){var t=e.parent,n=e.rowIndex,i=e.style,s=e.isScrolling,o=e.isVisible,a=e.key,l=r.props.rowRenderer;return T_()(i,"width").writable&&(i.width="100%"),l({index:n,style:i,isScrolling:s,isVisible:o,key:a,parent:t})},r._setRef=function(e){r.Grid=e},r._onScroll=function(e){var t=e.clientHeight,n=e.scrollHeight,i=e.scrollTop;(0,r.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:i})},r._onSectionRendered=function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,i=e.rowStartIndex,s=e.rowStopIndex;(0,r.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:i,stopIndex:s})},i=n,(0,Ah.Z)(r,i)}return(0,xh.Z)(t,e),(0,Th.Z)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,s=ri()("ReactVirtualized__List",t);return Ae.createElement(np,(0,Sh.Z)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(Ae.PureComponent);A_.defaultProps={autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,s=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,s+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,s+1)}},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}},A_.propTypes=null;const x_=A_;var D_=function(e){function t(){var e,n,r,i;(0,Rh.Z)(this,t);for(var s=arguments.length,o=Array(s),a=0;a<s;a++)o[a]=arguments[a];return n=r=(0,Ah.Z)(this,(e=t.__proto__||kh()(t)).call.apply(e,[this].concat(o))),r._measure=function(){var e=r.props,t=e.cache,n=e.columnIndex,i=void 0===n?0:n,s=e.parent,o=e.rowIndex,a=void 0===o?r.props.index||0:o,l=r._getCellMeasurements(),c=l.height,u=l.width;c===t.getHeight(a,i)&&u===t.getWidth(a,i)||(t.set(a,i,u,c),s&&"function"==typeof s.recomputeGridSize&&s.recomputeGridSize({columnIndex:i,rowIndex:a}))},i=n,(0,Ah.Z)(r,i)}return(0,xh.Z)(t,e),(0,Th.Z)(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=(0,De.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),s=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:i,width:s}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,o=void 0===s?this.props.index||0:s;if(!t.has(o,r)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(o,r,c,l),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:o})}}}]),t}(Ae.PureComponent);D_.__internalCellMeasurerFlag=!1,D_.propTypes=null;const __=D_;class M_ extends Ae.Component{render(){return Ae.createElement(wx,{anchor:this.props.anchor,anchorPosition:this.props.anchorPosition,decoration:gx.Balloon,onMousedownOutside:this.onDismissed,className:"whitespace-hint",appearEffect:fx.Shake,ariaLabelledby:"whitespace-hint-header"},Ae.createElement("h3",{id:"whitespace-hint-header"},"Show whitespace changes?"),Ae.createElement("p",{className:"byline"},"Selecting lines is disabled when hiding whitespace changes."),Ae.createElement("footer",null,Ae.createElement(uD,{okButtonText: "确定",cancelButtonText: "取消",onCancelButtonClick:this.onDismissed,onOkButtonClick:this.onShowWhitespaceChanges})))}onShowWhitespaceChanges=e=>{e.preventDefault(),this.props.onHideWhitespaceInDiffChanged(!1),this.props.onDismissed()};onDismissed=e=>{e?.preventDefault(),this.props.onDismissed()}}const P_={w:12,h:12,p:["M10.5303 2.96967C10.8232 3.26256 10.8232 3.73744 10.5303 4.03033L5.03033 9.53033C4.73744 9.82322 4.26256 9.82322 3.96967 9.53033L1.46967 7.03033C1.17678 6.73744 1.17678 6.26256 1.46967 5.96967C1.76256 5.67678 2.23744 5.67678 2.53033 5.96967L4.5 7.93934L9.46967 2.96967C9.76256 2.67678 10.2374 2.67678 10.5303 2.96967Z"]},I_={w:12,h:12,p:["m1.3125 6c0-.41421.33579-.75.75-.75h7.875c.4142 0 .75.33579.75.75s-.3358.75-.75.75h-7.875c-.41421 0-.75-.33579-.75-.75z"]},O_={w:16,h:8,p:["m 16,1 0,3 c 0,0.55 -0.45,1 -1,1 l -3,0 0,2 -3,-3 3,-3 0,2 2,0 0,-2 2,0 z M 8,4 C 8,6.2 6.2,8 4,8 1.8,8 0,6.2 0,4 0,1.8 1.8,0 4,0 6.2,0 8,1.8 8,4 Z M 1.5,5.66 5.66,1.5 C 5.18,1.19 4.61,1 4,1 2.34,1 1,2.34 1,4 1,4.61 1.19,5.17 1.5,5.66 Z M 7,4 C 7,3.39 6.81,2.83 6.5,2.34 L 2.34,6.5 C 2.82,6.81 3.39,7 4,7 5.66,7 7,5.66 7,4 Z"]};var N_,L_,B_;!function(e){e.Added="+",e.Deleted="-",e.Nothing=" "}(N_||(N_={}));class F_ extends Ae.Component{constructor(e){super(e),this.state={showWhitespaceHint:void 0}}render(){const{row:e,showSideBySideDiff:t,beforeClassNames:n,afterClassNames:r,isDiffSelectable:i}=this.props,s=ri()("row",{"has-check-all-control":en()&&this.props.showDiffCheckMarks&&i}),o=ri()("before",...n),a=ri()("after",...r);switch(e.type){case Um.Hunk:{const t=ri()("hunk-info",s,{"expandable-both":e.expansionType===Pu.Both});return Ae.createElement("div",{className:t,role:"cell"},this.renderHunkHeaderGutter(e.hunkIndex,e.expansionType),this.renderContentFromString(e.content))}case Um.Context:const n=ri()("context",s),{beforeLineNumber:r,afterLineNumber:i}=e;return t?Ae.createElement("div",{className:n,role:"cell"},Ae.createElement("div",{className:"before"},this.renderLineNumber(r,Zm.Before),this.renderContentFromString(e.content,e.beforeTokens)),Ae.createElement("div",{className:"after"},this.renderLineNumber(i,Zm.After),this.renderContentFromString(e.content,e.afterTokens))):Ae.createElement("div",{className:n,role:"cell"},Ae.createElement("div",{className:"before"},this.renderLineNumbers([r,i],void 0),this.renderContentFromString(e.content,e.beforeTokens)));case Um.Added:{const{lineNumber:n,isSelected:r}=e.data,i=ri()("added",s);return t?Ae.createElement("div",{className:i,role:"cell"},Ae.createElement("div",{className:o},this.renderLineNumber(void 0,Zm.Before),this.renderContentFromString(""),this.renderWhitespaceHintPopover(Zm.Before)),this.renderHunkHandle(),Ae.createElement("div",{className:a},this.renderLineNumber(n,Zm.After,r),this.renderContent(e.data,N_.Added),this.renderWhitespaceHintPopover(Zm.After))):Ae.createElement("div",{className:i,role:"cell"},this.renderHunkHandle(),Ae.createElement("div",{className:a},this.renderLineNumbers([void 0,n],Zm.After,r),this.renderContent(e.data,N_.Added),this.renderWhitespaceHintPopover(Zm.After)))}case Um.Deleted:{const{lineNumber:n,isSelected:r}=e.data,i=ri()("deleted",s);return t?Ae.createElement("div",{className:i,role:"cell"},Ae.createElement("div",{className:o},this.renderLineNumber(n,Zm.Before,r),this.renderContent(e.data,N_.Deleted),this.renderWhitespaceHintPopover(Zm.Before)),this.renderHunkHandle(),Ae.createElement("div",{className:a},this.renderLineNumber(void 0,Zm.After),this.renderContentFromString("",[]),this.renderWhitespaceHintPopover(Zm.After))):Ae.createElement("div",{className:i,role:"cell"},this.renderHunkHandle(),Ae.createElement("div",{className:o},this.renderLineNumbers([n,void 0],Zm.Before,r),this.renderContent(e.data,N_.Deleted),this.renderWhitespaceHintPopover(Zm.Before)))}case Um.Modified:{const{beforeData:t,afterData:n}=e,r=ri()("modified",s);return Ae.createElement("div",{className:r,role:"cell"},Ae.createElement("div",{className:o},this.renderLineNumber(t.lineNumber,Zm.Before,t.isSelected),this.renderContent(t,N_.Deleted),this.renderWhitespaceHintPopover(Zm.Before)),this.renderHunkHandle(),Ae.createElement("div",{className:a},this.renderLineNumber(n.lineNumber,Zm.After,n.isSelected),this.renderContent(n,N_.Added),this.renderWhitespaceHintPopover(Zm.After)))}}}shouldComponentUpdate(e,t){if(!op(this.state,t))return!0;const{row:n,...r}=this.props,{row:i,...s}=e;return!sp(n,i)||!op(r,s)}renderContentFromString(e,t=[],n=N_.Nothing){return this.renderContent({content:e,tokens:t,noNewLineIndicator:!1})}renderContent(e,t=N_.Nothing){return Ae.createElement("div",{className:"content"},Ae.createElement("div",{className:"prefix"},"  ",t,"  "),Ae.createElement("div",{className:"content-wrapper"},0===e.content.length&&Ae.createElement("br",null),function(e,t){const n=[];let r={content:"",tokens:new Map};for(let i=0;i<e.length;i++){const s=e[i],o=new Map;for(const[e,t]of r.tokens)t>i&&o.set(e,t);for(const e of t)if(void 0!==e[i]&&e[i].length>0){const t=e[i].token.split(" "),n=i+e[i].length;for(const e of t){const t=o.get(e);(void 0===t||n>t)&&o.set(e,n)}}lp(r.tokens,o)?(r.content+=s,r.tokens=o):(n.push({tokens:r.tokens,content:r.content}),r={content:s,tokens:o})}return n.push({tokens:r.tokens,content:r.content}),Ae.createElement(Ae.Fragment,null,n.map(((e,t)=>0===e.tokens.size?e.content:Ae.createElement("span",{key:t,className:ri()([...e.tokens.keys()].map((e=>`cm-${e}`)))},e.content))))}(e.content,e.tokens),e.noNewLineIndicator&&Ae.createElement(yi,{symbol:O_,title:"文件末尾没有换行符"})))}getHunkExpansionElementInfo(e,t){switch(t){case Pu.Up:return{icon:Go,title:"展开上方",handler:this.onExpandHunk(e,t)};case Pu.Down:return{icon:Vo,title:"展开下方",handler:this.onExpandHunk(e-1,t)};case Pu.Short:return{icon:qo,title:"全部展开",handler:this.onExpandHunk(e,t)}}throw new Error(`Unexpected expansion type ${t}`)}get lineGutterWidth(){const{showSideBySideDiff:e,lineNumberWidth:t,isDiffSelectable:n,showDiffCheckMarks:r}=this.props;return(e?t:2*t)+(n&&r&&Jt()?20:0)}renderHunkExpansionHandle(e,t){const n=this.lineGutterWidth;if(t===Pu.None)return Ae.createElement("div",{className:"hunk-expansion-handle",style:{width:n}},Ae.createElement("div",{className:"hunk-expansion-placeholder"}));const r=this.getHunkExpansionElementInfo(e,t);return Ae.createElement("div",{className:"hunk-expansion-handle selectable hoverable",style:{width:n}},Ae.createElement(mi,{onClick:r.handler,onContextMenu:this.props.onContextMenuExpandHunk,tooltip:r.title,toolTipDirection:li.SOUTH,ariaLabel:r.title,onButtonRef:this.getOnHunkExpansionRef(e,t)},Ae.createElement(yi,{symbol:r.icon})))}getOnHunkExpansionRef=(e,t)=>n=>{this.props.onHunkExpansionRef(e,t,n)};renderHunkHeaderGutter(e,t){return t===Pu.Both?Ae.createElement("div",null,this.renderHunkExpansionHandle(e,Pu.Down),this.renderHunkExpansionHandle(e,Pu.Up)):this.renderHunkExpansionHandle(e,t)}renderHunkHandle(){const{isDiffSelectable:e,rowSelectableGroup:t,row:n}=this.props;if(!e)return null;if(!$m(n))return null;if(null===t)return this.renderHunkHandlePlaceHolder();const{height:r,selectionState:i,staticData:s,isCheckAllRenderedInRow:o,isFirst:a}=t;if(!o)return this.renderHunkHandlePlaceHolder(i);const{lineNumbers:l,lineNumbersIdentifiers:c,diffType:u}=s,h=1===c.length,p={height:r},d=ri()("hunk-handle","hoverable",{selected:i!==Mu.None}),m=c.join("-"),f=Ae.createElement("label",{htmlFor:m,onMouseEnter:this.onMouseEnterHunk,onMouseLeave:this.onMouseLeaveHunk,onContextMenu:this.onContextMenuHunk,className:d,style:p},Ae.createElement("span",{className:"focus-handle"},(!en()||!this.props.showDiffCheckMarks)&&Ae.createElement("div",{className:"increased-hover-surface",style:{height:r}}),!h&&this.getCheckAllOcticon(i,a),!h&&Ae.createElement("span",{className:"sr-only"}," ","Lines ",l.at(0)," 到 ",l.at(-1)," ",u===Um.Added?"added":u===Um.Deleted?"deleted":"modified"))),g=Ae.createElement("input",{className:"sr-only",id:m,type:"checkbox","aria-controls":c.join(" "),"aria-checked":i===Mu.All||i===Mu.Partial&&"mixed",onChange:this.onClickHunk,onFocus:this.onHunkFocus,onBlur:this.onHunkBlur,onContextMenu:this.onContextMenuHunk});return Ae.createElement(Ae.Fragment,null,!h&&g,f,this.renderHunkHandlePlaceHolder(i))}renderHunkHandlePlaceHolder=e=>Ae.createElement("div",{className:ri()("hunk-handle-place-holder",{selected:e!==Mu.None})});getCheckAllOcticon=(e,t)=>en()&&t&&this.props.showDiffCheckMarks?e===Mu.All?Ae.createElement(yi,{symbol:P_}):e===Mu.Partial?Ae.createElement(yi,{symbol:I_}):null:null;getLineNumbersContainerID(e){return`line-numbers-${this.props.numRow}-${e}`}renderLineNumbers(e,t,n){const r=void 0===t?void 0:this.getLineNumbersContainerID(t),i=this.props.isDiffSelectable&&void 0!==n,s=ri()("line-number",{selectable:i,hoverable:i,"line-selected":n,hover:this.props.rowSelectableGroup?.isHovered}),o=e.filter((e=>void 0!==e)).at(0);if(void 0===o)return null;const a=`${o}-${t===Zm.After?"after":"before"}`;return Ae.createElement("div",{id:r,className:s,style:{width:this.lineGutterWidth},onMouseDown:this.onMouseDownLineNumber},i&&this.renderLineNumberCheckbox(a,!0===n),Ae.createElement("label",{htmlFor:a,onContextMenu:this.onContextMenuLineNumber},this.renderLineNumberCheck(n),e.map(((e,r)=>Ae.createElement("span",{key:r},e&&Ae.createElement("span",{className:"sr-only"},"Line "),e,e&&void 0!==n&&Ae.createElement("span",{className:"sr-only"},t===Zm.After?" added":" deleted"))))))}renderLineNumberCheck(e){return this.props.isDiffSelectable&&Jt()&&this.props.showDiffCheckMarks?Ae.createElement("div",{className:"line-number-check"},e?Ae.createElement(yi,{symbol:P_}):null):null}renderLineNumberCheckbox(e,t){return Ae.createElement("input",{onContextMenu:this.onContextMenuLineNumber,className:"sr-only",id:e,type:"checkbox",onChange:this.onLineNumberCheckboxChange,checked:t})}renderWhitespaceHintPopover(e){if(this.state.showWhitespaceHint!==e)return;const t=`line-numbers-${this.props.numRow}-${e}`,n=document.getElementById(t);if(null===n)return;const r=e===Zm.Before?mx.LeftTop:mx.RightTop;return Ae.createElement(M_,{anchor:n,anchorPosition:r,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,onDismissed:this.onWhitespaceHintClose})}onWhitespaceHintClose=()=>{this.setState({showWhitespaceHint:void 0})};renderLineNumber(e,t,n){return this.renderLineNumbers([e],t,n)}getDiffColumn(e){const{row:t}=this.props;switch(t.type){case Um.Added:return Zm.After;case Um.Deleted:return Zm.Before;case Um.Modified:return e?.closest(".after")?Zm.After:Zm.Before}return null}getDiffData(e){const{row:t}=this.props;switch(t.type){case Um.Added:case Um.Deleted:return t.data;case Um.Modified:return e?.closest(".after")?t.afterData:t.beforeData}return null}onLineNumberCheckboxChange=({currentTarget:e})=>{const t=this.getDiffColumn(e);null!==t&&(this.props.hideWhitespaceInDiff?this.setState({showWhitespaceHint:t}):this.props.onLineNumberCheckedChanged(this.props.numRow,t,e.checked))};onMouseDownLineNumber=e=>{if(2===e.buttons)return;const t=this.getDiffColumn(e.currentTarget),n=this.getDiffData(e.currentTarget);null!==t&&(this.props.hideWhitespaceInDiff?this.setState({showWhitespaceHint:t}):null!==n&&this.props.onStartSelection(this.props.numRow,t,!n.isSelected))};onMouseEnterHunk=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseEnterHunk(this.props.row.hunkStartLine)};onMouseLeaveHunk=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseLeaveHunk(this.props.row.hunkStartLine)};onHunkFocus=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseEnterHunk(this.props.row.hunkStartLine)};onHunkBlur=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseLeaveHunk(this.props.row.hunkStartLine)};onExpandHunk=(e,t)=>()=>{this.props.onExpandHunk(e,t)};onClickHunk=()=>{if(this.props.hideWhitespaceInDiff){const{row:e}=this.props,t=e.type===Um.Added?Zm.After:Zm.Before;return void this.setState({showWhitespaceHint:t})}const e=this.getDiffData();null!==e&&"hunkStartLine"in this.props.row&&this.props.onClickHunk(this.props.row.hunkStartLine,!e.isSelected)};onContextMenuLineNumber=e=>{if(this.props.hideWhitespaceInDiff)return;const t=this.getDiffData(e.currentTarget);null!==t&&null!==t.diffLineNumber&&this.props.onContextMenuLine(t.diffLineNumber)};onContextMenuHunk=()=>{this.props.hideWhitespaceInDiff||"hunkStartLine"in this.props.row&&this.props.onContextMenuHunk(this.props.row.hunkStartLine)}}function H_(e,t){const n=e.find((e=>t>=e.unifiedDiffStart&&t<=e.unifiedDiffEnd));return n||null}function U_(e,t){const n=function(e,t){const n=H_(e,t);if(!n)return null;const r=t-n.unifiedDiffStart;let i=$_(null,n.lines[r]),s=null;for(let e=r-1;e>=0;e--){const t=n.lines[e];if(!t.isIncludeableLine()){const t=e+1;s=n.unifiedDiffStart+t;break}i=$_(i,t)}const o=null!==s?s:n.unifiedDiffStart+1;let a=null;for(let e=r+1;e<n.lines.length;e++){const t=n.lines[e];if(!t.isIncludeableLine()){const t=e-1;a=n.unifiedDiffStart+t;break}i=$_(i,t)}return{from:o,to:null!==a?a:n.unifiedDiffEnd,type:i}}(e,t);if(null===n)return null;const r=Z_(e,n.from),i=Z_(e,n.to);return null===r||null===i?null:{...n,from:r,to:i}}function Z_(e,t){const n=function(e,t){const n=function(e,t){const n=H_(e,t);if(!n)return null;const r=n.lines[t-n.unifiedDiffStart];return r?{hunk:n,line:r}:null}(e,t);return null===n?null:n.line}(e,t);return null===n?null:n.originalLineNumber}function $_(e,t){return t.type!==_u.Add&&t.type!==_u.Delete?e:null===e?t.type===_u.Add?L_.Additions:L_.Deletions:e===L_.Mixed?e:t.type===_u.Add&&e!==L_.Additions||t.type===_u.Delete&&e!==L_.Deletions?L_.Mixed:e}function W_(e,t){return void 0!==t&&null!==e&&void 0!==t[e-1]?t[e-1]:null}!function(e){e[e.Additions=0]="Additions",e[e.Deletions=1]="Deletions",e[e.Mixed=2]="Mixed"}(L_||(L_={}));class q_ extends Ae.Component{constructor(e){super(e),this.state={value:""}}render(){return Ae.createElement("div",{className:"diff-search"},Ae.createElement(VT,{placeholder:"Search…",displayClearButton:!0,autoFocus:!0,onValueChanged:this.onChange,onKeyDown:this.onKeyDown,onBlur:this.onBlur,value:this.state.value}))}onChange=e=>{this.setState({value:e})};onBlur=()=>{this.props.onClose()};onKeyDown=e=>{"Escape"!==e.key||e.defaultPrevented?"Enter"!==e.key||e.defaultPrevented||(e.preventDefault(),this.props.onSearch(this.state.value,e.shiftKey?"previous":"next")):(e.preventDefault(),this.props.onClose())}}!function(e){e[e.UnicodeBidiCharacters=0]="UnicodeBidiCharacters",e[e.LineEndingsChange=1]="LineEndingsChange"}(B_||(B_={}));class V_ extends xe().Component{render(){const e=this.getTextDiffWarningItems();return 0===e.length?null:xe().createElement("div",{className:"diff-contents-warning-container"},e.map(((e,t)=>xe().createElement("div",{className:"diff-contents-warning",key:t},xe().createElement(yi,{symbol:vi}),this.getWarningMessageForItem(e)))))}getTextDiffWarningItems(){const e=new Array,{diff:t}=this.props;return t.hasHiddenBidiChars&&e.push({type:B_.UnicodeBidiCharacters}),t.lineEndingsChange&&e.push({type:B_.LineEndingsChange,lineEndingsChange:t.lineEndingsChange}),e}getWarningMessageForItem(e){switch(e.type){case B_.UnicodeBidiCharacters:return xe().createElement(xe().Fragment,null,"This diff contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters."," ",xe().createElement(Hx,{uri:"https://github.co/hiddenchars"},"Learn more about bidirectional Unicode characters"));case B_.LineEndingsChange:const{lineEndingsChange:t}=e;return xe().createElement(xe().Fragment,null,"This diff contains a change in line endings from '",t.from,"' to '",t.to,"'.")}}}var G_=n(2229),z_=n.n(G_);const j_=(e,t)=>{const n=(e=>(e=>e.nodeType===Node.ELEMENT_NODE)(e)?e:e.parentElement)(e)?.closest("div[role=row]");if(n&&t.contains(n)){const e=null!==n.ariaRowIndex?parseInt(n.ariaRowIndex,10):NaN;return isNaN(e)?void 0:e}},K_=new E_({defaultHeight:20,fixedWidth:!0});class Y_ extends Ae.Component{virtualListRef=Ae.createRef();diffContainer=null;diffToRestore=null;textSelectionStartRow=void 0;textSelectionEndRow=void 0;renderedStartIndex=0;renderedStopIndex=void 0;hunkExpansionRefs=new Map;rowSelectableGroupStaticDataCache=new Map;constructor(e){super(e),this.state={diff:e.diff,isSearching:!1,selectedSearchResult:void 0,selectingTextInRow:"before",lastExpandedHunk:null}}componentDidMount(){this.initDiffSyntaxMode(),window.addEventListener("keydown",this.onWindowKeyDown),document.addEventListener("find-text",this.showSearch),document.addEventListener("cut",this.onCutOrCopy),document.addEventListener("copy",this.onCutOrCopy),document.addEventListener("selectionchange",this.onDocumentSelectionChange),this.addContextMenuListenerToDiff()}addContextMenuListenerToDiff=()=>{const e=(0,De.findDOMNode)(this.virtualListRef.current);(e instanceof HTMLElement?e:null)?.addEventListener("contextmenu",this.onContextMenuText)};removeContextMenuListenerFromDiff=()=>{const e=(0,De.findDOMNode)(this.virtualListRef.current);(e instanceof HTMLElement?e:null)?.removeEventListener("contextmenu",this.onContextMenuText)};onCutOrCopy=e=>{if(e.defaultPrevented||!this.isEntireDiffSelected())return;const t=!!this.props.showSideBySideDiff&&("before"===this.state.selectingTextInRow?_u.Add:_u.Delete),n=this.state.diff.hunks.flatMap((e=>e.lines.filter((e=>e.type!==t)).map((e=>e.content)))).join("\n");e.preventDefault(),e.clipboardData?.setData("text/plain",n)};onDocumentSelectionChange=e=>{if(!this.diffContainer)return;const t=document.getSelection();if(this.textSelectionStartRow=void 0,this.textSelectionEndRow=void 0,!t||t.isCollapsed)return;if(!t.containsNode(this.diffContainer,!0))return;if(this.isEntireDiffSelected(t))return;const n=t.getRangeAt(0),{startContainer:r,endContainer:i}=n;let s=j_(r,this.diffContainer);if(void 0===s){const e=this.diffContainer.querySelector("div[role=row]:first-child");e&&n.intersectsNode(e)&&(s=j_(e,this.diffContainer))}if(void 0===s)return;let o=j_(i,this.diffContainer);if(void 0===o){const e=this.diffContainer.querySelector("div[role=row]:last-child");e&&n.intersectsNode(e)&&(o=j_(e,this.diffContainer))}this.textSelectionStartRow=s,this.textSelectionEndRow=o};isEntireDiffSelected(e=document.getSelection()){const{diffContainer:t}=this;if(0===e?.rangeCount)return!1;const n=e?.getRangeAt(0).commonAncestorContainer;return n===t}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),document.removeEventListener("mouseup",this.onEndSelection),document.removeEventListener("find-text",this.showSearch),document.removeEventListener("selectionchange",this.onDocumentSelectionChange),document.removeEventListener("mousemove",this.onUpdateSelection),this.removeContextMenuListenerFromDiff()}componentDidUpdate(e,t){if(X_(this.props,e,this.state,t)||(this.initDiffSyntaxMode(),this.clearListRowsHeightCache()),zm(this.props.diff,e.diff)||(this.diffToRestore=null,this.setState({diff:this.props.diff,lastExpandedHunk:null}),this.rowSelectableGroupStaticDataCache.clear()),null!==this.virtualListRef.current&&this.props.file.id!==e.file.id){if(this.virtualListRef.current.scrollToPosition(0),this.textSelectionStartRow=void 0,this.textSelectionEndRow=void 0,this.diffContainer){const e=document.getSelection();e?.containsNode(this.diffContainer,!0)&&e.empty()}this.rowSelectableGroupStaticDataCache.clear()}e.showSideBySideDiff!==this.props.showSideBySideDiff&&this.rowSelectableGroupStaticDataCache.clear(),this.state.lastExpandedHunk!==t.lastExpandedHunk&&this.focusAfterLastExpandedHunkChange()}focusListElement=()=>{const e=(0,De.findDOMNode)(this.virtualListRef.current);(e instanceof HTMLElement?e:null)?.focus()};focusAfterLastExpandedHunkChange(){if(null===this.state.lastExpandedHunk)return;if(0===this.hunkExpansionRefs.size)return void this.focusListElement();const e=Array.from(this.hunkExpansionRefs.keys()).sort(),{hunkIndex:t,expansionType:n}=this.state.lastExpandedHunk,r=`${t}-${n}`,i=this.hunkExpansionRefs.get(r);if(i)return void i.focus();function s(e){return parseInt(e.split("-").at(0)||"",10)}const o=e.find((e=>s(e)>=t));if(o)return void this.hunkExpansionRefs.get(o)?.focus();const a=e.reverse().find((e=>s(e)<=t));a?this.hunkExpansionRefs.get(a)?.focus():this.focusListElement()}canExpandDiff(){const e=this.props.fileContents;return null!==e&&e.canBeExpanded&&e.newContents.length>0}onDiffContainerRef=e=>{null===e?this.diffContainer?.removeEventListener("select-all",this.onSelectAll):e.addEventListener("select-all",this.onSelectAll),this.diffContainer=e};getCurrentDiffRows(){const{diff:e}=this.state;return Q_(e,this.props.showSideBySideDiff,this.canExpandDiff())}onRowsRendered=e=>{this.renderedStartIndex=e.startIndex,this.renderedStopIndex=e.stopIndex};render(){const{diff:e,searchLiveMessage:t,isSearching:n}=this.state,r=this.getCurrentDiffRows(),i=ri()("side-by-side-diff-container",{"unified-diff":!this.props.showSideBySideDiff,[`selecting-${this.state.selectingTextInRow}`]:this.props.showSideBySideDiff&&void 0!==this.state.selectingTextInRow,editable:qm(this.props.file)});return Ae.createElement("div",{className:i,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown},Ae.createElement(V_,{diff:e}),n&&Ae.createElement(q_,{onSearch:this.onSearch,onClose:this.onSearchCancel}),Ae.createElement("div",{className:"side-by-side-diff cm-s-default",ref:this.onDiffContainerRef},n&&Ae.createElement(qT,{message:t||""}),Ae.createElement(_h,{onResize:this.clearListRowsHeightCache},(({height:e,width:t})=>Ae.createElement(x_,{deferredMeasurementCache:K_,width:t,height:e,rowCount:r.length,rowHeight:this.getRowHeight,rowRenderer:this.renderRow,onRowsRendered:this.onRowsRendered,ref:this.virtualListRef,overscanIndicesGetter:this.overscanIndicesGetter,isSearching:n,selectedSearchResult:this.state.selectedSearchResult,searchQuery:this.state.searchQuery,showSideBySideDiff:this.props.showSideBySideDiff,beforeTokens:this.state.beforeTokens,afterTokens:this.state.afterTokens,temporarySelection:this.state.temporarySelection,hoveredHunk:this.state.hoveredHunk,showDiffCheckMarks:this.props.showDiffCheckMarks,isSelectable:qm(this.props.file),fileSelection:this.getSelection(),rows:r})))))}overscanIndicesGetter=e=>{const[t,n]=[this.textSelectionStartRow,this.textSelectionEndRow];if(void 0===t||void 0===n)return Zh(e);const r=Math.min(t,e.startIndex),i=Math.max(e.stopIndex,Math.min(e.cellCount-1,n));return Zh({...e,startIndex:r,stopIndex:i})};getRowSelectableGroupDetails(e){const{diff:t,hoveredHunk:n}=this.state,r=Q_(t,this.props.showSideBySideDiff,this.canExpandDiff()),i=r[e];if(void 0===i||!$m(i))return null;const{hunkStartLine:s}=i,o=this.getRowSelectableGroupStaticData(s,r),{diffRowStartIndex:a,diffRowStopIndex:l}=o,c=a===e;return{isFirst:c,isCheckAllRenderedInRow:c||a<this.renderedStartIndex&&e===this.renderedStartIndex,isHovered:n===s,selectionState:this.getSelectableGroupSelectionState(t.hunks,s),height:this.getRowSelectableGroupHeight(a,l),staticData:o}}getSelectableGroupSelectionState(e,t){const n=this.getSelection();if(void 0===n)return Mu.None;const r=U_(e,t);if(null===r)return Mu.None;const{from:i,to:s}=r;return n.isRangeSelected(i,s-i+1)}getRowSelectableGroupHeight=(e,t)=>{const n=e>this.renderedStartIndex?e:this.renderedStartIndex,r=void 0!==this.renderedStopIndex&&t>this.renderedStopIndex+10?this.renderedStopIndex+10:t;let i=0;for(let e=n;e<=r;e++)i+=this.getRowHeight({index:e});return i};getSelectableGroupRowIndexRange(e,t){const n=t.findIndex((t=>$m(t)&&t.hunkStartLine===e));let r=n;for(;void 0!==t[r+1]&&$m(t[r+1]);)r++;return{diffRowStartIndex:n,diffRowStopIndex:r}}getRowSelectableGroupStaticData=(e,t)=>{const n=this.rowSelectableGroupStaticDataCache.get(e);if(void 0!==n)return n;const{diffRowStartIndex:r,diffRowStopIndex:i}=this.getSelectableGroupRowIndexRange(e,t),s=new Set;let o=!1,a=!1;const l=t.slice(r,i+1),c=[];for(const e of l)e.type===Um.Added&&(s.add(e.data.lineNumber),o=!0,c.push(`${e.data.lineNumber}-after`)),e.type===Um.Deleted&&(s.add(e.data.lineNumber),a=!0,c.push(`${e.data.lineNumber}-before`)),e.type===Um.Modified&&(o=!0,a=!0,s.add(e.beforeData.lineNumber),s.add(e.afterData.lineNumber),c.push(`${e.beforeData.lineNumber}-before`,`${e.afterData.lineNumber}-after`));const u={diffRowStartIndex:r,diffRowStopIndex:i,diffType:o&&a?Um.Modified:o?Um.Added:Um.Deleted,lineNumbers:Array.from(s).sort(),lineNumbersIdentifiers:c};return this.rowSelectableGroupStaticDataCache.set(e,u),u};renderRow=({index:e,parent:t,style:n,key:r})=>{const{diff:i}=this.state,s=Q_(i,this.props.showSideBySideDiff,this.canExpandDiff()),o=s[e];if(void 0===o)return null;const a=s[e-1],l=s[e+1],c=Gm(o,a,l,Um.Deleted),u=Gm(o,a,l,Um.Added),h=(d=i.maxLineNumber,p=Math.log(d)*Math.LOG10E+1|0,10*Math.max(p,3)+5);var p,d;const m=this.createFullRow(o,e),f=this.getRowSelectableGroupDetails(e);return Ae.createElement(__,{cache:K_,columnIndex:0,key:r,parent:t,rowIndex:e},Ae.createElement("div",{key:r,style:n,role:"row","aria-rowindex":e},Ae.createElement(F_,{row:m,lineNumberWidth:h,numRow:e,isDiffSelectable:qm(this.props.file),rowSelectableGroup:f,showSideBySideDiff:this.props.showSideBySideDiff,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,onStartSelection:this.onStartSelection,onMouseEnterHunk:this.onMouseEnterHunk,onMouseLeaveHunk:this.onMouseLeaveHunk,onExpandHunk:this.onExpandHunk,onClickHunk:this.onClickHunk,onContextMenuLine:this.onContextMenuLine,onContextMenuHunk:this.onContextMenuHunk,onContextMenuExpandHunk:this.onContextMenuExpandHunk,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,beforeClassNames:c,afterClassNames:u,onHunkExpansionRef:this.onHunkExpansionRef,onLineNumberCheckedChanged:this.onLineNumberCheckedChanged})))};onLineNumberCheckedChanged=(e,t,n)=>{if(void 0===this.props.onIncludeChanged)return;let r=this.getSelection();if(void 0===r)return;const i=this.getDiffLineNumber(e,t),s=this.getDiffLineNumber(e,t);null!==i&&(r=r.withLineSelection(i,n)),null!==s&&(r=r.withLineSelection(s,n)),this.props.onIncludeChanged(r)};onHunkExpansionRef=(e,t,n)=>{const r=`${e}-${t}`;null===n?this.hunkExpansionRefs.delete(r):this.hunkExpansionRefs.set(r,n)};getRowHeight=e=>K_.rowHeight(e)??20;clearListRowsHeightCache=()=>{K_.clearAll()};async initDiffSyntaxMode(){const e=this.props.fileContents;if(null===e)return;const{diff:n}=this.state,r=this.props,i=this.state,s=function(e){const t=new Array,n=new Array,r=new Array;let i=!1,s=!1;for(const t of e)for(const e of t.lines)i=i||e.type===_u.Add,s=s||e.type===_u.Delete,r.push(e);for(const e of r)null!==e.oldLineNumber&&null!==e.newLineNumber?i&&!s?n.push(e.newLineNumber-1):t.push(e.oldLineNumber-1):null!==e.oldLineNumber?t.push(e.oldLineNumber-1):null!==e.newLineNumber&&n.push(e.newLineNumber-1);return{oldLineFilter:t,newLineFilter:n}}(n.hunks),o=await async function(e,n,r){const{file:i,oldContents:s,newContents:o}=e,a=nf(i),[l,c]=await Promise.all([null===s?{}:w_(s,t.basename(a),t.extname(a),4,r.oldLineFilter).catch((e=>(log.error("Highlighter worked failed for old contents",e),{}))),null===o?{}:w_(o,t.basename(i.path),t.extname(i.path),4,r.newLineFilter).catch((e=>(log.error("Highlighter worked failed for new contents",e),{})))]);return{oldTokens:l,newTokens:c}}(e,0,s);X_(this.props,r,this.state,i)&&this.setState({beforeTokens:o.oldTokens,afterTokens:o.newTokens})}getSelection(){return qm(this.props.file)?this.props.file.selection:void 0}createFullRow(e,t){if(e.type===Um.Added)return{...e,data:this.getRowDataPopulated(e.data,t,Zm.After,this.state.afterTokens)};if(e.type===Um.Deleted)return{...e,data:this.getRowDataPopulated(e.data,t,Zm.Before,this.state.beforeTokens)};if(e.type===Um.Modified)return{...e,beforeData:this.getRowDataPopulated(e.beforeData,t,Zm.Before,this.state.beforeTokens),afterData:this.getRowDataPopulated(e.afterData,t,Zm.After,this.state.afterTokens)};if(e.type===Um.Context){const n=W_(e.beforeLineNumber,this.state.beforeTokens)??W_(e.afterLineNumber,this.state.afterTokens),r=[...e.beforeTokens],i=[...e.afterTokens];null!==n&&(r.push(n),i.push(n));const s=this.getSearchTokens(t,Zm.Before);void 0!==s&&s.forEach((e=>r.push(e)));const o=this.getSearchTokens(t,Zm.After);return void 0!==o&&o.forEach((e=>i.push(e))),{...e,beforeTokens:r,afterTokens:i}}return e}getRowDataPopulated(e,t,n,r){const i=this.getSearchTokens(t,n),s=W_(e.lineNumber,r),o=[...e.tokens];return void 0!==i&&i.forEach((e=>o.push(e))),null!==s&&o.push(s),{...e,tokens:o,isSelected:null!==e.diffLineNumber&&rM(e.diffLineNumber,this.getSelection(),this.state.temporarySelection)}}getSearchTokens(e,t){const{searchResults:n,selectedSearchResult:r}=this.state;if(void 0===n)return;const i=n.getLineTokens(e,t);if(void 0!==i){if(void 0!==i&&void 0!==r){const s=n.get(r);if(e===s?.row&&t===s.column&&void 0!==i[s.offset])return[i,{[s.offset]:{length:s.length,token:"selected"}}]}return[i]}}getDiffLineNumber(e,t){const{diff:n}=this.state,r=Q_(n,this.props.showSideBySideDiff,this.canExpandDiff())[e];return void 0===r?null:this.getDiffRowLineNumber(r,t)}getDiffRowLineNumber(e,t){return e.type===Um.Added||e.type===Um.Deleted?e.data.diffLineNumber:e.type===Um.Modified?t===Zm.After?e.afterData.diffLineNumber:e.beforeData.diffLineNumber:null}onMouseDown=e=>{if(!this.props.showSideBySideDiff)return;if(!(e.target instanceof HTMLElement))return;const t=e.target.closest(".before"),n=e.target.closest(".after");null!==t?this.setState({selectingTextInRow:"before"}):null!==n&&this.setState({selectingTextInRow:"after"})};onKeyDown=e=>{const t=e.altKey||e.metaKey||e.shiftKey;"a"===e.key&&e.ctrlKey&&!t&&this.onSelectAll(e)};onSelectAll=e=>{this.diffContainer&&(e?.preventDefault(),document.getSelection()?.selectAllChildren(this.diffContainer))};onStartSelection=(e,t,n)=>{const r=this.getDiffLineNumber(e,t);if(null===r)return;const i={from:r,to:r,isSelected:n};this.setState({temporarySelection:i}),document.addEventListener("mouseup",this.onEndSelection,{once:!0}),document.addEventListener("mousemove",this.onUpdateSelection)};onUpdateSelection=e=>{const{temporarySelection:t}=this.state,n=this.virtualListRef.current;if(!t||!n)return;const r=_e().findDOMNode(n);if(!(r instanceof Element))return;const i=r.getBoundingClientRect(),s=e.clientY-i.top+r.scrollTop,o=this.getCurrentDiffRows(),a=o.length;let l=0;for(let r=0;r<a;r++){let a=K_.getHeight(r,0);if(void 0===a&&(n.recomputeRowHeights(r),a=K_.getHeight(r,0)??20),s>=l&&s<l+a){const s=o[r];let a=Zm.Before;this.props.showSideBySideDiff&&(a=e.clientX<=i.left+i.width/2?Zm.Before:Zm.After);const l=this.getDiffRowLineNumber(s,a);return n.scrollToRow(r),void(null!==l&&this.setState({temporarySelection:{...t,to:l}}))}l+=a}};onEndSelection=()=>{let e=this.getSelection();const{temporarySelection:t}=this.state;if(void 0===e||void 0===t)return;const{from:n,to:r,isSelected:i}=t,s=Math.min(n,r),o=Math.max(n,r);for(let t=s;t<=o;t++)e=e.withLineSelection(t,i);this.props.onIncludeChanged?.(e),this.setState({temporarySelection:void 0})};onMouseEnterHunk=e=>{void 0===this.state.temporarySelection&&this.setState({hoveredHunk:e})};onMouseLeaveHunk=()=>{this.setState({hoveredHunk:void 0})};onExpandHunk=(e,t)=>{const{diff:n}=this.state;if(-1===e||e>=n.hunks.length)return;this.setState({lastExpandedHunk:{hunkIndex:e,expansionType:t}});const r=t===Pu.Down?"down":"up";this.expandHunk(n.hunks[e],r)};onClickHunk=(e,t)=>{if(void 0===this.props.onIncludeChanged)return;const{diff:n}=this.state,r=this.getSelection();if(void 0!==r){const i=U_(n.hunks,e);if(null!==i){const{from:e,to:n}=i,s=r.withRangeSelection(e,n-e+1,t);this.props.onIncludeChanged(s)}}};onContextMenuText=e=>{const t=window.getSelection()?.toString().length??0;if(e.target instanceof HTMLElement&&(null!==e.target.closest(".line-number")||null!==e.target.closest(".hunk-handle")||null!==e.target.closest(".hunk-expansion-handle")||e.target instanceof HTMLInputElement))return;const n=[{label:"复制",role:t>0?"copy":void 0,enabled:t>0},{label:"全选",action:()=>this.onSelectAll()}],r=this.buildExpandMenuItem();null!==r&&n.push({type:"separator"},r),hh(n)};onContextMenuLine=e=>{const{file:t,hideWhitespaceInDiff:n}=this.props,{diff:r}=this.state;if(!qm(t))return;if(n)return;if(void 0===this.props.onDiscardChanges)return;const i=U_(r.hunks,e);null!==i&&null!==i.type&&hh([{label:this.getDiscardLabel(i.type,1),action:()=>this.onDiscardChanges(e)}])};buildExpandMenuItem(){const{diff:e}=this.state;return this.canExpandDiff()?null===this.diffToRestore?{label:"展开整个文件",action:this.onExpandWholeFile,enabled:1!==e.hunks.length||e.hunks[0].expansionType!==Pu.None}:{label:"折叠扩展的行",action:this.onCollapseExpandedLines}:null}onExpandWholeFile=()=>{const e=this.props.fileContents,{diff:t}=this.state;if(null===e||!this.canExpandDiff())return;const n=function(e,t){let n=e;for(;n.hunks.length>1||1===n.hunks.length&&n.hunks[0].expansionType===Pu.Up;){const e=n.hunks[0],r=Xm(n,e,e.expansionType===Pu.Up?"up":"down",t,t.length);if(void 0===r)return;n=r}return n}(t,e.newContents);void 0!==n&&(this.diffToRestore=t,this.setState({diff:n}))};onCollapseExpandedLines=()=>{null!==this.diffToRestore&&(this.setState({diff:this.diffToRestore}),this.diffToRestore=null)};onContextMenuHunk=e=>{if(!qm(this.props.file))return;if(void 0===this.props.onDiscardChanges)return;const t=U_(this.state.diff.hunks,e);null!==t&&null!==t.type&&hh([{label:this.getDiscardLabel(t.type,t.to-t.from+1),action:()=>this.onDiscardChanges(t.from,t.to)}])};onContextMenuExpandHunk=()=>{const e=this.buildExpandMenuItem();null!==e&&hh([e])};getDiscardLabel(e,t){const n=this.props.askForConfirmationOnDiscardChanges?"…":"";let r="";return e===L_.Additions?r="added":e===L_.Deletions?r="removed":e===L_.Mixed?r="modified":ct(0,`Invalid range type: ${e}`),`Discard ${r} line${t>1?"s":""}${n}`}onDiscardChanges(e,t=e){const n=this.getSelection();if(void 0===n)return;if(void 0===this.props.onDiscardChanges)return;const r=n.withSelectNone().withRangeSelection(e,t-e+1,!0);this.props.onDiscardChanges(this.props.diff,r)}onWindowKeyDown=e=>{e.defaultPrevented||!e.ctrlKey||e.shiftKey||e.altKey||"f"!==e.key||(e.preventDefault(),this.showSearch())};showSearch=()=>{this.state.isSearching||this.resetSearch(!0)};onSearch=(e,t)=>{const{searchResults:n}=this.state;""===e?.trim()?this.resetSearch(!0,"No results"):e===this.state.searchQuery&&n?this.continueSearch(n,t):this.startSearch(e,t)};startSearch=(e,t)=>{const n=function(e,t,n,r){if(0===n.length)return;const i=new tM,s=new RegExp(z_()(n),"gi"),o=Q_(e,t,r);for(const[e,n]of o.entries())if(n.type!==Um.Hunk)for(const r of nM(n,t))for(const t of r.content.matchAll(s))void 0!==t.index&&i.add(e,r.type,t.index,t[0].length);return i}(this.state.diff,this.props.showSideBySideDiff,e,this.canExpandDiff());if(void 0===n||0===n.length)this.resetSearch(!0,`No results for "${e}"`);else{const t=`Result 1 of ${n.length} for "${e}"`;this.scrollToSearchResult(0),this.setState({searchQuery:e,searchResults:n,selectedSearchResult:0,searchLiveMessage:t})}};continueSearch=(e,t)=>{const{searchQuery:n}=this.state;let{selectedSearchResult:r=0}=this.state;r=(r+("next"===t?1:-1)+e.length)%e.length;const i=`Result ${r+1} of ${e.length} for "${n}"`;this.scrollToSearchResult(r),this.setState({searchResults:e,selectedSearchResult:r,searchLiveMessage:i})};onSearchCancel=()=>{this.resetSearch(!1)};scrollToSearchResult=e=>{const{searchResults:t}=this.state,n=t?.get(e)?.row;void 0!==n&&this.virtualListRef.current?.scrollToRow(n)};resetSearch(e,t){this.setState({selectedSearchResult:void 0,searchQuery:void 0,searchResults:void 0,searchLiveMessage:t,isSearching:e})}expandHunk(e,t){const n=this.props.fileContents,{diff:r}=this.state;if(null===n||!this.canExpandDiff())return;const i=Xm(r,e,t,n.newContents);void 0!==i&&this.setState({diff:i})}}function X_(e,t,n,r){return(e===t||e.file.id===t.file.id&&e.showSideBySideDiff===t.showSideBySideDiff)&&n.diff.text===r.diff.text&&t.fileContents?.file.id===e.fileContents?.file.id}const Q_=Tr((function(e,t,n){const r=new Array;return e.hunks.forEach(((e,i)=>{for(const s of function(e,t,n,r){const i=new Array;let s=new Array;for(const[o,a]of t.lines.entries()){const l=t.unifiedDiffStart+o;if(a.type!==_u.Delete&&a.type!==_u.Add){if(s.length>0){for(const e of J_(s,n))i.push(e);s=[]}a.type!==_u.Hunk?a.type!==_u.Context?ct(a.type,`Invalid line type: ${a.type}`):(ht(a.oldLineNumber,`No oldLineNumber for ${l}`),ht(a.newLineNumber,`No newLineNumber for ${l}`),i.push({type:Um.Context,content:a.content,beforeLineNumber:a.oldLineNumber,afterLineNumber:a.newLineNumber,beforeTokens:[],afterTokens:[]})):i.push({type:Um.Hunk,content:a.text,expansionType:r?t.expansionType:Pu.None,hunkIndex:e})}else s.push({line:a,diffLineNumber:l})}if(s.length>0)for(const e of J_(s,n))i.push(e);return i}(i,e,t,n))r.push(s)})),r}));function J_(e,t){if(0===e.length)return[];const n=e[0].diffLineNumber,r=new Array,i=new Array;for(const t of e)t.line.type===_u.Add?r.push(t):t.line.type===_u.Delete&&i.push(t);const s=new Array,o=new Array,a=new Array;if(r.length===i.length)for(let e=0;e<i.length;e++){const t=r[e],n=i[e];if(t.line.content.length<1024&&n.line.content.length<1024){const{before:r,after:i}=Wm(n.line.content,t.line.content);o[e]=r,a[e]=i}}let l=0;for(;t&&l<r.length&&l<i.length;){const e=ut("Unexpected null line",r[l]),t=ut("Unexpected null line",i[l]);s.push({type:Um.Modified,beforeData:eM(t,"oldLineNumber",o.shift()),afterData:eM(e,"newLineNumber",a.shift()),hunkStartLine:n}),l++}for(let e=l;e<i.length;e++){const t=ut("Unexpected null line",i[e]);s.push({type:Um.Deleted,data:eM(t,"oldLineNumber",o.shift()),hunkStartLine:n})}for(let e=l;e<r.length;e++){const t=ut("Unexpected null line",r[e]);s.push({type:Um.Added,data:eM(t,"newLineNumber",a.shift()),hunkStartLine:n})}return s}function eM({line:e,diffLineNumber:t},n,r){const i=ut(`Expecting ${n} value for ${e}`,e[n]),s=new Array;return void 0!==r&&s.push(r),{content:e.content,lineNumber:i,diffLineNumber:e.originalLineNumber,noNewLineIndicator:e.noTrailingNewLine,tokens:s}}class tM{lookup=new Map;hits=new Array;getKey(e,t){return`${e}.${t}`}add(e,t,n,r){const i=this.getKey(e,t),s=this.lookup.get(i),o={length:r,token:"search-result"};void 0!==s?s[n]=o:this.lookup.set(i,{[n]:o}),this.hits.push([e,t,n,r])}get length(){return this.hits.length}get(e){const t=this.hits[e];return void 0===t?void 0:{row:t[0],column:t[1],offset:t[2],length:t[3]}}getLineTokens(e,t){return this.lookup.get(this.getKey(e,t))}}function*nM(e,t){if(e.type===Um.Hunk)yield{type:Zm.Before,content:e.content};else if(e.type===Um.Added){const n=t?Zm.After:Zm.Before;yield{type:n,content:e.data.content}}else e.type===Um.Deleted?yield{type:Zm.Before,content:e.data.content}:e.type===Um.Context?(yield{type:Zm.Before,content:e.content},t&&(yield{type:Zm.After,content:e.content})):e.type===Um.Modified?(yield{type:Zm.Before,content:e.beforeData.content},yield{type:Zm.After,content:e.afterData.content}):ct(0,`Unknown row type ${e}`)}function rM(e,t,n){const r=t?.isSelected(e)??!1;if(void 0===n)return r;const i=function(e,t){return void 0!==t&&(e>=Math.min(t.from,t.to)&&e<=Math.max(t.to,t.from))}(e,n);return n.isSelected?r||i:r&&!i}class iM extends Ae.Component{render(){const e="primary"===this.props.type,t=ri()("suggested-action",{primary:e}),n=void 0===this.props.description?void 0:Ae.createElement("p",{className:"description"},this.props.description);return Ae.createElement("div",{className:t},this.props.image&&Ae.createElement("div",{className:"image-wrapper"},this.props.image),Ae.createElement("div",{className:"text-wrapper"},Ae.createElement("h2",null,this.props.title),n,this.props.discoverabilityContent&&Ae.createElement("p",{className:"discoverability"},this.props.discoverabilityContent)),Ae.createElement(mi,{type:e?"submit":void 0,onClick:this.props.onClick,disabled:this.props.disabled},this.props.buttonText))}}class sM extends Ae.Component{render(){return Ae.createElement(iM,{title:this.props.title,description:this.props.description,discoverabilityContent:this.props.discoverabilityContent,buttonText:this.props.buttonText,onClick:this.onClick,type:this.props.type,disabled:this.props.disabled})}onClick=e=>{void 0!==this.props.onClick&&this.props.onClick(e),e.defaultPrevented||M(this.props.menuItemId)}}var oM=n(1782),aM=n.n(oM);const lM=e=>{const t="suggested-action-group "+(e.type?e.type:"normal");if("replace"===e.transitions){const n=void 0===e.enableTransitions||e.enableTransitions;return Ae.createElement(aM(),{transitionAppear:!1,overflowHidden:!1,transitionEnter:n,transitionLeave:n,transitionName:e.transitions,component:"div",className:t,transitionEnterTimeout:750,transitionLeaveTimeout:500},e.children)}return Ae.createElement("div",{className:t},e.children)};class cM extends xe().Component{constructor(e){super(e),this.state={showCopied:!1}}onCopy=async e=>{e.preventDefault(),f.clipboard.writeText(this.props.copyContent),this.setState({showCopied:!0}),await uw(2e3),this.setState({showCopied:!1})};renderSymbol(){const{showCopied:e}=this.state,t=e?Xi:xs;return xe().createElement(yi,{symbol:t,height:24})}render(){const{ariaLabel:e}=this.props,{showCopied:t}=this.state,n="Copied!",r=t?n:"";return xe().createElement(mi,{className:"copy-button",tooltip:t?n:e,ariaLabel:e,onClick:this.onCopy,openTooltipOnClick:!0,applyTooltipAriaDescribedBy:!1},this.renderSymbol(),xe().createElement(qT,{message:r,trackedUserInput:r}))}}class uM extends xe().Component{constructor(e){super(e)}render(){return xe().createElement("div",{className:"changes-interstitial submodule-diff"},xe().createElement("div",{className:"content"},xe().createElement("div",{className:"interstitial-header"},xe().createElement("div",{className:"text"},xe().createElement("h1",null,"子模块变更"))),this.renderSubmoduleInfo(),this.renderCommitChangeInfo(),this.renderSubmodulesChangesInfo(),this.renderOpenSubmoduleAction()))}renderSubmoduleInfo(){if(null===this.props.diff.url)return null;const e=fr(this.props.diff.url);if(null===e)return null;const t="github.com"===e.hostname?"":` (${e.hostname})`;return this.renderSubmoduleDiffItem({octicon:Ca,className:"info-icon"},xe().createElement(xe().Fragment,null,"这是一个基于代码库的子模块。"," ",xe().createElement(Hx,{uri:`https://${e.hostname}/${e.owner}/${e.name}`},e.owner,"/",e.name,t),"."))}renderCommitChangeInfo(){const{diff:e,readOnly:t}=this.props,{oldSHA:n,newSHA:r}=e,i=t?"was":"has been",s=t?"":" This change can be committed to the parent repository.";return null!==n&&null!==r?this.renderSubmoduleDiffItem({octicon:Vs,className:"modified-icon"},xe().createElement(xe().Fragment,null,"This submodule changed its commit from"," ",this.renderCommitSHA(n,"previous")," to"," ",this.renderCommitSHA(r,"new"),".",s)):null===n&&null!==r?this.renderSubmoduleDiffItem({octicon:Ws,className:"added-icon"},xe().createElement(xe().Fragment,null,"This submodule ",i," added pointing at commit"," ",this.renderCommitSHA(r),".",s)):null!==n&&null===r?this.renderSubmoduleDiffItem({octicon:Gs,className:"removed-icon"},xe().createElement(xe().Fragment,null,"This submodule ",i," removed while it was pointing at commit"," ",this.renderCommitSHA(n),".",s)):null}renderCommitSHA(e,t){const n=void 0===t?"":` ${t}`;return xe().createElement(xe().Fragment,null,xe().createElement(CD,null,Jd(e)),xe().createElement(cM,{ariaLabel:`Copy the full${n} SHA`,copyContent:e}))}renderSubmodulesChangesInfo(){const{diff:e}=this.props;if(!e.status.untrackedChanges&&!e.status.modifiedChanges)return null;const t=e.status.untrackedChanges&&e.status.modifiedChanges?"修改过的和未跟踪的":e.status.untrackedChanges?"未跟踪的":"修改过的";return this.renderSubmoduleDiffItem({octicon:Do,className:"untracked-icon"},xe().createElement(xe().Fragment,null,"这个子模块有 ",t," 更改。这些更改必须在子模块内提交后才能成为父仓库的一部分。"))}renderSubmoduleDiffItem(e,t){return xe().createElement("div",{className:"item"},xe().createElement(yi,{symbol:e.octicon,className:e.className}),xe().createElement("div",{className:"content"},t))}renderOpenSubmoduleAction(){return null===this.props.diff.url?null:xe().createElement("span",null,xe().createElement(iM,{title:"在 GitHub 桌面版中打开此子模块",description:"你可以将这个子模块在 GitHub Desktop 中作为普通代码库打开,以便管理并提交其中的任何更改。",buttonText:"打开存储库",type:"primary",onClick:this.onOpenSubmoduleClick}))}onOpenSubmoduleClick=()=>{this.props.onOpenSubmodule?.(this.props.diff.fullPath)}}const hM=Pt(__dirname,"static/ufo-alert.svg");class pM extends Ae.Component{constructor(e){super(e),this.state={forceShowLargeDiff:!1}}render(){const e=this.props.diff;switch(e.kind){case Du.Text:return this.renderText(e);case Du.Binary:return this.renderBinaryFile();case Du.Submodule:return this.renderSubmoduleDiff(e);case Du.Image:return this.renderImage(e);case Du.LargeText:return this.state.forceShowLargeDiff?this.renderLargeText(e):this.renderLargeTextDiff();case Du.Unrenderable:return this.renderUnrenderableDiff();default:return ct(0,`Unsupported diff type: ${e}`)}}renderImage(e){return e.current&&e.previous?Ae.createElement(p_,{onChangeDiffType:this.props.onChangeImageDiffType,diffType:this.props.imageDiffType,current:e.current,previous:e.previous}):!e.current||this.props.file.status.kind!==Nu.New&&this.props.file.status.kind!==Nu.Untracked?e.previous&&this.props.file.status.kind===Nu.Deleted?Ae.createElement(m_,{previous:e.previous}):null:Ae.createElement(d_,{current:e.current})}renderLargeTextDiff(){return Ae.createElement("div",{className:"panel empty large-diff"},Ae.createElement("img",{src:hM,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"description"},Ae.createElement("p",null,"差异太大,无法默认显示。"),Ae.createElement("p",null,"你可以尝试强制显示,但可能会影响性能。")),Ae.createElement(mi,{onClick:this.showLargeDiff},"显示差异"))}renderUnrenderableDiff(){return Ae.createElement("div",{className:"panel empty large-diff"},Ae.createElement("img",{src:hM,alt:""}),Ae.createElement("p",null,"差异太大,无法显示。"))}renderLargeText(e){const t={text:e.text,hunks:e.hunks,kind:Du.Text,lineEndingsChange:e.lineEndingsChange,maxLineNumber:e.maxLineNumber,hasHiddenBidiChars:e.hasHiddenBidiChars};return this.renderTextDiff(t)}renderText(e){return 0===e.hunks.length?this.props.file.status.kind===Nu.New||this.props.file.status.kind===Nu.Untracked?Ae.createElement("div",{className:"panel empty"},"空文件"):this.props.file.status.kind===Nu.Renamed?Ae.createElement("div",{className:"panel renamed"},"文件已重命名,但未进行更改"):qu(this.props.file.status)&&Gu(this.props.file.status)?Ae.createElement("div",{className:"panel empty"},"文件冲突,必须通过命令行解决"):this.props.hideWhitespaceInDiff?Ae.createElement("div",{className:"panel empty"},"仅找到空白更改"):Ae.createElement("div",{className:"panel empty"},"未找到更改内容"):this.renderTextDiff(e)}renderSubmoduleDiff(e){return Ae.createElement(uM,{onOpenSubmodule:this.props.onOpenSubmodule,diff:e,readOnly:this.props.readOnly})}renderBinaryFile(){return Ae.createElement(f_,{path:this.props.file.path,repository:this.props.repository,onOpenBinaryFile:this.props.onOpenBinaryFile})}renderTextDiff(e){return Ae.createElement(Y_,{file:this.props.file,diff:e,fileContents:this.props.fileContents,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showSideBySideDiff:this.props.showSideBySideDiff,onIncludeChanged:this.props.onIncludeChanged,onDiscardChanges:this.props.onDiscardChanges,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,showDiffCheckMarks:this.props.showDiffCheckMarks})}showLargeDiff=()=>{this.setState({forceShowLargeDiff:!0})}}var dM=n(5478),mM=n.n(dM);function fM(e,t){return e===t||e.id===t.id}function gM(e,t){return e===t||yM(e)&&yM(t)&&zm(e,t)}function yM(e){return e.kind===Du.Text||e.kind===Du.LargeText}class wM extends Ae.Component{static getDerivedStateFromProps(e,t){const n=null!==t.fileContents&&fM(t.fileContents.file,e.file)?t.fileContents:null,r=null===e.diff||yM(e.diff)&&null===n;return{isLoadingDiff:r,...r?void 0:{propSnapshot:e},...r!==t.isLoadingDiff?{isLoadingSlow:!1}:void 0,diff:null===e.diff||yM(e.diff)?t.diff:e.diff,fileContents:n}}slowLoadingTimeoutId=null;loadingState=null;constructor(e){super(e);const t=null===e.diff||yM(e.diff);this.state={isLoadingDiff:t,isLoadingSlow:!1,propSnapshot:e,diff:e.diff,fileContents:null}}componentDidMount(){this.state.isLoadingDiff&&this.scheduleSlowLoadingTimeout(),this.loadFileContentsIfNeeded(null)}componentWillUnmount(){this.clearSlowLoadingTimeout()}componentDidUpdate(e,t){this.state.isLoadingDiff!==t.isLoadingDiff&&(this.state.isLoadingDiff?this.scheduleSlowLoadingTimeout():this.clearSlowLoadingTimeout()),this.loadFileContentsIfNeeded(e.diff)}async loadFileContentsIfNeeded(e){const{diff:t,file:n}=this.props;if(null===t||!yM(t))return;const r=this.state.fileContents;if(null!==r&&fM(r.file,n)&&null!==e&&gM(e,t))return;if(null!==this.loadingState&&fM(this.loadingState.file,n)&&gM(this.loadingState.diff,t))return;this.loadingState={file:n,diff:t};const i=await async function(e,t){const[n,r]=await Promise.all([v_(e,t).catch((e=>(log.error("Could not load old contents for syntax highlighting",e),null))),C_(e,t).catch((e=>(log.error("Could not load new contents for syntax highlighting",e),null)))]);return{file:t,oldContents:n?.toString("utf8").split(/\r?\n/)??[],newContents:r?.toString("utf8").split(/\r?\n/)??[],canBeExpanded:null!==r&&r.length<=262143}}(this.props.repository,n);if(this.loadingState=null,!fM(n,this.props.file))return;const s=i.canBeExpanded&&t.kind===Du.Text?function(e,t,n,r){const i=t.at(-1);if(void 0===i)return null;if(i.header.newStartLine+i.header.newLineCount>=r)return null;const s=i.header.oldStartLine+i.header.oldLineCount,o=i.header.newStartLine+i.header.newLineCount,a=new Wu(s,n-s+1,o,r-o+1),l=new Fu("",_u.Hunk,null,null,null,!1),c=new $u(a,[l],i.unifiedDiffEnd+1,i.unifiedDiffEnd+1,Pu.Down),u=[...t,c];return{...e,text:jm(u),hunks:u}}(t,t.hunks,i.oldContents.length,i.newContents.length):null;this.setState({diff:s??t,fileContents:i})}onSlowLoadingTimeout=()=>{this.setState({isLoadingSlow:!0})};scheduleSlowLoadingTimeout(){this.clearSlowLoadingTimeout(),this.slowLoadingTimeoutId=window.setTimeout(this.onSlowLoadingTimeout,150)}clearSlowLoadingTimeout(){null!==this.slowLoadingTimeoutId&&(window.clearTimeout(this.slowLoadingTimeoutId),this.slowLoadingTimeoutId=null)}render(){const{isLoadingDiff:e,isLoadingSlow:t,fileContents:n,diff:r}=this.state,{repository:i,imageDiffType:s,readOnly:o,hideWhitespaceInDiff:a,showSideBySideDiff:l,showDiffCheckMarks:c,onIncludeChanged:u,onDiscardChanges:h,file:p,onOpenBinaryFile:d,onOpenSubmodule:m,onChangeImageDiffType:f,onHideWhitespaceInDiffChanged:g}=this.state.propSnapshot,y=ri()("seamless-diff-switcher",{loading:e,slow:e&&t,"has-diff":null!==r}),w=e?Ae.createElement("div",{className:"loading-indicator"},Ae.createElement(Dx,null)):null;return Ae.createElement("div",{className:y},null!==r?Ae.createElement(pM,{repository:i,imageDiffType:s,file:p,diff:r,fileContents:n,readOnly:o,hideWhitespaceInDiff:a,showSideBySideDiff:l,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,showDiffCheckMarks:c,onIncludeChanged:e?mM():u,onDiscardChanges:e?mM():h,onOpenBinaryFile:e?mM():d,onOpenSubmodule:e?mM():m,onChangeImageDiffType:e?mM():f,onHideWhitespaceInDiffChanged:e?mM():g}):null,w)}}const bM="stash-diff-viewer";class vM extends Ae.PureComponent{onSelectedFileChanged=e=>this.props.dispatcher.selectStashedFile(this.props.repository,e);onRowDoubleClick=e=>{const t=this.getFiles()[e];this.props.onOpenInExternalEditor(t.path)};onResize=e=>this.props.dispatcher.setStashedFilesWidth(e);onReset=()=>this.props.dispatcher.resetStashedFilesWidth();getFiles=()=>this.props.stashEntry.files.kind===Ew.Loaded?this.props.stashEntry.files.files:new Array;render(){const{stashEntry:e,selectedStashedFile:t,stashedFileDiff:n,repository:r,dispatcher:i,imageDiffType:s,fileListWidth:o,onOpenBinaryFile:a,onChangeImageDiffType:l,onOpenSubmodule:c}=this.props,u=this.getFiles(),h=null!==t?Ae.createElement(wM,{repository:r,readOnly:!0,file:t,diff:n,imageDiffType:s,hideWhitespaceInDiff:!1,showDiffCheckMarks:!1,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:a,onChangeImageDiffType:l,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,onOpenSubmodule:c}):null,p=ry(o);return Ae.createElement("section",{id:bM},Ae.createElement(s_,{stashEntry:e,repository:r,dispatcher:i,askForConfirmationOnDiscardStash:this.props.askForConfirmationOnDiscardStash}),Ae.createElement("div",{className:"commit-details"},Ae.createElement(nv,{width:o.value,minimumWidth:o.min,maximumWidth:o.max,onResize:this.onResize,onReset:this.onReset},Ae.createElement(i_,{files:u,onSelectedFileChanged:this.onSelectedFileChanged,selectedFile:t,availableWidth:p,onRowDoubleClick:this.onRowDoubleClick})),h))}}const CM={w:16,h:16,p:["M10.5 1.286h-9a.214.214 0 0 0-.214.214v9a.214.214 0 0 0 .214.214h9a.214.214 0 0 0 .214-.214v-9a.214.214 0 0 0-.214-.214zM1.5 0h9A1.5 1.5 0 0 1 12 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 10.5v-9A1.5 1.5 0 0 1 1.5 0zm5.712 7.212a1.714 1.714 0 1 1-2.424-2.424 1.714 1.714 0 0 1 2.424 2.424zM2.015 12.71c.102.729.728 1.29 1.485 1.29h9a1.5 1.5 0 0 0 1.5-1.5v-9a1.5 1.5 0 0 0-1.29-1.485v1.442a.216.216 0 0 1 .004.043v9a.214.214 0 0 1-.214.214h-9a.216.216 0 0 1-.043-.004H2.015zm2 2c.102.729.728 1.29 1.485 1.29h9a1.5 1.5 0 0 0 1.5-1.5v-9a1.5 1.5 0 0 0-1.29-1.485v1.442a.216.216 0 0 1 .004.043v9a.214.214 0 0 1-.214.214h-9a.216.216 0 0 1-.043-.004H4.015z"]},SM=".gitignore";function EM(e,t){if(null!==t){if(0===e.files.length)return cA.Off;const t=e.files.every((e=>e.status.kind===Nu.Untracked));if(t)return cA.Off;const n=e.files.every((e=>e.status.kind!==Nu.Untracked));return n?cA.On:cA.Mixed}const{includeAll:n}=e;return!0===n?cA.On:!1===n?cA.Off:cA.Mixed}function kM(e){const t=e.selectedFileIDs,n=[];for(const r of t){const t=e.workingDirectory.findFileIndexByID(r);-1!==t&&n.push(t)}return n}class RM extends Ae.Component{headerRef=di();includeAllCheckBoxRef=Ae.createRef();constructor(e){super(e),this.state={selectedRows:kM(e),focusedRow:null}}componentWillReceiveProps(e){ap(e.selectedFileIDs,this.props.selectedFileIDs)&&ap(e.workingDirectory.files,this.props.workingDirectory.files)||this.setState({selectedRows:kM(e)})}onIncludeAllChanged=e=>{const t=e.currentTarget.checked;this.props.onSelectAll(t)};renderRow=e=>{const{workingDirectory:t,rebaseConflictState:n,isCommitting:r,onIncludeChanged:i,availableWidth:s}=this.props,o=t.files[e],a=o.selection.getSelectionType(),{submoduleStatus:l}=o.status,c=void 0!==l&&o.status.kind===Nu.Modified&&!l.commitChanged,u=void 0!==l&&(l.commitChanged||o.status.kind===Nu.New)&&(l.modifiedChanges||l.untrackedChanges),h=a===Mu.All||a!==Mu.None&&null,p=!c&&(null!==n?o.status.kind!==Nu.Untracked:h),d=r||null!==n||c,m=c?"This submodule change cannot be added to a commit in this repository because it contains changes that have not been committed.":u?"Only changes that have been committed within the submodule will be added to this repository. You need to commit any other modified or untracked changes in the submodule before including them in this repository.":void 0;return Ae.createElement(t_,{file:o,include:u&&p?null:p,key:o.id,onIncludeChanged:i,availableWidth:s,disableSelection:d,checkboxTooltip:m,focused:this.state.focusedRow===e})};onDiscardAllChanges=()=>{this.props.onDiscardChangesFromFiles(this.props.workingDirectory.files,!0)};onStashChanges=()=>{this.props.dispatcher.createStashForCurrentBranch(this.props.repository)};onDiscardChanges=e=>{const t=this.props.workingDirectory;if(1===e.length){const n=t.files.find((t=>t.path===e[0]));null!=n&&this.props.onDiscardChanges(n)}else{const n=new Array;if(e.forEach((e=>{const r=t.files.find((t=>t.path===e));null!=r&&n.push(r)})),n.length>0){const e=n.length===t.files.length;this.props.onDiscardChangesFromFiles(n,e)}}};getDiscardChangesMenuItemLabel=e=>{const t=1===e.length?"放弃更改":`放弃 ${e.length} 项选中的更改`;return this.props.askForConfirmationOnDiscardChanges?`${t}…`:t};onContextMenu=e=>{if(e.preventDefault(),null!==this.props.rebaseConflictState||this.props.isCommitting)return;const t=this.props.workingDirectory.files.length>0,n=null!==this.props.stashEntry,r=null!==this.props.conflictState||Uy(this.props.workingDirectory);hh([{label:"放弃所有更改...",action:this.onDiscardAllChanges,enabled:t},{label:n?"暂存所有更改...":"暂存所有更改",action:this.onStashChanges,enabled:t&&null!==this.props.branch&&!r}])};getDiscardChangesMenuItem=e=>({label:this.getDiscardChangesMenuItemLabel(e),action:()=>this.onDiscardChanges(e)});getCopyPathMenuItem=e=>({label:mh,action:()=>{const n=t.join(this.props.repository.path,e.path);f.clipboard.writeText(n)}});getCopyRelativePathMenuItem=e=>({label:fh,action:()=>f.clipboard.writeText(t.normalize(e.path))});getCopySelectedPathsMenuItem=e=>({label:"复制路径",action:()=>{const n=e.map((e=>t.join(this.props.repository.path,e.path)));f.clipboard.writeText(n.join(hn.EOL))}});getCopySelectedRelativePathsMenuItem=e=>({label:"复制相对路径",action:()=>{const n=e.map((e=>t.normalize(e.path)));f.clipboard.writeText(n.join(hn.EOL))}});getRevealInFileManagerMenuItem=e=>({label:yh,action:()=>dt(this.props.repository,e.path),enabled:e.status.kind!==Nu.Deleted});getOpenInExternalEditorMenuItem=(e,t)=>{const{externalEditorLabel:n}=this.props;return{label:n?`打开于 ${n}`:gh,action:()=>{this.props.onOpenItemInExternalEditor(e.path)},enabled:t}};getDefaultContextMenu(e){const{id:n,path:r,status:i}=e,{workingDirectory:s,selectedFileIDs:o}=(t.extname(r),this.props),a=new Array,l=new Array,c=new Set,u=e=>{const n=s.findFileWithID(e);if(n){a.push(n),l.push(n.path);const e=t.extname(n.path);e.length&&c.add(e)}};o.includes(n)?o.forEach(u):u(n);const h=[this.getDiscardChangesMenuItem(l),{type:"separator"}];if(1===l.length){const e=t.basename(r)!==SM;h.push({label:"忽略此文件(添加到.gitignore)",action:()=>this.props.onIgnoreFile(r),enabled:e});const n=r.split("/").slice(0,-1);if(n.length>0){const t=n.map(((e,t)=>{const r=`/${n.slice(0,n.length-t).join("/")}`;return{label:r,action:()=>this.props.onIgnoreFile(r)}}));h.push({label:"Ignore folder (add to .gitignore)",submenu:t,enabled:e})}}else l.length>1&&h.push({label:`Ignore ${l.length} selected files (add to .gitignore)`,action:()=>{this.props.onIgnoreFile(l.filter((e=>t.basename(e)!==SM)))},enabled:l.some((e=>t.basename(e)!==SM))});Array.from(c).slice(0,5).forEach((e=>{h.push({label:`忽略所有 ${e} 文件 (添加到.gitignore)`,action:()=>this.props.onIgnorePattern(`*${e}`)})})),l.length>1?h.push({type:"separator"},{label:"包括选中的文件",action:()=>{a.map((e=>this.props.onIncludeChanged(e.path,!0)))}},{label:"排除选中的文件",action:()=>{a.map((e=>this.props.onIncludeChanged(e.path,!1)))}},{type:"separator"},this.getCopySelectedPathsMenuItem(a),this.getCopySelectedRelativePathsMenuItem(a)):h.push({type:"separator"},this.getCopyPathMenuItem(e),this.getCopyRelativePathMenuItem(e));const p=i.kind!==Nu.Deleted;return h.push({type:"separator"},this.getRevealInFileManagerMenuItem(e),this.getOpenInExternalEditorMenuItem(e,p),{label:bh,action:()=>this.props.onOpenItem(r),enabled:p&&!0}),h}getRebaseContextMenu(e){const{path:n,status:r}=e,i=(t.extname(n),new Array);e.status.kind===Nu.Untracked&&i.push(this.getDiscardChangesMenuItem([e.path]),{type:"separator"});const s=r.kind!==Nu.Deleted;return i.push(this.getCopyPathMenuItem(e),this.getCopyRelativePathMenuItem(e),{type:"separator"},this.getRevealInFileManagerMenuItem(e),this.getOpenInExternalEditorMenuItem(e,s),{label:bh,action:()=>this.props.onOpenItem(n),enabled:s&&!0}),i}onItemContextMenu=(e,t)=>{const{workingDirectory:n}=this.props,r=n.files[e];this.props.isCommitting||(t.preventDefault(),hh(null===this.props.rebaseConflictState?this.getDefaultContextMenu(r):this.getRebaseContextMenu(r)))};getPlaceholderMessage(e,n){if(!n)return"摘要(必填)";const r=e[0],i=(0,t.basename)(r.path);switch(r.status.kind){case Nu.New:case Nu.Untracked:return`创建 ${i}`;case Nu.Deleted:return`删除 ${i}`;default:return`更新 ${i}`}}onScroll=(e,t)=>{this.props.onChangesListScrolled(e)};renderCommitMessageForm=()=>{const{rebaseConflictState:e,workingDirectory:t,repository:n,repositoryAccount:r,dispatcher:i,isCommitting:s,commitToAmend:o,currentBranchProtected:a,currentRepoRulesInfo:l}=this.props;if(null!==e){const r=t.files.some((e=>e.status.kind===Nu.Untracked));return Ae.createElement(n_,{dispatcher:i,repository:n,rebaseConflictState:e,workingDirectory:t,isCommitting:s,hasUntrackedChanges:r})}const c=t.files.length,u=EM(t,e),h=c>0&&u!==cA.Off,p=t.files.filter((e=>e.selection.getSelectionType()!==Mu.None)),d=1===p.length&&!n.isTutorialRepository,m=null===this.props.repository.gitHubRepository||Lr(this.props.repository.gitHubRepository);return Ae.createElement(KD,{onCreateCommit:this.props.onCreateCommit,branch:this.props.branch,mostRecentLocalCommit:this.props.mostRecentLocalCommit,commitAuthor:this.props.commitAuthor,dispatcher:this.props.dispatcher,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,anyFilesSelected:h,anyFilesAvailable:c>0,repository:n,repositoryAccount:r,commitMessage:this.props.commitMessage,focusCommitMessage:this.props.focusCommitMessage,autocompletionProviders:this.props.autocompletionProviders,isCommitting:s,commitToAmend:o,showCoAuthoredBy:this.props.showCoAuthoredBy,coAuthors:this.props.coAuthors,placeholder:this.getPlaceholderMessage(p,d),prepopulateCommitSummary:d,key:n.id,showBranchProtected:c>0&&a,repoRulesInfo:l,aheadBehind:this.props.aheadBehind,showNoWriteAccess:c>0&&!m,shouldNudge:this.props.shouldNudgeToCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,onCoAuthorsUpdated:this.onCoAuthorsUpdated,onShowCoAuthoredByChanged:this.onShowCoAuthoredByChanged,onConfirmCommitWithUnknownCoAuthors:this.onConfirmCommitWithUnknownCoAuthors,onPersistCommitMessage:this.onPersistCommitMessage,onCommitMessageFocusSet:this.onCommitMessageFocusSet,onRefreshAuthor:this.onRefreshAuthor,onShowPopup:this.onShowPopup,onShowFoldout:this.onShowFoldout,onCommitSpellcheckEnabledChanged:this.onCommitSpellcheckEnabledChanged,onStopAmending:this.onStopAmending,onShowCreateForkDialog:this.onShowCreateForkDialog,accounts:this.props.accounts})};onCoAuthorsUpdated=e=>this.props.dispatcher.setCoAuthors(this.props.repository,e);onShowCoAuthoredByChanged=e=>{const{dispatcher:t,repository:n}=this.props;t.setShowCoAuthoredBy(n,e)};onConfirmCommitWithUnknownCoAuthors=(e,t)=>{const{dispatcher:n}=this.props;n.showUnknownAuthorsCommitWarning(e,t)};onRefreshAuthor=()=>this.props.dispatcher.refreshAuthor(this.props.repository);onCommitMessageFocusSet=()=>this.props.dispatcher.setCommitMessageFocus(!1);onPersistCommitMessage=e=>this.props.dispatcher.setCommitMessage(this.props.repository,e);onShowPopup=e=>this.props.dispatcher.showPopup(e);onShowFoldout=e=>this.props.dispatcher.showFoldout(e);onCommitSpellcheckEnabledChanged=e=>this.props.dispatcher.setCommitSpellcheckEnabled(e);onStopAmending=()=>this.props.dispatcher.stopAmendingRepository(this.props.repository);onShowCreateForkDialog=()=>{$r(this.props.repository)&&this.props.dispatcher.showCreateForkDialog(this.props.repository)};onStashEntryClicked=()=>{const{isShowingStashEntry:e,dispatcher:t,repository:n}=this.props;e?(t.selectWorkingDirectoryFiles(n),t.incrementMetric("noActionTakenOnStashCount")):(t.selectStashedFile(n),t.incrementMetric("stashViewCount"))};renderStashedChanges(){if(null===this.props.stashEntry)return null;const e=ri()("stashed-changes-button",this.props.isShowingStashEntry?"selected":null);return Ae.createElement("button",{className:e,onClick:this.onStashEntryClicked,tabIndex:0,"aria-expanded":this.props.isShowingStashEntry,"aria-controls":this.props.isShowingStashEntry?bM:void 0},Ae.createElement(yi,{className:"stack-icon",symbol:CM}),Ae.createElement("div",{className:"text"},"暂存的更改"),Ae.createElement(yi,{symbol:is}))}onRowDoubleClick=e=>{const t=this.props.workingDirectory.files[e];this.props.onOpenItemInExternalEditor(t.path)};onRowKeyDown=(e,t)=>{!this.props.isCommitting||"Enter"!==t.key&&" "!==t.key||t.preventDefault()};focus(){this.includeAllCheckBoxRef.current?.focus()}render(){const{workingDirectory:e,rebaseConflictState:t,isCommitting:n}=this.props,{files:r}=e,i=1===r.length?"文件":"文件",s=`${r.length} 项变更${i}`,o=r.filter((e=>e.selection.getSelectionType()!==Mu.None)).length,a=1===r.length?"文件":"文件",l=`${o}/${r.length} 项变更${a} included`,c=EM(e,t),u=0===r.length||n||null!==t;return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"changes-list-container file-list"},Ae.createElement("div",{className:"header",onContextMenu:this.onContextMenu,ref:this.headerRef},Ae.createElement(eh,{tooltip:l,direction:li.NORTH,openOnFocus:!0},Ae.createElement(uA,{ref:this.includeAllCheckBoxRef,label:s,value:c,onChange:this.onIncludeAllChanged,disabled:u,ariaDescribedBy:"changesDescription"})),Ae.createElement("div",{className:"sr-only",id:"changesDescription"},l)),Ae.createElement(lA,{id:"changes-list",rowCount:r.length,rowHeight:29,rowRenderer:this.renderRow,selectedRows:this.state.selectedRows,selectionMode:"multi",onSelectionChanged:this.props.onFileSelectionChanged,invalidationProps:{workingDirectory:e,isCommitting:n,focusedRow:this.state.focusedRow},onRowClick:this.props.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyboardFocus:this.onRowFocus,onRowBlur:this.onRowBlur,onScroll:this.onScroll,setScrollTop:this.props.changesListScrollTop,onRowKeyDown:this.onRowKeyDown,onRowContextMenu:this.onItemContextMenu,ariaLabel:s})),this.renderStashedChanges(),this.renderCommitMessageForm())}onRowFocus=e=>{this.setState({focusedRow:e})};onRowBlur=e=>{this.state.focusedRow===e&&this.setState({focusedRow:null})}}function TM(e,t,n,r){const i=new UD(e,t);return("string"==typeof r?i.tokenize(r):r).map(((e,t)=>{switch(e.kind){case FD.Emoji:return Ae.createElement("img",{key:t,alt:e.text,className:"emoji",src:e.path});case FD.Link:if(!1!==n){const n=e.text!==e.url?e.url:void 0;return Ae.createElement(Hx,{key:t,uri:e.url,title:n},e.text)}return Ae.createElement("span",{key:t},e.text);case FD.Text:return Ae.createElement("span",{key:t},e.text);default:return ct(0,`Unknown token type: ${e}`)}}))}class AM extends Ae.Component{getElements=Tr(TM);getTitle=Tr((e=>"string"==typeof e?e:e.map((e=>e.text)).join("")));containerRef=di();resizeObserver;resizeDebounceId=null;lastKnownWidth=null;constructor(e){super(e),this.state={overflowed:!1},this.containerRef.subscribe(this.onContainerRef),this.resizeObserver=new ResizeObserver((e=>{const t=e[0].contentRect.width;this.lastKnownWidth!==t&&(this.lastKnownWidth=t,null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame((e=>this.onResized())))}))}onContainerRef=e=>{null!==e?(this.resizeObserver.observe(e),this.onResized(e)):this.resizeObserver.disconnect()};onResized=e=>{(e=e??this.containerRef.current??void 0)&&e.scrollWidth>e.clientWidth?this.setState({overflowed:!0}):this.setState({overflowed:!1})};render(){const{emoji:e,repository:t,renderUrlsAsLinks:n,text:r}=this.props;return 0===r.length?null:Ae.createElement("div",{ref:this.containerRef,className:this.props.className},this.state.overflowed&&Ae.createElement(ci,{target:this.containerRef},this.getTitle(r)),this.getElements(e,t,n,r))}}const xM=6e4,DM=36e5,_M=24*DM;function MM(e,t=!0){const n=e.getTime()-Date.now(),r=Math.abs(n),i=xt(e,{dateStyle:"full",timeStyle:"short"}),s=Zw(n);return n>0&&r>xM?{absoluteText:i,relativeText:xt(e,{dateStyle:"medium",timeStyle:"short"}),duration:r}:r<xM?{absoluteText:i,relativeText:"此刻",duration:xM-r}:r<DM?{absoluteText:i,relativeText:s,duration:xM}:r<_M?{absoluteText:i,relativeText:s,duration:DM}:r<7*_M||t?{absoluteText:i,relativeText:s,duration:6*DM}:{absoluteText:i,relativeText:xt(e,{dateStyle:"medium"})}}class PM extends Ae.Component{timer=null;constructor(e){super(e),this.state={absoluteText:"",relativeText:""}}clearTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}updateAndSchedule(e,t,n){this.clearTimer(),this.timer=window.setTimeout(this.updateFromScheduler,Math.min(n,2147483647)),this.setState({absoluteText:e,relativeText:t})}updateWithDate(e){const{onlyRelative:t}=this.props,{absoluteText:n,relativeText:r,duration:i}=MM(e,t);void 0!==i?this.updateAndSchedule(n,r,i):this.setState({absoluteText:n,relativeText:r})}updateFromScheduler=()=>{this.updateWithDate(this.props.date)};componentWillReceiveProps(e){this.props.date!==e.date&&this.updateWithDate(e.date)}componentWillMount(){this.updateWithDate(this.props.date)}componentWillUnmount(){this.clearTimer()}shouldComponentUpdate(e,t){return e.date!==this.props.date||t.absoluteText!==this.state.absoluteText||t.relativeText!==this.state.relativeText}render(){return Ae.createElement(eh,{className:this.props.className,tooltip:this.state.absoluteText},this.state.relativeText)}}class IM extends Ae.Component{render(){const e=this.props.isPushPullFetchInProgress||this.props.isCommitting,t=e?"更新仓库时禁用撤消":void 0,n=this.props.commit.author.date;return Ae.createElement("div",{id:"undo-commit",role:"group","aria-label":"撤消提交"},Ae.createElement("div",{className:"commit-info"},Ae.createElement("div",{className:"ago"},"提交于",Ae.createElement(PM,{date:n})),Ae.createElement(AM,{emoji:this.props.emoji,className:"summary",text:this.props.commit.summary,renderUrlsAsLinks:!1})),Ae.createElement("div",{className:"actions"},Ae.createElement(mi,{size:"small",disabled:e,onClick:this.props.onUndo,tooltip:t},"撤销")))}}async function OM(e,t){if(!await pt.openExternal(`file://${e}`)){const n={name:"no-external-program",message:`Unable to open file ${e} in an external program. Please check you have a program associated with this file extension`};await t.postError(n)}}class NM extends Ae.Component{autocompletionProviders=null;changesListRef=Ae.createRef();constructor(e){super(e),this.receiveProps(e)}componentWillReceiveProps(e){this.receiveProps(e)}receiveProps(e){null!==this.autocompletionProviders&&0!==this.props.emoji.size&&e.repository.hash===this.props.repository.hash&&e.accounts===this.props.accounts||(this.autocompletionProviders=xx(e.repository,e.dispatcher,e.emoji,e.issuesStore,e.gitHubUserStore,e.accounts))}onCreateCommit=async e=>{const{workingDirectory:n}=this.props.changes,r=await async function(e,n){const r=new Array,i=n.files.filter((e=>e.selection.getSelectionType()!==Mu.None));for(const n of i){const i=(0,t.join)(e.path,n.path);try{(await(0,b.stat)(i)).size>104857600&&r.push(n.path)}catch(e){log.debug(`Unable to get the file size for ${i}`,e)}}return r}(this.props.repository,n),i=await async function(e,t){const n=new Array;for(const r of t)await By(e,r)||n.push(r);return n}(this.props.repository,r);if(0!==i.length)return this.props.dispatcher.showPopup({type:dh.OversizedFiles,oversizedFiles:i,context:e,repository:this.props.repository}),!1;const s=n.files.filter((e=>Hy(e.status)&&e.selection.getSelectionType()===Mu.None));0===s.length&&(this.props.dispatcher.clearBanner(),this.props.dispatcher.incrementMetric("unguidedConflictedMergeCompletionCount"));const o=n.files.filter((e=>Hy(e.status)&&Zy(e.status)&&e.selection.getSelectionType()!==Mu.None));return o.length>0?(this.props.dispatcher.showPopup({type:dh.CommitConflictsWarning,files:o,repository:this.props.repository,context:e}),!1):this.props.dispatcher.commitIncludedChanges(this.props.repository,e)};onFileSelectionChanged=e=>{const t=e.map((e=>this.props.changes.workingDirectory.files[e]));this.props.dispatcher.selectWorkingDirectoryFiles(this.props.repository,t)};onIncludeChanged=(e,t)=>{const n=this.props.changes.workingDirectory.files.find((t=>t.path===e));n?this.props.dispatcher.changeFileIncluded(this.props.repository,n,t):console.error("unable to find working directory file to apply included change: "+e)};onSelectAll=e=>{this.props.dispatcher.changeIncludeAllFiles(this.props.repository,e)};onDiscardChanges=e=>{this.props.askForConfirmationOnDiscardChanges?this.props.dispatcher.showPopup({type:dh.ConfirmDiscardChanges,repository:this.props.repository,files:[e]}):this.props.dispatcher.discardChanges(this.props.repository,[e])};onDiscardChangesFromFiles=(e,t)=>{this.props.dispatcher.showPopup({type:dh.ConfirmDiscardChanges,repository:this.props.repository,showDiscardChangesSetting:!1,discardingAllChanges:t,files:e})};onIgnoreFile=e=>{this.props.dispatcher.appendIgnoreFile(this.props.repository,e)};onIgnorePattern=e=>{this.props.dispatcher.appendIgnoreRule(this.props.repository,e)};onOpenItem=e=>{OM(t.join(this.props.repository.path,e),this.props.dispatcher)};onOpenItemInExternalEditor=e=>{this.props.onOpenInExternalEditor(e)};onToggleInclude(e){const t=this.props.changes.workingDirectory.files[e];if(!t)return void console.error("keyboard selection toggle despite no file - what?");const n=t.selection.getSelectionType();this.props.dispatcher.changeFileIncluded(this.props.repository,t,n===Mu.None)}onChangedItemClick=(e,t)=>{"keyboard"===t.kind&&(e instanceof Array?e.forEach((e=>this.onToggleInclude(e))):this.onToggleInclude(e))};onUndo=()=>{const e=this.props.mostRecentLocalCommit;e&&0===e.tags.length&&this.props.dispatcher.undoCommit(this.props.repository,e)};renderMostRecentLocalCommit(){const e=this.props.mostRecentLocalCommit;let t=null;return e&&0===e.tags.length&&null===this.props.commitToAmend&&(t=Ae.createElement(Qe,{classNames:"undo",appear:!0,timeout:500},Ae.createElement(IM,{isPushPullFetchInProgress:this.props.isPushPullFetchInProgress,commit:e,onUndo:this.onUndo,emoji:this.props.emoji,isCommitting:this.props.isCommitting}))),Ae.createElement(Ue,null,t)}renderUndoCommit=e=>null!==e?null:this.renderMostRecentLocalCommit();focus(){this.changesListRef.current?.focus()}render(){const{workingDirectory:e,commitMessage:t,showCoAuthoredBy:n,coAuthors:r,conflictState:i,selection:s,currentBranchProtected:o,currentRepoRulesInfo:a}=this.props.changes;let l=null;null!==i&&(l=ot(i)?i:null);const c=s.kind===nt.WorkingDirectory?s.selectedFileIDs:[],u=s.kind===nt.Stash,h=Om(this.props.accounts,this.props.repository);return Ae.createElement("div",{className:"panel",role:"tabpanel","aria-labelledby":"changes-tab"},Ae.createElement(RM,{ref:this.changesListRef,dispatcher:this.props.dispatcher,repository:this.props.repository,repositoryAccount:h,workingDirectory:e,conflictState:i,mostRecentLocalCommit:this.props.mostRecentLocalCommit,rebaseConflictState:l,selectedFileIDs:c,onFileSelectionChanged:this.onFileSelectionChanged,onCreateCommit:this.onCreateCommit,onIncludeChanged:this.onIncludeChanged,onSelectAll:this.onSelectAll,onDiscardChanges:this.onDiscardChanges,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onDiscardChangesFromFiles:this.onDiscardChangesFromFiles,onOpenItem:this.onOpenItem,onRowClick:this.onChangedItemClick,commitAuthor:this.props.commitAuthor,branch:this.props.branch,commitMessage:t,focusCommitMessage:this.props.focusCommitMessage,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,autocompletionProviders:this.autocompletionProviders,availableWidth:this.props.availableWidth,onIgnoreFile:this.onIgnoreFile,onIgnorePattern:this.onIgnorePattern,isCommitting:this.props.isCommitting,commitToAmend:this.props.commitToAmend,showCoAuthoredBy:n,coAuthors:r,externalEditorLabel:this.props.externalEditorLabel,onOpenItemInExternalEditor:this.onOpenItemInExternalEditor,onChangesListScrolled:this.props.onChangesListScrolled,changesListScrollTop:this.props.changesListScrollTop,stashEntry:this.props.changes.stashEntry,isShowingStashEntry:u,currentBranchProtected:o,shouldNudgeToCommit:this.props.shouldNudgeToCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,currentRepoRulesInfo:a,aheadBehind:this.props.aheadBehind,accounts:this.props.accounts}),this.renderUndoCommit(l))}}class LM extends Ae.Component{innerButtonRef=di();diffOptionsRef=Ae.createRef();gearIconRef=Ae.createRef();constructor(e){super(e),this.state={isPopoverOpen:!1}}onButtonClick=e=>{e.preventDefault(),this.state.isPopoverOpen?this.closePopover():this.openPopover()};openPopover=()=>{this.setState((e=>e.isPopoverOpen?null:(this.props.onDiffOptionsOpened(),{isPopoverOpen:!0})))};closePopover=()=>{this.setState((e=>e.isPopoverOpen?{isPopoverOpen:!1}:null))};onHideWhitespaceChangesChanged=e=>this.props.onHideWhitespaceChangesChanged(e.currentTarget.checked);render(){const e="Diff Options";return Ae.createElement("div",{className:"diff-options-component",ref:this.diffOptionsRef},Ae.createElement("button",{"aria-label":e,onClick:this.onButtonClick,"aria-expanded":this.state.isPopoverOpen,ref:this.innerButtonRef},Ae.createElement(ci,{target:this.innerButtonRef,direction:li.NORTH,applyAriaDescribedBy:!1},e),Ae.createElement("span",{ref:this.gearIconRef},Ae.createElement(yi,{symbol:zo})),Ae.createElement(yi,{symbol:Qc})),this.state.isPopoverOpen&&this.renderPopover())}renderPopover(){return Ae.createElement(wx,{ariaLabelledby:"diff-options-popover-header",anchor:this.gearIconRef.current,anchorPosition:mx.BottomRight,decoration:gx.Balloon,onClickOutside:this.closePopover},Ae.createElement("h3",{id:"diff-options-popover-header"},"Diff Options"),this.renderHideWhitespaceChanges(),this.renderShowSideBySide())}onUnifiedSelected=()=>{this.props.onShowSideBySideDiffChanged(!1)};onSideBySideSelected=()=>{this.props.onShowSideBySideDiffChanged(!0)};renderShowSideBySide(){return Ae.createElement("fieldset",{role:"radiogroup"},Ae.createElement("legend",null,"差异显示"),Ae.createElement(TD,{value:"Unified",checked:!this.props.showSideBySideDiff,label:"标准",onSelected:this.onUnifiedSelected}),Ae.createElement(TD,{value:"Split",checked:this.props.showSideBySideDiff,label:Ae.createElement(Ae.Fragment,null,Ae.createElement("div",null,"分割")),onSelected:this.onSideBySideSelected}))}renderHideWhitespaceChanges(){return Ae.createElement("fieldset",null,Ae.createElement("legend",null,"空格"),Ae.createElement(uA,{value:this.props.hideWhitespaceChanges?cA.On:cA.Off,onChange:this.onHideWhitespaceChangesChanged,label:"隐藏空格更改"}),this.props.isInteractiveDiff&&Ae.createElement("p",{className:"secondary-text"},"隐藏空格时将禁用与单行或块的交互。"))}}class BM extends Ae.Component{render(){const e=this.props.status,t=Fy(e);return Ae.createElement("div",{className:"header"},Ae.createElement(e_,{path:this.props.path,status:this.props.status}),this.renderDiffOptions(),Ae.createElement(yi,{symbol:Xu(e),className:"status status-"+t.toLowerCase(),title:t}))}renderDiffOptions(){return this.props.diff?.kind===Du.Submodule?null:Ae.createElement(LM,{isInteractiveDiff:!0,onHideWhitespaceChangesChanged:this.props.onHideWhitespaceInDiffChanged,hideWhitespaceChanges:this.props.hideWhitespaceInDiff,onShowSideBySideDiffChanged:this.props.onShowSideBySideDiffChanged,showSideBySideDiff:this.props.showSideBySideDiff,onDiffOptionsOpened:this.props.onDiffOptionsOpened})}}class FM extends Ae.Component{get lineSelectionDisabled(){return this.props.isCommitting||this.props.hideWhitespaceInDiff}onDiffLineIncludeChanged=e=>{if(!this.lineSelectionDisabled){const{repository:t,file:n}=this.props;this.props.dispatcher.changeFileLineSelection(t,n,e)}};onDiscardChanges=(e,t)=>{this.lineSelectionDisabled||(this.props.askForConfirmationOnDiscardChanges?this.props.dispatcher.showPopup({type:dh.ConfirmDiscardSelection,repository:this.props.repository,file:this.props.file,diff:e,selection:t}):this.props.dispatcher.discardChangesFromSelection(this.props.repository,this.props.file.path,e,t))};render(){return Ae.createElement("div",{className:"diff-container"},Ae.createElement(BM,{path:this.props.file.path,status:this.props.file.status,diff:this.props.diff,showSideBySideDiff:this.props.showSideBySideDiff,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onDiffOptionsOpened:this.props.onDiffOptionsOpened}),Ae.createElement(wM,{repository:this.props.repository,imageDiffType:this.props.imageDiffType,file:this.props.file,readOnly:!1,onIncludeChanged:this.onDiffLineIncludeChanged,onDiscardChanges:this.onDiscardChanges,diff:this.props.diff,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showSideBySideDiff:this.props.showSideBySideDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onOpenBinaryFile:this.props.onOpenBinaryFile,onOpenSubmodule:this.props.onOpenSubmodule,onChangeImageDiffType:this.props.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged}))}onShowSideBySideDiffChanged=e=>{this.props.dispatcher.onShowSideBySideDiffChanged(e)};onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInChangesDiffChanged(e,this.props.repository)}function HM(e){return e.replace("&&","&")}class UM extends Ae.Component{shouldComponentUpdate(e){return this.props.text!==e.text||this.props.highlight!==e.highlight}render(){const e=this.props.text.match(/^(.*?)?(?:&([^&]))(.*)?$/);if(!e)return Ae.createElement("span",null,this.props.text);const t=new Array;e[1]&&t.push(Ae.createElement("span",{key:1,"aria-hidden":!0},HM(e[1])));const n=ri()("access-key",{highlight:this.props.highlight});t.push(Ae.createElement("span",{"aria-hidden":!0,key:2,className:n},e[2])),e[3]&&t.push(Ae.createElement("span",{key:3,"aria-hidden":!0},HM(e[3])));const r=`${e[1]?HM(e[1]):""}${e[2]}${e[3]?HM(e[3]):""}`;return Ae.createElement("span",{"aria-label":r},t)}}class ZM extends Ae.Component{wrapperRef=Ae.createRef();getIcon(e){return"checkbox"===e.type&&e.checked?Ae.createElement(yi,{className:"icon",symbol:Xi}):"radio"===e.type&&e.checked?Ae.createElement(yi,{className:"icon",symbol:Qs}):null}onMouseEnter=e=>{this.props.onMouseEnter?.(this.props.item,e)};onMouseLeave=e=>{this.props.onMouseLeave?.(this.props.item,e)};onClick=e=>{this.props.onClick?.(this.props.item,e)};componentDidMount(){this.props.selected&&this.props.focusOnSelection&&this.wrapperRef.current?.focus()}componentDidUpdate(e){const{focusOnSelection:t,selected:n}=this.props;t&&n&&!e.selected&&this.wrapperRef.current?.focus()}renderLabel(){const{item:e,renderLabel:t}=this.props;return void 0!==t?t(e):"separator"!==e.type?Ae.createElement(UM,{text:e.label,highlight:this.props.highlightAccessKey}):void 0}render(){const e=this.props.item;if("separator"===e.type)return Ae.createElement("hr",null);const t="submenuItem"===e.type&&!1!==this.props.renderSubMenuArrow?Ae.createElement(yi,{className:"submenu-arrow",symbol:eu}):null,n="submenuItem"!==e.type&&e.accelerator&&!1!==this.props.renderAcceleratorText?Ae.createElement("div",{className:"accelerator"},function(e){return e.split("+").map(uh).join("+")}(e.accelerator)):null,{type:r}=e,i=ri()("menu-item",{disabled:!e.enabled,checkbox:"checkbox"===r,radio:"radio"===r,checked:("checkbox"===r||"radio"===r)&&e.checked,selected:this.props.selected}),s=this.props.hasNoRole?void 0:"checkbox"===r?"menuitemradio":"menuitem",o="checkbox"===r?e.checked:void 0;return Ae.createElement("div",{id:this.props.menuItemId,className:i,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.onClick,ref:this.wrapperRef,role:s,tabIndex:-1,"aria-checked":o},this.getIcon(e),Ae.createElement("div",{className:"label"},this.renderLabel()),n,t)}}class $M extends Ae.Component{onRowClick=(e,t)=>{if("separator"!==e.type&&e.enabled){const n={kind:"mouseclick",event:t};this.props.onItemClicked(this.props.depth,e,n)}};tryMoveSelection(e,t){const{items:n,selectedItem:r}=this.props,i=r?n.indexOf(r):-1,s=n.length,o=e=>n[e]&&Xr(n[e]);let a=null;return"up"===e||"down"===e?a=sA(s,{direction:e,row:i},o):"first"!==e&&"last"!==e||(a=oA("first"===e?"up":"down",s,o)),null!==a&&void 0!==n[a]&&(this.props.onSelectionChanged(this.props.depth,n[a],t),!0)}tryMoveSelectionByFirstCharacter(e,t){if(e.length>1||!VM(e)||!this.props.allowFirstCharacterNavigation)return;const{items:n,selectedItem:r}=this.props,i=e.toLowerCase(),s=r?n.indexOf(r)+1:0,o=s+1>n.length?0:s+1,a=n.map((e=>"separator"===e.type?"":e.label.trim()[0].toLowerCase()));let l=a.indexOf(i,o);return-1===l&&(l=a.indexOf(i,0)),l>=0&&void 0!==n[l]&&(this.props.onSelectionChanged(this.props.depth,n[l],t),!0)}onKeyDown=e=>{if(e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t={kind:"keyboard",event:e},{selectedItem:n}=this.props,{key:r}=e;if(qM(r))if(e.preventDefault(),"ArrowUp"===r||"ArrowDown"===r)this.tryMoveSelection("ArrowUp"===r?"up":"down",t);else if("Home"===r||"End"===r){const e="Home"===r?"first":"last";this.tryMoveSelection(e,t)}else"Enter"===r||" "===r?void 0!==n&&this.props.onItemClicked(this.props.depth,n,t):ct(0,"Unsupported key");if(this.tryMoveSelectionByFirstCharacter(r,t),this.props.enableAccessKeyNavigation){const t=Qr(e.key,this.props.items);t&&Xr(t)&&(e.preventDefault(),this.props.onSelectionChanged(this.props.depth,t,{kind:"keyboard",event:e}),this.props.onItemClicked(this.props.depth,t,{kind:"keyboard",event:e}))}this.props.onKeyDown?.(this.props.depth,e)};onMouseEnter=e=>{this.props.onMouseEnter?.(this.props.depth)};onRowMouseEnter=(e,t)=>{if(Xr(e)){const n={kind:"hover",event:t};this.props.onSelectionChanged(this.props.depth,e,n)}};onRowMouseLeave=(e,t)=>{this.props.selectedItem===e&&this.props.onClearSelection(this.props.depth)};render(){const e=ri()("menu-pane",this.props.className);return Ae.createElement("div",{className:e,onMouseEnter:this.onMouseEnter,onKeyDown:this.onKeyDown,tabIndex:-1,role:"menu","aria-labelledby":this.props.ariaLabelledby},this.props.items.filter((e=>e.visible)).map(((e,t)=>Ae.createElement(ZM,{key:t+e.id,item:e,highlightAccessKey:!0===this.props.enableAccessKeyNavigation,selected:e.id===this.props.selectedItem?.id,onMouseEnter:this.onRowMouseEnter,onMouseLeave:this.onRowMouseLeave,onClick:this.onRowClick,renderLabel:this.props.renderLabel,focusOnSelection:!0}))))}}const WM=["ArrowUp","ArrowDown","Home","End","Enter"," "],qM=e=>WM.includes(e),VM=e=>1===e.length&&e.match(/\S/);class GM extends Ae.Component{expandCollapseTimer=null;onItemClicked=(e,t,n)=>{if(this.clearExpandCollapseTimer(),"submenuItem"===t.type){const e=this.props.enableAccessKeyNavigation&&"keyboard"===n.kind&&"Enter"!==n.event.key&&" "!==n.event.key;this.props.dispatcher.setAppMenuState((n=>n.withOpenedMenu(t,e)))}else"separator"!==t.type&&(this.props.onClose({type:"item-executed"}),this.props.dispatcher.executeMenuItem(t))};onPaneKeyDown=(e,t)=>{const{selectedItem:n}=this.props.state[e];"ArrowLeft"===t.key||"Escape"===t.key?(this.clearExpandCollapseTimer(),0===e&&"Escape"===t.key?(this.props.onClose({type:"keyboard",event:t}),t.preventDefault()):e>0&&(this.props.dispatcher.setAppMenuState((t=>t.withClosedMenu(this.props.state[e]))),t.preventDefault())):"ArrowRight"===t.key&&(this.clearExpandCollapseTimer(),"submenuItem"===n?.type&&(this.props.dispatcher.setAppMenuState((e=>e.withOpenedMenu(n,!0))),t.preventDefault()))};clearExpandCollapseTimer(){this.expandCollapseTimer&&(window.clearTimeout(this.expandCollapseTimer),this.expandCollapseTimer=null)}scheduleExpand(e){this.clearExpandCollapseTimer(),this.expandCollapseTimer=window.setTimeout((()=>{this.props.dispatcher.setAppMenuState((t=>t.withOpenedMenu(e)))}),300)}scheduleCollapseTo(e){this.clearExpandCollapseTimer(),this.expandCollapseTimer=window.setTimeout((()=>{this.props.dispatcher.setAppMenuState((t=>t.withLastMenu(e)))}),300)}onClearSelection=e=>{this.props.dispatcher.setAppMenuState((t=>t.withDeselectedMenu(this.props.state[e])))};onSelectionChanged=(e,t,n)=>{this.clearExpandCollapseTimer(),"keyboard"===n.kind?this.props.dispatcher.setAppMenuState((n=>n.withSelectedItem(t).withLastMenu(this.props.state[e]))):("submenuItem"===t.type?this.scheduleExpand(t):this.scheduleCollapseTo(this.props.state[e]),this.props.dispatcher.setAppMenuState((e=>e.withSelectedItem(t))))};onPaneMouseEnter=e=>{this.clearExpandCollapseTimer();const t=this.props.state[e],n=t.selectedItem;n?this.props.dispatcher.setAppMenuState((e=>e.withSelectedItem(n))):this.props.dispatcher.setAppMenuState((e=>e.withDeselectedMenu(t)))};onKeyDown=e=>{e.defaultPrevented||"Escape"!==e.key||(e.preventDefault(),this.props.onClose({type:"keyboard",event:e}))};renderMenuPane(e,t){const n=t.id||"@",r=t.id?function(e){const t=e.replace(/^@\./,"").replace(/&/g,"").replace(/[^a-z0-9_]+/gi,"-").replace(/_+/,"_").toLowerCase();return t.length?`menu-pane-${t}`:void 0}(t.id):void 0;return Ae.createElement($M,{key:n,className:r,depth:e,items:t.items,selectedItem:t.selectedItem,onItemClicked:this.onItemClicked,onMouseEnter:this.onPaneMouseEnter,onKeyDown:this.onPaneKeyDown,onSelectionChanged:this.onSelectionChanged,enableAccessKeyNavigation:this.props.enableAccessKeyNavigation,onClearSelection:this.onClearSelection,ariaLabelledby:this.props.ariaLabelledby})}render(){const e=this.props.state.map(((e,t)=>this.renderMenuPane(t,e)));return Ae.createElement("div",{id:"app-menu-foldout",onKeyDown:this.onKeyDown},e)}componentWillUnmount(){this.clearExpandCollapseTimer()}}class zM extends Ae.Component{render(){return Ae.createElement("div",{id:this.props.id,className:"toolbar"},this.props.children)}}var jM,KM;!function(e){e[e.Standard=0]="Standard",e[e.Subtitle=1]="Subtitle"}(jM||(jM={}));class YM extends Ae.Component{wrapperRef=di();innerButton=null;onClick=e=>{this.props.onClick&&this.props.onClick(e)};onButtonRef=e=>{this.innerButton=e};focusButton=()=>{this.innerButton&&this.innerButton.focus()};getButtonBoundingClientRect=()=>this.innerButton?this.innerButton.getBoundingClientRect():void 0;render(){const{tooltip:e}=this.props,t=this.props.icon?Ae.createElement(yi,{symbol:this.props.icon,className:ri()("icon",this.props.iconClassName)}):null,n=ri()("toolbar-button",{"has-progress":void 0!==this.props.progressValue},this.props.className),r=void 0!==this.props.progressValue?Math.round(100*ry(this.props.progressValue,0,1))/100:void 0,i=void 0!==r?Ae.createElement("div",{className:"progress",style:{transform:`scaleX(${r})`}}):void 0;return Ae.createElement("div",{className:n,onKeyDown:this.props.onKeyDown,ref:this.wrapperRef},e&&Ae.createElement(ci,{target:this.wrapperRef,direction:li.SOUTH,onlyWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,isTargetOverflowed:this.props.isOverflowed},e),Ae.createElement(mi,{onClick:this.onClick,onContextMenu:this.props.onContextMenu,ref:this.onButtonRef,disabled:this.props.disabled,onMouseEnter:this.props.onMouseEnter,tabIndex:this.props.tabIndex,role:this.props.role,ariaExpanded:this.props.ariaExpanded,ariaHaspopup:this.props.ariaHaspopup,ariaLabel:this.props.ariaLabel},i,t,this.renderText(),this.props.children))}renderText(){if(void 0===this.props.title&&void 0===this.props.description)return null;const e=void 0!==this.props.title?Ae.createElement("div",{className:"title"},this.props.title):null,t=void 0!==this.props.description?Ae.createElement("div",{className:"description"},this.props.description):null,n=this.props.style||jM.Standard;switch(n){case jM.Standard:return Ae.createElement("div",{className:"text"},t,e);case jM.Subtitle:return Ae.createElement("div",{className:"text"},Ae.createElement("div",{className:"title"},this.props.title),t);default:return ct(0,`Unknown button style: ${n}`)}}}!function(e){e[e.Foldout=0]="Foldout",e[e.MultiOption=1]="MultiOption"}(KM||(KM={}));class XM extends Ae.Component{innerButton=Ae.createRef();rootDiv=Ae.createRef();focusTrapOptions;constructor(e){super(e),this.state={clientRect:null},this.focusTrapOptions={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,returnFocusOnDeactivate:this.props.returnFocusOnDeactivate,onDeactivate:this.props.onDropdownFocusTrapDeactivate}}get isOpen(){return"open"===this.props.dropdownState}dropdownIcon(e){return"open"===e?tu:"closed"===e?Qc:ct(0,`Unknown dropdown state ${e}`)}renderDropdownArrow(){if(!1===this.props.showDisclosureArrow)return null;const e=this.props.dropdownState,t=Ae.createElement(yi,{symbol:this.dropdownIcon(e),className:"dropdownArrow"});return this.props.dropdownStyle===KM.MultiOption?Ae.createElement(YM,{className:"toolbar-dropdown-arrow-button",onClick:this.onToggleDropdownClick,ariaExpanded:this.isOpen,ariaHaspopup:!0,ariaLabel:this.props.ariaLabel},t):t}onToggleDropdownClick=e=>{const t="open"===this.props.dropdownState?"closed":"open",n=e.clientX||e.clientY?"pointer":"keyboard";this.props.onDropdownStateChanged(t,n)};onMainButtonClick=e=>{this.props.dropdownStyle!==KM.MultiOption?this.onToggleDropdownClick(e):this.props.onClick?.(e)};onContextMenu=e=>{this.props.onContextMenu?.(e)};updateClientRectIfNecessary(){if("open"===this.props.dropdownState&&this.rootDiv.current){const e=this.rootDiv.current.getBoundingClientRect();if(e){const t=this.state.clientRect;t&&ai(t,e)||this.setState({clientRect:e})}}}componentDidMount(){this.updateClientRectIfNecessary()}componentDidUpdate(){this.updateClientRectIfNecessary()}handleOverlayClick=()=>{this.props.onDropdownStateChanged("closed","pointer")};getFoldoutContainerStyle(){const e=this.state.clientRect;if(e)return{position:"absolute",top:e.bottom,left:0,width:"100%",height:`calc(100% - ${e.bottom}px)`}}getFoldoutStyle(){if(this.props.foldoutStyle)return this.props.foldoutStyle;const e=this.state.clientRect;if(!e)return;const t=this.props.dropdownStyle===KM.MultiOption?{maxHeight:"100%",width:e.width}:{height:"100%",minWidth:e.width};return{position:"absolute",marginLeft:e.left,top:0,...t}}onFoldoutKeyDown=e=>{!e.defaultPrevented&&this.isOpen&&"Escape"===e.key&&(e.preventDefault(),this.props.onDropdownStateChanged("closed","keyboard"))};renderDropdownContents=()=>"open"!==this.props.dropdownState?null:Ae.createElement(mA(),{active:this.props.enableFocusTrap??!0,focusTrapOptions:this.focusTrapOptions},Ae.createElement("div",{id:"foldout-container",style:this.getFoldoutContainerStyle()},Ae.createElement("div",{className:"overlay",tabIndex:-1,onClick:this.handleOverlayClick}),Ae.createElement("div",{className:"foldout",style:this.getFoldoutStyle(),tabIndex:-1,onKeyDown:this.onFoldoutKeyDown},this.props.dropdownContentRenderer())));focusButton=()=>{this.innerButton.current&&this.innerButton.current.focusButton()};render(){const e=ri()("toolbar-dropdown",this.props.dropdownStyle===KM.MultiOption?"multi-option-style":"foldout-style",this.props.dropdownState,this.props.className);return Ae.createElement("div",{className:e,onKeyDown:this.props.onKeyDown,role:this.props.role,onDragOver:this.props.onDragOver,ref:this.rootDiv},this.renderDropdownContents(),Ae.createElement(YM,{className:this.props.buttonClassName,ref:this.innerButton,icon:this.props.icon,title:this.props.title,description:this.props.description,tooltip:this.props.tooltip,onClick:this.onMainButtonClick,onContextMenu:this.onContextMenu,onMouseEnter:this.props.onMouseEnter,style:this.props.style,iconClassName:this.props.iconClassName,disabled:this.props.disabled,tabIndex:this.props.tabIndex,progressValue:this.props.progressValue,role:this.props.buttonRole,onlyShowTooltipWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,isOverflowed:this.props.isOverflowed,ariaExpanded:this.props.dropdownStyle===KM.MultiOption?void 0:this.isOpen,ariaHaspopup:this.props.buttonAriaHaspopup},this.props.children,this.props.dropdownStyle!==KM.MultiOption&&this.renderDropdownArrow()),this.props.dropdownStyle===KM.MultiOption&&this.renderDropdownArrow())}}class QM extends xe().Component{buttonsContainerRef=null;componentDidMount(){window.addEventListener("keydown",this.onDropdownKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.onDropdownKeyDown)}onButtonsContainerRef=e=>{this.buttonsContainerRef=e};onDropdownKeyDown=e=>{if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const t=this.buttonsContainerRef?.querySelectorAll(`.${JM}`);if(void 0===t)return;const n=this.buttonsContainerRef?.querySelector(":focus");if(!n)return;const r=Array.from(t).indexOf(n);t[(("ArrowDown"===e.key?r+1:r-1)+t.length)%t.length]?.focus()};getDropdownItemWithType(e){const{remoteName:t}=this.props;switch(e){case eP.Fetch:return{title:`Fetch ${t}`,description:`Fetch the latest changes from ${t}`,action:this.props.fetch,icon:Qu};case eP.ForcePush:{const e=this.props.askForConfirmationOnForcePush?null:xe().createElement("div",{className:"warning"},xe().createElement("span",{className:"warning-title"},"Warning:")," A force push will rewrite history on the remote. Any collaborators working on this branch will need to reset their own local branch to match the history of the remote.");return{title:`Force push ${t}`,description:xe().createElement(xe().Fragment,null,"Overwrite any changes on ",t," with your local changes",e),action:this.props.forcePushWithLease,icon:rP}}}}renderDropdownItem=e=>{const t=this.getDropdownItemWithType(e);return xe().createElement(mi,{className:JM,key:e,onClick:t.action},xe().createElement(yi,{symbol:t.icon}),xe().createElement("div",{className:"text-container"},xe().createElement("div",{className:"title"},t.title),xe().createElement("div",{className:"detail"},t.description)))};render(){const{itemTypes:e}=this.props;return xe().createElement("div",{className:"push-pull-dropdown",ref:this.onButtonsContainerRef},e.map(this.renderDropdownItem))}}const JM="push-pull-dropdown-item";var eP;function tP(e,t){const{ahead:n,behind:r}=e;if(0===n&&0===r&&0===t)return null;const i=new Array;return(n>0||t>0)&&i.push(Ae.createElement("span",{key:"ahead"},n+t,Ae.createElement(yi,{symbol:Mi}))),r>0&&i.push(Ae.createElement("span",{key:"behind"},r,Ae.createElement(yi,{symbol:Ri}))),Ae.createElement("div",{className:"ahead-behind"},i)}function nP(e){return e?Ae.createElement("span",null,"最后一次同步在 ",Ae.createElement(PM,{date:e})):"从未获取"}!function(e){e.Fetch="fetch",e.ForcePush="force-push"}(eP||(eP={}));const rP={w:10,h:16,p:["M0 6a.75.75 0 0 0 .974.714L4.469 3.22a.75.75 0 0 1 1.06 0l3.478 3.478a.75.75 0 0 0 .772-1.228L5.53 1.22a.75.75 0 0 0-1.06 0L.22 5.47A.75.75 0 0 0 0 6zm0 3a.75.75 0 0 0 1.28.53l2.97-2.97V14a.75.75 0 1 0 1.5 0V6.56l2.97 2.97a.75.75 0 0 0 1.06-1.06L5.53 4.22a.75.75 0 0 0-1.06 0L.22 8.47A.75.75 0 0 0 0 9z"]};class iP extends Ae.Component{constructor(e){super(e),this.state={screenReaderStateMessage:null,actionInProgress:null}}componentDidUpdate(e){const t=null!==this.props.progress&&null==e.progress||this.props.progress?.title!==e.progress?.title,n=null===this.props.progress&&null!==e.progress;t&&this.setScreenReaderLoadingStateMessage(),n&&this.setState({screenReaderStateMessage:`${this.state.actionInProgress??"Pull, push, or fetch"} complete`,actionInProgress:null})}isPullPushFetchProgress(e){return"push"===e||"pull"===e||"fetch"===e}setScreenReaderLoadingStateMessage(){const{progress:e}=this.props;if(null===e)return;const{description:t,title:n,kind:r}=e,i=`${n} ${t??"请稍后..."}`,s=null===this.state.actionInProgress&&this.isPullPushFetchProgress(r)?r:this.state.actionInProgress;this.setState({screenReaderStateMessage:i,actionInProgress:s})}defaultButtonProps(){return{className:"push-pull-button",style:jM.Subtitle}}defaultDropdownProps(){return{buttonClassName:"push-pull-button",style:jM.Subtitle,dropdownStyle:KM.MultiOption,ariaLabel:"Push, pull, fetch options",dropdownState:this.props.isDropdownOpen?"open":"closed",enableFocusTrap:this.props.enableFocusTrap,onDropdownStateChanged:this.props.onDropdownStateChanged}}closeDropdown(){this.props.dispatcher.closeFoldout(et.PushPull)}push=()=>{this.closeDropdown(),this.props.dispatcher.push(this.props.repository)};returnFocusOnDeactivate=()=>!(this.props.forcePushBranchState!==iy.NotAvailable&&this.props.askForConfirmationOnForcePush);onDropdownFocusTrapDeactivate=()=>{this.returnFocusOnDeactivate()||this.setScreenReaderStateMessageFocus()};setScreenReaderStateMessageFocus(){const e=document.getElementById("push-pull-button-state");e&&(e.tabIndex=-1,e.focus())}forcePushWithLease=()=>{this.closeDropdown(),this.setScreenReaderStateMessageFocus(),this.props.dispatcher.confirmOrForcePush(this.props.repository),this.setState({actionInProgress:"force push"})};pull=()=>{this.closeDropdown(),this.props.dispatcher.pull(this.props.repository)};fetch=()=>{this.closeDropdown(),this.props.dispatcher.fetch(this.props.repository,ln.UserInitiatedTask)};getDropdownContentRenderer(e){return()=>Ae.createElement(QM,{itemTypes:e,remoteName:this.props.remoteName,fetch:this.fetch,forcePushWithLease:this.forcePushWithLease,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush})}render(){return Ae.createElement(Ae.Fragment,null,this.renderButton(),Ae.createElement("span",{id:"push-pull-button-state"},Ae.createElement(qT,{message:this.state.screenReaderStateMessage})))}renderButton(){const{progress:e,networkActionInProgress:t,aheadBehind:n,numTagsToPush:r,remoteName:i,repository:s,tipState:o,rebaseInProgress:a,lastFetched:l,pullWithRebase:c,forcePushBranchState:u}=this.props;if(null!==e)return this.progressButton(e,t);if(null===i)return this.publishRepositoryButton(this.push);if(o===Hr.Unborn)return this.unbornRepositoryButton();if(o===Hr.Detached)return this.detachedHeadButton(a);if(null===n){const e=null!==s.gitHubRepository;return this.publishBranchButton(e,this.push,this.props.shouldNudge)}const{ahead:h,behind:p}=n;return 0===h&&0===p&&0===r?this.fetchButton(i,l,this.fetch):u===iy.Recommended?this.forcePushButton(i,n,r,l,this.forcePushWithLease):p>0?this.pullButton(i,n,r,l,c||!1,u,this.pull):this.pushButton(i,n,r,l,this.push)}progressButton(e,t){return Ae.createElement(YM,{...this.defaultButtonProps(),title:e.title,description:e.description||"请稍后...",progressValue:e.value,icon:Qu,iconClassName:t?"spin":"",tooltip:e.description,disabled:!0})}publishRepositoryButton(e){return Ae.createElement(YM,{...this.defaultButtonProps(),title:"发布存储库",description:"将此仓库发布到GitHub",className:"push-pull-button",icon:hu,style:jM.Subtitle,onClick:e})}unbornRepositoryButton(){return Ae.createElement(YM,{...this.defaultButtonProps(),title:"发布分支",description:"无法发布未出现的 HEAD",icon:hu,disabled:!0})}detachedHeadButton(e){const t=e?"正在重设变基":"Cannot publish detached HEAD";return Ae.createElement(YM,{...this.defaultButtonProps(),title:"发布分支",description:t,icon:hu,disabled:!0})}publishBranchButton(e,t,n){const r=e?"将此分支发布到GitHub":"将此分支发布到远程",i=ri()(this.defaultDropdownProps().className,"nudge-arrow",{"nudge-arrow-up":n});return Ae.createElement(XM,{...this.defaultDropdownProps(),title:"发布分支",description:r,icon:hu,onClick:t,className:i,dropdownContentRenderer:this.getDropdownContentRenderer([eP.Fetch])})}fetchButton(e,t,n){const r=`同步(拉取然后推送) ${e}`;return Ae.createElement(YM,{...this.defaultButtonProps(),title:r,description:nP(t),icon:Qu,onClick:n})}pullButton(e,t,n,r,i,s,o){const a=i?`拉取 ${e} 至变基`:`拉取 ${e}`,l=[eP.Fetch];return s!==iy.NotAvailable&&l.push(eP.ForcePush),Ae.createElement(XM,{...this.defaultDropdownProps(),title:a,description:nP(r),icon:Ri,onClick:o,dropdownContentRenderer:this.getDropdownContentRenderer(l),returnFocusOnDeactivate:this.returnFocusOnDeactivate(),onDropdownFocusTrapDeactivate:this.onDropdownFocusTrapDeactivate},tP(t,n))}pushButton(e,t,n,r,i){return Ae.createElement(XM,{...this.defaultDropdownProps(),title:`推送 ${e}`,description:nP(r),icon:Mi,onClick:i,dropdownContentRenderer:this.getDropdownContentRenderer([eP.Fetch])},tP(t,n))}forcePushButton(e,t,n,r,i){return Ae.createElement(XM,{...this.defaultDropdownProps(),title:`强制推送 ${e}`,description:nP(r),icon:rP,onClick:i,dropdownContentRenderer:this.getDropdownContentRenderer([eP.Fetch])},tP(t,n))}}function sP(e){return void 0===e}class oP extends Ae.Component{constructor(e){super(e),this.state={isPushingOrPublishing:!1}}render(){return Ae.createElement(aD,{id:"push-branch-commits",key:"push-branch-commits",title:this.renderDialogTitle(),onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,loading:this.state.isPushingOrPublishing,disabled:this.state.isPushingOrPublishing},this.renderDialogContent(),Ae.createElement(cD,null,this.renderButtonGroup()))}renderDialogContent(){if(sP(this.props.unPushedCommits))return Ae.createElement(nD,null,Ae.createElement("p",null,"您的分支必须在打开拉取请求之前发布。"),Ae.createElement("p",null,"发布 ",Ae.createElement(CD,null,this.props.branch.name)," 并且拉取?"));const e=(n="local commit",1===(t=this.props.unPushedCommits)?`${t} ${n}`:`${t} ${n}s`);var t,n;return Ae.createElement(nD,null,Ae.createElement("p",null,"你有 ",e," 尚未推送到远程的提交。"),Ae.createElement("p",null,"推送更改到"," ",Ae.createElement(CD,null,this.props.branch.name)," 在创建拉取请求之前?"))}renderDialogTitle(){return sP(this.props.unPushedCommits)?"发布分支?":"推送本地更改?"}renderButtonGroup(){return sP(this.props.unPushedCommits)?Ae.createElement(uD,{okButtonText:"发布分支"}):Ae.createElement(uD,{okButtonText:"推送提交",cancelButtonText:"无推送创建",onCancelButtonClick:this.onCreateWithoutPushButtonClick})}onCreateWithoutPushButtonClick=e=>{e.preventDefault(),this.props.onConfirm(this.props.repository,this.props.branch),this.props.onDismissed()};onSubmit=async()=>{const{repository:e,branch:t}=this.props;this.setState({isPushingOrPublishing:!0});try{await this.props.dispatcher.push(e)}finally{this.setState({isPushingOrPublishing:!1})}this.props.onConfirm(e,t),this.props.onDismissed()}}const aP=Pt(__dirname,"static/empty-no-branches.svg");class lP extends Ae.Component{render(){return this.props.canCreateNewBranch?Ae.createElement("div",{className:"no-branches"},Ae.createElement("img",{src:aP,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"title"},"抱歉,未找到分支"),Ae.createElement("div",{className:"subtitle"},"是否创建新分支?"),Ae.createElement(mi,{className:"create-branch-button",onClick:this.props.onCreateNewBranch,type:"submit"},"创建新分支"),Ae.createElement("div",{className:"protip"},"ProTip! Press"," ",Ae.createElement(Ru,{darwinKeys:["⌘","⇧","N"],keys:["Ctrl","Shift","N"]})," ","可快速创建分支")):Ae.createElement("div",{className:"no-branches"},this.props.noBranchesMessage??"抱歉,未找到分支")}}function cP(e){const{name:t,isLocal:n,onRenameBranch:r,onDeleteBranch:i}=e,s=new Array;return void 0!==r&&s.push({label:"重命名",action:()=>r(t),enabled:n}),s.push({label:"复制分支名",action:()=>f.clipboard.writeText(t)}),s.push({type:"separator"}),void 0!==i&&s.push({label:"删除",action:()=>i(t)}),s}function uP(e,t,n,r,i){const s=function(e,t,n,r){const i=new Array;e&&i.push({identifier:"default",items:[{text:[e.name],id:e.name,branch:e}]});const s=new Set,o=e?e.name:null,a=r.filter((e=>e.name!==o));if(a.length>0){const e=new Array;for(const t of a)e.push({text:[t.name],id:t.name,branch:t}),s.add(t.name);i.push({identifier:"recent",items:e})}const l=n.filter((e=>e.name!==o&&!s.has(e.name)&&!e.isDesktopForkRemoteBranch)),c=l.map((e=>({text:[e.name],id:e.name,branch:e})));return i.push({identifier:"other",items:c}),i}(e,0,n,r);let o=null;if(i)for(const e of s)if(o=e.items.find((e=>e.branch.name===i.name))||null,o)break;return{groups:s,selectedItem:o}}class hP extends Ae.Component{branchFilterList=null;constructor(e){super(e),this.state=uP(e.defaultBranch,e.currentBranch,e.allBranches,e.recentBranches,e.selectedBranch)}componentWillReceiveProps(e){this.setState(uP(e.defaultBranch,e.currentBranch,e.allBranches,e.recentBranches,e.selectedBranch))}selectNextItem(e=!1,t){null!==this.branchFilterList&&this.branchFilterList.selectNextItem(e,t)}render(){return Ae.createElement(YT,{ref:this.onBranchesFilterListRef,className:"branches-list",rowHeight:30,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,onFilterKeyDown:this.props.onFilterKeyDown,selectedItem:this.state.selectedItem,renderItem:this.renderItem,renderGroupHeader:this.renderGroupHeader,onItemClick:this.onItemClick,onSelectionChanged:this.onSelectionChanged,onEnterPressedWithoutFilteredItems:this.onCreateNewBranch,groups:this.state.groups,invalidationProps:this.props.allBranches,renderPostFilter:this.onRenderNewButton,renderNoItems:this.onRenderNoItems,filterTextBox:this.props.textbox,hideFilterRow:this.props.hideFilterRow,onFilterListResultsChanged:this.props.onFilterListResultsChanged,renderPreList:this.props.renderPreList,onItemContextMenu:this.onBranchContextMenu,getItemAriaLabel:this.getItemAriaLabel,getGroupAriaLabel:this.getGroupAriaLabel})}onBranchContextMenu=(e,t)=>{t.preventDefault();const{onRenameBranch:n,onDeleteBranch:r}=this.props;if(void 0===n&&void 0===r)return;const{type:i,name:s}=e.branch;hh(cP({name:s,isLocal:i===$p.Local,onRenameBranch:n,onDeleteBranch:r}))};onBranchesFilterListRef=e=>{this.branchFilterList=e};renderItem=(e,t)=>this.props.renderBranch(e,t);parseHeader(e){switch(e){case"default":case"recent":case"other":return e;default:return null}}getItemAriaLabel=e=>this.props.getBranchAriaLabel?.(e);getGroupAriaLabel=e=>{const t=this.state.groups[e].identifier;return this.getGroupLabel(t)};renderGroupHeader=e=>{const t=this.parseHeader(e);return null!==t?Ae.createElement("div",{className:"branches-list-content filter-list-group-header"},this.getGroupLabel(t)):null};getGroupLabel(e){return"default"===e?"默认分支":"recent"===e?"最近分支":"other"===e?"其它分支":ct(0,`未知标识符: ${e}`)}onRenderNoItems=()=>Ae.createElement(lP,{onCreateNewBranch:this.onCreateNewBranch,canCreateNewBranch:this.props.canCreateNewBranch,noBranchesMessage:this.props.noBranchesMessage});onRenderNewButton=()=>this.props.canCreateNewBranch?Ae.createElement(mi,{className:"new-branch-button",onClick:this.onCreateNewBranch},"新建分支"):null;onItemClick=(e,t)=>{this.props.onItemClick&&this.props.onItemClick(e.branch,t)};onSelectionChanged=(e,t)=>{this.props.onSelectionChanged&&this.props.onSelectionChanged(e?e.branch:null,t)};onCreateNewBranch=()=>{this.props.onCreateNewBranch&&this.props.onCreateNewBranch(this.props.filterText)}}class pP extends Ae.PureComponent{statusSubscription=null;constructor(e){super(e);const t=e.dispatcher.tryGetCommitStatus(this.props.repository,this.props.commitRef);this.state={check:t},this.props.onCheckChange?.(t)}subscribe(){this.unsubscribe(),this.statusSubscription=this.props.dispatcher.subscribeToCommitStatus(this.props.repository,this.props.commitRef,this.onStatus)}unsubscribe(){this.statusSubscription&&(this.statusSubscription.dispose(),this.statusSubscription=null)}componentDidUpdate(e){this.props.repository===e.repository&&this.props.commitRef===e.commitRef||(this.setState({check:this.props.dispatcher.tryGetCommitStatus(this.props.repository,this.props.commitRef)}),this.subscribe())}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}onStatus=e=>{void 0!==this.props.onCheckChange&&this.props.onCheckChange(e),this.setState({check:e})};render(){const{check:e}=this.state;return null===e||0===e.checks.length?null:Ae.createElement(yi,{className:ri()("ci-status",`ci-status-${mP(e)}`,this.props.className),symbol:dP(e),title:gP(e)})}}function dP(e){switch(e.conclusion){case"timed_out":case"failure":return yu;case"neutral":return Ac;case"success":return Xi;case"cancelled":return Pc;case"action_required":return vi;case"skipped":return wc;case"stale":return Ra}return Qs}function mP(e){switch(e.conclusion){case"timed_out":return"timed-out";case"action_required":return"action-required";case"failure":case"neutral":case"success":case"cancelled":case"skipped":case"stale":return e.conclusion}return"pending"}function fP(e){switch(e.conclusion){case"success":return Ji;case"failure":return bu}return dP(e)}function gP(e){if(1===e.checks.length){const{name:t,description:n}=e.checks[0];return`${t}: ${n}`}return`${e.checks.reduce(((e,t)=>e+(Nb(t)?1:0)),0)}/${e.checks.length} checks OK`}class yP extends Ae.Component{constructor(e){super(e),this.state={isDragInProgress:!1}}getSubtitle(){if(!0===this.props.loading)return;const e=Zw(this.props.created.getTime()-Date.now()),t=`#${this.props.number} opened ${e} by ${this.props.author}`;return this.props.draft?`${t} • Draft`:t}onMouseEnter=e=>{bp.isDragInProgress&&(this.setState({isDragInProgress:!0}),bp.emitEnterDropTarget({type:Cp.Branch,branchName:this.props.title}));const{top:t}=e.currentTarget.getBoundingClientRect();this.props.onMouseEnter(this.props.number,t)};onMouseLeave=e=>{bp.isDragInProgress&&(this.setState({isDragInProgress:!1}),bp.emitLeaveDropTarget()),this.props.onMouseLeave(e)};onMouseUp=()=>{bp.isDragInProgress&&(this.setState({isDragInProgress:!1}),this.props.onDropOntoPullRequest(this.props.number))};render(){const e=!0===this.props.loading?void 0:this.props.title,t=this.getSubtitle(),n=this.props.matches,r=ri()("pull-request-item",{loading:!0===this.props.loading,open:!this.props.draft,draft:this.props.draft,"drop-target":this.state.isDragInProgress});return Ae.createElement("div",{className:r,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},Ae.createElement("div",null,Ae.createElement(yi,{className:"icon",symbol:this.props.draft?na:ea})),Ae.createElement("div",{className:"info"},Ae.createElement(eh,{tagName:"div",className:"title",tooltip:e,onlyWhenOverflowed:!0},Ae.createElement(Ju,{text:e||"",highlight:n.title})),Ae.createElement(eh,{tagName:"div",className:"subtitle",tooltip:t,onlyWhenOverflowed:!0},Ae.createElement(Ju,{text:t||"",highlight:n.subtitle}))),this.renderPullRequestStatus())}renderPullRequestStatus(){const e=tm(this.props.number);return Ae.createElement("div",{className:"ci-status-container"},Ae.createElement(pP,{dispatcher:this.props.dispatcher,repository:this.props.repository,commitRef:e}))}}const wP=Pt(__dirname,"static/empty-no-pull-requests.svg");class bP extends Ae.Component{render(){return Ae.createElement("div",{className:"no-pull-requests"},Ae.createElement("img",{src:wP,className:"blankslate-image",alt:""}),this.renderTitle(),this.renderCallToAction())}renderTitle(){return this.props.isSearch?Ae.createElement("div",{className:"title"},"Sorry, I can't find that pull request!"):this.props.isLoadingPullRequests?Ae.createElement("div",{className:"title"},"Hang tight"):Ae.createElement("div",null,Ae.createElement("div",{className:"title"},"You're all set!"),Ae.createElement("div",{className:"no-prs"},"No open pull requests in ",Ae.createElement(CD,null,this.props.repositoryName)))}renderCallToAction(){return this.props.isLoadingPullRequests?Ae.createElement("div",{className:"call-to-action"},"Loading pull requests as fast as I can!"):this.props.isOnDefaultBranch?Ae.createElement("div",{className:"call-to-action"},"Would you like to"," ",Ae.createElement(Hx,{onClick:this.props.onCreateBranch},"create a new branch")," ","and get going on your next project?"):Ae.createElement("div",{className:"call-to-action"},"Would you like to"," ",Ae.createElement(Hx,{onClick:this.props.onCreatePullRequest},"create a pull request")," ","from the current branch?")}}function vP(e,t,n){let r=null;return null!=t.selectedPullRequest&&(r=kP(e,t.selectedPullRequest)),null==r&&null!=n&&(r=kP(e,n.pullRequest)),r}class CP extends Ae.Component{constructor(e){super(e);const t=EP(e.pullRequests),n=vP(t,e,null);this.state={filterText:"",groupedItems:[t],selectedItem:n,screenReaderStateMessage:null}}componentWillReceiveProps(e){const t=EP(e.pullRequests),n=vP(t,e,this.state.selectedItem),r=!this.props.isLoadingPullRequests&&e.isLoadingPullRequests,i=this.props.isLoadingPullRequests&&!e.isLoadingPullRequests,s=this.props.pullRequests.length,o=r?"Hang Tight. Loading pull requests as fast as I can!":i?`${s} pull request${1===s?"":"s"} found`:null;this.setState({groupedItems:[t],selectedItem:n,screenReaderStateMessage:o})}render(){return Ae.createElement(Ae.Fragment,null,Ae.createElement(YT,{className:"pull-request-list",rowHeight:47,groups:this.state.groupedItems,selectedItem:this.state.selectedItem,renderItem:this.renderPullRequest,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,invalidationProps:this.props.pullRequests,onItemClick:this.onItemClick,onSelectionChanged:this.onSelectionChanged,renderGroupHeader:this.renderListHeader,renderNoItems:this.renderNoItems,renderPostFilter:this.renderPostFilter}),Ae.createElement(qT,{message:this.state.screenReaderStateMessage}))}renderNoItems=()=>Ae.createElement(bP,{isSearch:this.state.filterText.length>0,isLoadingPullRequests:this.props.isLoadingPullRequests,repositoryName:this.getRepositoryName(),isOnDefaultBranch:this.props.isOnDefaultBranch,onCreateBranch:this.props.onCreateBranch,onCreatePullRequest:this.onCreatePullRequest});renderPullRequest=(e,t)=>{const n=e.pullRequest;return Ae.createElement(yP,{title:n.title,number:n.pullRequestNumber,created:n.created,author:n.author,draft:n.draft,matches:t,dispatcher:this.props.dispatcher,repository:n.base.gitHubRepository,onDropOntoPullRequest:this.onDropOntoPullRequest,onMouseEnter:this.onMouseEnterPullRequest,onMouseLeave:this.onMouseLeavePullRequest})};onMouseEnterPullRequest=(e,t)=>{const{pullRequests:n}=this.props,r=n.find((t=>t.pullRequestNumber===e));void 0!==r?this.props.onMouseEnterPullRequest(r,t):log.error("[onMouseEnterPullReqest] - Could not find pull request.")};onMouseLeavePullRequest=e=>{this.props.onMouseLeavePullRequest(e)};onDropOntoPullRequest=e=>{const{repository:t,selectedPullRequest:n,dispatcher:r,pullRequests:i}=this.props;if(!bp.isDragOfTypeInProgress(vp.Commit))return;if(null!==n&&e===n.pullRequestNumber)return r.endMultiCommitOperation(t),void r.incrementMetric("dragStartedAndCanceledCount");const s=i.find((t=>t.pullRequestNumber===e));if(void 0===s)return log.error("[onDropOntoPullRequest] - Could not find pull request."),void r.endMultiCommitOperation(t);r.startCherryPickWithPullRequest(t,s)};onItemClick=(e,t)=>{const n=e.pullRequest;this.props.dispatcher.closeFoldout(et.Branch);const r=Lx("checkout pull request from list",this.props.repository);this.props.dispatcher.checkoutPullRequest(this.props.repository,n).then((()=>r.done())),this.props.onSelectionChanged(n,t)};onSelectionChanged=(e,t)=>{this.props.onSelectionChanged(null!=e?e.pullRequest:null,t)};getRepositoryName(){return Gr(this.props.repository).fullName}renderListHeader=()=>Ae.createElement("div",{className:"filter-list-group-header"},"Pull requests in ",this.getRepositoryName());onRefreshPullRequests=()=>{this.props.dispatcher.refreshPullRequests(this.props.repository)};renderPostFilter=()=>{const e="Refresh the list of pull requests";return Ae.createElement(mi,{disabled:this.props.isLoadingPullRequests,onClick:this.onRefreshPullRequests,ariaLabel:e,tooltip:e},Ae.createElement(yi,{symbol:Qu,className:this.props.isLoadingPullRequests?"spin":void 0}))};onFilterTextChanged=e=>{this.setState({filterText:e})};onCreatePullRequest=()=>{this.props.dispatcher.closeFoldout(et.Branch),this.props.dispatcher.createPullRequest(this.props.repository)}}function SP(e){const t=Zw(e.created.getTime()-Date.now());return`#${e.pullRequestNumber} opened ${t} by ${e.author}`}function EP(e){return{identifier:"pull-requests",items:e.map((e=>({text:[e.title,SP(e)],id:e.pullRequestNumber.toString(),pullRequest:e})))}}function kP(e,t){return e.items.find((e=>e.pullRequest.pullRequestNumber===t.pullRequestNumber))||null}class RP extends Ae.Component{constructor(e){super(e),this.state={isDragInProgress:!1}}onMouseEnter=()=>{bp.isDragInProgress&&this.setState({isDragInProgress:!0}),bp.isDragOfTypeInProgress(vp.Commit)&&bp.emitEnterDropTarget({type:Cp.Branch,branchName:this.props.name})};onMouseLeave=()=>{this.setState({isDragInProgress:!1}),bp.isDragOfTypeInProgress(vp.Commit)&&bp.emitLeaveDropTarget()};onMouseUp=()=>{const{onDropOntoBranch:e,onDropOntoCurrentBranch:t,name:n,isCurrentBranch:r}=this.props;this.setState({isDragInProgress:!1}),bp.isDragOfTypeInProgress(vp.Commit)&&(void 0===e||r||e(n),void 0!==t&&r&&t())};render(){const{lastCommitDate:e,isCurrentBranch:t,name:n}=this.props,r=t?Xi:Ko,i=ri()("branches-list-item",{"drop-target":this.state.isDragInProgress});return Ae.createElement("div",{className:i,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},Ae.createElement(yi,{className:"icon",symbol:r}),Ae.createElement(eh,{className:"name",tooltip:n,onlyWhenOverflowed:!0,tagName:"div"},Ae.createElement(Ju,{text:n,highlight:this.props.matches.title})),e&&Ae.createElement(PM,{className:"description",date:e,onlyRelative:!0}))}}function TP(e,t,n,r,i){const s=e.branch,o=s.tip,a=n?n.name:null;return Ae.createElement(RP,{name:s.name,isCurrentBranch:s.name===a,lastCommitDate:o?o.author.date:null,matches:t,onDropOntoBranch:r,onDropOntoCurrentBranch:i})}function AP(e){const t=e.branch,n=t.tip,r=n?n.author.date:null;if(!r)return t.name;const{relativeText:i}=MM(r,!0);return`${e.branch.name} ${i}`}const xP=new WeakMap;function DP(e){let t=xP.get(e);return void 0===t&&(t=(0,vn.randomBytes)(8).toString("base64url"),xP.set(e,t)),t}var _P=n(746),MP=n.n(_P);let PP={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const IP=/[&<>"']/,OP=/[&<>"']/g,NP=/[<>"']|&(?!#?\w+;)/,LP=/[<>"']|&(?!#?\w+;)/g,BP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FP=e=>BP[e];function HP(e,t){if(t){if(IP.test(e))return e.replace(OP,FP)}else if(NP.test(e))return e.replace(LP,FP);return e}const UP=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ZP(e){return e.replace(UP,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const $P=/(^|[^\[])\^/g;function WP(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace($P,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const qP=/[^\w:]/g,VP=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function GP(e,t,n){if(e){let e;try{e=decodeURIComponent(ZP(n)).replace(qP,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!VP.test(n)&&(n=function(e,t){zP[" "+e]||(jP.test(e)?zP[" "+e]=e+"/":zP[" "+e]=eI(e,"/",!0));const n=-1===(e=zP[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(KP,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(YP,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const zP={},jP=/^[^:]+:\/*[^/]*$/,KP=/^([^:]+:)[\s\S]*$/,YP=/^([^:]+:\/*[^/]*)[\s\S]*$/,XP={exec:function(){}};function QP(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function JP(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function eI(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s!==t||n){if(s===t||!n)break;i++}else i++}return e.substr(0,r-i)}function tI(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function nI(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function rI(e,t,n,r){const i=t.href,s=t.title?HP(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:s,text:HP(o)}}class iI{constructor(e){this.options=e||PP}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eI(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=eI(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,s,o,a,l,c,u,h,p,d,m=t[1].trim();const f=m.length>1,g={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");const y=new RegExp(`^( {0,3}${m})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(d=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(s=2,p=c.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,p=c.slice(s),s+=t[1].length),a=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),d=!0),!d){const t=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(h=e.split("\n",1)[0],c=h,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c));){if(c.search(/[^ ]/)>=s||!c.trim())p+="\n"+c.slice(s);else{if(a)break;p+="\n"+c}a||c.trim()||(a=!0),n+=h+"\n",e=e.substring(h.length+1)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p),r&&(i="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:p}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=p.trimRight(),g.raw=g.raw.trimRight();const w=g.items.length;for(o=0;o<w;o++){this.lexer.state.top=!1,g.items[o].tokens=this.lexer.blockTokens(g.items[o].text,[]);const e=g.items[o].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[o].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):HP(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:JP(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,s,o=e.align.length;for(n=0;n<o;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(o=e.rows.length,n=0;n<o;n++)e.rows[n]=JP(e.rows[n],e.header.length).map((e=>({text:e})));for(o=e.header.length,r=0;r<o;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(o=e.rows.length,r=0;r<o;r++)for(s=e.rows[r],i=0;i<s.length;i++)s[i].tokens=[],this.lexer.inlineTokens(s[i].text,s[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:HP(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):HP(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=eI(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),rI(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return rI(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,s,o=n,a=0;const l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=i.length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){a+=s;continue}if(o-=s,o>0)continue;if(s=Math.min(s,s+o+a),Math.min(n,s)%2){const t=e.slice(1,n+r.index+s);return{type:"em",raw:e.slice(0,n+r.index+s+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+s-1);return{type:"strong",raw:e.slice(0,n+r.index+s+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=HP(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=HP(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=HP(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=HP(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=HP(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):HP(n[0]):n[0]:HP(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const sI={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:XP,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};sI.def=WP(sI.def).replace("label",sI._label).replace("title",sI._title).getRegex(),sI.bullet=/(?:[*+-]|\d{1,9}[.)])/,sI.listItemStart=WP(/^( *)(bull) */).replace("bull",sI.bullet).getRegex(),sI.list=WP(sI.list).replace(/bull/g,sI.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+sI.def.source+")").getRegex(),sI._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sI._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,sI.html=WP(sI.html,"i").replace("comment",sI._comment).replace("tag",sI._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sI.paragraph=WP(sI._paragraph).replace("hr",sI.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sI._tag).getRegex(),sI.blockquote=WP(sI.blockquote).replace("paragraph",sI.paragraph).getRegex(),sI.normal=QP({},sI),sI.gfm=QP({},sI.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),sI.gfm.table=WP(sI.gfm.table).replace("hr",sI.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sI._tag).getRegex(),sI.gfm.paragraph=WP(sI._paragraph).replace("hr",sI.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",sI.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sI._tag).getRegex(),sI.pedantic=QP({},sI.normal,{html:WP("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",sI._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:XP,paragraph:WP(sI.normal._paragraph).replace("hr",sI.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",sI.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const oI={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:XP,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:XP,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function aI(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function lI(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}oI._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",oI.punctuation=WP(oI.punctuation).replace(/punctuation/g,oI._punctuation).getRegex(),oI.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,oI.escapedEmSt=/\\\*|\\_/g,oI._comment=WP(sI._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),oI.emStrong.lDelim=WP(oI.emStrong.lDelim).replace(/punct/g,oI._punctuation).getRegex(),oI.emStrong.rDelimAst=WP(oI.emStrong.rDelimAst,"g").replace(/punct/g,oI._punctuation).getRegex(),oI.emStrong.rDelimUnd=WP(oI.emStrong.rDelimUnd,"g").replace(/punct/g,oI._punctuation).getRegex(),oI._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,oI._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,oI._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,oI.autolink=WP(oI.autolink).replace("scheme",oI._scheme).replace("email",oI._email).getRegex(),oI._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,oI.tag=WP(oI.tag).replace("comment",oI._comment).replace("attribute",oI._attribute).getRegex(),oI._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oI._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,oI._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,oI.link=WP(oI.link).replace("label",oI._label).replace("href",oI._href).replace("title",oI._title).getRegex(),oI.reflink=WP(oI.reflink).replace("label",oI._label).replace("ref",sI._label).getRegex(),oI.nolink=WP(oI.nolink).replace("ref",sI._label).getRegex(),oI.reflinkSearch=WP(oI.reflinkSearch,"g").replace("reflink",oI.reflink).replace("nolink",oI.nolink).getRegex(),oI.normal=QP({},oI),oI.pedantic=QP({},oI.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:WP(/^!?\[(label)\]\((.*?)\)/).replace("label",oI._label).getRegex(),reflink:WP(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oI._label).getRegex()}),oI.gfm=QP({},oI.normal,{escape:WP(oI.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),oI.gfm.url=WP(oI.gfm.url,"i").replace("email",oI.gfm._extended_email).getRegex(),oI.breaks=QP({},oI.gfm,{br:WP(oI.br).replace("{2,}","*").getRegex(),text:WP(oI.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class cI{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||PP,this.options.tokenizer=this.options.tokenizer||new iI,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:sI.normal,inline:oI.normal};this.options.pedantic?(t.block=sI.pedantic,t.inline=oI.pedantic):this.options.gfm&&(t.block=sI.gfm,this.options.breaks?t.inline=oI.breaks:t.inline=oI.gfm),this.tokenizer.rules=t}static get rules(){return{block:sI,inline:oI}}static lex(e,t){return new cI(t).lex(e)}static lexInline(e,t){return new cI(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,s;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),s=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,i,s,o,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+nI("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+nI("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,lI))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,lI))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,aI))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),o=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class uI{constructor(e){this.options=e||PP}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+HP(r,!0)+'">'+(n?e:HP(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:HP(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=GP(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+HP(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=GP(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class hI{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class pI{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class dI{constructor(e){this.options=e||PP,this.options.renderer=this.options.renderer||new uI,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new hI,this.slugger=new pI}static parse(e,t){return new dI(t).parse(e)}static parseInline(e,t){return new dI(t).parseInline(e)}parse(e,t=!0){let n,r,i,s,o,a,l,c,u,h,p,d,m,f,g,y,w,b,v,C="";const S=e.length;for(n=0;n<S;n++)if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(v=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==v||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))C+=v||"";else switch(h.type){case"space":continue;case"hr":C+=this.renderer.hr();continue;case"heading":C+=this.renderer.heading(this.parseInline(h.tokens),h.depth,ZP(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":C+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",s=h.header.length,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(h.header[r].tokens),{header:!0,align:h.align[r]});for(c+=this.renderer.tablerow(l),u="",s=h.rows.length,r=0;r<s;r++){for(a=h.rows[r],l="",o=a.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(a[i].tokens),{header:!1,align:h.align[i]});u+=this.renderer.tablerow(l)}C+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),C+=this.renderer.blockquote(u);continue;case"list":for(p=h.ordered,d=h.start,m=h.loose,s=h.items.length,u="",r=0;r<s;r++)g=h.items[r],y=g.checked,w=g.task,f="",g.task&&(b=this.renderer.checkbox(y),m?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):f+=b),f+=this.parse(g.tokens,m),u+=this.renderer.listitem(f,w,y);C+=this.renderer.list(u,p,d);continue;case"html":C+=this.renderer.html(h.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1<S&&"text"===e[n+1].type;)h=e[++n],u+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);C+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return C}parseInline(e,t){t=t||this.renderer;let n,r,i,s="";const o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))s+=i||"";else switch(r.type){case"escape":case"text":s+=t.text(r.text);break;case"html":s+=t.html(r.text);break;case"link":s+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":s+=t.image(r.href,r.title,r.text);break;case"strong":s+=t.strong(this.parseInline(r.tokens,t));break;case"em":s+=t.em(this.parseInline(r.tokens,t));break;case"codespan":s+=t.codespan(r.text);break;case"br":s+=t.br();break;case"del":s+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return s}}function mI(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),tI(t=QP({},mI.defaults,t||{})),n){const r=t.highlight;let i;try{i=cI.lex(e,t)}catch(e){return n(e)}const s=function(e){let s;if(!e)try{t.walkTokens&&mI.walkTokens(i,t.walkTokens),s=dI.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,s)};if(!r||r.length<3)return s();if(delete t.highlight,!i.length)return s();let o=0;return mI.walkTokens(i,(function(e){"code"===e.type&&(o++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),o--,0===o&&s()}))}),0))})),void(0===o&&s())}try{const n=cI.lex(e,t);return t.walkTokens&&mI.walkTokens(n,t.walkTokens),dI.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+HP(e.message+"",!0)+"</pre>";throw e}}mI.options=mI.setOptions=function(e){var t;return QP(mI.defaults,e),t=mI.defaults,PP=t,mI},mI.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},mI.defaults=PP,mI.use=function(...e){const t=QP({},...e),n=mI.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=mI.defaults.renderer||new uI;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let s=e.renderer[t].apply(n,i);return!1===s&&(s=r.apply(n,i)),s}}t.renderer=n}if(e.tokenizer){const n=mI.defaults.tokenizer||new iI;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let s=e.tokenizer[t].apply(n,i);return!1===s&&(s=r.apply(n,i)),s}}t.tokenizer=n}if(e.walkTokens){const n=mI.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),mI.setOptions(t)}))},mI.walkTokens=function(e,t){for(const n of e)switch(t.call(mI,n),n.type){case"table":for(const e of n.header)mI.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)mI.walkTokens(n.tokens,t);break;case"list":mI.walkTokens(n.items,t);break;default:mI.defaults.extensions&&mI.defaults.extensions.childTokens&&mI.defaults.extensions.childTokens[n.type]?mI.defaults.extensions.childTokens[n.type].forEach((function(e){mI.walkTokens(n[e],t)})):n.tokens&&mI.walkTokens(n.tokens,t)}},mI.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");tI(t=QP({},mI.defaults,t||{}));try{const n=cI.lexInline(e,t);return t.walkTokens&&mI.walkTokens(n,t.walkTokens),dI.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+HP(e.message+"",!0)+"</pre>";throw e}},mI.Parser=dI,mI.parser=dI.parse,mI.Renderer=uI,mI.TextRenderer=hI,mI.Lexer=cI,mI.lexer=cI.lex,mI.Tokenizer=iI,mI.Slugger=pI,mI.parse=mI,mI.options,mI.setOptions,mI.use,mI.walkTokens,mI.parseInline,dI.parse,cI.lex;class fI{emojiRegex;emojiFilePath;emojiBase64URICache=new Map;constructor(e){this.emojiFilePath=e,this.emojiRegex=this.buildEmojiRegExp(e)}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){let t=e.textContent;if(e.nodeType!==e.TEXT_NODE||null===t||!t.includes(":"))return null;const n=t.match(this.emojiRegex);if(null===n)return null;const r=new Array;for(let e=0;e<n.length;e++){const i=n[e],s=this.emojiFilePath.get(i);if(void 0===s)continue;const o=await this.createEmojiNode(s);if(null===o)continue;const a=t.indexOf(i),l=t.slice(0,a),c=document.createTextNode(l);r.push(c),r.push(o),t=t.slice(a+i.length)}if(""!==t){const e=document.createTextNode(t);r.push(e)}return r}async createEmojiNode(e){try{const t=await this.getBase64FromImageUrl(e),n=new Image;return n.classList.add("emoji"),n.src=t,n}catch(e){}return null}async getBase64FromImageUrl(e){const t=this.emojiBase64URICache.get(e);if(void 0!==t)return t;const n=`data:image/png;base64,${(await(0,b.readFile)((0,o.fileURLToPath)(e))).toString("base64")}`;return this.emojiBase64URICache.set(e,n),n}buildEmojiRegExp(e){const t=[...e.keys()].map((e=>z_()(e))).join("|");return new RegExp("("+t+")","g")}}function gI(e){const t=ar(e.endpoint);return new RegExp(z_()(t)+"/"+/(?<nameWithOwner>\w+(?:-\w+)*\/[.\w-]+)/.source+"/"+/(?:issues|pull|discussions)/.source+"/"+/(?<refNumber>\d+)(?<anchor>#[\w-]+)?\b/.source)}class yI{repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(null===e.parentNode||!["CODE","PRE","A"].includes(e.parentNode.nodeName))&&e instanceof HTMLAnchorElement&&e.href===e.innerText&&this.isGitHubIssuePullDiscussionLink(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP})}isGitHubIssuePullDiscussionLink(e){return!!/(issue|pull|discussion)/.test(e.href)&&(!/\d+\/(files|commits|conflicts|checks)/.test(e.href)&&(!/\.[a-z]+\z/.test(e.href)&&gI(this.repository).test(e.href)))}async filter(e){const{textContent:t}=e;if(!(e instanceof HTMLAnchorElement)||null===t)return null;const n=t.match(gI(this.repository));if(null===n||void 0===n.groups)return null;const{refNumber:r,anchor:i}=n.groups,s=e.cloneNode(!0);return s.textContent=this.getConsistentIssueReferenceText(r,i),[s]}getConsistentIssueReferenceText(e,t){return`#${e} ${this.getAnchorDescription(t)}`}getAnchorDescription(e){if(void 0===e)return"";switch(!0){case/discussion-diff-/.test(e):return"(diff)";case/commits-pushed-/.test(e):return"(commits)";case/ref-/.test(e):return"(reference)";case/pullrequestreview/.test(e):return"(review)"}return"(comment)"}}function wI(e,t){if(void 0===e)return[];const n=e.split("/");return n.length>3||1===n.length&&n[0]!==t.owner.login?null:2!==n.length||n[0]===t.owner.login&&n[1]===t.name?[]:n}const bI=/(?<marker>#|gh-|\/(?:issues|pull|discussions)\/)(?=\d)/i,vI=/(?<=^|\W)/,CI=new RegExp(/(?<ownerOrOwnerRepo>\w+(?:-\w+)*(?:\/[.\w-]+)?)/.source+"?"+bI.source+/(?<refNumber>\d+)\b/.source,"i");class SI{issueReferenceWithLeader=new RegExp(vI.source+CI.source,"ig");repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||!bI.test(t))return null;let n=0;const r=[],i=t.matchAll(this.issueReferenceWithLeader);for(const e of i){if(void 0===e.groups||void 0===e.index)continue;const{marker:i,refNumber:s,ownerOrOwnerRepo:o}=e.groups;if(void 0===i||void 0===s)continue;const a=this.createLinkElement(i,s,o);if(null===a)continue;const l=t.slice(n,e.index),c=document.createTextNode(l);r.push(c),r.push(a),n=e.index+(o?.length??0)+i.length+s.length}const s=t.slice(n);return""!==s&&r.push(document.createTextNode(s)),r}createLinkElement(e,t,n){let r=`${e}${t}`;const i=wI(n,this.repository);if(null===i)return null;let[s,o]=i;void 0!==s&&void 0!==o?r=`${n}${r}`:(s=this.repository.owner.login,o=this.repository.name);const a=`${ar(this.repository.endpoint)}/${s}/${o}/issues/${t}`,l=document.createElement("a");return l.textContent=r,l.href=a,l}}class EI{repository;beginStringNonWord=/(^|[^a-zA-Z0-9_`])/;userNameRef=/(?<userNameRef>@[a-z0-9][a-z0-9-]*_[a-zA-Z0-9]+|@[a-z0-9][a-z0-9-]*)/;withoutTrailingSlash=/(?!\/)/;dotsFollowedBySpace=/\.+[\t\W]/;dotsAtEndOfLine=/\.+$/;nonWordExceptDotOrBackTickOrHyphen=/[^0-9a-zA-Z_.`-]/;mentionRegex=new RegExp(this.beginStringNonWord.source+this.userNameRef.source+this.withoutTrailingSlash.source+"(?="+this.dotsFollowedBySpace.source+"|"+this.dotsAtEndOfLine.source+"|"+this.nonWordExceptDotOrBackTickOrHyphen.source+"|$)","ig");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||!t.includes("@"))return null;let n=0;const r=[],i=t.matchAll(this.mentionRegex);for(const e of i){if(void 0===e.groups||void 0===e.index)continue;const{userNameRef:i}=e.groups;if(void 0===i)continue;const s=this.createLinkElement(i),o=0===e.index?0:e.index+1,a=t.slice(n,o),l=document.createTextNode(a);r.push(l),r.push(s),n=o+(i.length??0)}const s=t.slice(n);return""!==s&&r.push(document.createTextNode(s)),r}createLinkElement(e){const t=`${ar(this.repository.endpoint)}/${e.slice(1)}`,n=document.createElement("a");return n.textContent=e,n.href=t,n}}const kI=new RegExp("^"+z_()("https://user-images.githubusercontent.com")+".+"+/(mp4|webm|ogg|mov|qt|avi|wmv|3gp|mpg|mpeg|)$/.source,"i");class RI{createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>null===this.getGithubVideoLink(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const t=this.getGithubVideoLink(e);if(null===t)return null;const n=document.createElement("video");return n.src=t,[n]}getGithubVideoLink(e){return e instanceof HTMLParagraphElement&&1===e.childElementCount&&e.firstChild instanceof HTMLAnchorElement&&kI.test(e.firstChild.href)?e.firstChild.href:null}}class TI{createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return e instanceof HTMLVideoElement&&!kI.test(e.src)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}})}async filter(e){return e instanceof HTMLVideoElement&&!kI.test(e.src)?[]:null}}class AI{repository;beginStringNonWordRegix=/(^|\W)/;orgRegix=/(?<org>@[a-z0-9][a-z0-9-]*)/;teamRegix=/(?<team>\/[a-z0-9][a-z0-9\-_]*)/;teamMentionRegex=new RegExp(this.beginStringNonWordRegix.source+this.orgRegix.source+this.teamRegix.source+/\b/.source,"ig");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent||!e.textContent.includes("@")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||"Organization"!==this.repository.owner.type)return null;let n=0;const r=[],i=t.matchAll(this.teamMentionRegex);for(const e of i){if(void 0===e.groups||void 0===e.index)continue;const{org:i,team:s}=e.groups;if(void 0===i||void 0===s||wr(i.slice(1),this.repository.owner.login))continue;const o=this.createLinkElement(i.slice(1),s.slice(1)),a=0===e.index?0:e.index+1,l=t.slice(n,a),c=document.createTextNode(l);r.push(c),r.push(o),n=a+i.length+s.length}const s=t.slice(n);return""!==s&&r.push(document.createTextNode(s)),r}createLinkElement(e,t){const n=`${ar(this.repository.endpoint)}/orgs/${e}/teams/${t}`,r=document.createElement("a");return r.textContent=`@${e}/${t}`,r.href=n,r}}class xI{repository;sharedLeader=/^|[\s({\[]/;sharedLeaderWithAt=new RegExp(this.sharedLeader.source+"|@");sharedLeaderWithAtAndDots=new RegExp(this.sharedLeaderWithAt.source+"|"+/\.\.|\.\.\./.source);sha=/[0-9a-f]{7,40}/;endBoundedSha=new RegExp(this.sha.source+/\b/.source);shaRange=new RegExp("(?<shaRange>(?<="+this.sharedLeaderWithAt.source+")(?<firstSha>"+this.sha.source+")"+/\.\.\./.source+"(?<lastSha>"+this.sha.source+"))"+/\b/.source);boundedSha=new RegExp("(?<boundedSha>(?<="+this.sharedLeaderWithAtAndDots.source+")(?<rawBoundedSha>"+this.sha.source+"))"+/\b/.source);ownerOrOwnerRepo=/(?<ownerOrOwnerRepo>[\w-]+\/?[\w.-]*)/;ownerSpecifiedSha=new RegExp("(?<ownerSpecifiedSha>(?<="+this.sharedLeader.source+")"+this.ownerOrOwnerRepo.source+"@(?<ownerSha>"+this.sha.source+")"+/\b/.source+")");commitShaRegexUnion=new RegExp(this.shaRange.source+"|"+this.ownerSpecifiedSha.source+"|"+this.boundedSha.source,"g");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent||!this.endBoundedSha.test(e.textContent)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t)return null;const n=[...t.matchAll(this.commitShaRegexUnion)];if(0===n.length)return null;let r=0;const i=[];for(const e of n){if(void 0===e.groups||void 0===e.index)continue;const n=this.createLink(e.groups);if(void 0===n)continue;const s=t.slice(r,e.index);i.push(document.createTextNode(s)),i.push(n);const{shaRange:o,ownerSpecifiedSha:a,boundedSha:l}=e.groups;r=e.index+(o??a??l??"").length}const s=t.slice(r);return""!==s&&i.push(document.createTextNode(s)),i}createLink(e){const{shaRange:t,firstSha:n,lastSha:r,ownerSpecifiedSha:i,ownerOrOwnerRepo:s,ownerSha:o,boundedSha:a,rawBoundedSha:l}=e;return void 0!==t?this.createCommitShaRangeLinkElement(n,r):void 0!==i?this.createOwnerSpecifiedCommitLinkElement(s,o):void 0!==a?this.createCommitMentionLinkElement(this.trimCommitSha(l),"commit"):void 0}createCommitShaRangeLinkElement(e,t){return this.createCommitMentionLinkElement(`${this.trimCommitSha(e)}...${this.trimCommitSha(t)}`,"compare")}createOwnerSpecifiedCommitLinkElement(e,t){const n=wI(e,this.repository);if(null===n)return;const r=this.trimCommitSha(t);if(n.length<2)return this.createCommitMentionLinkElement(r);const[i,s]=n;return this.createCommitMentionLinkElement(r,"commit",i,s,`${i}/${s}@`)}createCommitMentionLinkElement(e,t="commit",n=this.repository.owner.login,r=this.repository.name,i){const s=`${ar(this.repository.endpoint)}/${n}/${r}/${t}/${e}`,o=document.createElement("a");return o.innerHTML=`${i??""}<tt>${e}</tt>`,o.href=s,o}trimCommitSha(e){return e.length>=30?e.slice(0,7):e}}const DI=["Commit","PullRequest"];class _I{markdownContext;repository;closesWithTextReference=new RegExp(this.closeText("closeTextWIssue").source+"(?<issueReference>"+CI.source+")");closesAtEndOfText=new RegExp(this.closeText("closeTextAtEnd").source+/$/.source);closesKeywordUnion=new RegExp("("+this.closesWithTextReference.source+")|("+this.closesAtEndOfText.source+")","ig");constructor(e,t){this.markdownContext=e,this.repository=t}closeText(e){return new RegExp(/\b/.source+`(?<${e}>`+/close[sd]?|fix(e[sd])?|resolve[sd]?/.source+")"+/(\s*:?\s+)/.source)}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const t=e.textContent;if(e.nodeType!==e.TEXT_NODE||null===t)return null;const n=[...t.matchAll(this.closesKeywordUnion)];if(0===n.length)return null;let r=0;const i=[];for(const s of n){if(void 0===s.groups||void 0===s.index)continue;const{closeTextWIssue:n,closeTextAtEnd:o,issueReference:a}=s.groups,l=n??o,c=a??this.getIssueReferenceFromSibling(e.nextSibling);if(void 0===c||void 0===l)return null;const u=this.createTooltipContent(l,c),h=t.slice(r,s.index);i.push(document.createTextNode(h)),i.push(u),r=s.index+l.length}const s=t.slice(r);return""!==s&&i.push(document.createTextNode(s)),i}getIssueReferenceFromSibling(e){if(null===e||!(e instanceof HTMLAnchorElement)||e.href!==e.innerText)return;const t=e.href.match(gI(this.repository));return null!==t&&void 0!==t.groups&&void 0!==t.groups.refNumber?`#${t.groups.refNumber}`:void 0}createTooltipContent(e,t){const n=document.createElement("span");return n.textContent=e,n.classList.add("issue-keyword"),n.ariaLabel=`This ${"Commit"===this.markdownContext?"commit":"pull request"} closes ${t}.`,n}}class MI{nameWithOwner=/(?<owner>-?[a-z0-9][a-z0-9\-\_]*)\/(?<name>(?:\w|\.|\-)+)/;commitPath=/^commit\/(?<pathFragment>.+)$/;comparePath=/^compare\/(?<range>.+)$/;pullCommitPath=/^pull\/(\d+)\/commits\/(?<sha>[0-9a-f]{7,40})$/;get commitMentionUrl(){const e=ar(this.repository.endpoint);return new RegExp(z_()(e)+"/"+this.nameWithOwner.source+"/"+/(commit|pull|compare)/.source+"/"+/(\d+\/commits\/)?/.source+/([0-9a-f]{7,40})/.source+/\b/.source)}repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(null===e.parentNode||!["CODE","PRE","A"].includes(e.parentNode.nodeName))&&e instanceof HTMLAnchorElement&&e.href===e.innerText&&this.commitMentionUrl.test(e.href)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP})}async filter(e){const t=e.cloneNode(!0),{textContent:n}=t;if(!(t instanceof HTMLAnchorElement)||null===n)return null;const r=new URL(n),[,i,s]=r.pathname.split("/",3);if(void 0===i||void 0===s)return null;const o=r.pathname.substring(i.length+s.length+3);let a,l;const c=this.getRefFromCommitPath(o)??this.getRefFromComparePath(o);return null!==c?(({ref:a,filepathToAppend:l}=c),l=void 0!==l?l+r.search:r.search):a=this.getRefFromPullPath(o),null==a?null:(t.innerHTML=this.getCommitMentionRef(i,s,a,l),[t])}getRefFromCommitPath(e){const t=e.match(this.commitPath);if(null===t||void 0===t.groups)return null;const{pathFragment:n}=t.groups,r=n.indexOf("/"),i=r>=0?n.slice(0,r):n,s=r>=0?n.slice(r):void 0;if(void 0===i)return null;const[o,a]=i.split(".");return void 0===o||this.isReservedCommitActionPath(s)||void 0!==a?null:{ref:this.trimCommitSha(o),filepathToAppend:s}}getRefFromComparePath(e){const t=e.match(this.comparePath);if(null===t||void 0===t.groups)return null;const{range:n}=t.groups;if(/\.(diff|path)$/.test(n))return null;const r=n.split("...");if(r.length>2)return null;const i=r[1].indexOf("/"),s=i>=0?r[1].slice(0,i):r[1];return{ref:`${this.trimCommitSha(r[0])}...${this.trimCommitSha(s)}`,filepathToAppend:i>=0?r[1].slice(i):void 0}}getRefFromPullPath(e){const t=e.match(this.pullCommitPath);return null===t||void 0===t.groups?null:this.trimCommitSha(t.groups.sha)}isReservedCommitActionPath(e){return void 0!==e&&(["checks_state_summary","hovercard","rollup","show_partial"].includes(e)||["_render_node","checks"].includes(e.split("/")[0]))}getCommitMentionRef(e,t,n,r){return`${e!==this.repository.owner.login||t!==this.repository.name?`${e}/${t}@`:""}<tt>${this.trimCommitSha(n)}</tt>${r??""}`}trimCommitSha(e){return e.length>=30?e.slice(0,7):e}}const PI=Tr((e=>{const{emoji:t,repository:n,markdownContext:r}=e,i=[];return void 0!==n&&(void 0!==r&&function(e){return DI.includes(e)}(r)&&i.push(new _I(r,n)),i.push(new SI(n),new yI(n))),i.push(new fI(t)),void 0!==n&&i.push(new AI(n),new EI(n),new xI(n),new MI(n)),i.push(new TI,new RI),i}));async function II(e,t){const n=e.createFilterTreeWalker(t);let r=n.nextNode();for(;null!==r;){const t=await e.filter(r),i=r;if(r=n.nextNode(),null!==t){for(const e of t)i.parentNode?.insertBefore(e,i);i.parentNode?.removeChild(i)}}}class OI extends ft.Emitter{markdown;constructor(e=null){super(),this.markdown=e}onMarkdownUpdated(e){return null!==this.markdown&&e(this.markdown),super.on("markdown",e)}emit(e){this.markdown=e,super.emit("markdown",e)}get latestMarkdown(){return this.markdown}}class NI extends Ae.PureComponent{frameRef=null;frameContainingDivRef=null;contentDivRef=null;markdownEmitter;resizeObserver;resizeDebounceId=null;onDocumentScroll=WT()((()=>{this.setState({tooltipOffset:this.frameRef?.getBoundingClientRect()??new DOMRect})}),100);onMarkdownUpdated=WT()((e=>this.mountIframeContents(e)),10,{leading:!0});constructor(e){super(e),this.resizeObserver=new ResizeObserver(this.scheduleResizeEvent),this.state={tooltipElements:[]}}scheduleResizeEvent=()=>{null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame(this.onContentResized)};onContentResized=()=>{null!==this.frameRef&&this.setFrameContainerHeight(this.frameRef)};onFrameRef=e=>{this.frameRef=e};onFrameContainingDivRef=e=>{this.frameContainingDivRef=e};initializeMarkdownEmitter=()=>{void 0!==this.markdownEmitter&&this.markdownEmitter.dispose();const{emoji:e,repository:t,markdownContext:n}=this.props;this.markdownEmitter="string"!=typeof this.props.markdown?this.props.markdown:function(e,t){const n=mI(e,{gfm:!0,breaks:!0}),r=MP().sanitize(n),i=new OI(r);return void 0!==t&&function(e,t){!async function(e,t){if(null===t.latestMarkdown||t.disposed)return;const n=(new DOMParser).parseFromString(t.latestMarkdown,"text/html");for(const r of e){if(await II(r,n),t.disposed)break;t.emit(n.documentElement.innerHTML)}}(PI(t),e)}(i,t),i}(this.props.markdown,{emoji:e,repository:t,markdownContext:n}),this.markdownEmitter.onMarkdownUpdated((e=>{this.onMarkdownUpdated(e)}))};async componentDidMount(){this.initializeMarkdownEmitter(),null!==this.frameRef&&this.setupFrameLoadListeners(this.frameRef),document.addEventListener("scroll",this.onDocumentScroll,{capture:!0})}async componentDidUpdate(e){e.markdown!==this.props.markdown&&this.initializeMarkdownEmitter()}componentWillUnmount(){this.markdownEmitter?.dispose(),this.resizeObserver.disconnect(),document.removeEventListener("scroll",this.onDocumentScroll)}async getInlineStyleSheet(){const e=await(0,b.readFile)(t.join(__dirname,"static","markdown.css"),"utf8"),n=getComputedStyle(document.body);function r(e){return`${e}: ${n.getPropertyValue(e)};`}return`<style>\n :root {\n ${r("--md-border-default-color")}\n ${r("--md-border-muted-color")}\n ${r("--md-canvas-default-color")}\n ${r("--md-canvas-subtle-color")}\n ${r("--md-fg-default-color")}\n ${r("--md-fg-muted-color")}\n ${r("--md-danger-fg-color")}\n ${r("--md-neutral-muted-color")}\n ${r("--md-accent-emphasis-color")}\n ${r("--md-accent-fg-color")}\n\n ${r("--font-size")}\n ${r("--font-size-sm")}\n ${r("--text-color")}\n ${r("--background-color")}\n }\n\n ${e}\n\n .markdown-body a {\n text-decoration: ${this.props.underlineLinks?"underline":"inherit"};\n }\n </style>`}setupFrameLoadListeners(e){e.addEventListener("load",(()=>{this.setupContentDivRef(e),this.setupLinkInterceptor(e),this.setupTooltips(e),this.setFrameContainerHeight(e)}))}setupTooltips(e){if(null===e.contentDocument)return;const t=new Array;for(const n of e.contentDocument.querySelectorAll("[aria-label]"))e.contentWindow?.HTMLElement&&n instanceof e.contentWindow.HTMLElement&&t.push(n);this.setState({tooltipElements:t,tooltipOffset:e.getBoundingClientRect()})}setupContentDivRef(e){null!==e.contentDocument&&(this.contentDivRef=e.contentDocument.documentElement.querySelector("#content"),null!==this.contentDivRef&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.contentDivRef)))}setFrameContainerHeight(e){if(null===e.contentDocument||null===this.frameContainingDivRef||null===this.contentDivRef)return;const t=this.contentDivRef.clientHeight;this.frameContainingDivRef.style.height=`${t+1}px`,this.props.onMarkdownParsed?.()}setupLinkInterceptor(e){e.contentDocument?.addEventListener("click",(t=>{const{contentWindow:n}=e;if(n&&t.target instanceof n.Element){const e=t.target.closest("a");null!==e&&(t.preventDefault(),/^https?:/.test(e.protocol)&&this.props.onMarkdownLinkClicked?.(e.href))}}))}getBaseTag(e){if(void 0===e)return"";const t=document.createElement("base");return t.href=e,t.outerHTML}async mountIframeContents(e){if(null===this.frameRef)return;const t=await this.getInlineStyleSheet(),n=`\n <html>\n <head>\n ${this.getBaseTag(this.props.baseHref)}\n ${t}\n </head>\n <body class="markdown-body">\n <div id="content">\n ${e}\n </div>\n </body>\n </html>\n `,r=Buffer.from(n,"utf8").toString("base64");null!==this.frameRef&&(this.frameRef.src=`data:text/html;charset=utf-8;base64,${r}`)}render(){const{tooltipElements:e,tooltipOffset:t}=this.state;return Ae.createElement("div",{className:"sandboxed-markdown-iframe-container",ref:this.onFrameContainingDivRef},Ae.createElement("iframe",{title:"沙盒 Markdown 组件",className:"sandboxed-markdown-component",sandbox:"",ref:this.onFrameRef,"aria-label":this.props.ariaLabel}),e.map((e=>Ae.createElement(ci,{target:di(e),key:DP(e),tooltipOffset:t},e.ariaLabel))))}}class LI extends Ae.Component{quickViewRef=Ae.createRef();get quickViewHeight(){return this.quickViewRef.current?.clientHeight??556}constructor(e){super(e),this.state={top:this.calculatePosition(e.pullRequestItemTop,this.quickViewHeight)}}componentDidUpdate=e=>{e.pullRequest.pullRequestNumber!==this.props.pullRequest.pullRequestNumber&&this.updateQuickViewPosition()};updateQuickViewPosition=()=>{this.setState({top:this.calculatePosition(this.props.pullRequestItemTop,this.quickViewHeight)})};onMarkdownParsed=()=>{this.updateQuickViewPosition()};onViewOnGitHub=()=>{this.props.dispatcher.showPullRequestByPR(this.props.pullRequest)};onMouseLeave=()=>{this.props.onMouseLeave()};getTopPRList(){return document.getElementById("foldout-container")?.getBoundingClientRect().top??50}calculatePosition(e,t){const n=this.getTopPRList(),r=window.innerHeight-n-t;return window.innerHeight-e>t?ry(e-n,0,r):ry(e-t>0?e-n-t+47:e+23.5-t/2,0,r)}getPointerPosition(e){return{top:this.props.pullRequestItemTop-this.getTopPRList()-e+23.5}}onMarkdownLinkClicked=e=>{this.props.dispatcher.openInBrowser(e)};renderHeader=()=>Ae.createElement("header",{className:"header"},Ae.createElement(yi,{symbol:Fa}),Ae.createElement("div",{className:"action-needed"},"Review requested"),Ae.createElement(mi,{className:"button-with-icon",onClick:this.onViewOnGitHub,role:"link"},"在GitHub上查看",Ae.createElement(yi,{symbol:La})));renderPRStatus(e){return Ae.createElement("div",{className:ri()("status",{draft:e})},Ae.createElement(yi,{className:"icon",symbol:e?na:ea}),Ae.createElement("span",{className:"state"},e?"Draft":"Open"))}renderPR=()=>{const{title:e,pullRequestNumber:t,base:n,body:r,draft:i}=this.props.pullRequest,s=null!=r&&""!==r.trim()?r:"_No description provided._";return Ae.createElement("div",{className:"pull-request"},this.renderPRStatus(i),Ae.createElement("div",{className:"title"},Ae.createElement("h2",null,e),Ae.createElement(FI,{number:t,dispatcher:this.props.dispatcher,repository:n.gitHubRepository})),Ae.createElement(NI,{markdown:s,emoji:this.props.emoji,baseHref:n.gitHubRepository.htmlURL??void 0,repository:n.gitHubRepository,markdownContext:"PullRequest",onMarkdownLinkClicked:this.onMarkdownLinkClicked,onMarkdownParsed:this.onMarkdownParsed,underlineLinks:this.props.underlineLinks,ariaLabel:"Pull request markdown body"}))};render(){const{top:e}=this.state;return Ae.createElement("div",{className:"pull-request-quick-view",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.onMouseLeave,style:{top:e},ref:this.quickViewRef},Ae.createElement("div",{className:"pull-request-quick-view-contents"},this.renderHeader(),this.renderPR()),Ae.createElement("div",{className:"pull-request-pointer",style:this.getPointerPosition(e)}))}}class BI extends Ae.Component{static getDerivedStateFromProps(e,t){return t.currentPullRequest!==e.currentPullRequest?{currentPullRequest:e.currentPullRequest,selectedPullRequest:e.currentPullRequest}:null}pullRequestQuickViewTimerId=null;constructor(e){super(e),this.state={selectedBranch:e.currentBranch,selectedPullRequest:e.currentPullRequest,currentPullRequest:e.currentPullRequest,branchFilterText:"",pullRequestBeingViewed:null}}componentWillUnmount=()=>{this.clearPullRequestQuickViewTimer()};render(){return Ae.createElement("div",{className:"branches-container"},this.renderTabBar(),this.renderSelectedTab(),this.renderMergeButtonRow(),this.renderPullRequestQuickView())}renderPullRequestQuickView=()=>{if(!Kt()||null===this.state.pullRequestBeingViewed)return null;const{pr:e,prListItemTop:t}=this.state.pullRequestBeingViewed;return Ae.createElement(LI,{dispatcher:this.props.dispatcher,emoji:this.props.emoji,pullRequest:e,pullRequestItemTop:t,onMouseEnter:this.onMouseEnterPullRequestQuickView,onMouseLeave:this.onMouseLeavePullRequestQuickView,underlineLinks:this.props.underlineLinks})};onMouseEnterPullRequestQuickView=()=>{this.clearPullRequestQuickViewTimer()};onMouseLeavePullRequestQuickView=()=>{this.setState({pullRequestBeingViewed:null}),this.clearPullRequestQuickViewTimer()};renderMergeButtonRow(){const{currentBranch:e}=this.props;return null===e?null:Ae.createElement(GT,{className:"merge-button-row"},Ae.createElement(mi,{className:"merge-button",onClick:this.onMergeClick,tooltip:`选择一个分支合并到 ${e.name}`},Ae.createElement(yi,{className:"icon",symbol:Qo}),"选择一个分支合并到 ",Ae.createElement("strong",null,e.name)))}renderOpenPullRequestsBubble(){const e=this.props.pullRequests;return e.length>0?Ae.createElement("span",{className:"count"},e.length):null}renderTabBar(){return this.props.repository.gitHubRepository?Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.props.selectedTab,allowDragOverSwitching:!0},Ae.createElement("span",{id:"branches-tab"},"Branches"),Ae.createElement("span",{id:"pull-requests-tab",className:"pull-request-tab"},"Pull requests",this.renderOpenPullRequestsBubble())):null}renderBranch=(e,t)=>TP(e,t,this.props.currentBranch,this.onDropOntoBranch,this.onDropOntoCurrentBranch);getBranchAriaLabel=e=>AP(e);renderSelectedTab(){const{selectedTab:e,repository:t}=this.props,n=e!==qp.Branches&&t.gitHubRepository?"pull-requests-tab":"branches-tab";return Ae.createElement("div",{role:"tabpanel","aria-labelledby":n,className:"branches-container-panel"},this.renderSelectedTabContent())}renderSelectedTabContent(){let e=this.props.selectedTab;switch(this.props.repository.gitHubRepository||(e=qp.Branches),e){case qp.Branches:return Ae.createElement(hP,{defaultBranch:this.props.defaultBranch,currentBranch:this.props.currentBranch,allBranches:this.props.allBranches,recentBranches:this.props.recentBranches,onItemClick:this.onBranchItemClick,filterText:this.state.branchFilterText,onFilterTextChanged:this.onBranchFilterTextChanged,selectedBranch:this.state.selectedBranch,onSelectionChanged:this.onBranchSelectionChanged,canCreateNewBranch:!0,onCreateNewBranch:this.onCreateBranchWithName,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,hideFilterRow:bp.isDragOfTypeInProgress(vp.Commit),renderPreList:this.renderPreList,onRenameBranch:this.props.onRenameBranch,onDeleteBranch:this.props.onDeleteBranch});case qp.PullRequests:return this.renderPullRequests();default:return ct(0,`Unknown Branches tab: ${e}`)}}renderPreList=()=>bp.isDragOfTypeInProgress(vp.Commit)?Ae.createElement("div",{className:"branches-list-item new-branch-drop",onMouseEnter:this.onMouseEnterNewBranchDrop,onMouseLeave:this.onMouseLeaveNewBranchDrop,onMouseUp:this.onMouseUpNewBranchDrop},Ae.createElement(yi,{className:"icon",symbol:_l}),Ae.createElement("div",{className:"name"},"新建分支")):null;onMouseUpNewBranchDrop=async()=>{const{dragData:e}=bp;if(null===e||e.type!==vp.Commit)return;const{dispatcher:t,repository:n,currentBranch:r}=this.props;await t.setCherryPickCreateBranchFlowStep(n,"",e.commits,r),this.props.dispatcher.showPopup({type:dh.MultiCommitOperation,repository:n})};onMouseEnterNewBranchDrop=()=>{bp.emitEnterDropTarget({type:Cp.Branch,branchName:"a new branch"})};onMouseLeaveNewBranchDrop=()=>{bp.emitLeaveDropTarget()};renderPullRequests(){const e=this.props.repository;if(!$r(e))return null;const t=this.props.defaultBranch&&this.props.currentBranch&&this.props.defaultBranch.name===this.props.currentBranch.name;return Ae.createElement(CP,{key:"pr-list",pullRequests:this.props.pullRequests,selectedPullRequest:this.state.selectedPullRequest,isOnDefaultBranch:!!t,onSelectionChanged:this.onPullRequestSelectionChanged,onCreateBranch:this.onCreateBranch,dispatcher:this.props.dispatcher,repository:e,isLoadingPullRequests:this.props.isLoadingPullRequests,onMouseEnterPullRequest:this.onMouseEnterPullRequestListItem,onMouseLeavePullRequest:this.onMouseLeavePullRequestListItem})}onMouseEnterPullRequestListItem=(e,t)=>{this.clearPullRequestQuickViewTimer(),this.setState({pullRequestBeingViewed:null}),this.pullRequestQuickViewTimerId=window.setTimeout((()=>this.setState({pullRequestBeingViewed:{pr:e,prListItemTop:t}})),250)};onMouseLeavePullRequestListItem=async()=>{this.clearPullRequestQuickViewTimer(),this.pullRequestQuickViewTimerId=window.setTimeout((()=>this.setState({pullRequestBeingViewed:null})),500)};onTabClicked=e=>{this.props.dispatcher.changeBranchesTab(e)};onMergeClick=()=>{this.props.dispatcher.closeFoldout(et.Branch),this.props.dispatcher.startMergeBranchOperation(this.props.repository)};onBranchItemClick=e=>{const{repository:t,dispatcher:n}=this.props;n.closeFoldout(et.Branch);const r=Lx("checkout branch from list",t);n.checkoutBranch(t,e).then((()=>r.done()))};onBranchSelectionChanged=e=>{this.setState({selectedBranch:e})};onBranchFilterTextChanged=e=>{this.setState({branchFilterText:e})};onCreateBranchWithName=e=>{const{repository:t,dispatcher:n}=this.props;n.closeFoldout(et.Branch),n.showPopup({type:dh.CreateBranch,repository:t,initialName:e})};onCreateBranch=()=>{this.onCreateBranchWithName("")};onPullRequestSelectionChanged=e=>{this.setState({selectedPullRequest:e})};onDropOntoBranch=e=>{const t=this.props.allBranches.find((t=>t.name===e));void 0!==t?bp.isDragOfType(vp.Commit)&&this.props.dispatcher.startCherryPickWithBranch(this.props.repository,t):log.warn("[branches-container] - Branch name of branch dropped on does not exist.")};onDropOntoCurrentBranch=()=>{bp.isDragOfType(vp.Commit)&&this.props.dispatcher.incrementMetric("dragStartedAndCanceledCount")};clearPullRequestQuickViewTimer=()=>{null!==this.pullRequestQuickViewTimerId&&(window.clearTimeout(this.pullRequestQuickViewTimerId),this.pullRequestQuickViewTimerId=null)}}class FI extends Ae.Component{badgeRef=null;badgeBoundingBottom=0;constructor(e){super(e),this.state={isStatusShowing:!1}}componentDidUpdate(){null!==this.badgeRef&&this.badgeRef.getBoundingClientRect().bottom!==this.badgeBoundingBottom&&(this.badgeBoundingBottom=this.badgeRef.getBoundingClientRect().bottom,this.props.onBadgeBottomPositionUpdate?.(this.badgeBoundingBottom))}onRef=e=>{this.badgeRef=e,this.props.onBadgeRef?.(e)};onBadgeClick=e=>{this.state.isStatusShowing&&(e.stopPropagation(),this.props.onBadgeClick?.())};onCheckChange=e=>{this.setState({isStatusShowing:null!==e})};render(){const e=tm(this.props.number);return Ae.createElement(mi,{className:"pr-badge",onClick:this.onBadgeClick,onButtonRef:this.onRef,disabled:!this.state.isStatusShowing,ariaHaspopup:!0,ariaExpanded:!0===this.props.showCIStatusPopover},Ae.createElement("span",{className:"number"},"#",this.props.number),Ae.createElement(pP,{commitRef:e,dispatcher:this.props.dispatcher,repository:this.props.repository,onCheckChange:this.onCheckChange}))}}class HI extends Ae.PureComponent{onViewJobStepExternally=()=>{this.props.onViewJobStepExternally(this.props.step)};onStepHeaderRef=e=>t=>{void 0!==this.props.firstFailedStep&&e.number===this.props.firstFailedStep.number&&null!==t&&t.scrollIntoView({behavior:"smooth",block:"start"})};render(){const{step:e}=this.props;return Ae.createElement("li",{className:"ci-check-run-job-step",ref:this.onStepHeaderRef(e),"aria-label":`${e.name}, ${Hb(e)}, ${mP(e)}`},Ae.createElement("div",{className:"job-step-status-symbol"},Ae.createElement(yi,{className:ri()("ci-status",`ci-status-${mP(e)}`),symbol:fP(e)})),Ae.createElement(eh,{className:"job-step-name",tooltip:e.name,onlyWhenOverflowed:!0,tagName:"span",direction:li.NORTH},e.name),Ae.createElement("div",{className:"job-step-duration"},function(e){const t=_b(e);return isNaN(t)?"":Tb(t)}(e)),Ae.createElement(mi,{role:"link",className:"view-check-externally",onClick:this.onViewJobStepExternally,tooltip:`View ${e.name} on GitHub`,ariaLabel:`View ${e.name} on GitHub`},Ae.createElement(yi,{symbol:La})))}}class UI extends Ae.PureComponent{constructor(e){super(e),this.state={firstFailedStep:this.props.steps.find(Ob)}}componentDidUpdate(){this.setState({firstFailedStep:this.props.steps.find(Ob)})}render(){const{steps:e}=this.props,t=e.map(((e,t)=>Ae.createElement(HI,{key:t,step:e,firstFailedStep:this.state.firstFailedStep,onViewJobStepExternally:this.props.onViewJobStep})));return Ae.createElement("ul",{className:"ci-check-run-job-steps-list"},t)}}const ZI=Pt(__dirname,"static/paper-stack.svg");class $I extends Ae.PureComponent{render(){return Ae.createElement("div",{className:"ci-check-run-no-steps"},Ae.createElement("p",null,"There are no steps to display for this check.",Ae.createElement(mi,{className:"button-with-icon",onClick:this.props.onViewCheckExternally,role:"link"},"View check details",Ae.createElement(yi,{symbol:La}))),Ae.createElement("img",{src:ZI,alt:""}))}}class WI extends Ae.PureComponent{onRerunJob=()=>{const{onRerunJob:e,checkRun:t}=this.props;e?.(t)};renderJobRerun=()=>{const{checkRun:e,onRerunJob:t}=this.props;if(void 0===t)return null;const n=`Re-run ${e.name}`;return Ae.createElement(mi,{className:"job-rerun",tooltip:n,onClick:this.onRerunJob,ariaLabel:n},Ae.createElement(yi,{symbol:Lc}))};renderLinkExternal=()=>{const{onViewCheckExternally:e,checkRun:t}=this.props;if(void 0===e)return null;const n=`View ${t.name} on GitHub`;return Ae.createElement(mi,{role:"link",className:"view-check-externally",onClick:this.props.onViewCheckExternally,tooltip:n,ariaLabel:n},Ae.createElement(yi,{symbol:La}))};render(){const{actionJobSteps:e}=this.props.checkRun;return void 0===e?null:Ae.createElement("div",{className:"ci-check-run-steps-header"},Ae.createElement("h4",null,QI(e,"step")),this.renderJobRerun(),this.renderLinkExternal())}}class qI extends Ae.PureComponent{toggleCheckRunExpansion=()=>{this.props.onCheckRunExpansionToggleClick(this.props.checkRun)};onViewCheckExternally=()=>{this.props.onViewCheckExternally?.(this.props.checkRun)};onViewJobStep=e=>{this.props.onViewJobStep?.(this.props.checkRun,e)};rerunJob=()=>{void 0!==this.props.checkRun.actionJobSteps&&this.props.onRerunJob?.(this.props.checkRun)};renderCheckStatusSymbol=()=>{const{checkRun:e}=this.props;return Ae.createElement("div",{className:"ci-check-status-symbol"},Ae.createElement(yi,{className:ri()("ci-status",`ci-status-${mP(e)}`),symbol:dP(e)}))};renderCheckJobStepToggle=()=>{const{isCheckRunExpanded:e,selectable:t,notExpandable:n}=this.props;return t||n?null:Ae.createElement("div",{className:"job-step-toggled-indicator"},Ae.createElement(yi,{symbol:e?ss:ns}))};renderCheckRunName=()=>{const{checkRun:e,isCondensedView:t,isHeader:n}=this.props,{name:r,description:i}=e;return Ae.createElement("div",{className:"ci-check-list-item-detail"},Ae.createElement(eh,{id:`check-run-header-${e.id}`,className:"ci-check-name",tooltip:r,onlyWhenOverflowed:!0,tagName:!1===n?"span":"h3",direction:li.NORTH},r),t?null:Ae.createElement("div",{className:"ci-check-description"},i))};renderCheckRunListItem=()=>{const{checkRun:e,selectable:t,notExpandable:n,isCheckRunExpanded:r,selected:i,isCondensedView:s}=this.props,o=ri()("ci-check-list-item",{sticky:r,selected:i,condensed:s}),a=Ae.createElement(Ae.Fragment,null,this.renderCheckStatusSymbol(),this.renderCheckRunName(),this.renderCheckJobStepToggle());return!t&&n?Ae.createElement("div",{className:o},a):Ae.createElement(mi,{className:o,onClick:this.toggleCheckRunExpansion,ariaExpanded:t?void 0:this.props.isCheckRunExpanded,ariaControls:`checkRun-${e.id}`},a)};renderStepsRegion(){const{isCheckRunExpanded:e,checkRun:t}=this.props;if(!e)return null;const n=void 0===t.actionJobSteps,r=ri()("ci-steps-container",{"no-steps":n});return Ae.createElement("div",{role:"region",className:r,id:`checkrun-${t.id}`,"aria-labelledby":`check-run-header-${t.id}`},Ae.createElement(WI,{checkRun:t,onRerunJob:this.rerunJob,onViewCheckExternally:this.onViewCheckExternally}),n?Ae.createElement($I,{onViewCheckExternally:this.onViewCheckExternally}):Ae.createElement(UI,{steps:t.actionJobSteps,onViewJobStep:this.onViewJobStep}))}render(){return Ae.createElement(Ae.Fragment,null,this.renderCheckRunListItem(),this.renderStepsRegion())}}class VI extends Ae.PureComponent{constructor(e){super(e),this.state=this.setupStateAfterCheckRunPropChange(this.props,null)}componentDidUpdate(e){const{checkRunExpanded:t,hasUserToggledCheckRun:n}=this.setupStateAfterCheckRunPropChange(this.props,this.state);let r=!1;for(const t of e.checkRuns)if(void 0!==this.props.checkRuns.find((e=>e.id===t.id&&e.status!==t.status))){r=!0;break}r?this.setState({checkRunExpanded:t,hasUserToggledCheckRun:n,checkRunGroups:Zb(this.props.checkRuns)}):this.setState({checkRunExpanded:t,hasUserToggledCheckRun:n})}setupStateAfterCheckRunPropChange(e,t){if(!0===t?.hasUserToggledCheckRun)return t;const n=Zb(e.checkRuns);let r=null;if(!0!==this.props.notExpandable)for(const e of n.values()){const t=e.find((e=>Ob(e)&&void 0!==e.actionJobSteps));if(void 0!==t){r=t.id.toString();break}}return{checkRunGroups:n,checkRunExpanded:r,hasUserToggledCheckRun:t?.hasUserToggledCheckRun||!1}}onCheckRunClick=e=>{if(!0===this.props.notExpandable)return;const t=this.state.checkRunExpanded!==e.id.toString()||this.props.selectable?e.id.toString():null;this.setState({checkRunExpanded:t,hasUserToggledCheckRun:!0}),this.props.onCheckRunClick?.(e)};renderListItems=e=>{if(void 0===e)return null;const t=e.map(((e,t)=>{const n=this.state.checkRunExpanded===e.id.toString(),r=!0===this.props.selectable;return Ae.createElement(qI,{checkRun:e,key:t,selectable:r,selected:r&&n,isCheckRunExpanded:!r&&n,notExpandable:this.props.notExpandable,onCheckRunExpansionToggleClick:this.onCheckRunClick,onViewCheckExternally:this.props.onViewCheckDetails,onViewJobStep:this.props.onViewJobStep,onRerunJob:this.props.onRerunJob,isCondensedView:this.props.isCondensedView,isHeader:!1})}));return Ae.createElement(cp,{className:"list-focus-container"},t)};renderList=()=>{const{checkRunGroups:e}=this.state,t=$b(e);if(1===t.length&&("Other"===t[0]||this.props.isCondensedView))return this.renderListItems(this.props.checkRuns);const n=ri()("ci-check-run-list-group-header",{condensed:this.props.isCondensedView}),r=t.map(((t,r)=>Ae.createElement("div",{className:"ci-check-run-list-group",key:r},Ae.createElement("h2",{className:n},t),this.renderListItems(e.get(t)))));return Ae.createElement(Ae.Fragment,null,r)};render(){return Ae.createElement("div",{className:"ci-check-run-list"},this.renderList())}}class GI extends Ae.Component{render(){const{valueMap:e}=this.props,{paths:t,height:n,width:r}=function(e,t=15,n=9){const r=2*t,i=[...e.values()].reduce(((e,t)=>e+t)),s=r/2,o=s,a=[];let l=0;for(const[r,c]of[...e.entries()]){if(0===c)continue;const e=c/i;if(1===e){const e=s-.01,i=o-t,l=o-n,c=["M",s,i];c.push("A",t,t,0,1,1,e,i),c.push("L",e,l),c.push("A",n,n,0,1,0,s,l),a.push({name:r,path:c.join(" ")});continue}const u=l+c,h=["M",...zI(l,t,s,i)];h.push("A",t,t,0),h.push(e>.5?1:0),h.push(1),h.push(...zI(u,t,s,i)),h.push("L"),h.push(...zI(u,n,s,i)),h.push("A",n,n,0),h.push(e>.5?1:0),h.push(0),h.push(...zI(l,n,s,i)),l+=c,a.push({name:r,path:h.join(" ")})}return{paths:a,height:r,width:r}}(e),i=`0 0 ${r} ${n}`,s=t.map(((e,t)=>Ae.createElement("path",{key:t,className:e.name,d:e.path})));return Ae.createElement("svg",{"aria-label":this.props.ariaLabel,className:"donut",version:"1.1",viewBox:i,tabIndex:-1},s)}}function zI(e,t,n,r){const i=e/r*Math.PI*2-Math.PI/2;return[t*Math.cos(i)+n,t*Math.sin(i)+n]}class jI extends Ae.PureComponent{get failedChecksExist(){return this.props.checkRuns.some((e=>e.conclusion===Xn.Failure))}onRerunChecks=()=>{this.props.canReRunFailed&&this.failedChecksExist?hh([{label:"重新运行失败的检查",action:()=>this.props.onRerunChecks(!0)},{label:"重新运行所有检查",action:()=>this.props.onRerunChecks(!1)}]):this.props.onRerunChecks(!1)};render(){const e=this.props.canReRunFailed&&this.failedChecksExist?Ae.createElement(Ae.Fragment,null,"Re-run ",Ae.createElement(yi,{symbol:Qc})):"Re-run Checks";return Ae.createElement(mi,{onClick:this.onRerunChecks,disabled:this.props.disabled},Ae.createElement(yi,{symbol:Qu})," ",e)}}var KI=n(8228),YI=n.n(KI);const XI=Pt(__dirname,"static/empty-no-pull-requests.svg");function QI(e,t){const n=Object.values(YI()(e,"conclusion")).map((e=>`${e.length} ${xb(e[0].conclusion).toLocaleLowerCase()}`)),r=e.length>1?`${t}s`:t;return`${function(e){switch(e.length){case 0:return"";case 1:return e.at(0)??"";case 2:return e.at(0)+" and "+e.at(1);default:return e.slice(0,-1).join(", ")+", and "+e.at(-1)}}(n)} ${r}`}class JI extends Ae.PureComponent{statusSubscription=null;constructor(e){super(e);const t=this.props.dispatcher.tryGetCommitStatus(this.props.repository,tm(this.props.prNumber));this.state={checkRuns:t?.checks??[],checkRunSummary:this.getCombinedCheckSummary(t),loadingActionWorkflows:!0}}componentDidMount(){const e=this.props.dispatcher.tryGetCommitStatus(this.props.repository,tm(this.props.prNumber),this.props.branchName);this.onStatus(e),this.subscribe()}componentWillUnmount(){this.unsubscribe()}subscribe(){this.unsubscribe(),this.statusSubscription=this.props.dispatcher.subscribeToCommitStatus(this.props.repository,tm(this.props.prNumber),this.onStatus,this.props.branchName)}unsubscribe(){this.statusSubscription&&(this.statusSubscription.dispose(),this.statusSubscription=null)}onStatus=async e=>{null!==e&&this.setState({checkRuns:[...e.checks],checkRunSummary:this.getCombinedCheckSummary(e),loadingActionWorkflows:!1})};onViewCheckDetails=e=>{if(null===e.htmlUrl&&null===this.props.repository.htmlURL)return;const t=e.htmlUrl??`${this.props.repository.htmlURL}/pull/${this.props.prNumber}`;this.props.dispatcher.openInBrowser(t),this.props.dispatcher.incrementMetric("viewsCheckOnline")};onViewJobStep=(e,t)=>{const{repository:n,prNumber:r,dispatcher:i}=this.props,s=Ub(e,t,n,r);null!==s&&(i.openInBrowser(s),this.props.dispatcher.incrementMetric("viewsCheckJobStepOnline"))};getCombinedCheckSummary(e){return null===e||0===e.checks.length?"":QI(e.checks,"check")}rerunChecks=(e,t)=>{this.props.dispatcher.showPopup({type:dh.CICheckRunRerun,checkRuns:t??this.state.checkRuns,repository:this.props.repository,prRef:tm(this.props.prNumber),failedOnly:e})};renderRerunButton=()=>{const{checkRuns:e}=this.state;return Fn(this.props.repository.endpoint)?Ae.createElement(jI,{disabled:0===e.length||this.state.loadingActionWorkflows,checkRuns:e,canReRunFailed:Hn(this.props.repository.endpoint),onRerunChecks:this.rerunChecks}):null};renderCheckRunLoadings(){return Ae.createElement("div",{className:"loading-check-runs"},Ae.createElement("img",{src:XI,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"title"},"Stand By"),Ae.createElement("div",{className:"call-to-action"},"Check runs incoming!"))}renderCompletenessIndicator(e,t,n,r){if(n)return Ae.createElement(yi,{symbol:Qu,className:"spin"});switch(!0){case e:return Ae.createElement(yi,{className:"completeness-indicator-success",symbol:Ji});case t:return Ae.createElement(yi,{className:"completeness-indicator-error",symbol:bu})}const i=function(e){const t=new Map;return e.forEach((e=>{const n=e.conclusion??e.status,r=t.get(n)??0;t.set(n,r+1)})),t}(r),s=`Completeness indicator. ${i.get(Yn.Completed)??0} completed, ${i.get(Yn.InProgress)??0} in progress, ${i.get(Yn.Queued)??0} queued.`;return Ae.createElement(GI,{ariaLabel:s,valueMap:i})}getTitle(e,t,n,r){switch(!0){case r:return Ae.createElement(Ae.Fragment,null,"Checks Summary");case n:return Ae.createElement("span",{className:"pending"},"Some checks haven't completed yet");case t:return Ae.createElement("span",{className:"failure"},"All checks have failed");case e:return Ae.createElement(Ae.Fragment,null,"All checks have passed")}return Ae.createElement("span",{className:"failure"},"Some checks were not successful")}renderHeader=()=>{const{loadingActionWorkflows:e,checkRuns:t,checkRunSummary:n}=this.state,r=e&&0===t.length,i=!r&&t.some((e=>null===e.conclusion))&&!t.some((e=>null!==e.conclusion&&Wb.includes(e.conclusion))),s=[Xn.Success,Xn.Neutral,Xn.Skipped],o=!r&&!i&&!t.some((e=>null!==e.conclusion&&!s.includes(e.conclusion))),a=!r&&!i&&!t.some((e=>null===e.conclusion||!Wb.includes(e.conclusion)));return Ae.createElement("div",{className:"ci-check-run-list-header"},Ae.createElement("div",{className:"completeness-indicator"},this.renderCompletenessIndicator(o,a,r,t)),Ae.createElement("div",{className:"ci-check-run-list-title-container"},Ae.createElement("h1",{id:"ci-check-run-header",className:"title"},this.getTitle(o,a,i,r)),Ae.createElement("div",{className:"check-run-list-summary"},n)),this.renderRerunButton())};onRerunJob=e=>{this.rerunChecks(!1,[e])};renderList=()=>{const{checkRuns:e,loadingActionWorkflows:t}=this.state;return t?this.renderCheckRunLoadings():Ae.createElement("div",{className:"ci-check-run-list-container"},Ae.createElement(VI,{checkRuns:e,onViewCheckDetails:this.onViewCheckDetails,onViewJobStep:this.onViewJobStep,onRerunJob:Hn(this.props.repository.endpoint)?this.onRerunJob:void 0}))};render(){return Ae.createElement("div",{className:"ci-check-list-popover"},Ae.createElement(wx,{anchor:this.props.anchor,anchorPosition:mx.Bottom,decoration:gx.Balloon,ariaLabelledby:"ci-check-run-header",onClickOutside:this.props.closePopover},Ae.createElement("div",{className:"ci-check-run-list-wrapper"},this.renderHeader(),this.renderList())))}}class eO extends Ae.Component{badgeRef=null;renderBranchFoldout=()=>{const e=this.props.repositoryState,t=e.branchesState,n=e.branchesState.tip,r=n.kind===Hr.Valid?n.branch:null;return Ae.createElement(BI,{allBranches:t.allBranches,recentBranches:t.recentBranches,currentBranch:r,defaultBranch:t.defaultBranch,dispatcher:this.props.dispatcher,repository:this.props.repository,selectedTab:this.props.selectedTab,pullRequests:this.props.pullRequests,currentPullRequest:this.props.currentPullRequest,isLoadingPullRequests:this.props.isLoadingPullRequests,emoji:this.props.emoji,onDeleteBranch:this.onDeleteBranch,onRenameBranch:this.onRenameBranch,underlineLinks:this.props.underlineLinks})};onDropDownStateChanged=e=>{"open"===e&&this.props.repositoryState.checkoutProgress||this.props.onDropDownStateChanged(e)};render(){const{repositoryState:e,enableFocusTrap:t}=this.props,{branchesState:n,checkoutProgress:r,changesState:i}=e,{tip:s}=n,{conflictState:o}=i,a=s.kind;let l,c,u,h,p=Ko,d="当前分支",m=!0,f=!1;if(this.props.currentPullRequest&&(p=ea),s.kind===Hr.Unknown)return null;if(s.kind===Hr.Unborn)c=s.ref,u=`当前分支是 ${s.ref}`,m=n.allBranches.some((e=>!e.isDesktopForkRemoteBranch));else if(s.kind===Hr.Detached)c=`On ${s.currentSha.substring(0,7)}`,u="Currently on a detached HEAD",p=Yo,d="Detached HEAD";else{if(s.kind!==Hr.Valid)return ct(0,`Unknown tip state: ${a}`);c=u=s.branch.name}r?(c=r.target,d=r.description,r.value>0&&(d=`${d} (${Math.round(100*r.value)}%)`),u=`Checking out ${r.target}`,h=r.value,p=Qu,l="spin",m=!1):null!==o&&ot(o)&&(c=o.targetBranch,d="变基分支",p=Ko,m=!1,f=!0,u=`变基中 ${o.targetBranch}`);const g=this.props.isOpen,y=g&&m?"open":"closed",w=ri()("branch-toolbar-button","nudge-arrow",{"nudge-arrow-up":this.props.shouldNudge});return Ae.createElement(Ae.Fragment,null,Ae.createElement(XM,{className:"branch-button",icon:p,iconClassName:l,title:c,description:d,onContextMenu:this.onBranchToolbarButtonContextMenu,tooltip:g?void 0:u,onDropdownStateChanged:this.onDropDownStateChanged,dropdownContentRenderer:this.renderBranchFoldout,dropdownState:y,disabled:f,showDisclosureArrow:m,progressValue:h,buttonClassName:w,onMouseEnter:this.onMouseEnter,onlyShowTooltipWhenOverflowed:!0,isOverflowed:tO,enableFocusTrap:t},this.renderPullRequestInfo()),this.props.showCIStatusPopover&&this.renderPopover())}onMouseEnter=()=>{bp.isDragOfTypeInProgress(vp.Commit)&&(bp.emitEnterDragZone("branch-button"),this.props.dispatcher.showFoldout({type:et.Branch}))};onBranchToolbarButtonContextMenu=e=>{e.preventDefault();const{tip:t}=this.props.repositoryState.branchesState;t.kind===Hr.Valid&&hh(cP({name:t.branch.name,isLocal:t.branch.type===$p.Local,onRenameBranch:this.onRenameBranch,onDeleteBranch:this.onDeleteBranch}))};getBranchWithName(e){return this.props.repositoryState.branchesState.allBranches.find((t=>t.name===e))}onRenameBranch=e=>{const t=this.getBranchWithName(e);void 0!==t&&this.props.dispatcher.showPopup({type:dh.RenameBranch,repository:this.props.repository,branch:t})};onDeleteBranch=async e=>{const t=this.getBranchWithName(e),{dispatcher:n,repository:r}=this.props;if(void 0===t)return;if(t.type===$p.Remote)return void n.showPopup({type:dh.DeleteRemoteBranch,repository:r,branch:t});const i=await n.getBranchAheadBehind(r,t);n.showPopup({type:dh.DeleteBranch,repository:r,branch:t,existsOnRemote:null!==i})};onBadgeClick=()=>{this.props.dispatcher.closeFoldout(et.Branch),this.openPopover()};openPopover=()=>{this.props.dispatcher.setShowCIStatusPopover(!0)};closePopover=e=>{if(void 0===e)return void this.props.dispatcher.setShowCIStatusPopover(!1);const{target:t}=e,n=document.getElementById("pr-badge"),r=document.getElementById("rerun-check-runs");null!==t&&t instanceof Node&&(null!==n&&n.contains(t)||null!==r&&r.contains(t))||this.props.dispatcher.setShowCIStatusPopover(!1)};renderPopover(){const e=this.props.currentPullRequest,{tip:t}=this.props.repositoryState.branchesState,n=t.kind===Hr.Valid?t.branch.upstreamWithoutRemote??t.branch.name:"";return null===e?null:Ae.createElement(JI,{prNumber:e.pullRequestNumber,dispatcher:this.props.dispatcher,repository:e.base.gitHubRepository,branchName:n,anchor:this.badgeRef,closePopover:this.closePopover})}onBadgeRef=e=>{this.badgeRef=e};renderPullRequestInfo(){const e=this.props.currentPullRequest;return null===e?null:Ae.createElement(FI,{number:e.pullRequestNumber,dispatcher:this.props.dispatcher,repository:e.base.gitHubRepository,onBadgeRef:this.onBadgeRef,onBadgeClick:this.onBadgeClick,showCIStatusPopover:this.props.showCIStatusPopover})}}const tO=e=>{const t=e.querySelector(".title")??e;return t.scrollWidth>t.clientWidth};class nO extends Ae.Component{render(){const e=this.props.progress,t=e.title||"请稍后...";return Ae.createElement(YM,{title:"恢复...",description:t,progressValue:e.value,className:"revert-progress",icon:Qu,iconClassName:"spin",style:jM.Subtitle,disabled:!0})}}class rO extends Ae.Component{innerDropDown=null;get isMenuOpen(){return 0!==this.props.menuState.length}focusButton(){this.innerDropDown&&this.innerDropDown.focusButton()}componentDidMount(){this.props.onDidMount&&this.props.onDidMount(this.props.menuItem,this)}componentWillUnmount(){this.props.onWillUnmount&&this.props.onWillUnmount(this.props.menuItem,this)}render(){const e=this.props.menuItem,t=this.isMenuOpen?"open":"closed";return Ae.createElement(XM,{ref:this.onDropDownRef,key:e.id,dropdownState:t,onDropdownStateChanged:this.onDropdownStateChanged,dropdownContentRenderer:this.dropDownContentRenderer,enableFocusTrap:!1,showDisclosureArrow:!1,onMouseEnter:this.onMouseEnter,onKeyDown:this.onKeyDown,tabIndex:-1,buttonRole:"menuitem",buttonAriaHaspopup:"menu"},Ae.createElement(ZM,{menuItemId:`app-menu-${e.label}`,item:e,highlightAccessKey:this.props.highlightMenuAccessKey,renderAcceleratorText:!1,renderSubMenuArrow:!1,selected:!1,hasNoRole:!0}))}onDropDownRef=e=>{this.innerDropDown=e};onMouseEnter=e=>{this.props.onMouseEnter(this.props.menuItem)};onKeyDown=e=>{e.defaultPrevented||(this.props.onKeyDown(this.props.menuItem,e),this.isMenuOpen||e.defaultPrevented||"ArrowDown"===e.key&&(this.props.onOpen(this.props.menuItem,!0),e.preventDefault()))};onMenuClose=e=>{"keyboard"===e.type&&"Escape"===e.event.key&&this.focusButton(),this.props.onClose(this.props.menuItem,e.type)};onDropdownStateChanged=(e,t)=>{this.isMenuOpen?this.props.onClose(this.props.menuItem,t):this.props.onOpen(this.props.menuItem,!0)};dropDownContentRenderer=()=>{const e=this.props.menuState;return this.isMenuOpen?Ae.createElement(GM,{dispatcher:this.props.dispatcher,onClose:this.onMenuClose,state:e,enableAccessKeyNavigation:this.props.enableAccessKeyNavigation,ariaLabelledby:`app-menu-${this.props.menuItem.label}`}):null}}function iO(e){if(!e.appMenu.length)return{menuItems:[]};const t=e.appMenu[0].items,n=new Array;for(const e of t)"submenuItem"===e.type&&e.visible&&n.push(e);return{menuItems:n}}class sO extends Ae.Component{menuBar=null;menuButtonRefsByMenuItemId={};focusOutTimeout=null;hasFocus=!1;stolenFocusElement=null;constructor(e){super(e),this.state=iO(e)}componentWillReceiveProps(e){e.appMenu!==this.props.appMenu&&this.setState(iO(e))}componentDidUpdate(e){this.props.foldoutState&&!e.foldoutState?1!==this.props.appMenu.length||this.hasFocus||this.focusFirstMenuItem():!this.props.foldoutState&&e.foldoutState&&this.restoreFocusOrBlur()}componentDidMount(){this.props.foldoutState&&1===this.props.appMenu.length&&this.focusFirstMenuItem()}componentWillUnmount(){this.hasFocus&&this.restoreFocusOrBlur(),this.stolenFocusElement=null}render(){return Ae.createElement("div",{id:"app-menu-bar",ref:this.onMenuBarRef,role:"menubar","aria-label":"Application menu"},this.state.menuItems.map(this.renderMenuItem,this))}isMenuItemOpen(e){const t=this.props.foldoutState&&this.props.appMenu.length>1?this.props.appMenu[1]:null;return null!==t&&t.id===e.id}focusFirstMenuItem(){if(this.props.appMenu.length>1)return;const e=this.state.menuItems;if(!e.length)return;const t=e[0];t&&this.focusMenuItem(t)}focusMenuItem(e){const t=this.menuButtonRefsByMenuItemId[e.id];t&&t.focusButton()}restoreFocusOrBlur(){this.hasFocus&&(this.stolenFocusElement&&document.contains(this.stolenFocusElement)?this.stolenFocusElement.focus():document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.stolenFocusElement=null)}onMenuBarFocusIn=e=>{const t=e;this.hasFocus||(t.relatedTarget&&t.relatedTarget instanceof HTMLElement?this.stolenFocusElement=t.relatedTarget:this.stolenFocusElement=null,this.hasFocus=!0),this.clearFocusOutTimeout()};onMenuBarFocusOut=e=>{this.clearFocusOutTimeout(),this.focusOutTimeout=requestAnimationFrame(this.onLostFocusWithin)};clearFocusOutTimeout(){null!==this.focusOutTimeout&&(cancelAnimationFrame(this.focusOutTimeout),this.focusOutTimeout=null)}onLostFocusWithin=()=>{this.hasFocus=!1,this.focusOutTimeout=null,this.props.onLostFocus&&this.props.onLostFocus(),this.stolenFocusElement=null};onMenuBarRef=e=>{this.menuBar&&(this.menuBar.removeEventListener("focusin",this.onMenuBarFocusIn),this.menuBar.removeEventListener("focusout",this.onMenuBarFocusOut)),this.menuBar=e,this.menuBar&&(this.menuBar.addEventListener("focusin",this.onMenuBarFocusIn),this.menuBar.addEventListener("focusout",this.onMenuBarFocusOut))};onMenuClose=(e,t)=>{"pointer"!==t&&"item-executed"!==t||this.restoreFocusOrBlur(),this.props.dispatcher.setAppMenuState((t=>t.withClosedMenu(e.menu)))};onMenuOpen=(e,t)=>{const n=!!this.props.foldoutState&&this.props.foldoutState.enableAccessKeyNavigation;this.props.dispatcher.showFoldout({type:et.AppMenu,enableAccessKeyNavigation:n}),this.props.dispatcher.setAppMenuState((n=>n.withOpenedMenu(e,t)))};onMenuButtonMouseEnter=e=>{this.hasFocus&&this.focusMenuItem(e),this.props.appMenu.length>1&&this.props.dispatcher.setAppMenuState((t=>t.withOpenedMenu(e)))};moveToAdjacentMenu(e,t){const n=this.state.menuItems,r=n.findIndex((e=>e.id===t.id));if(-1===r)return;const i=n[(r+("next"===e?1:-1)+n.length)%n.length];if(i)if(null!==this.props.foldoutState&&this.props.appMenu.length>1)this.props.dispatcher.setAppMenuState((e=>e.withOpenedMenu(i,!0)));else{const e=this.menuButtonRefsByMenuItemId[i.id];e&&e.focusButton()}}onMenuButtonKeyDown=(e,t)=>{if(t.defaultPrevented)return;const n=this.props.foldoutState;if(n)if("Escape"===t.key)this.isMenuItemOpen(e)||(this.restoreFocusOrBlur(),t.preventDefault());else if("ArrowLeft"===t.key)this.moveToAdjacentMenu("previous",e),t.preventDefault();else if("ArrowRight"===t.key)this.moveToAdjacentMenu("next",e),t.preventDefault();else if(n.enableAccessKeyNavigation){if(t.altKey||t.ctrlKey||t.metaKey)return;const e=Qr(t.key,this.state.menuItems);e&&Xr(e)&&("submenuItem"===e.type?this.props.dispatcher.setAppMenuState((t=>t.withReset().withSelectedItem(e).withOpenedMenu(e,!0))):(this.restoreFocusOrBlur(),this.props.dispatcher.executeMenuItem(e)),t.preventDefault())}};onMenuButtonDidMount=(e,t)=>{this.menuButtonRefsByMenuItemId[e.id]=t};onMenuButtonWillUnmount=(e,t)=>{delete this.menuButtonRefsByMenuItemId[e.id]};renderMenuItem(e){const t=this.props.foldoutState,n=this.isMenuItemOpen(e)?this.props.appMenu.slice(1):[],r=!!t&&t.enableAccessKeyNavigation,i=this.props.highlightAppMenuAccessKeys||!this.isMenuItemOpen(e)&&r;return Ae.createElement(rO,{key:e.id,dispatcher:this.props.dispatcher,menuItem:e,menuState:n,highlightMenuAccessKey:i,enableAccessKeyNavigation:r,onClose:this.onMenuClose,onOpen:this.onMenuOpen,onMouseEnter:this.onMenuButtonMouseEnter,onKeyDown:this.onMenuButtonKeyDown,onDidMount:this.onMenuButtonDidMount,onWillUnmount:this.onMenuButtonWillUnmount})}}class oO extends xe().Component{invokeButtonRef=null;dropdownButtonRef=null;optionsContainerRef=null;dropdownSelectContainerRef=xe().createRef();constructor(e){super(e),this.state={showButtonOptions:!1,checkedOption:this.getCheckedOption(e.checkedOption),selectedOption:this.getCheckedOption(e.checkedOption)}}componentDidMount(){this.dropdownSelectContainerRef.current&&this.dropdownSelectContainerRef.current.addEventListener("focusout",this.onFocusOut)}componentWillUnmount(){this.dropdownSelectContainerRef.current&&this.dropdownSelectContainerRef.current.removeEventListener("focusout",this.onFocusOut)}onFocusOut=e=>{this.state.showButtonOptions&&e.relatedTarget&&!this.dropdownSelectContainerRef.current?.contains(e.relatedTarget)&&this.setState({showButtonOptions:!1})};componentDidUpdate(){if(null===this.invokeButtonRef||null===this.optionsContainerRef)return;const e=window.innerHeight,t=this.invokeButtonRef.getBoundingClientRect().bottom,n=this.invokeButtonRef.getBoundingClientRect().height,r=e-t-15<this.optionsContainerRef.clientHeight?`${n}px`:void 0;r!==this.state.optionsPositionBottom&&this.setState({optionsPositionBottom:r})}getCheckedOption(e){const{options:t}=this.props;if(0===t.length)return null;const n=t.find((t=>t.id===e));return n??t[0]}onItemClick=(e,t,n)=>{const r=this.props.options.find((e=>e.id===t.id));r&&(this.setState({checkedOption:r,showButtonOptions:!1}),this.dropdownButtonRef?.focus(),this.props.onCheckedOptionChange?.(r))};onClearSelection=()=>{this.setState({selectedOption:null})};onPaneKeyDown=(e,t)=>{"Escape"!==t.key&&"Esc"!==t.key||(t.preventDefault(),t.stopPropagation(),this.dropdownButtonRef?.focus(),this.setState({showButtonOptions:!1}))};onSelectionChanged=(e,t,n)=>{const r=this.props.options.find((e=>e.id===t.id));r&&this.setState({selectedOption:r})};openSplitButtonDropdown=()=>{this.setState({showButtonOptions:!this.state.showButtonOptions})};onDropdownButtonKeyDown=e=>{const{key:t}=e;let n=!1;switch(t){case" ":case"Enter":case"ArrowDown":case"Down":this.setState({selectedOption:this.props.options.at(0)??null,showButtonOptions:!0}),n=!0;break;case"Esc":case"Escape":this.dropdownButtonRef?.focus(),this.setState({showButtonOptions:!1}),n=!0;break;case"Up":case"ArrowUp":this.setState({selectedOption:this.props.options.at(-1)??null,showButtonOptions:!0}),n=!0}n&&(e.stopPropagation(),e.preventDefault())};onInvokeButtonRef=e=>{this.invokeButtonRef=e};onDropdownButtonRef=e=>{this.dropdownButtonRef=e};onOptionsContainerRef=e=>{this.optionsContainerRef=e};renderOption=e=>{const t=this.props.options.find((t=>t.id===e.id));if(t)return xe().createElement(xe().Fragment,null,xe().createElement("div",{className:"option-title"},t.label),xe().createElement("div",{className:"option-description"},t.description))};getMenuItems(e,t){const n={type:"checkbox",id:"",label:"",checked:!1,enabled:!0,visible:!0,accelerator:null,accessKey:null};return e.map((({id:e,label:r})=>({...n,id:e,label:r,checked:t===e})))}renderSplitButtonOptions(){const{showButtonOptions:e,checkedOption:t,selectedOption:n,optionsPositionBottom:r}=this.state;if(!e)return;const{options:i}=this.props,s=this.getMenuItems(i,t?.id),o=s.find((e=>e.id===n?.id)),a=void 0!==r?"open-top":"open-bottom",l=ri()("dropdown-select-button-options",a);return xe().createElement("div",{className:l,style:{bottom:r},ref:this.onOptionsContainerRef},xe().createElement($M,{depth:0,items:s,selectedItem:o,onItemClicked:this.onItemClick,onKeyDown:this.onPaneKeyDown,onSelectionChanged:this.onSelectionChanged,onClearSelection:this.onClearSelection,allowFirstCharacterNavigation:!0,renderLabel:this.renderOption}))}onSubmit=e=>{void 0!==this.props.onSubmit&&null!==this.state.checkedOption&&this.props.onSubmit(e,this.state.checkedOption)};render(){const{options:e,disabled:t,dropdownAriaLabel:n}=this.props,{checkedOption:r,optionsPositionBottom:i,showButtonOptions:s}=this.state;if(0===e.length||null===r)return;const o=void 0!==i?"open-top":"open-bottom",a=ri()("dropdown-select-button",s?o:null),l=ri()("dropdown-button",{disabled:t});return xe().createElement("div",{className:a,ref:this.dropdownSelectContainerRef},xe().createElement("div",{className:"dropdown-button-wrappers"},xe().createElement(mi,{className:"invoke-button",disabled:t,type:"submit",ariaDescribedBy:this.props.ariaDescribedBy,tooltip:this.props.tooltip,onButtonRef:this.onInvokeButtonRef,onClick:this.onSubmit},r.label),xe().createElement(mi,{className:l,onClick:this.openSplitButtonDropdown,onKeyDown:this.onDropdownButtonKeyDown,onButtonRef:this.onDropdownButtonRef,type:"button",ariaExpanded:s,ariaHaspopup:!0,ariaLabel:n},xe().createElement(yi,{symbol:Qc}))),this.renderSplitButtonOptions())}}class aO extends Ae.Component{get selectedAction(){const e=this.props.suggestedActions.find((e=>e.id===this.state.selectedActionValue));return void 0===e&&FT("NoSuggestedActionsProvided",new Error("The DropdownSuggestedActions component was provided an empty array. It requires an array of at least one item.")),e}constructor(e){super(e);const{selectedActionValue:t,suggestedActions:n}=e,r=n[0].id;this.state={selectedActionValue:t??r}}onActionSelectionChange=e=>{this.setState({selectedActionValue:e.id}),this.props.onSuggestedActionChanged(e.id)};onActionSubmitted=e=>{if(void 0===this.selectedAction)return;const{onClick:t,menuItemId:n}=this.selectedAction;t?.(e),e.defaultPrevented||void 0===n||M(n)};render(){if(void 0===this.selectedAction)return;const{description:e,image:t,discoverabilityContent:n,disabled:r,id:i,title:s}=this.selectedAction,o=ri()("suggested-action","primary",this.props.className);return Ae.createElement("div",{className:o},t&&Ae.createElement("div",{className:"image-wrapper"},t),Ae.createElement("div",{className:"text-wrapper"},Ae.createElement("h2",null,s),e&&Ae.createElement("p",{className:"description"},e),n&&Ae.createElement("p",{className:"discoverability"},n)),Ae.createElement(oO,{checkedOption:i,options:this.props.suggestedActions.map((({label:e,id:t})=>({label:e,id:t}))),disabled:r,dropdownAriaLabel:"Suggested actions for this branch",onCheckedOptionChange:this.onActionSelectionChange,onSubmit:this.onActionSubmitted}))}}function lO(e){return e.replace(/&?&/g,(e=>e.length>1?"&":""))}const cO=Pt(__dirname,"static/paper-stack.svg");function uO(e){return"separator"===e.type||"submenuItem"===e.type||null===e.accelerator?[]:e.accelerator.split("+").map(uh)}function hO(e,t=new Map,n){for(const r of e.items){if("separator"===r.type)continue;const e={label:r.label,acceleratorKeys:uO(r),parentMenuLabels:void 0===n?[]:[n.label,...n.parentMenuLabels],enabled:r.enabled};t.set(r.id,e),"submenuItem"===r.type&&hO(r.menu,t,e)}return t}class pO extends Ae.Component{getMenuInfoMap=Tr((e=>void 0===e?new Map:hO(e)));transitionTimer=null;constructor(e){super(e),this.state={enableTransitions:!1}}getMenuItemInfo(e){return this.getMenuInfoMap(this.props.appMenu).get(e)}getPlatformFileManagerName(){return"your File Manager"}renderDiscoverabilityElements(e){const t=function(e){return lO(e.parentMenuLabels.join(" -> "))}(e);return Ae.createElement(Ae.Fragment,null,t,"菜单 或 快捷键:"," ",this.renderDiscoverabilityKeyboardShortcut(e))}renderDiscoverabilityKeyboardShortcut(e){return Ae.createElement(Ru,{darwinKeys:e.acceleratorKeys,keys:e.acceleratorKeys})}renderMenuBackedAction(e,t,n,r){const i=this.getMenuItemInfo(e);return void 0===i?(log.error(`找不到的匹配菜单项 ${e}`),null):Ae.createElement(sM,{title:t,description:n,discoverabilityContent:this.renderDiscoverabilityElements(i),menuItemId:e,buttonText:lO(i.label),disabled:!i.enabled,onClick:r})}renderShowInFileManager(){const e=this.getPlatformFileManagerName();return this.renderMenuBackedAction("open-working-directory",`在资源管理器中查看存储库`,void 0,this.onShowInFileManagerClicked)}onShowInFileManagerClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepOpenWorkingDirectory");renderViewOnGitHub(){return null!==this.props.repository.gitHubRepository?this.renderMenuBackedAction("view-repository-on-github","在浏览器中查看存储库",void 0,this.onViewOnGitHubClicked):null}onViewOnGitHubClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepViewOnGitHub");openIntegrationPreferences=()=>{this.props.dispatcher.showPopup({type:dh.Preferences,initialSelectedTab:Fr.Integrations})};renderOpenInExternalEditor(){if(!this.props.isExternalEditorAvailable)return null;const e="open-external-editor";if(void 0===this.getMenuItemInfo(e))return log.error(`找不到的匹配菜单项 ${e}`),null;if(void 0===this.getMenuItemInfo("preferences"))return log.error(`找不到的匹配菜单项 ${e}`),null;const t=Ae.createElement(Ae.Fragment,null,"选择编辑器:"," ",Ae.createElement(Hx,{onClick:this.openIntegrationPreferences},"选项"));return this.renderMenuBackedAction(e,"在文件管理器中查看存储库",t,this.onOpenInExternalEditorClicked)}onOpenInExternalEditorClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepOpenInExternalEditor");renderRemoteAction(){const{remote:e,aheadBehind:t,branchesState:n,tagsToPush:r}=this.props.repositoryState,{tip:i,defaultBranch:s,currentPullRequest:o}=n;if(i.kind!==Hr.Valid)return null;if(null===e)return this.renderPublishRepositoryAction();if(null===t)return this.renderPublishBranchAction(i);if(ay(n,t)===iy.Recommended)return null;if(t.behind>0)return this.renderPullBranchAction(i,e,t);if(t.ahead>0||null!==r&&r.length>0)return this.renderPushBranchAction(i,e,t,r);const a=null!==this.props.repository.gitHubRepository,l=null!==o,c=null!==s&&i.branch.name===s.name;return!a||l||c?null:this.renderCreatePullRequestAction(i)}renderViewStashAction(){const{changesState:e,branchesState:t}=this.props.repositoryState,{tip:n}=t;if(n.kind!==Hr.Valid)return null;const{stashEntry:r}=e;if(null===r)return null;if(r.files.kind!==Ew.Loaded)return null;const i=r.files.files.length,s=Ae.createElement(Ae.Fragment,null,"你有 ",i," ",1===i?"项更改":"项更改","在你的程序中,您尚未提交。"),o=Ae.createElement(Ae.Fragment,null,"当暂存更改存在时,可以在左侧的“更改”选项卡的底部查看这些暂存的更改。"),a="toggle-stashed-changes",l=this.getMenuItemInfo(a);return void 0===l?(log.error(`Could not find matching menu item for ${a}`),null):Ae.createElement(sM,{key:"view-stash-action",title:"查看暂存更改",menuItemId:a,description:s,discoverabilityContent:o,buttonText:"查看暂存",type:"primary",disabled:null!==l&&!l.enabled,onClick:this.onViewStashClicked})}onViewStashClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepViewStash");renderPublishRepositoryAction(){const e="push",t=this.getMenuItemInfo(e);if(void 0===t)return log.error("找不到匹配的推送菜单项"),null;const n=Ae.createElement(Ae.Fragment,null,"使用快捷键"," ",this.renderDiscoverabilityKeyboardShortcut(t));return Ae.createElement(sM,{key:"publish-repository-action",title:"将仓库发布到GitHub",description:"此仓库当前仅在本地计算机上可用。通过在GitHub上发布您可以共享它并与其他人协作。",discoverabilityContent:n,buttonText:"发布存储库",menuItemId:e,type:"primary",disabled:!t.enabled,onClick:this.onPublishRepositoryClicked})}onPublishRepositoryClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepPublishRepository");renderPublishBranchAction(e){const t="push",n=this.getMenuItemInfo(t);if(void 0===n)return log.error("找不到匹配的推送菜单项"),null;const r=null!==this.props.repository.gitHubRepository,i=Ae.createElement(Ae.Fragment,null,"当前分支(",Ae.createElement(CD,null,e.branch.name),")尚未发布到远程。通过发布它 ",r?"到 GitHub":""," 你可以分享, ",r?"打开拉取请求 ":"","并与他人合作。"),s=Ae.createElement(Ae.Fragment,null,"Always available in the toolbar or"," ",this.renderDiscoverabilityKeyboardShortcut(n));return Ae.createElement(sM,{key:"publish-branch-action",title:"发布分支",menuItemId:t,description:i,discoverabilityContent:s,buttonText:"发布分支",type:"primary",disabled:!n.enabled,onClick:this.onPublishBranchClicked})}onPublishBranchClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepPublishBranch");renderPullBranchAction(e,t,n){const r="pull",i=this.getMenuItemInfo(r);if(void 0===i)return log.error("Could not find matching menu item for pull"),null;const s=null!==this.props.repository.gitHubRepository,o=Ae.createElement(Ae.Fragment,null,"当前分支(",Ae.createElement(CD,null,e.branch.name),")有"," ",1===n.behind?"1项提交":"多项提交"," 在"," ",s?"GitHub":"远程"," 那"," ",1===n.behind?"不是":"不要"," 存在于您的计算机上。"),a=Ae.createElement(Ae.Fragment,null,"存储库菜单 或 快捷键"," ",this.renderDiscoverabilityKeyboardShortcut(i)),l=`从 ${t.name} 远程拉取 ${n.behind} ${1===n.behind?"提交":"提交"}`,c=`拉取 ${t.name}`;return Ae.createElement(sM,{key:"pull-branch-action",title:l,menuItemId:r,description:o,discoverabilityContent:a,buttonText:c,type:"primary",disabled:!i.enabled})}renderPushBranchAction(e,t,n,r){const i="push",s=this.getMenuItemInfo(i);if(void 0===s)return log.error("找不到匹配的推送菜单项"),null;const o=null!==this.props.repository.gitHubRepository,a=[],l=[];n.ahead>0&&(a.push("提交"),l.push(1===n.ahead?"1 个本地提交":`${n.ahead} 个本地提交`)),null!==r&&r.length>0&&(a.push("tags"),l.push(1===r.length?"1 tag":`${r.length} tags`));const c=`你有 ${l.join(" and ")} 等待被推送到 ${o?"GitHub":"远程"}.`,u=Ae.createElement(Ae.Fragment,null,"存储库菜单 或 快捷键:",this.renderDiscoverabilityKeyboardShortcut(s)),h=`推送 ${a.join(" and ")} 到远程 ${t.name}`,p=`推送 ${t.name}`;return Ae.createElement(sM,{key:"push-branch-action",title:h,menuItemId:i,description:c,discoverabilityContent:u,buttonText:p,type:"primary",disabled:!s.enabled})}onPullRequestSuggestedActionChanged=e=>{var t;((t=e)===im.PreviewPullRequest||t===im.CreatePullRequest)&&this.props.dispatcher.setPullRequestSuggestedNextAction(e)};renderCreatePullRequestAction(e){const t=this.getMenuItemInfo("create-pull-request");if(void 0===t)return log.error("Could not find matching menu item for 'create-pull-request'"),null;const n=Ae.createElement(Ae.Fragment,null,"当前分支(",Ae.createElement(CD,null,e.branch.name),") is already published to GitHub. Create a pull request to propose and collaborate on your changes."),r=this.getMenuItemInfo("preview-pull-request");if(void 0===r)return log.error("Could not find matching menu item for 'preview-pull-request'"),null;const i={title:"从当前分支创建拉取请求",label:"创建拉取请求",description:n,id:im.CreatePullRequest,menuItemId:"create-pull-request",discoverabilityContent:this.renderDiscoverabilityElements(t),disabled:!t.enabled,onClick:this.onCreatePullRequestClicked},s={title:"从当前分支预览拉取请求",label:"预览拉取请求",description:Ae.createElement(Ae.Fragment,null,"当前分支(",Ae.createElement(CD,null,e.branch.name),") is already published to GitHub. Preview the changes this pull request will have before proposing your changes."),id:im.PreviewPullRequest,menuItemId:"preview-pull-request",discoverabilityContent:this.renderDiscoverabilityElements(r),disabled:!r.enabled};return Ae.createElement(aO,{key:"pull-request-action",className:"pull-request-action",suggestedActions:[s,i],selectedActionValue:this.props.pullRequestSuggestedNextAction,onSuggestedActionChanged:this.onPullRequestSuggestedActionChanged})}onCreatePullRequestClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepCreatePullRequest");renderActions(){return Ae.createElement(Ae.Fragment,null,Ae.createElement(lM,{type:"primary",transitions:"replace",enableTransitions:this.state.enableTransitions},this.renderViewStashAction()||this.renderRemoteAction()),Ae.createElement(lM,null,this.renderOpenInExternalEditor(),this.renderShowInFileManager(),this.renderViewOnGitHub()))}componentDidMount(){this.transitionTimer=window.setTimeout((()=>{this.setState({enableTransitions:!0}),this.transitionTimer=null}),500)}componentWillUnmount(){null!==this.transitionTimer&&clearTimeout(this.transitionTimer)}render(){return Ae.createElement("div",{className:"changes-interstitial"},Ae.createElement("div",{className:"content"},Ae.createElement("div",{className:"interstitial-header"},Ae.createElement("div",{className:"text"},Ae.createElement("h1",null,"本地无更改"),Ae.createElement("p",null,"此存储库中没有未提交的更改")),Ae.createElement("img",{src:cO,className:"blankslate-image",alt:""})),this.renderActions()))}}const dO=Pt(__dirname,"static/multiple-files-selected.svg");class mO extends Ae.Component{render(){return Ae.createElement("div",{className:"panel blankslate",id:"no-changes"},Ae.createElement("img",{src:dO,className:"blankslate-image",alt:""}),Ae.createElement("div",null,this.props.count," files selected"))}}class fO extends Ae.Component{render(){const e=this.props.filesChangedCount,t=e>300?"300+":e;return Ae.createElement("span",{className:"counter"},t)}}class gO extends Ae.Component{render(){const e=[],{users:t,accounts:n}=this.props;for(let r=0;r<this.props.users.length;r++)t.length>4&&2===r&&e.push(Ae.createElement("div",{key:"more",className:"avatar-more avatar"})),e.push(Ae.createElement(tD,{key:`${r}`,user:t[r],accounts:n}));const r=ri()("AvatarStack",{"AvatarStack--small":!0,"AvatarStack--two":2===t.length,"AvatarStack--three":3===t.length,"AvatarStack--plus":t.length>3});return Ae.createElement("div",{className:r},Ae.createElement("div",{className:"AvatarStack-body"},e))}}class yO extends Ae.Component{renderAuthorInline(e){return Ae.createElement("span",{className:"author"},e.name)}renderAuthors(e){return 1===e.length?Ae.createElement("span",{className:"authors"},this.renderAuthorInline(e[0])):2===e.length?Ae.createElement("span",{className:"authors"},this.renderAuthorInline(e[0]),", ",this.renderAuthorInline(e[1])):Ae.createElement("span",{className:"authors"},e.length," people")}render(){const{commits:e}=this.props,t=new Map;for(const n of e){const{author:e,committer:r,coAuthors:i}=n,s=n.authoredByCommitter||null!==this.props.gitHubRepository&&Ux(n,this.props.gitHubRepository)?[e,...i]:[e,r,...i];for(const e of s)t.has(e.toString())||t.set(e.toString(),e)}return Ae.createElement("span",{className:"commit-attribution-component"},this.renderAuthors(Array.from(t.values())))}}var wO=n(8033),bO=n.n(wO);const vO=new class{scrollTimer;defaultScrollEdge=30;scrollSpeed=5;setupMouseScroll(e,t){const n=this.getClosestScrollElement(e);null!==n?this.updateMouseScroll(n,t):this.clearScrollTimer()}updateMouseScroll(e,t){window.clearTimeout(this.scrollTimer),this.scrollVerticallyOnMouseNearEdge(e,t)&&(this.scrollTimer=window.setTimeout((()=>{this.updateMouseScroll(e,t)}),30))}clearScrollTimer(){window.clearTimeout(this.scrollTimer)}scrollVerticallyOnMouseNearEdge(e,t){const{top:n,bottom:r}=e.getBoundingClientRect(),i=r-t,s=t-n;if(i>0&&i<this.defaultScrollEdge){const t=this.getScrollDistance(i);return this.scrollDown(e,t)}if(s>0&&s<this.defaultScrollEdge){const t=this.getScrollDistance(s);return this.scrollUp(e,t)}return!1}getScrollDistance(e){const t=this.defaultScrollEdge/e;return this.scrollSpeed*t}scrollUp(e,t){if(e.scrollTop<=0)return!1;const n=e.scrollTop>t?e.scrollTop-t:0;return e.scrollTo({top:n}),!0}scrollDown(e,t){const n=e.scrollHeight-e.clientHeight;if(e.scrollTop>=n)return!1;const r=e.scrollTop+t<n?e.scrollTop+t:n;return e.scrollTo({top:r}),!0}getClosestScrollElement(e){const{position:t}=getComputedStyle(e);if("fixed"===t)return null;if(this.isScrollable(e))return e;let n;for(n=e;n=n.parentElement;){const{position:e}=getComputedStyle(n);if(("absolute"!==t||"static"!==e)&&this.isScrollable(n)&&this.hasScrollableContent(n))return n}return null}isScrollable(e){const t=getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)}hasScrollableContent(e){return e.clientHeight<e.scrollHeight}};class CO extends Ae.Component{hasDragStarted=!1;hasDragEnded=!1;dragElement=null;elemBelow=null;verticalOffset=15;componentDidMount(){this.dragElement=document.getElementById("dragElement")}canDragCommit(e){return!(0!==e.button||e.shiftKey)&&this.props.isEnabled}initializeDrag(){this.hasDragStarted=!1,this.elemBelow=null}onMouseDown=async e=>{this.canDragCommit(e)&&(this.hasDragEnded=!1,document.onmouseup=this.handleDragEndEvent,await uw(100),this.hasDragEnded||(this.initializeDrag(),document.addEventListener("mousemove",this.onMouseMove)))};onMouseMove=e=>{this.hasDragEnded?this.onDragEnd():(this.hasDragStarted||(this.props.onRenderDragElement(),this.props.onDragStart(),bp.dragStarted(),this.hasDragStarted=!0,window.addEventListener("keyup",this.onKeyUp)),null!==this.dragElement&&(this.dragElement.style.left=e.pageX+0+"px",this.dragElement.style.top=e.pageY+this.verticalOffset+"px"),this.elemBelow=document.elementFromPoint(e.clientX,e.clientY),null!==this.elemBelow?vO.setupMouseScroll(this.elemBelow,e.clientY):vO.clearScrollTimer())};handleDragEndEvent=()=>{this.hasDragEnded=!0,this.hasDragStarted&&this.onDragEnd(),document.onmouseup=null,window.removeEventListener("keyup",this.onKeyUp)};onKeyUp=e=>{"Escape"===e.key&&this.handleDragEndEvent()};onDragEnd(){document.removeEventListener("mousemove",this.onMouseMove),vO.clearScrollTimer(),this.props.onRemoveDragElement(),void 0!==this.props.onDragEnd&&this.props.onDragEnd(this.getLastElemBelowDropTarget()),bp.dragEnded(this.getLastElemBelowDropTarget())}getLastElemBelowDropTarget=()=>{if(null!==this.elemBelow)return this.props.dropTargetSelectors.find((e=>null!==this.elemBelow&&null!==this.elemBelow.closest(e)))};render(){return Ae.createElement("div",{className:"draggable",onMouseDown:this.onMouseDown},this.props.children)}}class SO extends Ae.PureComponent{constructor(e){super(e),this.state={avatarUsers:$x(e.gitHubRepository,e.commit)}}componentWillReceiveProps(e){e.commit!==this.props.commit&&this.setState({avatarUsers:$x(e.gitHubRepository,e.commit)})}onMouseUp=()=>{const{onSquash:e,selectedCommits:t,commit:n,disableSquashing:r}=this.props;!0!==r&&bp.isDragOfTypeInProgress(vp.Commit)&&void 0!==e&&t.filter((e=>e.sha!==n.sha)).length>0&&e(t,n,!1)};onMouseEnter=()=>{const{selectedCommits:e,commit:t,disableSquashing:n}=this.props,r=void 0!==e.find((e=>e.sha===t.sha));!0!==n&&bp.isDragOfTypeInProgress(vp.Commit)&&!r&&bp.emitEnterDropTarget({type:Cp.Commit})};onMouseLeave=()=>{bp.isDragOfTypeInProgress(vp.Commit)&&bp.emitLeaveDropTarget()};render(){const{commit:e}=this.props,{author:{date:t}}=e,n=this.props.isDraggable||!1,r=0===e.summary.length,i=r?"Empty commit message":e.summary,s=ri()("summary",{"empty-summary":r});return Ae.createElement(CO,{isEnabled:n,onDragStart:this.onDragStart,onRenderDragElement:this.onRenderCommitDragElement,onRemoveDragElement:this.onRemoveDragElement,dropTargetSelectors:[Sp.Branch,Sp.PullRequest,Sp.Commit,Sp.ListInsertionPoint]},Ae.createElement("div",{className:"commit",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},Ae.createElement("div",{className:"info"},Ae.createElement(AM,{className:s,emoji:this.props.emoji,text:i,renderUrlsAsLinks:!1}),Ae.createElement("div",{className:"description"},Ae.createElement(gO,{users:this.state.avatarUsers,accounts:this.props.accounts}),Ae.createElement("div",{className:"byline"},Ae.createElement(yO,{gitHubRepository:this.props.gitHubRepository,commits:[e]}),function(e){return Ae.createElement(Ae.Fragment,null," • ",Ae.createElement(PM,{date:e}))}(t)))),this.renderCommitIndicators()))}renderCommitIndicators(){const e=function(e){if(0===e.length)return null;const[t]=e;return Ae.createElement("span",{className:"tag-indicator"},Ae.createElement("span",{className:"tag-name",key:t},t),e.length>1&&Ae.createElement("span",{key:e.length,className:"tag-indicator-more"}))}(this.props.commit.tags),t=this.renderUnpushedIndicator();return e||t?Ae.createElement("div",{className:"commit-indicators"},e,t):null}renderUnpushedIndicator(){return this.props.showUnpushedIndicator?Ae.createElement(eh,{tagName:"div",className:"unpushed-indicator",tooltip:this.props.unpushedIndicatorTitle},Ae.createElement(yi,{symbol:Mi})):null}onDragStart=()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),bp.setDragData({type:vp.Commit,commits:this.props.selectedCommits})};onRenderCommitDragElement=()=>{void 0!==this.props.onRenderCommitDragElement&&this.props.onRenderCommitDragElement(this.props.commit)};onRemoveDragElement=()=>{void 0!==this.props.onRemoveDragElement&&this.props.onRemoveDragElement()}}class EO extends Ae.Component{timeoutId=null;onEnterDropTarget=null;onLeaveDropTargetDisposable=null;constructor(e){super(e),this.state={showTooltip:!1,currentDropTarget:null}}clearTimeout(){null!==this.timeoutId&&window.clearTimeout(this.timeoutId)}setToolTipTimer(e){this.setState({showTooltip:!0})}renderDragToolTip(){const{showTooltip:e,currentDropTarget:t}=this.state;if(!e||null===t)return;let n;switch(t.type){case Cp.Branch:const e=Ae.createElement(yi,{className:"copy-to-icon",symbol:_l});n=Ae.createElement(Ae.Fragment,null,e,Ae.createElement("span",null,Ae.createElement("span",{className:"copy-to"},"Copy to"),Ae.createElement("span",{className:"branch-name"},t.branchName)));break;case Cp.Commit:const r=this.props.selectedCommits.length+1;n=Ae.createElement(Ae.Fragment,null,Ae.createElement("span",null,"Squash ",r," commits"));break;case Cp.ListInsertionPoint:if(t.data.type!==vp.Commit){n=Ae.createElement(Ae.Fragment,null,Ae.createElement("span",null,"'Insert here'"));break}const i=1===t.data.commits.length?"commit":"commits";n=Ae.createElement(Ae.Fragment,null,Ae.createElement("span",null,`Move ${i} here`));break;default:ct(0,`Unknown drop target type: ${t}`)}return Ae.createElement("div",{className:"tool-tip-contents"},Ae.createElement("div",null,n))}componentDidMount(){this.onEnterDropTarget=bp.onEnterDropTarget((e=>{switch(this.setState({currentDropTarget:e}),e.type){case Cp.Branch:case Cp.Commit:case Cp.ListInsertionPoint:this.setToolTipTimer(1500);break;default:ct(0,`Unknown drop target type: ${e}`)}})),this.onLeaveDropTargetDisposable=bp.onLeaveDropTarget((()=>{this.setState({currentDropTarget:null,showTooltip:!1})}))}componentWillUnmount(){this.clearTimeout(),null!==this.onEnterDropTarget&&(this.onEnterDropTarget.dispose(),this.onEnterDropTarget=null),null!==this.onLeaveDropTargetDisposable&&(this.onLeaveDropTargetDisposable.dispose(),this.onLeaveDropTargetDisposable=null)}render(){const{commit:e,gitHubRepository:t,selectedCommits:n,emoji:r}=this.props,i=n.length,s=ri()({"multiple-selected":i>1,"in-keyboard-insertion-mode":this.props.isKeyboardInsertion??!1});return Ae.createElement("div",{id:"commit-drag-element",className:s},Ae.createElement("div",{className:"commit-box"},Ae.createElement("div",{className:"count"},i),Ae.createElement(SO,{gitHubRepository:t,commit:e,selectedCommits:n,emoji:r,showUnpushedIndicator:!1,accounts:this.props.accounts})),this.renderDragToolTip())}}class kO extends Ae.Component{commitsHash=Tr(TO,ap);commitIndexBySha=Tr((e=>new Map(e.map(((e,t)=>[e,t])))));containerRef=Ae.createRef();listRef=Ae.createRef();updateKeyboardReorderingMessage=(0,iT.debounce)((e=>{const{keyboardReorderData:t}=this.props;if(void 0===t)return void this.setState({reorderingMessage:""});const n=1===t.commits.length?"":"s";if(null===e)this.setState({reorderingMessage:`Use the Up and Down arrow keys to choose a new location for the selected commit${n}, then press Enter to confirm or Escape to cancel.`});else{const{row:t}=e,r=t<this.props.commitSHAs.length?`before commit ${t+1}`:`after commit ${t}`;this.setState({reorderingMessage:`Press Enter to insert the selected commit${n} ${r} or Escape to cancel.`})}}),500);constructor(e){super(e),this.state={reorderingMessage:""}}componentDidUpdate(e){this.props.keyboardReorderData!==e.keyboardReorderData&&this.updateKeyboardReorderingMessage(null)}getVisibleCommits(){const e=new Array;for(const t of this.props.commitSHAs){const n=this.props.commitLookup.get(t);void 0!==n&&e.push(n)}return e}isLocalCommit=e=>this.props.localCommitSHAs.includes(e);renderCommit=e=>{const t=this.props.commitSHAs[e],n=this.props.commitLookup.get(t);if(null==n)return null;const r=this.isLocalCommit(n.sha),i=this.getUnpushedTags(n),s=(r||i.length>0)&&!1===this.props.isLocalRepository;return Ae.createElement(SO,{key:n.sha,gitHubRepository:this.props.gitHubRepository,showUnpushedIndicator:s,unpushedIndicatorTitle:this.getUnpushedIndicatorTitle(r,i.length),commit:n,emoji:this.props.emoji,isDraggable:!1===this.props.isMultiCommitOperationInProgress&&!this.inKeyboardReorderMode,onSquash:this.onSquash,selectedCommits:this.selectedCommits,onRenderCommitDragElement:this.onRenderCommitDragElement,onRemoveDragElement:this.props.onRemoveCommitDragElement,disableSquashing:this.props.disableSquashing,accounts:this.props.accounts})};get inKeyboardReorderMode(){return void 0!==this.props.keyboardReorderData}getLastRetainedCommitRef(e){const t=Math.max(...e);return t!==this.props.commitSHAs.length-1?`${this.props.commitSHAs[t]}^`:null}onSquash=(e,t,n)=>{const r=[...e,t].map((e=>this.props.commitSHAs.findIndex((t=>t===e.sha))));this.props.onSquash?.(e,t,this.getLastRetainedCommitRef(r),n)};onRenderCommitDragElement=e=>{this.props.onRenderCommitDragElement?.(e,this.selectedCommits)};getUnpushedIndicatorTitle(e,t){return e?"This commit has not been pushed to the remote repository":t>0?`This commit has ${t} tag${t>1?"s":""} to push`:void 0}get selectedCommits(){return this.lookupCommits(this.props.selectedSHAs)}getUnpushedTags(e){const t=new Set(this.props.tagsToPush??[]);return e.tags.filter((e=>t.has(e)))}onSelectionChanged=e=>{const t=e.map((e=>this.props.commitSHAs[e])),n=this.lookupCommits(t);this.props.onCommitsSelected?.(n,this.isContiguous(e))};isContiguous(e){if(e.length<=1)return!0;const t=[...e].sort(((e,t)=>t-e));for(let e=0;e<t.length;e++){const n=t[e];if(e+1!==t.length&&n-1!==t[e+1])return!1}return!0}onSelectedRowChanged=e=>{const t=this.props.commitSHAs[e],n=this.props.commitLookup.get(t);n&&this.props.onCommitsSelected?.([n],!0)};lookupCommits(e){const t=[];return e.forEach((e=>{const n=this.props.commitLookup.get(e);void 0!==n?t.push(n):log.warn("[Commit List] - Unable to lookup commit from sha - This should not happen.")})),t}onScroll=(e,t)=>{const n=Math.ceil(t/50),r=Math.floor(e/50),i=r+n;this.props.onScroll?.(r,i),this.props.onCompareListScrolled?.(e)};rowForSHA(e){return this.commitIndexBySha(this.props.commitSHAs).get(e)??-1}getRowCustomClassMap=()=>{const{commitSHAs:e,shasToHighlight:t}=this.props;if(void 0===t||0===t.length)return;const n=e.filter((e=>t.includes(e))).map((e=>this.rowForSHA(e)));if(0===n.length)return;const r=new Map;return r.set("highlighted",n),r};focus(){this.listRef.current?.focus()}render(){const{commitSHAs:e,selectedSHAs:t,shasToHighlight:n,emptyListMessage:r,reorderingEnabled:i,isMultiCommitOperationInProgress:s}=this.props;if(0===e.length)return Ae.createElement("div",{className:"panel blankslate"},r??"No commits to list");const o=ri()({"has-highlighted-commits":void 0!==n&&n.length>0}),a=t.map((e=>this.rowForSHA(e))).filter((e=>-1!==e));return Ae.createElement("div",{id:"commit-list",className:o,ref:this.containerRef},this.renderReorderCommitsHint(),Ae.createElement(lA,{ref:this.listRef,rowCount:e.length,rowHeight:50,selectedRows:a,rowRenderer:this.renderCommit,onDropDataInsertion:this.onDropDataInsertion,onSelectionChanged:this.onSelectionChanged,onSelectedRowChanged:this.onSelectedRowChanged,onKeyboardInsertionIndexPathChanged:this.onKeyboardInsertionIndexPathChanged,onCancelKeyboardInsertion:this.props.onCancelKeyboardReorder,onConfirmKeyboardInsertion:this.onConfirmKeyboardReorder,onRowContextMenu:this.onRowContextMenu,selectionMode:"multi",onScroll:this.onScroll,keyboardInsertionData:this.props.keyboardReorderData,keyboardInsertionElementRenderer:this.renderKeyboardInsertionElement,insertionDragType:!0===i&&!1===s?vp.Commit:void 0,invalidationProps:{commits:this.props.commitSHAs,localCommitSHAs:this.props.localCommitSHAs,commitLookupHash:this.commitsHash(this.getVisibleCommits()),tagsToPush:this.props.tagsToPush,shasToHighlight:this.props.shasToHighlight},setScrollTop:this.props.compareListScrollTop,rowCustomClassNameMap:this.getRowCustomClassMap()}),Ae.createElement(qT,{message:this.state.reorderingMessage}))}renderReorderCommitsHint=()=>{if(!this.inKeyboardReorderMode)return null;const e=this.containerRef.current?.clientWidth??0;return Ae.createElement(wx,{className:"reorder-commits-hint-popover",anchor:this.containerRef.current,anchorOffset:10,anchorPosition:mx.Top,isDialog:!1,trapFocus:!1,style:{width:e-20+"px"}},Ae.createElement("h4",null,"Reorder commits"),Ae.createElement("p",null,"Use ",Ae.createElement(Ru,{darwinKeys:["↑"],keys:["↑"]}),Ae.createElement(Ru,{darwinKeys:["↓"],keys:["↓"]})," to choose a new location."),Ae.createElement("p",null,"Press ",Ae.createElement(Ru,{darwinKeys:["⏎"],keys:["⏎"]})," to confirm."))};renderKeyboardInsertionElement=e=>{const{emoji:t,gitHubRepository:n}=this.props,{commits:r}=e;return 0===r.length?null:e.type===vp.Commit?Ae.createElement(EO,{gitHubRepository:n,commit:r[0],selectedCommits:r,isKeyboardInsertion:!0,emoji:t,accounts:this.props.accounts}):ct(e.type,`Unknown drag element type: ${e}`)};onRowContextMenu=(e,t)=>{if(t.preventDefault(),this.inKeyboardReorderMode)return;const n=this.props.commitSHAs[e],r=this.props.commitLookup.get(n);if(void 0===r)return;let i=[];i=this.props.selectedSHAs.length>1?this.getContextMenuMultipleCommits(r):this.getContextMenuForSingleCommit(e,r),hh(i)};getContextMenuForSingleCommit(e,t){const n=this.isLocalCommit(t.sha),r=!0===this.props.canUndoCommits&&n&&0===e,i=!0===this.props.canAmendCommits&&0===e,s=e>0&&e<=this.props.localCommitSHAs.length,o=!0===this.props.canResetToCommits&&s,a=e>0;let l="在Github上查看";const c=this.props.gitHubRepository;c&&c.endpoint!==cr()&&(l="在Github上查看 Enterprise");const u=[];i&&u.push({label:"修改提交",action:()=>this.props.onAmendCommit?.(t,n)}),r&&u.push({label:"撤销提交",action:()=>{this.props.onUndoCommit&&this.props.onUndoCommit(t)},enabled:void 0!==this.props.onUndoCommit}),u.push({label:"重置提交",action:()=>{this.props.onResetToCommit&&this.props.onResetToCommit(t)},enabled:o&&void 0!==this.props.onResetToCommit}),u.push({label:"Checkout commit",action:()=>{this.props.onCheckoutCommit?.(t)},enabled:a&&void 0!==this.props.onCheckoutCommit}),u.push({label:"Reorder commit",action:()=>{this.props.onKeyboardReorder?.([t])},enabled:this.canReorder()}),u.push({label:"在提交中还原更改",action:()=>{this.props.onRevertCommit&&this.props.onRevertCommit(t)},enabled:void 0!==this.props.onRevertCommit},{type:"separator"},{label:"根据提交创建分支",action:()=>{this.props.onCreateBranch&&this.props.onCreateBranch(t)}},{label:"创建标签",action:()=>this.props.onCreateTag?.(t.sha),enabled:void 0!==this.props.onCreateTag});const h=this.getDeleteTagsMenuItem(t);null!==h&&u.push({type:"separator"},h),t.tags.length;const p=t.tags.length>1?"Copy tags":"Copy tag";return u.push({label:"筛选提交",action:()=>this.props.onCherryPick?.(this.selectedCommits),enabled:this.canCherryPick()},{type:"separator"},{label:"复制SHA",action:()=>f.clipboard.writeText(t.sha)},{label:p,action:()=>f.clipboard.writeText(t.tags.join(" ")),enabled:t.tags.length>0},{label:l,action:()=>this.props.onViewCommitOnGitHub?.(t.sha),enabled:!n&&!!c}),u}canCherryPick(){const{onCherryPick:e,isMultiCommitOperationInProgress:t}=this.props;return void 0!==e&&!1===t}canReorder=()=>void 0!==this.props.onKeyboardReorder&&!1===this.props.disableReordering&&!1===this.props.isMultiCommitOperationInProgress;canSquash(){const{onSquash:e,disableSquashing:t,isMultiCommitOperationInProgress:n}=this.props;return void 0!==e&&!1===t&&!1===n}getDeleteTagsMenuItem(e){const{onDeleteTag:t}=this.props,n=this.getUnpushedTags(e);if(void 0===t||void 0===n||0===e.tags.length)return null;if(1===e.tags.length){const r=e.tags[0];return{label:`Delete tag ${r}`,action:()=>t(r),enabled:n.includes(r)}}const r=new Set(n);return{label:"删除标签…",submenu:e.tags.map((e=>({label:e,action:()=>t(e),enabled:r.has(e)})))}}getContextMenuMultipleCommits(e){const t=this.props.selectedSHAs.length;return[{label:`Cherry-pick ${t} commits…`,action:()=>this.props.onCherryPick?.(this.selectedCommits),enabled:this.canCherryPick()},{label:`Squash ${t} commits…`,action:()=>this.onSquash(this.selectedCommits,e,!0),enabled:this.canSquash()},{label:`Reorder ${t} commits…`,action:()=>this.props.onKeyboardReorder?.(this.selectedCommits),enabled:this.canReorder()}]}onKeyboardInsertionIndexPathChanged=e=>{this.updateKeyboardReorderingMessage(e)};onConfirmKeyboardReorder=(e,t)=>{this.onDropDataInsertion(e.row,t)};onDropDataInsertion=(e,t)=>{if(void 0===this.props.onDropCommitInsertion||t.type!==vp.Commit)return;const n=0===e?null:e-1;if(0===this.props.commitSHAs.length||null!==n&&n>this.props.commitSHAs.length)return;const r=null===n?null:this.props.commitSHAs[n],i=null!==r?this.props.commitLookup.get(r):null,s=t.commits.filter((e=>null!=e)).map((e=>this.props.commitSHAs.findIndex((t=>t===e.sha)))).sort(),o=s.every(((e,t,n)=>t===n.length-1||e===n[t+1]-1));if(o){const e=s[0],t=null===n&&0===e||n===e-1,r=null!==n&&-1!==s.indexOf(n);if(t||r)return}const a=s.concat(null!==n?[n]:[]);this.props.onDropCommitInsertion(i??null,t.commits,this.getLastRetainedCommitRef(a))}}function RO(e){return`${e.sha} ${e.tags}`}function TO(e){return e.map(RO).join(" ")}var AO;!function(e){e[e.Unreachable=0]="Unreachable",e[e.Reachable=1]="Reachable"}(AO||(AO={}));class xO extends Ae.Component{constructor(e){super(e),this.state={selectedTab:e.selectedTab,selectedSHAs:[]}}componentWillUpdate(e){const t=this.props.selectedTab,n=e.selectedTab;t!==n&&this.setState({selectedTab:n})}onTabClicked=e=>{this.setState({selectedTab:e})};getShasToDisplay=()=>{const{selectedTab:e}=this.state,{shasInDiff:t,selectedShas:n}=this.props;return e===AO.Reachable?t:n.filter((e=>!t.includes(e)))};onCommitsSelected=(e,t)=>{this.setState({selectedSHAs:e.map((e=>e.sha))})};renderTabs(){return Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedTab},Ae.createElement("span",null,"Unreachable"),Ae.createElement("span",null,"Reachable"))}renderActiveTab(){const{commitLookup:e,emoji:t}=this.props;return Ae.createElement(Ae.Fragment,null,this.renderUnreachableCommitsMessage(),Ae.createElement("div",{className:"unreachable-commit-list"},Ae.createElement(kO,{gitHubRepository:null,isLocalRepository:!0,commitLookup:e,commitSHAs:this.getShasToDisplay(),selectedSHAs:this.state.selectedSHAs,localCommitSHAs:[],emoji:t,onCommitsSelected:this.onCommitsSelected,accounts:this.props.accounts})))}renderFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{cancelButtonVisible:!1}))}renderUnreachableCommitsMessage=()=>{const e=this.getShasToDisplay().length,t=e>1?"commits":"commit",n=e>1?"they're":"it's";return Ae.createElement("div",{className:"message"},"You will"," ",this.state.selectedTab===AO.Unreachable?"not":""," ","see changes from the following ",t," because"," ",n," ",this.state.selectedTab===AO.Unreachable?"not":""," ","in the ancestry path of the 最近提交 in your selection."," ",Ae.createElement(Hx,{uri:"https://github.com/desktop/desktop/blob/development/docs/learn-more/unreachable-commits.md"},"Learn more about unreachable commits."))};render(){return Ae.createElement(aD,{className:"unreachable-commits",title:"提交可达性",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},this.renderTabs(),this.renderActiveTab(),this.renderFooter())}}function DO(e,t){const{emoji:n,repository:r,selectedCommits:i}=t,s=new UD(n,r),{summary:o,body:a}=function(e,t,n,r=72){const i=n.tokenize(e.trimRight()),s=new Array,o=new Array;let a=r;for(const e of i){const t=e.kind===FD.Emoji?2:e.text.length;if(a<=0)o.push(e);else if(a>=t)s.push(e),a-=t;else{if(e.kind===FD.Text)s.push($D(e.text.substring(0,a))),o.push($D(e.text.substring(a)));else if(e.kind===FD.Emoji)o.push(e);else{if(e.kind!==FD.Link)return ct(0,"Unknown token type");!e.text.startsWith("#")&&a>5?(s.push(WD(e.text.substring(0,a),e.text)),o.push(WD(e.text.substring(a),e.text))):o.push(e)}a=0}}let l=n.tokenize(t.trimRight());return o.length>0&&(s.push(ZD()),l=l.length>0?[ZD(),...o,$D("\n\n"),...l]:[ZD(),...o]),{summary:s,body:l}}(function(e){return 0===e[0].summary.length?"Empty commit message":e[0].summary}(i),i[0].body,s),l=1===i.length&&0===i[0].summary.length,c=i.flatMap((e=>$x(r.gitHubRepository,e))),u=bO()(c,((e,t)=>e.email===t.email&&e.name===t.name));return{isOverflowed:e,summary:o,body:a,avatarUsers:u,hasEmptySummary:l}}xe().Component,Ae.Component;class _O extends Ae.Component{descriptionScrollViewRef=null;resizeObserver=null;updateOverflowTimeoutId=null;descriptionRef=null;getCountCommitsNotInDiff=Tr(((e,t)=>{if(1===e.length)return 0;{const n=new Set(t);return e.reduce(((e,t)=>e+(n.has(t.sha)?0:1)),0)}}));constructor(e){super(e),this.state=DO(!1,e);const t=window.ResizeObserver;t&&(this.resizeObserver=new t((e=>{for(const t of e)t.target===this.descriptionScrollViewRef&&(null!==this.updateOverflowTimeoutId&&clearImmediate(this.updateOverflowTimeoutId),this.updateOverflowTimeoutId=setImmediate(this.onResized))})))}onResized=()=>{if(this.descriptionRef){const e=this.descriptionRef.getBoundingClientRect().bottom;this.props.onDescriptionBottomChanged(e)}this.props.isExpanded||this.updateOverflow()};onDescriptionScrollViewRef=e=>{this.descriptionScrollViewRef=e,this.resizeObserver&&(this.resizeObserver.disconnect(),e?this.resizeObserver.observe(e):this.setState({isOverflowed:!1}))};onDescriptionRef=e=>{this.descriptionRef=e};renderExpander(){const{selectedCommits:e,isExpanded:t}=this.props;return e.length>1?null:Ae.createElement(mi,{onClick:t?this.onCollapse:this.onExpand,className:"expander",tooltip:t?"Collapse":"Expand",applyTooltipAriaDescribedBy:!1,ariaExpanded:t,ariaLabel:t?"Collapse commit details":"Expand commit details",ariaControls:"expandable-commit-summary"},Ae.createElement(yi,{symbol:t?qo:su}))}onExpand=()=>{this.props.onExpandChanged(!0)};onCollapse=()=>{this.descriptionScrollViewRef&&(this.descriptionScrollViewRef.scrollTop=0),this.props.onExpandChanged(!1)};updateOverflow(){const e=this.descriptionScrollViewRef;e?this.setState({isOverflowed:e.scrollHeight>e.offsetHeight}):this.state.isOverflowed&&this.setState({isOverflowed:!1})}componentDidMount(){this.props.isExpanded||this.updateOverflow()}componentWillUpdate(e){e.selectedCommits.length===this.props.selectedCommits.length&&e.selectedCommits.every(((e,t)=>function(e,t){return e.summary===t.summary&&e.body===t.body}(e,this.props.selectedCommits[t])))||this.setState(DO(!1,e))}componentDidUpdate(e,t){this.props.isExpanded?this.state.isOverflowed&&this.setState({isOverflowed:!1}):(t.body!==this.state.body||e.isExpanded)&&this.updateOverflow()}renderDescription(){if(0===this.state.body.length||this.props.selectedCommits.length>1)return null;const e=ri()("ecs-description",{overflowed:this.state.isOverflowed});return Ae.createElement("div",{className:e,ref:this.onDescriptionRef},Ae.createElement("div",{className:"ecs-description-scroll-view",ref:this.onDescriptionScrollViewRef},Ae.createElement(AM,{className:"ecs-description-text selectable",emoji:this.props.emoji,repository:this.props.repository,text:this.state.body})))}onHighlightShasInDiff=()=>{this.props.onHighlightShas(this.props.shasInDiff)};onHighlightShasNotInDiff=()=>{const{onHighlightShas:e,selectedCommits:t,shasInDiff:n}=this.props;e(t.filter((e=>!n.includes(e.sha))).map((e=>e.sha)))};onRemoveHighlightOfShas=()=>{this.props.onHighlightShas([])};showUnreachableCommits=()=>{this.props.showUnreachableCommits(AO.Unreachable)};showReachableCommits=()=>{this.props.showUnreachableCommits(AO.Reachable)};renderCommitsNotReachable=()=>{const{selectedCommits:e,shasInDiff:t}=this.props;if(1===e.length)return;const n=this.getCountCommitsNotInDiff(e,t);if(0===n)return;const r=n>1?"commits":"commit";return Ae.createElement("div",{className:"commit-unreachable-info",onMouseOver:this.onHighlightShasNotInDiff,onMouseOut:this.onRemoveHighlightOfShas},Ae.createElement(yi,{symbol:Ca}),Ae.createElement(Hx,{onClick:this.showUnreachableCommits},n," unreachable ",r)," ","not included.")};renderExpandedAuthor(e){return e?e.name?Ae.createElement(Ae.Fragment,null,e.name," <",e.email,">"):e.email:"Unknown user"}renderAuthorList=()=>this.state.avatarUsers.map(((e,t)=>Ae.createElement("div",{className:"author selectable",key:t},Ae.createElement(tD,{accounts:this.props.accounts,user:e,title:null}),Ae.createElement("div",null,this.renderExpandedAuthor(e)))));renderAuthorStack=()=>{const{selectedCommits:e,repository:t,accounts:n}=this.props,{avatarUsers:r}=this.state;return Ae.createElement(Ae.Fragment,null,Ae.createElement(gO,{users:r,accounts:n}),Ae.createElement(yO,{gitHubRepository:t.gitHubRepository,commits:e}))};renderAuthors=()=>{const{selectedCommits:e,isExpanded:t}=this.props;if(!(e.length>1))return Ae.createElement("div",{className:"ecs-meta-item authors"},t?this.renderAuthorList():this.renderAuthorStack())};renderCommitRef=()=>{const{selectedCommits:e,isExpanded:t}=this.props;if(e.length>1)return;const{shortSha:n,sha:r}=e[0];return Ae.createElement("div",{className:"ecs-meta-item commit-ref"},Ae.createElement(yi,{symbol:Yo}),Ae.createElement("div",{className:"ref selectable"},t?r:n),Ae.createElement(cM,{ariaLabel:"Copy the full SHA",copyContent:r}))};renderSummaryText=()=>{const{selectedCommits:e,shasInDiff:t}=this.props,{summary:n}=this.state;if(1===e.length)return Ae.createElement(AM,{emoji:this.props.emoji,repository:this.props.repository,className:"selectable",text:n});const r=this.getCountCommitsNotInDiff(e,t),i=e.length-r,s=i>1?"commits":"commit";return Ae.createElement(Ae.Fragment,null,"Showing changes from"," ",r>0?Ae.createElement(Hx,{className:"commits-in-diff",onMouseOver:this.onHighlightShasInDiff,onMouseOut:this.onRemoveHighlightOfShas,onClick:this.showReachableCommits},i," ",s):Ae.createElement(Ae.Fragment,null," ",i," ",s))};renderSummary=()=>{const{hasEmptySummary:e}=this.state,t=ri()("ecs-title",{"empty-summary":e});return Ae.createElement("div",{className:t},this.renderSummaryText(),this.renderExpander())};renderMetaItems=()=>this.props.selectedCommits.length>1?null:Ae.createElement("div",{className:"ecs-meta"},this.renderAuthors(),this.renderCommitRef(),this.renderLinesChanged(),this.renderTags());render(){const e=ri()({expanded:this.props.isExpanded});return Ae.createElement("div",{id:"expandable-commit-summary",className:e},this.renderSummary(),Ae.createElement("div",{className:"beneath-summary"},this.renderDescription(),this.renderMetaItems()),this.renderCommitsNotReachable())}renderLinesChanged(){const{changesetData:e,selectedCommits:t,isExpanded:n}=this.props,{linesAdded:r,linesDeleted:i}=e;return 0===r&&0===i||t.length>1?null:Ae.createElement("div",{className:"ecs-meta-item lines-added-deleted"},n?Ae.createElement(yi,{symbol:$s}):null,Ae.createElement("div",{className:"lines-added"},n?Ae.createElement(Ae.Fragment,null,r," added lines"):Ae.createElement(Ae.Fragment,null,"+",r)),Ae.createElement("div",{className:"lines-deleted"},n?Ae.createElement(Ae.Fragment,null,i," removed lines"):Ae.createElement(Ae.Fragment,null,"-",i)))}renderTags(){const{selectedCommits:e}=this.props;if(e.length>1)return;const t=e[0].tags;return 0!==t.length?Ae.createElement("div",{className:"ecs-meta-item tags selectable"},Ae.createElement(yi,{symbol:Uc}),Ae.createElement("span",null,t.join(", "))):void 0}}class MO extends Ae.Component{loadChangedFilesScheduler=new Ex(200);historyRef=null;constructor(e){super(e),this.state={isExpanded:!1,hideDescriptionBorder:!1}}onFileSelected=e=>{this.props.dispatcher.changeFileSelection(this.props.repository,e)};onRowDoubleClick=e=>{const t=this.props.changesetData.files[e];this.props.onOpenInExternalEditor(t.path)};onHistoryRef=e=>{this.historyRef=e};componentWillUpdate(e){const t=this.props.selectedCommits.map((e=>e.sha)).join(""),n=e.selectedCommits.map((e=>e.sha)).join("");t!==n&&this.state.isExpanded&&this.setState({isExpanded:!1})}componentWillUnmount(){this.loadChangedFilesScheduler.clear()}renderDiff(){const e=this.props.selectedFile,t=this.props.currentDiff;if(null==e){const e=0===this.props.changesetData.files.length?"":"No file selected";return Ae.createElement("div",{className:"panel blankslate",id:"diff"},e)}return Ae.createElement("div",{className:"diff-container"},this.renderDiffHeader(),Ae.createElement(wM,{repository:this.props.repository,imageDiffType:this.props.selectedDiffType,file:e,diff:t,readOnly:!0,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showDiffCheckMarks:!1,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.props.onOpenBinaryFile,onChangeImageDiffType:this.props.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onOpenSubmodule:this.props.onOpenSubmodule}))}renderDiffHeader(){const{selectedFile:e}=this.props;if(null===e)return null;const{path:t,status:n}=e;return Ae.createElement(BM,{diff:this.props.currentDiff,path:t,status:n,showSideBySideDiff:this.props.showSideBySideDiff,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onDiffOptionsOpened:this.props.onDiffOptionsOpened})}renderCommitSummary(e){return Ae.createElement(_O,{selectedCommits:e,shasInDiff:this.props.shasInDiff,changesetData:this.props.changesetData,emoji:this.props.emoji,repository:this.props.repository,onExpandChanged:this.onExpandChanged,isExpanded:this.state.isExpanded,onDescriptionBottomChanged:this.onDescriptionBottomChanged,onHighlightShas:this.onHighlightShas,showUnreachableCommits:this.showUnreachableCommits,accounts:this.props.accounts})}showUnreachableCommits=e=>{this.props.dispatcher.showUnreachableCommits(e)};onHighlightShas=e=>{this.props.dispatcher.updateShasToHighlight(this.props.repository,e)};onExpandChanged=e=>{this.setState({isExpanded:e})};onDescriptionBottomChanged=e=>{if(this.historyRef){const t=this.historyRef.getBoundingClientRect().bottom;this.setState({hideDescriptionBorder:e>=t})}};onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInHistoryDiffChanged(e,this.props.repository,this.props.selectedFile);onShowSideBySideDiffChanged=e=>{this.props.dispatcher.onShowSideBySideDiffChanged(e)};onCommitSummaryReset=()=>{this.props.dispatcher.resetCommitSummaryWidth()};onCommitSummaryResize=e=>{this.props.dispatcher.setCommitSummaryWidth(e)};renderFileList(){const e=this.props.changesetData.files;if(0===e.length)return Ae.createElement("div",{className:"fill-window"},"No files in commit");const t=ry(this.props.commitSummaryWidth)-1;return Ae.createElement(Ae.Fragment,null,this.renderFileHeader(),Ae.createElement(i_,{files:e,onSelectedFileChanged:this.onFileSelected,selectedFile:this.props.selectedFile,availableWidth:t,onContextMenu:this.onContextMenu,onRowDoubleClick:this.onRowDoubleClick}))}renderFileHeader(){const e=this.props.changesetData.files.length,t=1===e?"文件":"文件";return Ae.createElement("div",{className:"file-list-header"},e," changed ",t)}onOpenItem=e=>{OM(t.join(this.props.repository.path,e),this.props.dispatcher)};render(){const{selectedCommits:e,isContiguous:t}=this.props;if(e.length>1&&!t)return this.renderMultipleCommitsBlankSlate();if(0===e.length)return Ae.createElement(PO,null);const n=this.state.isExpanded?"expanded":"collapsed",{commitSummaryWidth:r}=this.props;return Ae.createElement("div",{id:"history",ref:this.onHistoryRef,className:n},this.renderCommitSummary(e),Ae.createElement("div",{className:"commit-details"},Ae.createElement(nv,{width:r.value,minimumWidth:r.min,maximumWidth:r.max,onResize:this.onCommitSummaryResize,onReset:this.onCommitSummaryReset},this.renderFileList()),this.renderDiff()),this.renderDragOverlay())}renderDragOverlay(){return this.props.showDragOverlay?Ae.createElement("div",{id:"drag-overlay-background"}):null}renderMultipleCommitsBlankSlate(){const e=Pt(__dirname,"static/empty-no-commit.svg");return Ae.createElement("div",{id:"multiple-commits-selected",className:"blankslate"},Ae.createElement("div",{className:"panel blankslate"},Ae.createElement("img",{src:e,className:"blankslate-image",alt:""}),Ae.createElement("div",null,Ae.createElement("p",null,"无法显示差异,当选择多个 非连续性的 selected."),Ae.createElement("div",null,"你可以:"),Ae.createElement("ul",null,Ae.createElement("li",null,"选择单个提交 或连续的提交范围。 以查看差异。"),Ae.createElement("li",null,"将提交拖动到分支菜单中以挑选它们。"),Ae.createElement("li",null,"将提交拖动到一起以压缩它们或重新排序。"),Ae.createElement("li",null,"右键单击多个提交以查看选项。")))),this.renderDragOverlay())}onContextMenu=async(e,n)=>{n.preventDefault();const{selectedCommits:r,localCommitSHAs:i,repository:s,externalEditorLabel:o}=this.props,a=t.join(s.path,e.path),l=await R(a);if(!l)return void hh([{label:"文件不存在于磁盘上",enabled:!1}]);t.extname(e.path);const c=[{label:yh,action:()=>dt(s,e.path),enabled:l},{label:o?`打开于 ${o}`:gh,action:()=>this.props.onOpenInExternalEditor(e.path),enabled:l},{label:bh,action:()=>this.onOpenItem(e.path),enabled:l},{type:"separator"},{label:mh,action:()=>f.clipboard.writeText(a)},{label:fh,action:()=>f.clipboard.writeText(t.normalize(e.path))},{type:"separator"}];let u="在Github上查看";const h=s.gitHubRepository;h&&h.endpoint!==cr()&&(u="在Github上查看 Enterprise"),c.push({label:u,action:()=>this.onViewOnGitHub(r[0].sha,e),enabled:1===r.length&&!i.includes(r[0].sha)&&!!h&&this.props.selectedCommits.length>0}),hh(c)};onViewOnGitHub=(e,t)=>{this.props.onViewCommitOnGitHub(e,t.path)}}function PO(){const e=Pt(__dirname,"static/empty-no-commit.svg");return Ae.createElement("div",{className:"panel blankslate"},Ae.createElement("img",{src:e,className:"blankslate-image",alt:""}),"未选择提交")}var IO=n(3518);const OO="/usr/local/bin/github",NO=t.resolve(__dirname,"static","github.sh");async function LO(e){await function(e){return e?new Promise(((e,t)=>{IO.unlink(OO,(n=>{null===n?e():t(new Error(`Failed to remove file at ${OO}. Authorization of GitHub Desktop Helper is required.`))}))})):(0,b.unlink)(OO)}(e),await function(e){const n=t.dirname(OO);return e?new Promise(((e,t)=>{IO.makeTree(n,(n=>{null===n?e():t(new Error(`Failed to create intermediate directories to ${OO}`))}))})):(0,b.mkdir)(n,{recursive:!0})}(e),await function(e){return e?new Promise(((e,t)=>{IO.symlink(NO,OO,(n=>{null===n?e():t(new Error(`Failed to symlink ${NO} to ${OO}`))}))})):(0,b.symlink)(NO,OO)}(e)}function BO(e){return e instanceof gt?e:null}function FO(e){return e instanceof Dd?e:null}async function HO(e,t){const n=BO(e)||e;return await t.presentError(n),null}const UO=/^ ! \[remote rejected\] .*? -> .*? \(refusing to allow an OAuth App to create or update workflow `(.*?)` without `workflow` scope\)/m,ZO=/`([^']+)' organization has enabled or enforced SAML SSO.*?you must re-authorize/s;class $O extends Ae.Component{static getDerivedStateFromProps(e,t){const{repository:n,aheadBehindStore:r}=e,i=e.currentBranch?.tip.sha,s=e.branch.tip.sha;return i===t.comparisonFrom&&s===t.comparisonTo?null:void 0===i||void 0===s?{aheadBehind:void 0,comparisonFrom:i,comparisonTo:s}:{aheadBehind:r.tryGetAheadBehind(n,i,s),comparisonFrom:i,comparisonTo:s}}aheadBehindSubscription=null;constructor(e){super(e),this.state={}}componentDidMount(){void 0===this.state.aheadBehind&&this.subscribeToAheadBehindStore()}componentDidUpdate(e,t){const{comparisonFrom:n,comparisonTo:r}=this.state;t.comparisonFrom===n&&t.comparisonTo===r||this.subscribeToAheadBehindStore()}componentWillUnmount(){this.unsubscribeFromAheadBehindStore()}subscribeToAheadBehindStore(){const{aheadBehindStore:e,repository:t}=this.props,{comparisonFrom:n,comparisonTo:r,aheadBehind:i}=this.state;this.unsubscribeFromAheadBehindStore(),void 0!==n&&void 0!==r&&void 0===i&&(this.aheadBehindSubscription=e.getAheadBehind(t,n,r,(e=>this.setState({aheadBehind:e}))))}unsubscribeFromAheadBehindStore(){null!==this.aheadBehindSubscription&&this.aheadBehindSubscription.dispose()}render(){const{currentBranch:e,branch:t}=this.props,{aheadBehind:n}=this.state,r=t.name===e?.name?Xi:Ko,i=n?Ae.createElement("div",{className:"branch-commit-counter"},Ae.createElement("span",{className:"branch-commit-counter-item"},n.behind,Ae.createElement(yi,{className:"icon",symbol:Ri})),Ae.createElement("span",{className:"branch-commit-counter-item"},n.ahead,Ae.createElement(yi,{className:"icon",symbol:Mi}))):null;return Ae.createElement("div",{className:"branches-list-item"},Ae.createElement(yi,{className:"icon",symbol:r}),Ae.createElement(eh,{className:"name",tooltip:t.name,onlyWhenOverflowed:!0,tagName:"div"},Ae.createElement(Ju,{text:t.name,highlight:this.props.matches.title})),i)}}class WO extends Ae.Component{constructor(e){super(e),this.state={isFocused:!1}}render(){const e=ri()("fancy-text-box-component",this.props.className,{disabled:this.props.disabled},{focused:this.state.isFocused}),t=ri()("fancy-octicon");return Ae.createElement("div",{className:e},Ae.createElement(yi,{className:t,symbol:this.props.symbol}),Ae.createElement(VT,{ariaLabel:this.props.ariaLabel,value:this.props.value,onFocus:this.onFocus,onBlur:this.onBlur,autoFocus:this.props.autoFocus,disabled:this.props.disabled,type:this.props.type,placeholder:this.props.placeholder,displayClearButton:this.props.displayClearButton,onKeyDown:this.props.onKeyDown,onValueChanged:this.props.onValueChanged,onSearchCleared:this.props.onSearchCleared,tabIndex:this.props.tabIndex,ref:this.props.onRef}))}onFocus=()=>{void 0!==this.props.onFocus&&this.props.onFocus(),this.setState({isFocused:!0})};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(e),this.setState({isFocused:!1})}}class qO extends Ae.Component{render(){const{status:e,classNamePrefix:t}=this.props;if(null===e)return null;const{kind:n}=e,r=`${t}-icon-container`;return Ae.createElement("div",{className:r},Ae.createElement(yi,{className:ri()(t,`${t}-${n}`,this.props.className),symbol:VO(n)}))}}function VO(e){switch(e){case Gw.Loading:return Qs;case Gw.Conflicts:return vi;case Gw.Invalid:return yu;case Gw.Clean:return Xi;default:return ct(0,`Unknown state: ${JSON.stringify(e)}`)}}async function GO(e,t,n,r){const i=e.name;r({kind:Gw.Loading});const s=await cw((()=>$g(n,e.tip.sha,t.tip.sha)),500);i===e.name?r(null!==s?{kind:Gw.Clean,commits:s}:{kind:Gw.Invalid}):r(null)}class zO extends Ae.Component{get computedAction(){return"Rebase"===this.state.selectedOperation?null!==this.state.rebasePreview?this.state.rebasePreview.kind:null:null!==this.props.mergeStatus?this.props.mergeStatus.kind:null}get commitCount(){const{selectedOperation:e,rebasePreview:t}=this.state;return"Rebase"===e?null!==t&&t.kind===Gw.Clean?t.commits.length:0:this.props.commitsBehind}constructor(e){super(e),this.state={selectedOperation:"Merge",rebasePreview:null}}isUpdateBranchDisabled(){if(this.commitCount<=0)return!0;const{selectedOperation:e,rebasePreview:t}=this.state;return"Rebase"===e?null===t||t.kind!==Gw.Clean:null!=this.props.mergeStatus&&this.props.mergeStatus.kind===Gw.Invalid}updateRebasePreview=async e=>{const{currentBranch:t,repository:n}=this.props;GO(e,t,n,(e=>{this.setState({rebasePreview:e})}))};onOperationChange=e=>{vb(e.id)&&(this.setState({selectedOperation:e.id}),"Rebase"===e.id&&this.updateRebasePreview(this.props.comparisonBranch))};onOperationInvoked=async(e,t)=>{if(!vb(t.id))return;e.preventDefault();const{dispatcher:n,repository:r}=this.props;await this.dispatchOperation(t.id),n.executeCompare(r,{kind:rt.History}),n.updateCompareForm(r,{showBranchList:!1,filterText:""})};async dispatchOperation(e){const{dispatcher:t,currentBranch:n,comparisonBranch:r,repository:i,mergeStatus:s}=this.props;if("Rebase"===e){const e=null!==this.state.rebasePreview&&this.state.rebasePreview.kind===Gw.Clean?this.state.rebasePreview.commits:[];return t.startRebase(i,r,n,e)}const o="Squash"===e;return t.initializeMultiCommitOperation(i,{kind:"Merge",isSquash:o,sourceBranch:r},n,[],n.tip.sha),t.incrementMetric("mergesInitiatedFromComparison"),t.mergeBranch(i,r,s,o)}render(){const e=this.isUpdateBranchDisabled(),t=this.commitCount>0?this.renderMergeStatus():null;return Ae.createElement("div",{className:"merge-cta"},t,Ae.createElement(oO,{checkedOption:this.state.selectedOperation,options:[{label:"创建合并提交",description:"来自所选分支的提交将通过合并提交添加到当前分支.",id:"Merge"},{label:"压缩合并",description:"选定分支中的提交将合并为当前分支中的一个提交.",id:"Squash"},{label:"变基",description:"来自所选分支的提交将重新设置基础并添加到当前分支.",id:"Rebase"}],dropdownAriaLabel:"Merge options",disabled:e,onCheckedOptionChange:this.onOperationChange,onSubmit:this.onOperationInvoked}))}renderMergeStatus(){return null===this.computedAction?null:Ae.createElement("div",{className:"merge-status-component"},Ae.createElement(qO,{status:{kind:this.computedAction},classNamePrefix:"merge-status"}),this.renderStatusDetails())}renderStatusDetails(){const{currentBranch:e,comparisonBranch:t,mergeStatus:n}=this.props,{selectedOperation:r}=this.state;if(null===this.computedAction)return null;switch(this.computedAction){case Gw.Loading:return this.renderLoadingMessage();case Gw.Clean:return this.renderCleanMessage(e,t);case Gw.Invalid:return this.renderInvalidMessage()}return"Rebase"!==r&&null!==n&&n.kind===Gw.Conflicts?this.renderConflictedMergeMessage(e,t,n.conflictedFiles):null}renderLoadingMessage(){return Ae.createElement("div",{className:"merge-message merge-message-loading"},"Checking for ability to ",this.state.selectedOperation.toLowerCase()," ","automatically…")}renderCleanMessage(e,t){if(this.commitCount<=0)return null;const n=1===this.commitCount?"commit":"commits";return"Rebase"===this.state.selectedOperation?Ae.createElement("div",{className:"merge-message"},"This will update ",Ae.createElement("strong",null,e.name)," by applying its ",Ae.createElement("strong",null,`${this.commitCount} ${n}`)," on top of ",Ae.createElement("strong",null,t.name)):Ae.createElement("div",{className:"merge-message"},"这将合并",Ae.createElement("strong",null,` ${this.commitCount} ${n}`)," 自 ",Ae.createElement("strong",null,t.name)," 到 ",Ae.createElement("strong",null,e.name))}renderInvalidMessage(){return"Rebase"===this.state.selectedOperation?Ae.createElement("div",{className:"merge-message"},"Unable to start rebase. Check you have chosen a valid branch."):Ae.createElement("div",{className:"merge-message"},"无法在此仓库中合并不相关的历史记录")}renderConflictedMergeMessage(e,t,n){const r=1===n?"文件":"文件";return Ae.createElement("div",{className:"merge-message"},"这将会",Ae.createElement("strong",null,` ${n} 与 ${r} 冲突`)," 当合并时 ",Ae.createElement("strong",null,t.name)," 到 ",Ae.createElement("strong",null,e.name))}}class jO extends Ae.Component{textbox=null;loadChangedFilesScheduler=new Ex(200);branchList=null;commitListRef=Ae.createRef();loadingMoreCommitsPromise=null;resultCount=0;constructor(e){super(e),this.state={focusedBranch:null}}componentWillReceiveProps(e){const t=e.compareState.formState,n=this.props.compareState.formState;if(t.kind===n.kind||t.kind!==rt.History){if(t.kind!==rt.History&&n.kind!==rt.History){const e=n.comparisonBranch,r=t.comparisonBranch;e.name!==r.name&&this.setState({focusedBranch:r})}}else this.setState({focusedBranch:null})}componentDidUpdate(e){const{showBranchList:t}=this.props.compareState;t!==e.compareState.showBranchList&&null!==this.textbox&&(t?this.textbox.focus():t||this.textbox.blur())}focusHistory(){this.commitListRef.current?.focus()}componentWillMount(){this.props.dispatcher.initializeCompare(this.props.repository)}componentWillUnmount(){this.textbox=null,this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})}render(){const{branches:e,filterText:t,showBranchList:n}=this.props.compareState,r=function(e){const{branches:t,formState:n}=e;return t.some((e=>!e.isDesktopForkRemoteBranch))?n.kind===rt.History?"Select branch to compare…":void 0:"没有分支"}(this.props.compareState);return Ae.createElement("div",{id:"compare-view",role:"tabpanel","aria-labelledby":"history-tab"},Ae.createElement("div",{className:"compare-form"},Ae.createElement(WO,{ariaLabel:"Branch filter",symbol:Ko,displayClearButton:!0,placeholder:r,onFocus:this.onTextBoxFocused,value:t,disabled:!e.some((e=>!e.isDesktopForkRemoteBranch)),onRef:this.onTextBoxRef,onValueChanged:this.onBranchFilterTextChanged,onKeyDown:this.onBranchFilterKeyDown,onSearchCleared:this.handleEscape})),n?this.renderFilterList():this.renderCommits())}onBranchesListRef=e=>{this.branchList=e};renderCommits(){const e=this.props.compareState.formState;return Ae.createElement("div",{className:"compare-commit-list"},e.kind===rt.History?this.renderCommitList():this.renderTabBar(e))}filterListResultsChanged=e=>{this.resultCount=e};viewHistoryForBranch=()=>{this.props.dispatcher.executeCompare(this.props.repository,{kind:rt.History}),this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};renderCommitList(){const{formState:e,commitSHAs:t}=this.props.compareState;let n;if(e.kind===rt.History)n="无记录";else{const t=e.comparisonBranch.name;n=e.comparisonMode===it.Ahead?Ae.createElement("p",null,"比较的分支 (",Ae.createElement(CD,null,t),") 是您分支的最新信息"):Ae.createElement("p",null,"您的分支与比较的分支是最新的 (",Ae.createElement(CD,null,t),")")}return Ae.createElement(kO,{ref:this.commitListRef,gitHubRepository:this.props.repository.gitHubRepository,isLocalRepository:this.props.isLocalRepository,commitLookup:this.props.commitLookup,commitSHAs:t,selectedSHAs:this.props.selectedCommitShas,shasToHighlight:this.props.shasToHighlight,localCommitSHAs:this.props.localCommitSHAs,canResetToCommits:e.kind===rt.History,canUndoCommits:e.kind===rt.History,canAmendCommits:e.kind===rt.History,emoji:this.props.emoji,reorderingEnabled:e.kind===rt.History,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,onUndoCommit:this.onUndoCommit,onResetToCommit:this.onResetToCommit,onRevertCommit:KO(this.props.compareState.formState)?this.props.onRevertCommit:void 0,onAmendCommit:this.props.onAmendCommit,onCommitsSelected:this.onCommitsSelected,onScroll:this.onScroll,onCreateBranch:this.onCreateBranch,onCheckoutCommit:this.onCheckoutCommit,onCreateTag:this.onCreateTag,onDeleteTag:this.onDeleteTag,onCherryPick:this.onCherryPick,onDropCommitInsertion:this.onDropCommitInsertion,onKeyboardReorder:this.onKeyboardReorder,onCancelKeyboardReorder:this.onCancelKeyboardReorder,onSquash:this.onSquash,emptyListMessage:n,onCompareListScrolled:this.props.onCompareListScrolled,compareListScrollTop:this.props.compareListScrollTop,tagsToPush:this.props.tagsToPush??[],onRenderCommitDragElement:this.onRenderCommitDragElement,onRemoveCommitDragElement:this.onRemoveCommitDragElement,disableReordering:e.kind===rt.Compare,disableSquashing:e.kind===rt.Compare,isMultiCommitOperationInProgress:this.props.isMultiCommitOperationInProgress,keyboardReorderData:this.state.keyboardReorderData,accounts:this.props.accounts})}onCancelKeyboardReorder=()=>{this.setState({keyboardReorderData:void 0})};onDropCommitInsertion=async(e,t,n)=>{if(this.setState({keyboardReorderData:void 0}),!await gf(this.props.repository,n))return this.props.dispatcher.reorderCommits(this.props.repository,t,e,n);HO(new Error("Unable to reorder. Reordering replays all commits up to the last one required for the reorder. A merge commit cannot exist among those commits."),this.props.dispatcher)};onRenderCommitDragElement=(e,t)=>{this.props.dispatcher.setDragElement({type:vp.Commit,commit:e,selectedCommits:t,gitHubRepository:this.props.repository.gitHubRepository})};onRemoveCommitDragElement=()=>{this.props.dispatcher.clearDragElement()};renderActiveTab(e){return Ae.createElement("div",{className:"compare-commit-list"},this.renderCommitList(),e.comparisonMode===it.Behind?this.renderMergeCallToAction(e):null)}renderFilterList(){const{defaultBranch:e,branches:t,recentBranches:n,filterText:r}=this.props.compareState;return Ae.createElement(hP,{ref:this.onBranchesListRef,defaultBranch:e,currentBranch:this.props.currentBranch,allBranches:t,recentBranches:n,filterText:r,textbox:this.textbox,selectedBranch:this.state.focusedBranch,canCreateNewBranch:!1,onSelectionChanged:this.onSelectionChanged,onItemClick:this.onBranchItemClicked,onFilterTextChanged:this.onBranchFilterTextChanged,renderBranch:this.renderCompareBranchListItem,getBranchAriaLabel:this.getBranchAriaLabel,onFilterListResultsChanged:this.filterListResultsChanged})}renderMergeCallToAction(e){return null==this.props.currentBranch?null:Ae.createElement(zO,{repository:this.props.repository,dispatcher:this.props.dispatcher,mergeStatus:this.props.compareState.mergeStatus,currentBranch:this.props.currentBranch,comparisonBranch:e.comparisonBranch,commitsBehind:e.aheadBehind.behind})}onTabClicked=e=>{const t=this.props.compareState.formState;if(t.kind===rt.History)return;const n=0===e?it.Behind:it.Ahead,r=t.comparisonBranch;this.props.dispatcher.executeCompare(this.props.repository,{kind:rt.Compare,branch:r,comparisonMode:n})};renderTabBar(e){const t=e.comparisonMode===it.Behind?0:1;return Ae.createElement("div",{className:"compare-content"},Ae.createElement(wD,{selectedIndex:t,onTabClicked:this.onTabClicked},Ae.createElement("span",null,`Behind (${e.aheadBehind.behind})`),Ae.createElement("span",null,`Ahead (${e.aheadBehind.ahead})`)),this.renderActiveTab(e))}renderCompareBranchListItem=(e,t)=>Ae.createElement($O,{branch:e.branch,currentBranch:this.props.currentBranch,matches:t,repository:this.props.repository,aheadBehindStore:this.props.aheadBehindStore});getBranchAriaLabel=e=>e.branch.name;onBranchFilterKeyDown=e=>{const t=e.key;if("Enter"===t){if(0===this.resultCount)return void e.preventDefault();const t=this.state.focusedBranch;null===t?this.viewHistoryForBranch():(this.props.dispatcher.executeCompare(this.props.repository,{kind:rt.Compare,comparisonMode:it.Behind,branch:t}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:t.name})),this.textbox&&this.textbox.blur()}else"Escape"===t?this.handleEscape():"ArrowDown"===t?null!==this.branchList&&this.branchList.selectNextItem(!0,"down"):"ArrowUp"===t&&null!==this.branchList&&this.branchList.selectNextItem(!0,"up")};handleEscape=()=>{this.clearFilterState(),this.textbox&&this.textbox.blur()};onCommitsSelected=(e,t)=>{this.props.dispatcher.changeCommitSelection(this.props.repository,e.map((e=>e.sha)),t),this.loadChangedFilesScheduler.queue((()=>{this.props.dispatcher.loadChangedFilesForCurrentSelection(this.props.repository)}))};onScroll=(e,t)=>{const n=this.props.compareState;if(n.formState.kind!==rt.Compare&&n.commitSHAs.length-t<=10){if(null!=this.loadingMoreCommitsPromise)return;this.loadingMoreCommitsPromise=this.props.dispatcher.loadNextCommitBatch(this.props.repository).then((()=>{window.setTimeout((()=>{this.loadingMoreCommitsPromise=null}),500)}))}};onBranchFilterTextChanged=e=>{0===e.length&&this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:e})};clearFilterState=()=>{this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:""}),this.viewHistoryForBranch()};onBranchItemClicked=e=>{this.props.dispatcher.executeCompare(this.props.repository,{kind:rt.Compare,comparisonMode:it.Behind,branch:e}),this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:e.name,showBranchList:!1})};onSelectionChanged=(e,t)=>{this.setState({focusedBranch:e})};onTextBoxFocused=()=>{this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!0})};onTextBoxRef=e=>{this.textbox=e};onCreateTag=e=>{this.props.dispatcher.showCreateTagDialog(this.props.repository,e,this.props.localTags)};onUndoCommit=e=>{this.props.dispatcher.undoCommit(this.props.repository,e)};onResetToCommit=e=>{this.props.dispatcher.resetToCommit(this.props.repository,e)};onCreateBranch=e=>{const{repository:t,dispatcher:n}=this.props;n.showPopup({type:dh.CreateBranch,repository:t,targetCommit:e})};onCheckoutCommit=e=>{const{repository:t,dispatcher:n,askForConfirmationOnCheckoutCommit:r}=this.props;r?n.showPopup({type:dh.ConfirmCheckoutCommit,commit:e,repository:t}):n.checkoutCommit(t,e)};onDeleteTag=e=>{this.props.dispatcher.showDeleteTagDialog(this.props.repository,e)};onCherryPick=e=>{this.props.onCherryPick(this.props.repository,e)};onKeyboardReorder=e=>{const{commitSHAs:t}=this.props.compareState;this.setState({keyboardReorderData:{type:vp.Commit,commits:e,itemIndices:e.map((e=>t.indexOf(e.sha)))}})};onSquash=async(e,t,n,r)=>{const i=e.filter((e=>e.sha!==t.sha)),s=[...i,t],o=function(e){const t=e.flatMap((e=>e.coAuthors)),n=bO()(t,((e,t)=>e.email===t.email&&e.name===t.name));return n.map((e=>({kind:"known",name:e.name,email:e.email,username:null})))}(s),a=function(e,t){const n=e.map((e=>`${e.summary.trim()}\n\n${e.bodyNoCoAuthors.trim()}`)),r=[t.bodyNoCoAuthors.trim(),...n].filter((e=>""!==e.trim()));return r.join("\n\n")}(i,t);await gf(this.props.repository,n)?HO(new Error("Unable to squash. Squashing replays all commits up to the last one required for the squash. A merge commit cannot exist among those commits."),this.props.dispatcher):(this.props.dispatcher.recordSquashInvoked(r),this.props.dispatcher.showPopup({type:dh.CommitMessage,repository:this.props.repository,coAuthors:o,showCoAuthoredBy:o.length>0,commitMessage:{summary:t.summary,description:a},dialogTitle:`Squash ${s.length} Commits`,dialogButtonText:`Squash ${s.length} Commits`,prepopulateCommitSummary:!0,onSubmitCommitMessage:async e=>(this.props.dispatcher.closePopup(dh.CommitMessage),this.props.dispatcher.squash(this.props.repository,i,t,n,e),!0)}))}}function KO(e){return e.kind===rt.History||e.comparisonMode===it.Ahead}class YO extends Ae.Component{render(){return Ae.createElement("li",{key:this.props.sectionId,onClick:this.onSummaryClick},Ae.createElement("details",{open:this.props.sectionId===this.props.currentlyOpenSectionId,onClick:this.onSummaryClick},this.renderSummary(),Ae.createElement("div",{className:"contents"},this.props.children)))}renderSummary=()=>{const e=void 0!==this.props.skipLinkButton&&this.props.currentlyOpenSectionId===this.props.sectionId&&this.props.isNextStepTodo(this.props.sectionId);return Ae.createElement("summary",null,this.renderTutorialStepIcon(),Ae.createElement("span",{className:"summary-text"},this.props.summaryText),Ae.createElement("span",{className:"hang-right"},e?this.props.skipLinkButton:Ae.createElement(yi,{symbol:ns})))};renderTutorialStepIcon(){if(this.props.isComplete(this.props.sectionId))return Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{symbol:Xi}));const e=Qw.indexOf(this.props.sectionId)+1;return this.props.isNextStepTodo(this.props.sectionId)?Ae.createElement("div",{className:"blue-circle"},e):Ae.createElement("div",{className:"empty-circle"},e)}onSummaryClick=e=>{e.preventDefault(),this.props.onSummaryClick(this.props.sectionId)}}const XO=Pt(__dirname,"static/required-status-check.svg");class QO extends Ae.Component{constructor(e){super(e),this.state={currentlyOpenSectionId:this.props.currentTutorialStep}}openTutorialFileInEditor=()=>{this.props.dispatcher.openInExternalEditor((0,t.join)(this.props.repository.path,"README.md"))};openPullRequest=()=>{this.props.dispatcher.markPullRequestTutorialStepAsComplete(this.props.repository),setTimeout((()=>{this.props.dispatcher.createPullRequest(this.props.repository)}),500)};skipEditorInstall=()=>{this.props.dispatcher.skipPickEditorTutorialStep(this.props.repository)};skipCreatePR=()=>{this.props.dispatcher.markPullRequestTutorialStepAsComplete(this.props.repository)};isStepComplete=e=>Qw.indexOf(e)<Qw.indexOf(this.props.currentTutorialStep);isStepNextTodo=e=>e===this.props.currentTutorialStep;componentWillReceiveProps(e){this.props.currentTutorialStep!==e.currentTutorialStep&&this.setState({currentlyOpenSectionId:e.currentTutorialStep})}render(){return Ae.createElement("div",{className:"tutorial-panel-component panel"},Ae.createElement("div",{className:"titleArea"},Ae.createElement("h3",null,"Get started"),Ae.createElement("img",{src:XO,alt:"Partially checked check list"})),Ae.createElement("ol",null,Ae.createElement(YO,{summaryText:"Install a text editor",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.PickEditor,currentlyOpenSectionId:this.state.currentlyOpenSectionId,skipLinkButton:Ae.createElement(JO,{onClick:this.skipEditorInstall}),onSummaryClick:this.onStepSummaryClick},this.isStepComplete(Yw.PickEditor)?Ae.createElement("p",{className:"description"},"Your default editor is"," ",Ae.createElement("strong",null,this.props.resolvedExternalEditor),". You can change your preferred editor in"," ",Ae.createElement(Hx,{onClick:this.onPreferencesClick},"options")):Ae.createElement(Ae.Fragment,null,Ae.createElement("p",{className:"description"},"It doesnt look like you have a text editor installed. We can recommend"," ",Ae.createElement(Hx,{uri:cm,title:"打开 Visual Studio Code 网站"},lm)," or ",Ae.createElement(Hx,{uri:"https://atom.io",title:"打开 Atom 网站"},"Atom"),", but feel free to use any."),Ae.createElement("div",{className:"action"},Ae.createElement(Hx,{onClick:this.skipEditorInstall},"I have an editor")))),Ae.createElement(YO,{summaryText:"新建分支",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.CreateBranch,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},Ae.createElement("p",{className:"description"},'A branch allows you to work on different versions of a repository at one time. Create a\n branch by going into the branch menu in the top bar and\n clicking "New branch".'),Ae.createElement("div",{className:"action"},Ae.createElement(Ru,{darwinKeys:["⌘","⇧","N"],keys:["Ctrl","Shift","N"]}))),Ae.createElement(YO,{summaryText:"Edit a file",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.EditFile,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},Ae.createElement("p",{className:"description"},"Open this repository in your preferred text editor. Edit the"," ",Ae.createElement(CD,null,"README.md")," ","file, save it, and come back."),this.props.resolvedExternalEditor&&Ae.createElement("div",{className:"action"},Ae.createElement(mi,{onClick:this.openTutorialFileInEditor},"Open editor"),Ae.createElement(Ru,{darwinKeys:["⌘","⇧","A"],keys:["Ctrl","Shift","A"]}))),Ae.createElement(YO,{summaryText:"Make a commit",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.MakeCommit,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},Ae.createElement("p",{className:"description"},"A commit allows you to save sets of changes. In the “summary“ field in the bottom left, write a short message that describes the changes you made. When youre done, click the blue Commit button to finish.")),Ae.createElement(YO,{summaryText:"Publish to GitHub",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.PushBranch,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},Ae.createElement("p",{className:"description"},"Publishing will “push”, or upload, your commits to this branch of your repository on GitHub. Publish using the third button in the top bar."),Ae.createElement("div",{className:"action"},Ae.createElement(Ru,{darwinKeys:["⌘","P"],keys:["Ctrl","P"]}))),Ae.createElement(YO,{summaryText:"Open a pull request",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Yw.OpenPullRequest,currentlyOpenSectionId:this.state.currentlyOpenSectionId,skipLinkButton:Ae.createElement(JO,{onClick:this.skipCreatePR}),onSummaryClick:this.onStepSummaryClick},Ae.createElement("p",{className:"description"},"A pull request allows you to propose changes to the code. By opening one, youre requesting that someone review and merge them. Since this is a demo repository, this pull request will be private."),Ae.createElement("div",{className:"action"},Ae.createElement(mi,{onClick:this.openPullRequest,role:"link"},"Open pull request",Ae.createElement(yi,{symbol:La})),Ae.createElement(Ru,{darwinKeys:["⌘","R"],keys:["Ctrl","R"]})))),Ae.createElement("div",{className:"footer"},Ae.createElement(mi,{onClick:this.props.onExitTutorial},"Exit tutorial")))}onStepSummaryClick=e=>{this.setState({currentlyOpenSectionId:e})};onPreferencesClick=()=>{this.props.dispatcher.showPopup({type:dh.Preferences,initialSelectedTab:Fr.Integrations})}}const JO=e=>Ae.createElement(Hx,{onClick:e.onClick},"Skip"),eN=Pt(__dirname,"static/code.svg"),tN=Pt(__dirname,"static/github-for-teams.svg"),nN=Pt(__dirname,"static/github-for-business.svg");class rN extends Ae.Component{render(){return Ae.createElement("div",{id:"tutorial-welcome"},Ae.createElement("div",{className:"header"},Ae.createElement("h1",null,"Welcome to GitHub Desktop"),Ae.createElement("p",null,"Use this tutorial to get comfortable with Git, GitHub, and GitHub Desktop.")),Ae.createElement("ul",{className:"definitions"},Ae.createElement("li",null,Ae.createElement("img",{src:eN,alt:"Html syntax icon"}),Ae.createElement("p",null,Ae.createElement("strong",null,"Git")," is the version control system.")),Ae.createElement("li",null,Ae.createElement("img",{src:tN,alt:"People with discussion bubbles overhead"}),Ae.createElement("p",null,Ae.createElement("strong",null,"GitHub")," is where you store your code and collaborate with others.")),Ae.createElement("li",null,Ae.createElement("img",{src:nN,alt:"Server stack with cloud"}),Ae.createElement("p",null,Ae.createElement("strong",null,"GitHub Desktop")," helps you work with GitHub locally."))))}}const iN=Pt(__dirname,"static/admin-mentoring.svg"),sN=Ae.createElement(yi,{symbol:$c}),oN=Ae.createElement(yi,{symbol:_l}),aN=Ae.createElement(yi,{symbol:_o});class lN extends Ae.Component{header=Ae.createRef();componentDidMount(){this.header.current&&!this.props.tutorialCompletionAnnounced&&(this.header.current.tabIndex=0,this.header.current?.focus(),this.props.onTutorialCompletionAnnounced(),this.header.current.tabIndex=-1)}render(){return Ae.createElement("div",{id:"tutorial-done"},Ae.createElement("div",{className:"content"},Ae.createElement("div",{className:"header"},Ae.createElement("div",{className:"text"},Ae.createElement("h1",{ref:this.header},"You're done!"),Ae.createElement("p",null,"Youve learned the basics on how to use GitHub Desktop. Here are some suggestions for what to do next.")),Ae.createElement("img",{src:iN,className:"image",alt:"Hands clapping"})),Ae.createElement(lM,null,Ae.createElement(iM,{title:"在 GitHub 上浏览项目",description:"为你感兴趣的项目做出贡献",buttonText:"打开于 browser",onClick:this.openDotcomExplore,type:"normal",image:sN}),Ae.createElement(iM,{title:"新建存储库",description:"开始一个全新的项目",buttonText:"创建存储库",onClick:this.onCreateNewRepository,type:"normal",image:oN}),Ae.createElement(iM,{title:"添加本地存储库",description:"在 GitHub Desktop 的一个项目上工作",buttonText:"添加存储库",onClick:this.onAddExistingRepository,type:"normal",image:aN}))))}openDotcomExplore=()=>{this.props.dispatcher.showGitHubExplore(this.props.repository)};onCreateNewRepository=()=>{this.props.dispatcher.showPopup({type:dh.CreateRepository})};onAddExistingRepository=()=>{this.props.dispatcher.showPopup({type:dh.AddRepository})}}class cN extends Ae.Component{render(){return Ae.createElement(aD,{title:"退出教程",onDismissed:this.props.onDismissed,onSubmit:this.onContinue,type:"normal"},Ae.createElement(nD,null,Ae.createElement("p",null,"Are you sure you want to leave the tutorial? This will bring you back to the home screen.")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "退出教程"})))}onContinue=()=>{this.props.onContinue()&&this.props.onDismissed()}}class uN extends Ae.Component{previousSection=this.props.state.selectedSection;forceCompareListScrollTop=!1;changesSidebarRef=Ae.createRef();compareSidebarRef=Ae.createRef();focusHistoryNeeded=!1;focusChangesNeeded=!1;constructor(e){super(e),this.state={changesListScrollTop:0,compareListScrollTop:0}}setFocusHistoryNeeded(){this.focusHistoryNeeded=!0}setFocusChangesNeeded(){this.focusChangesNeeded=!0}scrollCompareListToTop(){this.forceCompareListScrollTop=!0,this.setState({compareListScrollTop:0})}onChangesListScrolled=e=>{this.setState({changesListScrollTop:e})};onCompareListScrolled=e=>{this.setState({compareListScrollTop:e})};renderChangesBadge(){const e=this.props.state.changesState.workingDirectory.files.length;return e<=0?null:Ae.createElement(fO,{filesChangedCount:e})}renderTabs(){const e=this.props.state.selectedSection===tt.Changes?0:1;return Ae.createElement(wD,{selectedIndex:e,onTabClicked:this.onTabClicked},Ae.createElement("span",{className:"with-indicator",id:"changes-tab"},Ae.createElement("span",null,"更改"),this.renderChangesBadge()),Ae.createElement("div",{className:"with-indicator",id:"history-tab"},Ae.createElement("span",null,"历史")))}renderChangesSidebar(){const e=this.props.state.branchesState.tip;let t=null;e.kind===Hr.Valid?t=e.branch.name:e.kind===Hr.Unborn&&(t=e.ref);const n=this.props.state.localCommitSHAs,r=n.length>0?n[0]:null,i=(r?this.props.state.commitLookup.get(r):null)||null,s=ry(this.props.sidebarWidth)-1,o=this.previousSection===tt.History?this.state.changesListScrollTop:void 0;return this.previousSection=tt.Changes,Ae.createElement(NM,{ref:this.changesSidebarRef,repository:this.props.repository,dispatcher:this.props.dispatcher,changes:this.props.state.changesState,aheadBehind:this.props.state.aheadBehind,branch:t,commitAuthor:this.props.state.commitAuthor,emoji:this.props.emoji,mostRecentLocalCommit:i,issuesStore:this.props.issuesStore,availableWidth:s,gitHubUserStore:this.props.gitHubUserStore,isCommitting:this.props.state.isCommitting,commitToAmend:this.props.state.commitToAmend,isPushPullFetchInProgress:this.props.state.isPushPullFetchInProgress,focusCommitMessage:this.props.focusCommitMessage,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,accounts:this.props.accounts,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,externalEditorLabel:this.props.externalEditorLabel,onOpenInExternalEditor:this.props.onOpenInExternalEditor,onChangesListScrolled:this.onChangesListScrolled,changesListScrollTop:o,shouldNudgeToCommit:this.props.currentTutorialStep===Yw.MakeCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning})}renderCompareSidebar(){const{repository:e,dispatcher:t,state:n,aheadBehindStore:r,emoji:i}=this.props,{remote:s,compareState:o,branchesState:a,commitSelection:{shas:l},commitLookup:c,localCommitSHAs:u,localTags:h,tagsToPush:p,multiCommitOperationState:d}=n,{tip:m}=a,f=m.kind===Hr.Valid?m.branch:null,g=this.forceCompareListScrollTop||this.previousSection===tt.Changes?this.state.compareListScrollTop:void 0;return this.previousSection=tt.History,this.forceCompareListScrollTop=!1,Ae.createElement(jO,{ref:this.compareSidebarRef,repository:e,isLocalRepository:null===s,compareState:o,selectedCommitShas:l,shasToHighlight:o.shasToHighlight,currentBranch:f,emoji:i,commitLookup:c,localCommitSHAs:u,localTags:h,dispatcher:t,onRevertCommit:this.onRevertCommit,onAmendCommit:this.onAmendCommit,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,onCompareListScrolled:this.onCompareListScrolled,onCherryPick:this.props.onCherryPick,compareListScrollTop:g,tagsToPush:p,aheadBehindStore:r,isMultiCommitOperationInProgress:null!==d,askForConfirmationOnCheckoutCommit:this.props.askForConfirmationOnCheckoutCommit,accounts:this.props.accounts})}renderSidebarContents(){const e=this.props.state.selectedSection;return e===tt.Changes?this.renderChangesSidebar():e===tt.History?this.renderCompareSidebar():ct(0,"Unknown repository section")}handleSidebarWidthReset=()=>{this.props.dispatcher.resetSidebarWidth()};handleSidebarResize=e=>{this.props.dispatcher.setSidebarWidth(e)};renderSidebar(){return Ae.createElement(cp,{onFocusWithinChanged:this.onSidebarFocusWithinChanged},Ae.createElement(nv,{id:"repository-sidebar",width:this.props.sidebarWidth.value,maximumWidth:this.props.sidebarWidth.max,minimumWidth:this.props.sidebarWidth.min,onReset:this.handleSidebarWidthReset,onResize:this.handleSidebarResize},this.renderTabs(),this.renderSidebarContents()))}onSidebarFocusWithinChanged=e=>{!1===e&&this.props.state.selectedSection===tt.History&&this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};renderStashedChangesContent(){const{changesState:e}=this.props.state,{selection:t,stashEntry:n}=e;return t.kind!==nt.Stash||null===n?null:n.files.kind===Ew.Loaded?Ae.createElement(vM,{stashEntry:n,selectedStashedFile:t.selectedStashedFile,stashedFileDiff:t.selectedStashedFileDiff,imageDiffType:this.props.imageDiffType,fileListWidth:this.props.stashedFilesWidth,repository:this.props.repository,dispatcher:this.props.dispatcher,askForConfirmationOnDiscardStash:this.props.askForConfirmationOnDiscardStash,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onOpenInExternalEditor:this.props.onOpenInExternalEditor}):null}onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInChangesDiffChanged(e,this.props.repository);renderContentForHistory(){const{commitSelection:e,commitLookup:t,localCommitSHAs:n}=this.props.state,{changesetData:r,file:i,diff:s,shas:o,shasInDiff:a,isContiguous:l}=e,c=[];for(const e of o){const n=t.get(e);void 0!==n&&c.push(n)}const u=bp.isDragOfTypeInProgress(vp.Commit);return Ae.createElement(MO,{repository:this.props.repository,dispatcher:this.props.dispatcher,selectedCommits:c,shasInDiff:a,isContiguous:l,localCommitSHAs:n,changesetData:r,selectedFile:i,currentDiff:s,emoji:this.props.emoji,commitSummaryWidth:this.props.commitSummaryWidth,selectedDiffType:this.props.imageDiffType,externalEditorLabel:this.props.externalEditorLabel,onOpenInExternalEditor:this.props.onOpenInExternalEditor,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,hideWhitespaceInDiff:this.props.hideWhitespaceInHistoryDiff,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,onDiffOptionsOpened:this.onDiffOptionsOpened,showDragOverlay:u,accounts:this.props.accounts})}onDiffOptionsOpened=()=>{this.props.dispatcher.incrementMetric("diffOptionsViewedCount")};onTutorialCompletionAnnounced=()=>{this.props.dispatcher.markTutorialCompletionAsAnnounced(this.props.repository)};renderTutorialPane(){return[Yw.AllDone,Yw.Announced].includes(this.props.currentTutorialStep)?Ae.createElement(lN,{dispatcher:this.props.dispatcher,repository:this.props.repository,tutorialCompletionAnnounced:this.props.currentTutorialStep===Yw.Announced,onTutorialCompletionAnnounced:this.onTutorialCompletionAnnounced}):Ae.createElement(rN,null)}renderContentForChanges(){const{changesState:e}=this.props.state,{workingDirectory:t,selection:n}=e;if(n.kind===nt.Stash)return this.renderStashedChangesContent();const{selectedFileIDs:r,diff:i}=n;if(r.length>1)return Ae.createElement(mO,{count:r.length});if(0===t.files.length)return this.props.currentTutorialStep!==Yw.NotApplicable?this.renderTutorialPane():Ae.createElement(pO,{key:this.props.repository.id,appMenu:this.props.appMenu,repository:this.props.repository,repositoryState:this.props.state,isExternalEditorAvailable:this.props.isExternalEditorAvailable,dispatcher:this.props.dispatcher,pullRequestSuggestedNextAction:this.props.pullRequestSuggestedNextAction});{if(0===r.length)return null;const e=t.findFileWithID(r[0]);return null===e?null:Ae.createElement(FM,{repository:this.props.repository,dispatcher:this.props.dispatcher,file:e,diff:i,isCommitting:this.props.state.isCommitting,imageDiffType:this.props.imageDiffType,hideWhitespaceInDiff:this.props.hideWhitespaceInChangesDiff,showSideBySideDiff:this.props.showSideBySideDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onDiffOptionsOpened:this.onDiffOptionsOpened})}}onOpenBinaryFile=e=>{OM(e,this.props.dispatcher)};onOpenSubmodule=e=>{this.props.dispatcher.incrementMetric("openSubmoduleFromDiffCount"),this.props.dispatcher.openOrAddRepository(e)};onChangeImageDiffType=e=>{this.props.dispatcher.changeImageDiffType(e)};renderContent(){const e=this.props.state.selectedSection;return e===tt.Changes?this.renderContentForChanges():e===tt.History?this.renderContentForHistory():ct(0,"Unknown repository section")}render(){return Ae.createElement(iA,{id:"repository"},this.renderSidebar(),this.renderContent(),this.maybeRenderTutorialPanel())}onRevertCommit=e=>{this.props.dispatcher.revertCommit(this.props.repository,e)};onAmendCommit=(e,t)=>{this.props.dispatcher.startAmendingRepository(this.props.repository,e,t)};componentDidMount(){window.addEventListener("keydown",this.onGlobalKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.onGlobalKeyDown)}componentDidUpdate(){this.focusChangesNeeded&&(this.focusChangesNeeded=!1,this.changesSidebarRef.current?.focus()),this.focusHistoryNeeded&&(this.focusHistoryNeeded=!1,this.compareSidebarRef.current?.focusHistory())}onGlobalKeyDown=e=>{e.defaultPrevented||this.props.isShowingModal||this.props.isShowingFoldout||e.ctrlKey&&"Tab"===e.key&&(this.changeTab(),e.preventDefault())};changeTab(){const e=this.props.state.selectedSection===tt.History?tt.Changes:tt.History;this.props.dispatcher.changeRepositorySection(this.props.repository,e)}onTabClicked=e=>{const t=1===e?tt.History:tt.Changes;this.props.dispatcher.changeRepositorySection(this.props.repository,t),t&&this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};maybeRenderTutorialPanel(){return Xw(this.props.currentTutorialStep)?Ae.createElement(QO,{dispatcher:this.props.dispatcher,repository:this.props.repository,resolvedExternalEditor:this.props.resolvedExternalEditor,currentTutorialStep:this.props.currentTutorialStep,onExitTutorial:this.props.onExitTutorial}):null}}const hN=/[\x00-\x20\x7F~^:?*\[\\|""<>]+|@{|\.\.+|^\.|\.$|\.lock$|\/$/g;function pN(e){return e.replace(hN,"-").replace(/^[-\+]*/g,"")}var dN;!function(e){e[e.Caption=0]="Caption",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(dN||(dN={}));class mN extends Ae.Component{getClassName(){const{inputDescriptionType:e}=this.props;switch(e){case dN.Caption:return ri()("input-description",this.props.className,"input-description-caption");case dN.Warning:return ri()("input-description",this.props.className,"input-description-warning");case dN.Error:return ri()("input-description",this.props.className,"input-description-error");default:return ct(0,`Unknown input type ${e}`)}}renderIcon(){const{inputDescriptionType:e}=this.props;switch(e){case dN.Caption:return null;case dN.Warning:return Ae.createElement(yi,{symbol:vi});case dN.Error:return Ae.createElement(yi,{symbol:Pc});default:return ct(0,`Unknown input type ${e}`)}}renderAriaLiveContainer(){return this.props.inputDescriptionType===dN.Caption||void 0===this.props.trackedUserInput||void 0===this.props.ariaLiveMessage?null:Ae.createElement(qT,{message:this.props.ariaLiveMessage,trackedUserInput:this.props.trackedUserInput})}getRole(){if(this.props.inputDescriptionType===dN.Error&&void 0===this.props.trackedUserInput)return"alert"}render(){return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{id:this.props.id,className:this.getClassName(),role:this.getRole()},this.renderIcon(),Ae.createElement("div",{className:"input-description-content"},this.props.children)),this.renderAriaLiveContainer())}}class fN extends Ae.Component{render(){return Ae.createElement(mN,{inputDescriptionType:dN.Warning,...this.props},this.props.children)}}class gN extends Ae.Component{render(){return Ae.createElement(mN,{inputDescriptionType:dN.Error,...this.props},this.props.children)}}class yN extends Ae.Component{textBoxRef=Ae.createRef();constructor(e){super(e);const t=e.initialValue||"";this.state={proposedValue:t,sanitizedValue:pN(t)}}componentDidMount(){this.state.sanitizedValue!==this.props.initialValue&&void 0!==this.props.onValueChange&&this.props.onValueChange(this.state.sanitizedValue)}render(){return Ae.createElement("div",{className:"ref-name-text-box"},Ae.createElement(VT,{label:this.props.label,value:this.state.proposedValue,ref:this.textBoxRef,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy+" branch-name-warning branch-name-error",onValueChanged:this.onValueChange,onBlur:this.onBlur}),this.renderRefValueWarningError())}focus(){null!==this.textBoxRef.current&&this.textBoxRef.current.focus()}onValueChange=e=>{const t=pN(e),n=this.state.sanitizedValue;this.setState({proposedValue:e,sanitizedValue:t}),t!==n&&void 0!==this.props.onValueChange&&this.props.onValueChange(t)};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(pN(e))};renderRefValueWarningError(){const{proposedValue:e,sanitizedValue:t}=this.state;return e===t?null:0===t.length?Ae.createElement(gN,{id:"branch-name-error",className:"warning-helper-text",trackedUserInput:e,ariaLiveMessage:`Error: ${e} is not a valid name.`},Ae.createElement(CD,null,e)," is not a valid name."):Ae.createElement(fN,{id:"branch-name-warning",className:"warning-helper-text",trackedUserInput:e,ariaLiveMessage:this.getWarningMessageAsString(t)},Ae.createElement("p",null,this.renderWarningMessage(t)))}getWarningMessageAsString(e){return`Warning: Will be ${this.props.warningMessageVerb??"created "} as ${e}. Spaces and invalid characters have been replaced by hyphens.`}renderWarningMessage(e){return Ae.createElement(Ae.Fragment,null,"Will be ",this.props.warningMessageVerb??"created"," as"," ",Ae.createElement(CD,null,e),"."," ",Ae.createElement("span",{className:"sr-only"},"Spaces and invalid characters have been replaced by hyphens."))}}class wN extends Ae.Component{constructor(e){super(e),this.state={newName:e.branch.name}}render(){return Ae.createElement(aD,{id:"rename-branch",title:"重命名分支",onDismissed:this.props.onDismissed,onSubmit:this.renameBranch,focusCloseButtonOnOpen:!0},Ae.createElement(nD,null,null!=(e=this.props.branch).upstream?Ae.createElement(GT,{className:"warning-helper-text"},Ae.createElement(yi,{symbol:vi}),Ae.createElement("p",null,"This branch is tracking ",Ae.createElement(CD,null,e.upstream)," and renaming this branch will not change the branch name on the remote.")):null,(this.props.stash,null),Ae.createElement(yN,{label: "名称",initialValue:this.props.branch.name,onValueChange:this.onNameChange})),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:`Rename ${this.props.branch.name}`,okButtonDisabled:0===this.state.newName.length})));var e}onNameChange=e=>{this.setState({newName:e})};renameBranch=()=>{this.props.dispatcher.renameBranch(this.props.repository,this.props.branch,this.state.newName),this.props.onDismissed()}}class bN extends Ae.Component{constructor(e){super(e),this.state={includeRemoteBranch:!1,isDeleting:!1}}render(){return Ae.createElement(aD,{id:"delete-branch",title:"删除分支",type:"warning",onSubmit:this.deleteBranch,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-branch-confirmation-message delete-branch-confirmation-message-remote"},Ae.createElement(nD,null,Ae.createElement("div",{id:"delete-branch-confirmation-message"},Ae.createElement("p",null,"删除分支 ",Ae.createElement(CD,null,this.props.branch.name),"?"),Ae.createElement("p",null,"此操作不可撤销"),this.renderDeleteOnRemote())),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText: "删除"})))}renderDeleteOnRemote(){return this.props.branch.upstreamRemoteName&&this.props.existsOnRemote?Ae.createElement("div",null,Ae.createElement("p",{id:"delete-branch-confirmation-message-remote"},Ae.createElement("strong",null,"The branch also exists on the remote, do you wish to delete it there as well?")),Ae.createElement(uA,{label:"是的,在远程删除此分支",value:this.state.includeRemoteBranch?cA.On:cA.Off,onChange:this.onIncludeRemoteChanged})):null}onIncludeRemoteChanged=e=>{const t=e.currentTarget.checked;this.setState({includeRemoteBranch:t})};deleteBranch=async()=>{const{dispatcher:e,repository:t,branch:n}=this.props;this.setState({isDeleting:!0}),await e.deleteLocalBranch(t,n,this.state.includeRemoteBranch),this.props.onDeleted(t),this.props.onDismissed()}}class vN extends Ae.Component{constructor(e){super(e),this.state={isDeleting:!1}}render(){return Ae.createElement(aD,{id:"delete-branch",title:"删除远程分支",type:"warning",onSubmit:this.deleteBranch,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-branch-confirmation-message"},Ae.createElement(nD,null,Ae.createElement("div",{id:"delete-branch-confirmation-message"},Ae.createElement("p",null,"Delete remote branch ",Ae.createElement(CD,null,this.props.branch.name),"?"),Ae.createElement("p",null,"此操作不可撤销"),Ae.createElement("p",null,"This branch does not exist locally. Deleting it may impact others collaborating on this branch."))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText: "删除"})))}deleteBranch=async()=>{const{dispatcher:e,repository:t,branch:n}=this.props;this.setState({isDeleting:!0}),await e.deleteRemoteBranch(t,n),this.props.onDeleted(t),this.props.onDismissed()}}class CN extends Ae.Component{render(){const e=this.props.progress.value||void 0;return Ae.createElement(iA,{id:"cloning-repository-view"},Ae.createElement("div",{className:"title-container"},Ae.createElement(yi,{symbol:Ns}),Ae.createElement("div",{className:"title"},"Cloning ",this.props.repository.name)),Ae.createElement("progress",{value:e}),Ae.createElement(eh,{tagName:"div",className:"details",tooltip:this.props.progress.description},this.props.progress.description))}}class SN extends Ae.Component{constructor(e){super(e),this.state={isDiscardingChanges:!1,confirmDiscardChanges:this.props.confirmDiscardChanges}}getOkButtonLabel(){return this.props.discardingAllChanges?"放弃所有更改":"放弃更改"}getDialogTitle(){return this.props.discardingAllChanges?"确认放弃所有更改":"确认放弃更改"}render(){const e=this.state.isDiscardingChanges;return Ae.createElement(aD,{id:"discard-changes",title:this.getDialogTitle(),onDismissed:this.props.onDismissed,onSubmit:this.discard,dismissDisabled:e,loading:e,disabled:e,type:"warning",role:"alertdialog",ariaDescribedBy:"discard-changes-confirmation-file-list discard-changes-confirmation-message"},Ae.createElement(nD,null,this.renderFileList(),Ae.createElement("p",{id:"discard-changes-confirmation-message"},"变更可以恢复,通过检索",wh,"."),this.renderConfirmDiscardChanges()),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:this.getOkButtonLabel(),okButtonDisabled:e,cancelButtonDisabled:e})))}renderConfirmDiscardChanges(){return this.props.showDiscardChangesSetting?Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmDiscardChanges?cA.Off:cA.On,onChange:this.onConfirmDiscardChangesChanged}):null}renderFileList(){return this.props.files.length>10?Ae.createElement("p",{id:"discard-changes-confirmation-file-list"},"Are you sure you want to discard all ",this.props.files.length," changed files?"):Ae.createElement("div",{id:"discard-changes-confirmation-file-list"},Ae.createElement("p",null,"确定要放弃所有更改吗?"),Ae.createElement("div",{className:"file-list"},Ae.createElement("ul",null,this.props.files.map((e=>Ae.createElement("li",{key:e.id},Ae.createElement(JD,{path:e.path})))))))}discard=async()=>{this.setState({isDiscardingChanges:!0}),await this.props.dispatcher.discardChanges(this.props.repository,this.props.files),this.props.onConfirmDiscardChangesChanged(this.state.confirmDiscardChanges),this.props.onDismissed()};onConfirmDiscardChangesChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardChanges:t})}}class EN extends Ae.Component{render(){const e=ri()("form-component",this.props.className);return Ae.createElement("form",{className:e,onSubmit:this.onSubmit},this.props.children)}onSubmit=e=>{e.preventDefault(),this.props.onSubmit&&this.props.onSubmit()}}class kN extends Ae.Component{render(){const e=ri()("errors-component",this.props.className);return Ae.createElement("div",{className:e,role:"alert"},this.props.children)}}const RN=e=>xe().createElement("div",{className:"horizontal-rule"},xe().createElement("span",{className:"horizontal-rule-content"},e.title));class TN extends Ae.Component{textBoxRef=Ae.createRef();constructor(e){super(e),this.state={showPassword:!1}}onTogglePasswordVisibility=()=>{this.setState({showPassword:!this.state.showPassword}),this.textBoxRef.current.focus()};render(){const e=this.state.showPassword?no:ro,t=this.state.showPassword?"text":"password",n={...this.props,type:t};return Ae.createElement("div",{className:"password-text-box"},Ae.createElement(VT,{...n,ref:this.textBoxRef}),Ae.createElement(mi,{ariaLabel:"Toggle password visibility",tooltip:"Toggle password visibility",onClick:this.onTogglePasswordVisibility,ariaPressed:this.state.showPassword},Ae.createElement(yi,{symbol:e})))}}const AN="登录后浏览器将会重定向到GitHub Desktop。如果您的浏览器请求您允许启动GitHub Desktop请点击允许。";class xN extends Ae.Component{constructor(e){super(e),this.state={username:"",password:""}}render(){const e=this.props.supportsBasicAuth?this.renderSignInForm():this.renderEndpointRequiresWebFlow();return Ae.createElement(EN,{className:"sign-in-form",onSubmit:this.signIn},e)}renderUsernamePassword(){const e=this.props.loading;return Ae.createElement(Ae.Fragment,null,Ae.createElement(VT,{label:"用户名或邮箱地址",disabled:e,required:!0,displayInvalidState:!1,autoFocus:this.props.endpoint===cr(),onValueChanged:this.onUsernameChange}),Ae.createElement(TN,{label:"密码",disabled:e,required:!0,displayInvalidState:!1,onValueChanged:this.onPasswordChange}),this.renderError(),Ae.createElement("div",{className:"sign-in-footer"},this.renderActions()))}renderActions(){const e=Boolean(!this.state.username.length||!this.state.password.length||this.props.loading);return Ae.createElement("div",{className:"actions"},this.props.supportsBasicAuth?Ae.createElement(mi,{type:"submit",disabled:e},this.props.loading?Ae.createElement(Dx,null):null," Sign in"):null,this.props.additionalButtons,this.props.supportsBasicAuth?Ae.createElement(Hx,{className:"forgot-password-link",uri:this.props.forgotPasswordUrl},"Forgot password?"):null)}renderSignInForm(){return this.props.endpoint===cr()?this.renderUsernamePassword():Ae.createElement(Ae.Fragment,null,this.renderSignInWithBrowserButton(),Ae.createElement(RN,{title:"or"}),this.renderUsernamePassword())}renderEndpointRequiresWebFlow(){return Ae.createElement(Ae.Fragment,null,this.props.endpoint===cr()?Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"GitHub now requires you to sign in with your browser."),Ae.createElement("p",null,AN)):Ae.createElement("p",null,"您必须使用浏览器登录GitHub Enterprise"),this.renderSignInWithBrowserButton(),this.props.additionalButtons)}renderSignInWithBrowserButton(){return Ae.createElement(mi,{type:"submit",className:"button-with-icon",onClick:this.signInWithBrowser,autoFocus:!0,role:"link"},"使用浏览器登录",Ae.createElement(yi,{symbol:La}))}renderError(){const e=this.props.error;return e?Ae.createElement(kN,null,e.message):null}onUsernameChange=e=>{this.setState({username:e})};onPasswordChange=e=>{this.setState({password:e})};signInWithBrowser=e=>{e&&e.preventDefault(),this.props.onBrowserSignInRequested()};signIn=()=>{this.props.onSubmit(this.state.username,this.state.password)}}class DN extends Ae.Component{render(){return Ae.createElement("section",{id:"start","aria-label":"Welcome to GitHub Desktop","aria-describedby":"start-description"},Ae.createElement("div",{className:"start-content"},Ae.createElement("h1",{className:"welcome-title"},"Welcome to ",Ae.createElement("span",null,"GitHub Desktop")),this.props.loadingBrowserAuth?Ae.createElement("p",null,AN):Ae.createElement(Ae.Fragment,null,Ae.createElement("p",{id:"start-description",className:"welcome-text"},"")),Ae.createElement("div",{className:"welcome-main-buttons"},Ae.createElement(mi,{type:"submit",className:"button-with-icon",disabled:this.props.loadingBrowserAuth,onClick:this.signInWithBrowser,autoFocus:!0,role:"link"},this.props.loadingBrowserAuth&&Ae.createElement(Dx,null),"GitHub登录",Ae.createElement(yi,{symbol:La})),this.props.loadingBrowserAuth?Ae.createElement(mi,{onClick:this.cancelBrowserAuth},"Cancel"):Ae.createElement(mi,{onClick:this.signInToEnterprise},"Github企业版登录")),Ae.createElement("div",{className:"skip-action-container"},Ae.createElement("p",{className:"welcome-text"},"第一次使用Github"," ",Ae.createElement(Hx,{uri:"https://github.com/join?source=github-desktop",className:"create-account-link"},"创建账户")),Ae.createElement(Hx,{className:"skip-button",onClick:this.skip},"跳过"))),Ae.createElement("div",{className:"start-footer"},Ae.createElement("p",null,"创建账户,代表您同意"," ",Ae.createElement(Hx,{uri:"https://github.com/site/terms"},"服务条款"),". 更多信息,请参阅"," ",Ae.createElement(Hx,{uri:"https://github.com/site/privacy"},"GitHub 隐私声明.")),Ae.createElement("p",null,"GitHub Desktop sends usage metrics to improve the product and inform feature decisions."," ",Ae.createElement(Hx,{uri:yT},"Learn more about user metrics."))))}signInWithBrowser=e=>{e&&e.preventDefault(),this.props.advance(BN.SignInToDotComWithBrowser),this.props.dispatcher.requestBrowserAuthenticationToDotcom()};cancelBrowserAuth=()=>{this.props.advance(BN.Start)};signInToEnterprise=()=>{this.props.advance(BN.SignInToEnterprise)};skip=()=>{this.props.advance(BN.ConfigureGit)}}class _N extends Ae.Component{constructor(e){super(e),this.state={otp:""}}render(){const e=this.props.loading,t=!/\S+/.test(this.state.otp)||this.props.loading,n=this.props.error?Ae.createElement(kN,null,this.props.error.message):null;return Ae.createElement("div",null,Ae.createElement("p",{className:"welcome-text"},bn(this.props.type)),Ae.createElement(EN,{onSubmit:this.signIn},Ae.createElement(VT,{label:"身份验证码",disabled:e,autoFocus:!0,onValueChanged:this.onOTPChange}),n,Ae.createElement("div",{className:"actions"},Ae.createElement(mi,{type:"submit",disabled:t},this.props.loading?Ae.createElement(Dx,null):null," Verify"),this.props.additionalButtons)))}onOTPChange=e=>{this.setState({otp:e})};signIn=()=>{this.props.onOTPEntered(this.state.otp)}}class MN extends Ae.Component{constructor(e){super(e),this.state={serverAddress:""}}render(){const e=this.props.loading,t=0===this.state.serverAddress.length||this.props.loading;return Ae.createElement(EN,{onSubmit:this.onSubmit},Ae.createElement(VT,{label:"企业或 AE 地址",autoFocus:!0,disabled:e,onValueChanged:this.onServerAddressChanged,placeholder:"https://github.example.com"}),this.props.error?Ae.createElement(kN,null,this.props.error.message):null,Ae.createElement("div",{className:"actions"},Ae.createElement(mi,{type:"submit",disabled:t},this.props.loading?Ae.createElement(Dx,null):null," Continue"),this.props.additionalButtons))}onServerAddressChanged=e=>{this.setState({serverAddress:e})};onSubmit=()=>{this.props.onSubmit(this.state.serverAddress)}}class PN extends Ae.Component{onEndpointEntered=e=>{this.props.dispatcher.setSignInEndpoint(e)};onCredentialsEntered=(e,t)=>{this.props.dispatcher.setSignInCredentials(e,t)};onBrowserSignInRequested=()=>{this.props.dispatcher.requestBrowserAuthentication()};onOTPEntered=e=>{this.props.dispatcher.setSignInOTP(e)};renderEndpointEntryStep(e){const t=this.props.children;return Ae.createElement(MN,{loading:e.loading,error:e.error,onSubmit:this.onEndpointEntered,additionalButtons:t})}renderAuthenticationStep(e){const t=this.props.children;return Ae.createElement(xN,{loading:e.loading,error:e.error,supportsBasicAuth:e.supportsBasicAuth,additionalButtons:t,onBrowserSignInRequested:this.onBrowserSignInRequested,onSubmit:this.onCredentialsEntered,forgotPasswordUrl:e.forgotPasswordUrl,endpoint:e.endpoint})}renderTwoFactorAuthenticationStep(e){return Ae.createElement(_N,{loading:e.loading,error:e.error,type:e.type,additionalButtons:this.props.children,onOTPEntered:this.onOTPEntered})}render(){const e=this.props.signInState,t=this.props.signInState.kind;switch(e.kind){case aT.EndpointEntry:return this.renderEndpointEntryStep(e);case aT.Authentication:return this.renderAuthenticationStep(e);case aT.TwoFactorAuthentication:return this.renderTwoFactorAuthenticationStep(e);case aT.Success:return null;default:return ct(0,`Unknown sign-in step: ${t}`)}}}class IN extends Ae.Component{render(){const e=this.props.signInState;return e?Ae.createElement("section",{id:"sign-in-enterprise","aria-label":"Sign in to your GitHub Enterprise"},Ae.createElement("h1",{className:"welcome-title"},"Sign in to your GitHub Enterprise"),Ae.createElement(PN,{signInState:e,dispatcher:this.props.dispatcher},Ae.createElement(mi,{onClick:this.cancel},"Cancel"))):null}cancel=()=>{this.props.advance(BN.Start)}}class ON extends Ae.Component{onDeleteLockFile=async()=>{try{await(0,b.unlink)(this.props.lockFilePath)}catch(e){if("ENOENT"!==e.code)return void this.props.onError(e)}this.props.onLockFileDeleted()};render(){return Ae.createElement("div",{className:"config-lock-file-exists-component"},Ae.createElement("p",null,"Failed to update Git configuration file. A lock file already exists at"," ",Ae.createElement(CD,null,this.props.lockFilePath),"."),Ae.createElement("p",null,"This can happen if another tool is currently modifying the Git configuration or if a Git process has terminated earlier without cleaning up the lock file. Do you want to"," ",Ae.createElement(Hx,{onClick:this.onDeleteLockFile},"delete the lock file")," ","and try again?"))}}class NN extends Ae.Component{globalUsernamePromise=Fd("user.name");globalEmailPromise=Fd("user.email");loadInitialDataPromise=null;constructor(e){super(e);const t=this.account;this.state={globalUserName:null,globalUserEmail:null,manualName:"",manualEmail:"",useGitHubAuthorInfo:null!==this.account,gitHubName:t?.name||t?.login||"",gitHubEmail:null!==this.account?hb(this.account):"",loadingGitConfig:!0}}async componentDidMount(){this.loadInitialDataPromise=this.loadInitialData()}async loadInitialData(){const e=this.props.accounts,[t,n]=await Promise.all([this.globalUsernamePromise,this.globalEmailPromise]);this.setState((e=>({globalUserName:t,globalUserEmail:n,manualName:0===e.manualName.length?t||"":e.manualName,manualEmail:0===e.manualEmail.length?n||"":e.manualEmail,loadingGitConfig:!1})),(()=>{e===this.props.accounts&&e.length>0&&this.setDefaultValuesFromAccount(e[0])}))}async componentDidUpdate(e){if(null!==this.loadInitialDataPromise&&this.props.accounts!==e.accounts&&this.props.accounts.length>0&&this.props.accounts[0]!==e.accounts[0]){await this.loadInitialDataPromise;const e=this.props.accounts[0];this.setDefaultValuesFromAccount(e)}}setDefaultValuesFromAccount(e){const t=hb(e);this.setState({useGitHubAuthorInfo:!0,gitHubName:e.name||e.login,gitHubEmail:t}),0===this.state.manualName.length&&this.setState({manualName:e.name||e.login}),0===this.state.manualEmail.length&&this.setState({manualEmail:t})}get account(){return 0===this.props.accounts.length?null:this.props.accounts[0]}dateWithMinuteOffset(e,t){const n=new Date(e.getTime());return n.setTime(n.getTime()+60*t*1e3),n}render(){const e=void 0!==this.state.existingLockFilePath?Ae.createElement(ON,{lockFilePath:this.state.existingLockFilePath,onLockFileDeleted:this.onLockFileDeleted,onError:this.onLockFileDeleteError}):null;return Ae.createElement("div",{id:"configure-git-user"},this.renderAuthorOptions(),e,this.renderConfigForm(),this.renderExampleCommit())}renderExampleCommit(){const e=new Date;let t=this.state.manualName,n=this.state.manualEmail;this.state.useGitHubAuthorInfo&&(t=this.state.gitHubName,n=this.state.gitHubEmail);const r=new af(t,n,this.dateWithMinuteOffset(e,-30)),i=new em(t,t.slice(0,7),"Fix all the things","",r,r,[],[],[]),s=new Map;return Ae.createElement("div",{id:"commit-list",className:"commit-list-example"},Ae.createElement("div",{className:"header"},"Example commit"),Ae.createElement(SO,{commit:i,emoji:s,gitHubRepository:null,showUnpushedIndicator:!1,selectedCommits:[i],accounts:this.props.accounts}))}renderAuthorOptions(){const e=this.account;if(null===e)return;const t=e.endpoint===cr()?"":" Enterprise";return Ae.createElement("div",null,Ae.createElement(TD,{label:`Use my GitHub${t} account name and email address`,checked:this.state.useGitHubAuthorInfo,onSelected:this.onUseGitHubInfoSelected,value:"github-account",autoFocus:!0}),Ae.createElement(TD,{label:"手动配置",checked:!this.state.useGitHubAuthorInfo,onSelected:this.onUseGitConfigInfoSelected,value:"git-config"}))}renderGitHubInfo(){if(null!==this.account)return Ae.createElement(Ae.Fragment,null,Ae.createElement(Wx,{label:"邮箱",value:this.state.gitHubEmail,onChange:this.onSelectedGitHubEmailChange},this.account.emails.map((e=>Ae.createElement("option",{key:e.email,value:e.email},e.email)))))}renderGitConfigForm(){return Ae.createElement(Ae.Fragment,null,Ae.createElement(VT,{type:"email",label:"邮箱",placeholder:"您的邮箱",value:this.state.manualEmail,onValueChanged:this.onEmailChange,readOnly:this.state.loadingGitConfig}),null!==this.account&&Ae.createElement(DD,{accounts:[this.account],email:this.state.manualEmail}))}renderConfigForm(){return Ae.createElement(EN,{className:"sign-in-form",onSubmit:this.save},!this.state.useGitHubAuthorInfo&&this.state.loadingGitConfig&&Ae.createElement("div",{className:"git-config-loading"},Ae.createElement(Dx,null)," Checking for an existing git config…"),Ae.createElement("div",{className:"sign-in-form-inputs"},Ae.createElement(VT,{label: "名称",placeholder:"您的姓名",onValueChanged:this.onNameChange,value:this.state.useGitHubAuthorInfo?this.state.gitHubName:this.state.manualName,readOnly:this.state.useGitHubAuthorInfo||this.state.loadingGitConfig,autoFocus:!0}),this.state.useGitHubAuthorInfo?this.renderGitHubInfo():this.renderGitConfigForm()),Ae.createElement(GT,null,Ae.createElement(mi,{type:"submit"},this.props.saveLabel||"Save"),this.props.children))}onSelectedGitHubEmailChange=e=>{const t=e.currentTarget.value;t&&this.setState({gitHubEmail:t})};onLockFileDeleted=()=>{this.setState({existingLockFilePath:void 0})};onLockFileDeleteError=e=>{log.error("Failed to unlink config lock file",e),this.setState({existingLockFilePath:void 0})};onUseGitHubInfoSelected=()=>{this.setState({useGitHubAuthorInfo:!0})};onUseGitConfigInfoSelected=()=>{this.setState({useGitHubAuthorInfo:!1})};onNameChange=e=>{this.setState({manualName:e})};onEmailChange=e=>{this.setState({manualEmail:e})};save=async()=>{const{manualName:e,manualEmail:t,globalUserName:n,globalUserEmail:r,useGitHubAuthorInfo:i,gitHubName:s,gitHubEmail:o}=this.state,a=i?s:e,l=i?o:t;try{a.length>0&&a!==n&&await Wd("user.name",a),l.length>0&&l!==r&&await Wd("user.email",l)}catch(e){if(Pd(e)){const t=Od(e.result);if(null!==t)return void this.setState({existingLockFilePath:t})}}this.props.onSave&&this.props.onSave()}}class LN extends Ae.Component{render(){return Ae.createElement("section",{id:"configure-git","aria-label":"Configure Git"},Ae.createElement("h1",{className:"welcome-title"},"Configure Git"),Ae.createElement("p",{className:"welcome-text"},"This is used to identify the commits you create. Anyone will be able to see this information if you publish commits."),Ae.createElement(NN,{accounts:this.props.accounts,onSave:this.props.done,saveLabel:"Finish"},Ae.createElement(mi,{onClick:this.cancel},"Cancel")))}cancel=()=>{this.props.advance(BN.Start)}}var BN;!function(e){e.Start="Start",e.SignInToDotComWithBrowser="SignInToDotComWithBrowser",e.SignInToEnterprise="SignInToEnterprise",e.ConfigureGit="ConfigureGit"}(BN||(BN={}));const FN=Pt(__dirname,"static/welcome-illustration-right.svg"),HN=Pt(__dirname,"static/welcome-illustration-left-top.svg"),UN=Pt(__dirname,"static/welcome-illustration-left-bottom.svg");class ZN extends Ae.Component{constructor(e){super(e),this.state={currentStep:BN.Start,exiting:!1}}componentWillReceiveProps(e){this.advanceOnSuccessfulSignIn(e)}componentDidMount(){this.props.dispatcher.recordWelcomeWizardInitiated()}get inSignInStep(){return this.state.currentStep===BN.SignInToDotComWithBrowser||this.state.currentStep===BN.SignInToEnterprise}advanceOnSuccessfulSignIn(e){this.inSignInStep?this.props.signInState?e.signInState?this.props.signInState.kind!==e.signInState.kind?e.signInState.kind===aT.Success&&(this.advanceToStep(BN.ConfigureGit),this.props.dispatcher.resetSignInState()):log.info(`[Welcome] kind ${this.props.signInState.kind} is the same as ${e.signInState.kind}. ignoring...`):log.info("[Welcome] next sign in state not found. ignoring..."):log.info("[Welcome] current sign in state not found. ignoring..."):log.info("[Welcome] no sign in step found. ignoring...")}getComponentForCurrentStep(){const e=this.state.currentStep,t=this.props.signInState;switch(e){case BN.Start:case BN.SignInToDotComWithBrowser:const n=e===BN.SignInToDotComWithBrowser&&null!==t&&t.kind===aT.Authentication&&t.loading;return Ae.createElement(DN,{advance:this.advanceToStep,dispatcher:this.props.dispatcher,loadingBrowserAuth:n});case BN.SignInToEnterprise:return Ae.createElement(IN,{dispatcher:this.props.dispatcher,advance:this.advanceToStep,signInState:t});case BN.ConfigureGit:return Ae.createElement(LN,{advance:this.advanceToStep,accounts:this.props.accounts,done:this.done});default:return ct(0,`Unknown welcome step: ${e}`)}}advanceToStep=e=>{log.info(`[Welcome] advancing to step: ${e}`),e===BN.SignInToEnterprise&&this.props.dispatcher.beginEnterpriseSignIn(),this.setState({currentStep:e})};done=()=>{this.setState({exiting:!0},(()=>{setTimeout((()=>{this.props.dispatcher.endWelcomeFlow()}),250)}))};render(){const e=ri()({exiting:this.state.exiting});return Ae.createElement(iA,{id:"welcome",className:e},Ae.createElement("div",{className:"welcome-left"},Ae.createElement("div",{className:"welcome-content"},this.getComponentForCurrentStep(),Ae.createElement("img",{className:"welcome-graphic-top",src:HN,alt:""}),Ae.createElement("img",{className:"welcome-graphic-bottom",src:UN,alt:""}))),Ae.createElement("div",{className:"welcome-right"},Ae.createElement("img",{className:"welcome-graphic",src:FN,alt:""})))}}class $N extends Ae.Component{banner=Ae.createRef();focusTimeoutId=null;dismissalTimeoutId=null;render(){return Ae.createElement("div",{id:this.props.id,className:"banner",ref:this.banner},Ae.createElement("div",{className:"contents"},this.props.children),this.renderCloseButton())}renderCloseButton(){const{dismissable:e,onDismissed:t}=this.props;return!1===e?null:Ae.createElement("div",{className:"close"},Ae.createElement("button",{onClick:t,"aria-label":"Dismiss this message"},Ae.createElement(yi,{symbol:yu})))}componentDidMount(){this.focusTimeoutId=window.setTimeout((()=>{this.focusOnFirstSuitableElement()}),200),this.addDismissalFocusListeners()}componentWillUnmount(){null!==this.focusTimeoutId&&(window.clearTimeout(this.focusTimeoutId),this.focusTimeoutId=null),this.removeDismissalFocusListeners()}focusOnFirstSuitableElement=()=>{(this.banner.current?.querySelector("a")||this.banner.current?.querySelector("button"))?.focus()};addDismissalFocusListeners(){this.banner.current?.addEventListener("focusin",this.onFocusIn),this.banner.current?.addEventListener("focusout",this.onFocusOut)}removeDismissalFocusListeners(){this.banner.current?.removeEventListener("focusout",this.onFocusOut),this.banner.current?.removeEventListener("focusin",this.onFocusIn)}onFocusIn=()=>{null!==this.dismissalTimeoutId&&(window.clearTimeout(this.dismissalTimeoutId),this.dismissalTimeoutId=null)};onFocusOut=async e=>{const{dismissable:t,onDismissed:n,timeout:r}=this.props;e.relatedTarget&&this.banner.current?.contains(e.relatedTarget)||!1!==t&&void 0!==r&&(this.dismissalTimeoutId=window.setTimeout((()=>{n()}),r))}}const WN="https://desktop.github.com/release-notes/";class qN extends Ae.Component{render(){return Ae.createElement($N,{id:"update-available",onDismissed:this.props.onDismissed},!this.props.isUpdateShowcaseVisible&&Ae.createElement(yi,{className:"download-icon",symbol:Ns}),this.renderMessage())}renderMessage=()=>{if(this.props.isX64ToARM64ImmediateAutoUpdate)return Ae.createElement("span",{onSubmit:this.updateNow},"An optimized version of GitHub Desktop is available for your"," ","Arm64"," machine and will be installed at the next launch or"," ",Ae.createElement(Hx,{onClick:this.updateNow},"重启 GitHub Desktop")," ","now.");if(this.props.isUpdateShowcaseVisible){const e=null!==this.props.newReleases?` with GitHub Desktop ${this.props.newReleases[0].latestVersion}`:"";return Ae.createElement("span",null,Ae.createElement(AM,{className:"banner-emoji",text:":tada:",emoji:this.props.emoji}),"Exciting new features have been added",e,". See"," ",Ae.createElement(Hx,{onClick:this.showReleaseNotes},"更新内容")," 或"," ",Ae.createElement(Hx,{onClick:this.dismissUpdateShowCaseVisibility},"dismiss"),".")}return Ae.createElement("span",{onSubmit:this.updateNow}," GitHub Desktop 有新版本可用,将在下次启动时安装。查看"," ",Ae.createElement(Hx,{onClick:this.showReleaseNotes},"更新内容")," 或"," ",Ae.createElement(Hx,{onClick:this.updateNow},"重启 GitHub Desktop"),".")};dismissUpdateShowCaseVisibility=()=>{const e=null===this.props.newReleases?"3.4.3-linux1":this.props.newReleases[0].latestVersion;localStorage.setItem(sn,e),this.props.dispatcher.setUpdateShowCaseVisibility(!1)};showReleaseNotes=()=>{null==this.props.newReleases?pt.openExternal(WN):this.props.dispatcher.showPopup({type:dh.ReleaseNotes,newReleases:this.props.newReleases}),this.dismissUpdateShowCaseVisibility()};updateNow=()=>{an.quitAndInstallUpdate()}}class VN extends Ae.Component{openDialog=()=>{this.props.onDismissed(),this.props.dispatcher.showPopup(this.props.popup),this.props.dispatcher.incrementMetric("mergeConflictsDialogReopenedCount")};render(){return Ae.createElement($N,{id:"merge-conflicts-banner",dismissable:!1,onDismissed:this.props.onDismissed},Ae.createElement(yi,{className:"alert-icon",symbol:vi}),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",null,"Resolve conflicts and commit to merge into"," ",Ae.createElement("strong",null,this.props.ourBranch),"."),Ae.createElement(Hx,{onClick:this.openDialog},"View conflicts")))}}class GN extends Ae.Component{undo=()=>{this.props.onDismissed(),void 0!==this.props.onUndo&&this.props.onUndo()};renderUndo=()=>{if(void 0!==this.props.onUndo)return Ae.createElement(Hx,{onClick:this.undo},"Undo")};render(){return Ae.createElement($N,{id:"successful",timeout:this.props.timeout,onDismissed:this.props.onDismissed},Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{className:"check-icon",symbol:Ji})),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",{className:"success-contents"},this.props.children),this.renderUndo()))}}function zN({ourBranch:e,theirBranch:t,onDismissed:n}){const r=void 0!==t?Ae.createElement("span",null,"成功合并 ",Ae.createElement("strong",null,t)," 到 ",Ae.createElement("strong",null,e)):Ae.createElement("span",null,"Successfully merged into ",Ae.createElement("strong",null,e));return Ae.createElement(GN,{timeout:5e3,onDismissed:n},Ae.createElement("div",{className:"banner-message"},r))}class jN extends Ae.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenDialog(),this.props.dispatcher.incrementMetric("rebaseConflictsDialogReopenedCount")};onDismissed=()=>{log.warn("[RebaseConflictsBanner] this is not dismissable by default unless the user clicks on the link")};render(){return Ae.createElement($N,{id:"rebase-conflicts-banner",dismissable:!1,onDismissed:this.onDismissed},Ae.createElement(yi,{className:"alert-icon",symbol:vi}),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",null,"Resolve conflicts to continue rebasing"," ",Ae.createElement("strong",null,this.props.targetBranch),"."),Ae.createElement(Hx,{onClick:this.openDialog},"View conflicts")))}}function KN({baseBranch:e,targetBranch:t,onDismissed:n}){const r=void 0!==e?Ae.createElement("span",null,"Successfully rebased ",Ae.createElement("strong",null,t)," onto ",Ae.createElement("strong",null,e)):Ae.createElement("span",null,"Successfully rebased ",Ae.createElement("strong",null,t));return Ae.createElement(GN,{timeout:5e3,onDismissed:n},Ae.createElement("div",{className:"banner-message"},r))}function YN({ourBranch:e,theirBranch:t,onDismissed:n}){const r=void 0!==t?Ae.createElement("span",null,Ae.createElement("strong",null,e)," is already up to date with ",Ae.createElement("strong",null,t)):Ae.createElement("span",null,Ae.createElement("strong",null,e)," is already up to date");return Ae.createElement($N,{id:"successful-merge",timeout:5e3,onDismissed:n},Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{className:"check-icon",symbol:Xi})),Ae.createElement("div",{className:"banner-message"},r))}class XN extends Ae.Component{render(){const{countCherryPicked:e,onDismissed:t,onUndo:n,targetBranchName:r}=this.props,i=1===e?"commit":"commits";return Ae.createElement(GN,{timeout:15e3,onDismissed:t,onUndo:n},Ae.createElement("span",null,"Successfully copied ",e," ",i," to"," ",Ae.createElement("strong",null,r),"."))}}class QN extends Ae.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenConflictsDialog()};onDismissed=()=>{log.warn("[CherryPickConflictsBanner] this is not dismissable by default unless the user clicks on the link")};render(){return Ae.createElement($N,{id:"cherry-pick-conflicts-banner",dismissable:!1,onDismissed:this.onDismissed},Ae.createElement(yi,{className:"alert-icon",symbol:vi}),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",null,"Resolve conflicts to continue cherry-picking onto"," ",Ae.createElement("strong",null,this.props.targetBranchName),"."),Ae.createElement(Hx,{onClick:this.openDialog},"View conflicts")))}}class JN extends Ae.Component{render(){const{countCherryPicked:e,targetBranchName:t,onDismissed:n}=this.props,r=1===e?"commit":"commits";return Ae.createElement(GN,{timeout:5e3,onDismissed:n},"Cherry-pick undone. Successfully removed the ",e," copied ",r," 自 ",Ae.createElement("strong",null,t),".")}}class eL extends Ae.Component{render(){return Ae.createElement($N,{id:"open-thank-you-card",onDismissed:this.props.onDismissed},Ae.createElement("span",{onSubmit:this.props.onOpenCard},"The Desktop team would like to thank you for your contributions."," ",Ae.createElement(Hx,{onClick:this.props.onOpenCard},"Open Your Card")," ",Ae.createElement(AM,{className:"thank-you-banner-emoji",text:":tada:",emoji:this.props.emoji,renderUrlsAsLinks:!0}),"or"," ",Ae.createElement(Hx,{onClick:this.onThrowCardAway},"Throw It Away")," ",Ae.createElement(AM,{className:"thank-you-banner-emoji",text:":sob:",emoji:this.props.emoji,renderUrlsAsLinks:!0})))}onThrowCardAway=()=>{this.props.onDismissed(),this.props.onThrowCardAway()}}class tL extends Ae.Component{render(){const{count:e,onDismissed:t,onUndo:n}=this.props,r=1===e?"commit":"commits";return Ae.createElement(GN,{timeout:15e3,onDismissed:t,onUndo:n},Ae.createElement("span",null,"Successfully squashed ",e," ",r,"."))}}class nL extends Ae.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenConflictsDialog()};onDismissed=()=>{log.warn("[ConflictsBanner] This cannot be dismissed by default unless the user clicks on the link")};render(){return Ae.createElement($N,{id:"conflicts-found-banner",dismissable:!1,onDismissed:this.onDismissed},Ae.createElement(yi,{className:"alert-icon",symbol:vi}),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",null,"Resolve conflicts to continue ",this.props.operationDescription,"."),Ae.createElement(Hx,{onClick:this.openDialog},"View conflicts")))}}const rL="unsupported-os-banner-dismissed-at";class iL extends Ae.Component{onDismissed=()=>{$t(rL,Date.now()),this.props.onDismissed()};render(){return Ae.createElement($N,{id:"conflicts-found-banner",dismissable:!0,onDismissed:this.onDismissed},Ae.createElement(yi,{className:"alert-icon",symbol:vi}),Ae.createElement("div",{className:"banner-message"},Ae.createElement("span",null,"This operating system is no longer supported. Software updates have been disabled."),Ae.createElement(Hx,{uri:"https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/supported-operating-systems"},"Support details")))}}const sL="accessibility-banner-dismissed";class oL extends Ae.Component{onDismissed=()=>{Ut(sL,!0),this.props.onDismissed()};onOpenAccessibilitySettings=()=>{this.props.onOpenAccessibilitySettings(),this.onDismissed()};render(){return Ae.createElement($N,{id:"accessibility-settings-banner",dismissable:!0,onDismissed:this.onDismissed},Ae.createElement(yi,{symbol:bi}),Ae.createElement("div",{className:"banner-message"},"Check out the new"," ",Ae.createElement(Hx,{onClick:this.onOpenAccessibilitySettings},"accessibility settings")," ","to control the visibility of the link underlines and diff check marks."))}}var aL;!function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise"}(aL||(aL={}));class lL extends Ae.Component{render(){return Ae.createElement(nD,{className:"accounts-tab"},Ae.createElement("h2",null,"GitHub.com"),this.props.dotComAccount?this.renderAccount(this.props.dotComAccount,aL.DotCom):this.renderSignIn(aL.DotCom),Ae.createElement("h2",null,"GitHub Enterprise"),this.props.enterpriseAccount?this.renderAccount(this.props.enterpriseAccount,aL.Enterprise):this.renderSignIn(aL.Enterprise))}renderAccount(e,t){const n={name:e.name,email:hb(e),avatarURL:e.avatarURL,endpoint:e.endpoint},r=t===aL.DotCom?"GitHub.com":"GitHub Enterprise",i=[...this.props.dotComAccount?[this.props.dotComAccount]:[],...this.props.enterpriseAccount?[this.props.enterpriseAccount]:[]],s=t===aL.DotCom?sD:void 0;return Ae.createElement(GT,{className:"account-info"},Ae.createElement("div",{className:"user-info-container"},Ae.createElement(tD,{accounts:i,user:n}),Ae.createElement("div",{className:"user-info"},Ae.createElement("div",{className:"name"},e.name),Ae.createElement("div",{className:"login"},"@",e.login))),Ae.createElement(mi,{onClick:this.logout(e),className:s},"Sign out of"," ",r))}onDotComSignIn=()=>{this.props.onDotComSignIn()};onEnterpriseSignIn=()=>{this.props.onEnterpriseSignIn()};renderSignIn(e){switch(e){case aL.DotCom:return Ae.createElement(ED,{actionTitle:"Sign into GitHub.com",onAction:this.onDotComSignIn,buttonClassName:sD},Ae.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case aL.Enterprise:return Ae.createElement(ED,{actionTitle:"Sign into GitHub Enterprise",onAction:this.onEnterpriseSignIn},Ae.createElement("div",null,"如果您有GitHub Enterprise或AE帐户请登录该帐户以访问您的存储库。"));default:return ct(0,`Unknown sign in type: ${e}`)}}logout=e=>()=>{this.props.onLogout(e)}}class cL extends Ae.Component{constructor(e){super(e),this.state={optOutOfUsageTracking:this.props.optOutOfUsageTracking,canUseWindowsSSH:!1,useExternalCredentialHelper:this.props.useExternalCredentialHelper}}componentDidMount(){this.checkSSHAvailability()}async checkSSHAvailability(){this.setState({canUseWindowsSSH:await sd()})}onReportingOptOutChanged=e=>{const t=!e.currentTarget.checked;this.setState({optOutOfUsageTracking:t}),this.props.onOptOutofReportingChanged(t)};onUseExternalCredentialHelperChanged=e=>{const t=e.currentTarget.checked;this.setState({useExternalCredentialHelper:t}),this.props.onUseExternalCredentialHelperChanged(t)};onRepositoryIndicatorsEnabledChanged=e=>{this.props.onRepositoryIndicatorsEnabledChanged(e.currentTarget.checked)};onUseWindowsOpenSSHChanged=e=>{this.props.onUseWindowsOpenSSHChanged(e.currentTarget.checked)};reportDesktopUsageLabel(){return Ae.createElement("span",null,"帮助GitHub Desktop改进允许提交"," ",Ae.createElement(Hx,{uri:yT},"使用状态"))}render(){return Ae.createElement(nD,null,Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"后台更新"),Ae.createElement(uA,{label:"Show status icons in the repository list",value:this.props.repositoryIndicatorsEnabled?cA.On:cA.Off,onChange:this.onRepositoryIndicatorsEnabledChanged,ariaDescribedBy:"periodic-fetch-description"}),Ae.createElement("div",{id:"periodic-fetch-description",className:"git-settings-description"},Ae.createElement("p",null,"These icons indicate which repositories have local or remote changes, and require the periodic fetching of repositories that are not currently selected."),Ae.createElement("p",null,"Turning this off will not stop the periodic fetching of your currently selected repository, but may improve overall app performance for users with many repositories."))),Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"使用情况"),Ae.createElement(uA,{label:this.reportDesktopUsageLabel(),value:this.state.optOutOfUsageTracking?cA.Off:cA.On,onChange:this.onReportingOptOutChanged})),(this.state.canUseWindowsSSH,Ae.createElement("h2",null,"Network and credentials")),this.renderSSHSettings(),Ae.createElement("div",{className:"advanced-section"},Ae.createElement(uA,{label:"Use Git Credential Manager",value:this.state.useExternalCredentialHelper?cA.On:cA.Off,onChange:this.onUseExternalCredentialHelperChanged,ariaDescribedBy:"use-external-credential-helper-description"}),Ae.createElement("div",{id:"use-external-credential-helper-description",className:"git-settings-description"},Ae.createElement("p",null,"Use"," ",Ae.createElement(Hx,{uri:"https://gh.io/gcm"},"Git Credential Manager"," ")," ","for private repositories outside of GitHub.com. This feature is experimental and subject to change."))))}renderSSHSettings(){return this.state.canUseWindowsSSH?Ae.createElement("div",{className:"advanced-section"},Ae.createElement(uA,{label:"使用系统OpenSSH(推荐)",value:this.props.useWindowsOpenSSH?cA.On:cA.Off,onChange:this.onUseWindowsOpenSSHChanged})):null}}class uL extends Ae.Component{render(){return Ae.createElement(nD,null,this.renderGitConfigAuthorInfo(),this.renderDefaultBranchSetting())}renderGitConfigAuthorInfo(){return Ae.createElement(MD,{email:this.props.email,name:this.props.name,isLoadingGitConfig:this.props.isLoadingGitConfig,enterpriseAccount:this.props.enterpriseAccount,dotComAccount:this.props.dotComAccount,onEmailChanged:this.props.onEmailChanged,onNameChanged:this.props.onNameChanged})}renderDefaultBranchSetting(){return Ae.createElement("div",{className:"default-branch-component"},Ae.createElement("h2",{id:"default-branch-heading"},"新建存储库时默认分支"),Ae.createElement(yN,{initialValue:this.props.defaultBranch,onValueChange:this.props.onDefaultBranchChanged,ariaLabelledBy:"default-branch-heading",ariaDescribedBy:"default-branch-description",warningMessageVerb:"saved"}),Ae.createElement("p",{id:"default-branch-description",className:"git-settings-description"},"GitHub's default branch name is ",Ae.createElement(CD,null,"main"),". You may want to change it due to different workflows, or because your integrations still require the historical default branch name of ",Ae.createElement(CD,null,"master"),"."),Ae.createElement("p",{className:"git-settings-description"},"These preferences will"," ",this.props.selectedExternalEditor&&this.props.globalGitConfigPath?Ae.createElement(Hx,{onClick:this.openGlobalGitConfigInEditor},"edit your global Git config file"):"edit your global Git config file","."))}openGlobalGitConfigInEditor=()=>{this.props.globalGitConfigPath&&this.props.onOpenFileInExternalEditor(this.props.globalGitConfigPath)}}class hL extends Ae.Component{constructor(e){super(e);const t=e.selectedTheme!==Dp.System||!0;this.state={selectedTheme:t?e.selectedTheme:null,selectedTabSize:e.selectedTabSize,titleBarStyle:e.titleBarStyle},t||this.initializeSelectedTheme()}async componentDidUpdate(e){if(e===this.props)return;const t=(this.props.selectedTheme,Dp.System,this.props.selectedTheme),n=this.props.selectedTabSize;this.setState({selectedTheme:t,selectedTabSize:n})}initializeSelectedTheme=async()=>{const e=await Ip(),t=this.props.selectedTabSize;this.setState({selectedTheme:e,selectedTabSize:t})};onSelectedThemeChanged=e=>{this.props.onSelectedThemeChanged(e)};onSelectedTabSizeChanged=e=>{this.props.onSelectedTabSizeChanged(parseInt(e.currentTarget.value))};onSelectChanged=e=>{const t=e.currentTarget.value;this.setState({titleBarStyle:t}),this.props.onTitleBarStyleChanged(t)};renderThemeSwatch=e=>{const t=Pt(__dirname,"static/ghd_dark.svg"),n=Pt(__dirname,"static/ghd_light.svg");switch(e){case Dp.Light:return Ae.createElement("span",null,Ae.createElement("img",{src:n,alt:""}),Ae.createElement("span",{className:"theme-value-label"},"Light"));case Dp.Dark:return Ae.createElement("span",null,Ae.createElement("img",{src:t,alt:""}),Ae.createElement("span",{className:"theme-value-label"},"Dark"));case Dp.System:return Ae.createElement("span",null,Ae.createElement("span",{className:"system-theme-swatch"},Ae.createElement("img",{src:n,alt:""}),Ae.createElement("img",{src:n,alt:""}),Ae.createElement("img",{src:t,alt:""})),Ae.createElement("span",{className:"theme-value-label"},"System"))}};renderTitleBarStyleDropdown(){const{titleBarStyle:e}=this.state,t=function(e){switch(e){case"custom":return"Uses the menu system provided by GitHub Desktop, hiding the default chrome provided by your window manager.";case"native":return"Uses the menu system and chrome provided by your window manager."}}(e);return Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"Title bar style"),Ae.createElement(Wx,{value:this.state.titleBarStyle,onChange:this.onSelectChanged},Ae.createElement("option",{value:"native"},"Native"),Ae.createElement("option",{value:"custom"},"Custom")),Ae.createElement("div",{className:"git-settings-description"},t))}renderSelectedTheme(){const{selectedTheme:e}=this.state;if(null==e)return Ae.createElement(GT,null,"加载系统主题");const t=[Dp.Light,Dp.Dark,Dp.System];return Ae.createElement("div",{className:"appearance-section"},Ae.createElement("h2",{id:"theme-heading"},"Theme"),Ae.createElement(GT,null,Ae.createElement(AD,{ariaLabelledBy:"theme-heading",className:"theme-selector",selectedKey:e,radioButtonKeys:t,onSelectionChanged:this.onSelectedThemeChanged,renderRadioButtonLabelContents:this.renderThemeSwatch})))}renderSelectedTabSize(){return Ae.createElement("div",{className:"appearance-section"},Ae.createElement("h2",{id:"diff-heading"},"Diff"),Ae.createElement(Wx,{value:this.state.selectedTabSize.toString(),label:"Tab size",onChange:this.onSelectedTabSizeChanged},[1,2,3,4,5,6,8,10,12].map((e=>Ae.createElement("option",{key:e,value:e},8===e?`${e} (default)`:e)))))}render(){return Ae.createElement(nD,null,this.renderSelectedTheme(),this.renderSelectedTabSize(),this.renderTitleBarStyleDropdown())}}class pL extends Ae.Component{pathInputRef=Ae.createRef();constructor(e){super(e),this.state={path:e.path,arguments:e.arguments,isValidPath:!1,showNonValidPathWarning:!1,isValidArgs:!1,showNonValidArgsError:!1,showNoRepoPathArgError:!1}}focus(){this.pathInputRef.current?.focus()}render(){return Ae.createElement("div",{className:"custom-integration-form-container"},Ae.createElement("div",{className:"custom-integration-form-path-container"},Ae.createElement(VT,{label:"Path",value:this.state.path,ref:this.pathInputRef,onValueChanged:this.onPathChanged,placeholder:"Path to executable",ariaDescribedBy:`${this.props.id}-custom-integration-path-error`}),Ae.createElement(mi,{onClick:this.onChoosePath},"选择…")),this.renderPathErrors(),Ae.createElement(VT,{label:"Arguments",value:this.state.arguments,onValueChanged:this.onParamsChanged,placeholder:"Command line arguments",ariaDescribedBy:`${this.props.id}-custom-integration-args-error`}),this.renderArgsErrors())}renderPathErrors(){if(this.state.isValidPath||!this.state.showNonValidPathWarning)return null;const e="This path does not appear to be a valid executable.";return Ae.createElement("div",{className:"custom-integration-form-error"},Ae.createElement(gN,{id:`${this.props.id}-custom-integration-path-error`,trackedUserInput:this.state.path,ariaLiveMessage:e},e))}renderArgsErrors(){if(this.state.isValidArgs||!this.state.showNoRepoPathArgError&&!this.state.showNonValidArgsError)return null;const e=this.state.showNonValidArgsError?"These arguments are not valid.":"Arguments must include the target path placeholder (%TARGET_PATH%).";return Ae.createElement("div",{className:"custom-integration-form-error"},Ae.createElement(gN,{id:`${this.props.id}-custom-integration-args-error`,trackedUserInput:this.state.path,ariaLiveMessage:e},e))}onChoosePath=async()=>{const e=await me({properties:["openFile"]});null!==e&&this.updatePath(e)};async updatePath(e){this.setState({path:e,isValidPath:!1});const t=await Mm(e);this.setState({isValidPath:t.isValid,showNonValidPathWarning:!t.isValid}),t.isValid&&this.props.onPathChanged(e,t.bundleID)}onPathChanged=e=>{this.updatePath(e)};updateArguments(e){try{const t=function(e){return function(e,t,n){var r,i=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=e,o=[];do{null!==(r=i.exec(s))&&o.push(Am(r[1],r[6],r[0]))}while(null!==r);return o}(e)}(e);if(!_m(t))return void this.setState({arguments:e,isValidArgs:!1,showNonValidArgsError:!1,showNoRepoPathArgError:!0});this.setState({arguments:e,isValidArgs:!0,showNonValidArgsError:!1,showNoRepoPathArgError:!1}),this.props.onArgumentsChanged(t)}catch(t){log.error("Failed to parse custom integration arguments:",t),this.setState({arguments:e,isValidArgs:!1,showNonValidArgsError:!0,showNoRepoPathArgError:!1})}}onParamsChanged=e=>{this.updateArguments(e)}}const dL="other";class mL extends Ae.Component{customEditorFormRef=Ae.createRef();customShellFormRef=Ae.createRef();constructor(e){super(e),this.state={selectedExternalEditor:this.props.selectedExternalEditor,selectedShell:this.props.selectedShell,useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell}}async componentWillReceiveProps(e){const t=e.availableEditors;let n=e.selectedExternalEditor;t.length&&-1===(n?t.indexOf(n):-1)&&(n=t[0],e.onSelectedEditorChanged(n));const r=e.availableShells;let i=e.selectedShell;r.length&&-1===r.indexOf(i)&&(i=r[0],e.onSelectedShellChanged(i)),this.setState({selectedExternalEditor:n,selectedShell:i})}componentDidUpdate(e,t){!t.useCustomEditor&&this.state.useCustomEditor&&this.customEditorFormRef.current?.focus(),!t.useCustomShell&&this.state.useCustomShell&&this.customShellFormRef.current?.focus()}onSelectedEditorChanged=e=>{const t=e.currentTarget.value;t&&(t===dL?(this.setState({useCustomEditor:!0}),this.props.onUseCustomEditorChanged(!0)):(this.setState({useCustomEditor:!1,selectedExternalEditor:t}),this.props.onUseCustomEditorChanged(!1),this.props.onSelectedEditorChanged(t)))};onSelectedShellChanged=e=>{const t=e.currentTarget.value;if(t)if(t===dL)this.setState({useCustomShell:!0}),this.props.onUseCustomShellChanged(!0);else{const e=ow(t);this.setState({useCustomShell:!1,selectedShell:e}),this.props.onSelectedShellChanged(e),this.props.onUseCustomShellChanged(!1)}};renderExternalEditor(){const e=this.props.availableEditors,{selectedExternalEditor:t,useCustomEditor:n}=this.state,r="外部编辑器";return nn()||0!==e.length?Ae.createElement(Wx,{label:nn()?void 0:r,"aria-label":"外部编辑器",value:n?dL:t??void 0,onChange:this.onSelectedEditorChanged},e.map((e=>Ae.createElement("option",{key:e,value:e},e))),nn()&&Ae.createElement("option",{key:dL,value:dL},"Configure custom editor…")):Ae.createElement("div",{className:"select-component no-options-found"},Ae.createElement("label",null,r),Ae.createElement("span",null,"找不到编辑器。"," ",Ae.createElement(Hx,{uri:cm},"安装 ",lm,"?")))}renderNoExternalEditorHint(){return this.props.availableEditors.length>0?null:Ae.createElement(GT,null,Ae.createElement("div",{className:"no-options-found"},Ae.createElement("span",null,"找不到编辑器。"," ",Ae.createElement(Hx,{uri:cm},"安装 ",lm,"?"))))}renderCustomExternalEditor(){return Ae.createElement(GT,null,Ae.createElement(pL,{id:"custom-editor",ref:this.customEditorFormRef,path:this.state.customEditor.path??"",arguments:this.state.customEditor.arguments.join(" ")??"",onPathChanged:this.onCustomEditorPathChanged,onArgumentsChanged:this.onCustomEditorArgumentsChanged}))}onCustomEditorPathChanged=(e,t)=>{const n={path:e,bundleID:t,arguments:this.state.customEditor.arguments??[]};this.setState({customEditor:n}),this.props.onCustomEditorChanged(n)};onCustomEditorArgumentsChanged=e=>{const t={path:this.state.customEditor.path??"",bundleID:this.state.customEditor.bundleID,arguments:e};this.setState({customEditor:t}),this.props.onCustomEditorChanged(t)};renderSelectedShell(){const e=this.props.availableShells,{selectedShell:t,useCustomShell:n}=this.state;return Ae.createElement(Wx,{label:nn()?void 0:"Shell","aria-label":"Shell",value:n?dL:t,onChange:this.onSelectedShellChanged},e.map((e=>Ae.createElement("option",{key:e,value:e},e))),nn()&&Ae.createElement("option",{key:dL,value:dL},"Configure custom shell…"))}renderCustomShell(){return Ae.createElement(GT,null,Ae.createElement(pL,{id:"custom-shell",ref:this.customShellFormRef,path:this.state.customShell.path??"",arguments:this.state.customShell.arguments.join(" ")??"",onPathChanged:this.onCustomShellPathChanged,onArgumentsChanged:this.onCustomShellArgumentsChanged}))}onCustomShellPathChanged=(e,t)=>{const n={path:e,bundleID:t,arguments:this.state.customShell.arguments??[]};this.setState({customShell:n}),this.props.onCustomShellChanged(n)};onCustomShellArgumentsChanged=e=>{const t={path:this.state.customShell.path??"",bundleID:this.state.customShell.bundleID,arguments:e};this.setState({customShell:t}),this.props.onCustomShellChanged(t)};render(){return nn()?Ae.createElement(nD,null,Ae.createElement("fieldset",null,Ae.createElement("legend",null,Ae.createElement("h2",null,"外部编辑器")),Ae.createElement(GT,null,this.renderExternalEditor()),this.renderNoExternalEditorHint(),this.state.useCustomEditor&&this.renderCustomExternalEditor()),Ae.createElement("fieldset",null,Ae.createElement("legend",null,Ae.createElement("h2",null,"Shell")),Ae.createElement(GT,null,this.renderSelectedShell()),this.state.useCustomShell&&this.renderCustomShell())):Ae.createElement(nD,null,Ae.createElement("h2",null,"应用"),Ae.createElement(GT,null,this.renderExternalEditor()),Ae.createElement(GT,null,this.renderSelectedShell()))}}class fL extends Ae.Component{constructor(e){super(e),this.state={confirmRepositoryRemoval:this.props.confirmRepositoryRemoval,confirmDiscardChanges:this.props.confirmDiscardChanges,confirmDiscardChangesPermanently:this.props.confirmDiscardChangesPermanently,confirmDiscardStash:this.props.confirmDiscardStash,confirmCheckoutCommit:this.props.confirmCheckoutCommit,confirmForcePush:this.props.confirmForcePush,confirmUndoCommit:this.props.confirmUndoCommit,uncommittedChangesStrategy:this.props.uncommittedChangesStrategy}}onConfirmDiscardChangesChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardChanges:t}),this.props.onConfirmDiscardChangesChanged(t)};onConfirmDiscardChangesPermanentlyChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardChangesPermanently:t}),this.props.onConfirmDiscardChangesPermanentlyChanged(t)};onConfirmDiscardStashChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardStash:t}),this.props.onConfirmDiscardStashChanged(t)};onConfirmCheckoutCommitChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmCheckoutCommit:t}),this.props.onConfirmCheckoutCommitChanged(t)};onConfirmForcePushChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmForcePush:t}),this.props.onConfirmForcePushChanged(t)};onConfirmUndoCommitChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmUndoCommit:t}),this.props.onConfirmUndoCommitChanged(t)};onConfirmRepositoryRemovalChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmRepositoryRemoval:t}),this.props.onConfirmRepositoryRemovalChanged(t)};onUncommittedChangesStrategyChanged=e=>{this.setState({uncommittedChangesStrategy:e}),this.props.onUncommittedChangesStrategyChanged(e)};onShowCommitLengthWarningChanged=e=>{this.props.onShowCommitLengthWarningChanged(e.currentTarget.checked)};renderSwitchBranchOptionLabel=e=>{switch(e){case zw.AskForConfirmation:return"询问我要更改的位置";case zw.MoveToNewBranch:return"始终将我的更改带到我的新分支";case zw.StashOnCurrentBranch:return"始终将更改保存并保留在当前分支上";default:return ct(0,`Unknown uncommitted changes strategy: ${e}`)}};renderSwitchBranchOptions=()=>{const e=[zw.AskForConfirmation,zw.MoveToNewBranch,zw.StashOnCurrentBranch],t=e.find((e=>e===this.state.uncommittedChangesStrategy))??zw.AskForConfirmation;return Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",{id:"switch-branch-heading"},"如果我有更改并切换分支..."),Ae.createElement(AD,{ariaLabelledBy:"switch-branch-heading",selectedKey:t,radioButtonKeys:e,onSelectionChanged:this.onUncommittedChangesStrategyChanged,renderRadioButtonLabelContents:this.renderSwitchBranchOptionLabel}))};render(){return Ae.createElement(nD,null,Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",{id:"show-confirm-dialog-heading"},"确认对话框"),Ae.createElement("div",{role:"group","aria-labelledby":"show-confirm-dialog-heading"},Ae.createElement(uA,{label:"删除仓库",value:this.state.confirmRepositoryRemoval?cA.On:cA.Off,onChange:this.onConfirmRepositoryRemovalChanged}),Ae.createElement(uA,{label:"放弃更改",value:this.state.confirmDiscardChanges?cA.On:cA.Off,onChange:this.onConfirmDiscardChangesChanged}),Ae.createElement(uA,{label:"永久放弃更改",value:this.state.confirmDiscardChangesPermanently?cA.On:cA.Off,onChange:this.onConfirmDiscardChangesPermanentlyChanged}),Ae.createElement(uA,{label:"放弃暂存",value:this.state.confirmDiscardStash?cA.On:cA.Off,onChange:this.onConfirmDiscardStashChanged}),Ae.createElement(uA,{label:"Checking out a commit",value:this.state.confirmCheckoutCommit?cA.On:cA.Off,onChange:this.onConfirmCheckoutCommitChanged}),Ae.createElement(uA,{label:"强制推送",value:this.state.confirmForcePush?cA.On:cA.Off,onChange:this.onConfirmForcePushChanged}),Ae.createElement(uA,{label:"撤消提交",value:this.state.confirmUndoCommit?cA.On:cA.Off,onChange:this.onConfirmUndoCommitChanged}))),this.renderSwitchBranchOptions(),Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"Commit Length"),Ae.createElement(uA,{label:"Show commit length warning",value:this.props.showCommitLengthWarning?cA.On:cA.Off,onChange:this.onShowCommitLengthWarningChanged})))}}class gL extends Ae.Component{constructor(e){super(e),this.state={suggestGrantNotificationPermission:!1,warnNotificationsDenied:!1,suggestConfigureNotifications:!1}}componentDidMount(){this.updateNotificationsState()}onNotificationsEnabledChanged=e=>{this.props.onNotificationsEnabledChanged(e.currentTarget.checked)};render(){return Ae.createElement(nD,null,Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"通知"),Ae.createElement(uA,{label:"启用通知",value:this.props.notificationsEnabled?cA.On:cA.Off,onChange:this.onNotificationsEnabledChanged}),Ae.createElement("p",{className:"git-settings-description"},"允许在当前仓库中发生高级事件时显示通知。",this.renderNotificationHint())))}onGrantNotificationPermission=async()=>{await Ce(),this.updateNotificationsState()};async updateNotificationsState(){const e=await ve();this.setState({suggestGrantNotificationPermission:(0,qb.YF)()&&"default"===e,warnNotificationsDenied:"denied"===e,suggestConfigureNotifications:"granted"===e})}renderNotificationHint(){if(!(0,qb.VB)()||!this.props.notificationsEnabled)return null;const{suggestGrantNotificationPermission:e,warnNotificationsDenied:t,suggestConfigureNotifications:n}=this.state;if(e)return Ae.createElement(Ae.Fragment,null," ","你需要"," ",Ae.createElement(Hx,{onClick:this.onGrantNotificationPermission},"grant permission")," ","从GitHub DeskTop显示这些通知");const r=(0,qb.Y4)();if(null===r)return null;if(t)return Ae.createElement("div",{className:"setting-hint-warning"},Ae.createElement("span",{className:"warning-icon"},"⚠️")," GitHub DeskTop没有显示通知的权限。请在设置中启用它们"," ",Ae.createElement(Hx,{uri:r},"通知设置"),".");const i=n?"properly configured":"允许";return Ae.createElement(Ae.Fragment,null," ","确认GitHub DeskTop ",i," 向你发出通知"," ",Ae.createElement(Hx,{uri:r},"通知设置"),".")}}class yL extends Ae.Component{constructor(e){super(e)}render(){return Ae.createElement(nD,null,Ae.createElement("div",{className:"advanced-section"},Ae.createElement("h2",null,"Accessibility"),Ae.createElement(uA,{label:"Underline links",value:this.props.underlineLinks?cA.On:cA.Off,onChange:this.onUnderlineLinksChanged,ariaDescribedBy:"underline-setting-description"}),Ae.createElement("p",{id:"underline-setting-description",className:"git-settings-description"},"When enabled, GitHub Desktop will underline links in commit messages, comments, and other text fields. This can help make links easier to distinguish. ",this.renderExampleLink()),Ae.createElement(uA,{label:"Show check marks in the diff",value:this.props.showDiffCheckMarks?cA.On:cA.Off,onChange:this.onShowDiffCheckMarksChanged,ariaDescribedBy:"diff-checkmarks-setting-description"}),Ae.createElement("p",{id:"diff-checkmarks-setting-description",className:"git-settings-description"},"When enabled, check marks will be displayed along side the line numbers and groups of line numbers in the diff when committing. When disabled, the line number controls will be less prominent.")))}renderExampleLink(){const e={textDecoration:this.props.underlineLinks?"underline":"none"};return Ae.createElement("span",{className:"link-button-component",style:e},"This is an example link")}onUnderlineLinksChanged=e=>{this.props.onUnderlineLinksChanged(e.currentTarget.checked)};onShowDiffCheckMarksChanged=e=>{this.props.onShowDiffCheckMarksChanged(e.currentTarget.checked)}}const wL={path:"",bundleID:void 0,arguments:[xm]};class bL extends Ae.Component{constructor(e){super(e),this.state={selectedIndex:this.props.initialSelectedTab||Fr.Accounts,committerName:"",committerEmail:"",defaultBranch:"",initialCommitterName:null,initialCommitterEmail:null,initialDefaultBranch:null,disallowedCharactersMessage:null,availableEditors:[],useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor??wL,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell??wL,useWindowsOpenSSH:!1,showCommitLengthWarning:!1,notificationsEnabled:!0,optOutOfUsageTracking:!1,useExternalCredentialHelper:!1,confirmRepositoryRemoval:!1,confirmDiscardChanges:!1,confirmDiscardChangesPermanently:!1,confirmDiscardStash:!1,confirmCheckoutCommit:!1,confirmForcePush:!1,confirmUndoCommit:!1,uncommittedChangesStrategy:jw,selectedExternalEditor:this.props.selectedExternalEditor,availableShells:[],selectedShell:this.props.selectedShell,titleBarStyle:this.props.titleBarStyle,repositoryIndicatorsEnabled:this.props.repositoryIndicatorsEnabled,initiallySelectedTheme:this.props.selectedTheme,initiallySelectedTabSize:this.props.selectedTabSize,isLoadingGitConfig:!0,globalGitConfigPath:null,underlineLinks:this.props.underlineLinks,showDiffCheckMarks:this.props.showDiffCheckMarks}}async componentWillMount(){const e=await Fd("user.name"),t=await Fd("user.email"),n=await bg();let r=e,i=t;if(!r||!i){const e=this.props.dotComAccount||this.props.enterpriseAccount;e&&(r||(r=e.login),i||(i=hb(e)))}r=r||"",i=i||"";const[s,o]=await Promise.all([Rm(),aw()]),a=s.map((e=>e.editor))??null,l=o.map((e=>e.shell))??null,c=await Zd();this.setState({committerName:r,committerEmail:i,defaultBranch:n,initialCommitterName:e,initialCommitterEmail:t,initialDefaultBranch:n,useWindowsOpenSSH:this.props.useWindowsOpenSSH,showCommitLengthWarning:this.props.showCommitLengthWarning,notificationsEnabled:this.props.notificationsEnabled,optOutOfUsageTracking:this.props.optOutOfUsageTracking,useExternalCredentialHelper:this.props.useExternalCredentialHelper,confirmRepositoryRemoval:this.props.confirmRepositoryRemoval,confirmDiscardChanges:this.props.confirmDiscardChanges,confirmDiscardChangesPermanently:this.props.confirmDiscardChangesPermanently,confirmDiscardStash:this.props.confirmDiscardStash,confirmCheckoutCommit:this.props.confirmCheckoutCommit,confirmForcePush:this.props.confirmForcePush,confirmUndoCommit:this.props.confirmUndoCommit,uncommittedChangesStrategy:this.props.uncommittedChangesStrategy,availableShells:l,availableEditors:a,useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor??wL,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell??wL,isLoadingGitConfig:!1,globalGitConfigPath:c})}onCancel=()=>{this.state.initiallySelectedTheme!==this.props.selectedTheme&&this.onSelectedThemeChanged(this.state.initiallySelectedTheme),this.state.initiallySelectedTabSize!==this.props.selectedTabSize&&this.onSelectedTabSizeChanged(this.state.initiallySelectedTabSize),this.props.onDismissed()};render(){return Ae.createElement(aD,{id:"preferences",title:"选项",onDismissed:this.onCancel,onSubmit:this.onSave},Ae.createElement("div",{className:"preferences-container"},this.renderDisallowedCharactersError(),Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedIndex,type:gD.Vertical},Ae.createElement("span",{id:this.getTabId(Fr.Accounts)},Ae.createElement(yi,{className:"icon",symbol:pa}),"帐户"),Ae.createElement("span",{id:this.getTabId(Fr.Integrations)},Ae.createElement(yi,{className:"icon",symbol:Sl}),"集成"),Ae.createElement("span",{id:this.getTabId(Fr.Git)},Ae.createElement(yi,{className:"icon",symbol:Yo}),"Git"),Ae.createElement("span",{id:this.getTabId(Fr.Appearance)},Ae.createElement(yi,{className:"icon",symbol:fl}),"主题"),Ae.createElement("span",{id:this.getTabId(Fr.Notifications)},Ae.createElement(yi,{className:"icon",symbol:Ni}),"通知"),Ae.createElement("span",{id:this.getTabId(Fr.Prompts)},Ae.createElement(yi,{className:"icon",symbol:Bl}),"提示"),Ae.createElement("span",{id:this.getTabId(Fr.Advanced)},Ae.createElement(yi,{className:"icon",symbol:zo}),"高级"),tn()&&Ae.createElement("span",{id:this.getTabId(Fr.Accessibility)},Ae.createElement(yi,{className:"icon",symbol:wi}),"Accessibility")),this.renderActiveTab()),this.renderFooter())}getTabId=e=>{let t;switch(e){case Fr.Accounts:t="accounts";break;case Fr.Integrations:t="integrations";break;case Fr.Git:t="git";break;case Fr.Appearance:t="appearance";break;case Fr.Notifications:t="notifications";break;case Fr.Prompts:t="prompts";break;case Fr.Advanced:t="advanced";break;case Fr.Accessibility:t="accessibility";break;default:return ct(0,`Unknown tab type: ${e}`)}return`preferences-tab-${t}`};onDotComSignIn=()=>{this.props.onDismissed(),this.props.dispatcher.showDotComSignInDialog()};onEnterpriseSignIn=()=>{this.props.onDismissed(),this.props.dispatcher.showEnterpriseSignInDialog()};onLogout=e=>{this.props.dispatcher.removeAccount(e)};renderDisallowedCharactersError(){const e=this.state.disallowedCharactersMessage;return null!=e?Ae.createElement(lD,null,e):null}renderActiveTab(){const e=this.state.selectedIndex;let t;switch(e){case Fr.Accounts:t=Ae.createElement(lL,{dotComAccount:this.props.dotComAccount,enterpriseAccount:this.props.enterpriseAccount,onDotComSignIn:this.onDotComSignIn,onEnterpriseSignIn:this.onEnterpriseSignIn,onLogout:this.onLogout});break;case Fr.Integrations:t=Ae.createElement(mL,{availableEditors:this.state.availableEditors,selectedExternalEditor:this.state.selectedExternalEditor,onSelectedEditorChanged:this.onSelectedEditorChanged,availableShells:this.state.availableShells,selectedShell:this.state.selectedShell,useCustomEditor:this.state.useCustomEditor,customEditor:this.state.customEditor,useCustomShell:this.state.useCustomShell,customShell:this.state.customShell,onSelectedShellChanged:this.onSelectedShellChanged,onUseCustomEditorChanged:this.onUseCustomEditorChanged,onCustomEditorChanged:this.onCustomEditorChanged,onUseCustomShellChanged:this.onUseCustomShellChanged,onCustomShellChanged:this.onCustomShellChanged});break;case Fr.Git:{const{existingLockFilePath:e}=this.state,n=void 0!==e?Ae.createElement(lD,null,Ae.createElement(ON,{lockFilePath:e,onLockFileDeleted:this.onLockFileDeleted,onError:this.onLockFileDeleteError})):null;t=Ae.createElement(Ae.Fragment,null,n,Ae.createElement(uL,{name:this.state.committerName,email:this.state.committerEmail,defaultBranch:this.state.defaultBranch,dotComAccount:this.props.dotComAccount,enterpriseAccount:this.props.enterpriseAccount,onNameChanged:this.onCommitterNameChanged,onEmailChanged:this.onCommitterEmailChanged,onDefaultBranchChanged:this.onDefaultBranchChanged,isLoadingGitConfig:this.state.isLoadingGitConfig,selectedExternalEditor:this.props.selectedExternalEditor,onOpenFileInExternalEditor:this.props.onOpenFileInExternalEditor,globalGitConfigPath:this.state.globalGitConfigPath}));break}case Fr.Appearance:t=Ae.createElement(hL,{selectedTheme:this.props.selectedTheme,onSelectedThemeChanged:this.onSelectedThemeChanged,selectedTabSize:this.props.selectedTabSize,onSelectedTabSizeChanged:this.onSelectedTabSizeChanged,titleBarStyle:this.props.titleBarStyle,onTitleBarStyleChanged:this.onTitleBarStyleChanged});break;case Fr.Notifications:t=Ae.createElement(gL,{notificationsEnabled:this.state.notificationsEnabled,onNotificationsEnabledChanged:this.onNotificationsEnabledChanged});break;case Fr.Prompts:t=Ae.createElement(fL,{confirmRepositoryRemoval:this.state.confirmRepositoryRemoval,confirmDiscardChanges:this.state.confirmDiscardChanges,confirmDiscardChangesPermanently:this.state.confirmDiscardChangesPermanently,confirmDiscardStash:this.state.confirmDiscardStash,confirmCheckoutCommit:this.state.confirmCheckoutCommit,confirmForcePush:this.state.confirmForcePush,confirmUndoCommit:this.state.confirmUndoCommit,onConfirmRepositoryRemovalChanged:this.onConfirmRepositoryRemovalChanged,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesChanged,onConfirmDiscardStashChanged:this.onConfirmDiscardStashChanged,onConfirmCheckoutCommitChanged:this.onConfirmCheckoutCommitChanged,onConfirmForcePushChanged:this.onConfirmForcePushChanged,onConfirmDiscardChangesPermanentlyChanged:this.onConfirmDiscardChangesPermanentlyChanged,onConfirmUndoCommitChanged:this.onConfirmUndoCommitChanged,uncommittedChangesStrategy:this.state.uncommittedChangesStrategy,onUncommittedChangesStrategyChanged:this.onUncommittedChangesStrategyChanged,showCommitLengthWarning:this.state.showCommitLengthWarning,onShowCommitLengthWarningChanged:this.onShowCommitLengthWarningChanged});break;case Fr.Advanced:t=Ae.createElement(cL,{useWindowsOpenSSH:this.state.useWindowsOpenSSH,optOutOfUsageTracking:this.state.optOutOfUsageTracking,useExternalCredentialHelper:this.state.useExternalCredentialHelper,repositoryIndicatorsEnabled:this.state.repositoryIndicatorsEnabled,onUseWindowsOpenSSHChanged:this.onUseWindowsOpenSSHChanged,onOptOutofReportingChanged:this.onOptOutofReportingChanged,onUseExternalCredentialHelperChanged:this.onUseExternalCredentialHelperChanged,onRepositoryIndicatorsEnabledChanged:this.onRepositoryIndicatorsEnabledChanged});break;case Fr.Accessibility:t=Ae.createElement(yL,{underlineLinks:this.state.underlineLinks,showDiffCheckMarks:this.state.showDiffCheckMarks,onShowDiffCheckMarksChanged:this.onShowDiffCheckMarksChanged,onUnderlineLinksChanged:this.onUnderlineLinksChanged});break;default:return ct(0,`Unknown tab index: ${e}`)}return Ae.createElement("div",{className:"tab-container",role:"tabpanel","aria-labelledby":this.getTabId(e)},t)}onRepositoryIndicatorsEnabledChanged=e=>{this.setState({repositoryIndicatorsEnabled:e})};onLockFileDeleted=()=>{this.setState({existingLockFilePath:void 0})};onLockFileDeleteError=e=>{this.props.dispatcher.postError(e)};onUseWindowsOpenSSHChanged=e=>{this.setState({useWindowsOpenSSH:e})};onShowCommitLengthWarningChanged=e=>{this.setState({showCommitLengthWarning:e})};onNotificationsEnabledChanged=e=>{this.setState({notificationsEnabled:e})};onOptOutofReportingChanged=e=>{this.setState({optOutOfUsageTracking:e})};onUseExternalCredentialHelperChanged=e=>{this.setState({useExternalCredentialHelper:e})};onConfirmRepositoryRemovalChanged=e=>{this.setState({confirmRepositoryRemoval:e})};onConfirmDiscardChangesChanged=e=>{this.setState({confirmDiscardChanges:e})};onConfirmDiscardStashChanged=e=>{this.setState({confirmDiscardStash:e})};onConfirmCheckoutCommitChanged=e=>{this.setState({confirmCheckoutCommit:e})};onConfirmDiscardChangesPermanentlyChanged=e=>{this.setState({confirmDiscardChangesPermanently:e})};onConfirmForcePushChanged=e=>{this.setState({confirmForcePush:e})};onConfirmUndoCommitChanged=e=>{this.setState({confirmUndoCommit:e})};onUncommittedChangesStrategyChanged=e=>{this.setState({uncommittedChangesStrategy:e})};onCommitterNameChanged=e=>{this.setState({committerName:e,disallowedCharactersMessage:ND(e)?null:LD})};onCommitterEmailChanged=e=>{this.setState({committerEmail:e})};onDefaultBranchChanged=e=>{this.setState({defaultBranch:e})};onSelectedEditorChanged=e=>{this.setState({selectedExternalEditor:e})};onSelectedShellChanged=e=>{this.setState({selectedShell:e})};onUseCustomEditorChanged=e=>{this.setState({useCustomEditor:e})};onCustomEditorChanged=e=>{this.setState({customEditor:e})};onUseCustomShellChanged=e=>{this.setState({useCustomShell:e})};onCustomShellChanged=e=>{this.setState({customShell:e})};onSelectedThemeChanged=e=>{this.props.dispatcher.setSelectedTheme(e)};onUnderlineLinksChanged=e=>{this.setState({underlineLinks:e})};onShowDiffCheckMarksChanged=e=>{this.setState({showDiffCheckMarks:e})};onSelectedTabSizeChanged=e=>{this.props.dispatcher.setSelectedTabSize(e)};onTitleBarStyleChanged=e=>{this.setState({titleBarStyle:e})};renderFooter(){const e=null!=this.state.disallowedCharactersMessage;return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"保存",okButtonDisabled:e}))}onSave=async()=>{const{dispatcher:e}=this.props;try{let t=!1;this.state.committerName!==this.state.initialCommitterName&&(await Wd("user.name",this.state.committerName),t=!0),this.state.committerEmail!==this.state.initialCommitterEmail&&(await Wd("user.email",this.state.committerEmail),t=!0),null!==this.props.repository&&t&&e.refreshAuthor(this.props.repository),this.state.defaultBranch.length>0&&this.state.defaultBranch!==this.state.initialDefaultBranch&&await async function(e){return Wd(wg,e)}(this.state.defaultBranch),this.props.repositoryIndicatorsEnabled!==this.state.repositoryIndicatorsEnabled&&e.setRepositoryIndicatorsEnabled(this.state.repositoryIndicatorsEnabled)}catch(t){if(Pd(t)){const e=Od(t.result);if(null!==e)return void this.setState({existingLockFilePath:e,selectedIndex:Fr.Git})}return this.props.onDismissed(),void e.postError(t)}e.setUseWindowsOpenSSH(this.state.useWindowsOpenSSH),e.setShowCommitLengthWarning(this.state.showCommitLengthWarning),e.setNotificationsEnabled(this.state.notificationsEnabled),await e.setStatsOptOut(this.state.optOutOfUsageTracking,!1);const{useCustomEditor:t,customEditor:n,useCustomShell:r,customShell:i}=this.state,s=n&&await Pm(n);e.setUseCustomEditor(t&&s),s&&e.setCustomEditor(n);const o=i&&await Pm(i);e.setUseCustomShell(r&&o),o&&e.setCustomShell(i),this.props.useExternalCredentialHelper!==this.state.useExternalCredentialHelper&&e.setUseExternalCredentialHelper(this.state.useExternalCredentialHelper),await e.setConfirmRepoRemovalSetting(this.state.confirmRepositoryRemoval),await e.setConfirmForcePushSetting(this.state.confirmForcePush),await e.setConfirmDiscardStashSetting(this.state.confirmDiscardStash),await e.setConfirmCheckoutCommitSetting(this.state.confirmCheckoutCommit),await e.setConfirmUndoCommitSetting(this.state.confirmUndoCommit),this.state.selectedExternalEditor&&await e.setExternalEditor(this.state.selectedExternalEditor),await e.setShell(this.state.selectedShell),await e.setConfirmDiscardChangesSetting(this.state.confirmDiscardChanges),await e.setConfirmDiscardChangesPermanentlySetting(this.state.confirmDiscardChangesPermanently),await e.setTitleBarStyle(this.state.titleBarStyle),await e.setUncommittedChangesStrategySetting(this.state.uncommittedChangesStrategy),e.setUnderlineLinksSetting(this.state.underlineLinks),e.setDiffCheckMarksSetting(this.state.showDiffCheckMarks),this.props.onDismissed()};onTabClicked=e=>{this.setState({selectedIndex:e})}}class vL extends Ae.Component{constructor(e){super(e)}render(){return Ae.createElement(aD,{dismissDisabled:!0,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"Restart GitHub Desktop to apply the title bar settings change?")),this.renderFooter())}renderFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"Restart",cancelButtonText:"暂不",onCancelButtonClick:this.onNotNow}))}onNotNow=()=>{this.props.onDismissed()};onSubmit=async()=>{this.props.onDismissed(),W()}}function CL(e){return e.indexOf("\r")<0?e:e.split("\n").map((e=>e.split("\r").reduce(((e,t)=>t.length>=e.length?t:t+e.substring(t.length))))).join("\n")}class SL extends Ae.Component{dialogContent=null;formatGitErrorMessage=Tr(CL);constructor(e){super(e),this.state={error:e.error,disabled:!1}}componentWillReceiveProps(e){const t=e.error;t!==this.state.error&&this.setState({error:t,disabled:!1})}showPreferencesDialog=()=>{this.props.onDismissed(),window.setTimeout((()=>{this.props.onShowPopup({type:dh.Preferences})}),uH.exit)};onRetryAction=e=>{e.preventDefault(),this.props.onDismissed();const{error:t}=this.state;if(null!==t&&kL(t)){const{retryAction:e}=t.metadata;void 0!==e&&this.props.onRetryAction(e)}};renderErrorMessage(e){const t=EL(e);if(RL(t)){const e=this.formatGitErrorMessage(t.message);return Ae.createElement("p",{className:"monospace"},e)}return Ae.createElement("p",null,t.message)}getTitle(e){return TL(e)?"Clone failed":"Error"}renderContentAfterErrorMessage(e){if(!kL(e))return;const{retryAction:t}=e.metadata;return t&&t.type===mt.Clone?Ae.createElement("p",null,"Would you like to retry cloning ",Ae.createElement(CD,null,t.name),"?"):void 0}onDialogContentRef=e=>{this.dialogContent=e};scrollToBottomOfGitErrorMessage(){null!==this.dialogContent&&null!==this.state.error&&RL(EL(this.state.error))&&(this.dialogContent.scrollTop=this.dialogContent.scrollHeight)}componentDidMount(){this.scrollToBottomOfGitErrorMessage()}componentDidUpdate(e,t){t.error!==this.state.error&&this.scrollToBottomOfGitErrorMessage()}onCloseButtonClick=e=>{e.preventDefault(),this.props.onDismissed()};renderFooter(e){if(TL(e))return this.renderRetryCloneFooter();const t=EL(e);if(function(e){return e instanceof Dd}(t)){const{gitError:e}=t.result;if(null!==e&&Md(e))return this.renderOpenPreferencesFooter()}return this.renderDefaultFooter()}renderRetryCloneFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "重试克隆",onOkButtonClick:this.onRetryAction,onCancelButtonClick:this.onCloseButtonClick}))}renderOpenPreferencesFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"关闭",onOkButtonClick:this.onCloseButtonClick,cancelButtonText: "打开选项",onCancelButtonClick:this.showPreferencesDialog}))}renderDefaultFooter(){return Ae.createElement(hD,{onButtonClick:this.onCloseButtonClick})}render(){const e=this.state.error;return e?Ae.createElement(aD,{id:"app-error",type:"error",key:"error",title:this.getTitle(e),backdropDismissable:!1,onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed,disabled:this.state.disabled,className:RL(this.state.error)?"raw-git-error":void 0,role:"alertdialog",ariaDescribedBy:"app-error-description"},Ae.createElement(nD,{onRef:this.onDialogContentRef},Ae.createElement("div",{id:"app-error-description"},this.renderErrorMessage(e),this.renderContentAfterErrorMessage(e))),this.renderFooter(e)):null}}function EL(e){return kL(e)?e.underlyingError:e}function kL(e){return e instanceof gt}function RL(e){if(!e)return!1;const t=EL(e);return t instanceof Dd&&t.isRawMessage}function TL(e){if(!kL(e))return!1;const{retryAction:t}=e.metadata;return void 0!==t&&t.type===mt.Clone}class AL extends Ae.Component{constructor(e){super(e),this.state={isPathUnsafe:!1,isTrustingPath:!1}}onTrustDirectory=async()=>{this.setState({isTrustingPath:!0});const{unsafePath:e}=this.state,{repository:t}=this.props;if(e){await qd(e);const n=await Vg(t.path);this.setState({isTrustingPath:!1}),"unsafe"!==n.kind&&this.checkAgain()}};async componentDidMount(){this.updateUnsafePathState()}async componentDidUpdate(e){e.repository.path!==this.props.repository.path&&this.updateUnsafePathState()}updateUnsafePathState=async()=>{const{path:e}=this.props.repository,t=await Vg(e);e===this.props.repository.path&&this.setState({isPathUnsafe:"unsafe"===t.kind,unsafePath:"unsafe"===t.kind?t.path:void 0})};render(){const e=new Array,{isPathUnsafe:t,unsafePath:n}=this.state;return t?e.push(Ae.createElement(mi,{key:"trustDirectory",onClick:this.onTrustDirectory,type:"submit",disabled:this.state.isTrustingPath},this.state.isTrustingPath&&Ae.createElement(Dx,null),"Trust repository")):(e.push(Ae.createElement(mi,{key:"locate",onClick:this.locate,type:"submit"},"Locate…")),this.canCloneAgain()&&e.push(Ae.createElement(mi,{key:"clone-again",onClick:this.cloneAgain},"Clone Again"))),e.push(Ae.createElement(mi,{key:"remove",onClick:this.remove},"Remove")),t?Ae.createElement(iA,{id:"missing-repository-view"},Ae.createElement("div",{className:"title-container"},Ae.createElement("div",{className:"title"},this.props.repository.name," is potentially unsafe"),Ae.createElement("div",{className:"details"},Ae.createElement("p",null,"The Git repository at ",Ae.createElement(CD,null,n)," appears to be owned by another user on your machine. Adding untrusted repositories may automatically execute files in the repository."),Ae.createElement("p",null,"If you trust the owner of the directory you can add an exception for this directory in order to continue."))),Ae.createElement(GT,null,e)):Ae.createElement(iA,{id:"missing-repository-view"},Ae.createElement("div",{className:"title-container"},Ae.createElement("div",{className:"title"},"Can't find \"",this.props.repository.name,'"'),Ae.createElement("div",{className:"details"},"It was last seen at"," ",Ae.createElement("span",{className:"path"},this.props.repository.path),"."," ",Ae.createElement(Hx,{onClick:this.checkAgain},"Check again."))),Ae.createElement(GT,null,e))}canCloneAgain(){const e=this.props.repository.gitHubRepository;return e&&e.cloneURL}checkAgain=()=>{this.props.dispatcher.refreshRepository(this.props.repository)};remove=()=>{this.props.dispatcher.removeRepository(this.props.repository,!1)};locate=()=>{this.props.dispatcher.relocateRepository(this.props.repository)};cloneAgain=async()=>{const e=this.props.repository.gitHubRepository;if(!e)return;const t=e.cloneURL;if(t)try{await this.props.dispatcher.cloneAgain(t,this.props.repository.path)}catch(e){this.props.dispatcher.postError(e)}}}var xL=n(4143),DL=n.n(xL);const _L=new RegExp(["\ud83c[\udf00-\udfff]","\ud83d[\udc00-\ude4f]","\ud83d[\ude80-\udeff]"].join("|"),"g");function ML(e){return e.replace(_L,"-").replace(/[^\w.-]/g,"-")}const PL=".gitignore",IL=t.join(__dirname,"static","gitignore");let OL=null;async function NL(){if(null!=OL)return OL;{const e=(await(0,b.readdir)(IL)).filter((e=>e.endsWith(PL)));OL=new Map;for(const n of e)OL.set(t.basename(n,PL),t.join(IL,n));return OL}}let LL=null;function BL(e,t,n){const r=new RegExp(`\\[${t}\\]`,"g"),i=e.replace(r,`{${t}}`),s=new RegExp(`\\{${t}\\}`,"g");return i.replace(s,n)}const FL="None",HL={name:"None",featured:!1,body:"",hidden:!1},UL=async e=>{const n=await Vg(e).catch((e=>(log.error("Unable to determine repository type",e),{kind:"missing"})));return"unsafe"===n.kind?qg((0,t.join)(e,".git")):"missing"!==n.kind};class ZL extends Ae.Component{checkIsTopMostDialog=iD((()=>{this.updateReadMeExists(this.state.path,this.state.name),window.addEventListener("focus",this.onWindowFocus)}),(()=>{window.removeEventListener("focus",this.onWindowFocus)}));constructor(e){super(e);const n=this.props.initialPath?this.props.initialPath:null,r=this.props.initialPath?ML(t.basename(this.props.initialPath)):"";this.state={path:n,name:r,description:"",createWithReadme:!1,creating:!1,gitIgnoreNames:null,gitIgnore:FL,licenses:null,license:HL.name,isValidPath:null,isRepository:!1,readMeExists:!1},null===n&&this.initializePath()}async componentDidMount(){this.checkIsTopMostDialog(this.props.isTopMost);const e=await async function(){const e=await NL();return Array.from(e.keys())}(),n=await async function(){if(null!=LL)return LL;{const e=t.join(__dirname,"static","available-licenses.json"),n=await(0,b.readFile)(e,"utf8"),r=JSON.parse(n);return LL=r.sort(((e,t)=>e.featured?-1:t.featured?1:e.name.localeCompare(t.name))),LL}}();this.setState({gitIgnoreNames:e,licenses:n});const r=this.state.path??await ab();this.updateIsRepository(r,this.state.name),this.updateReadMeExists(r,this.state.name)}componentDidUpdate(){this.checkIsTopMostDialog(this.props.isTopMost)}componentWillUnmount(){this.checkIsTopMostDialog(!1)}initializePath=async()=>{const e=await ab();this.setState((t=>null===t.path?{path:e}:null))};onPathChanged=async e=>{this.setState({path:e,isValidPath:null,isRepository:!1}),this.updateIsRepository(e,this.state.name),this.updateReadMeExists(e,this.state.name)};onNameChanged=e=>{const{path:t}=this.state;this.setState({name:e}),null!==t&&(this.updateIsRepository(t,e),this.updateReadMeExists(this.state.path,e))};async updateIsRepository(e,n){const r=t.join(e,ML(n)),i=await UL(r);this.setState((t=>t.path===e&&t.name===n?{isRepository:i}:null))}onDescriptionChanged=e=>{this.setState({description:e})};showFilePicker=async()=>{const e=await me({properties:["createDirectory","openDirectory"]});null!==e&&(this.setState({path:e,isRepository:!1}),this.updateIsRepository(e,this.state.name))};async updateReadMeExists(e,n){if(!Xt()||null===e)return;const r=t.join(e,ML(n),"README.md"),i=await R(r);this.setState((t=>t.path===e?{readMeExists:i}:null))}resolveRepositoryRoot=async()=>{const e=this.state.path;if(null===e)return null;if(this.props.initialPath&&this.props.initialPath===e)try{return await(0,b.mkdir)(e,{recursive:!0}),e}catch{}return t.join(e,ML(this.state.name))};createRepository=async()=>{const e=await this.resolveRepositoryRoot();if(null===e)return void this.setState({isValidPath:!0});try{await(0,b.mkdir)(e,{recursive:!0}),this.setState({isValidPath:!0})}catch(t){return"EACCES"===t.code&&-13===t.errno?this.setState({isValidPath:!1}):(log.error(`createRepository: the directory at ${e} is not valid`,t),this.props.dispatcher.postError(t))}this.setState({creating:!0});try{await async function(e){await _d(["-c",`init.defaultBranch=${await bg()}`,"init"],e,"initGitRepository")}(e)}catch(t){return this.setState({creating:!1}),log.error(`createRepository: unable to initialize a Git repository at ${e}`,t),this.props.dispatcher.postError(t)}const n=await this.props.dispatcher.addRepositories([e]);if(n.length<1)return;const r=n[0];if(this.state.createWithReadme)try{await async function(e,n,r){const i=t.join(e,"README.md"),s=function(e,t){return void 0!==t?`# ${e}\n ${t}\n`:`# ${e}\n`}(n,r);await(0,b.writeFile)(i,s)}(e,this.state.name,this.state.description)}catch(t){log.error(`createRepository: unable to write README at ${e}`,t),this.props.dispatcher.postError(t)}const i=this.state.gitIgnore;if(i!==FL)try{await async function(e,n){const r=t.join(e,".gitignore"),i=await async function(e){const t=(await NL()).get(e);if(!t)throw new Error(`Unknown gitignore: ${e}. Only names returned from getGitIgnoreNames() can be used.`);return await(0,b.readFile)(t,"utf8")}(n);await(0,b.writeFile)(r,i)}(e,i)}catch(t){log.error(`createRepository: unable to write .gitignore file at ${e}`,t),this.props.dispatcher.postError(t)}const s=this.state.description;if(s)try{await async function(e,n){const r=t.join(e,Ag);await(0,b.writeFile)(r,n)}(e,s)}catch(t){log.error(`createRepository: unable to write .git/description file at ${e}`,t),this.props.dispatcher.postError(t)}const o=this.state.license===HL.name?null:this.state.license,a=(this.state.licenses||[]).find((e=>e.name===o));if(a)try{const n=await Ay(r);await async function(e,n,r){const i=t.join(e,"LICENSE"),s=function(e,t,n){let r=e;for(const e of["fullname","email","project","description","year"])r=BL(r,e,n[e]);return r}(n.body,0,r);await(0,b.writeFile)(i,s)}(e,a,{fullname:n?n.name:"",email:n?n.email:"",year:(new Date).getFullYear().toString(),description:"",project:this.state.name})}catch(t){log.error(`createRepository: unable to write LICENSE at ${e}`,t),this.props.dispatcher.postError(t)}try{const n=t.join(e,".gitattributes");await R(n)||await async function(e){const n=(0,t.join)(e,".gitattributes");await(0,b.writeFile)(n,"# Auto detect text files and perform LF normalization\n* text=auto\n")}(e)}catch(t){log.error(`createRepository: unable to write .gitattributes at ${e}`,t),this.props.dispatcher.postError(t)}const l=await Ry(r);if(null!==l){try{const e=l.workingDirectory.files;e.length>0&&await Tg(r,"Initial commit",e)}catch(t){log.error(`createRepository: initial commit failed at ${e}`,t),this.props.dispatcher.postError(t)}this.setState({creating:!1}),this.updateDefaultDirectory(),this.props.dispatcher.closeFoldout(et.Repository),this.props.dispatcher.selectRepository(r),this.props.dispatcher.recordCreateRepository(),this.props.onDismissed()}else this.props.dispatcher.postError(new Error("Unable to create the new repository because there are too many new files in this directory"))};updateDefaultDirectory=()=>{this.props.initialPath||null===this.state.path||lb(this.state.path)};onCreateWithReadmeChange=e=>{this.setState({createWithReadme:e.currentTarget.checked})};renderSanitizedName(){const e=ML(this.state.name);return this.state.name===e?null:Ae.createElement(fN,{id:"repo-sanitized-name-warning",trackedUserInput:this.state.name,ariaLiveMessage:`Will be created as ${e}. Spaces and invalid characters have been replaced by hyphens.`},Ae.createElement("p",null,"Will be created as ",e),Ae.createElement("span",{className:"sr-only"},"Spaces and invalid characters have been replaced by hyphens."))}onGitIgnoreChange=e=>{const t=e.currentTarget.value;this.setState({gitIgnore:t})};onLicenseChange=e=>{const t=e.currentTarget.value;this.setState({license:t})};renderGitIgnores(){const e=this.state.gitIgnoreNames||[],t=[FL,...e];return Ae.createElement(GT,null,Ae.createElement(Wx,{label:"Git ignore",value:this.state.gitIgnore,onChange:this.onGitIgnoreChange},t.map((e=>Ae.createElement("option",{key:e,value:e},e)))))}renderLicenses(){const e=this.state.licenses||[],t=[HL,...e.filter((e=>e.featured))],n=e.filter((e=>!e.featured));return Ae.createElement(GT,null,Ae.createElement(Wx,{label:"许可证",value:this.state.license,onChange:this.onLicenseChange},t.map((e=>Ae.createElement("option",{key:e.name,value:e.name},e.name))),Ae.createElement("option",{disabled:!0},"────────────────────"),n.map((e=>Ae.createElement("option",{key:e.name,value:e.name},e.name)))))}renderInvalidPathError(){const e=this.state.isValidPath;return null===e||e?null:Ae.createElement(lD,null,"Directory could not be created at this path. You may not have permissions to create a directory here.")}renderGitRepositoryError(){const e=this.state.isRepository;return this.state.path&&0!==this.state.path.length&&e?Ae.createElement(GT,null,Ae.createElement(gN,{id:"existing-repository-path-error",trackedUserInput:this.state.path+this.state.name,ariaLiveMessage:"This directory appears to be a Git repository. Would you like to add this repository instead?"},"This directory appears to be a Git repository. Would you like to"," ",Ae.createElement(Hx,{onClick:this.onAddRepositoryClicked},"add this repository")," ","instead?")):null}renderReadmeOverwriteWarning(){return Xt()?!1===this.state.createWithReadme||!1===this.state.readMeExists?null:Ae.createElement(GT,null,Ae.createElement(fN,{id:"readme-overwrite-warning",trackedUserInput:this.state.createWithReadme,ariaLiveMessage:"This directory contains a README.md file already. Checking\n this box will result in the existing file being overwritten."},"This directory contains a ",Ae.createElement(CD,null,"README.md")," file already. Checking this box will result in the existing file being overwritten.")):null}onAddRepositoryClicked=()=>{this.props.onDismissed();const{path:e,name:n}=this.state;null!==e&&this.props.dispatcher.showPopup({type:dh.AddRepository,path:t.join(e,ML(n))})};render(){const e=null===this.state.path||0===this.state.path.length||0===this.state.name.length||this.state.creating||this.state.isRepository,t=!!this.props.initialPath,n=null===this.state.path;return Ae.createElement(aD,{id:"create-repository",title:"新建存储库",loading:this.state.creating,onSubmit:this.createRepository,onDismissed:this.props.onDismissed},this.renderInvalidPathError(),Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(VT,{value:this.state.name,label: "名称",placeholder:"存储库名称",onValueChanged:this.onNameChanged,ariaDescribedBy:"existing-repository-path-error repo-sanitized-name-warning"})),this.renderSanitizedName(),Ae.createElement(GT,null,Ae.createElement(VT,{value:this.state.description,label: "描述",onValueChanged:this.onDescriptionChanged})),Ae.createElement(GT,null,Ae.createElement(VT,{value:this.state.path??"",label:"本地路径",placeholder:"存储库路径",onValueChanged:this.onPathChanged,disabled:t||n,ariaDescribedBy:"existing-repository-path-error"}),Ae.createElement(mi,{onClick:this.showFilePicker,disabled:t||n},"选择…")),this.renderGitRepositoryError(),Ae.createElement(GT,null,Ae.createElement(uA,{label:"添加README文件",value:this.state.createWithReadme?cA.On:cA.Off,onChange:this.onCreateWithReadmeChange,ariaDescribedBy:"readme-overwrite-warning"})),this.renderReadmeOverwriteWarning(),this.renderGitIgnores(),this.renderLicenses()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"新建存储库",okButtonDisabled:e||n})))}onWindowFocus=()=>{this.updateReadMeExists(this.state.path,this.state.name)}}class $L extends Ae.Component{constructor(e){super(e);const t=this.props.path?this.props.path:"";this.state={path:t,isRepository:!1,showNonGitRepositoryWarning:!1,isRepositoryBare:!1,isRepositoryUnsafe:!1,isTrustingRepository:!1}}async componentDidMount(){const{path:e}=this.state;0!==e.length&&await this.validatePath(e)}onTrustDirectory=async()=>{this.setState({isTrustingRepository:!0});const{repositoryUnsafePath:e,path:t}=this.state;e&&await qd(e),await this.validatePath(t),this.setState({isTrustingRepository:!1})};async updatePath(e){this.setState({path:e,isRepository:!1}),await this.validatePath(e)}async validatePath(e){if(0===e.length)return void this.setState({isRepository:!1,isRepositoryBare:!1,showNonGitRepositoryWarning:!1});const t=await Vg(e),n="missing"!==t.kind&&"unsafe"!==t.kind,r="unsafe"===t.kind,i="bare"===t.kind,s=!n||i,o="unsafe"===t.kind?t.path:void 0;this.setState((t=>e===t.path?{isRepository:n,isRepositoryBare:i,isRepositoryUnsafe:r,showNonGitRepositoryWarning:s,repositoryUnsafePath:o}:null))}buildBareRepositoryError(){if(!this.state.path.length||!this.state.showNonGitRepositoryWarning||!this.state.isRepositoryBare)return null;const e="This directory appears to be a bare repository. Bare repositories are not currently supported.";return{screenReaderMessage:e,displayedMessage:e}}buildRepositoryUnsafeError(){const{repositoryUnsafePath:e,path:t}=this.state;if(!this.state.path.length||!this.state.showNonGitRepositoryWarning||!this.state.isRepositoryUnsafe||void 0===e)return null;const n=t;return{screenReaderMessage:"The Git repository appears to be owned by another user on your machine.\n Adding untrusted repositories may automatically execute files in the repository.\n If you trust the owner of the directory you can add an exception for this directory in order to continue.",displayedMessage:Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"The Git repository",e!==n&&Ae.createElement(Ae.Fragment,null," at ",Ae.createElement(CD,null,e))," ","appears to be owned by another user on your machine. Adding untrusted repositories may automatically execute files in the repository."),Ae.createElement("p",null,"If you trust the owner of the directory you can",Ae.createElement(Hx,{onClick:this.onTrustDirectory}," ","add an exception for this directory")," ","in order to continue."))}}buildNotAGitRepositoryError(){return this.state.path.length&&this.state.showNonGitRepositoryWarning?{screenReaderMessage:"This directory does not appear to be a Git repository. Would you like to create a repository here instead?",displayedMessage:Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"This directory does not appear to be a Git repository."),Ae.createElement("p",null,"Would you like to"," ",Ae.createElement(Hx,{onClick:this.onCreateRepositoryClicked},"create a repository")," ","here instead?"))}:null}renderErrors(){const e=this.buildBareRepositoryError()??this.buildRepositoryUnsafeError()??this.buildNotAGitRepositoryError();return null===e?null:Ae.createElement(GT,null,Ae.createElement(gN,{id:"add-existing-repository-path-error",trackedUserInput:this.state.path,ariaLiveMessage:e.screenReaderMessage},e.displayedMessage))}render(){const e=0===this.state.path.length||!this.state.isRepository||this.state.isRepositoryBare;return Ae.createElement(aD,{id:"add-existing-repository",title:"添加本地存储库",onSubmit:this.addRepository,onDismissed:this.props.onDismissed,loading:this.state.isTrustingRepository},Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(VT,{value:this.state.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.onPathChanged,ariaDescribedBy:"add-existing-repository-path-error"}),Ae.createElement(mi,{onClick:this.showFilePicker},"选择…")),this.renderErrors()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"添加存储库",okButtonDisabled:e})))}onPathChanged=async e=>{const t=await UL(this.resolvedPath(e));this.setState({path:e,isRepository:t})};showFilePicker=async()=>{const e=await me({properties:["createDirectory","openDirectory"]});null!==e&&this.updatePath(e)};resolvedPath(e){return t.resolve("/",DL()(e))}addRepository=async()=>{this.props.onDismissed();const{dispatcher:e}=this.props,t=this.resolvedPath(this.state.path),n=await e.addRepositories([t]);n.length>0&&(e.closeFoldout(et.Repository),e.selectRepository(n[0]),e.recordAddExistingRepository())};onCreateRepositoryClicked=()=>{this.props.onDismissed();const e=this.resolvedPath(this.state.path);return this.props.dispatcher.showPopup({type:dh.CreateRepository,path:e})}}async function WL(e,t,n){const r=ir.fromAccount(e);return!!await r.fetchRepository(t,n)}async function qL(e,t,n=WL){const r=[...t,dn.anonymous()],i=mr(e);if(i){const e=r.find((e=>{const t=ar(e.endpoint),n=o.parse(t);return i.hostname===n.hostname}))||null;if(e)return e}const s=fr(e);if(s){const{owner:e,name:t,hostname:i}=s,a=Array.from(r).sort(((e,t)=>e.endpoint===cr()?e.token.length?-1:1:t.endpoint===cr()?t.token.length?1:-1:0));for(const r of a)if((null==i||o.parse(ar(r.endpoint)).hostname===i)&&await n(r,e,t))return r}return null}class VL extends Ae.Component{render(){return Ae.createElement(nD,{className:"clone-generic-repository-content"},Ae.createElement(GT,null,Ae.createElement(VT,{placeholder:"URL 或用户名/存储库名",value:this.props.url,onValueChanged:this.onUrlChanged,autoFocus:!0,label:Ae.createElement("div",{className:"clone-url-textbox-label"},Ae.createElement("p",null,"存储库URL或GitHub用户名和存储库"),Ae.createElement("p",null,"(",Ae.createElement(CD,null,"hubot/cool-repo"),")"))})),Ae.createElement(GT,null,Ae.createElement(VT,{value:this.props.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.props.onPathChanged}),Ae.createElement(mi,{onClick:this.props.onChooseDirectory},"选择…")))}onUrlChanged=e=>{this.props.onUrlChanged(e)}}var GL=n(2373),zL=n.n(GL);const jL="your-repositories";function KL(e){return e.private?Ua:e.fork?Gl:Wl}const YL=e=>e.map((e=>({id:e.html_url,text:[`${e.owner.login}/${e.name}`],url:e.clone_url,name:e.name,icon:KL(e),archived:e.archived}))).sort(((e,t)=>gr(e.name,t.name)));function XL(e,t){if(null!==t)for(const n of e)for(const e of n.items)if(e.url===t.clone_url)return e;return null}function QL(e,t){return e.find((e=>e.clone_url===t.url))||null}class JL extends Ae.PureComponent{getRepositoryGroups=Tr(((e,t)=>null===e?[]:function(e,t){const n=YI()(e,(e=>wr(e.owner.login,t)?jL:e.owner.login));return zL()(n).map((([e,t])=>({identifier:e,items:YL(t)}))).sort(((e,t)=>e.identifier===jL?-1:t.identifier===jL?1:gr(e.identifier,t.identifier)))}(e,t)));getSelectedListItem=Tr(XL);componentDidMount(){null===this.props.repositories&&this.refreshRepositories()}componentDidUpdate(e){e.repositories!==this.props.repositories&&null===this.props.repositories&&this.refreshRepositories()}refreshRepositories=()=>{this.props.onRefreshRepositories(this.props.account)};getGroupAriaLabelGetter=e=>t=>{const n=e[t].identifier;return n===jL?this.getYourRepositoriesLabel():n};render(){const{repositories:e,account:t,selectedItem:n}=this.props,r=this.getRepositoryGroups(e,t.login),i=this.getSelectedListItem(r,n);return Ae.createElement(YT,{className:"clone-github-repo",rowHeight:31,selectedItem:i,renderItem:this.renderItem,renderGroupHeader:this.renderGroupHeader,onSelectionChanged:this.onSelectionChanged,invalidationProps:r,groups:r,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,renderNoItems:this.renderNoItems,renderPostFilter:this.renderPostFilter,onItemClick:this.props.onItemClicked?this.onItemClick:void 0,placeholderText:"筛选存储库",getGroupAriaLabel:this.getGroupAriaLabelGetter(r)})}onItemClick=(e,t)=>{const{onItemClicked:n,repositories:r}=this.props;if(void 0===n||null===r)return;const i=QL(r,e);null!==i&&n(i,t)};onSelectionChanged=e=>{null===e||null===this.props.repositories?this.props.onSelectionChanged(null):this.props.onSelectionChanged(QL(this.props.repositories,e))};getYourRepositoriesLabel=()=>"您的存储库";renderGroupHeader=e=>{let t=e;return e===jL&&(t=this.getYourRepositoriesLabel()),Ae.createElement("div",{className:"clone-repository-list-content clone-repository-list-group-header"},t)};renderItem=(e,t)=>Ae.createElement("div",{className:"clone-repository-list-item"},Ae.createElement(yi,{className:"icon",symbol:e.icon}),Ae.createElement(eh,{className:"name",tooltip:e.text[0],onlyWhenOverflowed:!0,tagName:"div"},Ae.createElement(Ju,{text:e.text[0],highlight:t.title})),e.archived&&Ae.createElement("div",{className:"archived"},"Archived"));renderPostFilter=()=>{const e="刷新存储库列表";return Ae.createElement(mi,{disabled:this.props.loading,onClick:this.refreshRepositories,ariaLabel:e,tooltip:e},Ae.createElement(yi,{symbol:Qu,className:this.props.loading?"spin":void 0}))};renderNoItems=()=>{const{loading:e,repositories:t}=this.props,n=this.props.account.endpoint===cr()?"GitHub.com":ar(this.props.account.endpoint);return!e||null!==t&&0!==t.length?0!==this.props.filterText.length?Ae.createElement("div",{className:"no-items no-results-found"},Ae.createElement("div",null,"没有匹配的存储库"," ",Ae.createElement(CD,null,this.props.filterText))):Ae.createElement("div",{className:"no-items empty-repository-list"},Ae.createElement("div",null,"没有仓库"," ",Ae.createElement(CD,null,this.props.account.login)," 在 ",n,"."," ",Ae.createElement(Hx,{onClick:this.refreshRepositories},"刷新此列表")," ","如果您最近创建了存储库。")):Ae.createElement("div",{className:"no-items loading"},`从 ${n} 加载存储库…`)}}class eB extends Ae.PureComponent{render(){return Ae.createElement(nD,{className:"clone-github-repository-content"},Ae.createElement(GT,null,Ae.createElement(JL,{account:this.props.account,selectedItem:this.props.selectedItem,onSelectionChanged:this.props.onSelectionChanged,loading:this.props.loading,repositories:this.props.repositories,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,onRefreshRepositories:this.props.onRefreshRepositories,onItemClicked:this.props.onItemClicked})),Ae.createElement(GT,{className:"local-path-field"},Ae.createElement(VT,{value:this.props.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.props.onPathChanged}),Ae.createElement(mi,{onClick:this.props.onChooseDirectory},"选择…")))}}class tB extends Ae.Component{checkIsTopMostDialog=iD((()=>{this.validatePath(),window.addEventListener("focus",this.onWindowFocus)}),(()=>{window.removeEventListener("focus",this.onWindowFocus)}));constructor(e){super(e);const t={error:null,lastParsedIdentifier:null,path:null,url:this.props.initialURL||""};this.state={initialPath:null,loading:!1,dotComTabState:{kind:"dotComTabState",filterText:"",selectedItem:null,...t},enterpriseTabState:{kind:"enterpriseTabState",filterText:"",selectedItem:null,...t},urlTabState:{kind:"urlTabState",...t}},this.initializePath()}componentDidUpdate(e){e.selectedTab!==this.props.selectedTab&&this.validatePath(),e.initialURL!==this.props.initialURL&&this.updateUrl(this.props.initialURL||""),this.checkIsTopMostDialog(this.props.isTopMost)}componentDidMount(){const e=this.props.initialURL;e&&this.updateUrl(e),this.checkIsTopMostDialog(this.props.isTopMost)}componentWillUnmount(){this.checkIsTopMostDialog(!1)}initializePath=async()=>{const e=await ab(),t={...this.state.dotComTabState,path:e},n={...this.state.enterpriseTabState,path:e},r={...this.state.urlTabState,path:e};this.setState({initialPath:e,dotComTabState:t,enterpriseTabState:n,urlTabState:r});const i=this.getSelectedTabState();this.updateUrl(i.url)};render(){const{error:e}=this.getSelectedTabState();return Ae.createElement(aD,{className:"clone-repository",title:"克隆仓库",onSubmit:this.clone,onDismissed:this.props.onDismissed,loading:this.state.loading},Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.props.selectedTab},Ae.createElement("span",{id:"dotcom-tab"},"GitHub.com"),Ae.createElement("span",{id:"enterprise-tab"},"GitHub Enterprise"),Ae.createElement("span",{id:"url-tab"},"URL")),e?Ae.createElement(lD,null,e.message):null,Ae.createElement("div",{role:"tabpanel","aria-labelledby":this.getSelectedTabId()},this.renderActiveTab()),this.renderFooter())}getSelectedTabId=()=>this.props.selectedTab===Ur.DotCom?"dotcom-tab":this.props.selectedTab===Ur.Enterprise?"enterprise-tab":"url-tab";checkIfCloningDisabled=()=>{const e=this.getSelectedTabState(),{error:t,url:n,path:r}=e,{loading:i}=this.state;return 0===n.length||null==r||0===r.length||i||null!==t};renderFooter(){const e=this.props.selectedTab;if(e!==Ur.Generic&&!this.getAccountForTab(e))return null;const t=this.checkIfCloningDisabled();return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "克隆",okButtonDisabled:t}))}onTabClicked=e=>{this.props.onTabSelected(e)};onPathChanged=e=>{this.setSelectedTabState({path:e},this.validatePath)};renderActiveTab(){const e=this.props.selectedTab;switch(e){case Ur.Generic:const t=this.state.urlTabState;return Ae.createElement(VL,{path:t.path??"",url:t.url,onPathChanged:this.onPathChanged,onUrlChanged:this.updateUrl,onChooseDirectory:this.onChooseDirectory});case Ur.DotCom:case Ur.Enterprise:{const t=this.getAccountForTab(e);if(t){const n=this.props.apiRepositories.get(t),r=void 0===n?null:n.repositories,i=void 0!==n&&n.loading,s=this.getGitHubTabState(e);return Ae.createElement(eB,{path:s.path??"",account:t,selectedItem:s.selectedItem,onSelectionChanged:this.onSelectionChanged,onPathChanged:this.onPathChanged,onChooseDirectory:this.onChooseDirectory,repositories:r,loading:i,onRefreshRepositories:this.props.onRefreshRepositories,filterText:s.filterText,onFilterTextChanged:this.onFilterTextChanged,onItemClicked:this.onItemClicked})}return Ae.createElement(nD,null,this.renderSignIn(e))}default:return ct(0,`Unknown tab: ${e}`)}}getAccountForTab(e){switch(e){case Ur.DotCom:return this.props.dotComAccount;case Ur.Enterprise:return this.props.enterpriseAccount;default:return null}}getGitHubTabState(e){return e===Ur.DotCom?this.state.dotComTabState:e===Ur.Enterprise?this.state.enterpriseTabState:ct(0,`Unknown tab: ${e}`)}getTabState(e){return e===Ur.DotCom?this.state.dotComTabState:e===Ur.Enterprise?this.state.enterpriseTabState:e===Ur.Generic?this.state.urlTabState:ct(0,`Unknown tab: ${e}`)}getSelectedTabState(){return this.getTabState(this.props.selectedTab)}setSelectedTabState(e,t){this.setTabState(e,this.props.selectedTab,t)}setTabState(e,t,n){if(t===Ur.DotCom)this.setState((t=>({dotComTabState:{...t.dotComTabState,...e}})),n);else if(t===Ur.Enterprise)this.setState((t=>({enterpriseTabState:{...t.enterpriseTabState,...e}})),n);else{if(t!==Ur.Generic)return ct(0,`Unknown tab: ${t}`);this.setState((t=>({urlTabState:{...t.urlTabState,...e}})),n)}}setGitHubTabState(e,t){if(t===Ur.DotCom)this.setState((t=>({dotComTabState:xp(t.dotComTabState,e)})));else{if(t!==Ur.Enterprise)return ct(0,`Unknown tab: ${t}`);this.setState((t=>({enterpriseTabState:xp(t.enterpriseTabState,e)})))}}renderSignIn(e){const t="登录";switch(e){case Ur.DotCom:return Ae.createElement(ED,{actionTitle:t,onAction:this.signInDotCom},Ae.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case Ur.Enterprise:return Ae.createElement(ED,{actionTitle:t,onAction:this.signInEnterprise},Ae.createElement("div",null,"如果您有GitHub Enterprise或AE帐户请登录该帐户以访问您的存储库。"));case Ur.Generic:return null;default:return ct(0,`Unknown sign in tab: ${e}`)}}signInDotCom=()=>{this.props.dispatcher.showDotComSignInDialog()};signInEnterprise=()=>{this.props.dispatcher.showEnterpriseSignInDialog()};onFilterTextChanged=e=>{this.props.selectedTab!==Ur.Generic&&this.setGitHubTabState({filterText:e},this.props.selectedTab)};onSelectionChanged=e=>{this.props.selectedTab!==Ur.Generic&&(this.setGitHubTabState({selectedItem:e},this.props.selectedTab),this.updateUrl(null===e?"":e.clone_url))};validatePath=async()=>{const e=this.getSelectedTabState(),{path:t,url:n,error:r}=e,{initialPath:i}=this.state;if(i===t&&""===n)r&&this.setSelectedTabState({error:null});else{const e=await this.validateEmptyFolder(t);this.getSelectedTabState().path===t&&this.setSelectedTabState({error:e,path:t})}};onChooseDirectory=async()=>this.onChooseWithOpenDialog();onChooseWithOpenDialog=async()=>{const e=await me({properties:["createDirectory","openDirectory"]});if(null===e)return;const n=this.getSelectedTabState().lastParsedIdentifier,r=n?t.join(e,n.name):e;return this.setSelectedTabState({path:r,error:null},this.validatePath),r};onChooseWithSaveDialog=async()=>{const e=this.getSelectedTabState(),t=await de({buttonLabel:"Select",nameFieldLabel:"克隆到:",showsTagField:!1,defaultPath:e.path??"",properties:["createDirectory"]});if(null!=t)return this.setSelectedTabState({path:t,error:null},this.validatePath),t};updateUrl=async e=>{const n=fr(e),r=this.getSelectedTabState(),i=r.lastParsedIdentifier;if(null===r.path)return void this.setSelectedTabState({url:e},this.validatePath);let s;const o=r.path;s=i?n?t.join(t.dirname(o),n.name):t.dirname(o):n?t.join(o,n.name):o,this.setSelectedTabState({url:e,lastParsedIdentifier:n,path:s},this.validatePath)};async validateEmptyFolder(e){if(null===e)return new Error("Unable to read path on disk. Please check the path and try again.");try{return 0===(await(0,b.readdir)(e)).length?null:new Error("This folder contains files. Git can only clone to empty folders.")}catch(e){return"ENOTDIR"===e.code?new Error("There is already a file with this name. Git can only clone to a folder."):"ENOENT"===e.code?null:(log.error("CloneRepository: Path validation failed. Error: "+e.message),new Error("Unable to read path on disk. Please check the path and try again."))}}async resolveCloneInfo(){const{url:e,lastParsedIdentifier:t}=this.getSelectedTabState(),n=new Array;this.props.dotComAccount&&n.push(this.props.dotComAccount),this.props.enterpriseAccount&&n.push(this.props.enterpriseAccount);const r=await qL(e,n);if(null!==t&&null!==r){const n=ir.fromAccount(r),{owner:i,name:s}=t,o=mr(e)?.protocol;return n.fetchRepositoryCloneInfo(i,s,o).catch((t=>(log.error(`Failed to look up repository clone info for '${e}'`,t),{url:e})))}return{url:e}}onItemClicked=(e,t)=>{"keyboard"===t.kind&&"Enter"===t.event.key&&!1===this.checkIfCloningDisabled()&&this.clone()};clone=async()=>{this.setState({loading:!0});const e=await this.resolveCloneInfo(),{path:t}=this.getSelectedTabState();if(null==t){const e=new Error("Directory could not be created at this path.");return this.setState({loading:!1}),void this.setSelectedTabState({error:e})}if(!e){const e=new Error("We couldn't find that repository. Check that you are logged in, the network is accessible, and the URL or repository alias are spelled correctly.");return this.setState({loading:!1}),void this.setSelectedTabState({error:e})}const{url:n,defaultBranch:r}=e;this.props.dispatcher.closeFoldout(et.Repository);try{this.cloneImpl(n.trim(),t,r)}catch(e){log.error(`CloneRepository: clone failed to complete to ${t}`,e),this.setState({loading:!1}),this.setSelectedTabState({error:e})}};cloneImpl(e,n,r){this.props.dispatcher.clone(e,n,{defaultBranch:r}),this.props.onDismissed(),lb(t.resolve(n,".."))}onWindowFocus=()=>{this.validatePath()}}class nB extends Ae.Component{onClick=()=>{this.props.onClick(this.props.value)};onDoubleClick=()=>{this.props.onDoubleClick(this.props.value)};render(){const e=this.props.description?Ae.createElement("p",null,this.props.description):void 0,t=this.props.isSelected,n=t?"selected":void 0;return Ae.createElement("li",{className:n,onClick:this.onClick,onDoubleClick:this.onDoubleClick,role:"radio",id:this.props.id,"aria-checked":t?"true":"false"},Ae.createElement("div",{className:"title"},this.props.title),e)}}class rB extends Ae.Component{listRef=null;formRef=null;constructor(e){super(e),this.state={}}updateListId(e){this.state.listId&&(oi(this.state.listId),this.setState({listId:void 0})),e&&this.setState({listId:si(`VerticalSegmentedControl_${e}`)})}componentWillMount(){this.updateListId(this.props.label)}componentWillUnmount(){this.state.listId&&oi(this.state.listId)}componentWillReceiveProps(e){this.props.label!==e.label&&this.updateListId(e.label)}submitForm(){const e=this.formRef;e&&e.dispatchEvent(new Event("submit"))}onItemClick=e=>{e!==this.props.selectedKey&&this.props.onSelectionChanged(e)};onItemDoubleClick=e=>{this.onItemClick(e),this.submitForm()};getListItemId(e){return`${this.state.listId}_Item_${e}`}renderItem(e,t){return Ae.createElement(nB,{id:this.getListItemId(t),key:e.key,title:e.title,description:e.description,isSelected:e.key===this.props.selectedKey,value:e.key,onClick:this.onItemClick,onDoubleClick:this.onItemDoubleClick})}onKeyDown=e=>{const t=this.findSelectedIndex(this.props.items);"ArrowUp"===e.key?(t>0&&this.props.onSelectionChanged(this.props.items[t-1].key),e.preventDefault()):"ArrowDown"===e.key?(t<this.props.items.length-1&&this.props.onSelectionChanged(this.props.items[t+1].key),e.preventDefault()):"Enter"===e.key&&this.submitForm()};onListRef=e=>{this.listRef=e};onFieldsetRef=e=>{this.formRef=e?e.form:null};onLegendClick=()=>{this.listRef&&this.listRef.focus()};render(){if(0===this.props.items.length)return null;const e=this.props.label?Ae.createElement("legend",{onClick:this.onLegendClick},this.props.label):void 0,t=this.findSelectedIndex(this.props.items),n=this.getListItemId(t);return Ae.createElement("fieldset",{className:"vertical-segmented-control",ref:this.onFieldsetRef},e,Ae.createElement("ul",{ref:this.onListRef,id:this.state.listId,className:"vertical-segmented-control",tabIndex:0,onKeyDown:this.onKeyDown,role:"radiogroup","aria-activedescendant":n},this.props.items.map(((e,t)=>this.renderItem(e,t)))))}findSelectedIndex(e){return e.findIndex((e=>e.key===this.props.selectedKey))}}function iB(e,t){return e.tip.kind===Hr.Detached?Wp.Head:t===Wp.UpstreamDefaultBranch&&null!==e.upstreamDefaultBranch||t===Wp.DefaultBranch&&null!==e.defaultBranch||t===Wp.CurrentBranch&&e.tip.kind===Hr.Valid||t===Wp.Head?t:e.upstreamDefaultBranch?Wp.UpstreamDefaultBranch:e.defaultBranch?Wp.DefaultBranch:e.tip.kind===Hr.Valid?Wp.CurrentBranch:Wp.Head}class sB extends Ae.Component{branchRulesDebounceId=null;ERRORS_ID="branch-name-errors";constructor(e){super(e);const t=iB(e,Wp.UpstreamDefaultBranch);this.state={currentError:null,branchName:e.initialName,startPoint:t,isCreatingBranch:!1,tipAtCreateStart:e.tip,defaultBranchAtCreateStart:aB(t,e)}}componentWillReceiveProps(e){if(this.setState({startPoint:iB(e,this.state.startPoint)}),!this.state.isCreatingBranch){const t=iB(e,Wp.UpstreamDefaultBranch);this.setState({tipAtCreateStart:e.tip,defaultBranchAtCreateStart:aB(t,e)})}e.initialName.length>0&&this.checkBranchRules(e.initialName)}componentWillUnmount(){null!==this.branchRulesDebounceId&&window.clearTimeout(this.branchRulesDebounceId)}renderBranchSelection(){const e=this.state.isCreatingBranch?this.state.tipAtCreateStart:this.props.tip,t=e.kind,n=this.props.targetCommit;if(void 0!==n)return Ae.createElement("p",null,"您的新分支将基于提交 '",n.summary,"' (",n.sha.substring(0,7),") 从您的存储库。");if(e.kind===Hr.Detached)return Ae.createElement("p",null,"您当前没有签出任何分支(您的头引用已分离). 因此,您的新分支将基于您当前签出的提交 (",e.currentSha.substring(0,7),").");if(e.kind===Hr.Unborn)return Ae.createElement("p",null,"当前分支未绑定(不包含任何提交)。创建新分支将重命名当前分支。");if(e.kind===Hr.Valid){if(null!==this.props.upstreamGitHubRepository&&null!==this.props.upstreamDefaultBranch)return this.renderForkBranchSelection(e.branch.name,this.props.upstreamDefaultBranch,this.props.upstreamGitHubRepository.fullName);const t=this.state.isCreatingBranch?this.props.defaultBranch:this.state.defaultBranchAtCreateStart;return this.renderRegularBranchSelection(e.branch.name,t)}return ct(0,`Unknown tip kind ${t}`)}renderBranchNameErrors(){const{currentError:e}=this.state;return e?e.isWarning?Ae.createElement(GT,null,Ae.createElement(fN,{id:this.ERRORS_ID,trackedUserInput:this.state.branchName},e.error.message)):Ae.createElement(GT,null,Ae.createElement(gN,{id:this.ERRORS_ID,trackedUserInput:this.state.branchName},e.error.message)):null}onBaseBranchChanged=e=>{this.setState({startPoint:e})};render(){const e=this.state.branchName.length<=0||!!this.state.currentError&&!this.state.currentError.isWarning||/^\s*$/.test(this.state.branchName),t=!!this.state.currentError;return Ae.createElement(aD,{id:"create-branch",title:this.getHeaderText(),onSubmit:this.createBranch,onDismissed:this.props.onDismissed,loading:this.state.isCreatingBranch,disabled:this.state.isCreatingBranch},Ae.createElement(nD,null,Ae.createElement(yN,{label: "名称",ariaDescribedBy:t?this.ERRORS_ID:void 0,initialValue:this.props.initialName,onValueChange:this.onBranchNameChange}),this.renderBranchNameErrors(),function(e,t){const n=t.findIndex((t=>t.nameWithoutRemote===e&&t.type===$p.Remote))>-1;return!1===n?null:Ae.createElement(GT,{className:"warning-helper-text"},Ae.createElement(yi,{symbol:vi}),Ae.createElement("p",null,"分支名为 ",Ae.createElement(CD,null,e)," 已存在于远程"))}(this.state.branchName,this.props.allBranches),this.renderBranchSelection()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:this.getOkButtonText(),okButtonDisabled:e})))}getHeaderText=()=>void 0!==this.props.headerText?this.props.headerText:"新建分支";getOkButtonText=()=>void 0!==this.props.okButtonText?this.props.okButtonText:"确定";onBranchNameChange=e=>{this.updateBranchName(e)};async updateBranchName(e){this.setState({branchName:e});const t=this.props.allBranches.findIndex((t=>t.name===e))>-1,n=t?{error:new Error(`分支名为 ${e} already exists.`),isWarning:!1}:null;n||(null!==this.branchRulesDebounceId&&window.clearTimeout(this.branchRulesDebounceId),this.branchRulesDebounceId=window.setTimeout(this.checkBranchRules,500,e)),this.setState({branchName:e,currentError:n})}checkBranchRules=async e=>{if(this.state.branchName!==e||0===this.props.accounts.length||!$r(this.props.repository)||""===e||null!==this.state.currentError)return;const t=Om(this.props.accounts,this.props.repository);if(null===t||!lC(t,this.props.repository))return;const n=ir.fromAccount(t),r=await n.fetchRepoRulesForBranch(this.props.repository.gitHubRepository.owner.login,this.props.repository.gitHubRepository.name,e);if(this.state.branchName!==e)return;const i=new Set(r.filter((e=>e.type===Qn.Creation||e.type===Qn.BranchNamePattern)).map((e=>e.ruleset_id)));if(0===i.size)return;const{branchNamePatterns:s,creationRestricted:o}=await cC(r,this.props.cachedRepoRulesets,this.props.repository);if(this.state.branchName!==e)return;const{status:a}=s.getFailedRules(e);if(!0!==o&&"pass"===a)return;let l=!1;for(const e of i)if("always"!==this.props.cachedRepoRulesets.get(e)?.current_user_can_bypass){l=!0;break}l?this.setState({currentError:{error:new Error(`Branch name '${e}' is restricted by repo rules.`),isWarning:!1}}):this.setState({currentError:{error:new Error(`Branch name '${e}' is restricted by repo rules, but you can bypass them. Proceed with caution!`),isWarning:!0}})};createBranch=async()=>{const e=this.state.branchName;let t=null,n=!1;const{defaultBranch:r,upstreamDefaultBranch:i,repository:s}=this.props;if(void 0!==this.props.targetCommit)t=this.props.targetCommit.sha;else if(this.state.startPoint===Wp.DefaultBranch){if(!r)return void this.setState({currentError:{error:new Error("Could not determine the default branch."),isWarning:!1}});t=r.name}else if(this.state.startPoint===Wp.UpstreamDefaultBranch){if(!i)return void this.setState({currentError:{error:new Error("Could not determine the default branch."),isWarning:!1}});t=i.name,n=!0}if(e.length>0){if(this.setState({isCreatingBranch:!0}),void 0!==this.props.createBranch)return void this.props.createBranch(e,t,n);const r=Lx("create branch",s),i=await this.props.dispatcher.createBranch(s,e,t,n);r.done(),this.props.onDismissed(),void 0!==i&&void 0!==this.props.targetCommit&&void 0!==this.props.onBranchCreatedFromCommit&&this.props.onBranchCreatedFromCommit()}};renderRegularBranchSelection(e,t){if(null===t||t.name===e)return Ae.createElement("div",null,"新分支将基于当前签出的分支 (",Ae.createElement(CD,null,e),")",this.renderForkLinkSuffix(),"."," ",t?.name===e&&Ae.createElement(Ae.Fragment,null,Ae.createElement(CD,null,e)," 是仓库的 ",oB,""));{const n=[{title:t.name,description:"你的代码库中的默认分支。选择它来开始一些不依赖于当前分支的新工作",key:Wp.DefaultBranch},{title:e,description:"当前检出的分支。如果你需要在这个分支的基础上继续工作,请选择它",key:Wp.CurrentBranch}],r=this.state.startPoint===Wp.DefaultBranch?this.state.startPoint:Wp.CurrentBranch;return Ae.createElement("div",null,this.renderOptions(n,r),this.renderForkLink())}}renderForkBranchSelection(e,t,n){if(e===t.nameWithoutRemote)return Ae.createElement("div",null,"Your new branch will be based on"," ",Ae.createElement("strong",null,n),"'s ",oB," (",Ae.createElement(CD,null,t.nameWithoutRemote),")",this.renderForkLinkSuffix(),".");{const n=[{title:t.name,description:"上游代码库的默认分支。选择它来开始一些不依赖于当前分支的新工作",key:Wp.UpstreamDefaultBranch},{title:e,description:"当前检出的分支。如果你需要在这个分支的基础上继续工作,请选择它",key:Wp.CurrentBranch}],r=this.state.startPoint===Wp.UpstreamDefaultBranch?this.state.startPoint:Wp.CurrentBranch;return Ae.createElement("div",null,this.renderOptions(n,r),this.renderForkLink())}}renderForkLink=()=>Wr(this.props.repository)?Ae.createElement("div",{className:"secondary-text"},"Your default branch source is determined by your"," ",Ae.createElement(Hx,{onClick:this.onForkSettingsClick},"fork behavior settings"),"."):void 0;renderForkLinkSuffix=()=>Wr(this.props.repository)?Ae.createElement("span",null," as determined by your"," ",Ae.createElement(Hx,{onClick:this.onForkSettingsClick},"fork behavior settings")):void 0;renderOptions=(e,t)=>Ae.createElement(GT,null,Ae.createElement(rB,{label:"基于以下创建分支…",items:e,selectedKey:t,onSelectionChanged:this.onBaseBranchChanged}));onForkSettingsClick=()=>{this.props.dispatcher.showPopup({type:dh.RepositorySettings,repository:this.props.repository,initialSelectedTab:BD.ForkSettings})}}const oB=Ae.createElement(Hx,{uri:"https://help.github.com/articles/setting-the-default-branch/"},"默认分支");function aB(e,t){return e===Wp.UpstreamDefaultBranch?t.upstreamDefaultBranch:e===Wp.DefaultBranch?t.defaultBranch:null}class lB extends Ae.Component{dialogRef=Ae.createRef();constructor(e){super(e),this.state={endpoint:"",username:"",password:"",otpToken:""}}componentDidUpdate(e){null!==e.signInState&&null!==this.props.signInState&&e.signInState.kind!==this.props.signInState.kind&&this.dialogRef.current?.focusFirstSuitableChild()}componentWillReceiveProps(e){e.signInState!==this.props.signInState&&e.signInState&&e.signInState.kind===aT.Success&&this.onDismissed()}onSubmit=()=>{const e=this.props.signInState;if(!e)return;const t=e.kind;switch(e.kind){case aT.EndpointEntry:this.props.dispatcher.setSignInEndpoint(this.state.endpoint);break;case aT.Authentication:e.supportsBasicAuth?this.props.dispatcher.setSignInCredentials(this.state.username,this.state.password):this.props.dispatcher.requestBrowserAuthentication();break;case aT.TwoFactorAuthentication:this.props.dispatcher.setSignInOTP(this.state.otpToken);break;case aT.Success:this.onDismissed();break;default:ct(0,`Unknown sign in step ${t}`)}};onEndpointChanged=e=>{this.setState({endpoint:e})};onUsernameChanged=e=>{this.setState({username:e})};onPasswordChanged=e=>{this.setState({password:e})};onOTPTokenChanged=e=>{this.setState({otpToken:e})};onSignInWithBrowser=()=>{this.props.dispatcher.requestBrowserAuthentication()};renderFooter(){const e=this.props.signInState;if(!e||e.kind===aT.Success)return null;let t,n=!1;const r=e.kind;switch(e.kind){case aT.EndpointEntry:n=0===this.state.endpoint.length,t="确定";break;case aT.TwoFactorAuthentication:n=!/\S+/.test(this.state.otpToken),t="登录";break;case aT.Authentication:if(e.supportsBasicAuth){const e=this.state.username.length>0,r=this.state.password.length>0;n=!e||!r,t="Sign in"}else t="打开浏览器";break;default:return ct(0,`Unknown sign in step ${r}`)}return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:t,okButtonDisabled:n,onCancelButtonClick:this.onDismissed}))}renderEndpointEntryStep(e){return Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(VT,{label:"企业版地址",value:this.state.endpoint,onValueChanged:this.onEndpointChanged,placeholder:"https://github.example.com"})))}renderAuthenticationStep(e){const t=this.props.isCredentialHelperSignIn&&this.props.credentialHelperUrl?Ae.createElement("p",null,"Git requesting credentials to access"," ",Ae.createElement(CD,null,this.props.credentialHelperUrl),"."):void 0;if(!e.supportsBasicAuth)return Ae.createElement(nD,null,t,Ae.createElement("p",null,"登录后浏览器将会重定向到GitHub Desktop。如果您的浏览器请求您允许启动GitHub Desktop请点击允许。"));const n=e.loading;return Ae.createElement(nD,null,t,Ae.createElement(GT,{className:"sign-in-with-browser"},Ae.createElement(mi,{className:"button-with-icon button-component-primary",onClick:this.onSignInWithBrowser,disabled:n,role:"link"},"使用浏览器登录",Ae.createElement(yi,{symbol:La}))),Ae.createElement(RN,{title:"or"}),Ae.createElement(GT,null,Ae.createElement(VT,{label:"用户名或邮箱地址",value:this.state.username,onValueChanged:this.onUsernameChanged})),Ae.createElement(GT,null,Ae.createElement(TN,{label:"密码",value:this.state.password,onValueChanged:this.onPasswordChanged})),Ae.createElement(GT,null,Ae.createElement(Hx,{className:"forgot-password-link-sign-in",uri:e.forgotPasswordUrl},"Forgot password?")))}renderTwoFactorAuthenticationStep(e){return Ae.createElement(nD,null,Ae.createElement("p",null,bn(e.type)),Ae.createElement(GT,null,Ae.createElement(VT,{label:"身份验证码",value:this.state.otpToken,onValueChanged:this.onOTPTokenChanged,autoFocus:!0})))}renderStep(){const e=this.props.signInState;if(!e)return null;const t=e.kind;switch(e.kind){case aT.EndpointEntry:return this.renderEndpointEntryStep(e);case aT.Authentication:return this.renderAuthenticationStep(e);case aT.TwoFactorAuthentication:return this.renderTwoFactorAuthenticationStep(e);case aT.Success:return null;default:return ct(0,`Unknown sign in step ${t}`)}}render(){const e=this.props.signInState;if(!e||e.kind===aT.Success)return null;const t=e.loading,n=e.error?Ae.createElement(lD,null,e.error.message):null,r=this.props.signInState&&this.props.signInState.kind===aT.Authentication&&!this.props.signInState.supportsBasicAuth?"使用浏览器登录":"登录";return Ae.createElement(aD,{id:"sign-in",title:r,disabled:t,onDismissed:this.onDismissed,onSubmit:this.onSubmit,loading:e.loading,ref:this.dialogRef},n,this.renderStep(),this.renderFooter())}onDismissed=()=>{this.props.dispatcher.resetSignInState(),this.props.onDismissed()}}class cB extends Ae.Component{constructor(e){super(e)}onSubmit=()=>{this.props.onOpenShell(this.props.path),this.props.onDismissed()};onExternalLink=e=>{pt.openExternal("https://help.github.com/articles/set-up-git/#setting-up-git")};render(){return Ae.createElement(aD,{id:"install-git",type:"warning",title:"找不到 Git",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("p",null,"We were unable to locate Git on your system. This means you won't be able to execute any Git commands in the"," ","command prompt","."),Ae.createElement("p",null,"To help you get Git installed and configured for your operating system, we have some external resources available.")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "不使用 Git 打开",cancelButtonText: "安装 Git",onCancelButtonClick:this.onExternalLink})))}}class uB extends Ae.Component{constructor(e){super(e)}onExternalLink=()=>{pt.openExternal(cm)};onShowPreferencesDialog=e=>{e.preventDefault(),this.props.onDismissed(),this.props.showPreferencesDialog()};renderFooter(){const{viewPreferences:e,suggestDefaultEditor:t}=this.props;return e?Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"关闭",cancelButtonText: "打开选项",onCancelButtonClick:this.onShowPreferencesDialog})):t?Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"关闭",cancelButtonText: "下载Visual Studio Code",onCancelButtonClick:this.onExternalLink})):Ae.createElement(hD,null)}render(){return Ae.createElement(aD,{id:"external-editor-error",type:"error",title:"无法打开外部编辑器",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("p",null,this.props.message)),this.renderFooter())}}const hB=Pt(__dirname,"static/windows-logo-64x64@2x.png");class pB extends Ae.Component{updateStoreEventHandle=null;checkIsTopMostDialog=iD((()=>{window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)}),(()=>{window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)}));constructor(e){super(e),this.state={updateState:an.state,altKeyPressed:!1}}onUpdateStateChanged=e=>{this.setState({updateState:e})};componentDidMount(){this.updateStoreEventHandle=an.onDidChange(this.onUpdateStateChanged),this.setState({updateState:an.state}),this.checkIsTopMostDialog(this.props.isTopMost)}componentDidUpdate(){this.checkIsTopMostDialog(this.props.isTopMost)}componentWillUnmount(){this.updateStoreEventHandle&&(this.updateStoreEventHandle.dispose(),this.updateStoreEventHandle=null),this.checkIsTopMostDialog(!1)}onKeyDown=e=>{"Alt"===e.key&&this.setState({altKeyPressed:!0})};onKeyUp=e=>{"Alt"===e.key&&this.setState({altKeyPressed:!1})};onQuitAndInstall=()=>{an.quitAndInstallUpdate()};renderUpdateButton(){{const e=Ae.createElement(Hx,{uri:"https://github.com/shiftkey/desktop/releases/"},"查看发布版本");return Ae.createElement(GT,null,Ae.createElement("p",{className:"no-padding"},e))}}renderCheckingForUpdate(){return Ae.createElement(GT,{className:"update-status"},Ae.createElement(Dx,null),Ae.createElement("span",null,"正在检查更新..."))}renderUpdateAvailable(){return Ae.createElement(GT,{className:"update-status"},Ae.createElement(Dx,null),Ae.createElement("span",null,"正在下载…"))}renderUpdateNotAvailable(){const e=this.state.updateState.lastSuccessfulCheck;return e?Ae.createElement("p",{className:"update-status"},"当前已是最新版本 (最后检查时间:"," ",Ae.createElement(PM,{date:e}),")"):null}renderUpdateReady(){return Ae.createElement("p",{className:"update-status"},"已下载更新并准备安装。")}renderUpdateDetails(){return Ae.createElement("p",null,"请访问 GitHub Desktop for Linux 发布页面以获取针对 Linux 的版本说明并下载最新版本。")}renderUpdateErrors(){return null}renderBetaLink(){}render(){const e=this.props.applicationName,t=this.props.applicationVersion,n=Ae.createElement(Hx,{uri:WN},"发布记录"),r=`版本 ${t}`;return Ae.createElement(aD,{id:"about",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},this.renderUpdateErrors(),Ae.createElement(nD,null,Ae.createElement(GT,{className:"logo"},Ae.createElement("img",{src:hB,alt:"GitHub Desktop",width:"64",height:"64"})),Ae.createElement("h2",null,e),Ae.createElement("p",{className:"no-padding"},Ae.createElement("span",{className:"selectable-text"},r," (",this.props.applicationArchitecture,")")," ","(",n,")"),Ae.createElement("p",{className:"no-padding"},Ae.createElement(Hx,{onClick:this.props.onShowTermsAndConditions},"服务条款")),Ae.createElement("p",null,Ae.createElement(Hx,{onClick:this.props.onShowAcknowledgements},"许可证和开源声明")),this.renderUpdateDetails(),this.renderUpdateButton(),this.renderBetaLink()),Ae.createElement(hD,null))}}class dB extends Ae.Component{name;constructor(e){super(e),this.state={orgs:[]},this.name=e.settings.name}async componentWillMount(){this.fetchOrgs(this.props.account)}componentWillReceiveProps(e){this.props.account!==e.account&&(this.setState({orgs:[]}),this.fetchOrgs(e.account))}async fetchOrgs(e){const t=ir.fromAccount(e),n=[...await t.fetchOrgs()];n.sort(((e,t)=>br(e.login,t.login))),this.setState({orgs:n})}updateSettings(e){const t=xp(this.props.settings,e);this.props.onSettingsChanged(t)}onNameChange=e=>{this.name=e,e=ML(e),this.updateSettings({name:e})};onDescriptionChange=e=>{this.updateSettings({description:e})};onPrivateChange=e=>{this.updateSettings({private:e.currentTarget.checked})};onOrgChange=e=>{const{settings:t}=this.props,n=e.currentTarget.value,r=parseInt(n,10);let i;if(r<0||isNaN(r))i={...t,org:null};else{const e=this.state.orgs[r];i={...t,org:e}}this.props.onSettingsChanged(i)};renderOrgs(){if(0===this.state.orgs.length)return null;const e=new Array;e.push(Ae.createElement("option",{value:-1,key:-1},"None"));let t=-1;const n=this.props.settings.org;for(const[r,i]of this.state.orgs.entries())n&&n.id===i.id&&(t=r),e.push(Ae.createElement("option",{value:r,key:r},i.login));return Ae.createElement(Wx,{label:"组织",value:t.toString(),onChange:this.onOrgChange},e)}render(){return Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(VT,{label: "名称",value:this.name,onValueChanged:this.onNameChange})),this.renderSanitizedName(),Ae.createElement(GT,null,Ae.createElement(VT,{label: "描述",value:this.props.settings.description,onValueChanged:this.onDescriptionChange})),Ae.createElement(GT,null,Ae.createElement("label",null,Ae.createElement("input",{type:"checkbox",checked:this.props.settings.private,onChange:this.onPrivateChange}),"Keep this code private")),this.renderOrgs())}renderSanitizedName(){const e=this.props.settings.name;return this.name===e?null:Ae.createElement(GT,{className:"warning-helper-text"},Ae.createElement(yi,{symbol:vi}),"Will be created as ",e)}}var mB,fB,gB;!function(e){e[e.enterprise=0]="enterprise",e[e.dotcom=1]="dotcom"}(mB||(mB={})),function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise"}(fB||(fB={}));class yB extends Ae.Component{constructor(e){super(e);const t=this.getAccountForTab(fB.DotCom),n=this.getAccountForTab(fB.Enterprise);let r=fB.DotCom;!t&&n&&(r=fB.Enterprise);const i={name:e.repository.name,description:"",private:!0},s={kind:"dotcom",settings:{...i,kind:mB.dotcom,org:null},error:null},o={kind:"enterprise",settings:{...i,kind:mB.enterprise,org:null},error:null};this.state={currentTab:r,dotcomTabState:s,enterpriseTabState:o,publishing:!1}}render(){const e=this.getCurrentTabState();return Ae.createElement(aD,{id:"publish-repository",title:"发布存储库",onDismissed:this.props.onDismissed,onSubmit:this.publishRepository,disabled:this.state.publishing,loading:this.state.publishing},Ae.createElement(wD,{onTabClicked:this.onTabClicked,selectedIndex:this.state.currentTab},Ae.createElement("span",{id:"dotcom-tab"},"GitHub.com"),Ae.createElement("span",{id:"enterprise-tab"},"GitHub Enterprise")),e.error?Ae.createElement(lD,null,e.error.message):null,Ae.createElement("div",{role:"tabpanel","aria-labelledby":"dotcom"===e.kind?"dotcom-tab":"enterprise-tab"},this.renderContent(),this.renderFooter()))}async componentDidMount(){const e=this.getCurrentTabState();try{const n=await async function(e){const n=t.join(e,Ag);try{const e=await(0,b.readFile)(n,"utf8");return"Unnamed repository; edit this file 'description' to name the repository.\n"===e?"":e}catch(e){return""}}(this.props.repository.path),r={...e.settings,description:n};this.setCurrentTabSettings(r)}catch(e){log.warn("Couldn't get the repository's description",e)}}renderContent(){const e=this.state.currentTab,t=this.getCurrentTabState(),n=this.getAccountForTab(e);return n?Ae.createElement(dB,{account:n,settings:t.settings,onSettingsChanged:this.onSettingsChanged}):Ae.createElement(nD,null,this.renderSignInTab(e))}onSettingsChanged=e=>{let t;t=e.kind===mB.enterprise?{kind:"enterprise",settings:e,error:this.state.enterpriseTabState.error}:{kind:"dotcom",settings:e,error:this.state.dotcomTabState.error},this.setTabState(t)};getAccountForTab(e){const t=this.props.accounts;switch(e){case fB.DotCom:return t.find((e=>e.endpoint===cr()))||null;case fB.Enterprise:return t.find((e=>e.endpoint!==cr()))||null;default:return ct(0,`Unknown tab: ${e}`)}}renderSignInTab(e){const t="登录";switch(e){case fB.DotCom:return Ae.createElement(ED,{actionTitle:t,onAction:this.signInDotCom},Ae.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case fB.Enterprise:return Ae.createElement(ED,{actionTitle:t,onAction:this.signInEnterprise},Ae.createElement("div",null,"如果您有GitHub Enterprise或AE帐户请登录该帐户以访问您的存储库。"));default:return ct(0,`Unknown tab: ${e}`)}}renderFooter(){const e=!this.getCurrentTabState().settings.name.length,t=this.state.currentTab;return this.getAccountForTab(t)?Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"发布存储库",okButtonDisabled:e})):null}signInDotCom=()=>{this.props.dispatcher.showDotComSignInDialog()};signInEnterprise=()=>{this.props.dispatcher.showEnterpriseSignInDialog()};publishRepository=async()=>{const e=this.getCurrentTabState();this.setCurrentTabError(null),this.setState({publishing:!0});const t=this.state.currentTab,n=this.getAccountForTab(t);n||lt("Tried to publish with no user. That seems impossible!");const r=e.settings,{org:i}=e.settings;try{await this.props.dispatcher.publishRepository(this.props.repository,r.name,r.description,r.private,n,i),this.props.onDismissed()}catch(e){this.setCurrentTabError(e),this.setState({publishing:!1})}};onTabClicked=e=>{e!==this.state.currentTab&&this.setState({currentTab:e})};getCurrentTabState=()=>this.state.currentTab===fB.DotCom?this.state.dotcomTabState:this.state.enterpriseTabState;setTabState=e=>{"enterprise"===e.kind?this.setState({enterpriseTabState:e}):this.setState({dotcomTabState:e})};setCurrentTabSettings=e=>{if(e.kind===mB.enterprise){const t={...this.state.enterpriseTabState,settings:e};this.setTabState(t)}else{const t={...this.state.dotcomTabState,settings:e};this.setTabState(t)}};setCurrentTabError=e=>{this.setTabState({...this.getCurrentTabState(),error:e})}}class wB extends Ae.Component{constructor(e){super(e),this.state={licenses:null}}async componentDidMount(){const e=t.join(await St(),"static","licenses.json");i.readFile(e,"utf8",((e,t)=>{if(e)return void log.error("Error loading licenses",e);const n=JSON.parse(t);n?this.setState({licenses:n}):log.warn("Couldn't parse licenses!")}))}renderLicenses(e){const t=[];for(const[n,r]of Object.keys(e).sort().entries()){if(0===n)continue;const i=e[r],s=i.repository;let o,a;if(s){const e=bB(s);o=Ae.createElement(Hx,{uri:e},r)}else o=r;a=i.sourceText?i.sourceText:i.license?`License: ${i.license}`:"Unknown license";const l=Ae.createElement("h2",{key:`${r}-header`},o),c=Ae.createElement("p",{key:`${r}-text`,className:"license-text"},a);t.push(l,c)}return t}render(){const e=this.state.licenses;let t=null;if(e){const n=e[`desktop@${this.props.applicationVersion}`];t=Ae.createElement("p",{className:"license-text"},n.sourceText)}return Ae.createElement(aD,{id:"acknowledgements",title:"许可证和开源声明",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("p",null,Ae.createElement(Hx,{uri:"https://desktop.github.com"},"GitHub Desktop")," is an open source project published under the MIT License. You can view the source code and contribute to this project on"," ",Ae.createElement(Hx,{uri:"https://github.com/desktop/desktop"},"GitHub"),"."),t,Ae.createElement("p",null,"GitHub Desktop also distributes these libraries:"),e?this.renderLicenses(e):Ae.createElement(Dx,null)),Ae.createElement(hD,null))}}function bB(e){let t=e;return t=t.replace("git+https://github.com","https://github.com"),t=t.replace("git+ssh://git@github.com","https://github.com"),t}class vB extends Ae.Component{render(){const e=o.parse(this.props.url).hostname;return Ae.createElement(aD,{title:"不受信任的服务器",onDismissed:this.props.onDismissed,onSubmit:this.onContinue,type:"error"},Ae.createElement(nD,null,Ae.createElement("p",null,"GitHub Desktop cannot verify the identity of ",e,". The certificate (",this.props.certificate.subjectName,") is invalid or untrusted."," ",Ae.createElement("strong",null,"This may indicate attackers are trying to steal your data.")),Ae.createElement("p",null,"In some cases, this may be expected. For example:"),Ae.createElement("ul",null,Ae.createElement("li",null,"If this is a GitHub Enterprise trial."),Ae.createElement("li",null,"If your GitHub Enterprise instance is run on an unusual top-level domain.")),Ae.createElement("p",null,"If you are unsure of what to do, cancel and contact your system administrator.")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText: "添加证书"})))}onContinue=()=>{this.props.onDismissed(),this.props.onContinue(this.props.certificate)}}!function(e){e[e.dotCom=0]="dotCom",e[e.enterprise=1]="enterprise"}(gB||(gB={}));class CB extends Ae.Component{constructor(e){super(e),this.state={selectedTab:gB.dotCom,dotComFilterText:"",enterpriseFilterText:"",selectedDotComRepository:null,selectedEnterpriseRepository:null}}render(){return Ae.createElement(iA,{id:"no-repositories"},Ae.createElement("section",{"aria-label":"让我们一起摇摆!🥳🥳🥳"},Ae.createElement("header",null,Ae.createElement("h1",null,"让我们一起摇摆!🥳🥳🥳"),Ae.createElement("p",null,"用GitHub Desktop协作开发")),Ae.createElement("div",{className:"content"},this.renderRepositoryList(),this.renderGetStartedActions()),Ae.createElement("img",{className:"no-repositories-graphic-top",src:HN,alt:""}),Ae.createElement("img",{className:"no-repositories-graphic-bottom",src:UN,alt:""})))}componentDidMount(){this.ensureRepositoriesForAccount(this.getSelectedAccount())}componentDidUpdate(e,t){e.dotComAccount===this.props.dotComAccount&&e.enterpriseAccount===this.props.enterpriseAccount&&t.selectedTab===this.state.selectedTab||this.ensureRepositoriesForAccount(this.getSelectedAccount())}ensureRepositoriesForAccount(e){null!==e&&void 0===this.props.apiRepositories.get(e)&&this.props.onRefreshRepositories(e)}isUserSignedIn(){return null!==this.props.dotComAccount||null!==this.props.enterpriseAccount}getSelectedAccount(){const{selectedTab:e}=this.state;return e===gB.dotCom?this.props.dotComAccount||this.props.enterpriseAccount:e===gB.enterprise?this.props.enterpriseAccount||this.props.dotComAccount:ct(0,`Unknown account tab ${e}`)}renderRepositoryList(){const e=this.getSelectedAccount();if(null===e)return null;const t=this.props.apiRepositories.get(e);return Ae.createElement("div",{className:"content-pane repository-list"},this.renderAccountsTabBar(),this.renderAccountRepositoryList(e,t))}getSelectedItemForAccount(e){return e===this.props.dotComAccount?this.state.selectedDotComRepository:this.state.selectedEnterpriseRepository}renderAccountRepositoryList(e,t){const n=void 0===t||t.loading,r=void 0===t?null:t.repositories,i=this.getSelectedItemForAccount(e),s=e===this.props.dotComAccount?this.state.dotComFilterText:this.state.enterpriseFilterText;return Ae.createElement(Ae.Fragment,null,Ae.createElement(JL,{account:e,selectedItem:i,filterText:s,onRefreshRepositories:this.props.onRefreshRepositories,loading:n,repositories:r,onSelectionChanged:this.onSelectionChanged,onFilterTextChanged:this.onFilterTextChanged,onItemClicked:this.onItemClicked}),this.renderCloneSelectedRepositoryButton(i))}onItemClicked=(e,t)=>{"keyboard"===t.kind&&"Enter"===t.event.key&&this.onCloneSelectedRepository()};renderCloneSelectedRepositoryButton(e){return null===e?null:Ae.createElement(mi,{type:"submit",className:"clone-selected-repository",onClick:this.onCloneSelectedRepository},"Clone"," ",Ae.createElement("strong",null,e.owner.login,"/",e.name))}onCloneSelectedRepository=()=>{const e=this.getSelectedAccount();if(null===e)return;const t=this.getSelectedItemForAccount(e);null!==t&&this.props.onClone(t.clone_url)};onSelectionChanged=e=>{const t=this.getSelectedAccount();t===this.props.dotComAccount?this.setState({selectedDotComRepository:e}):t===this.props.enterpriseAccount&&this.setState({selectedEnterpriseRepository:e})};onFilterTextChanged=e=>{const t=this.getSelectedAccount();t===this.props.dotComAccount?this.setState({dotComFilterText:e}):t===this.props.enterpriseAccount&&this.setState({enterpriseFilterText:e})};renderAccountsTabBar(){if(null===this.props.dotComAccount||null===this.props.enterpriseAccount)return null;const e=this.getSelectedAccount()===this.props.dotComAccount?0:1;return Ae.createElement(wD,{selectedIndex:e,onTabClicked:this.onTabClicked},Ae.createElement("span",null,"GitHub.com"),Ae.createElement("span",null,"GitHub Enterprise"))}onTabClicked=e=>{0===e?this.setState({selectedTab:gB.dotCom}):1===e&&this.setState({selectedTab:gB.enterprise})};onShowClone=()=>this.props.onClone();renderButtonGroupButton(e,t,n,r,i){return Ae.createElement("span",null,Ae.createElement(mi,{onClick:n,type:r,autoFocus:i},Ae.createElement(yi,{symbol:e}),Ae.createElement("div",null,t)))}renderTutorialRepositoryButton(){return this.isUserSignedIn()?this.props.tutorialPaused?this.renderButtonGroupButton(Ja,"Return to in progress tutorial",this.props.onResumeTutorialRepository,"submit"):this.renderButtonGroupButton(Ja,"创建存储库教程...",this.props.onCreateTutorialRepository,"submit"):null}renderCloneButton(){return this.renderButtonGroupButton(ql,"克隆存储库...",this.onShowClone,void 0,!this.isUserSignedIn())}renderCreateRepositoryButton(){return this.renderButtonGroupButton(_l,"Create a New Repository on your local drive…",this.props.onCreate)}renderAddExistingRepositoryButton(){return this.renderButtonGroupButton(_o,"Add an Existing Repository from your local drive…",this.props.onAdd)}renderGetStartedActions(){return Ae.createElement("div",{className:"content-pane"},Ae.createElement("div",{className:"button-group"},this.renderTutorialRepositoryButton(),this.renderCloneButton(),this.renderCreateRepositoryButton(),this.renderAddExistingRepositoryButton()),Ae.createElement("div",{className:"drag-drop-info"},Ae.createElement(yi,{symbol:Oa}),Ae.createElement("div",null,Ae.createElement("strong",null,"提示:"),"您可以将本地的存储库文件夹拖放到此处进行添加")))}}class SB extends Ae.Component{constructor(e){super(e),this.state={deleteRepoFromDisk:!1,isRemovingRepository:!1}}onSubmit=async()=>{this.setState({isRemovingRepository:!0}),await this.props.onConfirmation(this.props.repository,this.state.deleteRepoFromDisk),this.props.onDismissed()};render(){const e=this.state.isRemovingRepository;return Ae.createElement(aD,{id:"confirm-remove-repository",key:"remove-repository-confirmation",type:"warning",title:"移除仓库",dismissDisabled:e,loading:e,disabled:e,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit},Ae.createElement(nD,null,Ae.createElement("p",null,'确定从Github Desktop中移除仓库 "',this.props.repository.name,'" ?'),Ae.createElement("div",{className:"description"},Ae.createElement("p",null,"存储库将从Github Desktop中移除"),Ae.createElement("p",null,Ae.createElement(CD,null,this.props.repository.path))),Ae.createElement("div",null,Ae.createElement(uA,{label:"Also move this repository to Trash",value:this.state.deleteRepoFromDisk?cA.On:cA.Off,onChange:this.onConfirmRepositoryDeletion}))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"移除"})))}onConfirmRepositoryDeletion=e=>{const t=e.currentTarget.checked;this.setState({deleteRepoFromDisk:t})}}const EB="https://github.com/contact";class kB extends Ae.Component{render(){return Ae.createElement(aD,{id:"terms-and-conditions",title:"GitHub 开源应用程序条款和条件",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("p",null,'These GitHub Open Source Applications Terms and Conditions ("Application Terms") are a legal agreement between you (either as an individual or on behalf of an entity) and GitHub, Inc. regarding your use of GitHub\'s applications, such as GitHub Desktop™ and associated documentation ("Software"). These Application Terms apply to the executable code version of the Software. Source code for the Software is available separately and free of charge under open source software license agreements. If you do not agree to all of the terms in these Application Terms, do not download, install, use, or copy the Software.'),Ae.createElement("h2",null,"Connecting to GitHub"),Ae.createElement("p",null,'If you configure the Software to work with one or more accounts on the GitHub.com website or with an instance of GitHub Enterprise Server, your use of the Software will also be governed your applicable GitHub.com website Terms of Service and/or the license agreement applicable to your instance of GitHub Enterprise ("GitHub Terms").'),Ae.createElement("p",null,"Any use of the Software that violates your applicable GitHub Terms will also be a violation of these Application Terms."),Ae.createElement("h2",null,"Open Source Licenses and Notices"),Ae.createElement("p",null,'The open source license for the Software is included in the "Open Source Notices" documentation that is included with the Software. That documentation also includes copies of all applicable open source licenses.'),Ae.createElement("p",null,"To the extent the terms of the licenses applicable to open source components require GitHub to make an offer to provide source code in connection with the Software, such offer is hereby made, and you may exercise it by contacting GitHub:"," ",Ae.createElement(Hx,{uri:EB},"contact"),"."),Ae.createElement("p",null,"Unless otherwise agreed to in writing with GitHub, your agreement with GitHub will always include, at a minimum, these Application Terms. Open source software licenses for the Software's source code constitute separate written agreements. To the limited extent that the open source software licenses expressly supersede these Application Terms, the open source licenses govern your agreement with GitHub for the use of the Software or specific included components of the Software."),Ae.createElement("h2",null,"GitHub's Logos"),Ae.createElement("p",null,'The license grant included with the Software is not for GitHub\'s trademarks, which include the Software logo designs. GitHub reserves all trademark and copyright rights in and to all GitHub trademarks. GitHub\'s logos include, for instance, the stylized designs that include "logo" in the file title in the "logos" folder.'),Ae.createElement("p",null,"The names GitHub, GitHub Desktop, GitHub for Mac, GitHub for Windows, Atom, the Octocat, and related GitHub logos and/or stylized names are trademarks of GitHub. You agree not to display or use these trademarks in any manner without GitHub's prior, written permission, except as allowed by GitHub's Logos and Usage Policy:"," ",Ae.createElement(Hx,{uri:"https://github.com/logos"},"logos"),"."),Ae.createElement("h2",null,"Privacy"),Ae.createElement("p",null,"The Software may collect personal information. You may control what information the Software collects in the settings panel. If the Software does collect personal information on GitHub's behalf, GitHub will process that information in accordance with the",Ae.createElement(Hx,{uri:"https://help.github.com/articles/github-privacy-statement/"},"GitHub 隐私声明"),"."),Ae.createElement("h2",null,"Additional Services"),Ae.createElement("h3",null,"Auto-Update Services"),Ae.createElement("p",null,'The Software may include an auto-update service ("Service"). If you choose to use the Service or you download Software that automatically enables the Service, GitHub will automatically update the Software when a new version is available.'),Ae.createElement("h3",null,"Disclaimers and Limitations of Liability"),Ae.createElement("p",null,'THE SERVICE IS PROVIDED ON AN "AS IS" BASIS, AND NO WARRANTY, EITHER EXPRESS OR IMPLIED, IS GIVEN. YOUR USE OF THE SERVICE IS AT YOUR SOLE RISK. GitHub does not warrant that (i) the Service will meet your specific requirements; (ii) the Service is fully compatible with any particular platform; (iii) your use of the Service will be uninterrupted, timely, secure, or error-free; (iv) the results that may be obtained from the use of the Service will be accurate or reliable; (v) the quality of any products, services, information, or other material purchased or obtained by you through the Service will meet your expectations; or (vi) any errors in the Service will be corrected.'),Ae.createElement("p",null,"YOU EXPRESSLY UNDERSTAND AND AGREE THAT GITHUB SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF GITHUB HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES) RELATED TO THE SERVICE, including, for example: (i) the use or the inability to use the Service; (ii) the cost of procurement of substitute goods and services resulting from any goods, data, information or services purchased or obtained or messages received or transactions entered into through or from the Service; (iii) unauthorized access to or alteration of your transmissions or data; (iv) statements or conduct of any third-party on the Service; (v) or any other matter relating to the Service."),Ae.createElement("p",null,"GitHub reserves the right at any time and from time to time to modify or discontinue, temporarily or permanently, the Service (or any part thereof) with or without notice. GitHub shall not be liable to you or to any third-party for any price change, suspension or discontinuance of the Service."),Ae.createElement("h2",null,"Miscellanea"),Ae.createElement("ol",null,Ae.createElement("li",null,"No Waiver. The failure of GitHub to exercise or enforce any right or provision of these Application Terms shall not constitute a waiver of such right or provision."),Ae.createElement("li",null,"Entire Agreement. These Application Terms, together with any applicable Privacy Notices, constitutes the entire agreement between you and GitHub and governs your use of the Software, superseding any prior agreements between you and GitHub (including, but not limited to, any prior versions of the Application Terms)."),Ae.createElement("li",null,"Governing Law. You agree that these Application Terms and your use of the Software are governed under California law and any dispute related to the Software must be brought in a tribunal of competent jurisdiction located in or near San Francisco, California."),Ae.createElement("li",null,'Third-Party Packages. The Software supports third-party "Packages" which may modify, add, remove, or alter the functionality of the Software. These Packages are not covered by these Application Terms and may include their own license which governs your use of that particular package.'),Ae.createElement("li",null,"No Modifications; Complete Agreement. These Application Terms may only be modified by a written amendment signed by an authorized representative of GitHub, or by the posting by GitHub of a revised version. These Application Terms, together with any applicable Open Source Licenses and Notices and GitHub's Privacy Statement, represent the complete and exclusive statement of the agreement between you and us. These Application Terms supersede any proposal or prior agreement oral or written, and any other communications between you and GitHub relating to the subject matter of these terms."),Ae.createElement("li",null,"License to GitHub Policies. These Application Terms are licensed under the"," ",Ae.createElement(Hx,{uri:"https://creativecommons.org/licenses/by/4.0/"},"Creative Commons Attribution license"),". You may use it freely under the terms of the Creative Commons license."),Ae.createElement("li",null,"Contact Us. Please send any questions about these Application Terms to ",Ae.createElement(Hx,{uri:EB},"support@github.com"),"."))),Ae.createElement(hD,null))}}class RB extends Ae.Component{render(){return Ae.createElement(aD,{title:"命令行工具已安装",onDismissed:this.props.onDismissed,onSubmit:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("div",null,"The command line tool has been installed at"," ",Ae.createElement("strong",null,OO),".")),Ae.createElement(hD,{buttonText:"确定"}))}}class TB extends Ae.Component{constructor(e){super(e),this.state={username:this.props.username??"",password:""}}render(){const e=!this.state.password.length||!this.state.username.length;return Ae.createElement(aD,{id:"generic-git-auth",title:"验证失败",onDismissed:this.props.onDismiss,onSubmit:this.save,role:"alertdialog",ariaDescribedBy:"generic-git-auth-error"},Ae.createElement(nD,null,Ae.createElement("p",{id:"generic-git-auth-error"},"We were unable to authenticate with"," ",Ae.createElement(CD,null,this.props.remoteUrl),". Please enter"," ",this.props.username?Ae.createElement(Ae.Fragment,null,"the password for the user ",Ae.createElement(CD,null,this.props.username)):"your username and password"," ","to try again."),void 0===this.props.username&&Ae.createElement(GT,null,Ae.createElement(VT,{label:"用户名",autoFocus:!0,value:this.state.username,onValueChanged:this.onUsernameChange})),Ae.createElement(GT,null,Ae.createElement(TN,{label:"密码",value:this.state.password,onValueChanged:this.onPasswordChange,ariaDescribedBy:"generic-git-auth-password-description"})),Ae.createElement(GT,null,Ae.createElement("div",{id:"generic-git-auth-password-description"},"Depending on your repository's hosting service, you might need to use a Personal Access Token (PAT) as your password. Learn more about creating a PAT in our"," ",Ae.createElement(Hx,{uri:"https://github.com/desktop/desktop/tree/development/docs/integrations"},"integration docs"),"."))),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonDisabled:e})))}onUsernameChange=e=>{this.setState({username:e})};onPasswordChange=e=>{this.setState({password:e})};save=()=>{this.props.onSave(this.props.username??this.state.username,this.state.password),this.props.onDismiss()}}class AB extends Ae.Component{onShowPreferencesDialog=e=>{e.preventDefault(),this.props.onDismissed(),this.props.showPreferencesDialog()};render(){return Ae.createElement(aD,{id:"shell-error",type:"error",title:"无法打开 shell",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("p",null,this.props.message)),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"关闭",cancelButtonText: "打开选项",onCancelButtonClick:this.onShowPreferencesDialog})))}}const xB="https://git-lfs.github.com/";class DB extends Ae.Component{render(){return Ae.createElement(aD,{id:"initialize-lfs",title:"初始化 Git LFS",backdropDismissable:!1,onSubmit:this.onInitialize,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,this.renderRepositories()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"初始化 Git LFS",cancelButtonText:"暂不",onCancelButtonClick:this.props.onDismissed})))}onInitialize=()=>{this.props.onInitialize(this.props.repositories),this.props.onDismissed()};renderRepositories(){if(this.props.repositories.length>10)return Ae.createElement("p",null,this.props.repositories.length," repositories use"," ",Ae.createElement(Hx,{uri:xB},"Git LFS"),". To contribute to them, Git LFS must first be initialized. Would you like to do so now?");{const e=1!==this.props.repositories.length,t=e?"The repositories use":"This repository uses",n=e?"them":"it";return Ae.createElement("div",null,Ae.createElement("p",null,t," ",Ae.createElement(Hx,{uri:xB},"Git LFS"),". To contribute to"," ",n,", Git LFS must first be initialized. Would you like to do so now?"),Ae.createElement("ul",null,this.props.repositories.map((e=>Ae.createElement("li",{key:e.id},Ae.createElement(JD,{path:e.path}))))))}}}class _B extends Ae.Component{constructor(e){super(e),this.state={globalGitConfigPath:null}}async componentDidMount(){try{const e=await Zd();this.setState({globalGitConfigPath:e})}catch(e){log.warn("Couldn't get the global git config path",e)}}renderGlobalGitConfigLink(){const e="your global git config";return this.state.globalGitConfigPath?Ae.createElement(Hx,{onClick:this.showGlobalGitConfig},e):e}showGlobalGitConfig=()=>{const e=this.state.globalGitConfigPath;e&&pt.openPath(e)};render(){return Ae.createElement(aD,{id:"lfs-attribute-mismatch",title:"更新现有的 Git LFS 过滤器?",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit},Ae.createElement(nD,null,Ae.createElement("p",null,"Git LFS filters are already configured in"," ",this.renderGlobalGitConfigLink()," but are not the values it expects. Would you like to update them now?")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"更新现有过滤器",cancelButtonText:"暂不"})))}onSubmit=()=>{this.props.onUpdateExistingFilters(),this.props.onDismissed()}}class MB extends Ae.Component{render(){const e=this.props.repository.name,t=ut("A repository must have a GitHub repository to add an upstream remote",this.props.repository.gitHubRepository),n=ut("A repository must have a parent repository to add an upstream remote",t.parent),r=n.fullName,i=this.props.existingRemote.url,s=n.cloneURL;return Ae.createElement(aD,{title:"上游已存在",onDismissed:this.props.onDismissed,onSubmit:this.onUpdate,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"The repository ",Ae.createElement(CD,null,e)," is a fork of"," ",Ae.createElement(CD,null,r),", but its ",Ae.createElement(CD,null,vw)," ","remote points elsewhere."),Ae.createElement("ul",null,Ae.createElement("li",null,"Current: ",Ae.createElement(CD,null,i)),Ae.createElement("li",null,"Expected: ",Ae.createElement(CD,null,s))),Ae.createElement("p",null,"Would you like to update the remote to use the expected URL?")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"更新",cancelButtonText:"忽略",onCancelButtonClick:this.onIgnore})))}onUpdate=()=>{this.props.onUpdate(this.props.repository),this.props.onDismissed()};onIgnore=e=>{e.preventDefault(),this.props.onIgnore(this.props.repository),this.props.onDismissed()}}const PB=new YR("desktop",cr(),-1),IB=new Zr("",-1,new Nr("desktop",PB,-1,!1,"https://github.com/desktop/desktop"),!0);class OB extends Ae.Component{renderList(e,t){if(0===e.length)return null;const n=new Array;for(const[t,r]of e.entries())n.push(Ae.createElement("li",{key:t},Ae.createElement(AM,{text:r.message,emoji:this.props.emoji,renderUrlsAsLinks:!0,repository:IB})));return Ae.createElement("div",{className:"section"},Ae.createElement("p",{className:"header"},Ae.createElement("strong",null,t)),Ae.createElement("ul",{className:"entries"},n))}drawSingleColumnLayout(e){return Ae.createElement("div",{className:"container"},Ae.createElement("div",{className:"column"},this.renderList(e.bugfixes,"Bugfixes"),this.renderList(e.enhancements,"Enhancements"),this.renderList(e.other,"Other")))}drawTwoColumnLayout(e){return Ae.createElement("div",{className:"container"},Ae.createElement("div",{className:"column"},this.renderList(e.enhancements,"Enhancements"),this.renderList(e.other,"Other")),Ae.createElement("div",{className:"column"},this.renderList(e.bugfixes,"Bugfixes")))}getDisplayRelease=()=>{const{newReleases:e}=this.props,t=e.at(0),n=e.at(-1);return void 0===t||void 0===n||t===n?t:{latestVersion:`${n.latestVersion} - ${t.latestVersion}`,datePublished:`${n.datePublished} to ${t.datePublished}`,enhancements:e.flatMap((e=>e.enhancements)),bugfixes:e.flatMap((e=>e.bugfixes)),pretext:e.flatMap((e=>e.pretext)),other:[],thankYous:[]}};renderPretext=e=>{if(0!==e.length)return Ae.createElement(NI,{markdown:e[0].message,emoji:this.props.emoji,onMarkdownLinkClicked:this.onMarkdownLinkClicked,underlineLinks:this.props.underlineLinks,ariaLabel:"Release notes generated from markdown"})};onDismissed=e=>{e.preventDefault(),this.props.onDismissed()};renderButtons=()=>"3.4.3-linux1"===this.props.newReleases[0].latestVersion?Ae.createElement(mi,{type:"submit",onClick:this.onDismissed},"关闭"):Ae.createElement(uD,{destructive:!0,okButtonText:"安装并重启",cancelButtonText:"关闭"});render(){const e=this.getDisplayRelease();if(void 0===e)return null;const{latestVersion:t,datePublished:n,enhancements:r,bugfixes:i,pretext:s}=e,o=r.length>0&&i.length>0?this.drawTwoColumnLayout(e):this.drawSingleColumnLayout(e),a=Ae.createElement(Ae.Fragment,null,Ae.createElement("span",{className:"version"},"Version ",t),Ae.createElement("span",{className:"date"},n));return Ae.createElement(aD,{id:"release-notes",onDismissed:this.props.onDismissed,onSubmit:this.updateNow,title:a},Ae.createElement(nD,null,this.renderPretext(s),o),Ae.createElement(cD,null,Ae.createElement(Hx,{onClick:this.showAllReleaseNotes},"View all release notes"),this.renderButtons()))}updateNow=()=>{an.quitAndInstallUpdate()};showAllReleaseNotes=()=>{pt.openExternal(WN)};onMarkdownLinkClicked=e=>{pt.openExternal(e)}}class NB extends Ae.Component{render(){return Ae.createElement(aD,{id:"delete-branch",title:"删除分支",type:"warning",onDismissed:this.props.onDismissed,onSubmit:this.deleteBranch},Ae.createElement(nD,null,Ae.createElement("p",null,"This branch may have an open pull request associated with it."),Ae.createElement("p",null,"If"," ",Ae.createElement(Hx,{onClick:this.openPullRequest},"#",this.props.pullRequest.pullRequestNumber)," ","has been merged, you can also go to GitHub to delete the remote branch.")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText: "删除"})))}openPullRequest=()=>{this.props.dispatcher.showPullRequest(this.props.repository)};deleteBranch=()=>(this.props.dispatcher.deleteLocalBranch(this.props.repository,this.props.branch),this.props.onDismissed())}class LB extends Ae.Component{onCancel=()=>{this.props.onDismissed()};onSubmit=async()=>{this.props.onDismissed(),await this.props.dispatcher.commitIncludedChanges(this.props.repository,this.props.context),this.props.dispatcher.clearBanner(),this.props.dispatcher.setCommitMessage(this.props.repository,yw)};renderFiles(e){return Ae.createElement("div",{className:"conflicted-files-text"},Ae.createElement("ul",null,e.map((e=>Ae.createElement("li",{key:e.path},Ae.createElement(JD,{path:e.path}))))))}render(){return Ae.createElement(aD,{id:"commit-conflict-markers-warning",onDismissed:this.onCancel,onSubmit:this.onSubmit,title:"确认提交冲突文件",type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"If you choose to commit, youll be committing the following conflicted files into your repository:"),this.renderFiles(this.props.files),Ae.createElement("p",null,"Are you sure you want to commit these conflicted files?")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"确定,提交文件"})))}}class BB extends Ae.PureComponent{componentDidMount(){this.ensureTheme()}componentDidUpdate(){this.ensureTheme()}componentWillUnmount(){this.clearThemes()}async ensureTheme(){let e=this.props.theme;this.props.theme===Dp.System&&(e=await Ip());const t=`theme-${_p(e)}`;document.body.classList.contains(t)||(this.clearThemes(),document.body.classList.add(t),this.updateColorScheme())}updateColorScheme=()=>{const e=document.body.classList.contains("theme-dark");document.documentElement.style.colorScheme=e?"dark":"light"};clearThemes(){const e=document.body,t=[...e.classList];for(const n of t)n.startsWith("theme-")&&e.classList.remove(n)}render(){return null}}class FB extends Ae.Component{constructor(e){super(e)}render(){return Ae.createElement(aD,{id:"oversized-files",title:"文件过大",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"The following files are over 100MB."," ",Ae.createElement("strong",null,"If you commit these files, you will no longer be able to push this repository to GitHub.com.")),this.renderFileList(),Ae.createElement("p",{className:"recommendation"},"We recommend you avoid committing these files or use"," ",Ae.createElement(Hx,{uri:"https://help.github.com/articles/versioning-large-files/"},"Git LFS")," to store large files on GitHub.")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"仍要提交"})))}renderFileList(){return Ae.createElement("div",{className:"files-list"},Ae.createElement("ul",null,this.props.oversizedFiles.map((e=>Ae.createElement("li",{key:e},Ae.createElement(JD,{path:e}))))))}onSubmit=async()=>{this.props.onDismissed(),await this.props.dispatcher.commitIncludedChanges(this.props.repository,this.props.context),this.props.dispatcher.setCommitMessage(this.props.repository,yw)}}class HB extends Ae.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return Ae.createElement(aD,{title:"远程存在更新的提交",dismissDisabled:this.state.isLoading,disabled:this.state.isLoading,onDismissed:this.props.onDismissed,onSubmit:this.onFetch,loading:this.state.isLoading,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"无法将推送提交到此分支,因为远程上的提交在本地分支上不存在。在推送之前获取这些新提交,以使它们与您的本地提交同步。")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"获取",okButtonDisabled:this.state.isLoading})))}onFetch=async()=>{this.setState({isLoading:!0}),await this.props.dispatcher.fetch(this.props.repository,ln.UserInitiatedTask),this.setState({isLoading:!1}),this.props.onDismissed()}}var UB;!function(e){e[e.StashOnCurrentBranch=0]="StashOnCurrentBranch",e[e.MoveToNewBranch=1]="MoveToNewBranch"}(UB||(UB={}));class ZB extends Ae.Component{constructor(e){super(e),this.state={isStashingChanges:!1,selectedStashAction:UB.StashOnCurrentBranch,currentBranchName:e.currentBranch.name}}render(){const{isStashingChanges:e}=this.state;return Ae.createElement(aD,{id:"stash-changes",title:"选择分支",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,loading:e,disabled:e},Ae.createElement(nD,null,this.renderStashActions(),this.renderStashOverwriteWarning()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"选择分支"})))}renderStashOverwriteWarning(){return this.props.hasAssociatedStash&&this.state.selectedStashAction===UB.StashOnCurrentBranch?Ae.createElement(GT,null,Ae.createElement(yi,{symbol:vi})," 新暂存将覆盖当前暂存"):null}renderStashActions(){const{branchToCheckout:e}=this.props,t=[{title:`保留 ${this.state.currentBranchName} 上的更改`,description:"更改将保留在此分支",key:UB.StashOnCurrentBranch},{title:`将更改带到 ${e.name}`,description:"更改将带到新的分支",key:UB.MoveToNewBranch}];return Ae.createElement(GT,null,Ae.createElement(rB,{label:"此分支已更改。请选择下一步操作:",items:t,selectedKey:this.state.selectedStashAction,onSelectionChanged:this.onSelectionChanged}))}onSelectionChanged=e=>{this.setState({selectedStashAction:e})};onSubmit=async()=>{const{repository:e,branchToCheckout:t,dispatcher:n,hasAssociatedStash:r}=this.props,{selectedStashAction:i}=this.state;if(i===UB.StashOnCurrentBranch&&r)return void n.showPopup({type:dh.ConfirmOverwriteStash,repository:e,branchToCheckout:t});this.setState({isStashingChanges:!0});const s=Lx("stash and checkout",e);try{i===UB.StashOnCurrentBranch?await n.checkoutBranch(e,t,zw.StashOnCurrentBranch):i===UB.MoveToNewBranch&&await n.checkoutBranch(e,t,zw.MoveToNewBranch)}finally{s.done(),this.setState({isStashingChanges:!1},(()=>{this.props.onDismissed()}))}}}class $B extends Ae.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return Ae.createElement(aD,{id:"overwrite-stash",type:"warning",title:"覆盖临时保存的更改?",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"overwrite-stash-warning-message"},Ae.createElement(nD,null,Ae.createElement(GT,{id:"overwrite-stash-warning-message"},"Are you sure you want to proceed? This will overwrite your existing stash with your current changes.")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"覆盖"})))}onSubmit=async()=>{const{dispatcher:e,repository:t,branchToCheckout:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{if(null!==n){const r=zw.StashOnCurrentBranch;await e.checkoutBranch(t,n,r)}else await e.createStashForCurrentBranch(t,!1)}finally{this.setState({isLoading:!1})}r()}}class WB extends Ae.Component{constructor(e){super(e),this.state={isDiscarding:!1,confirmDiscardStash:e.askForConfirmationOnDiscardStash}}render(){return Ae.createElement(aD,{id:"discard-stash",type:"warning",title:"放弃临时保存的更改?",loading:this.state.isDiscarding,disabled:this.state.isDiscarding,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"discard-stash-warning-message"},Ae.createElement(nD,null,Ae.createElement(GT,{id:"discard-stash-warning-message"},"Are you sure you want to discard these stashed changes?"),Ae.createElement(GT,null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmDiscardStash?cA.Off:cA.On,onChange:this.onAskForConfirmationOnDiscardStashChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"放弃"})))}onAskForConfirmationOnDiscardStashChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardStash:t})};onSubmit=async()=>{const{dispatcher:e,repository:t,stash:n,onDismissed:r}=this.props;this.setState({isDiscarding:!0});try{e.setConfirmDiscardStashSetting(this.state.confirmDiscardStash),await e.dropStash(t,n)}finally{this.setState({isDiscarding:!1})}r()}}class qB extends Ae.Component{constructor(e){super(e),this.state={isCheckingOut:!1,confirmCheckoutCommit:e.askForConfirmationOnCheckoutCommit}}render(){return Ae.createElement(aD,{id:"checkout-commit",type:"warning",title:"Checkout commit?",loading:this.state.isCheckingOut,disabled:this.state.isCheckingOut,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,ariaDescribedBy:"checking-out-commit-confirmation",role:"alertdialog"},Ae.createElement(nD,null,Ae.createElement(GT,{id:"checking-out-commit-confirmation"},"Checking out a commit will create a detached HEAD, and you will no longer be on any branch. Are you sure you want to checkout this commit?"),Ae.createElement(GT,null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmCheckoutCommit?cA.Off:cA.On,onChange:this.onaskForConfirmationOnCheckoutCommitChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"Checkout"})))}onaskForConfirmationOnCheckoutCommitChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmCheckoutCommit:t})};onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isCheckingOut:!0});try{e.setConfirmCheckoutCommitSetting(this.state.confirmCheckoutCommit),await e.checkoutCommit(t,n)}finally{this.setState({isCheckingOut:!1})}r()}}class VB extends Ae.Component{onSubmit=()=>this.props.onCreateTutorialRepository(this.props.account);renderProgress(){const{progress:e}=this.props;if(void 0===e)return null;const t=e.description?Ae.createElement("div",{className:"description"},e.description):null;return Ae.createElement("div",{className:"progress-container"},Ae.createElement("div",null,e.title),Ae.createElement("progress",{value:e.value}),t)}render(){const{account:e,progress:t}=this.props,n=void 0!==t;return Ae.createElement(aD,{id:"create-tutorial-repository-dialog",title:"开始教程",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,dismissDisabled:n,loading:n,disabled:n},Ae.createElement(nD,null,Ae.createElement("div",null,"This will create a repository on your local machine, and push it to your account ",Ae.createElement(CD,null,"@",this.props.account.login)," 在"," ",Ae.createElement(Hx,{uri:ar(e.endpoint)},sb(e)),". This repository will only be visible to you, and not visible publicly."),this.renderProgress()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"确定"})))}}class GB extends Ae.Component{constructor(e){super(e),this.state={loading:!1}}render(){return Ae.createElement(aD,{id:"workflow-push-rejected",title:"推送被拒绝",loading:this.state.loading,onDismissed:this.props.onDismissed,onSubmit:this.onSignIn,type:"error"},Ae.createElement(nD,null,Ae.createElement("p",null,"The push was rejected by the server for containing a modification to the workflow file ",Ae.createElement(CD,null,this.props.rejectedPath),". In order to be able to push to workflow files GitHub Desktop needs to request additional permissions."),Ae.createElement("p",null,"Would you like to open a browser to grant GitHub Desktop permission to update workflow files?")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"在浏览器中继续"})))}onSignIn=async()=>{this.setState({loading:!0});const{repository:e,dispatcher:t}=this.props,{endpoint:n}=e.gitHubRepository;"success"===(await new Promise((async e=>{t.beginBrowserBasedSignIn(n,e)}))).kind&&t.push(e),this.props.onDismissed()}}class zB extends Ae.Component{constructor(e){super(e),this.state={loading:!1}}render(){return Ae.createElement(aD,{title:"需要重新授权",loading:this.state.loading,onDismissed:this.props.onDismissed,onSubmit:this.onSignIn,type:"error"},Ae.createElement(nD,null,Ae.createElement("p",null,'The "',this.props.organizationName,"\" organization has enabled or enforced SAML SSO. To access this repository, you must sign in again and grant GitHub Desktop permission to access the organization's repositories."),Ae.createElement("p",null,"Would you like to open a browser to grant GitHub Desktop permission to access the repository?")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"在浏览器中继续"})))}onSignIn=async()=>{this.setState({loading:!0});const{dispatcher:e,endpoint:t}=this.props;"success"===(await new Promise((async n=>{e.beginBrowserBasedSignIn(t,n)}))).kind&&this.props.retryAction&&e.performRetry(this.props.retryAction),this.props.onDismissed()}}class jB extends Ae.Component{constructor(e){super(e),this.state={loading:!1}}onSubmit=async()=>{this.setState({loading:!0});const{gitHubRepository:e}=this.props.repository,t=ir.fromAccount(this.props.account);try{const n=await t.forkRepository(e.owner.login,e.name);this.props.dispatcher.incrementMetric("forksCreated");const r=await this.props.dispatcher.convertRepositoryToFork(this.props.repository,n);this.setState({loading:!1}),this.props.onDismissed(),Wr(r)&&this.props.dispatcher.showPopup({type:dh.ChooseForkSettings,repository:r})}catch(e){log.error(`Fork creation through API failed (${e})`),FT("forkCreation",e),this.setState({error:e,loading:!1})}};render(){return Ae.createElement(aD,{title:"是否要 fork 此存储库?",onDismissed:this.props.onDismissed,onSubmit:this.state.error?void 0:this.onSubmit,dismissDisabled:this.state.loading,loading:this.state.loading,type:this.state.error?"error":"normal",key:this.props.repository.name,id:"create-fork"},void 0!==this.state.error?function(e,t,n){const r=null!==e.gitHubRepository.htmlURL?Ae.createElement(Ae.Fragment,null,"You can try ",Ae.createElement(Hx,{uri:e.gitHubRepository.htmlURL},"creating the fork manually on GitHub"),"."):void 0;return Ae.createElement(Ae.Fragment,null,Ae.createElement(nD,null,Ae.createElement("div",null,"Creating your fork ",Ae.createElement("strong",null,`${t.login}/${e.gitHubRepository.name}`)," failed. ",r),Ae.createElement("details",null,Ae.createElement("summary",null,"Error details"),Ae.createElement("pre",{className:"error"},n.message))),Ae.createElement(hD,null))}(this.props.repository,this.props.account,this.state.error):(e=this.props.repository,t=this.props.account,n=this.state.loading,Ae.createElement(Ae.Fragment,null,Ae.createElement(nD,null,Ae.createElement("p",null,"It looks like you dont have write access to ",Ae.createElement("strong",null,e.gitHubRepository.fullName),". If you should, please check with a repository administrator."),Ae.createElement("p",null," Do you want to create a fork of this repository at ",Ae.createElement("strong",null,`${t.login}/${e.gitHubRepository.name}`)," to continue?")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"Fork 该存储库",okButtonDisabled:n,cancelButtonDisabled:n})))));var e,t,n}}class KB extends Ae.Component{constructor(e){super(e),this.state={tagName:e.initialName||"",isCreatingTag:!1,previousTags:this.getExistingTagsFiltered()}}render(){const e=this.getCurrentError(),t=null!==e||0===this.state.tagName.length;return Ae.createElement(aD,{id:"create-tag",title:"创建标签",onSubmit:this.createTag,onDismissed:this.props.onDismissed,loading:this.state.isCreatingTag,disabled:this.state.isCreatingTag},e&&Ae.createElement(lD,null,e),Ae.createElement(nD,null,Ae.createElement(yN,{label: "名称",initialValue:this.props.initialName,onValueChange:this.updateTagName}),this.renderPreviousTags()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"创建标签",okButtonDisabled:t})))}renderPreviousTags(){if(!Yt())return null;const{localTags:e}=this.props,{previousTags:t,tagName:n}=this.state;if(null===t||null===e||0===e.size)return null;const r=t.slice(-3);return Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"Previous tags"),0===r.length?Ae.createElement("p",null,`No matches found for '${n}'`):r.map(((e,t)=>Ae.createElement(CD,{key:t},e))))}getCurrentError(){return this.state.tagName.length>245?Ae.createElement(Ae.Fragment,null,"The tag name cannot be longer than ",245," characters"):this.props.localTags&&this.props.localTags.has(this.state.tagName)?Ae.createElement(Ae.Fragment,null,"A tag named ",Ae.createElement(CD,null,this.state.tagName)," already exists"):null}getExistingTagsFiltered(e=""){return null===this.props.localTags?null:Array.from(this.props.localTags.keys()).filter((t=>t.includes(e)))}updateTagName=e=>{this.setState({tagName:e,previousTags:this.getExistingTagsFiltered(e)})};createTag=async()=>{const e=this.state.tagName,t=this.props.repository;if(e.length>0){this.setState({isCreatingTag:!0});const n=Lx("create tag",t);await this.props.dispatcher.createTag(t,e,this.props.targetCommitSha),n.done(),this.props.onDismissed()}}}class YB extends Ae.Component{constructor(e){super(e),this.state={isDeleting:!1}}render(){return Ae.createElement(aD,{id:"delete-tag",title:"删除标签",type:"warning",onSubmit:this.DeleteTag,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-tag-confirmation"},Ae.createElement(nD,null,Ae.createElement("p",{id:"delete-tag-confirmation"},"Are you sure you want to delete the tag"," ",Ae.createElement(CD,null,this.props.tagName),"?")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText: "删除"})))}DeleteTag=async()=>{const{dispatcher:e,repository:t,tagName:n}=this.props;this.setState({isDeleting:!0}),await e.deleteTag(t,n),this.props.onDismissed()}}class XB extends Ae.Component{constructor(e){super(e),this.state={forkContributionTarget:zr(e.repository)}}render(){const e=[{title:"为了为父项目做贡献",description:Ae.createElement(Ae.Fragment,null,"We will help you contribute to the"," ",Ae.createElement("strong",null,this.props.repository.gitHubRepository.parent.fullName)," ","repository"),key:Br.Parent},{title:"出于自己的目的",description:Ae.createElement(Ae.Fragment,null,"We will help you contribute to the"," ",Ae.createElement("strong",null,this.props.repository.gitHubRepository.fullName)," ","repository"),key:Br.Self}];return Ae.createElement(aD,{id:"fork-settings",title:"你打算如何使用此 fork",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(rB,{label:"此分支已更改。请选择下一步操作:",items:e,selectedKey:this.state.forkContributionTarget,onSelectionChanged:this.onSelectionChanged})),Ae.createElement(GT,null,Ae.createElement(RD,{repository:this.props.repository,forkContributionTarget:this.state.forkContributionTarget}))),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"确定"})))}onSelectionChanged=e=>{this.setState({forkContributionTarget:e})};onSubmit=async()=>{this.props.dispatcher.updateRepositoryWorkflowPreferences(this.props.repository,{forkContributionTarget:this.state.forkContributionTarget}),this.props.onDismissed()}}class QB extends Ae.Component{constructor(e){super(e),this.state={isDiscardingSelection:!1,confirmDiscardSelection:!0}}getOkButtonLabel(){return"Discard changes"}render(){const e=this.state.isDiscardingSelection;return Ae.createElement(aD,{id:"discard-changes",title:"确认放弃更改",onDismissed:this.props.onDismissed,onSubmit:this.discard,dismissDisabled:e,loading:e,disabled:e,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"确定要放弃选中的更改吗?"),Ae.createElement("ul",null,Ae.createElement("li",null,Ae.createElement(JD,{path:this.props.file.path}))),Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmDiscardSelection?cA.Off:cA.On,onChange:this.onConfirmDiscardSelectionChanged})),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:this.getOkButtonLabel(),okButtonDisabled:e,cancelButtonDisabled:e})))}discard=async()=>{this.setState({isDiscardingSelection:!0}),await this.props.dispatcher.discardChangesFromSelection(this.props.repository,this.props.file.path,this.props.diff,this.props.selection),this.props.dispatcher.setConfirmDiscardChangesSetting(this.state.confirmDiscardSelection),this.props.onDismissed()};onConfirmDiscardSelectionChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardSelection:t})}}class JB extends Ae.Component{constructor(e){super(e),this.state={stashing:!1}}render(){const e=this.props.files.length>0?" The following files would be overwritten:":null;return Ae.createElement(aD,{title:"错误",id:"local-changes-overwritten",loading:this.state.stashing,disabled:this.state.stashing,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"error",role:"alertdialog",ariaDescribedBy:"local-changes-error-description"},Ae.createElement(nD,null,Ae.createElement("div",{id:"local-changes-error-description"},Ae.createElement("p",null,"Unable to ",this.getRetryActionName()," when changes are present on your branch.",e),this.renderFiles(),this.renderStashText())),this.renderFooter())}renderFiles(){const{files:e}=this.props;return 0===e.length?null:Ae.createElement("div",{className:"files-list"},Ae.createElement("ul",null,e.map((e=>Ae.createElement("li",{key:e},Ae.createElement(JD,{path:e}))))))}renderStashText(){return this.props.hasExistingStash&&!this.state.stashing?null:Ae.createElement("p",null,"You can stash your changes now and recover them afterwards.")}renderFooter(){return this.props.hasExistingStash&&!this.state.stashing?Ae.createElement(hD,null):Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"保存更改并继续",okButtonTitle:"This will create a stash with your current changes. You can recover them by restoring the stash afterwards.",cancelButtonText:"关闭"}))}onSubmit=async()=>{const{hasExistingStash:e,repository:t,dispatcher:n,retryAction:r}=this.props;if(e)return void this.props.onDismissed();this.setState({stashing:!0});const i=await n.createStashForCurrentBranch(t,!1);this.props.onDismissed(),i&&await n.performRetry(r)};getRetryActionName(){switch(this.props.retryAction.type){case mt.Checkout:return"checkout";case mt.Pull:return"pull";case mt.Merge:return"merge";case mt.Rebase:return"rebase";case mt.Clone:return"clone";case mt.Fetch:return"fetch";case mt.Push:return"push";case mt.CherryPick:case mt.CreateBranchForCherryPick:return"cherry-pick";case mt.Squash:return"squash";case mt.Reorder:return"reorder";case mt.DiscardChanges:return"discard changes";default:ct(this.props.retryAction,`Unknown retryAction: ${this.props.retryAction}`)}}}class eF extends Ae.Component{constructor(e){super(e),this.state={askToMoveToApplicationsFolder:!0}}render(){return Ae.createElement(aD,{title:"将 GitHub 桌面版移动到应用程序文件夹中?",id:"move-to-applications-folder",backdropDismissable:!1,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"We've detected that you're not running GitHub Desktop from the Applications folder of your machine. This could cause problems with the app, including impacting your ability to sign in."),Ae.createElement("p",null,"Do you want to move GitHub Desktop to the Applications folder now? This will also restart the app."),Ae.createElement("div",null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.askToMoveToApplicationsFolder?cA.Off:cA.On,onChange:this.onAskToMoveToApplicationsFolderChanged}))),this.renderFooter())}renderFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"移动并重启",okButtonTitle:"This will move GitHub Desktop to the Applications folder in your machine and restart the app.",cancelButtonText:"暂不",onCancelButtonClick:this.onNotNow}))}onAskToMoveToApplicationsFolderChanged=e=>{const t=!e.currentTarget.checked;this.setState({askToMoveToApplicationsFolder:t})};onNotNow=()=>{this.props.onDismissed(),this.props.dispatcher.setAskToMoveToApplicationsFolderSetting(this.state.askToMoveToApplicationsFolder)};onSubmit=async()=>{this.props.onDismissed();try{await this.props.dispatcher.moveToApplicationsFolder()}catch(e){this.props.dispatcher.postError(e)}}}class tF extends Ae.Component{constructor(e){super(e),this.state={newAlias:e.repository.alias??e.repository.name}}render(){const e=this.props.repository,t=null===e.alias?"创建":"变更";return Ae.createElement(aD,{id:"change-repository-alias",title:`${t} 存储库别名`,ariaDescribedBy:"change-repository-alias-description",onDismissed:this.props.onDismissed,onSubmit:this.changeAlias},Ae.createElement(nD,null,Ae.createElement("p",{id:"change-repository-alias-description"},'请输入别名,此别名对应的存储库是 "',qr(e),'".'," "),Ae.createElement("p",null,Ae.createElement(VT,{ariaLabel:"Alias",value:this.state.newAlias,onValueChanged:this.onNameChanged})),null!==e.gitHubRepository&&Ae.createElement("p",{className:"description"},"This will not affect the original repository name on GitHub.")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:`${t} 别名`,okButtonDisabled:0===this.state.newAlias.length})))}onNameChanged=e=>{this.setState({newAlias:e})};changeAlias=()=>{this.props.dispatcher.changeRepositoryAlias(this.props.repository,this.state.newAlias),this.props.onDismissed()}}var nF=n(6215),rF=n.n(nF);class iF extends Ae.Component{constructor(e){super(e),this.state={}}renderList(e){if(0===e.length)return null;const t=new Array;for(const[n,r]of e.entries())t.push(Ae.createElement("li",{key:n},Ae.createElement(AM,{text:r.message,emoji:this.props.emoji,renderUrlsAsLinks:!0,repository:IB})));return Ae.createElement("div",{className:"section"},Ae.createElement("ul",{className:"entries"},t))}renderConfetti(){const{confettiHost:e}=this.state;if(e){const{left:e,top:t}=this.state.confettiRect??{left:0,top:0};return Ae.createElement(rF(),{recycle:!1,numberOfPieces:750,width:window.innerWidth,height:window.innerHeight,style:{left:e,top:t}})}}updateConfettiRect=e=>{if(e.currentTarget instanceof HTMLElement){const{offsetLeft:t,offsetTop:n}=e.currentTarget,{innerWidth:r,innerHeight:i}=window,s=new DOMRect(-Math.round(t),-Math.round(n),r,i);this.setState({confettiRect:s})}};onDialogRef=e=>{this.setState({confettiHost:e??void 0}),e?.addEventListener("dialog-show",this.updateConfettiRect)};render(){const e=null!==this.props.latestVersion?` ${this.props.latestVersion}`:"",t=Ae.createElement(Ae.Fragment,null,"Thanks so much for all your hard work on GitHub Desktop",e,". We're so grateful for your willingness to contribute and make the app better for everyone!");return Ae.createElement(aD,{id:"thank-you-notes",onDismissed:this.props.onDismissed,title:`Thank you ${this.props.friendlyName}! 🎉`,onDialogRef:this.onDialogRef},Ae.createElement(nD,null,Ae.createElement("div",{className:"container"},Ae.createElement("div",{className:"thank-you-note"},t),Ae.createElement("div",{className:"contributions-heading"},"You contributed:"),Ae.createElement("div",{className:"contributions"},this.renderList(this.props.userContributions)),this.renderConfetti())))}}function sF(e,t,n,r){const i=[n],s={version:r,checkedUsers:[...void 0===t||t.version!==r?[]:t.checkedUsers,...i]};e.setLastThankYou(s)}class oF extends Ae.Component{constructor(e){super(e);const{showCoAuthoredBy:t,coAuthors:n}=e;this.state={showCoAuthoredBy:t,coAuthors:n}}render(){return Ae.createElement(aD,{id:"commit-message-dialog",title:this.props.dialogTitle,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement(KD,{branch:this.props.branch,mostRecentLocalCommit:null,commitAuthor:this.props.commitAuthor,dispatcher:this.props.dispatcher,isShowingModal:!0,isShowingFoldout:!1,commitButtonText:this.props.dialogButtonText,commitToAmend:null,repository:this.props.repository,commitMessage:this.props.commitMessage,focusCommitMessage:!1,autocompletionProviders:this.props.autocompletionProviders,showCoAuthoredBy:this.state.showCoAuthoredBy,coAuthors:this.state.coAuthors,placeholder:"",prepopulateCommitSummary:this.props.prepopulateCommitSummary,key:this.props.repository.id,showBranchProtected:this.props.showBranchProtected,repoRulesInfo:this.props.repoRulesInfo,aheadBehind:this.props.aheadBehind,showNoWriteAccess:this.props.showNoWriteAccess,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,onCoAuthorsUpdated:this.onCoAuthorsUpdated,onShowCoAuthoredByChanged:this.onShowCoAuthorsChanged,onConfirmCommitWithUnknownCoAuthors:this.onConfirmCommitWithUnknownCoAuthors,onCreateCommit:this.props.onSubmitCommitMessage,anyFilesAvailable:!0,anyFilesSelected:!0,onCommitMessageFocusSet:mM(),onRefreshAuthor:this.onRefreshAuthor,onShowPopup:this.onShowPopup,onShowFoldout:this.onShowFoldout,onCommitSpellcheckEnabledChanged:this.onCommitSpellcheckEnabledChanged,repositoryAccount:this.props.repositoryAccount,onStopAmending:this.onStopAmending,onShowCreateForkDialog:this.onShowCreateForkDialog,accounts:this.props.accounts})))}onCoAuthorsUpdated=e=>this.setState({coAuthors:e});onShowCoAuthorsChanged=e=>this.setState({showCoAuthoredBy:e});onConfirmCommitWithUnknownCoAuthors=(e,t)=>{const{dispatcher:n}=this.props;n.showUnknownAuthorsCommitWarning(e,t)};onRefreshAuthor=()=>this.props.dispatcher.refreshAuthor(this.props.repository);onShowPopup=e=>this.props.dispatcher.showPopup(e);onShowFoldout=e=>this.props.dispatcher.showFoldout(e);onCommitSpellcheckEnabledChanged=e=>this.props.dispatcher.setCommitSpellcheckEnabled(e);onStopAmending=()=>this.props.dispatcher.stopAmendingRepository(this.props.repository);onShowCreateForkDialog=()=>{$r(this.props.repository)&&this.props.dispatcher.showCreateForkDialog(this.props.repository)}}const aF="No conflicts remaining";function lF(e,t){return Ae.createElement("li",{key:e,className:"unmerged-file-status-conflicts"},Ae.createElement(yi,{symbol:xo,className:"file-octicon"}),t)}const cF=(e,t,n,r,i,s)=>()=>{hh(pF(e,n,r,t,i,s))},uF=(e,t,n)=>()=>n.updateManualConflictResolution(t,e,null),hF=(e,n,r,i,s,o,a)=>()=>{const l=(0,t.join)(n.path,e),c=[{label:bh,action:()=>OM(l,r)},{label:yh,action:()=>dt(n,e)},{type:"separator"},...pF(e,n,r,i,s,o)];a(!0),hh(c).then((()=>{a(!1)}))};function pF(e,t,n,r,i,s){return[{label:Wy(r.entry.us,i),action:()=>n.updateManualConflictResolution(t,e,kg.ours)},{label:Wy(r.entry.them,s),action:()=>n.updateManualConflictResolution(t,e,kg.theirs)}]}const dF=(e,t,n)=>Vu(e)&&0===e.conflictMarkerCount?aF:function(e,t,n){return t===kg.ours?$y(e.entry.us,n):t===kg.theirs?$y(e.entry.them,n):aF}(e,t,n);const mF="Manual conflict";class fF extends Ae.Component{render(){return Ae.createElement("div",{className:"dialog-banner dialog-success",role:"alert"},Ae.createElement(yi,{symbol:Xi}),Ae.createElement("div",null,this.props.children))}}class gF extends Ae.Component{constructor(e){super(e),this.state={isCommitting:!1,isAborting:!1,isFileResolutionOptionsMenuOpen:!1,countResolved:null}}componentWillUnmount(){const{workingDirectory:e,userHasResolvedConflicts:t,manualResolutions:n,someConflictsHaveBeenResolved:r}=this.props;t||void 0===r||qy(e,n).length>0&&r()}componentDidUpdate(){const{workingDirectory:e,manualResolutions:t}=this.props,n=qy(e,t);n.length!==(this.state.countResolved??0)&&this.setState({countResolved:n.length})}onSubmit=async()=>{this.setState({isCommitting:!0}),await this.props.onSubmit()};onAbort=async e=>{e.preventDefault(),this.setState({isAborting:!0}),await this.props.onAbort(),this.setState({isAborting:!1})};openThisRepositoryInShell=()=>this.props.openRepositoryInShell(this.props.repository);setIsFileResolutionOptionsMenuOpen=e=>{this.setState({isFileResolutionOptionsMenuOpen:e})};renderUnmergedFiles(e){return Ae.createElement("ul",{className:"unmerged-file-statuses"},e.map((e=>{return Hy(e.status)?Vu((s={path:e.path,status:e.status,resolvedExternalEditor:this.props.resolvedExternalEditor,openFileInExternalEditor:this.props.openFileInExternalEditor,repository:this.props.repository,dispatcher:this.props.dispatcher,manualResolution:this.props.manualResolutions.get(e.path),ourBranch:this.props.ourBranch,theirBranch:this.props.theirBranch,isFileResolutionOptionsMenuOpen:this.state.isFileResolutionOptionsMenuOpen,setIsFileResolutionOptionsMenuOpen:this.setIsFileResolutionOptionsMenuOpen}).status)&&Zy(s.status,s.manualResolution)?(e=>{const t=(n=e.status.conflictMarkerCount,Math.ceil(n/3));var n;const r=1===t?"1 conflict":`${t} conflicts`,i=null===e.resolvedExternalEditor,s=function(e){if(null===e)return"No editor configured in Options > Advanced"}(e.resolvedExternalEditor),o=hF(e.path,e.repository,e.dispatcher,e.status,e.ourBranch,e.theirBranch,e.setIsFileResolutionOptionsMenuOpen),a=Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"column-left"},Ae.createElement(JD,{path:e.path}),Ae.createElement("div",{className:"file-conflicts-status"},r)),Ae.createElement("div",{className:"action-buttons"},Ae.createElement(mi,{onClick:e.onOpenEditorClick,disabled:i,tooltip:s,className:"small-button button-group-item"},`打开于 ${e.resolvedExternalEditor||"editor"}`),Ae.createElement(mi,{onClick:o,className:"small-button button-group-item arrow-menu",ariaLabel:"File resolution options",ariaHaspopup:"menu",ariaExpanded:e.isFileResolutionOptionsMenuOpen},Ae.createElement(yi,{symbol:Qc}))));return lF(e.path,a)})({path:s.path,status:s.status,resolvedExternalEditor:s.resolvedExternalEditor,onOpenEditorClick:()=>s.openFileInExternalEditor((0,t.join)(s.repository.path,s.path)),repository:s.repository,dispatcher:s.dispatcher,ourBranch:s.ourBranch,theirBranch:s.theirBranch,isFileResolutionOptionsMenuOpen:s.isFileResolutionOptionsMenuOpen,setIsFileResolutionOptionsMenuOpen:s.setIsFileResolutionOptionsMenuOpen}):Gu(s.status)&&Zy(s.status,s.manualResolution)?(e=>{const t=cF(e.path,e.status,e.repository,e.dispatcher,e.ourBranch,e.theirBranch),{ourBranch:n,theirBranch:r}=e,{entry:i}=e.status;let s=mF;if([i.us,i.them].includes(Ou.Deleted)){let e="target branch";i.us===Ou.Deleted&&void 0!==n&&(e=n),i.them===Ou.Deleted&&void 0!==r&&(e=r),s=`File does not exist on ${e}.`}const o=Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"column-left"},Ae.createElement(JD,{path:e.path}),Ae.createElement("div",{className:"file-conflicts-status"},s)),Ae.createElement("div",{className:"action-buttons"},Ae.createElement(mi,{className:"small-button button-group-item resolve-arrow-menu",onClick:t},"Resolve",Ae.createElement(yi,{symbol:Qc}))));return lF(e.path,o)})({path:s.path,status:s.status,repository:s.repository,dispatcher:s.dispatcher,ourBranch:s.ourBranch,theirBranch:s.theirBranch}):(e=>{const t=dF(e.status,e.manualResolution,e.branch);return Ae.createElement("li",{key:e.path,className:"unmerged-file-status-resolved"},Ae.createElement(yi,{symbol:xo,className:"file-octicon"}),Ae.createElement("div",{className:"column-left",id:e.path},Ae.createElement(JD,{path:e.path}),Ae.createElement("div",{className:"file-conflicts-status"},t)),t===aF?null:Ae.createElement(mi,{className:"undo-button",onClick:uF(e.path,e.repository,e.dispatcher),ariaDescribedBy:e.path},"Undo"),Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{symbol:Xi})))})({path:s.path,status:s.status,repository:s.repository,dispatcher:s.dispatcher,manualResolution:s.manualResolution,branch:(n=s.manualResolution,r=s.ourBranch,i=s.theirBranch,n===kg.ours?r:n===kg.theirs?i:void 0)}):null;var n,r,i,s})))}renderContent(e,t){return 0===e.length?Ae.createElement("div",{className:"all-conflicts-resolved"},Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{symbol:Xi})),Ae.createElement("div",{className:"message"},"All conflicts resolved")):Ae.createElement(Ae.Fragment,null,function(e){const t=1===e?"1 conflicted file":`${e} conflicted files`;return Ae.createElement("h2",{className:"summary"},t)}(t),this.renderUnmergedFiles(e),(n=this.openThisRepositoryInShell,Ae.createElement("div",null,Ae.createElement(Hx,{onClick:n},"打开于 command line,")," ","your tool of choice, or close to resolve manually.")));var n}renderBanner(e){const{countResolved:t}=this.state;if(null===t)return;if(0===t)return Ae.createElement(fF,null,"All resolutions have been undone.");if(0===e)return Ae.createElement(fF,null,"All conflicted files have been resolved. ");const n=1===t?"file has":"files have";return Ae.createElement(fF,null,t," conflicted ",n," been resolved.")}render(){const{workingDirectory:e,manualResolutions:t,headerTitle:n,submitButton:r,abortButton:i}=this.props,s=function(e){return e.files.filter((e=>Hy(e.status)))}(this.props.workingDirectory),o=Vy(e,t),a=o.length>0?"Resolve all changes before continuing":void 0;return Ae.createElement(aD,{id:"conflicts-dialog",dismissDisabled:this.state.isCommitting,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,title:n,loading:this.state.isCommitting,disabled:this.state.isCommitting},this.renderBanner(o.length),Ae.createElement(nD,null,this.renderContent(s,o.length)),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:r,okButtonDisabled:o.length>0,okButtonTitle:a,cancelButtonText:i,onCancelButtonClick:this.onAbort,cancelButtonDisabled:this.state.isAborting})))}}class yF extends Ae.Component{constructor(e){super(e),this.state={isAborting:!1}}onSubmit=async()=>{this.setState({isAborting:!0}),await this.props.onConfirmAbort(),this.setState({isAborting:!1})};onCancel=async()=>this.props.onReturnToConflicts();render(){const{operation:e}=this.props;return Ae.createElement(aD,{id:"abort-warning",title:`Confirm abort ${e.toLowerCase()}`,onDismissed:this.onCancel,onSubmit:this.onSubmit,disabled:this.state.isAborting,type:"warning",role:"alertdialog",ariaDescribedBy:"abort-operation-confirmation"},Ae.createElement(nD,null,Ae.createElement("div",{className:"column-left",id:"abort-operation-confirmation"},Ae.createElement("p",null,"Are you sure you want to abort this ",e.toLowerCase(),"?"),Ae.createElement("p",null,"This will take you back to the original branch state and the conflicts you have already resolved will be discarded."))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:`Abort ${e.toLowerCase()}`})))}}class wF extends Ae.Component{render(){const{progress:e,operation:t,emoji:n}=this.props,{position:r,totalCommitCount:i,value:s,currentCommitSummary:o}=e,a=oy(s);return Ae.createElement(aD,{dismissDisabled:!0,id:"multi-commit-progress",title:`${t} in progress`},Ae.createElement(nD,null,Ae.createElement("div",null,Ae.createElement("progress",{value:a}),Ae.createElement("div",{className:"details"},Ae.createElement("div",{className:"green-circle"},Ae.createElement(yi,{symbol:Xi})),Ae.createElement("div",{className:"summary"},Ae.createElement("div",{className:"message"},"Commit ",r," of ",i),Ae.createElement("div",{className:"detail"},Ae.createElement(AM,{emoji:n,text:o||""})))))))}}class bF extends Ae.Component{constructor(e){super(e),this.state={askForConfirmationOnForcePush:e.askForConfirmationOnForcePush}}render(){const{operation:e,onDismissed:t}=this.props,n=`${e} will require force push`;return Ae.createElement(aD,{title:n,onDismissed:t,onSubmit:this.onBegin,backdropDismissable:!1,type:"warning",role:"alertdialog",ariaDescribedBy:"warn-force-push-confirmation-title warn-force-push-confirmation-message"},Ae.createElement(nD,null,Ae.createElement("p",{id:"warn-force-push-confirmation-title"},"Are you sure you want to ",e.toLowerCase(),"?"),Ae.createElement("p",{id:"warn-force-push-confirmation-message"},"At the end of the ",e.toLowerCase()," flow, GitHub Desktop will enable you to force push the branch to update the upstream branch. Force pushing will alter the history on the remote and potentially cause problems for others collaborating on this branch."),Ae.createElement("div",null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.askForConfirmationOnForcePush?cA.Off:cA.On,onChange:this.onAskForConfirmationOnForcePushChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:`Begin ${e.toLowerCase()}`,onCancelButtonClick:this.props.onDismissed})))}onAskForConfirmationOnForcePushChanged=e=>{const t=!e.currentTarget.checked;this.setState({askForConfirmationOnForcePush:t})};onBegin=async()=>{this.props.dispatcher.setConfirmForcePushSetting(this.state.askForConfirmationOnForcePush),this.props.onBegin()}}class vF extends Ae.Component{onFlowEnded=()=>{this.props.dispatcher.closePopup(dh.MultiCommitOperation),this.props.dispatcher.endMultiCommitOperation(this.props.repository)};endFlowInvalidState(e=!1){const{step:t,operationDetail:n}=this.props.state,r=`[${n.kind}] - Invalid state - ${n.kind} ended during ${t.kind}.`;if(e)return this.onFlowEnded(),void log.error(r);throw new Error(r)}onInvokeConflictsDialogDismissed=e=>{const{repository:t,dispatcher:n,state:r}=this.props,{targetBranch:i,step:s}=r;if("ShowConflicts"!==s.kind)return void this.endFlowInvalidState();const{conflictState:o}=s;n.setMultiCommitOperationStep(t,{kind:"HideConflicts",conflictState:o});const a=Ae.createElement(Ae.Fragment,null,e," ",null!==i?Ae.createElement("strong",null,i.name):null);return this.props.dispatcher.closePopup(dh.MultiCommitOperation),n.onConflictsFoundBanner(t,a,o)};onConfirmingAbort=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r}=this.props,{userHasResolvedConflicts:i,step:s}=r;if("ShowConflicts"!==s.kind)return void this.endFlowInvalidState();const{conflictState:o}=s,a=qy(n,o.manualResolutions);if(!(i||a.length>0))return this.onAbort();t.setMultiCommitOperationStep(e,{kind:"ConfirmAbort",conflictState:o})};moveToConflictState=()=>{const{dispatcher:e,repository:t,state:n}=this.props,{step:r}=n;if("ConfirmAbort"!==r.kind)return void this.endFlowInvalidState();const{conflictState:i}=r;return e.setMultiCommitOperationStep(t,{kind:"ShowConflicts",conflictState:i})};setConflictsHaveBeenResolved=()=>{this.props.dispatcher.setConflictsResolved(this.props.repository)};render(){const{state:e}=this.props,{step:t}=e;switch(t.kind){case"ChooseBranch":return this.renderChooseBranch();case"ShowProgress":const{emoji:n}=this.props;return Ae.createElement(wF,{progress:e.progress,emoji:n,operation:e.operationDetail.kind});case"ShowConflicts":{const{repository:e,resolvedExternalEditor:n,openFileInExternalEditor:r,openRepositoryInShell:i,dispatcher:s,workingDirectory:o,state:a}=this.props,{userHasResolvedConflicts:l,operationDetail:c}=a,{manualResolutions:u,ourBranch:h,theirBranch:p}=t.conflictState,d=c.kind.toLowerCase(),m=`Continue ${d}`,f=`Abort ${d}`;return Ae.createElement(gF,{dispatcher:s,repository:e,workingDirectory:o,userHasResolvedConflicts:l,resolvedExternalEditor:n,ourBranch:h,theirBranch:p,manualResolutions:u,headerTitle:`Resolve conflicts before ${c.kind}`,submitButton:m,abortButton:f,onSubmit:this.onContinueAfterConflicts,onAbort:this.onConfirmingAbort,onDismissed:this.onConflictsDialogDismissed,openFileInExternalEditor:r,openRepositoryInShell:i,someConflictsHaveBeenResolved:this.setConflictsHaveBeenResolved})}case"ConfirmAbort":return Ae.createElement(yF,{operation:this.props.state.operationDetail.kind,onConfirmAbort:this.onAbort,onReturnToConflicts:this.moveToConflictState});case"WarnForcePush":const{dispatcher:r,askForConfirmationOnForcePush:i}=this.props;return Ae.createElement(bF,{operation:e.operationDetail.kind,dispatcher:r,askForConfirmationOnForcePush:i,onBegin:this.onBeginOperation,onDismissed:this.onFlowEnded});case"CreateBranch":return this.renderCreateBranch();case"HideConflicts":return null;default:return ct(0,`Unknown multi commit operation step found: ${t}`)}}}class CF extends vF{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:i}=this.props,{operationDetail:s,originalBranchTip:o}=r;if(null===i||null===o||!ot(i)||(a=s,!Object.keys({commits:[],currentTip:""}).every((e=>e in a))))return void this.endFlowInvalidState();var a;const{targetBranch:l,baseBranch:c}=i,{commits:u,currentTip:h}=s;await t.switchMultiCommitOperationToShowProgress(e);const p={kind:"rebase",currentTip:h,targetBranch:l,baseBranch:c,originalBranchTip:o,baseBranchTip:h,manualResolutions:i.manualResolutions},d=await t.continueRebase(this.rebaseKind,e,n,p),m="Rebase"===this.rebaseKind?c||"":`${this.rebaseKind.toLowerCase()} commit`;await t.processMultiCommitOperationRebaseResult(this.rebaseKind,e,d,u.length+1,l,m)};onAbort=async()=>{const{repository:e,dispatcher:t}=this.props;return this.onFlowEnded(),t.abortRebase(e)};onConflictsDialogDismissed=()=>{this.onInvokeConflictsDialogDismissed(this.conflictDialogOperationPrefix)}}class SF extends CF{conflictDialogOperationPrefix="squashing commits on";rebaseKind="Squash";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Squash"!==r.kind)return void this.endFlowInvalidState();const{targetCommit:i,lastRetainedCommitRef:s,commitContext:o,commits:a}=r;return t.squash(e,a,i,s,o,!0)}}function EF(e,t,n,r){return null!==e&&e.name!==t?.name&&void 0!==n&&0!==n&&r!==Gw.Invalid}class kF extends Ae.Component{constructor(e){super(e),this.state={filterText:""}}componentDidMount(){const e=this.resolveSelectedBranch();null!==e&&e.ref!==this.props.selectedBranch?.ref&&this.props.onSelectionChanged(e)}resolveSelectedBranch(){const{currentBranch:e,defaultBranch:t,initialBranch:n}=this.props;return void 0!==n?n:e===t?null:t}onFilterTextChanged=e=>{this.setState({filterText:e})};onItemClick=(e,t)=>{if("keyboard"!==t.kind||"Enter"!==t.event.key)return;t.event.preventDefault();const{selectedBranch:n}=this.props;null!==n&&n.name===e.name&&this.props.start()};onOperationChange=e=>{if(!vb(e.id))return;const{dispatcher:t,repository:n}=this.props,{selectedBranch:r}=this.props;switch(e.id){case"Merge":t.startMergeBranchOperation(n,!1,r);break;case"Squash":t.startMergeBranchOperation(n,!0,r);break;case"Rebase":t.showRebaseDialog(n,r);break;case"Cherry-pick":case"Reorder":break;default:ct(e.id,`Unknown operation value: ${e.id}`)}};renderStatusPreview(){const{currentBranch:e,selectedBranch:t,children:n}=this.props;return null==t||e.name===t.name?null:Ae.createElement("div",{className:"merge-status-component"},n)}renderBranch=(e,t)=>TP(e,t,this.props.currentBranch);getBranchAriaLabel=e=>AP(e);render(){const{selectedBranch:e,currentBranch:t,operation:n,dialogTitle:r,canStartOperation:i,submitButtonTooltip:s,start:o,onSelectionChanged:a}=this.props;return Ae.createElement(aD,{id:"choose-branch",onDismissed:this.props.onDismissed,onSubmit:o,title:r},Ae.createElement(nD,null,Ae.createElement(hP,{allBranches:this.props.allBranches,currentBranch:t,defaultBranch:this.props.defaultBranch,recentBranches:this.props.recentBranches,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,selectedBranch:e,onSelectionChanged:a,canCreateNewBranch:!1,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onItemClick})),Ae.createElement(cD,null,this.renderStatusPreview(),Ae.createElement(oO,{checkedOption:n,options:[{label:"创建合并提交",description:"来自所选分支的提交将通过合并提交添加到当前分支.",id:"Merge"},{label:"压缩合并",description:"选定分支中的提交将合并为当前分支中的一个提交.",id:"Squash"},{label:"变基",description:"来自所选分支的提交将重新设置基础并添加到当前分支.",id:"Rebase"}],disabled:!i,ariaDescribedBy:"merge-status-preview",dropdownAriaLabel:"Merge options",tooltip:s,onCheckedOptionChange:this.onOperationChange})))}}class RF extends xe().Component{constructor(e){super(e),this.state={selectedBranch:null,commitCount:0,mergeStatus:null}}start=()=>{if(!this.canStart())return;const{selectedBranch:e,mergeStatus:t}=this.state,{operation:n,dispatcher:r,repository:i}=this.props;e&&(r.mergeBranch(i,e,t,"Squash"===n),r.closePopup(dh.MultiCommitOperation))};canStart=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,commitCount:n,mergeStatus:r}=this.state;return EF(t,e,n,r?.kind)};onSelectionChanged=e=>{this.setState({selectedBranch:e}),null!==e?this.updateStatus(e):this.setState({commitCount:0,mergeStatus:null})};getDialogTitle=()=>{const e=zb(this.props.currentBranch.name,40),t="Squash"===this.props.operation?"压缩并":null;return xe().createElement(xe().Fragment,null,t,"合并到 ",xe().createElement("strong",null,e))};updateStatus=async e=>{const{currentBranch:t,repository:n}=this.props;this.setState({commitCount:0,mergeStatus:{kind:Gw.Loading}});const r=await cw((()=>Jb(n,t,e)),500).catch((e=>(log.error("Failed determining mergeability",e),{kind:Gw.Clean})));if(this.state.selectedBranch!==e)return;if(r.kind===Gw.Invalid)return void this.setState({mergeStatus:r});const i=Ug("",e.name),s=await Zg(this.props.repository,i),o=s?s.behind:0;this.state.selectedBranch===e&&this.setState({commitCount:o,mergeStatus:r})};renderStatusPreviewMessage(){const{mergeStatus:e,selectedBranch:t}=this.state,{currentBranch:n}=this.props;return null===e||null===t?null:e.kind===Gw.Loading?this.renderLoadingMergeMessage():e.kind===Gw.Clean?this.renderCleanMergeMessage(t,n,this.state.commitCount):e.kind===Gw.Invalid?this.renderInvalidMergeMessage():this.renderConflictedMergeMessage(t,n,e.conflictedFiles)}renderLoadingMergeMessage(){return xe().createElement(xe().Fragment,null,"正在检查允许自动合并...")}renderCleanMergeMessage(e,t,n){if(0===n)return xe().createElement(xe().Fragment,null,"此分支是最新的 ",xe().createElement("strong",null,e.name));const r=1===n?"commit":"commits";return xe().createElement(xe().Fragment,null,"这将合并",xe().createElement("strong",null,` ${n} ${r}`)," 自 ",xe().createElement("strong",null,e.name)," 到 ",xe().createElement("strong",null,t.name))}renderInvalidMergeMessage(){return xe().createElement(xe().Fragment,null,"无法在此仓库中合并不相关的历史记录")}renderConflictedMergeMessage(e,t,n){const r=1===n?"文件":"文件";return xe().createElement(xe().Fragment,null,"这将会",xe().createElement("strong",null,` ${n} 与 ${r} 冲突`)," 当合并时 ",xe().createElement("strong",null,e.name)," 到 ",xe().createElement("strong",null,t.name))}renderStatusPreview(){return xe().createElement(xe().Fragment,null,xe().createElement(qO,{status:this.state.mergeStatus,classNamePrefix:"merge-status"}),xe().createElement("p",{className:"merge-info",id:"merge-status-preview"},this.renderStatusPreviewMessage()))}render(){return xe().createElement(kF,{...this.props,start:this.start,selectedBranch:this.state.selectedBranch,canStartOperation:this.canStart(),dialogTitle:this.getDialogTitle(),onSelectionChanged:this.onSelectionChanged},this.renderStatusPreview())}}class TF extends vF{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:i,state:{operationDetail:s}}=this.props;if("ShowConflicts"!==r.step.kind||null===i||!st(i)||"Merge"!==s.kind)return void this.endFlowInvalidState();const{theirBranch:o}=r.step.conflictState,{currentBranch:a}=i;await t.finishConflictedMerge(e,n,{type:Vw.SuccessfulMerge,ourBranch:a,theirBranch:o},s.isSquash),await t.setCommitMessage(e,yw),await this.props.dispatcher.changeRepositorySection(e,tt.Changes),this.onFlowEnded(),t.incrementMetric("guidedConflictedMergeCompletionCount")};onAbort=async()=>{const{repository:e,dispatcher:t,state:{operationDetail:n}}=this.props;return this.onFlowEnded(),"Merge"===n.kind&&n.isSquash?t.abortSquashMerge(e):t.abortMerge(e)};onConflictsDialogDismissed=()=>{const{dispatcher:e,workingDirectory:t,conflictState:n}=this.props;null!==n&&st(n)?(e.incrementMetric("mergeConflictsDialogDismissalCount"),Vy(t,n.manualResolutions).length>0&&e.incrementMetric("anyConflictsLeftOnMergeConflictsDialogDismissalCount"),this.onInvokeConflictsDialogDismissed("merge into")):this.endFlowInvalidState(!0)};renderChooseBranch=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{step:r,operationDetail:i}=n;if("ChooseBranch"!==r.kind||"Merge"!==i.kind)return this.endFlowInvalidState(),null;const{defaultBranch:s,currentBranch:o,allBranches:a,recentBranches:l,initialBranch:c}=r,{isSquash:u}=i;return xe().createElement(RF,{dispatcher:t,repository:e,allBranches:a,defaultBranch:s,recentBranches:l,currentBranch:o,initialBranch:c,operation:u?"Squash":"Merge",onDismissed:this.onFlowEnded})}}class AF extends CF{conflictDialogOperationPrefix="reordering commits on";rebaseKind="Reorder";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Reorder"!==r.kind)return void this.endFlowInvalidState();const{commits:i,beforeCommit:s,lastRetainedCommitRef:o}=r;return t.reorderCommits(e,i,s,o,!0)}}class xF extends Ae.Component{constructor(e){super(e),this.state={selectedBranch:null,filterText:"",isCreateBranchState:0===e.allBranches.length}}onFilterTextChanged=e=>{this.setState({filterText:e})};onSelectionChanged=e=>{this.setState({selectedBranch:e})};renderBranch=(e,t)=>TP(e,t,this.props.currentBranch);getBranchAriaLabel=e=>AP(e);onEnterPressed=(e,t)=>{if("keyboard"!==t.kind||"Enter"!==t.event.key)return;t.event.preventDefault();const{selectedBranch:n}=this.state;null!==n&&n.name===e.name&&this.startCherryPick()};canCherryPickOntoSelectedBranch(){const{selectedBranch:e,isCreateBranchState:t}=this.state;return null!==e&&!this.selectedBranchIsCurrentBranch()||t}selectedBranchIsCurrentBranch(){const{selectedBranch:e}=this.state,t=this.props.currentBranch;return null!==e&&null!==t&&e.name===t.name}renderOkButtonText(){const{selectedBranch:e,isCreateBranchState:t}=this.state;if(t)return"Cherry-pick to new branch";const n=this.props.commitCount>1?"commits":"commit",r=`Cherry-pick ${this.props.commitCount} ${n}`;return null!==e?Ae.createElement(Ae.Fragment,null,r," 到 ",Ae.createElement("strong",null,e.name),"…"):r}onFilterListResultsChanged=e=>{const{isCreateBranchState:t}=this.state;0!==e||t?e>0&&t&&this.setState({isCreateBranchState:!1}):this.setState({isCreateBranchState:!0})};render(){const e=this.selectedBranchIsCurrentBranch()?"You are not able to cherry-pick from and to the same branch":void 0,t=this.props.commitCount>1?"commits":"commit";return Ae.createElement(aD,{id:"cherry-pick",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,title:Ae.createElement("strong",null,"Cherry-pick ",this.props.commitCount," ",t," to a branch")},Ae.createElement(nD,null,Ae.createElement(hP,{allBranches:this.props.allBranches,currentBranch:this.props.currentBranch,defaultBranch:this.props.defaultBranch,recentBranches:this.props.recentBranches,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,onFilterListResultsChanged:this.onFilterListResultsChanged,selectedBranch:this.state.selectedBranch,onSelectionChanged:this.onSelectionChanged,canCreateNewBranch:!0,onCreateNewBranch:this.props.onCreateNewBranch,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onEnterPressed})),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:this.renderOkButtonText(),okButtonDisabled:!this.canCherryPickOntoSelectedBranch(),okButtonTitle:e,cancelButtonVisible:!1})))}onSubmit=async()=>{const{isCreateBranchState:e,filterText:t}=this.state;e?this.props.onCreateNewBranch(t):this.startCherryPick()};startCherryPick=async()=>{const{selectedBranch:e}=this.state;null!==e&&this.canCherryPickOntoSelectedBranch()&&this.props.onCherryPick(e)}}class DF extends vF{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:i}=this.props,{operationDetail:s,targetBranch:o}=r;if(null===i||"Cherry-pick"!==s.kind||null===o)return void this.endFlowInvalidState();const{commits:a}=s;await t.switchMultiCommitOperationToShowProgress(e);const l={kind:"cherryPick",targetBranchName:o.name,manualResolutions:i.manualResolutions};await t.continueCherryPick(e,n.files,l,a,s.sourceBranch)};onAbort=async()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Cherry-pick"===r.kind)return this.onFlowEnded(),t.abortCherryPick(e,r.sourceBranch);this.endFlowInvalidState()};onConflictsDialogDismissed=()=>{this.onInvokeConflictsDialogDismissed("cherry-picking onto")};renderChooseBranch=()=>{const{state:{step:e,operationDetail:t}}=this.props;if("ChooseBranch"!==e.kind||"Cherry-pick"!==t.kind)return this.endFlowInvalidState(),null;const{allBranches:n,defaultBranch:r,currentBranch:i,recentBranches:s}=e,{commits:o}=t;return xe().createElement(xF,{key:"choose-target-branch",allBranches:n,defaultBranch:r,recentBranches:s,currentBranch:i,onCherryPick:this.onChooseBranch,onDismissed:this.onFlowEnded,commitCount:o.length,onCreateNewBranch:this.onCreateNewBranch})};renderCreateBranch=()=>{const{repository:e,dispatcher:t,state:{step:n,operationDetail:r}}=this.props;if("CreateBranch"!==n.kind||"Cherry-pick"!==r.kind)return this.endFlowInvalidState(),null;const{allBranches:i,defaultBranch:s,upstreamDefaultBranch:o,upstreamGhRepo:a,tip:l,targetBranchName:c}=n;return xe().createElement(sB,{key:"create-branch",tip:l,defaultBranch:s,upstreamDefaultBranch:o,upstreamGitHubRepository:a,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,allBranches:i,repository:e,onDismissed:this.onFlowEnded,dispatcher:t,initialName:c,createBranch:this.onCreateBranchAndCherryPick,okButtonText:"创建分支并挑选",headerText:"Cherry-pick to new branch"})};onChooseBranch=e=>{const{dispatcher:t,repository:n,state:{operationDetail:r}}=this.props;if("Cherry-pick"!==r.kind)return void this.endFlowInvalidState();const{commits:i,sourceBranch:s}=r;t.setMultiCommitOperationTargetBranch(n,e),t.setCherryPickBranchCreated(n,!1),t.cherryPick(n,e,i,s)};onCreateNewBranch=e=>{const{dispatcher:t,repository:n,state:{step:r,operationDetail:i}}=this.props;if("ChooseBranch"!==r.kind||"Cherry-pick"!==i.kind)return void this.endFlowInvalidState();const{commits:s,sourceBranch:o}=i;t.setCherryPickCreateBranchFlowStep(n,e,s,o)};onCreateBranchAndCherryPick=(e,t,n)=>{const{dispatcher:r,repository:i,state:{step:s,operationDetail:o}}=this.props;if("CreateBranch"!==s.kind||"Cherry-pick"!==o.kind)return void this.endFlowInvalidState();const{commits:a,sourceBranch:l}=o;r.startCherryPickWithBranchName(i,e,t,n,a,l)}}class _F extends xe().Component{constructor(e){super(e),this.state={selectedBranch:null,rebasePreview:null}}start=()=>{if(!this.canStart())return;const{selectedBranch:e,rebasePreview:t}=this.state,{repository:n,currentBranch:r,dispatcher:i}=this.props;null!==e&&null!==t&&t.kind===Gw.Clean&&i.startRebase(n,e,r,t.commits)};canStart=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,rebasePreview:n}=this.state;return EF(t,e,n?.kind===Gw.Clean?n.commits.length:void 0,n?.kind)};onSelectionChanged=e=>{this.setState({selectedBranch:e}),null!==e?this.updateStatus(e):this.setState({rebasePreview:null})};getSubmitButtonToolTip=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,rebasePreview:n}=this.state,r=null!==t&&null!==e&&t.name===e.name,i=n?.kind===Gw.Clean&&n.commits.length>0;return r?"You are not able to rebase this branch onto itself.":i?void 0:"There are no commits on the current branch to rebase."};getDialogTitle=()=>{const e=zb(this.props.currentBranch.name,40);return xe().createElement(xe().Fragment,null,"变基 ",xe().createElement("strong",null,e))};updateStatus=async e=>{const{currentBranch:t,repository:n}=this.props;GO(e,t,n,(e=>{this.setState({rebasePreview:e})}))};renderStatusPreviewMessage(){const{rebasePreview:e,selectedBranch:t}=this.state;if(null==e||null==t)return null;const{currentBranch:n}=this.props;return e.kind===Gw.Loading?this.renderLoadingRebaseMessage():e.kind===Gw.Clean?this.renderCleanRebaseMessage(n,t,e.commits.length):e.kind===Gw.Invalid?this.renderInvalidRebaseMessage():null}renderLoadingRebaseMessage(){return xe().createElement(xe().Fragment,null,"Checking for ability to rebase automatically…")}renderInvalidRebaseMessage(){return xe().createElement(xe().Fragment,null,"Unable to start rebase. Check you have chosen a valid branch.")}renderCleanRebaseMessage(e,t,n){if(n<=0)return xe().createElement(xe().Fragment,null,"此分支是最新的"," ",xe().createElement("strong",null,e.name));const r=1===n?"commit":"commits";return xe().createElement(xe().Fragment,null,"This will update ",xe().createElement("strong",null,e.name)," by applying its ",xe().createElement("strong",null,` ${n} ${r}`)," on top of ",xe().createElement("strong",null,t.name))}renderStatusPreview(){return xe().createElement(xe().Fragment,null,xe().createElement(qO,{status:this.state.rebasePreview,classNamePrefix:"merge-status"}),xe().createElement("p",{className:"merge-info",id:"merge-status-preview"},this.renderStatusPreviewMessage()))}render(){return xe().createElement(kF,{...this.props,start:this.start,selectedBranch:this.state.selectedBranch,canStartOperation:this.canStart(),dialogTitle:this.getDialogTitle(),submitButtonTooltip:this.getSubmitButtonToolTip(),onSelectionChanged:this.onSelectionChanged},this.renderStatusPreview())}}class MF extends CF{conflictDialogOperationPrefix="rebasing";rebaseKind="Rebase";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r,targetBranch:i}=n;if("Rebase"!==r.kind)return void this.endFlowInvalidState();const{commits:s,sourceBranch:o}=r;if(null!==o&&null!==i)return t.startRebase(e,o,i,s,{continueWithForcePush:!0});this.endFlowInvalidState()};renderChooseBranch=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{step:r}=n;if("ChooseBranch"!==r.kind)return this.endFlowInvalidState(),null;const{defaultBranch:i,currentBranch:s,allBranches:o,recentBranches:a,initialBranch:l}=r;return xe().createElement(_F,{key:"choose-branch",dispatcher:t,repository:e,allBranches:o,defaultBranch:i,recentBranches:a,currentBranch:s,initialBranch:l,operation:"Rebase",onDismissed:this.onFlowEnded})}}class PF extends Ae.Component{render(){const{kind:e}=this.props.state.operationDetail;switch(e){case"Cherry-pick":return Ae.createElement(DF,{...this.props});case"Rebase":return Ae.createElement(MF,{...this.props});case"Merge":return Ae.createElement(TF,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});case"Squash":return Ae.createElement(SF,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});case"Reorder":return Ae.createElement(AF,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});default:return ct(0,`Unknown multi commit operation kind of ${e}.`)}}}class IF extends Ae.Component{constructor(e){super(e),this.state={isLoading:!1,confirmUndoCommit:e.confirmUndoCommit}}render(){return Ae.createElement(aD,{id:"warn-local-changes-before-undo",type:"warning",title:"撤消提交",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"undo-warning-message"},this.getWarningDialog(),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"确定"})))}getWarningDialog(){return this.props.commit.isMergeCommit?this.getMergeCommitWarningDialog():Ae.createElement(nD,null,Ae.createElement(GT,{id:"undo-warning-message"},"You have changes in progress. Undoing the commit might result in some of these changes being lost. Do you want to continue anyway?"),Ae.createElement(GT,null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmUndoCommit?cA.Off:cA.On,onChange:this.onConfirmUndoCommitChanged})))}getMergeCommitWarningDialog(){return this.props.isWorkingDirectoryClean?Ae.createElement(nD,null,Ae.createElement("p",null,this.getMergeCommitUndoWarningText()),Ae.createElement("p",null,"Do you want to continue anyway?")):Ae.createElement(nD,null,Ae.createElement("p",null,"You have changes in progress. Undoing the merge commit might result in some of these changes being lost."),Ae.createElement("p",null,this.getMergeCommitUndoWarningText()),Ae.createElement("p",null,"Do you want to continue anyway?"))}getMergeCommitUndoWarningText(){return"Undoing a merge commit will apply the changes from the merge into\n your working directory, and committing again will create an entirely new\n commit. This means you will lose the merge commit and, as a result, commits\n from the merged branch could disappear from this branch."}onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{e.setConfirmUndoCommitSetting(this.state.confirmUndoCommit),await e.undoCommit(t,n,!1)}finally{this.setState({isLoading:!1})}r()};onConfirmUndoCommitChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmUndoCommit:t})}}class OF extends Ae.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return Ae.createElement(aD,{id:"warning-before-reset",type:"warning",title:"重置到提交",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"reset-warning-message"},Ae.createElement(nD,null,Ae.createElement(GT,{id:"reset-warning-message"},"You have changes in progress. Resetting to a previous commit might result in some of these changes being lost. Do you want to continue anyway?")),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"确定"})))}onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{await e.resetToCommit(t,n,!1)}finally{this.setState({isLoading:!1})}r()}}class NF extends Ae.Component{render(){const e=this.isEnterpriseAccount?" Enterprise":"";return Ae.createElement(aD,{id:"invalidated-token",type:"warning",title:"警告",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement(GT,null,"Your account token has been invalidated and you have been signed out from your GitHub",e," account. Do you want to sign in again?")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "确定",cancelButtonText:"否"})))}get isEnterpriseAccount(){return this.props.account.endpoint!==cr()}onSubmit=()=>{const{dispatcher:e,onDismissed:t}=this.props;t(),this.isEnterpriseAccount?e.showEnterpriseSignInDialog(this.props.account.endpoint):e.showDotComSignInDialog()}}class LF extends Ae.Component{render(){return Ae.createElement(aD,{id:"add-ssh-host",type:"normal",title:"SSH 主机",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},Ae.createElement(nD,null,Ae.createElement("p",null,"The authenticity of host '",this.props.host," (",this.props.ip,")' can't be established. ",this.props.keyType," key fingerprint is"," ",this.props.fingerprint,"."),Ae.createElement("p",null,"Are you sure you want to continue connecting?")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText: "确定",cancelButtonText: "取消",onCancelButtonClick:this.onCancel})))}submit(e){const{onSubmit:t,onDismissed:n}=this.props;t(e),n()}onSubmit=()=>{this.submit(!0)};onCancel=()=>{this.submit(!1)}}class BF extends Ae.Component{constructor(e){super(e),this.state={passphrase:"",rememberPassphrase:!1}}render(){return Ae.createElement(aD,{id:"ssh-key-passphrase",type:"normal",title:"SSH 密钥密码",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(TN,{label:`Enter passphrase for key '${this.props.keyPath}':`,value:this.state.passphrase,onValueChanged:this.onValueChanged})),Ae.createElement(GT,null,Ae.createElement(uA,{label:"记住密语",value:this.state.rememberPassphrase?cA.On:cA.Off,onChange:this.onRememberPassphraseChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{onCancelButtonClick:this.onCancel,okButtonDisabled:0===this.state.passphrase.length})))}onRememberPassphraseChanged=e=>{this.setState({rememberPassphrase:e.currentTarget.checked})};onValueChanged=e=>{this.setState({passphrase:e})};submit(e,t){const{onSubmit:n,onDismissed:r}=this.props;n(e,t),r()}onSubmit=()=>{this.submit(this.state.passphrase,this.state.rememberPassphrase)};onCancel=()=>{this.submit(void 0,!1)}}class FF extends Ae.Component{constructor(e){super(e),this.state={isLoading:!1,askForConfirmationOnForcePush:e.askForConfirmationOnForcePush}}render(){return Ae.createElement(aD,{title:"确认要强制推送吗?",dismissDisabled:this.state.isLoading,onDismissed:this.props.onDismissed,onSubmit:this.onForcePush,type:"warning"},Ae.createElement(nD,null,Ae.createElement("p",null,"A force push will rewrite history on"," ",Ae.createElement(CD,null,this.props.upstreamBranch),". Any collaborators working on this branch will need to reset their own local branch to match the history of the remote."),Ae.createElement("div",null,Ae.createElement(uA,{label:"不再显示此消息",value:this.state.askForConfirmationOnForcePush?cA.Off:cA.On,onChange:this.onAskForConfirmationOnForcePushChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"确定"})))}onAskForConfirmationOnForcePushChanged=e=>{const t=!e.currentTarget.checked;this.setState({askForConfirmationOnForcePush:t})};onForcePush=async()=>{this.props.dispatcher.setConfirmForcePushSetting(this.state.askForConfirmationOnForcePush),this.props.onDismissed(),await this.props.dispatcher.performForcePush(this.props.repository)}}const HF=Pt(__dirname,"static/empty-no-pull-requests.svg");class UF extends Ae.Component{checkRunsLoadCancelled=!1;constructor(e){super(e);const{checks:t}=this.props,n=t.find(Ob)??t[0];this.state={switchingToPullRequest:!1,selectedCheckID:n.id,checks:t,loadingActionWorkflows:!0}}get selectedCheck(){return this.state.checks.find((e=>e.id===this.state.selectedCheckID))}get loadingChecksInfo(){return this.state.loadingActionWorkflows}render(){let e="Switch to pull request";this.props.shouldChangeRepository&&(e="Switch to repository and pull request");const{pullRequest:t}=this.props,n=this.loadingChecksInfo,r=this.state.checks.filter(Ob),i=r.length>1?"checks":"check",s=Ae.createElement("div",{className:"ci-check-run-dialog-header"},Ae.createElement(yi,{symbol:bu}),Ae.createElement("div",{className:"title-container"},Ae.createElement("div",{className:"summary"},r.length," ",i," failed in your pull request"),Ae.createElement("span",{className:"pr-title"},t.title," ",Ae.createElement("span",{className:"pr-number"},"#",t.pullRequestNumber)," ")));return Ae.createElement(aD,{id:"pull-request-checks-failed",type:"normal",title:s,renderHeaderAccessory:this.renderRerunButton,backdropDismissable:!1,onSubmit:this.props.onSubmit,onDismissed:this.props.onDismissed,loading:n||this.state.switchingToPullRequest},Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement("div",{className:"ci-check-run-dialog-container"},Ae.createElement("div",{className:"ci-check-run-content"},this.renderCheckRunJobs(),this.renderCheckRunSteps())))),Ae.createElement(cD,null,Ae.createElement(GT,null,this.renderSummary(),Ae.createElement(uD,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",okButtonText:e,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit}))))}renderSummary(){const e=this.state.checks.filter(Ob).length>1?"them":"it";return Ae.createElement("div",{className:"footer-question"},Ae.createElement("span",null,"Do you want to switch to that Pull Request now and start fixing"," ",e,"?"))}onRerunJob=e=>{this.rerunChecks(!1,[e])};renderCheckRunJobs(){return Ae.createElement(VI,{checkRuns:this.state.checks,selectable:!0,onViewCheckDetails:this.onViewOnGitHub,onCheckRunClick:this.onCheckRunClick,onRerunJob:Hn(this.props.repository.gitHubRepository.endpoint)?this.onRerunJob:void 0})}checkRunStepContent(){return this.loadingChecksInfo?this.renderCheckRunStepsLoading():void 0===this.selectedCheck?.actionJobSteps?Ae.createElement($I,{onViewCheckExternally:this.onViewSelectedCheckRunOnGitHub}):Ae.createElement(Ae.Fragment,null,Ae.createElement(WI,{checkRun:this.selectedCheck,onRerunJob:Hn(this.props.repository.gitHubRepository.endpoint)?this.onRerunJob:void 0,onViewCheckExternally:this.onViewSelectedCheckRunOnGitHub}),Ae.createElement(UI,{steps:this.selectedCheck.actionJobSteps,onViewJobStep:this.onViewJobStep}))}renderCheckRunSteps(){return void 0===this.selectedCheck?null:Ae.createElement("div",{className:"ci-check-run-job-steps-container",role:"region",id:`checkrun-${this.selectedCheck.id}`,"aria-labelledby":`check-run-header-${this.selectedCheck.id}`},this.checkRunStepContent())}renderCheckRunStepsLoading(){return Ae.createElement("div",{className:"loading-check-runs"},Ae.createElement("img",{src:HF,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"title"},"Stand By"),Ae.createElement("div",{className:"call-to-action"},"Check run steps incoming!"))}onViewJobStep=e=>{const{repository:t,pullRequest:n,dispatcher:r}=this.props,i=this.selectedCheck;if(void 0===i)return;const s=Ub(i,e,t.gitHubRepository,n.pullRequestNumber);null!==s&&r.openInBrowser(s)};componentDidMount(){this.loadCheckRunLogs()}componentWillUnmount(){this.checkRunsLoadCancelled=!0}renderRerunButton=()=>{const{checks:e}=this.state;return Ae.createElement("div",{className:"ci-check-rerun"},Ae.createElement(jI,{disabled:0===e.length,checkRuns:e,canReRunFailed:Hn(this.props.repository.gitHubRepository.endpoint),onRerunChecks:this.rerunChecks}))};rerunChecks=(e,t)=>{this.props.dispatcher.incrementMetric("checksFailedDialogRerunChecksCount");const n=tm(this.props.pullRequest.pullRequestNumber);this.props.dispatcher.showPopup({type:dh.CICheckRunRerun,checkRuns:t??this.state.checks,repository:this.props.repository.gitHubRepository,prRef:n,failedOnly:e})};async loadCheckRunLogs(){const{pullRequest:e,repository:t}=this.props,{gitHubRepository:n}=t,r=this.props.accounts.find((e=>e.endpoint===n.endpoint));if(void 0===r)return void this.setState({loadingActionWorkflows:!1});const i=ir.fromAccount(r),s=await Fb(r,n.owner.login,n.name,e.head.ref,this.props.checks);if(this.checkRunsLoadCancelled)return;this.setState({checks:s});const o=await Bb(i,n.owner.login,n.name,s);this.checkRunsLoadCancelled||this.setState({checks:o,loadingActionWorkflows:!1})}onCheckRunClick=e=>{this.setState({selectedCheckID:e.id})};onViewSelectedCheckRunOnGitHub=()=>{const e=this.selectedCheck;void 0!==e&&this.onViewOnGitHub(e)};onViewOnGitHub=e=>{const{repository:t,pullRequest:n,dispatcher:r}=this.props,i=e.htmlUrl??`${t.gitHubRepository.htmlURL}/pull/${n.pullRequestNumber}`;null!==i&&r.openInBrowser(i)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r}=this.props;this.props.dispatcher.incrementMetric("checksFailedDialogSwitchToPullRequestCount"),this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),this.props.onDismissed()}}const ZF=Pt(__dirname,"static/empty-no-pull-requests.svg");class $F extends Ae.Component{constructor(e){super(e),this.state={loadingCheckSuites:!0,loadingRerun:!1,rerunnable:[],nonRerunnable:[]},this.determineRerunnability()}onSubmit=async()=>{const{dispatcher:e,repository:t,prRef:n}=this.props;this.setState({loadingRerun:!0}),await e.rerequestCheckSuites(t,this.state.rerunnable,this.props.failedOnly),await e.manualRefreshSubscription(t,n,this.state.rerunnable),e.incrementMetric("rerunsChecks"),this.props.onDismissed()};determineRerunnability=async()=>{const e=this.props.failedOnly?this.props.checkRuns.filter((e=>e.conclusion===Xn.Failure)):this.props.checkRuns,t=new Set(e.map((e=>e.checkSuiteId))),n=new Array;for(const e of t)null!==e&&n.push(this.props.dispatcher.fetchCheckSuite(this.props.repository,e));const r=[];for(const e of await Promise.all(n)){if(null===e)continue;const t=Date.parse(e.created_at);e.rerequestable&&t>_t(-30,"days")&&e.status===Yn.Completed&&r.push(e.id)}const i=e.filter((e=>null!==e.checkSuiteId&&r.includes(e.checkSuiteId))),s=e.filter((e=>null===e.checkSuiteId||!r.includes(e.checkSuiteId)));this.setState({loadingCheckSuites:!1,rerunnable:i,nonRerunnable:s})};renderRerunnableJobsList=()=>0===this.state.rerunnable.length?null:Ae.createElement("div",{className:"ci-check-run-list check-run-rerun-list"},Ae.createElement(VI,{checkRuns:this.state.rerunnable,notExpandable:!0,isCondensedView:!0}));renderRerunDependentsMessage=()=>{if(0===this.state.rerunnable.length)return null;const e=1===this.props.checkRuns.length?Ae.createElement("strong",null,this.props.checkRuns[0].name):"these workflows",t=1===this.props.checkRuns.length?"its":"their";return Ae.createElement("div",{className:"re-run-dependents-message"},"A new attempt of ",e," will be started, including all of ",t," ","dependents:")};renderRerunWarning=()=>{if(this.state.loadingCheckSuites||0===this.state.nonRerunnable.length)return null;const e="check"+(1!==this.state.nonRerunnable.length?"s":""),t=1!==this.state.nonRerunnable.length?"are":"is",n=0===this.state.rerunnable.length?`There are no ${this.props.failedOnly?"failed ":""}checks that can be re-run`:`There ${t} ${this.state.nonRerunnable.length} ${this.props.failedOnly?"failed ":""}${e} that cannot be re-run`;return Ae.createElement("div",{className:"non-re-run-info warning-helper-text"},Ae.createElement(yi,{symbol:vi}),`${n}. A check run cannot be re-run if the check is more than one month old,\n the check or its dependent has not completed, or the check is not configured to be\n re-run.`)};getTitle=(e=!0)=>{const{checkRuns:t,failedOnly:n}=this.props,r=1===t.length?"":"s";let i="";return e&&1===t.length&&(i="single "),e&&n&&(i="failed "),`Re-run ${i}check${r}`};renderDialogContent=()=>this.state.loadingCheckSuites&&this.props.checkRuns.length>1?Ae.createElement("div",{className:"loading-rerun-checks"},Ae.createElement("img",{src:ZF,className:"blankslate-image",alt:""}),Ae.createElement("div",{className:"title"},"Please wait"),Ae.createElement("div",{className:"call-to-action"},"Determining which checks can be re-run.")):Ae.createElement(Ae.Fragment,null,this.renderRerunDependentsMessage(),this.renderRerunnableJobsList(),this.renderRerunWarning());render(){return Ae.createElement(aD,{id:"rerun-check-runs",title:this.getTitle(),onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,loading:this.state.loadingCheckSuites||this.state.loadingRerun},Ae.createElement(nD,null,this.renderDialogContent()),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:this.getTitle(!1),okButtonDisabled:0===this.state.rerunnable.length})))}}class WF extends Ae.Component{constructor(e){super(e),this.state={retrying:!1,confirmDiscardChanges:!0}}render(){const{retrying:e}=this.state;return Ae.createElement(aD,{title:"错误",id:"discard-changes-retry",loading:e,disabled:e,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"error"},Ae.createElement(nD,null,Ae.createElement("p",null,"Failed to discard changes to ",wh,"."),Ae.createElement("div",null,"Common reasons are:",Ae.createElement("ul",null,Ae.createElement("li",null,"The ",wh," is configured to delete items immediately."),Ae.createElement("li",null,"Restricted access to move the file(s)."))),Ae.createElement("p",null,"These changes will be unrecoverable from the ",wh,"."),this.renderConfirmDiscardChanges()),this.renderFooter())}renderConfirmDiscardChanges(){return Ae.createElement(uA,{label:"不再显示此消息",value:this.state.confirmDiscardChanges?cA.Off:cA.On,onChange:this.onConfirmDiscardChangesChanged})}renderFooter(){return Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"永久放弃更改",okButtonTitle:"This will discard changes and they will be unrecoverable.",cancelButtonText:"取消",destructive:!0}))}onConfirmDiscardChangesChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardChanges:t})};onSubmit=async()=>{const{dispatcher:e,retryAction:t}=this.props;this.setState({retrying:!0}),await e.performRetry(t),this.props.onConfirmDiscardChangesChanged(this.state.confirmDiscardChanges),this.props.onDismissed()}}class qF extends Ae.Component{render(){const{title:e,pullRequestNumber:t}=this.props.pullRequest,n=Ae.createElement("div",{className:"pull-request-comment-like-dialog-header"},this.renderPullRequestIcon(),Ae.createElement("span",{className:"pr-title"},e," ",Ae.createElement("span",{className:"pr-number"},"#",t)," "));return Ae.createElement(aD,{id:this.props.id,type:"normal",title:n,backdropDismissable:!1,onSubmit:this.props.onSubmit,onDismissed:this.props.onDismissed,loading:this.props.switchingToPullRequest},Ae.createElement(nD,null,Ae.createElement("div",{className:"comment-container"},this.renderTimelineItem(),this.renderCommentBubble())),Ae.createElement(cD,null,this.props.renderFooterContent()))}renderTimelineItem(){const{user:e,repository:t,eventDate:n,eventVerb:r,externalURL:i,accounts:s}=this.props,{endpoint:o}=t.gitHubRepository,a={name:e.login,email:mb(e.id,e.login,o),avatarURL:e.avatar_url,endpoint:o},l=this.shouldRenderCommentBubble()?null:this.renderDashedTimelineLine("bottom"),c=ri()("timeline-item",{"with-comment":this.shouldRenderCommentBubble()}),u=Zw(n.getTime()-Date.now());return Ae.createElement("div",{className:"timeline-item-container"},this.renderDashedTimelineLine("top"),Ae.createElement("div",{className:c},Ae.createElement(tD,{accounts:s,user:a,title:null,size:40}),this.renderReviewIcon(),Ae.createElement("div",{className:"summary"},Ae.createElement(Hx,{uri:e.html_url,className:"author"},e.login)," ",r," your pull request"," ",Ae.createElement(Hx,{uri:i,className:"submission-date"},u))),l)}shouldRenderCommentBubble(){return""!==this.props.body}renderCommentBubble(){return this.shouldRenderCommentBubble()?Ae.createElement("div",{className:"comment-bubble-container"},Ae.createElement("div",{className:"comment-bubble"},this.renderReviewBody()),this.renderDashedTimelineLine("bottom")):null}renderDashedTimelineLine(e){return Ae.createElement("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",className:`timeline-line ${e}`},Ae.createElement("line",{x1:"0.5",y1:"0",x2:"0.5",y2:"100%"}))}onMarkdownLinkClicked=e=>{this.props.dispatcher.openInBrowser(e)};renderReviewBody(){const{body:e,emoji:t,pullRequest:n}=this.props,{base:r}=n;return Ae.createElement(NI,{markdown:e,emoji:t,baseHref:r.gitHubRepository.htmlURL??void 0,repository:r.gitHubRepository,onMarkdownLinkClicked:this.onMarkdownLinkClicked,markdownContext:"PullRequestComment",underlineLinks:this.props.underlineLinks,ariaLabel:"Pull request markdown comment"})}renderPullRequestIcon=()=>{const{pullRequest:e}=this.props,t=ri()("pull-request-icon",{draft:e.draft});return Ae.createElement(yi,{className:t,symbol:e.draft?na:ea})};renderReviewIcon=()=>{const{eventIconSymbol:e,eventIconClass:t}=this.props;return Ae.createElement("div",{className:ri()("review-icon-container",t)},Ae.createElement(yi,{symbol:e}))}}class VF extends Ae.Component{constructor(e){super(e),this.state={switchingToPullRequest:!1}}render(){const{dispatcher:e,repository:t,pullRequest:n,emoji:r,review:i,onSubmit:s,onDismissed:o}=this.props,a=kb(i.state);return Ae.createElement(qF,{id:"pull-request-review",dispatcher:e,repository:t,pullRequest:n,emoji:r,eventDate:new Date(i.submitted_at),eventVerb:Eb(i),eventIconSymbol:a.symbol,eventIconClass:a.className,externalURL:i.html_url,user:i.user,body:i.body,switchingToPullRequest:this.state.switchingToPullRequest,renderFooterContent:this.renderFooterContent,onSubmit:s,onDismissed:o,underlineLinks:this.props.underlineLinks,accounts:this.props.accounts})}renderFooterContent=()=>{const{review:e,shouldChangeRepository:t,shouldCheckoutBranch:n}=this.props;let r;"APPROVED"===e.state||(t?r="Switch to repository and pull request":n&&(r="Switch to pull request"));const i=Ae.createElement(uD,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",cancelButtonVisible:void 0!==r,okButtonText:r,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit});return Ae.createElement(GT,null,Ae.createElement("div",{className:"footer-links"},Ae.createElement(Hx,{uri:e.html_url},"打开于 browser")),i)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r,shouldChangeRepository:i,shouldCheckoutBranch:s,review:o}=this.props;"APPROVED"===o.state||!i&&!s||(this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),t.recordPullRequestReviewDialogSwitchToPullRequest(o.state)),this.props.onDismissed()}}class GF extends Ae.Component{constructor(e){super(e),this.state={password:"",rememberPassword:!1}}render(){return Ae.createElement(aD,{id:"ssh-user-password",type:"normal",title:"SSH 用户密码",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},Ae.createElement(nD,null,Ae.createElement(GT,null,Ae.createElement(TN,{label:`Enter password for '${this.props.username}':`,value:this.state.password,onValueChanged:this.onValueChanged})),Ae.createElement(GT,null,Ae.createElement(uA,{label:"记住密码",value:this.state.rememberPassword?cA.On:cA.Off,onChange:this.onRememberPasswordChanged}))),Ae.createElement(cD,null,Ae.createElement(uD,{onCancelButtonClick:this.onCancel,okButtonDisabled:0===this.state.password.length})))}onRememberPasswordChanged=e=>{this.setState({rememberPassword:e.currentTarget.checked})};onValueChanged=e=>{this.setState({password:e})};submit(e,t){const{onSubmit:n,onDismissed:r}=this.props;n(e,t),r()}onSubmit=()=>{this.submit(this.state.password,this.state.rememberPassword)};onCancel=()=>{this.submit(void 0,!1)}}class zF extends Ae.Component{invokeButtonRef=null;constructor(e){super(e),this.state={showPopover:!1}}onInvokeButtonRef=e=>{this.invokeButtonRef=e};togglePopover=()=>{this.setState({showPopover:!this.state.showPopover})};closePopover=()=>{this.setState({showPopover:!1})};renderPopover(){if(!this.state.showPopover)return;const{contentTitle:e}=this.props;return Ae.createElement(wx,{className:"popover-dropdown-popover",anchor:this.invokeButtonRef,anchorPosition:mx.BottomLeft,maxHeight:500,decoration:gx.Balloon,onClickOutside:this.closePopover,ariaLabelledby:"popover-dropdown-header"},Ae.createElement("div",{className:"popover-dropdown-wrapper"},Ae.createElement("div",{className:"popover-dropdown-header"},Ae.createElement("h3",{id:"popover-dropdown-header"},e),Ae.createElement("button",{className:"close",onClick:this.closePopover,"aria-label":"Close"},Ae.createElement(yi,{symbol:yu}))),Ae.createElement("div",{className:"popover-dropdown-content"},this.props.children)))}render(){const{className:e,buttonContent:t,label:n}=this.props,r=ri()("popover-dropdown-component",e);return Ae.createElement("div",{className:r},Ae.createElement(mi,{onClick:this.togglePopover,onButtonRef:this.onInvokeButtonRef},Ae.createElement("span",{className:"popover-dropdown-button-label"},n),Ae.createElement("span",{className:"button-content"},t),Ae.createElement(yi,{symbol:Qc})),this.renderPopover())}}class jF extends Ae.Component{popoverRef=Ae.createRef();constructor(e){super(e),this.state={selectedBranch:e.branch,filterText:""}}renderBranch=(e,t)=>TP(e,t,this.props.currentBranch);getBranchAriaLabel=e=>AP(e);onItemClick=(e,t)=>{t.event.preventDefault(),this.popoverRef.current?.closePopover(),this.setState({selectedBranch:e}),this.props.onChange?.(e)};onFilterTextChanged=e=>{this.setState({filterText:e})};render(){const{currentBranch:e,defaultBranch:t,recentBranches:n,allBranches:r,noBranchesMessage:i}=this.props,{filterText:s,selectedBranch:o}=this.state;return Ae.createElement(zF,{contentTitle:"Choose a base branch",buttonContent:o?.name??"",label:"基础:",ref:this.popoverRef},Ae.createElement(hP,{allBranches:r,currentBranch:e,defaultBranch:t,recentBranches:n,filterText:s,onFilterTextChanged:this.onFilterTextChanged,selectedBranch:o,canCreateNewBranch:!1,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onItemClick,noBranchesMessage:i}))}}class KF extends Ae.Component{constructor(e){super(e),this.state={titleId:si("Dialog_Open_Pull_Request")}}componentWillUnmount(){oi(this.state.titleId)}render(){const{baseBranch:e,currentBranch:t,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:i,commitCount:s,onBranchChange:o,onDismissed:a}=this.props,l=`${s} commit${s>1?"s":""}`;return Ae.createElement(rD,{title:"开启拉取请求",titleId:this.state.titleId,onCloseButtonClick:a},Ae.createElement("div",{className:"break"}),Ae.createElement("div",{className:"base-branch-details"},"Merge ",l," into"," ",Ae.createElement(jF,{branch:e,defaultBranch:n,currentBranch:t,allBranches:r,recentBranches:i,onChange:o,noBranchesMessage:Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"Sorry, I can't find that remote branch."),Ae.createElement("p",null,"You can only open pull requests against remote branches."))})," ","from ",Ae.createElement(CD,null,t.name),"."))}}function YF(e,t,n){const r=e.htmlURL;return null===r?null:void 0===n?`${r}/commit/${t}`:`${r}/commit/${t}${"#diff-"+vn.createHash("sha256").update(n).digest("hex")}`}class XF extends Ae.Component{constructor(e){super(e),this.state={showSideBySideDiff:e.showSideBySideDiff}}onOpenFile=e=>{const n=t.join(this.props.repository.path,e);this.onOpenBinaryFile(n)};onOpenBinaryFile=e=>{OM(e,this.props.dispatcher)};onHideWhitespaceInDiffChanged=e=>{const{selectedFile:t}=this.props;return this.props.dispatcher.onHideWhitespaceInPullRequestDiffChanged(e,this.props.repository,t)};onShowSideBySideDiffChanged=e=>{this.setState({showSideBySideDiff:e})};onDiffOptionsOpened=()=>{this.props.dispatcher.incrementMetric("diffOptionsViewedCount")};onChangeImageDiffType=e=>{this.props.dispatcher.changeImageDiffType(e)};onFileListResize=e=>{this.props.dispatcher.setPullRequestFileListWidth(e)};onFileListSizeReset=()=>{this.props.dispatcher.resetPullRequestFileListWidth()};onViewOnGitHub=e=>{const{nonLocalCommitSHA:t,repository:n,dispatcher:r}=this.props,{gitHubRepository:i}=n;if(null===i||null===t)return;const s=YF(i,t,e.path);null!==s&&r.openInBrowser(s)};onFileContextMenu=async(e,n)=>{n.preventDefault();const{repository:r}=this.props,i=t.join(r.path,e.path),s=await R(i);if(!s)return void hh([{label:"文件不存在于磁盘上",enabled:!1}]);const{externalEditorLabel:o,dispatcher:a}=this.props,l=(t.extname(e.path),[{label:yh,action:()=>dt(r,e.path),enabled:s},{label:void 0!==o?`打开于 ${o}`:gh,action:()=>a.openInExternalEditor(i),enabled:s},{label:bh,action:()=>this.onOpenFile(e.path),enabled:s},{type:"separator"},{label:mh,action:()=>f.clipboard.writeText(i)},{label:fh,action:()=>f.clipboard.writeText(t.normalize(e.path))},{type:"separator"}]),{nonLocalCommitSHA:c}=this.props,{gitHubRepository:u}=r,h=u&&u.endpoint!==cr();l.push({label:"在Github上查看"+(h?" Enterprise":""),action:()=>this.onViewOnGitHub(e),enabled:null!==c&&null!==u}),hh(l)};onFileSelected=e=>{this.props.dispatcher.changePullRequestFileSelection(this.props.repository,e)};onRowDoubleClick=e=>{const t=this.props.files[e];this.props.onOpenInExternalEditor(t.path)};renderHeader(){const{hideWhitespaceInDiff:e}=this.props,{showSideBySideDiff:t}=this.state;return Ae.createElement("div",{className:"files-changed-header"},Ae.createElement("div",{className:"commits-displayed"},"Showing changes from all commits"),Ae.createElement(LM,{isInteractiveDiff:!1,hideWhitespaceChanges:e,onHideWhitespaceChangesChanged:this.onHideWhitespaceInDiffChanged,showSideBySideDiff:t,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,onDiffOptionsOpened:this.onDiffOptionsOpened}))}renderFileList(){const{files:e,selectedFile:t,fileListWidth:n}=this.props;return Ae.createElement(nv,{width:n.value,minimumWidth:n.min,maximumWidth:n.max,onResize:this.onFileListResize,onReset:this.onFileListSizeReset},Ae.createElement(i_,{files:e,onSelectedFileChanged:this.onFileSelected,selectedFile:t,availableWidth:ry(n),onContextMenu:this.onFileContextMenu,onRowDoubleClick:this.onRowDoubleClick}))}renderDiff(){const{selectedFile:e}=this.props;if(null===e)return;const{diff:t,repository:n,imageDiffType:r,hideWhitespaceInDiff:i}=this.props,{showSideBySideDiff:s}=this.state;return Ae.createElement(wM,{repository:n,imageDiffType:r,file:e,diff:t,readOnly:!0,hideWhitespaceInDiff:i,showSideBySideDiff:s,showDiffCheckMarks:!1,onOpenBinaryFile:this.onOpenBinaryFile,onChangeImageDiffType:this.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged})}render(){return Ae.createElement("div",{className:"pull-request-files-changed"},this.renderHeader(),Ae.createElement("div",{className:"files-diff-viewer"},this.renderFileList(),this.renderDiff()))}}class QF extends Ae.Component{getMergeStatusDescription=()=>{const{mergeStatus:e}=this.props;if(null===e)return"";const{kind:t}=e;switch(t){case Gw.Loading:return Ae.createElement("span",{className:"pr-merge-status-loading"},Ae.createElement("strong",null,"Checking mergeability…")," Dont worry, you can still create the pull request.");case Gw.Invalid:return Ae.createElement("span",{className:"pr-merge-status-invalid"},Ae.createElement("strong",null,"Error checking merge status.")," 无法在此仓库中合并不相关的历史记录");case Gw.Clean:return Ae.createElement("span",{className:"pr-merge-status-clean"},Ae.createElement("strong",null,Ae.createElement(yi,{symbol:Xi})," Able to merge.")," ","These branches can be automatically merged.");case Gw.Conflicts:return Ae.createElement("span",{className:"pr-merge-status-conflicts"},Ae.createElement("strong",null,Ae.createElement(yi,{symbol:yu})," Can't automatically merge.")," ","Dont worry, you can still create the pull request.");default:return ct(0,`Unknown merge status kind of ${t}.`)}};render(){return Ae.createElement("div",{className:"pull-request-merge-status"},this.getMergeStatusDescription())}}class JF extends Ae.Component{onCreatePullRequest=()=>{const{currentBranchHasPullRequest:e,dispatcher:t,repository:n,onDismissed:r}=this.props;if(e)t.showPullRequest(n);else{const{baseBranch:e}=this.props.pullRequestState;t.createPullRequest(n,e??void 0),t.incrementMetric("createPullRequestCount"),t.incrementMetric("createPullRequestFromPreviewCount")}r()};onBranchChange=e=>{const{repository:t}=this.props;this.props.dispatcher.updatePullRequestBaseBranch(t,e)};renderHeader(){const{currentBranch:e,pullRequestState:t,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:i}=this.props,{baseBranch:s,commitSHAs:o}=t;return Ae.createElement(KF,{baseBranch:s,currentBranch:e,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:i,commitCount:o?.length??0,onBranchChange:this.onBranchChange,onDismissed:this.props.onDismissed})}renderContent(){return Ae.createElement("div",{className:"open-pull-request-content"},this.renderNoChanges(),this.renderNoDefaultBranch(),this.renderFilesChanged())}renderFilesChanged(){const{dispatcher:e,externalEditorLabel:t,hideWhitespaceInDiff:n,imageDiffType:r,pullRequestState:i,repository:s,fileListWidth:o,nonLocalCommitSHA:a}=this.props,{commitSelection:l}=i;if(null===l)return;const{diff:c,file:u,changesetData:h,shas:p}=l,{files:d}=h;return 0!==p.length?Ae.createElement(XF,{diff:c,dispatcher:e,externalEditorLabel:t,fileListWidth:o,files:d,hideWhitespaceInDiff:n,imageDiffType:r,nonLocalCommitSHA:a,selectedFile:u,showSideBySideDiff:this.props.showSideBySideDiff,repository:s,onOpenInExternalEditor:this.props.onOpenInExternalEditor}):void 0}renderNoChanges(){const{pullRequestState:e,currentBranch:t}=this.props,{commitSelection:n,baseBranch:r,mergeStatus:i}=e;if(null===n||null===r)return;const{shas:s}=n;if(0!==s.length)return;const o=i?.kind!==Gw.Invalid?Ae.createElement(Ae.Fragment,null,Ae.createElement(CD,null,r.name)," is up to date with all commits from"," ",Ae.createElement(CD,null,t.name),"."):Ae.createElement(Ae.Fragment,null,Ae.createElement(CD,null,r.name)," and ",Ae.createElement(CD,null,t.name)," are entirely different commit histories.");return Ae.createElement("div",{className:"open-pull-request-message"},Ae.createElement("div",null,Ae.createElement(yi,{symbol:ea}),Ae.createElement("h3",null,"There are no changes."),o))}renderNoDefaultBranch(){const{baseBranch:e}=this.props.pullRequestState;if(null===e)return Ae.createElement("div",{className:"open-pull-request-message"},Ae.createElement("div",null,Ae.createElement(yi,{symbol:ea}),Ae.createElement("h3",null,"Could not find a default branch to compare against."),"Select a base branch above."))}renderFooter(){const{currentBranchHasPullRequest:e,pullRequestState:t,repository:n}=this.props,{mergeStatus:r,commitSHAs:i}=t,s=n.gitHubRepository,o=e?"View":" Create",a=`${o} pull request on GitHub${s&&s.endpoint!==cr()?" Enterprise":""}.`,l=Ae.createElement(Ae.Fragment,null,e&&Ae.createElement(yi,{symbol:La}),`${o} pull request`);return Ae.createElement(cD,null,Ae.createElement(QF,{mergeStatus:r}),Ae.createElement(uD,{okButtonText:l,okButtonTitle:a,cancelButtonText:"取消",okButtonDisabled:null===i||0===i.length}))}render(){return Ae.createElement(aD,{className:"open-pull-request",onSubmit:this.onCreatePullRequest,onDismissed:this.props.onDismissed},this.renderHeader(),this.renderContent(),this.renderFooter())}}class eH extends Ae.Component{updateStoreEventHandle=null;onUpdateStateChanged=e=>{e.status!==on.UpdateAvailable&&this.props.dispatcher.quitApp(!1)};componentDidMount(){this.updateStoreEventHandle=an.onDidChange(this.onUpdateStateChanged),this.onUpdateStateChanged(an.state)}componentWillUnmount(){this.updateStoreEventHandle&&(this.updateStoreEventHandle.dispose(),this.updateStoreEventHandle=null),this.props.dispatcher.cancelQuittingApp()}onQuitAnywayButtonClicked=()=>{this.props.dispatcher.quitApp(!0)};render(){return Ae.createElement(aD,{id:"installing-update",title:"安装更新...",loading:!0,onSubmit:this.props.onDismissed,backdropDismissable:!1,type:"warning",onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement(GT,{className:"updating-message"},"Do not close GitHub Desktop while the update is in progress. Closing now may break your installation.")),Ae.createElement(cD,null,Ae.createElement(uD,{okButtonText:"仍要退出",onOkButtonClick:this.onQuitAnywayButtonClicked,onCancelButtonClick:this.props.onDismissed,destructive:!0})))}}var tH,nH;!function(e){e[e.PullRequestReview=0]="PullRequestReview",e[e.PullRequestComment=1]="PullRequestComment",e[e.ChecksFailed=2]="ChecksFailed"}(tH||(tH={})),function(e){e[e.SelectPullRequest=0]="SelectPullRequest",e[e.SelectPullRequestReview=1]="SelectPullRequestReview",e[e.SelectPullRequestComment=2]="SelectPullRequestComment"}(nH||(nH={}));const rH=[{type:tH.PullRequestReview,steps:[nH.SelectPullRequest,nH.SelectPullRequestReview]},{type:tH.PullRequestComment,steps:[nH.SelectPullRequest,nH.SelectPullRequestComment]},{type:tH.ChecksFailed,steps:[nH.SelectPullRequest]}];class iH extends xe().Component{render(){const{leftAccessory:e,html_url:t,children:n}=this.props;return xe().createElement("div",{className:"row-content"},e&&xe().createElement("div",{className:"left-accessory"},e),xe().createElement("div",{className:"main-content"},n),t&&xe().createElement("div",{className:"right-accessory"},xe().createElement(mi,{onClick:this.onExternalLinkClick,role:"link"},xe().createElement(yi,{symbol:La}))))}onExternalLinkClick=e=>{const{dispatcher:t,html_url:n}=this.props;void 0!==n&&(e.stopPropagation(),t.openInBrowser(n))}}class sH extends xe().Component{constructor(e){super(e),this.state={selectedFlow:null,stepResults:new Map,loading:!1,pullRequests:[],reviews:[],comments:[],selectedRows:[],suggestGrantNotificationPermission:!1,warnNotificationsDenied:!1,suggestConfigureNotifications:!1}}componentDidMount(){this.updateNotificationsState()}async updateNotificationsState(){const e=await(0,qb.X)();this.setState({suggestGrantNotificationPermission:(0,qb.YF)()&&"default"===e,warnNotificationsDenied:"denied"===e,suggestConfigureNotifications:"granted"===e})}onGrantNotificationPermission=async()=>{await(0,qb.QJ)(),this.updateNotificationsState()};renderNotificationHint(){const{suggestGrantNotificationPermission:e,warnNotificationsDenied:t,suggestConfigureNotifications:n}=this.state;if(e)return xe().createElement(xe().Fragment,null," ","你需要"," ",xe().createElement(Hx,{onClick:this.onGrantNotificationPermission},"grant permission")," ","从GitHub DeskTop显示这些通知");const r=(0,qb.Y4)();if(null===r)return null;if(t)return xe().createElement(xe().Fragment,null,xe().createElement("span",{className:"warning-icon"},"⚠️")," GitHub DeskTop没有显示通知的权限。请在设置中启用它们"," ",xe().createElement(Hx,{uri:r},"通知设置"),".");const i=n?"properly configured":"允许";return xe().createElement(xe().Fragment,null,"确认GitHub DeskTop ",i," 向你发出通知"," ",xe().createElement(Hx,{uri:r},"通知设置"),".")}getTypeFriendlyName(e){return new Map([[tH.PullRequestReview,"Pull Request Review"],[tH.PullRequestComment,"Pull Request Comment"],[tH.ChecksFailed,"Pull Request Checks Failed"]]).get(e??this.state.selectedFlow?.type??tH.PullRequestReview)??""}renderNotificationType=e=>xe().createElement(mi,{onClick:this.getOnNotificationTypeClick(e)},this.getTypeFriendlyName(e));getOnNotificationTypeClick=e=>()=>{const t=rH.find((t=>t.type===e))??null;this.setState({selectedFlow:t},(()=>{this.prepareForNextStep()}))};doFinalAction(){const e=this.state.selectedFlow;if(null!==e)switch(e.type){case tH.PullRequestReview:{const e=this.getPullRequest(),t=this.getReview();if(null===e||null===t)return;this.props.notificationsDebugStore.simulatePullRequestReviewNotification(this.props.repository.gitHubRepository,e,t);break}case tH.PullRequestComment:{const e=this.getPullRequest(),t=this.getCommentInfo();if(null===e||null===t)return;const{comment:n,isIssueComment:r}=t;this.props.notificationsDebugStore.simulatePullRequestCommentNotification(this.props.repository.gitHubRepository,e,n,r);break}case tH.ChecksFailed:{const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.simulatePullRequestChecksFailed(this.props.repository,e,this.props.dispatcher);break}default:ct(e.type,`Unknown flow type: ${e}`)}}prepareForNextStep(){const e=this.state.selectedFlow?.steps[this.state.stepResults.size];if(void 0===e)return this.doFinalAction(),void this.back();switch(e){case nH.SelectPullRequest:this.setState({loading:!0}),this.props.notificationsDebugStore.getPullRequests(this.props.repository,{filterByComments:this.state.selectedFlow?.type===tH.PullRequestComment,filterByReviews:this.state.selectedFlow?.type===tH.PullRequestReview}).then((e=>{this.setState({pullRequests:e,selectedRows:[],loading:!1})}));break;case nH.SelectPullRequestReview:{this.setState({loading:!0});const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.getPullRequestReviews(this.props.repository,e.pullRequestNumber).then((e=>{this.setState({reviews:e,selectedRows:[],loading:!1})}));break}case nH.SelectPullRequestComment:{this.setState({loading:!0});const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.getPullRequestComments(this.props.repository,e.pullRequestNumber).then((e=>{this.setState({comments:e,selectedRows:[],loading:!1})}));break}default:ct(0,`Unknown step: ${e}`)}}getPullRequest(){const e=this.state.stepResults.get(nH.SelectPullRequest);return void 0===e?null:e.pullRequest}getReview(){const e=this.state.stepResults.get(nH.SelectPullRequestReview);return void 0===e?null:e.review}getCommentInfo(){const e=this.state.stepResults.get(nH.SelectPullRequestComment);return void 0===e?null:{comment:e.comment,isIssueComment:e.isIssueComment}}renderCurrentStep(){if(null===this.state.selectedFlow)return xe().createElement("div",null,xe().createElement("p",null,"Select the type of notification to display:"),xe().createElement("div",{className:"notification-type-list"},this.renderNotificationType(tH.PullRequestReview),this.renderNotificationType(tH.PullRequestComment),this.renderNotificationType(tH.ChecksFailed)));const e=this.state.selectedFlow.steps.at(this.state.stepResults.size);if(void 0===e)return xe().createElement("p",null,"Done!");switch(e){case nH.SelectPullRequest:return this.renderSelectPullRequest();case nH.SelectPullRequestReview:return this.renderSelectPullRequestReview();case nH.SelectPullRequestComment:return this.renderSelectPullRequestComment();default:return ct(0,`Unknown step: ${e}`)}}renderSelectPullRequest(){if(this.state.loading)return xe().createElement(Dx,null);const{pullRequests:e,selectedRows:t}=this.state;return 0===e.length?xe().createElement("p",null,"No pull requests found"):xe().createElement("div",null,"Pull requests for ",this.getTypeFriendlyName(),":",xe().createElement(ZT,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestRow,selectedRows:t,onRowClick:this.onPullRequestRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onPullRequestRowClick=e=>{const t=this.state.pullRequests[e.row],n=this.state.stepResults;n.set(nH.SelectPullRequest,{kind:nH.SelectPullRequest,pullRequest:t}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderSelectPullRequestReview(){if(this.state.loading)return xe().createElement(Dx,null);const{reviews:e,selectedRows:t}=this.state;return 0===e.length?xe().createElement("p",null,"No reviews found"):xe().createElement("div",null,"Reviews:",xe().createElement(ZT,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestReviewRow,selectedRows:t,onRowClick:this.onPullRequestReviewRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onSelectedRowChanged=e=>{this.setState({selectedRows:[e]})};onPullRequestReviewRowClick=e=>{const t=this.state.reviews[e.row],n=this.state.stepResults;n.set(nH.SelectPullRequestReview,{kind:nH.SelectPullRequestReview,review:t}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderSelectPullRequestComment(){if(this.state.loading)return xe().createElement(Dx,null);const{comments:e,selectedRows:t}=this.state;return 0===e.length?xe().createElement("p",null,"No comments found"):xe().createElement("div",null,"Comments:",xe().createElement(ZT,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestCommentRow,selectedRows:t,onRowClick:this.onPullRequestCommentRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onPullRequestCommentRowClick=e=>{const t=this.state.comments[e.row],n=this.state.stepResults;n.set(nH.SelectPullRequestComment,{kind:nH.SelectPullRequestComment,comment:t,isIssueComment:t.html_url.includes("#issuecomment-")}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderPullRequestCommentRow=e=>{const t=this.state.comments[e.row];return xe().createElement(iH,{dispatcher:this.props.dispatcher,html_url:t.html_url,leftAccessory:this.renderReviewStateIcon("COMMENTED")},t.body,xe().createElement("br",null),"by ",xe().createElement("i",null,t.user.login))};renderPullRequestReviewRow=e=>{const t=this.state.reviews[e.row];return xe().createElement(iH,{dispatcher:this.props.dispatcher,html_url:t.html_url,leftAccessory:this.renderReviewStateIcon(t.state)},t.body||xe().createElement("i",null,"Review without body"),xe().createElement("br",null),"by ",xe().createElement("i",null,t.user.login))};renderReviewStateIcon=e=>{const t=kb(e);return xe().createElement("div",{className:ri()("review-icon-container",t.className)},xe().createElement(yi,{symbol:t.symbol}))};renderPullRequestRow=e=>{const t=this.state.pullRequests[e.row],n=this.props.repository.gitHubRepository,r=`${ar(n.endpoint)}/${n.owner.login}/${n.name}/pull/${t.pullRequestNumber}`;return xe().createElement(iH,{dispatcher:this.props.dispatcher,html_url:r,leftAccessory:this.renderPullRequestStateIcon(t)},xe().createElement("b",null,"#",t.pullRequestNumber,t.draft?" (Draft)":"",":")," ",t.title," ",xe().createElement("br",null),"by ",xe().createElement("i",null,t.author))};renderPullRequestStateIcon=e=>xe().createElement(yi,{className:e.draft?"pr-draft-icon":"pr-icon",symbol:e.draft?na:ea});render(){return xe().createElement(aD,{id:"test-notifications",title:"测试通知",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},xe().createElement(nD,null,xe().createElement("p",null,this.renderNotificationHint()),this.renderCurrentStep()),xe().createElement(cD,null,xe().createElement(uD,{okButtonText:"关闭",okButtonDisabled:!1,cancelButtonDisabled:!1,cancelButtonVisible:null!==this.state.selectedFlow,cancelButtonText:"返回",onCancelButtonClick:this.onBack})))}onBack=e=>{this.back(),e.preventDefault()};back(){const{selectedFlow:e,stepResults:t}=this.state;if(null===e)return;0===t.size&&this.setState({selectedFlow:null,stepResults:new Map},(()=>{this.prepareForNextStep()}));const n=e.steps.at(t.size-1);if(void 0===n)return;const r=new Map(t);r.delete(n),this.setState({stepResults:r},(()=>{this.prepareForNextStep()}))}}class oH extends Ae.Component{constructor(e){super(e),this.state={switchingToPullRequest:!1}}render(){const{dispatcher:e,repository:t,pullRequest:n,emoji:r,comment:i,onSubmit:s,onDismissed:o,accounts:a}=this.props,l=kb("COMMENTED");return Ae.createElement(qF,{id:"pull-request-comment",dispatcher:e,repository:t,pullRequest:n,emoji:r,eventDate:new Date(i.created_at),eventVerb:"commented on",eventIconSymbol:l.symbol,eventIconClass:l.className,externalURL:i.html_url,user:i.user,body:i.body,switchingToPullRequest:this.state.switchingToPullRequest,renderFooterContent:this.renderFooterContent,onSubmit:s,onDismissed:o,underlineLinks:this.props.underlineLinks,accounts:a})}renderFooterContent=()=>{const{shouldChangeRepository:e,shouldCheckoutBranch:t,comment:n}=this.props;let r;e?r="Switch to repository and pull request":t&&(r="Switch to pull request");const i=Ae.createElement(uD,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",cancelButtonVisible:void 0!==r,okButtonText:r,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit});return Ae.createElement(GT,null,Ae.createElement("div",{className:"footer-links"},Ae.createElement(Hx,{uri:n.html_url},"打开于 browser")),i)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r,shouldChangeRepository:i,shouldCheckoutBranch:s}=this.props;(i||s)&&(this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),t.incrementMetric("pullRequestCommentDialogSwitchToPullRequestCount")),this.props.onDismissed()}}class aH extends Ae.Component{constructor(e){super(e)}render(){return Ae.createElement(aD,{id:"unknown-authors",title:"Unknown co-authors",onDismissed:this.props.onDismissed,onSubmit:this.commit,type:"warning"},Ae.createElement(nD,null,this.renderAuthorList()),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"仍要提交"})))}renderAuthorList(){return this.props.authors.length>10?Ae.createElement("p",null,this.props.authors.length," users weren't found and won't be added as co-authors of this commit. Are you sure you want to commit?"):Ae.createElement("div",null,Ae.createElement("p",null,"These users weren't found and won't be added as co-authors of this commit. Are you sure you want to commit?"),Ae.createElement("div",{className:"author-list"},Ae.createElement("ul",null,this.props.authors.map((e=>Ae.createElement("li",{key:e.username},Ae.createElement(JD,{path:e.username})))))))}commit=async()=>{this.props.onCommit(),this.props.onDismissed()}}class lH extends Ae.Component{render(){return Ae.createElement(aD,{id:"repo-rules-bypass-confirmation",title:"Bypass repository rules",onSubmit:this.submit,onDismissed:this.props.onDismissed,type:"warning"},Ae.createElement(nD,null,"This commit will bypass"," ",Ae.createElement(pD,{repository:this.props.repository,branch:this.props.branch},"one or more repository rules"),". Are you sure you want to continue?"),Ae.createElement(cD,null,Ae.createElement(uD,{destructive:!0,okButtonText:"Bypass rules and commit"})))}submit=()=>{this.props.onConfirm(),this.props.onDismissed()}}class cH extends Ae.Component{render(){return Ae.createElement(aD,{id:"octicons-preview-dialog",className:"octicons-preview-dialog",title:"Icon Preview",onDismissed:this.props.onDismissed},Ae.createElement(nD,null,Ae.createElement("ul",{className:"octicons-preview-list"},Object.entries(e).map((([e,t])=>this.renderIconVariants(e,t))))))}renderIconVariants(e,t){return Ae.createElement("li",{key:e},Ae.createElement("h2",null,e),Ae.createElement("ul",null,Object.entries(t).map((([t,n])=>this.renderIcon(e,t,n)))))}renderIcon(e,t,n){const r=`${n.h}x${n.w}`,i=`${e} - ${r}`;return Ae.createElement("li",{key:`name-${r}`},Ae.createElement(yi,{height:parseInt(t),symbol:n,title:i}),Ae.createElement("small",null,r))}}const uH={enter:250,exit:100},hH={enter:500,exit:400};class pH extends Ae.Component{loading=!0;lastKeyPressed=null;updateIntervalHandle;repositoryViewRef=Ae.createRef();get isShowingModal(){return null!==this.state.currentPopup}getOnPopupDismissedFn=Tr((e=>()=>this.onPopupDismissed(e)));constructor(e){super(e),e.dispatcher.loadInitialState().then((()=>{this.loading=!1,this.forceUpdate(),requestIdleCallback((()=>{const t=performance.now();_(t-e.startTime),requestIdleCallback((()=>{this.performDeferredLaunchActions()}))}),{timeout:100})})),this.state=e.appStore.getState(),e.appStore.onDidUpdate((e=>{this.setState(e)})),e.appStore.onDidError((t=>{e.dispatcher.postError(t)})),y("menu-event",((e,t)=>this.onMenuEvent(t))),an.onDidChange((async e=>{const t=e.status;t===on.UpdateReady&&this.props.dispatcher.setUpdateBannerVisibility(!0),t!==on.UpdateReady&&await an.isUpdateShowcase()&&this.props.dispatcher.setUpdateShowCaseVisibility(!0)})),an.onError((e=>{log.error("Error checking for updates",e),this.props.dispatcher.postError(e)})),y("launch-timing-stats",((e,t)=>{console.info(`App ready time: ${t.mainReadyTime}ms`),console.info(`Load time: ${t.loadTime}ms`),console.info(`Renderer ready time: ${t.rendererReadyTime}ms`),this.props.dispatcher.recordLaunchStats(t)})),y("certificate-error",((e,t,n,r)=>{this.props.dispatcher.showPopup({type:dh.UntrustedCertificate,certificate:t,url:r})})),bp.onDragEnded(this.onDragEnd)}componentWillUnmount(){window.clearInterval(this.updateIntervalHandle)}async performDeferredLaunchActions(){this.props.appStore.loadEmoji(),this.props.dispatcher.reportStats(),setInterval((()=>this.props.dispatcher.reportStats()),144e5),this.props.dispatcher.installGlobalLFSFilters(!1),setInterval((()=>this.checkForUpdates(!0)),144e5),this.checkForUpdates(!0),log.info(`launching: 3.4.3-linux1 (${Ar()})`),log.info(`execPath: '${process.execPath}'`),this.state.askToMoveToApplicationsFolderSetting,this.setOnOpenBanner()}onOpenAccessibilitySettings=()=>{this.props.dispatcher.showPopup({type:dh.Preferences,initialSelectedTab:Fr.Accessibility})};setOnOpenBanner(){Ir()&&Zt(rL,0)<_t(-90,"days")?this.setBanner({type:Vw.OSVersionNoLongerSupported}):!0===Ht(sL)?this.checkIfThankYouIsInOrder():this.setBanner({type:Vw.AccessibilitySettingsBanner,onOpenAccessibilitySettings:this.onOpenAccessibilitySettings})}onMenuEvent(e){if(!("show-app-error"!==e&&this.state.errorCount>1))switch(e){case"push":return this.push();case"force-push":return this.push({forceWithLease:!0});case"pull":return this.pull();case"fetch":return this.fetch();case"show-changes":return this.showChanges(!0);case"show-history":return this.showHistory(!0);case"choose-repository":return this.chooseRepository();case"add-local-repository":return this.showAddLocalRepo();case"create-branch":return this.showCreateBranch();case"show-branches":return this.showBranches();case"remove-repository":return this.removeRepository(this.getRepository());case"create-repository":return this.showCreateRepository();case"rename-branch":return this.renameBranch();case"delete-branch":return this.deleteBranch();case"discard-all-changes":return this.discardAllChanges();case"stash-all-changes":return this.stashAllChanges();case"show-preferences":return this.props.dispatcher.showPopup({type:dh.Preferences});case"open-working-directory":return this.openCurrentRepositoryWorkingDirectory();case"update-branch-with-contribution-target-branch":return this.props.dispatcher.incrementMetric("updateFromDefaultBranchMenuCount"),this.updateBranchWithContributionTargetBranch();case"compare-to-branch":return this.showHistory(!1,!0);case"merge-branch":return this.props.dispatcher.recordMenuInitiatedMerge(),this.mergeBranch();case"squash-and-merge-branch":return this.props.dispatcher.recordMenuInitiatedMerge(!0),this.mergeBranch(!0);case"rebase-branch":return this.props.dispatcher.incrementMetric("rebaseCurrentBranchMenuCount"),this.showRebaseDialog();case"show-repository-settings":return this.showRepositorySettings();case"view-repository-on-github":return this.viewRepositoryOnGitHub();case"compare-on-github":return this.openBranchOnGitHub("compare");case"branch-on-github":return this.openBranchOnGitHub("tree");case"create-issue-in-repository-on-github":return this.openIssueCreationOnGitHub();case"open-in-shell":return this.openCurrentRepositoryInShell();case"clone-repository":return this.showCloneRepo();case"show-about":return this.showAbout();case"boomtown":return this.boomtown();case"go-to-commit-message":return this.goToCommitMessage();case"open-pull-request":return this.openPullRequest();case"preview-pull-request":return this.startPullRequest();case"install-darwin-cli":return this.props.dispatcher.installDarwinCLI();case"install-windows-cli":return Se();case"uninstall-windows-cli":return Ee();case"open-external-editor":return this.openCurrentRepositoryInExternalEditor();case"select-all":return this.selectAll();case"show-release-notes-popup":return this.showFakeReleaseNotesPopup();case"show-thank-you-popup":return this.showFakeThankYouPopup();case"show-stashed-changes":return this.showStashedChanges();case"hide-stashed-changes":return this.hideStashedChanges();case"test-show-notification":return this.testShowNotification();case"test-prune-branches":return this.testPruneBranches();case"find-text":return this.findText();case"show-app-error":return this.props.dispatcher.postError(new Error("Test Error - to use default error handler"+kn()));case"increase-active-resizable-width":return this.resizeActiveResizable("increase-active-resizable-width");case"decrease-active-resizable-width":return this.resizeActiveResizable("decrease-active-resizable-width");case"show-update-banner":return this.showFakeUpdateBanner({});case"show-arm64-banner":return this.showFakeUpdateBanner({isArm64:!0});case"show-showcase-update-banner":return this.showFakeUpdateBanner({isShowcase:!0});case"show-thank-you-banner":return this.showFakeThankYouBanner();case"show-test-reorder-banner":return this.showFakeReorderBanner();case"show-test-undone-banner":return this.showFakeUndoneBanner();case"show-test-cherry-pick-conflicts-banner":return this.showFakeCherryPickConflictBanner();case"show-test-merge-successful-banner":return this.showFakeMergeSuccessfulBanner();case"show-icon-test-dialog":return this.showIconTestDialog();default:return ct(0,`Unknown menu event name: ${e}`)}}showFakeUpdateBanner(e){an.setIsx64ToARM64ImmediateAutoUpdate(!0===e.isArm64),e.isShowcase?this.props.dispatcher.setUpdateShowCaseVisibility(!0):this.props.dispatcher.setUpdateBannerVisibility(!0)}showFakeThankYouBanner(){const e=[{kind:"fixed",message:"A totally awesome fix that fixes something - #123. Thanks!"},{kind:"added",message:"You can now do this new thing that was added here - #456. Thanks!"}],t={type:Vw.OpenThankYouCard,emoji:this.state.emoji,onOpenCard:()=>this.openThankYouCard(e,"3.4.3-linux1"),onThrowCardAway:()=>{console.log("Thrown away :(....")}};this.setBanner(t)}async showFakeReleaseNotesPopup(){}showFakeThankYouPopup(){}async showFakeReorderBanner(){}async showFakeUndoneBanner(){}async showFakeCherryPickConflictBanner(){}async showFakeMergeSuccessfulBanner(){}async showIconTestDialog(){}testShowNotification(){}testPruneBranches(){}resizeActiveResizable(e){document.activeElement?.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0}))}selectAll(){const e=new CustomEvent("select-all",{bubbles:!0,cancelable:!0});null!=document.activeElement&&document.activeElement.dispatchEvent(e)&&x()}findText(){const e=new CustomEvent("find-text",{bubbles:!0,cancelable:!0});null!=document.activeElement?document.activeElement.dispatchEvent(e):document.dispatchEvent(e)}boomtown(){setImmediate((()=>{throw new Error("Boomtown!")}))}async goToCommitMessage(){await this.showChanges(!1),this.props.dispatcher.setCommitMessageFocus(!0)}checkForUpdates(e,t=!1){}getDotComAccount(){const e=this.state.accounts.find((e=>e.endpoint===cr()));return e||null}getEnterpriseAccount(){const e=this.state.accounts.find((e=>e.endpoint!==cr()));return e||null}updateBranchWithContributionTargetBranch(){const{selectedState:e}=this.state;if(null==e||e.type!==Je.Repository)return;const{state:t,repository:n}=e,r=Gy(n,t.branchesState);if(!r)return;this.props.dispatcher.initializeMergeOperation(n,!1,r);const{mergeStatus:i}=t.compareState;this.props.dispatcher.mergeBranch(n,r,i)}mergeBranch(e=!1){const t=this.state.selectedState;if(null==t||t.type!==Je.Repository)return;const{repository:n}=t;this.props.dispatcher.startMergeBranchOperation(n,e)}openBranchOnGitHub(e){const t=this.getCurrentRepositoryGitHubURL();if(!t)return;const n=this.state.selectedState;if(null==n||n.type!==Je.Repository)return;const r=n.state.branchesState.tip;if(r.kind!==Hr.Valid||!r.branch.upstreamWithoutRemote)return;const i=`${t}/${e}/${encodeURIComponent(r.branch.upstreamWithoutRemote)}`;this.props.dispatcher.openInBrowser(i)}openCurrentRepositoryWorkingDirectory(){const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.showRepository(e.repository)}renameBranch(){const e=this.state.selectedState;if(null==e||e.type!==Je.Repository)return;const t=e.state.branchesState.tip;t.kind===Hr.Valid&&this.props.dispatcher.showPopup({type:dh.RenameBranch,repository:e.repository,branch:t.branch})}deleteBranch(){const e=this.state.selectedState;if(null===e||e.type!==Je.Repository)return;const t=e.state.branchesState.tip;if(t.kind===Hr.Valid){const n=e.state.branchesState.currentPullRequest;if(null!==n)this.props.dispatcher.showPopup({type:dh.DeletePullRequest,repository:e.repository,branch:t.branch,pullRequest:n});else{const n=null!==e.state.aheadBehind;this.props.dispatcher.showPopup({type:dh.DeleteBranch,repository:e.repository,branch:t.branch,existsOnRemote:n})}}}discardAllChanges(){const e=this.state.selectedState;if(null==e||e.type!==Je.Repository)return;const{workingDirectory:t}=e.state.changesState;this.props.dispatcher.showPopup({type:dh.ConfirmDiscardChanges,repository:e.repository,files:t.files,showDiscardChangesSetting:!1,discardingAllChanges:!0})}stashAllChanges(){const e=this.getRepository();null!==e&&e instanceof Zr&&this.props.dispatcher.createStashForCurrentBranch(e)}showAddLocalRepo=()=>this.props.dispatcher.showPopup({type:dh.AddRepository});showCreateRepository=()=>{this.props.dispatcher.showPopup({type:dh.CreateRepository})};showCloneRepo=e=>{let t=null;return void 0!==e&&(this.props.dispatcher.changeCloneRepositoriesTab(Ur.Generic),t=e),this.props.dispatcher.showPopup({type:dh.CloneRepository,initialURL:t})};showCreateTutorialRepositoryPopup=()=>{const e=this.getDotComAccount()||this.getEnterpriseAccount();null!==e&&this.props.dispatcher.showPopup({type:dh.CreateTutorialRepository,account:e})};onResumeTutorialRepository=()=>{const e=this.getSelectedTutorialRepository();e&&this.props.dispatcher.resumeTutorial(e)};getSelectedTutorialRepository(){const{selectedState:e}=this.state,t=e&&e.type===Je.Repository?e.repository:null;return t&&t.isTutorialRepository?t:null}showAbout(){this.props.dispatcher.showPopup({type:dh.About})}async showHistory(e,t=!1){const n=this.state.selectedState;null!=n&&n.type===Je.Repository&&(await this.props.dispatcher.closeCurrentFoldout(),await this.props.dispatcher.initializeCompare(n.repository,{kind:rt.History}),await this.props.dispatcher.changeRepositorySection(n.repository,tt.History),await this.props.dispatcher.updateCompareForm(n.repository,{filterText:"",showBranchList:t}),e&&this.repositoryViewRef.current?.setFocusHistoryNeeded())}async showChanges(e){const t=this.state.selectedState;null!=t&&t.type===Je.Repository&&(this.props.dispatcher.closeCurrentFoldout(),await this.props.dispatcher.changeRepositorySection(t.repository,tt.Changes),e&&this.repositoryViewRef.current?.setFocusChangesNeeded())}chooseRepository(){return this.state.currentFoldout&&this.state.currentFoldout.type===et.Repository?this.props.dispatcher.closeFoldout(et.Repository):this.props.dispatcher.showFoldout({type:et.Repository})}showBranches(){const e=this.state.selectedState;if(null!=e&&e.type===Je.Repository)return this.state.currentFoldout&&this.state.currentFoldout.type===et.Branch?this.props.dispatcher.closeFoldout(et.Branch):this.props.dispatcher.showFoldout({type:et.Branch})}push(e){const t=this.state.selectedState;null!=t&&t.type===Je.Repository&&(e&&e.forceWithLease?this.props.dispatcher.confirmOrForcePush(t.repository):this.props.dispatcher.push(t.repository))}async pull(){const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.props.dispatcher.pull(e.repository)}async fetch(){const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.props.dispatcher.fetch(e.repository,ln.UserInitiatedTask)}showStashedChanges(){const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.props.dispatcher.selectStashedFile(e.repository)}hideStashedChanges(){const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.props.dispatcher.hideStashedChanges(e.repository)}componentDidMount(){document.ondragover=e=>{null!=e.dataTransfer&&(this.isShowingModal?e.dataTransfer.dropEffect="none":e.dataTransfer.dropEffect="copy"),e.preventDefault()},document.ondrop=e=>{e.preventDefault()},document.body.ondrop=e=>{if(!this.isShowingModal){if(null!=e.dataTransfer){const t=e.dataTransfer.files;this.handleDragAndDrop(t)}e.preventDefault()}},cn()&&(window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp)),document.addEventListener("focus",this.onDocumentFocus,{capture:!0})}onDocumentFocus=e=>{this.props.dispatcher.appFocusedElementChanged()};onMacOSWindowKeyDown=e=>{};onWindowKeyDown=e=>{if(!e.defaultPrevented&&!this.isShowingModal){if(cn())if("Shift"===e.key&&e.altKey)this.props.dispatcher.setAccessKeyHighlightState(!1);else if("Alt"===e.key){if(e.shiftKey)return;this.state.currentFoldout&&this.state.currentFoldout.type===et.AppMenu&&this.state.appMenuState.length>1&&(this.props.dispatcher.setAppMenuState((e=>e.withReset())),this.props.dispatcher.closeFoldout(et.AppMenu)),this.props.dispatcher.setAccessKeyHighlightState(!0)}else if(!e.altKey||e.ctrlKey||e.metaKey)e.altKey||this.props.dispatcher.setAccessKeyHighlightState(!1);else if(this.state.appMenuState.length){const t=this.state.appMenuState[0].items,n=Qr(e.key,t);n&&Xr(n)&&("submenuItem"===n.type?(this.props.dispatcher.setAppMenuState((e=>e.withReset().withSelectedItem(n).withOpenedMenu(n,!0))),this.props.dispatcher.showFoldout({type:et.AppMenu,enableAccessKeyNavigation:!0})):this.props.dispatcher.executeMenuItem(n),e.preventDefault())}this.lastKeyPressed=e.key}};onWindowKeyUp=e=>{e.defaultPrevented||cn()&&"Alt"===e.key&&(this.props.dispatcher.setAccessKeyHighlightState(!1),"Alt"===this.lastKeyPressed&&(this.state.currentFoldout&&this.state.currentFoldout.type===et.AppMenu?(this.props.dispatcher.setAppMenuState((e=>e.withReset())),this.props.dispatcher.closeFoldout(et.AppMenu)):this.props.dispatcher.showFoldout({type:et.AppMenu,enableAccessKeyNavigation:!0})))};async handleDragAndDrop(e){const t=[...e].map((e=>e.path)),{dispatcher:n}=this.props;if(t.length>1){const e=await n.addRepositories(t);e.length>0&&(n.recordAddExistingRepository(),await n.selectRepository(e[0]))}else if(1===t.length){const e=await Vg(t[0]).then((e=>"regular"===e.kind?e.topLevelWorkingDirectory:t[0])).catch((e=>(log.error("Could not determine repository type",e),t[0]))),{repositories:r}=this.state,i=Cr(r,e);i?await n.selectRepository(i):await this.showPopup({type:dh.AddRepository,path:e})}}removeRepository=e=>{e&&(e instanceof ti||e.missing?this.props.dispatcher.removeRepository(e,!1):this.state.askForConfirmationOnRepositoryRemoval?this.props.dispatcher.showPopup({type:dh.RemoveRepository,repository:e}):this.props.dispatcher.removeRepository(e,!1))};onConfirmRepoRemoval=async(e,t)=>{await this.props.dispatcher.removeRepository(e,t)};getRepository(){const e=this.state.selectedState;return null==e?null:e.repository}showRebaseDialog(){const e=this.getRepository();!e||e instanceof ti||this.props.dispatcher.showRebaseDialog(e)}showRepositorySettings(){const e=this.getRepository();!e||e instanceof ti||this.props.dispatcher.showPopup({type:dh.RepositorySettings,repository:e})}openIssueCreationOnGitHub(){const e=this.getRepository();e instanceof Zr&&this.props.dispatcher.openIssueCreationPage(e)}viewRepositoryOnGitHub(){const e=this.getRepository();this.viewOnGitHub(e)}getCurrentRepositoryGitHubURL(){const e=this.getRepository();return!e||e instanceof ti||!e.gitHubRepository?null:e.gitHubRepository.htmlURL}openCurrentRepositoryInShell=()=>{const e=this.getRepository();e&&this.openInShell(e)};openCurrentRepositoryInExternalEditor(){const e=this.getRepository();e&&this.openInExternalEditor(e)}renderAppMenuBar(){if(!this.state.appMenuState.length)return null;if(this.state.showWelcomeFlow)return null;const e=this.state.currentFoldout,t=e&&e.type===et.AppMenu?e:null;return Ae.createElement(sO,{appMenu:this.state.appMenuState,dispatcher:this.props.dispatcher,highlightAppMenuAccessKeys:this.state.highlightAccessKeys,foldoutState:t,onLostFocus:this.onMenuBarLostFocus})}onMenuBarLostFocus=()=>{this.props.dispatcher.closeFoldout(et.AppMenu),this.props.dispatcher.setAppMenuState((e=>e.withReset()))};renderTitlebar(){const e="full-screen"===this.state.windowState,t=this.state.currentFoldout&&this.state.currentFoldout.type===et.AppMenu;if("native"===this.state.titleBarStyle)return null;if(e&&!t)return null;const n=!this.state.showWelcomeFlow,r=this.state.showWelcomeFlow,i=(this.inNoRepositoriesViewState(),r?"light":"dark");return Ae.createElement(Eu,{showAppIcon:n,titleBarStyle:i,windowState:this.state.windowState,windowZoomFactor:this.state.windowZoomFactor},this.renderAppMenuBar())}onPopupDismissed=e=>this.props.dispatcher.closePopupById(e);onContinueWithUntrustedCertificate=e=>{J(e,"Could not securely connect to the server, because its certificate is not trusted. Attackers might be trying to steal your information.\n\nTo connect unsafely, which may put your data at risk, you can “Always trust” the certificate and try again.")};onUpdateAvailableDismissed=()=>this.props.dispatcher.setUpdateBannerVisibility(!1);allPopupContent(){const{allPopups:e}=this.state;return 0===e.length?null:Ae.createElement(Ae.Fragment,null,e.map((e=>{const t=this.state.currentPopup?.id===e.id;return Ae.createElement(oD.Provider,{key:e.id,value:{isTopMost:t}},this.popupContent(e,t))})))}popupContent(e,t){if(void 0===e.id)return FT("PopupNoId",new Error(`Attempted to open a popup of type '${e.type}' without an Id`)),null;const n=this.getOnPopupDismissedFn(e.id);switch(e.type){case dh.RenameBranch:const r=null!==this.state.selectedState&&this.state.selectedState.type===Je.Repository?this.state.selectedState.state.changesState.stashEntry:null;return Ae.createElement(wN,{key:"rename-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,stash:r,onDismissed:n});case dh.DeleteBranch:return Ae.createElement(bN,{key:"delete-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,existsOnRemote:e.existsOnRemote,onDismissed:n,onDeleted:this.onBranchDeleted});case dh.DeleteRemoteBranch:return Ae.createElement(vN,{key:"delete-remote-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,onDismissed:n,onDeleted:this.onBranchDeleted});case dh.ConfirmDiscardChanges:const i=void 0===e.showDiscardChangesSetting||e.showDiscardChangesSetting,s=void 0!==e.discardingAllChanges&&e.discardingAllChanges;return Ae.createElement(SN,{key:"discard-changes",repository:e.repository,dispatcher:this.props.dispatcher,files:e.files,confirmDiscardChanges:this.state.askForConfirmationOnDiscardChanges,showDiscardChangesSetting:i,discardingAllChanges:s,onDismissed:n,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesChanged});case dh.ConfirmDiscardSelection:return Ae.createElement(QB,{key:"discard-selection",repository:e.repository,dispatcher:this.props.dispatcher,file:e.file,diff:e.diff,selection:e.selection,onDismissed:n});case dh.Preferences:let o=this.getRepository();return o instanceof ti&&(o=null),Ae.createElement(bL,{key:"preferences",initialSelectedTab:e.initialSelectedTab,dispatcher:this.props.dispatcher,dotComAccount:this.getDotComAccount(),confirmRepositoryRemoval:this.state.askForConfirmationOnRepositoryRemoval,confirmDiscardChanges:this.state.askForConfirmationOnDiscardChanges,confirmDiscardChangesPermanently:this.state.askForConfirmationOnDiscardChangesPermanently,confirmDiscardStash:this.state.askForConfirmationOnDiscardStash,confirmCheckoutCommit:this.state.askForConfirmationOnCheckoutCommit,confirmForcePush:this.state.askForConfirmationOnForcePush,confirmUndoCommit:this.state.askForConfirmationOnUndoCommit,uncommittedChangesStrategy:this.state.uncommittedChangesStrategy,selectedExternalEditor:this.state.selectedExternalEditor,useWindowsOpenSSH:this.state.useWindowsOpenSSH,showCommitLengthWarning:this.state.showCommitLengthWarning,notificationsEnabled:this.state.notificationsEnabled,optOutOfUsageTracking:this.state.optOutOfUsageTracking,useExternalCredentialHelper:this.state.useExternalCredentialHelper,enterpriseAccount:this.getEnterpriseAccount(),repository:o,onDismissed:n,selectedShell:this.state.selectedShell,selectedTheme:this.state.selectedTheme,selectedTabSize:this.state.selectedTabSize,useCustomEditor:this.state.useCustomEditor,customEditor:this.state.customEditor,useCustomShell:this.state.useCustomShell,customShell:this.state.customShell,titleBarStyle:this.state.titleBarStyle,repositoryIndicatorsEnabled:this.state.repositoryIndicatorsEnabled,onOpenFileInExternalEditor:this.openFileInExternalEditor,underlineLinks:this.state.underlineLinks,showDiffCheckMarks:this.state.showDiffCheckMarks});case dh.RepositorySettings:{const t=e.repository,r=this.props.repositoryStateManager.get(t),i=Om(this.state.accounts,t);return Ae.createElement(HD,{key:`repository-settings-${t.hash}`,initialSelectedTab:e.initialSelectedTab,remote:r.remote,dispatcher:this.props.dispatcher,repository:t,repositoryAccount:i,onDismissed:n})}case dh.SignIn:return Ae.createElement(lB,{key:"sign-in",signInState:this.state.signInState,dispatcher:this.props.dispatcher,onDismissed:n,isCredentialHelperSignIn:e.isCredentialHelperSignIn,credentialHelperUrl:e.credentialHelperUrl});case dh.AddRepository:return Ae.createElement($L,{key:"add-existing-repository",onDismissed:n,dispatcher:this.props.dispatcher,path:e.path});case dh.CreateRepository:return Ae.createElement(ZL,{key:"create-repository",onDismissed:n,dispatcher:this.props.dispatcher,initialPath:e.path,isTopMost:t});case dh.CloneRepository:return Ae.createElement(tB,{key:"clone-repository",dotComAccount:this.getDotComAccount(),enterpriseAccount:this.getEnterpriseAccount(),initialURL:e.initialURL,onDismissed:n,dispatcher:this.props.dispatcher,selectedTab:this.state.selectedCloneRepositoryTab,onTabSelected:this.onCloneRepositoriesTabSelected,apiRepositories:this.state.apiRepositories,onRefreshRepositories:this.onRefreshRepositories,isTopMost:t});case dh.CreateBranch:{const t=this.props.repositoryStateManager.get(e.repository).branchesState,r=e.repository;if(t.tip.kind===Hr.Unknown)return n(),null;let i=null,s=null;return $r(r)&&(i=Gr(r),s=t.upstreamDefaultBranch),Ae.createElement(sB,{key:"create-branch",tip:t.tip,defaultBranch:t.defaultBranch,upstreamDefaultBranch:s,allBranches:t.allBranches,repository:r,targetCommit:e.targetCommit,upstreamGitHubRepository:i,accounts:this.state.accounts,cachedRepoRulesets:this.state.cachedRepoRulesets,onBranchCreatedFromCommit:this.onBranchCreatedFromCommit,onDismissed:n,dispatcher:this.props.dispatcher,initialName:e.initialName||""})}case dh.InstallGit:return Ae.createElement(cB,{key:"install-git",onDismissed:n,onOpenShell:this.onOpenShellIgnoreWarning,path:e.path});case dh.About:const a="3.4.3-linux1";return Ae.createElement(pB,{key:"about",onDismissed:n,applicationName:"GitHub Desktop",applicationVersion:a,applicationArchitecture:process.arch,onCheckForUpdates:this.onCheckForUpdates,onCheckForNonStaggeredUpdates:this.onCheckForNonStaggeredUpdates,onShowAcknowledgements:this.showAcknowledgements,onShowTermsAndConditions:this.showTermsAndConditions,isTopMost:t});case dh.PublishRepository:return Ae.createElement(yB,{key:"publish",dispatcher:this.props.dispatcher,repository:e.repository,accounts:this.state.accounts,onDismissed:n});case dh.UntrustedCertificate:return Ae.createElement(vB,{key:"untrusted-certificate",certificate:e.certificate,url:e.url,onDismissed:n,onContinue:this.onContinueWithUntrustedCertificate});case dh.Acknowledgements:return Ae.createElement(wB,{key:"acknowledgements",onDismissed:n,applicationVersion:"3.4.3-linux1"});case dh.RemoveRepository:return Ae.createElement(SB,{key:"confirm-remove-repository",repository:e.repository,onConfirmation:this.onConfirmRepoRemoval,onDismissed:n});case dh.TermsAndConditions:return Ae.createElement(kB,{key:"terms-and-conditions",onDismissed:n});case dh.PushBranchCommits:return Ae.createElement(oP,{key:"push-branch-commits",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,unPushedCommits:e.unPushedCommits,onConfirm:this.openCreatePullRequestInBrowser,onDismissed:n});case dh.CLIInstalled:return Ae.createElement(RB,{key:"cli-installed",onDismissed:n});case dh.GenericGitAuthentication:const l=()=>{e.onDismiss?.(),n()};return Ae.createElement(TB,{key:"generic-git-authentication",remoteUrl:e.remoteUrl,username:e.username,onDismiss:l,onSave:e.onSubmit});case dh.ExternalEditorFailed:const c=e.openPreferences,u=e.suggestDefaultEditor;return Ae.createElement(uB,{key:"editor-error",message:e.message,onDismissed:n,showPreferencesDialog:this.onShowIntegrationsPreferences,viewPreferences:c,suggestDefaultEditor:u});case dh.OpenShellFailed:return Ae.createElement(AB,{key:"shell-error",message:e.message,onDismissed:n,showPreferencesDialog:this.onShowIntegrationsPreferences});case dh.InitializeLFS:return Ae.createElement(DB,{key:"initialize-lfs",repositories:e.repositories,onDismissed:n,onInitialize:this.initializeLFS});case dh.LFSAttributeMismatch:return Ae.createElement(_B,{key:"lsf-attribute-mismatch",onDismissed:n,onUpdateExistingFilters:this.updateExistingLFSFilters});case dh.UpstreamAlreadyExists:return Ae.createElement(MB,{key:"upstream-already-exists",repository:e.repository,existingRemote:e.existingRemote,onDismissed:n,onUpdate:this.onUpdateExistingUpstreamRemote,onIgnore:this.onIgnoreExistingUpstreamRemote});case dh.ReleaseNotes:return Ae.createElement(OB,{key:"release-notes",emoji:this.state.emoji,newReleases:e.newReleases,onDismissed:n,underlineLinks:this.state.underlineLinks});case dh.DeletePullRequest:return Ae.createElement(NB,{key:"delete-pull-request",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,onDismissed:n,pullRequest:e.pullRequest});case dh.OversizedFiles:return Ae.createElement(FB,{key:"oversized-files",oversizedFiles:e.oversizedFiles,onDismissed:n,dispatcher:this.props.dispatcher,context:e.context,repository:e.repository});case dh.CommitConflictsWarning:return Ae.createElement(LB,{key:"commit-conflicts-warning",dispatcher:this.props.dispatcher,files:e.files,repository:e.repository,context:e.context,onDismissed:n});case dh.PushNeedsPull:return Ae.createElement(HB,{key:"push-needs-pull",dispatcher:this.props.dispatcher,repository:e.repository,onDismissed:n});case dh.ConfirmForcePush:{const{askForConfirmationOnForcePush:t}=this.state;return Ae.createElement(FF,{key:"confirm-force-push",dispatcher:this.props.dispatcher,repository:e.repository,upstreamBranch:e.upstreamBranch,askForConfirmationOnForcePush:t,onDismissed:n})}case dh.StashAndSwitchBranch:{const{repository:t,branchToCheckout:r}=e,{branchesState:i,changesState:s}=this.props.repositoryStateManager.get(t),{tip:o}=i;if(o.kind!==Hr.Valid)return null;const a=o.branch,l=null!==s.stashEntry;return Ae.createElement(ZB,{key:"stash-and-switch-branch",dispatcher:this.props.dispatcher,repository:e.repository,currentBranch:a,branchToCheckout:r,hasAssociatedStash:l,onDismissed:n})}case dh.ConfirmOverwriteStash:{const{repository:t,branchToCheckout:r}=e;return Ae.createElement($B,{key:"overwrite-stash",dispatcher:this.props.dispatcher,repository:t,branchToCheckout:r,onDismissed:n})}case dh.ConfirmDiscardStash:{const{repository:t,stash:r}=e;return Ae.createElement(WB,{key:"confirm-discard-stash-dialog",dispatcher:this.props.dispatcher,askForConfirmationOnDiscardStash:this.state.askForConfirmationOnDiscardStash,repository:t,stash:r,onDismissed:n})}case dh.ConfirmCheckoutCommit:{const{repository:t,commit:r}=e;return Ae.createElement(qB,{key:"confirm-checkout-commit-dialog",dispatcher:this.props.dispatcher,askForConfirmationOnCheckoutCommit:this.state.askForConfirmationOnDiscardStash,repository:t,commit:r,onDismissed:n})}case dh.CreateTutorialRepository:return Ae.createElement(VB,{key:"create-tutorial-repository-dialog",account:e.account,progress:e.progress,onDismissed:n,onCreateTutorialRepository:this.onCreateTutorialRepository});case dh.ConfirmExitTutorial:return Ae.createElement(cN,{key:"confirm-exit-tutorial",onDismissed:n,onContinue:this.onExitTutorialToHomeScreen});case dh.PushRejectedDueToMissingWorkflowScope:return Ae.createElement(GB,{onDismissed:n,rejectedPath:e.rejectedPath,dispatcher:this.props.dispatcher,repository:e.repository});case dh.SAMLReauthRequired:return Ae.createElement(zB,{onDismissed:n,organizationName:e.organizationName,endpoint:e.endpoint,retryAction:e.retryAction,dispatcher:this.props.dispatcher});case dh.CreateFork:return Ae.createElement(jB,{onDismissed:n,dispatcher:this.props.dispatcher,repository:e.repository,account:e.account});case dh.CreateTag:return Ae.createElement(KB,{key:"create-tag",repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher,targetCommitSha:e.targetCommitSha,initialName:e.initialName,localTags:e.localTags});case dh.DeleteTag:return Ae.createElement(YB,{key:"delete-tag",repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher,tagName:e.tagName});case dh.ChooseForkSettings:return Ae.createElement(XB,{repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher});case dh.LocalChangesOverwritten:const h=this.state.selectedState,p=null!==h&&h.type===Je.Repository?h.state.changesState.stashEntry:null;return Ae.createElement(JB,{repository:e.repository,dispatcher:this.props.dispatcher,hasExistingStash:null!==p,retryAction:e.retryAction,onDismissed:n,files:e.files});case dh.MoveToApplicationsFolder:return Ae.createElement(eF,{dispatcher:this.props.dispatcher,onDismissed:n});case dh.ChangeRepositoryAlias:return Ae.createElement(tF,{dispatcher:this.props.dispatcher,repository:e.repository,onDismissed:n});case dh.ThankYou:return Ae.createElement(iF,{key:"thank-you",emoji:this.state.emoji,userContributions:e.userContributions,friendlyName:e.friendlyName,latestVersion:e.latestVersion,onDismissed:n});case dh.CommitMessage:const d=this.props.repositoryStateManager.get(e.repository),{tip:m}=d.branchesState,f=m.kind===Hr.Valid?m.branch.name:null,g=null===e.repository.gitHubRepository||Lr(e.repository.gitHubRepository),y=xx(e.repository,this.props.dispatcher,this.state.emoji,this.props.issuesStore,this.props.gitHubUserStore,this.state.accounts),w=Om(this.state.accounts,e.repository);return Ae.createElement(oF,{key:"commit-message",autocompletionProviders:y,branch:f,coAuthors:e.coAuthors,commitAuthor:d.commitAuthor,commitMessage:e.commitMessage,commitSpellcheckEnabled:this.state.commitSpellcheckEnabled,showCommitLengthWarning:this.state.showCommitLengthWarning,dialogButtonText:e.dialogButtonText,dialogTitle:e.dialogTitle,dispatcher:this.props.dispatcher,prepopulateCommitSummary:e.prepopulateCommitSummary,repository:e.repository,showBranchProtected:d.changesState.currentBranchProtected,repoRulesInfo:d.changesState.currentRepoRulesInfo,aheadBehind:d.aheadBehind,showCoAuthoredBy:e.showCoAuthoredBy,showNoWriteAccess:!g,onDismissed:n,onSubmitCommitMessage:e.onSubmitCommitMessage,repositoryAccount:w,accounts:this.state.accounts});case dh.MultiCommitOperation:{const{selectedState:t,emoji:n}=this.state;if(null===t||t.type!==Je.Repository)return null;const{changesState:r,multiCommitOperationState:i}=t.state,{workingDirectory:s,conflictState:o}=r;return null===i?(log.warn("[App] invalid state encountered - multi commit flow should not be active when step is null"),null):Ae.createElement(PF,{key:"multi-commit-operation",repository:e.repository,dispatcher:this.props.dispatcher,state:i,conflictState:o,emoji:n,workingDirectory:s,askForConfirmationOnForcePush:this.state.askForConfirmationOnForcePush,accounts:this.state.accounts,cachedRepoRulesets:this.state.cachedRepoRulesets,openFileInExternalEditor:this.openFileInExternalEditor,resolvedExternalEditor:this.state.resolvedExternalEditor,openRepositoryInShell:this.openCurrentRepositoryInShell})}case dh.WarnLocalChangesBeforeUndo:{const{repository:t,commit:r,isWorkingDirectoryClean:i}=e;return Ae.createElement(IF,{key:"warn-local-changes-before-undo",dispatcher:this.props.dispatcher,repository:t,commit:r,isWorkingDirectoryClean:i,confirmUndoCommit:this.state.askForConfirmationOnUndoCommit,onDismissed:n})}case dh.WarningBeforeReset:{const{repository:t,commit:r}=e;return Ae.createElement(OF,{key:"warning-before-reset",dispatcher:this.props.dispatcher,repository:t,commit:r,onDismissed:n})}case dh.InvalidatedToken:return Ae.createElement(NF,{key:"invalidated-token",dispatcher:this.props.dispatcher,account:e.account,onDismissed:n});case dh.AddSSHHost:return Ae.createElement(LF,{key:"add-ssh-host",host:e.host,ip:e.ip,keyType:e.keyType,fingerprint:e.fingerprint,onSubmit:e.onSubmit,onDismissed:n});case dh.SSHKeyPassphrase:return Ae.createElement(BF,{key:"ssh-key-passphrase",keyPath:e.keyPath,onSubmit:e.onSubmit,onDismissed:n});case dh.SSHUserPassword:return Ae.createElement(GF,{key:"ssh-user-password",username:e.username,onSubmit:e.onSubmit,onDismissed:n});case dh.PullRequestChecksFailed:return Ae.createElement(UF,{key:"pull-request-checks-failed",dispatcher:this.props.dispatcher,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,checks:e.checks,accounts:this.state.accounts,onSubmit:n,onDismissed:n});case dh.CICheckRunRerun:return Ae.createElement($F,{key:"rerun-check-runs",checkRuns:e.checkRuns,dispatcher:this.props.dispatcher,repository:e.repository,prRef:e.prRef,onDismissed:n,failedOnly:e.failedOnly});case dh.WarnForcePush:{const{askForConfirmationOnForcePush:t}=this.state;return Ae.createElement(bF,{key:"warn-force-push",dispatcher:this.props.dispatcher,operation:e.operation,askForConfirmationOnForcePush:t,onBegin:this.getWarnForcePushDialogOnBegin(e.onBegin,n),onDismissed:n})}case dh.DiscardChangesRetry:return Ae.createElement(WF,{key:"discard-changes-retry",dispatcher:this.props.dispatcher,retryAction:e.retryAction,onDismissed:n,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesPermanentlyChanged});case dh.PullRequestReview:return Ae.createElement(VF,{key:"pull-request-review",dispatcher:this.props.dispatcher,shouldCheckoutBranch:e.shouldCheckoutBranch,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,review:e.review,emoji:this.state.emoji,onSubmit:n,onDismissed:n,underlineLinks:this.state.underlineLinks,accounts:this.state.accounts});case dh.UnreachableCommits:{const{selectedState:t,emoji:r}=this.state;if(null==t||t.type!==Je.Repository)return null;const{commitLookup:i,commitSelection:{shas:s,shasInDiff:o}}=t.state;return Ae.createElement(xO,{selectedShas:s,shasInDiff:o,commitLookup:i,selectedTab:e.selectedTab,emoji:r,onDismissed:n,accounts:this.state.accounts})}case dh.StartPullRequest:{const t=this.getPullRequestState();if(null===t)return FT("FailedToStartPullRequest",new Error("Failed to start pull request because pull request state was null")),null;const{pullRequestFilesListWidth:r,hideWhitespaceInPullRequestDiff:i}=this.state,{prBaseBranches:s,currentBranch:o,defaultBranch:a,imageDiffType:l,externalEditorLabel:c,nonLocalCommitSHA:u,prRecentBaseBranches:h,repository:p,showSideBySideDiff:d,currentBranchHasPullRequest:m}=e;return Ae.createElement(JF,{key:"open-pull-request",prBaseBranches:s,currentBranch:o,defaultBranch:a,dispatcher:this.props.dispatcher,fileListWidth:r,hideWhitespaceInDiff:i,imageDiffType:l,nonLocalCommitSHA:u,pullRequestState:t,prRecentBaseBranches:h,repository:p,externalEditorLabel:c,showSideBySideDiff:d,currentBranchHasPullRequest:m,onDismissed:n,onOpenInExternalEditor:this.onOpenInExternalEditor})}case dh.Error:return Ae.createElement(SL,{error:e.error,onDismissed:n,onShowPopup:this.showPopup,onRetryAction:this.onRetryAction});case dh.InstallingUpdate:return Ae.createElement(eH,{key:"installing-update",dispatcher:this.props.dispatcher,onDismissed:n});case dh.TestNotifications:return Ae.createElement(sH,{key:"test-notifications",dispatcher:this.props.dispatcher,notificationsDebugStore:this.props.notificationsDebugStore,repository:e.repository,onDismissed:n});case dh.PullRequestComment:return Ae.createElement(oH,{key:"pull-request-comment",dispatcher:this.props.dispatcher,shouldCheckoutBranch:e.shouldCheckoutBranch,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,comment:e.comment,emoji:this.state.emoji,onSubmit:n,onDismissed:n,underlineLinks:this.state.underlineLinks,accounts:this.state.accounts});case dh.UnknownAuthors:return Ae.createElement(aH,{key:"unknown-authors",authors:e.authors,onCommit:e.onCommit,onDismissed:n});case dh.ConfirmRepoRulesBypass:return Ae.createElement(lH,{key:"repo-rules-bypass-confirmation",repository:e.repository,branch:e.branch,onConfirm:e.onConfirm,onDismissed:n});case dh.TestIcons:return Ae.createElement(cH,{key:"octicons-preview",onDismissed:n});case dh.ConfirmRestart:return Ae.createElement(vL,{onDismissed:n});default:return ct(0,`Unknown popup type: ${e}`)}}getPullRequestState(){const{selectedState:e}=this.state;return null==e||e.type!==Je.Repository?null:e.state.pullRequestState}getWarnForcePushDialogOnBegin(e,t){return()=>{e(),t()}}onExitTutorialToHomeScreen=()=>{const e=this.getSelectedTutorialRepository();return!!e&&(this.props.dispatcher.pauseTutorial(e),!0)};onCreateTutorialRepository=e=>{this.props.dispatcher.createTutorialRepository(e)};onUpdateExistingUpstreamRemote=e=>{this.props.dispatcher.updateExistingUpstreamRemote(e)};onIgnoreExistingUpstreamRemote=e=>{this.props.dispatcher.ignoreExistingUpstreamRemote(e)};updateExistingLFSFilters=()=>{this.props.dispatcher.installGlobalLFSFilters(!0)};initializeLFS=e=>{this.props.dispatcher.installLFSHooks(e)};onCloneRepositoriesTabSelected=e=>{this.props.dispatcher.changeCloneRepositoriesTab(e)};onRefreshRepositories=e=>{this.props.dispatcher.refreshApiRepositories(e)};onShowIntegrationsPreferences=()=>{this.props.dispatcher.showPopup({type:dh.Preferences,initialSelectedTab:Fr.Integrations})};onBranchCreatedFromCommit=()=>{const e=this.repositoryViewRef.current;null!==e&&e.scrollCompareListToTop()};onOpenShellIgnoreWarning=e=>{this.props.dispatcher.openShell(e,!0)};onCheckForUpdates=()=>this.checkForUpdates(!1);onCheckForNonStaggeredUpdates=()=>this.checkForUpdates(!1,!0);showAcknowledgements=()=>{this.props.dispatcher.showPopup({type:dh.Acknowledgements})};showTermsAndConditions=()=>{this.props.dispatcher.showPopup({type:dh.TermsAndConditions})};renderPopups(){const e=this.allPopupContent();return Ae.createElement(Ue,null,e&&Ae.createElement(Qe,{classNames:"modal",timeout:uH},e))}renderDragElement(){return Ae.createElement("div",{id:"dragElement"},this.renderCurrentDragElement())}renderCurrentDragElement(){const{currentDragElement:e,emoji:t}=this.state;if(null===e)return null;const{gitHubRepository:n,commit:r,selectedCommits:i}=e;return e.type===vp.Commit?Ae.createElement(EO,{gitHubRepository:n,commit:r,selectedCommits:i,emoji:t,accounts:this.state.accounts}):ct(e.type,`Unknown drag element type: ${e}`)}renderZoomInfo(){return Ae.createElement(ku,{windowZoomFactor:this.state.windowZoomFactor})}renderFullScreenInfo(){return Ae.createElement(Au,{windowState:this.state.windowState})}onConfirmDiscardChangesChanged=e=>{this.props.dispatcher.setConfirmDiscardChangesSetting(e)};onConfirmDiscardChangesPermanentlyChanged=e=>{this.props.dispatcher.setConfirmDiscardChangesPermanentlySetting(e)};onRetryAction=e=>{this.props.dispatcher.performRetry(e)};showPopup=e=>{this.props.dispatcher.showPopup(e)};setBanner=e=>this.props.dispatcher.setBanner(e);getDesktopAppContentsClassNames=()=>{const{currentDragElement:e}=this.state,t=null!==e&&e.type===vp.Commit;return ri()({"commit-being-dragged":t})};renderApp(){return Ae.createElement("div",{id:"desktop-app-contents",className:this.getDesktopAppContentsClassNames()},this.renderToolbar(),this.renderBanner(),this.renderRepository(),this.renderPopups(),this.renderDragElement())}renderRepositoryList=()=>{const e=this.state.selectedState?this.state.selectedState.repository:null,t=this.state.selectedExternalEditor?this.state.selectedExternalEditor:void 0,{useCustomShell:n,selectedShell:r}=this.state,i=this.state.repositoryFilterText;return Ae.createElement(rA,{filterText:i,onFilterTextChanged:this.onRepositoryFilterTextChanged,selectedRepository:e,onSelectionChanged:this.onSelectionChanged,repositories:this.state.repositories,recentRepositories:this.state.recentRepositories,localRepositoryStateLookup:this.state.localRepositoryStateLookup,askForConfirmationOnRemoveRepository:this.state.askForConfirmationOnRepositoryRemoval,onRemoveRepository:this.removeRepository,onViewOnGitHub:this.viewOnGitHub,onOpenInShell:this.openInShell,onShowRepository:this.showRepository,onOpenInExternalEditor:this.openInExternalEditor,externalEditorLabel:t,shellLabel:n?void 0:r,dispatcher:this.props.dispatcher})};viewOnGitHub=e=>{if(!(e instanceof Zr))return;const t=Vr(e);t&&this.props.dispatcher.openInBrowser(t)};openInShell=e=>{e instanceof Zr&&this.props.dispatcher.openShell(e.path)};openFileInExternalEditor=e=>{this.props.dispatcher.openInExternalEditor(e)};openInExternalEditor=e=>{e instanceof Zr&&this.props.dispatcher.openInExternalEditor(e.path)};onOpenInExternalEditor=e=>{const n=this.state.selectedState?.repository;if(void 0===n)return;const r=t.join(n.path,e);this.props.dispatcher.openInExternalEditor(r)};showRepository=e=>{e instanceof Zr&&pt.showFolderContents(e.path)};onRepositoryDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:et.Repository}):this.props.dispatcher.closeFoldout(et.Repository)};onExitTutorial=()=>{1===this.state.repositories.length&&Xw(this.state.currentOnboardingTutorialStep)?this.props.dispatcher.showPopup({type:dh.ConfirmExitTutorial}):this.onRepositoryDropdownStateChanged("open")};renderRepositoryToolbarButton(){const e=this.state.selectedState,t=e?e.repository:null;let n,r;if(t){const e=t instanceof Zr?t.alias:null;n=xu(t),r=e??t.name}else this.state.repositories.length>0?(n=Wl,r="Select a repository"):(n=Wl,r="No repositories");const i=this.state.currentFoldout&&this.state.currentFoldout.type===et.Repository,s=i?"open":"closed",o=t&&!i?t.path:void 0,a=ry(this.state.sidebarWidth),l={position:"absolute",marginLeft:0,width:a,minWidth:a,height:"100%",top:0},c=null===this.state.currentPopup;return Ae.createElement(XM,{icon:n,title:r,description:"当前存储库",tooltip:o,foldoutStyle:l,onContextMenu:this.onRepositoryToolbarButtonContextMenu,onDropdownStateChanged:this.onRepositoryDropdownStateChanged,dropdownContentRenderer:this.renderRepositoryList,dropdownState:s,enableFocusTrap:c})}onRepositoryToolbarButtonContextMenu=()=>{const e=this.state.selectedState?.repository;if(void 0===e)return;const t=this.state.selectedExternalEditor??void 0;hh(vh({onRemoveRepository:this.removeRepository,onShowRepository:this.showRepository,onOpenInShell:this.openInShell,onOpenInExternalEditor:this.openInExternalEditor,askForConfirmationOnRemoveRepository:this.state.askForConfirmationOnRepositoryRemoval,externalEditorLabel:t,onChangeRepositoryAlias:e=>{this.props.dispatcher.showPopup({type:dh.ChangeRepositoryAlias,repository:e})},onRemoveRepositoryAlias:e=>{this.props.dispatcher.changeRepositoryAlias(e,null)},onViewOnGitHub:this.viewOnGitHub,repository:e,shellLabel:this.state.useCustomShell?void 0:this.state.selectedShell}))};renderPushPullToolbarButton(){const e=this.state.selectedState;if(!e||e.type!==Je.Repository)return null;const t=e.state,n=t.revertProgress;if(n)return Ae.createElement(nO,{progress:n});let r=t.remote?t.remote.name:null;const i=t.pushPullFetchProgress,{conflictState:s}=t.changesState,o=null!==s&&"rebase"===s.kind,{aheadBehind:a,branchesState:l}=t,{pullWithRebase:c,tip:u}=l;u.kind===Hr.Valid&&null!==u.branch.upstreamRemoteName&&(r=u.branch.upstreamRemoteName,u.branch.upstreamWithoutRemote!==u.branch.name&&(r=u.branch.upstream));const h=this.state.currentFoldout,p=null!==h&&h.type===et.PushPull,d=ay(l,a),m=null===this.state.currentPopup;return Ae.createElement(iP,{dispatcher:this.props.dispatcher,repository:e.repository,aheadBehind:t.aheadBehind,numTagsToPush:null!==t.tagsToPush?t.tagsToPush.length:0,remoteName:r,lastFetched:t.lastFetched,networkActionInProgress:t.isPushPullFetchInProgress,progress:i,tipState:u.kind,pullWithRebase:c,rebaseInProgress:o,forcePushBranchState:d,shouldNudge:this.state.currentOnboardingTutorialStep===Yw.PushBranch,isDropdownOpen:p,askForConfirmationOnForcePush:this.state.askForConfirmationOnForcePush,onDropdownStateChanged:this.onPushPullDropdownStateChanged,enableFocusTrap:m})}showCreateBranch=()=>{const e=this.state.selectedState;if(!e||e.type!==Je.Repository)return;if(e.state.branchesState.tip.kind===Hr.Unknown)return;const t=e.repository;return this.props.dispatcher.showPopup({type:dh.CreateBranch,repository:t})};openPullRequest=()=>{const e=this.state.selectedState;if(null==e||e.type!==Je.Repository)return;const t=e.state.branchesState.currentPullRequest,n=this.props.dispatcher;null==t?(n.createPullRequest(e.repository),n.incrementMetric("createPullRequestCount")):n.showPullRequest(e.repository)};startPullRequest=()=>{const e=this.state.selectedState;null!=e&&e.type===Je.Repository&&this.props.dispatcher.startPullRequest(e.repository)};openCreatePullRequestInBrowser=(e,t)=>{this.props.dispatcher.openCreatePullRequestInBrowser(e,t)};onPushPullDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:et.PushPull}):this.props.dispatcher.closeFoldout(et.PushPull)};onBranchDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:et.Branch}):this.props.dispatcher.closeFoldout(et.Branch)};renderBranchToolbarButton(){const e=this.state.selectedState;if(null==e||e.type!==Je.Repository)return null;const t=this.state.currentFoldout,n=null!==t&&t.type===et.Branch,r=e.repository,{branchesState:i}=e.state,s=null===this.state.currentPopup;return Ae.createElement(eO,{dispatcher:this.props.dispatcher,isOpen:n,onDropDownStateChanged:this.onBranchDropdownStateChanged,repository:r,repositoryState:e.state,selectedTab:this.state.selectedBranchesTab,pullRequests:i.openPullRequests,currentPullRequest:i.currentPullRequest,isLoadingPullRequests:i.isLoadingPullRequests,shouldNudge:this.state.currentOnboardingTutorialStep===Yw.CreateBranch,showCIStatusPopover:this.state.showCIStatusPopover,emoji:this.state.emoji,enableFocusTrap:s,underlineLinks:this.state.underlineLinks})}renderBanner(){if(this.inNoRepositoriesViewState())return null;let e=null;return null!==this.state.currentBanner?e=function(e,t,n){switch(e.type){case Vw.SuccessfulMerge:return Ae.createElement(zN,{ourBranch:e.ourBranch,theirBranch:e.theirBranch,onDismissed:n,key:"successful-merge"});case Vw.MergeConflictsFound:return Ae.createElement(VN,{dispatcher:t,ourBranch:e.ourBranch,popup:e.popup,onDismissed:n,key:"merge-conflicts"});case Vw.SuccessfulRebase:return Ae.createElement(KN,{targetBranch:e.targetBranch,baseBranch:e.baseBranch,onDismissed:n,key:"successful-rebase"});case Vw.RebaseConflictsFound:return Ae.createElement(jN,{dispatcher:t,targetBranch:e.targetBranch,onOpenDialog:e.onOpenDialog,onDismissed:n,key:"merge-conflicts"});case Vw.BranchAlreadyUpToDate:return Ae.createElement(YN,{ourBranch:e.ourBranch,theirBranch:e.theirBranch,onDismissed:n,key:"branch-already-up-to-date"});case Vw.SuccessfulCherryPick:return Ae.createElement(XN,{key:"successful-cherry-pick",targetBranchName:e.targetBranchName,countCherryPicked:e.count,onDismissed:n,onUndo:e.onUndo});case Vw.CherryPickConflictsFound:return Ae.createElement(QN,{targetBranchName:e.targetBranchName,onOpenConflictsDialog:e.onOpenConflictsDialog,onDismissed:n,key:"cherry-pick-conflicts"});case Vw.CherryPickUndone:return Ae.createElement(JN,{key:"cherry-pick-undone",targetBranchName:e.targetBranchName,countCherryPicked:e.countCherryPicked,onDismissed:n});case Vw.OpenThankYouCard:return Ae.createElement(eL,{key:"open-thank-you-card",emoji:e.emoji,onDismissed:n,onOpenCard:e.onOpenCard,onThrowCardAway:e.onThrowCardAway});case Vw.SuccessfulSquash:return Ae.createElement(tL,{key:"successful-squash",count:e.count,onDismissed:n,onUndo:e.onUndo});case Vw.SquashUndone:{const t=1===e.commitsCount?"commit":"commits";return Ae.createElement(GN,{key:"squash-undone",timeout:5e3,onDismissed:n},"Squash of ",e.commitsCount," ",t," undone.")}case Vw.SuccessfulReorder:{const t=1===e.count?"commit":"commits";return Ae.createElement(GN,{key:"successful-reorder",timeout:15e3,onDismissed:n,onUndo:e.onUndo},Ae.createElement("span",null,"Successfully reordered ",e.count," ",t,"."))}case Vw.ReorderUndone:{const t=1===e.commitsCount?"commit":"commits";return Ae.createElement(GN,{key:"reorder-undone",timeout:5e3,onDismissed:n},"Reorder of ",e.commitsCount," ",t," undone.")}case Vw.ConflictsFound:return Ae.createElement(nL,{operationDescription:e.operationDescription,onOpenConflictsDialog:e.onOpenConflictsDialog,onDismissed:n,key:"conflicts-found"});case Vw.OSVersionNoLongerSupported:return Ae.createElement(iL,{onDismissed:n});case Vw.AccessibilitySettingsBanner:return Ae.createElement(oL,{onOpenAccessibilitySettings:e.onOpenAccessibilitySettings,onDismissed:n});default:return ct(0,`Unknown popup type: ${e}`)}}(this.state.currentBanner,this.props.dispatcher,this.onBannerDismissed):(this.state.isUpdateAvailableBannerVisible||this.state.isUpdateShowcaseVisible)&&(e=this.renderUpdateBanner()),Ae.createElement("div",{role:"alert","aria-atomic":"false"},Ae.createElement(Ue,null,e&&Ae.createElement(Qe,{classNames:"banner",timeout:hH},e)))}renderUpdateBanner(){return Ae.createElement(qN,{dispatcher:this.props.dispatcher,newReleases:an.state.newReleases,isX64ToARM64ImmediateAutoUpdate:an.state.isX64ToARM64ImmediateAutoUpdate,onDismissed:this.onUpdateAvailableDismissed,isUpdateShowcaseVisible:this.state.isUpdateShowcaseVisible,emoji:this.state.emoji,key:"update-available"})}onBannerDismissed=()=>{this.props.dispatcher.clearBanner()};renderToolbar(){if(this.inNoRepositoriesViewState())return null;const e=ry(this.state.sidebarWidth);return Ae.createElement(zM,{id:"desktop-app-toolbar"},Ae.createElement("div",{className:"sidebar-section",style:{width:e}},this.renderRepositoryToolbarButton()),this.renderBranchToolbarButton(),this.renderPushPullToolbarButton())}renderRepository(){const e=this.state;if(this.inNoRepositoriesViewState())return Ae.createElement(CB,{dotComAccount:this.getDotComAccount(),enterpriseAccount:this.getEnterpriseAccount(),onCreate:this.showCreateRepository,onClone:this.showCloneRepo,onAdd:this.showAddLocalRepo,onCreateTutorialRepository:this.showCreateTutorialRepositoryPopup,onResumeTutorialRepository:this.onResumeTutorialRepository,tutorialPaused:this.isTutorialPaused(),apiRepositories:e.apiRepositories,onRefreshRepositories:this.onRefreshRepositories});const t=e.selectedState;if(!t)return Ae.createElement(dH,null);if(t.type===Je.Repository){const n=e.useCustomEditor?void 0:e.selectedExternalEditor??void 0;return Ae.createElement(uN,{ref:this.repositoryViewRef,key:t.repository.hash,repository:t.repository,state:t.state,dispatcher:this.props.dispatcher,emoji:e.emoji,sidebarWidth:e.sidebarWidth,commitSummaryWidth:e.commitSummaryWidth,stashedFilesWidth:e.stashedFilesWidth,issuesStore:this.props.issuesStore,gitHubUserStore:this.props.gitHubUserStore,onViewCommitOnGitHub:this.onViewCommitOnGitHub,imageDiffType:e.imageDiffType,hideWhitespaceInChangesDiff:e.hideWhitespaceInChangesDiff,hideWhitespaceInHistoryDiff:e.hideWhitespaceInHistoryDiff,showDiffCheckMarks:e.showDiffCheckMarks,showSideBySideDiff:e.showSideBySideDiff,focusCommitMessage:e.focusCommitMessage,askForConfirmationOnDiscardChanges:e.askForConfirmationOnDiscardChanges,askForConfirmationOnDiscardStash:e.askForConfirmationOnDiscardStash,askForConfirmationOnCheckoutCommit:e.askForConfirmationOnCheckoutCommit,accounts:e.accounts,isExternalEditorAvailable:e.useCustomEditor||null!==e.selectedExternalEditor,externalEditorLabel:n,resolvedExternalEditor:e.resolvedExternalEditor,onOpenInExternalEditor:this.onOpenInExternalEditor,appMenu:e.appMenuState[0],currentTutorialStep:e.currentOnboardingTutorialStep,onExitTutorial:this.onExitTutorial,isShowingModal:this.isShowingModal,isShowingFoldout:null!==this.state.currentFoldout,aheadBehindStore:this.props.aheadBehindStore,commitSpellcheckEnabled:this.state.commitSpellcheckEnabled,showCommitLengthWarning:this.state.showCommitLengthWarning,onCherryPick:this.startCherryPickWithoutBranch,pullRequestSuggestedNextAction:e.pullRequestSuggestedNextAction})}return t.type===Je.CloningRepository?Ae.createElement(CN,{repository:t.repository,progress:t.progress}):t.type===Je.MissingRepository?Ae.createElement(AL,{repository:t.repository,dispatcher:this.props.dispatcher}):ct(0,`Unknown state: ${t}`)}renderWelcomeFlow(){return Ae.createElement(ZN,{dispatcher:this.props.dispatcher,accounts:this.state.accounts,signInState:this.state.signInState})}render(){if(this.loading)return null;const e=ri()(this.state.appIsFocused?"focused":"blurred",{"underline-links":this.state.underlineLinks}),t=this.state.showWelcomeFlow?Dp.Light:this.state.currentTheme,n=this.state.selectedTabSize;return Ae.createElement("div",{id:"desktop-app-chrome",className:e,style:{tabSize:n}},Ae.createElement(BB,{theme:t}),this.renderTitlebar(),this.state.showWelcomeFlow?this.renderWelcomeFlow():this.renderApp(),this.renderZoomInfo(),this.renderFullScreenInfo())}onRepositoryFilterTextChanged=e=>{this.props.dispatcher.setRepositoryFilterText(e)};onSelectionChanged=e=>{this.props.dispatcher.selectRepository(e),this.props.dispatcher.closeFoldout(et.Repository)};onViewCommitOnGitHub=async(e,t)=>{const n=this.getRepository();if(!n||n instanceof ti||!n.gitHubRepository)return;const r=YF(n.gitHubRepository,e,t);null!==r&&this.props.dispatcher.openInBrowser(r)};onBranchDeleted=e=>{this.props.dispatcher.executeCompare(e,{kind:rt.History})};inNoRepositoriesViewState(){return 0===this.state.repositories.length||this.isTutorialPaused()}isTutorialPaused(){return this.state.currentOnboardingTutorialStep===Yw.Paused}startCherryPickWithoutBranch=(e,t)=>{const n=this.props.repositoryStateManager.get(e),{tip:r}=n.branchesState;let i=null;if(r.kind!==Hr.Valid)throw new Error("Tip is not in a valid state, which is required to start the cherry-pick flow");i=r.branch,this.props.dispatcher.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:i,branchCreated:!1,commits:t},null,t,r.branch.tip.sha);const s=Sb(n);this.props.dispatcher.setMultiCommitOperationStep(e,s),this.props.dispatcher.incrementMetric("cherryPickViaContextMenuCount"),this.showPopup({type:dh.MultiCommitOperation,repository:e})};async checkIfThankYouIsInOrder(){const e=this.getDotComAccount();if(null===e)return;const{lastThankYou:t}=this.state,{login:n}=e;if(function(e,t,n){if(void 0===e)return!1;const{version:r,checkedUsers:i}=e;return i.includes(t)&&"3.4.3-linux1"===r}(t,n))return;const r=void 0!==t&&t.checkedUsers.includes(n),i=await async function(e,t){const n=await async function(e){let t=await Lt(250);e&&(t=t.slice(0,1));const n=t.map(Nt),r=new Map;return n.forEach((e=>{if(0===e.thankYous.length)return;const t=/\.\sThanks\s@.+!/i;e.thankYous.forEach((e=>{const n=t.exec(e.message);if(null===n)return;const i=n[0].slice(10,-1);let s=r.get(i);void 0===s?s=[e]:s.push(e),r.set(i,s)}))})),r}(e),r=n.get(t);return void 0!==r?r:null}(r,n);if(null===i)return void sF(this.props.dispatcher,t,n,"3.4.3-linux1");const s=r?"3.4.3-linux1":null,o={type:Vw.OpenThankYouCard,emoji:this.state.emoji,onOpenCard:()=>this.openThankYouCard(i,s),onThrowCardAway:()=>{sF(this.props.dispatcher,t,n,"3.4.3-linux1")}};this.setBanner(o)}openThankYouCard=(e,t=null)=>{const n=this.getDotComAccount();if(null===n)return;const{friendlyName:r}=n;this.props.dispatcher.showPopup({type:dh.ThankYou,userContributions:e,friendlyName:r,latestVersion:t})};onDragEnd=e=>{this.props.dispatcher.closeFoldout(et.Branch),void 0===e&&this.props.dispatcher.incrementMetric("dragStartedAndCanceledCount")}}function dH(){return Ae.createElement("div",{className:"panel blankslate"},"No repository selected")}function mH(e){const{login:t,email:n,avatarURL:r,name:i}=e;return{login:t,email:n,avatarURL:r,name:i}}function fH(e){return Object.keys(localStorage).filter((e=>/^IssuesStore\/\d+\/lastFetch$/.test(e))).forEach((e=>localStorage.removeItem(e))),e.table("issues").clear()}new Set(["LOCAL_GIT_DIRECTORY"]);const gH=new Set(["button","a","input","textarea","label"].map((e=>e.toUpperCase()))),yH=new Set(["button","option","menuitem","tab","radio"]);function wH(e,t){if(t.has(e))return e;for(const n of t.keys())if(pn(n,e))return n;return e}var bH=n(9093),vH=n.n(bH),CH=n(7952),SH=n.n(CH);function EH(e,t){const{endpoint:n,owner:r,name:i}=e;return function(e,t,n,r){return`${e}/repos/${t}/${n}/commits/${r}`}(n,r.login,i,t)}function kH(e){return Date.now()-e.fetchedAt.valueOf()>6e4}function RH(e,t,n){return`${e.path}:${t}:${n}`}const TH=new class{dispatcher;setDispatcher(e){this.dispatcher=e}promptAddingSSHHost(e,t,n,r){return new Promise((i=>{this.dispatcher.showPopup({type:dh.AddSSHHost,host:e,ip:t,keyType:n,fingerprint:r,onSubmit:e=>i(e)})}))}promptSSHKeyPassphrase(e){return new Promise((t=>{this.dispatcher.showPopup({type:dh.SSHKeyPassphrase,keyPath:e,onSubmit:(e,n)=>t({secret:e,storeSecret:n})})}))}promptSSHUserPassword(e){return new Promise((t=>{this.dispatcher.showPopup({type:dh.SSHUserPassword,username:e,onSubmit:(e,n)=>t({secret:e,storeSecret:n})})}))}promptForGenericGitAuthentication(e,t){return new Promise((n=>{this.dispatcher.showPopup({type:dh.GenericGitAuthentication,remoteUrl:e,username:t,onSubmit:(t,r)=>n({login:t,token:r,endpoint:e}),onDismiss:()=>n(void 0)})}))}promptForGitHubSignIn(e){return new Promise((async t=>{const n=e=>{t("success"===e.kind?e.account:void 0),this.dispatcher.closePopup(dh.SignIn)},{hostname:r,origin:i}=new URL(e);"github.com"===r?this.dispatcher.beginDotComSignIn(n):(this.dispatcher.beginEnterpriseSignIn(n),await this.dispatcher.setSignInEndpoint(i)),this.dispatcher.showPopup({type:dh.SignIn,isCredentialHelperSignIn:!0,credentialHelperUrl:e})})).catch((e=>{log.error("Could not prompt for GitHub sign in",e)}))}};function AH(e,t){return`${e}:${t}`}function xH(e){const[t,n]=e.p.split(".");return{userId:e.u,presenceKey:AH(e.u,t),connectionCount:Number(n),metadata:e.m||[]}}function DH(e){return e.startsWith("presence-")}class _H{constructor(){this.presenceItems=new Map}shouldUsePresenceItem(e){const t=this.presenceItems.get(e.presenceKey);return!t||t.connectionCount<=e.connectionCount}addPresenceItem(e){this.shouldUsePresenceItem(e)&&this.presenceItems.set(e.presenceKey,e)}removePresenceItem(e){this.shouldUsePresenceItem(e)&&this.presenceItems.delete(e.presenceKey)}replacePresenceItems(e){this.presenceItems.clear();for(const t of e)this.addPresenceItem(t)}getPresenceItems(){return Array.from(this.presenceItems.values())}}class MH{constructor(){this.presenceChannels=new Map}getPresenceChannel(e){const t=this.presenceChannels.get(e)||new _H;return this.presenceChannels.set(e,t),t}handleMessage(e,t){const n=this.getPresenceChannel(e);switch(t.e){case"pf":n.replacePresenceItems(t.d.map(xH));break;case"pa":n.addPresenceItem(xH(t.d));break;case"pr":n.removePresenceItem(xH(t.d))}return this.getChannelItems(e)}getChannelItems(e){return this.getPresenceChannel(e).getPresenceItems()}clearChannel(e){this.presenceChannels.delete(e)}}const PH="_i";function IH(e){return Object.assign(Object.assign({},e),{isLocal:!0})}class OH{constructor(){this.subscriberMetadata=new Map}setMetadata(e,t){this.subscriberMetadata.set(e,t)}removeSubscribers(e){let t=!1;for(const n of e)t=this.subscriberMetadata.delete(n)||t;return t}getMetadata(e){if(!e){const e=[];let t;for(const n of this.subscriberMetadata.values())for(const r of n)if(PH in r){const e=Boolean(r._i);t=void 0===t?e:e&&t}else e.push(r);return void 0!==t&&e.push({[PH]:t?1:0}),e}const t=[],{subscriber:n,markAllAsLocal:r}=e;for(const[e,i]of this.subscriberMetadata){const s=r||e===n?i.map(IH):i;t.push(...s)}return t}hasSubscribers(){return this.subscriberMetadata.size>0}}class NH{constructor(){this.metadataByChannel=new Map}setMetadata({subscriber:e,channelName:t,metadata:n}){let r=this.metadataByChannel.get(t);r||(r=new OH,this.metadataByChannel.set(t,r)),r.setMetadata(e,n)}removeSubscribers(e){const t=new Set;for(const[n,r]of this.metadataByChannel)r.removeSubscribers(e)&&t.add(n),r.hasSubscribers()||this.metadataByChannel.delete(n);return t}getChannelMetadata(e,t){const n=this.metadataByChannel.get(e);return(null==n?void 0:n.getMetadata(t))||[]}}async function LH(e,t){let n;const r=new Promise(((t,r)=>{n=self.setTimeout((()=>r(new Error("timeout"))),e)}));if(!t)return r;try{await Promise.race([r,FH(t)])}catch(e){throw self.clearTimeout(n),e}}async function BH(e,t){let n;const r=new Promise((t=>{n=self.setTimeout(t,e)}));if(!t)return r;try{await Promise.race([r,FH(t)])}catch(e){throw self.clearTimeout(n),e}}function FH(e){return new Promise(((t,n)=>{const r=new Error("aborted");r.name="AbortError",e.aborted?n(r):e.addEventListener("abort",(()=>n(r)))}))}function HH(e,t){return async function(e,t,n=1/0,r){const i=r?FH(r):null;for(let o=0;o<t;o++)try{const t=i?Promise.race([e(),i]):e();return await t}catch(e){if("AbortError"===e.name)throw e;if(o===t-1)throw e;const i=1e3*Math.pow(2,o),a=(s=.1*i,Math.floor(Math.random()*Math.floor(s)));await BH(Math.min(n,i+a),r)}var s;throw new Error("retry failed")}((()=>async function(e,t,n){const r=new WebSocket(e),i=function(e){return new Promise(((t,n)=>{e.readyState===WebSocket.OPEN?t(e):(e.onerror=()=>{e.onerror=null,e.onopen=null,n(new Error("connect failed"))},e.onopen=()=>{e.onerror=null,e.onopen=null,t(e)})}))}(r);try{return await Promise.race([i,LH(t,n)]),r}catch(e){throw async function(e){try{(await e).close()}catch(e){}}(i),e}}(e,t.timeout,t.signal)),t.attempts,t.maxDelay,t.signal)}class UH{constructor(e,t,n){this.socket=null,this.opening=null,this.url=e,this.delegate=t,this.policy=n}async open(){if(this.opening||this.socket)return;this.opening=new AbortController;const e=Object.assign(Object.assign({},this.policy),{signal:this.opening.signal});try{this.socket=await HH(this.url,e)}catch(e){return void this.delegate.socketDidFinish(this)}finally{this.opening=null}this.socket.onclose=e=>{var t;this.socket=null,this.delegate.socketDidClose(this,e.code,e.reason),(this.delegate.socketShouldRetry?!this.delegate.socketShouldRetry(this,e.code):function(e){return e===ZH||e===$H}(e.code))?this.delegate.socketDidFinish(this):setTimeout((()=>this.open()),(100,t=100+(this.delegate.reconnectWindow||50),Math.random()*(t-100)+100))},this.socket.onmessage=e=>{this.delegate.socketDidReceiveMessage(this,e.data)},this.delegate.socketDidOpen(this)}close(e,t){this.opening?(this.opening.abort(),this.opening=null):this.socket&&(this.socket.onclose=null,this.socket.close(e,t),this.socket=null,this.delegate.socketDidClose(this,e,t),this.delegate.socketDidFinish(this))}send(e){this.socket&&this.socket.send(e)}isOpen(){return!!this.socket}}const ZH=1008,$H=1011;class WH{constructor(e){if(this.map=new Map,e)for(const[t,n]of e)this.set(t,n)}get(e){return this.map.get(e)||new Set}set(e,t){let n=this.map.get(e);return n||(n=new Set,this.map.set(e,n)),n.add(t),this}has(e){return this.map.has(e)}delete(e,t){const n=this.map.get(e);if(!n)return!1;if(!t)return this.map.delete(e);const r=n.delete(t);return n.size||this.map.delete(e),r}drain(e){const t=[];for(const n of this.keys())this.delete(n,e)&&!this.has(n)&&t.push(n);return t}keys(){return this.map.keys()}values(){return this.map.values()}entries(){return this.map.entries()}[Symbol.iterator](){return this.entries()}clear(){this.map.clear()}get size(){return this.map.size}}class qH{constructor(){this.subscriptions=new WH,this.signatures=new Map}add(...e){const t=[];for(const{subscriber:n,topic:r}of e)this.subscriptions.has(r.name)||(t.push(r),this.signatures.set(r.name,r)),this.subscriptions.set(r.name,n);return t}delete(...e){const t=[];for(const{subscriber:n,topic:r}of e)this.subscriptions.delete(r.name,n)&&!this.subscriptions.has(r.name)&&(t.push(r),this.signatures.delete(r.name));return t}drain(...e){const t=[];for(const n of e)for(const e of this.subscriptions.drain(n)){const n=this.signatures.get(e);this.signatures.delete(e),t.push(n)}return t}topics(){return this.signatures.values()}topic(e){return this.signatures.get(e)||null}subscribers(e){return this.subscriptions.get(e).values()}}function*VH(e,t){for(let n=0;n<e.length;n+=t)yield e.slice(n,n+t)}function GH(e){return new Promise(((t,n)=>{const r=new Error("aborted");r.name="AbortError",e.aborted?n(r):e.addEventListener("abort",(()=>n(r)))}))}async function zH(e,t){let n;const r=new Promise((t=>{n=self.setTimeout(t,e)}));if(!t)return r;try{await Promise.race([r,GH(t)])}catch(e){throw self.clearTimeout(n),e}}var jH;!function(e){e.Deploy="Alive Redeploy",e.Reconnect="Alive Reconnect"}(jH||(jH={}));class KH{constructor(e,t,n,r){this.url=e,this.getUrl=t,this.inSharedWorker=n,this.notify=r,this.subscriptions=new qH,this.state="online",this.retrying=null,this.connectionCount=0,this.presence=new MH,this.presenceMetadata=new NH,this.intentionallyDisconnected=!1,this.lastCameOnline=0,this.userId=function(e){const t=e.match(/\/u\/(\d+)\/ws/);return t?+t[1]:0}(e),this.presenceId=`${Math.round(Math.random()*(Math.pow(2,31)-1))}_${Math.round(Date.now()/1e3)}`,this.presenceKey=AH(this.userId,this.presenceId),this.socket=this.connect()}subscribe(e){const t=this.subscriptions.add(...e);this.sendSubscribe(t);for(const t of e){const e=t.topic.name;DH(e)&&this.notifyCachedPresence(t.subscriber,e)}}unsubscribe(e){const t=this.subscriptions.delete(...e);this.sendUnsubscribe(t)}unsubscribeAll(...e){const t=this.subscriptions.drain(...e);this.sendUnsubscribe(t);const n=this.presenceMetadata.removeSubscribers(e);this.sendPresenceMetadataUpdate(n)}requestPresence(e,t){for(const n of t)this.notifyCachedPresence(e,n)}notifyCachedPresence(e,t){const n=this.presence.getChannelItems(t);0!==n.length&&this.notifyPresenceChannel(t,n)}updatePresenceMetadata(e){const t=new Set;for(const n of e)this.presenceMetadata.setMetadata(n),t.add(n.channelName);this.sendPresenceMetadataUpdate(t)}sendPresenceMetadataUpdate(e){if(!e.size)return;const t=[];for(const n of e){const e=this.subscriptions.topic(n);e&&t.push(e)}this.sendSubscribe(t)}online(){var e;this.lastCameOnline=Date.now(),this.state="online",null===(e=this.retrying)||void 0===e||e.abort(),this.socket.open()}offline(){var e;this.state="offline",null===(e=this.retrying)||void 0===e||e.abort(),this.socket.close()}shutdown(){this.inSharedWorker&&self.close()}get reconnectWindow(){const e=Date.now()-this.lastCameOnline<6e4;return 0===this.connectionCount||this.intentionallyDisconnected||e?0:1e4}socketDidOpen(){this.intentionallyDisconnected=!1,this.connectionCount++,this.socket.url=this.getUrlWithPresenceId(),this.sendSubscribe(this.subscriptions.topics())}socketDidClose(e,t,n){if(void 0!==this.redeployEarlyReconnectTimeout&&clearTimeout(this.redeployEarlyReconnectTimeout),"Alive Reconnect"===n)this.intentionallyDisconnected=!0;else if("Alive Redeploy"===n){this.intentionallyDisconnected=!0;const e=60*(3+22*Math.random())*1e3;this.redeployEarlyReconnectTimeout=setTimeout((()=>{this.intentionallyDisconnected=!0,this.socket.close(1e3,"Alive Redeploy Early Client Reconnect")}),e)}}socketDidFinish(){"offline"!==this.state&&this.reconnect()}socketDidReceiveMessage(e,t){const n=JSON.parse(t);switch(n.e){case"ack":this.handleAck(n);break;case"msg":this.handleMessage(n)}}handleAck(e){for(const t of this.subscriptions.topics())t.offset=e.off}handleMessage(e){const t=e.ch,n=this.subscriptions.topic(t);if(n)if(n.offset=e.off,"e"in e.data){const n=this.presence.handleMessage(t,e.data);this.notifyPresenceChannel(t,n)}else e.data.wait||(e.data.wait=0),this.notify(this.subscriptions.subscribers(t),{channel:t,type:"message",data:e.data})}notifyPresenceChannel(e,t){var n,r;const i=new Map;for(const e of t){const{userId:t,metadata:n,presenceKey:r}=e,s=i.get(t)||{userId:t,isOwnUser:t===this.userId,metadata:[]};if(r!==this.presenceKey){for(const e of n)PH in e?!1!==s.isIdle&&(s.isIdle=Boolean(e._i)):s.metadata.push(e);i.set(t,s)}}for(const t of this.subscriptions.subscribers(e)){const s=this.userId,o=Array.from(i.values()).filter((e=>e.userId!==s)),a=null!==(r=null===(n=i.get(this.userId))||void 0===n?void 0:n.metadata)&&void 0!==r?r:[],l=this.presenceMetadata.getChannelMetadata(e,{subscriber:t,markAllAsLocal:!this.inSharedWorker});this.notify([t],{channel:e,type:"presence",data:[{userId:s,isOwnUser:!0,metadata:[...a,...l]},...o]})}}async reconnect(){if(!this.retrying)try{this.retrying=new AbortController;const e=await async function(e,t,n=1/0,r){const i=r?GH(r):null;for(let o=0;o<t;o++)try{const t=i?Promise.race([e(),i]):e();return await t}catch(e){if("AbortError"===e.name)throw e;if(o===t-1)throw e;const i=1e3*Math.pow(2,o),a=(s=.1*i,Math.floor(Math.random()*Math.floor(s)));await zH(Math.min(n,i+a),r)}var s;throw new Error("retry failed")}(this.getUrl,1/0,6e4,this.retrying.signal);e?(this.url=e,this.socket=this.connect()):this.shutdown()}catch(e){if("AbortError"!==e.name)throw e}finally{this.retrying=null}}getUrlWithPresenceId(){const e=new URL(this.url,self.location.origin);return e.searchParams.set("shared",this.inSharedWorker.toString()),e.searchParams.set("p",`${this.presenceId}.${this.connectionCount}`),e.toString()}connect(){const e=new UH(this.getUrlWithPresenceId(),this,{timeout:4e3,attempts:7});return e.open(),e}sendSubscribe(e){const t=Array.from(e);for(const e of VH(t,25)){const t={};for(const n of e)DH(n.name)?t[n.signed]=JSON.stringify(this.presenceMetadata.getChannelMetadata(n.name)):t[n.signed]=n.offset;this.socket.send(JSON.stringify({subscribe:t}))}}sendUnsubscribe(e){const t=Array.from(e,(e=>e.signed));for(const e of VH(t,25))this.socket.send(JSON.stringify({unsubscribe:e}));for(const t of e)DH(t.name)&&this.presence.clearChannel(t.name)}}function YH(e,t){return t.find((t=>pn(t,e)))}const XH=od("SSH key passphrases");async function QH(e){return((e,t)=>new Promise(((t,n)=>{const r=(0,vn.createHash)("sha256");r.on("finish",(()=>t(r.digest("hex")))),r.on("error",n),(0,i.createReadStream)(e).on("error",n).pipe(r)})))(e)}const JH=od("SSH user password");function eU(e){const t=new URL(e);return t.username="",t.password="",t.toString()}const tU=Tr(((e,t,n)=>((e,t)=>hd.getItem(Bp(e),t))(t,n)));async function nU(e,t){const n=await e.getAll(),r=new URL(t);return n.find((e=>new URL(ar(e.endpoint)).origin===r.origin))}async function rU(e,t){const n=new URL(t),r=eU(t),i=""===n.username?function(e){const t=pd(e);return localStorage.getItem(t)}(r):n.username;if(!i)return;const s=await tU(e,r,i);if(s)return{login:i,endpoint:r,token:s};log.warn(`credential: generic password for ${t} missing`)}const iU=e=>{const t=new Map;for(const[,n,r]of e.matchAll(/^(.*?)=(.*)$/gm))if(n.endsWith("[]")){let e,i=0;do{e=`${n.slice(0,-2)}[${i}]`,i++}while(t.has(e));t.set(e,r)}else t.set(n,r);return t},sU=e=>[...e].map((([e,t])=>`${e.replace(/\[\d+\]$/,"[]")}=${t}\n`)).join(""),oU=(e,t,n,r={})=>Gp.GitProcess.exec(["-c","credential.helper=","-c","credential.helper=manager","credential",e],n,{stdin:sU(t),env:{GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"",TERM:"dumb",...r}}).then((({exitCode:e,stderr:t,stdout:n})=>{if(0!==e)throw new Error(t);return iU(n)})),aU=oU.bind(null,"fill"),lU=oU.bind(null,"approve"),cU=oU.bind(null,"reject"),uU=e=>log.info(`credential-helper: ${e}`),hU=e=>log.debug(`credential-helper: ${e}`),pU=(e,t)=>t&&new Map(e).set("username",t.login).set("password",t.token);async function dU(e,t,n){const r=await async function(e,t){const n=`${kd(e)}`,r=await nU(t,n);return r&&uU(`found GitHub credential for ${n} in store`),pU(e,r)}(e,t);if(r)return r;const i=await mU(e,t),s=await t.getAll(),o=s.some((e=>Mn(e.endpoint))),a=s.some((e=>!Mn(e.endpoint)));if("github.com"===i&&!o||"enterprise"===i&&!a){if(Ed(n))return void hU("background task environment, skipping prompt");const t=`${kd(e)}`,r=await TH.promptForGitHubSignIn(t);return r||bd(n,t),pU(e,r)}return"generic"===i?mC()?async function(e,t){const n=Sd(t),r=await aU(e,n,gU(t));return r&&uU(`found credential for ${kd(r)} in external helper`),r}(e,n):async function(e,t){const n=`${kd(e)}`,r=await rU(t,n);return r?(uU(`found generic credential for ${n}`),pU(e,r)):Ed(t)?void hU("background task environment, skipping prompt"):async function(e,t){const n=new URL(t),r=""===n.username?void 0:n.username,i=await TH.promptForGenericGitAuthentication(t,r);return uU(`prompt for ${t}: ${i?"completed":"cancelled"}`),pU(e,i)}(e,n)}(e,n):void 0}const mU=async(e,t)=>{const n=`${kd(e)}`;if((e=>{const{hostname:t}=new URL(e);return"gist.github.com"===t||"gist.ghe.io"===t})(n))return"generic";if(Mn(n))return"github.com";if(Pn(n))return"ghe.com";if([...e.entries()].filter((([e])=>e.startsWith("wwwauth["))).some((([,e])=>e.includes('realm="GitHub"'))))return"enterprise";const r=await nU(t,n);return r?Mn(r.endpoint)?"github.com":"enterprise":await async function(e){const{hostname:t}=new window.URL(e),n="github.com"===t||"api.github.com"===t?cr():lr(e);if(Mn(n)||Pn(n))return!0;if((e=>{if(pr.has(e))return!0;for(const t of pr)if(e.endsWith(`.${t}`))return!0;return!1})(t))return!1;if(/(^|\.)(bitbucket|gitlab)\./.test(t))return!1;if(null!==On(n))return!0;const r=new AbortController,i=setTimeout((()=>r.abort()),2e3);try{const e=await fetch(`${n}/meta`,{headers:{"user-agent":"GitHubDesktop/3.4.3-linux1 (Windows)"},signal:r.signal,credentials:"omit",method:"HEAD"}).finally((()=>clearTimeout(i)));return hr(n,e),e.headers.has("x-github-request-id")}catch(e){return void log.debug(`isGitHubHost: failed with endpoint ${n}`,e)}}(n)?"enterprise":"generic"};const fU=(e,t)=>{const n=Sd(t);return lU(e,n,gU(t))};function gU(e){const t=Ed(e);return{...process.env.GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION?{GCM_GUI_SOFTWARE_RENDERING:"1"}:{},GCM_INTERACTIVE:t?"0":"1"}}(async function(){const e=localStorage.getItem(mT);if(null!==e){try{await fe(e),localStorage.removeItem(mT)}catch(e){log.error("Error migrating existing GUID",e)}fT=e}})(),function(e){return"browser"===e.type&&_r(),!1}(process)&&async function(){}(),function(){s.install({environment:"node",handleUncaughtExceptions:!1,retrieveSourceMap:l});const e=Error;u=e.prepareStackTrace,e.prepareStackTrace=h}(),process.env.LOCAL_GIT_DIRECTORY=t.resolve(__dirname,"git"),delete process.env.GIT_EXEC_PATH;const yU=performance.now();n(3822);let wU=null;const bU=(e,t={},n)=>{e=p(e),console.error("Uncaught exception",e);{const r={osVersion:Ar(),...t};try{wU&&(null!==wU.currentBanner&&(r.currentBanner=wU.currentBanner.type),null!==wU.currentPopup&&(r.currentPopup=`${wU.currentPopup.type}`),null!==wU.selectedState&&(r.selectedState=`${wU.selectedState.type}`,wU.selectedState.type===Je.Repository&&(r.selectedRepositorySection=`${wU.selectedState.state.selectedSection}`)),null!==wU.currentFoldout&&(r.currentFoldout=`${wU.currentFoldout.type}`),wU.showWelcomeFlow&&(r.inWelcomeFlow="true"),1!==wU.windowZoomFactor&&(r.windowZoomFactor=`${wU.windowZoomFactor}`),wU.errorCount>0&&(r.activeAppErrors=`${wU.errorCount}`),r.repositoryCount=`${wU.repositories.length}`,r.windowState=wU.windowState??"Unknown",r.accounts=`${wU.accounts.length}`,r.automaticallySwitchTheme=`${wU.selectedTheme===Dp.System&&!0}`)}catch(e){}!function(e,t,n){ue(le(e),t,n)}(e,r,n??!1)}};process.once("uncaughtException",(e=>{bU(e),function(e){ce(le(e))}(e)})),process.on("send-non-fatal-exception",((e,t)=>{bU(e,t,!0)})),window.addEventListener("unhandledrejection",(e=>{Yt()&&e.reason instanceof Error&&FT("unhandledRejection",e.reason)}));const vU=new class extends Fp{database;queryCache=null;pruneQueryCacheTimeoutId=null;constructor(e){super(),this.database=e}async getByLogin(e,t){const n=ir.fromAccount(e),r=await n.fetchUser(t).catch((e=>null));if(!r||"User"!==r.type)return null;const i=null!==r.email&&r.email.length>0?r.email:mb(r.id,t,e.endpoint);return{avatarURL:r.avatar_url,email:i,name:r.name||r.login,login:r.login}}async updateMentionables(e,t){const n=ir.fromAccount(t),r=await this.database.getMentionableCacheEntry(e.dbID);if(void 0!==r&&Date.now()-r.lastUpdated<6e5)return;const i=await n.fetchMentionables(e.owner.login,e.name,r?.eTag);if(null===i)return void await this.database.touchMentionableCacheEntry(e.dbID,r?.eTag);const{endpoint:s}=t,o=i.users.map((e=>{const{name:t,login:n,avatar_url:r}=e;return{name:t,login:n,email:e.email||db(n,s),avatarURL:r}}));await this.database.updateMentionablesForRepository(e.dbID,o,i.etag),this.queryCache?.repository.dbID===e.dbID&&(this.queryCache=null,this.clearCachePruneTimeout())}async getMentionableUsers(e){return this.database.getAllMentionablesForRepository(e.dbID)}async getMentionableUsersMatching(e,t,n=25){const r=this.queryCache?.repository.dbID===e.dbID?this.queryCache.users:await this.getMentionableUsers(e);this.setQueryCache(e,r);const i=[],s=t.toLowerCase();for(const e of r){const t=`${e.login} ${e.name}`.trim().toLowerCase().indexOf(s);t>=0&&i.push({user:e,ix:t})}return i.sort(((e,t)=>gr(e.ix,t.ix)||gr(e.user.login,t.user.login))).slice(0,n).map((e=>e.user))}setQueryCache(e,t){this.clearCachePruneTimeout(),this.queryCache={repository:e,users:t},this.pruneQueryCacheTimeoutId=window.setTimeout((()=>{this.pruneQueryCacheTimeoutId=null,this.queryCache=null}),6e4)}clearCachePruneTimeout(){null!==this.pruneQueryCacheTimeoutId&&(clearTimeout(this.pruneQueryCacheTimeoutId),this.pruneQueryCacheTimeoutId=null)}}(new class extends VR{constructor(e,t){super(e,t),this.conditionalVersion(1,{users:"++id, &[endpoint+email]"}),this.conditionalVersion(2,{users:"++id, [endpoint+email], [endpoint+login]",mentionables:"++id, repositoryID, &[userID+repositoryID]"}),this.conditionalVersion(3,{mentionables:null,users:null}),this.conditionalVersion(4,{mentionables:"&[gitHubRepositoryID+login], gitHubRepositoryID"}),this.conditionalVersion(5,{mentionableCache:"gitHubRepositoryID"})}updateMentionablesForRepository(e,t,n){return this.transaction("rw",this.mentionables,this.mentionableCache,(async()=>{await this.mentionables.where("gitHubRepositoryID").equals(e).delete(),await this.touchMentionableCacheEntry(e,n),await this.mentionables.bulkAdd(t.map((t=>({...t,gitHubRepositoryID:e}))))}))}async getAllMentionablesForRepository(e){return(await this.mentionables.where("gitHubRepositoryID").equals(e).toArray()).map(mH)}getMentionableCacheEntry(e){return this.mentionableCache.get(e)}touchMentionableCacheEntry(e,t){const n={gitHubRepositoryID:e,lastUpdated:Date.now(),eTag:t};return this.mentionableCache.put(n)}}("GitHubUserDatabase")),CU=new class extends Fp{_repositories=new Array;stateByID=new Map;async clone(e,t,n){const r=new ti(t,e);this._repositories.push(r);const i=`Cloning into ${t}`;this.stateByID.set(r.id,{kind:"clone",title:i,value:0}),this.emitUpdate();let s=!0;try{await async function(e,t,n,r){const i={...await Uf(e),GIT_CLONE_PROTECTION_ACTIVE:"false"},s=["-c",`init.defaultBranch=${n.defaultBranch??await bg()}`,"clone","--recursive"];let o={env:i};if(r){s.push("--progress");const e=`Cloning into ${t}`,n="clone";o=await pg({...o,trackLFSProgress:!0},new Yf,(t=>{const i="progress"===t.kind?t.details.text:t.text,s=t.percent;r({kind:n,title:e,description:i,value:s})})),r({kind:n,title:e,value:0})}n.branch&&s.push("-b",n.branch),s.push("--",e,t),await _d(s,__dirname,"clone",o)}(e,t,n,(e=>{this.stateByID.set(r.id,e),this.emitUpdate()}))}catch(i){s=!1;const o={type:mt.Clone,name:r.name,url:e,path:t,options:n};i=new gt(i,{retryAction:o,repository:r}),this.emitError(i)}return this.remove(r),s}get repositories(){return Array.from(this._repositories)}getRepositoryState(e){return this.stateByID.get(e.id)||null}remove(e){this.stateByID.delete(e.id);const t=this._repositories.findIndex((t=>t.id===e.id));t>-1&&this._repositories.splice(t,1),this.emitUpdate()}},SU=new class{db;queryCache=null;pruneQueryCacheTimeoutId=null;constructor(e){this.db=e}async getLatestUpdatedAt(e){const t=this.db,n=await t.issues.where("[gitHubRepositoryID+updated_at]").between([e.dbID],[e.dbID+1],!0,!1).last();if(!n||!n.updated_at)return null;const r=new Date(n.updated_at);return isNaN(r.getTime())?null:r}async refreshIssues(e,t){const n=ir.fromAccount(t),r=await this.getLatestUpdatedAt(e),i=r?"all":"open",s=await n.fetchIssues(e.owner.login,e.name,i,r);this.storeIssues(s,e)}async storeIssues(e,t){const n=e.filter((e=>"closed"===e.state)),r=e.filter((e=>"open"===e.state)).map((e=>({gitHubRepositoryID:t.dbID,number:e.number,title:e.title,updated_at:e.updated_at}))),i=this.db;function s(e,t){return i.issues.where("[gitHubRepositoryID+number]").equals([e,t]).limit(1).first()}await this.db.transaction("rw",this.db.issues,(async()=>{for(const e of n){const n=await s(t.dbID,e.number);n&&await this.db.issues.delete(n.id)}for(const e of r){const n=await s(t.dbID,e.number);n?await i.issues.update(n.id,e):await i.issues.add(e)}})),this.queryCache?.repository.dbID===t.dbID&&(this.queryCache=null,this.clearCachePruneTimeout())}async getAllIssueHitsFor(e){return(await this.db.getIssuesForRepository(e.dbID)).map((e=>({number:e.number,title:e.title})))}async getIssuesMatching(e,t,n=25){const r=this.queryCache?.repository.dbID===e.dbID?await Promise.resolve(this.queryCache?.issues):await this.getAllIssueHitsFor(e);if(this.setQueryCache(e,r),!t.length)return r.slice().sort(((e,t)=>yr(e.number,t.number))).slice(0,n);const i=[],s=t.toLowerCase();for(const e of r){const t=`${e.number} ${e.title}`.trim().toLowerCase().indexOf(s);t>=0&&i.push({hit:{number:e.number,title:e.title},ix:t})}return i.sort(((e,t)=>gr(e.ix,t.ix)||gr(e.hit.title,t.hit.title))).slice(0,n).map((e=>e.hit))}setQueryCache(e,t){this.clearCachePruneTimeout(),this.queryCache={repository:e,issues:t},this.pruneQueryCacheTimeoutId=window.setTimeout((()=>{this.pruneQueryCacheTimeoutId=null,this.queryCache=null}),6e4)}clearCachePruneTimeout(){null!==this.pruneQueryCacheTimeoutId&&(clearTimeout(this.pruneQueryCacheTimeoutId),this.pruneQueryCacheTimeoutId=null)}}(new class extends VR{constructor(e,t){super(e,t),this.conditionalVersion(1,{issues:"++id, &[gitHubRepositoryID+number], gitHubRepositoryID, number"}),this.conditionalVersion(2,{issues:"++id, &[gitHubRepositoryID+number], gitHubRepositoryID, number, [gitHubRepositoryID+updated_at]"},fH)}getIssuesForRepository(e){return this.issues.where("gitHubRepositoryID").equals(e).toArray()}}("IssuesDatabase")),EU=new class{db;uiActivityMonitor;post;uiActivityMonitorSubscription=null;optOut;constructor(e,t,n=PT){this.db=e,this.uiActivityMonitor=t,this.post=n;const r=LT();this.optOut=r||!1,Ht(vT,!1)||this.sendOptInStatusPing(this.optOut,r),this.enableUiActivityMonitoring(),window.addEventListener("unhandledrejection",(async()=>{try{this.increment("unhandledRejectionCount")}catch(e){log.error("Failed recording unhandled rejection",e)}}))}shouldReportDailyStats(){const e=Zt(wT,0);return Date.now()-e>864e5}async reportStats(e,t){if(this.optOut)return;if(!Ap())return;if(!this.shouldReportDailyStats())return;const n=Date.now(),r=await this.getDailyStats(e,t);try{const e=await this.post(r);if(!e.ok)throw new Error(`Unexpected status: ${e.statusText} (${e.status})`);log.info("Stats reported."),await this.clearDailyStats(),$t(wT,n)}catch(e){log.error("Error reporting stats:",e)}}async recordLaunchStats(e){await this.db.launches.add(e)}async clearDailyStats(){await this.db.launches.clear(),await this.db.dailyMeasures.clear(),localStorage.removeItem(_T),this.enableUiActivityMonitoring()}enableUiActivityMonitoring(){null===this.uiActivityMonitorSubscription&&(this.uiActivityMonitorSubscription=this.uiActivityMonitor.onActivity(this.onUiActivity))}disableUiActivityMonitoring(){null!==this.uiActivityMonitorSubscription&&(this.uiActivityMonitorSubscription.dispose(),this.uiActivityMonitorSubscription=null)}async getDailyStats(e,t){const n=await this.getAverageLaunchStats(),r=await this.getDailyMeasures(),i=this.determineUserType(e),s=this.categorizedRepositoryCounts(t),o=this.getOnboardingStats(),a=localStorage.getItem("shell")||"none",l=localStorage.getItem("externalEditor")||"none",c=Wt(_T).length,u=wb()?"split":"unified",h=Ht(zC,jC),p=Ht(YC,KC);return{eventType:"usage",version:"3.4.3-linux1",osVersion:Ar(),platform:"linux",architecture:await te(),theme:Op(),selectedTerminalEmulator:a,selectedTextEditor:l,notificationsEnabled:Yb(),...n,...r,...i,...o,guid:await gT(),...s,repositoriesCommittedInWithoutWriteAccess:c,diffMode:u,launchedFromApplicationsFolder:null,linkUnderlinesVisible:h,diffCheckMarksVisible:p,useExternalCredentialHelper:Ht(dC)??null}}getOnboardingStats(){return null===OT(CT)?{}:{timeToWelcomeWizardTerminated:NT(ST),timeToFirstAddedRepository:NT(ET),timeToFirstClonedRepository:NT(kT),timeToFirstCreatedRepository:NT(RT),timeToFirstCommit:NT(TT),timeToFirstGitHubPush:NT(AT),timeToFirstNonDefaultBranchCheckout:NT(xT),welcomeWizardSignInMethod:function(){const e=localStorage.getItem(DT)??void 0;if("basic"===e||"web"===e||void 0===e)return e;log.error(`Could not parse welcome wizard sign in method: ${e}`)}()}}categorizedRepositoryCounts(e){return{repositoryCount:e.length,gitHubRepositoryCount:e.filter((e=>e.gitHubRepository)).length}}determineUserType(e){const t=!!e.find((e=>e.endpoint===cr())),n=!!e.find((e=>e.endpoint!==cr()));return{dotComAccount:t,enterpriseAccount:n}}async getAverageLaunchStats(){const e=await this.db.launches.toArray();if(!e||!e.length)return{mainReadyTime:-1,loadTime:-1,rendererReadyTime:-1};const t=e.reduce(((e,t)=>({mainReadyTime:e.mainReadyTime+t.mainReadyTime,loadTime:e.loadTime+t.loadTime,rendererReadyTime:e.rendererReadyTime+t.rendererReadyTime})),{mainReadyTime:0,loadTime:0,rendererReadyTime:0});return{mainReadyTime:t.mainReadyTime/e.length,loadTime:t.loadTime/e.length,rendererReadyTime:t.rendererReadyTime/e.length}}async getDailyMeasures(){const e=await this.db.dailyMeasures.limit(1).first();return{...MT,...e,id:void 0}}async updateDailyMeasures(e){const t=MT;await this.db.transaction("rw",this.db.dailyMeasures,(async()=>{const n=await this.db.dailyMeasures.limit(1).first(),r={...t,...n},i=xp(r,e(r));return this.db.dailyMeasures.put(i)}))}async recordCommit(){await this.increment("提交"),IT(TT)}recordCommitUndone=e=>this.increment(e?"commitsUndoneWithoutChanges":"commitsUndoneWithChanges");recordAmendCommitSuccessful=e=>this.increment(e?"amendCommitSuccessfulWithFileChangesCount":"amendCommitSuccessfulWithoutFileChangesCount");recordMenuInitiatedMerge=(e=!1)=>this.increment(e?"squashMergeIntoCurrentBranchMenuCount":"mergeIntoCurrentBranchMenuCount");recordRepoClicked=e=>this.increment(e?"repoWithIndicatorClicked":"repoWithoutIndicatorClicked");async setOptOut(e,t){const n=this.optOut!==e;this.optOut=e;const r=Ht(bT);Ut(bT,e),(n||t)&&await this.sendOptInStatusPing(e,r)}getOptOut(){return this.optOut}async recordPush(e,t){null===e?await this.recordPushToGenericRemote(t):e.endpoint===cr()?await this.recordPushToGitHub(t):await this.recordPushToGitHubEnterprise(t)}async recordPushToGitHub(e){await this.increment(e&&e.forceWithLease?"dotcomForcePushCount":"dotcomPushCount"),IT(AT)}async recordPushToGitHubEnterprise(e){await this.increment(e&&e.forceWithLease?"enterpriseForcePushCount":"enterprisePushCount"),IT(AT)}recordPushToGenericRemote=e=>this.increment(e&&e.forceWithLease?"externalForcePushCount":"externalPushCount");recordWelcomeWizardInitiated(){$t(CT,Date.now()),localStorage.removeItem(ST)}recordWelcomeWizardTerminated(){$t(ST,Date.now())}recordAddExistingRepository(){IT(ET)}recordCloneRepository(){IT(kT)}recordCreateRepository(){IT(RT)}recordNonDefaultBranchCheckout(){IT(xT)}recordWelcomeWizardSignInMethod(e){localStorage.setItem(DT,e)}addStashEntriesCreatedOutsideDesktop=e=>this.increment("stashEntriesCreatedOutsideDesktop",e);onUiActivity=async()=>(this.disableUiActivityMonitoring(),this.updateDailyMeasures((e=>({active:!0}))));recordTutorialStarted(){return this.updateDailyMeasures((()=>({tutorialStarted:!0})))}recordTutorialRepoCreated(){return this.updateDailyMeasures((()=>({tutorialRepoCreated:!0})))}recordTutorialEditorInstalled(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0})))}recordTutorialBranchCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0})))}recordTutorialFileEdited(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0})))}recordTutorialCommitCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0})))}recordTutorialBranchPushed(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0,tutorialBranchPushed:!0})))}recordTutorialPrCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0,tutorialBranchPushed:!0,tutorialPrCreated:!0})))}recordTutorialCompleted(){return this.updateDailyMeasures((()=>({tutorialCompleted:!0})))}recordHighestTutorialStepCompleted(e){return this.updateDailyMeasures((t=>({highestTutorialStepCompleted:Math.max(e,t.highestTutorialStepCompleted)})))}recordRepositoryCommitedInWithoutWriteAccess(e){const t=Wt(_T);t.includes(e)||qt(_T,[...t,e])}recordTagCreated=e=>this.increment("tagsCreated",e);recordSquashUndone=()=>this.increment("squashUndoneCount");async recordOperationConflictsEncounteredCount(e){switch(e){case"Squash":return this.increment("squashConflictsEncounteredCount");case"Reorder":return this.increment("reorderConflictsEncounteredCount");case"Rebase":return;case"Cherry-pick":case"Merge":return void log.error(`[recordOperationConflictsEncounteredCount] - Operation not supported: ${e}`);default:return ct(0,`Unknown operation kind of ${e}.`)}}async recordOperationSuccessful(e){switch(e){case"Squash":return this.increment("squashSuccessfulCount");case"Reorder":return this.increment("reorderSuccessfulCount");case"Cherry-pick":return this.increment("cherryPickSuccessfulCount");case"Rebase":return;case"Merge":return void log.error(`[recordOperationSuccessful] - Operation not supported: ${e}`);default:return ct(0,`Unknown operation kind of ${e}.`)}}async recordOperationSuccessfulWithConflicts(e){switch(e){case"Squash":return this.increment("squashSuccessfulWithConflictsCount");case"Reorder":return this.increment("reorderSuccessfulWithConflictsCount");case"Rebase":return this.increment("rebaseSuccessAfterConflictsCount");case"Cherry-pick":case"Merge":return void log.error(`[recordOperationSuccessfulWithConflicts] - Operation not supported: ${e}`);default:return ct(0,`Unknown operation kind of ${e}.`)}}async recordOperationUndone(e){switch(e){case"Squash":return this.recordSquashUndone();case"Reorder":return this.increment("reorderUndoneCount");case"Cherry-pick":return this.increment("cherryPickUndoneCount");case"Rebase":case"Merge":return void log.error(`[recordOperationUndone] - Operation not supported: ${e}`);default:return ct(0,`Unknown operation kind of ${e}.`)}}getStatFieldForRequestReviewState(e,t){return`pullRequestReview${{CHANGES_REQUESTED:"ChangesRequested",APPROVED:"Approved",COMMENTED:"Commented"}[e]}${t}`}recordPullRequestReviewStat(e,t){const n=this.getStatFieldForRequestReviewState(e,t);return this.increment(n)}recordPullRequestReviewNotificationShown(e){return this.recordPullRequestReviewStat(e,"NotificationCount")}recordPullRequestReviewNotificationClicked(e){return this.recordPullRequestReviewStat(e,"NotificationClicked")}recordPullRequestReviewDialogSwitchToPullRequest(e){return this.recordPullRequestReviewStat(e,"DialogSwitchToPullRequestCount")}increment=(e,t=1)=>this.updateDailyMeasures((n=>({[e]:n[e]+t})));async sendOptInStatusPing(e,t){const n=!e,r=void 0===t?null:!t,i=n?"in":"out";try{const e=await this.post({eventType:"ping",optIn:n,previousOptInValue:r});if(!e.ok)throw new Error(`Unexpected status: ${e.statusText} (${e.status})`);Ut(vT,!0),log.info(`Opt ${i} reported.`)}catch(e){log.error(`Error reporting opt ${i}:`,e)}}}(new class extends BR{constructor(e){super(e),this.version(1).stores({launches:"++"}),this.version(2).stores({dailyMeasures:"++id"})}}("StatsDatabase"),new class{emitter=new ft.Emitter;subscriberCount=0;onActivity(e){const t=this.emitter.on("activity",e);return 0===this.subscriberCount&&this.startTracking(),this.subscriberCount++,new ft.Disposable((()=>{this.subscriberCount--,0===this.subscriberCount&&this.stopTracking(),t.dispose()}))}emit(e){this.emitter.emit("activity",e)}startTracking(){document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("keydown",this.onKeyDown),y("menu-event",this.onMenuEvent)}stopTracking(){document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("keydown",this.onKeyDown),w("menu-event",this.onMenuEvent)}onMouseDown=e=>{null!==e.target&&e.target instanceof HTMLElement&&function(e){for(;null!==e;){if(gH.has(e.nodeName))return!0;const t=e.getAttribute("role");if(null!==t&&yH.has(t))return!0;e=e instanceof HTMLElement?e.parentElement:null}return!1}(e.target)&&this.emit("pointer")};onKeyDown=e=>{this.emit("keyboard")};onMenuEvent=()=>this.emit("menu")}),kU=new class extends Hp{state=null;endpointSupportBasicAuth=new Map;emitAuthenticate(e,t){const n={account:e,method:t};this.emitter.emit("did-authenticate",n),this.state?.resultCallback({kind:"success",account:e,method:t})}onDidAuthenticate(e){return this.emitter.on("did-authenticate",(({account:t,method:n})=>{e(t,n)}))}getState(){return this.state}setState(e){this.state=e,this.emitUpdate(this.getState())}async endpointSupportsBasicAuth(e){if(Mn(e)||Pn(e))return!1;if(Pn(e))return!1;const t=this.endpointSupportBasicAuth.get(e),n=void 0===t?null:{verifiable_password_authentication:t},r=await async function(e,t,n){let r=null;const i=new Promise((e=>{r=window.setTimeout((()=>e(n)),2e3)}));return Promise.race([e,i]).finally((()=>{null!==r&&window.clearTimeout(r)}))}(async function(e){const t=`${e}/meta`;try{const t=await gn(e,null,"GET","meta",void 0,{"Content-Type":"application/json"});hr(e,t);const n=await yn(t);return n&&void 0!==n.verifiable_password_authentication?n:null}catch(e){return log.error(`fetchMetadata: unable to load metadata from '${t}' as a fallback`,e),null}}(e),0,n);if(null!==r){const t=!0===r.verifiable_password_authentication;return this.endpointSupportBasicAuth.set(e,t),t}throw new Error("Unable to authenticate with the GitHub Enterprise instance. Verify that the URL is correct, that your GitHub Enterprise instance is running version 3.0.0 or later, that you have an internet connection and try again.")}getForgotPasswordURL(e){return`${ar(e)}/password_reset`}reset(){const e=this.state;this.state?.resultCallback({kind:"cancelled"}),this.setState(null),e?.kind===aT.Authentication&&e.oauthState?.onAuthError(new Error("cancelled"))}beginDotComSignIn(e){const t=cr();null!==this.state&&this.reset(),this.setState({kind:aT.Authentication,endpoint:t,supportsBasicAuth:!1,error:null,loading:!1,forgotPasswordUrl:this.getForgotPasswordURL(t),resultCallback:e??iT.noop}),this.endpointSupportsBasicAuth(t).then((e=>{null!==this.state&&this.state.kind===aT.Authentication&&this.state.endpoint===t&&this.setState({...this.state,supportsBasicAuth:e})})).catch((e=>log.error("Failed resolving whether GitHub.com supports password authentication",e)))}async authenticateWithBasicAuth(e,t){const n=this.state;if(!n||n.kind!==aT.Authentication)return lt(`Sign in step '${n?n.kind:"null"}' not compatible with authentication`);const r=n.endpoint;let i;this.setState({...n,loading:!0});try{i=await sr(r,e,t,null)}catch(e){return void this.emitError(e)}if(this.state&&this.state.kind===aT.Authentication)if(i.kind===er.Authorized){const e=i.token,t=await or(r,e);if(!this.state||this.state.kind!==aT.Authentication)return;this.emitAuthenticate(t,lT.Basic),this.setState({kind:aT.Success,resultCallback:this.state.resultCallback})}else if(i.kind===er.TwoFactorAuthenticationRequired)this.setState({kind:aT.TwoFactorAuthentication,endpoint:r,username:e,password:t,type:i.type,error:null,loading:!1,resultCallback:this.state.resultCallback});else if(i.kind===er.Error)this.emitError(new Error(`The server responded with an error while attempting to authenticate (${i.response.status})\n\n${i.response.statusText}`)),this.setState({...n,loading:!1});else if(i.kind===er.Failed)e.includes("@")?this.setState({...n,loading:!1,error:new Error("Incorrect email or password.")}):this.setState({...n,loading:!1,error:new Error("Incorrect username or password.")});else if(i.kind===er.UserRequiresVerification)this.setState({...n,loading:!1,error:new Error(sT(e))});else if(i.kind===er.PersonalAccessTokenBlocked)this.setState({...n,loading:!1,error:new Error("A personal access token cannot be used to login to GitHub Desktop.")});else if(i.kind===er.EnterpriseTooOld)this.setState({...n,loading:!1,error:new Error(oT)});else{if(i.kind!==er.WebFlowRequired)return ct(0,`Unsupported response: ${i}`);this.setState({...n,loading:!1,supportsBasicAuth:!1,kind:aT.Authentication})}}authenticateWithBrowser(){const e=this.state;if(!e||e.kind!==aT.Authentication)return lt(`Sign in step '${e?e.kind:"null"}' not compatible with browser authentication`);this.setState({...e,loading:!0});const t=rT()();new Promise(((n,r)=>{const{endpoint:i}=e;log.info("[SignInStore] initializing OAuth flow"),this.setState({...e,oauthState:{state:t,endpoint:i,onAuthCompleted:n,onAuthError:r}}),pt.openExternal(function(e,t){const n=ar(e),r=encodeURIComponent(jn.join(" "));return`${n}/login/oauth/authorize?client_id=${Gn}&scope=${r}&state=${t}`}(i,t)),log.info("[SignInStore] account resolved")})).then((e=>{this.state&&this.state.kind===aT.Authentication&&(this.emitAuthenticate(e,lT.Web),this.setState({kind:aT.Success,resultCallback:this.state.resultCallback}))})).catch((e=>{this.state?.kind===aT.Authentication&&this.state.oauthState?.state===t?(log.info("[SignInStore] error with OAuth flow",e),this.setState({...this.state,error:e,loading:!1})):log.info(`[SignInStore] OAuth error but session has changed: ${e}`)}))}async resolveOAuthRequest(e){if(!this.state||this.state.kind!==aT.Authentication)return;if(!this.state.oauthState)return;if(this.state.oauthState.state!==e.state)return void log.warn("requestAuthenticatedUser was not called with valid OAuth state. This is likely due to a browser reloading the callback URL. Contact GitHub Support if you believe this is an error");const{endpoint:t}=this.state,n=await async function(e,t){try{const n=ar(e),r=await gn(n,null,"POST","login/oauth/access_token",{client_id:Gn,client_secret:zn,code:t});return hr(e,r),(await yn(r)).access_token}catch(t){return log.warn(`requestOAuthToken: failed with endpoint ${e}`,t),null}}(t,e.code);if(n){const e=await or(t,n);this.state.oauthState.onAuthCompleted(e)}else this.state.oauthState.onAuthError(new Error("Failed retrieving authenticated user"))}beginEnterpriseSignIn(e){null!==this.state&&this.reset(),this.setState({kind:aT.EndpointEntry,error:null,loading:!1,resultCallback:e??iT.noop})}async setEndpoint(e){const t=this.state;if(!t||t.kind!==aT.EndpointEntry)return lt(`Sign in step '${t?t.kind:"null"}' not compatible with endpoint entry`);let n;this.setState({...t,loading:!0});try{n=function(e){const t=e.trim();if(0===t.length){const e=new Error("Unknown address");throw e.name=eT,e}let n=o.parse(t);if(n.host||(e=`https://${t}`,n=o.parse(e)),!n.protocol){const e=new Error("Invalid URL");throw e.name=eT,e}if(!JR.has(n.protocol)){const e=new Error("Invalid protocol");throw e.name=tT,e}return e}(e)}catch(e){let n=e;return e.name===eT?n=new Error("The GitHub Enterprise instance address doesn't appear to be a valid URL. We're expecting something like https://github.example.com."):e.name===tT&&(n=new Error("Unsupported protocol. Only http or https is supported when authenticating with GitHub Enterprise instances.")),void this.setState({...t,loading:!1,error:n})}const r=lr(n);try{const e=await this.endpointSupportsBasicAuth(r);if(!this.state||this.state.kind!==aT.EndpointEntry)return;this.setState({kind:aT.Authentication,endpoint:r,supportsBasicAuth:e,error:null,loading:!1,forgotPasswordUrl:this.getForgotPasswordURL(r),resultCallback:this.state.resultCallback})}catch(e){let n=e;"ENOTFOUND"===e.code&&(n=new Error("The server could not be found. Please verify that the URL is correct and that you have a stable internet connection.")),this.setState({...t,loading:!1,error:n})}}async setTwoFactorOTP(e){const t=this.state;let n;t&&t.kind===aT.TwoFactorAuthentication||lt(`Sign in step '${t?t.kind:"null"}' not compatible with two factor authentication`),this.setState({...t,loading:!0});try{n=await sr(t.endpoint,t.username,t.password,e)}catch(e){return void this.emitError(e)}if(this.state&&this.state.kind===aT.TwoFactorAuthentication)if(n.kind===er.Authorized){const e=n.token,r=await or(t.endpoint,e);if(!this.state||this.state.kind!==aT.TwoFactorAuthentication)return;this.emitAuthenticate(r,lT.Basic),this.setState({kind:aT.Success,resultCallback:this.state.resultCallback})}else switch(n.kind){case er.Failed:case er.TwoFactorAuthenticationRequired:this.setState({...t,loading:!1,error:new Error("Two-factor authentication failed.")});break;case er.Error:this.emitError(new Error(`The server responded with an error (${n.response.status})\n\n${n.response.statusText}`));break;case er.UserRequiresVerification:this.emitError(new Error(sT(t.username)));break;case er.PersonalAccessTokenBlocked:this.emitError(new Error("A personal access token cannot be used to login to GitHub Desktop."));break;case er.EnterpriseTooOld:this.emitError(new Error(oT));break;case er.WebFlowRequired:this.setState({...t,forgotPasswordUrl:this.getForgotPasswordURL(t.endpoint),loading:!1,supportsBasicAuth:!1,kind:aT.Authentication,error:null});break;default:ct(0,`Unknown response: ${n}`)}}},RU=new class extends Hp{dataStore;secureStore;accounts=[];loadingPromise;constructor(e,t){super(),this.dataStore=e,this.secureStore=t,this.loadingPromise=this.loadFromStore()}async getAll(){return await this.loadingPromise,this.accounts.slice()}async addAccount(e){await this.loadingPromise;try{const t=Lp(e);await this.secureStore.setItem(t,e.login,e.token)}catch(t){return log.error(`Error adding account '${e.login}'`,t),this.emitError(t),null}const t=this.accounts.reduce(((e,t)=>e.set(t.endpoint,t)),new Map);return t.set(e.endpoint,e),this.accounts=[...t.values()],this.save(),e}async refresh(){this.accounts=await Promise.all(this.accounts.map((e=>this.tryUpdateAccount(e)))),this.save(),this.emitUpdate(this.accounts)}async tryUpdateAccount(e){try{return await async function(e){return e.token?or(e.endpoint,e.token):lt(`Cannot update an account which doesn't have a token: ${e.login}`)}(e)}catch(t){return log.warn(`Error refreshing account '${e.login}'`,t),e}}async removeAccount(e){await this.loadingPromise;try{await this.secureStore.deleteItem(Lp(e),e.login)}catch(t){return log.error(`Error removing account '${e.login}'`,t),void this.emitError(t)}this.accounts=this.accounts.filter((t=>!(t.endpoint===e.endpoint&&t.id===e.id))),this.save()}async loadFromStore(){const e=this.dataStore.getItem("users");if(!e||!e.length)return;const t=JSON.parse(e),n=[];for(const e of t){const t=new dn(e.login,e.endpoint,"",e.emails,e.avatarURL,e.id,e.name,e.plan),r=Lp(t);try{const i=await this.secureStore.getItem(r,e.login);n.push(t.withToken(i||""))}catch(e){log.error(`Error getting token for '${r}'. Skipping.`,e),this.emitError(e)}}this.accounts=n,this.emitUpdate(this.accounts)}save(){const e=this.accounts.map((e=>e.withToken("")));this.dataStore.setItem("users",JSON.stringify(e)),this.emitUpdate(this.accounts)}}(localStorage,hd);var TU;rd.registerCommandHandler(Jp.AskPass,(e=>async t=>{if(1!==t.parameters.length)return;const n=t.parameters[0];if(n.startsWith("The authenticity of host "))return async function(e){const t=function(e){const t=/^The authenticity of host '([^ ]+) \(([^\)]+)\)' can't be established[^.]*\.\n([^ ]+) key fingerprint is ([^.]+)\./.exec(e);return null===t||t.length<5?null:{host:t[1],ip:t[2],keyType:t[3],fingerprint:t[4]}}(e);if(null!==t)return"github.com"===t.host&&"RSA"===t.keyType&&"SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8"===t.fingerprint||await TH.promptAddingSSHHost(t.host,t.ip,t.keyType,t.fingerprint)?"yes":"no"}(n);if(n.startsWith("Enter passphrase for key "))return async function(e,t){const n=/^Enter passphrase for key '(.+)': $/.exec(t);if(null===n||n.length<2)return;let r=n[1];const i=await async function(e){try{const t=await QH(e);return hd.getItem(XH,t)}catch(e){return log.error("Could not retrieve passphrase for SSH key:",e),null}}(r);if(null!==i)return i;const{secret:s,storeSecret:o}=await TH.promptSSHKeyPassphrase(r);return void 0!==s&&o?async function(e,t,n){try{const r=await QH(t);ld(e,XH,r,n)}catch(e){log.error("Could not store passphrase for SSH key:",e)}}(e,r,s):cd(e),s??""}(t.trampolineToken,n);if(n.endsWith("'s password: "))return async function(e,t){const n=/^(.+@.+)'s password: $/.exec(t);if(null===n||n.length<2)return;const r=n[1],i=await async function(e){try{return hd.getItem(JH,e)}catch(e){return log.error("Could not retrieve passphrase for SSH key:",e),null}}(r);if(null!==i)return i;const{secret:s,storeSecret:o}=await TH.promptSSHUserPassword(r);return void 0!==s&&o?async function(e,t,n){ld(e,JH,t,n)}(e,r,s):cd(e),s??""}(t.trampolineToken,n);const r=/^(Username|Password) for ['"](.+)['"](: )?$/.exec(n);if("Username"===r?.[1]||"Password"===r?.[1]){const[,n,i]=r;return(async(e,t,n,r)=>{const i=e=>log.info(`askPassHandler: ${e}`),s=e=>log.debug(`askPassHandler: ${e}`),{trampolineToken:o}=e,a=new URL(n),l=eU(n),c=await nU(r,n)??await rU(o,n).then((e=>(e&&((e,t,n)=>{yd.set(e,{endpoint:t,login:n})})(o,l,e.login),e)));if(c)return s(`${c instanceof dn?"account":"generic"} ${t.toLowerCase()} for ${n} found`),"Username"===t?c.login:c.token;if(((e,t)=>wd.get(e)?.has(t)??!1)(o,l))return void s(`not requesting credentials for ${n}`);if(Ed(o))return void s("background task environment, skipping prompt");if(i(`no account found for ${n}`),"github.com"===a.hostname)return;const{login:u,token:h}=await TH.promptForGenericGitAuthentication(n,""===a.username?void 0:a.username)??{login:"",token:""};return u&&h?(""===a.username&&dd(l,u),await md(l,u,h),i(`acquired generic credentials for ${n}`),"Username"===t?u:h):(i("user cancelled generic git authentication"),void bd(o,l))})(t,n,i,e)}})(RU)),rd.registerCommandHandler(Jp.CredentialHelper,(TU=RU,async e=>{const t=e.parameters.at(0);if(!t)return;const{trampolineToken:n}=e,r=iU(e.stdin);try{if("get"===t){const e=await dU(r,TU,n);if(!e){const e=`${kd(r)}`;uU(`could not find credential for ${e}`),bd(n,e)}return e?sU(e):void 0}return void("store"===t?await async function(e,t,n){if("generic"===await mU(e,t))return mC()?fU(e,n):function(e,t,n){return dd(e,t),md(e,t,n)}(eU(kd(e)),ut("credential missing username",e.get("username")),ut("credential missing password",e.get("password")))}(r,TU,n):"erase"===t&&await async function(e,t,n){if("generic"===await mU(e,t))return mC()?((e,t)=>{const n=Sd(t);return cU(e,n,gU(t))})(e,n):fd(eU(kd(e)),ut("credential missing username",e.get("username")))}(r,TU,n))}catch(e){return void((e,t)=>{log.error(`credential-helper: ${e}`,t)})(`${t} failed`,e)}}));const AU=new class extends Hp{db;lastStashCheckCache=new Map;branchProtectionSettingsFoundCache=new Map;protectionEnabledForBranchCache=new Map;emitQueued=!1;constructor(e){super(),this.db=e}async upsertGitHubRepositoryLight(e,t){return this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(()=>this._upsertGitHubRepository(e,t,!0)))}async upsertGitHubRepository(e,t){return this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(()=>this._upsertGitHubRepository(e,t,!1)))}async toGitHubRepository(e,t,n){if(ht(e.id,"Need db id to create GitHubRepository"),void 0===n&&null!==e.parentID){const t=await this.db.gitHubRepositories.get(e.parentID);ht(t,`Missing parent '${e.id}'`),n=await this.toGitHubRepository(t)}if(void 0===t){const n=await this.db.owners.get(e.ownerID);ht(n,`Missing owner '${e.ownerID}'`),t=new YR(n.login,n.endpoint,n.id,n.type)}const r=new Nr(e.name,t,e.id,e.private,e.htmlURL,e.cloneURL,e.issuesEnabled,e.isArchived,e.permissions,n);return Promise.resolve(r)}async toRepository(e){return ht(e.id,"can't convert to Repository without id"),new Zr(e.path,e.id,null!==e.gitHubRepositoryID?await this.findGitHubRepositoryByID(e.gitHubRepositoryID):await Promise.resolve(null),e.missing,e.alias,e.workflowPreferences,e.isTutorialRepository)}async findGitHubRepositoryByID(e){const t=await this.db.gitHubRepositories.get(e);return void 0!==t?this.toGitHubRepository(t):Promise.resolve(null)}getAll(){return this.db.transaction("r",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const e=new Array;for(const t of await this.db.repositories.toArray())ht(t.id,"no id after loading from db"),e.push(await this.toRepository(t));return e}))}async addTutorialRepository(e,t,n){await this.db.transaction("rw",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const r=await this.upsertGitHubRepository(t,n),i=await this.db.repositories.get({path:e});return await this.db.repositories.put({...void 0!==i?.id&&{id:i.id},path:e,alias:null,gitHubRepositoryID:r.dbID,missing:!1,lastStashCheckDate:null,isTutorialRepository:!0})})),this.emitUpdatedRepositories()}async addRepository(e,t){const n=await this.db.transaction("rw",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const n=await this.db.repositories.get({path:e});if(void 0!==n)return await this.toRepository(n);const r={path:e,gitHubRepositoryID:null,missing:t?.missing??!1,lastStashCheckDate:null,alias:null},i=await this.db.repositories.add(r);return this.toRepository({id:i,...r})}));return this.emitUpdatedRepositories(),n}async removeRepository(e){await this.db.repositories.delete(e.id),Iw(e),this.emitUpdatedRepositories()}async updateRepositoryMissing(e,t){return await this.db.repositories.update(e.id,{missing:t}),this.emitUpdatedRepositories(),new Zr(e.path,e.id,e.gitHubRepository,t,e.alias,e.workflowPreferences,e.isTutorialRepository)}async updateRepositoryAlias(e,t){await this.db.repositories.update(e.id,{alias:t}),this.emitUpdatedRepositories()}async updateRepositoryWorkflowPreferences(e,t){await this.db.repositories.update(e.id,{workflowPreferences:t}),this.emitUpdatedRepositories()}async updateRepositoryPath(e,t){return await this.db.repositories.update(e.id,{missing:!1,path:t}),this.emitUpdatedRepositories(),new Zr(t,e.id,e.gitHubRepository,!1,e.alias,e.workflowPreferences,e.isTutorialRepository)}async updateLastStashCheckDate(e,t=Date.now()){await this.db.repositories.update(e.id,{lastStashCheckDate:t}),this.lastStashCheckCache.set(e.id,t)}async getLastStashCheckDate(e){let t=this.lastStashCheckCache.get(e.id)||null;if(null!==t)return t;const n=await this.db.repositories.get(e.id);return void 0===n?lt(`'getLastStashCheckDate' - unable to find repository with ID: ${e.id}`):(t=n.lastStashCheckDate??null,null!==t&&this.lastStashCheckCache.set(e.id,t),t)}async putOwner(e,t,n){const r=KR(e,t),i=await this.db.owners.get({key:r});let s;if(void 0===i||i.login!==t||void 0!==n&&i.type!==n){s=i?.id;const o=void 0!==s?{id:s}:{};s=await this.db.owners.put({...o,key:r,endpoint:e,login:t,type:n})}else s=ut("Missing owner id",i.id);return new YR(t,e,s,n??i?.type)}async upsertGitHubRepositoryFromMatch(e){return await this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(async()=>{const{account:t}=e,n=await this.putOwner(t.endpoint,e.owner),r=await this.db.gitHubRepositories.where("[ownerID+name]").equals([n.id,e.name]).first();if(r)return this.toGitHubRepository(r,n);const i={cloneURL:null,htmlURL:null,lastPruneDate:null,name:e.name,ownerID:n.id,parentID:null,private:null},s=await this.db.gitHubRepositories.put(i);return this.toGitHubRepository({...i,id:s},n,null)}))}async setGitHubRepository(e,t){if($r(e)&&e.gitHubRepository.hash===t.hash)return e;await this.db.transaction("rw",this.db.repositories,(()=>this.db.repositories.update(e.id,{gitHubRepositoryID:t.dbID}))),this.emitUpdatedRepositories();const n=new Zr(e.path,e.id,t,e.missing,e.alias,e.workflowPreferences,e.isTutorialRepository);return $r(n)||lt("Repository must be GitHub repository"),n}async _upsertGitHubRepository(e,t,n=!1){const r="parent"in t&&void 0!==t.parent?await this._upsertGitHubRepository(e,t.parent,!0):await Promise.resolve(null),{login:i,type:s}=t.owner,o=await this.putOwner(e,i,s),a=await this.db.gitHubRepositories.where("[ownerID+name]").equals([o.id,t.name]).first(),l=function(e){const t="permissions"in e?e.permissions:void 0;return void 0===t?null:t.admin?"admin":t.push?"write":t.pull?"read":null}(t)??a?.permissions??void 0,c=n?a?.parentID??null:r?.dbID??null,u={...void 0!==a?.id&&{id:a.id},ownerID:o.id,name:t.name,private:t.private,htmlURL:t.html_url,cloneURL:t.clone_url,parentID:c,lastPruneDate:a?.lastPruneDate??null,issuesEnabled:t.has_issues,isArchived:t.archived,permissions:l};if(void 0!==a&&op(a,u))return this.toGitHubRepository(a,o,r);const h=await this.db.gitHubRepositories.put(u);return this.emitUpdatedRepositories(),this.toGitHubRepository({...u,id:h},o,r)}async updateBranchProtections(e,t){const n=e.dbID;await this.db.transaction("rw",this.db.protectedBranches,(async()=>{const e=QR(n);for(const t of this.protectionEnabledForBranchCache.keys())t.startsWith(e)&&this.protectionEnabledForBranchCache.delete(t);const r=t.map((e=>({repoId:n,name:e.name})));for(const e of r){const t=XR(n,e.name);this.protectionEnabledForBranchCache.set(t,!0)}await this.db.protectedBranches.where("repoId").equals(n).delete();const i=r.length>0;this.branchProtectionSettingsFoundCache.set(n,i),r.length>0&&await this.db.protectedBranches.bulkAdd(r)}))}async updateLastPruneDate(e,t){await this.db.gitHubRepositories.update(e.gitHubRepository.dbID,{lastPruneDate:t})}async getLastPruneDate(e){const t=e.gitHubRepository.dbID,n=await this.db.gitHubRepositories.get(t);return void 0===n?lt(`getLastPruneDate: No such GitHub repository: ${t}`):n.lastPruneDate}async loadAndCacheBranchProtection(e){const t=await this.db.protectedBranches.where("repoId").equals(e).toArray(),n=t.length>0;this.branchProtectionSettingsFoundCache.set(e,n);for(const n of t){const t=XR(e,n.name);this.protectionEnabledForBranchCache.set(t,!0)}return n}async hasBranchProtectionsConfigured(e){const t=this.branchProtectionSettingsFoundCache.get(e.dbID);return void 0===t?this.loadAndCacheBranchProtection(e.dbID):t}emitUpdatedRepositories(){this.emitQueued||(setImmediate((()=>{this.getAll().then((e=>this.emitUpdate(e))).catch((e=>log.error("Failed emitting update",e))).finally((()=>this.emitQueued=!1))})),this.emitQueued=!0)}}(new class extends VR{constructor(e,t){super(e,t),this.conditionalVersion(1,{repositories:"++id, &path",gitHubRepositories:"++id, name",owners:"++id, login"}),this.conditionalVersion(2,{owners:"++id, &[endpoint+login]"}),this.conditionalVersion(3,{},GR),this.conditionalVersion(4,{gitHubRepositories:"++id, name, &[ownerID+name]"}),this.conditionalVersion(5,{gitHubRepositories:"++id, name, &[ownerID+name], cloneURL"}),this.conditionalVersion(6,{protectedBranches:"[repoId+name], repoId"}),this.conditionalVersion(7,{gitHubRepositories:"++id, &[ownerID+name]"}),this.conditionalVersion(8,{},zR),this.conditionalVersion(9,{owners:"++id, &key"},jR)}}("Database")),xU=new class{db;repositoryStore;emitter=new ft.Emitter;currentRefreshOperations=new Map;lastRefreshForRepository=new Map;constructor(e,t){this.db=e,this.repositoryStore=t}emitPullRequestsChanged(e,t){this.emitter.emit("onPullRequestsChanged",{repository:e,pullRequests:t})}onPullRequestsChanged(e){return this.emitter.on("onPullRequestsChanged",(t=>{const{repository:n,pullRequests:r}=t;e(n,r)}))}refreshPullRequests(e,t){const n=this.currentRefreshOperations.get(e.dbID);if(void 0!==n)return n;this.lastRefreshForRepository.set(e.dbID,Date.now());const r=this.fetchAndStorePullRequests(e,t).catch((t=>{log.error(`Error refreshing pull requests for '${e.fullName}'`,t)})).then((()=>{this.currentRefreshOperations.delete(e.dbID)}));return this.currentRefreshOperations.set(e.dbID,r),r}async fetchAndStorePullRequests(e,t){const n=ir.fromAccount(t),r=await this.db.getLastUpdated(e);return r?this.fetchAndStoreUpdatedPullRequests(n,e,r):this.fetchAndStoreOpenPullRequests(n,e)}async fetchAndStoreOpenPullRequests(e,t){const{name:n,owner:r}=uT(t),i=await e.fetchAllOpenPullRequests(r,n);await this.storePullRequestsAndEmitUpdate(i,t)}async fetchAndStoreUpdatedPullRequests(e,t,n){const{name:r,owner:i}=uT(t),s=await e.fetchUpdatedPullRequests(i,r,n).catch((e=>e instanceof tr||e instanceof mn?Promise.resolve(null):Promise.reject(e)));if(null!==s)return await this.storePullRequestsAndEmitUpdate(s,t);await this.db.deleteAllPullRequestsInRepository(t),await this.fetchAndStoreOpenPullRequests(e,t)}getLastRefreshed(e){return e.dbID?this.lastRefreshForRepository.get(e.dbID):void 0}async getAll(e){const t=await this.db.getAllPullRequestsInRepository(e),n=new Array,r=this.repositoryStore,i=kt()(r.findGitHubRepositoryByID.bind(r));for(const e of t){const t=await i(e.head.repoId),r=await i(e.base.repoId);if(null===t)return lt("head repository can't be null");if(null===r)return lt("base repository can't be null");n.push(new rm(new Date(e.createdAt),e.title,e.number,new nm(e.head.ref,e.head.sha,t),new nm(e.base.ref,e.base.sha,r),e.author,e.draft??!1,e.body))}return n.reverse()}async storePullRequestsAndEmitUpdate(e,t){await this.storePullRequests(e,t)&&this.emitPullRequestsChanged(t,await this.getAll(t))}async storePullRequests(e,t){if(0===e.length)return!1;let n=e[0].updated_at;const r=new Array,i=new Array,{endpoint:s}=t,o=this.repositoryStore,a=kt()(o.upsertGitHubRepositoryLight.bind(o),{cacheKey:(e,t)=>t.clone_url});for(const o of e){if(o.updated_at>n&&(n=o.updated_at),null===o.base.repo)return lt("PR cannot have a null base repo");const e=await a(s,o.base.repo);if("closed"===o.state){r.push(cT(e,o.number));continue}if(null==o.head.repo){log.debug(`Unable to store pull request #${o.number} for repository ${t.fullName} as it has no head repository associated with it`),r.push(cT(e,o.number));continue}const l=await a(s,o.head.repo);i.push({number:o.number,title:o.title,createdAt:o.created_at,updatedAt:o.updated_at,head:{ref:o.head.ref,sha:o.head.sha,repoId:l.dbID},base:{ref:o.base.ref,sha:o.base.sha,repoId:e.dbID},body:o.body,author:o.user.login,draft:o.draft??!1})}if(0===r.length&&1===i.length){const e=i[0],n=await this.db.getPullRequest(t,e.number);if(void 0!==n&&sp(e,n))return!1}return await this.db.transaction("rw",this.db.pullRequests,this.db.pullRequestsLastUpdated,(async()=>{await this.db.deletePullRequests(r),await this.db.putPullRequests(i),await this.db.setLastUpdated(t,new Date(n))})),!0}}(new class extends VR{constructor(e,t){super(e,t),this.conditionalVersion(1,{pullRequests:"id++, base.repoId"}),this.conditionalVersion(2,{pullRequestStatus:"id++, &[sha+pullRequestId]"}),this.conditionalVersion(3,{pullRequestStatus:"id++, &[sha+pullRequestId], pullRequestId"}),this.conditionalVersion(4,{}),this.conditionalVersion(5,{pullRequestStatus:null}),this.conditionalVersion(6,{pullRequests:null}),this.conditionalVersion(7,{pullRequests:"[base.repoId+number]",pullRequestsLastUpdated:"repoId"}),this.conditionalVersion(8,{},(async e=>{e.table("pullRequests").clear(),e.table("pullRequestsLastUpdated").clear()})),this.conditionalVersion(9,{},(async e=>{e.table("pullRequests").clear(),e.table("pullRequestsLastUpdated").clear()}))}async deleteAllPullRequestsInRepository(e){await this.transaction("rw",this.pullRequests,this.pullRequestsLastUpdated,(async()=>{await this.clearLastUpdated(e),await this.pullRequests.where("[base.repoId+number]").between([e.dbID],[e.dbID+1]).delete()}))}async deletePullRequests(e){await this.pullRequests.bulkDelete(e)}async putPullRequests(e){await this.pullRequests.bulkPut(e)}getAllPullRequestsInRepository(e){return this.pullRequests.where("[base.repoId+number]").between([e.dbID],[e.dbID+1]).toArray()}getPullRequest(e,t){return this.pullRequests.get([e.dbID,t])}async getLastUpdated(e){const t=await this.pullRequestsLastUpdated.get(e.dbID);return t?new Date(t.lastUpdated):null}async clearLastUpdated(e){await this.pullRequestsLastUpdated.delete(e.dbID)}async setLastUpdated(e,t){await this.pullRequestsLastUpdated.put({repoId:e.dbID,lastUpdated:t.getTime()})}}("PullRequestDatabase"),AU),DU=new class{pullRequestStore;repositoriesStore;currentPullRequestUpdater=null;repositories;prCache=new Map;emitter=new ft.Emitter;constructor(e,t){this.pullRequestStore=e,this.repositoriesStore=t,this.repositoriesStore.onDidUpdate((e=>{this.repositories=Promise.resolve(e.filter($r))})),this.repositories=this.repositoriesStore.getAll().then((e=>e.filter($r))).catch((e=>(log.error("PullRequestCoordinator: Error loading repositories",e),[])))}onPullRequestsChanged(e){return this.pullRequestStore.onPullRequestsChanged((async(t,n)=>{this.prCache.set(t.dbID,n);const r=dT(t,await this.repositories);for(const t of r)e(t,n)}))}onIsLoadingPullRequests(e){return this.emitter.on("onIsLoadingPullRequest",(t=>{const{repository:n,isLoadingPullRequests:r}=t;e(n,r)}))}async refreshPullRequests(e,t){const n=Gr(e),r=dT(n,await this.repositories);for(const e of r)this.emitIsLoadingPullRequests(e,!0);await this.pullRequestStore.refreshPullRequests(n,t);for(const e of r)this.emitIsLoadingPullRequests(e,!1)}getLastRefreshed(e){const t=Gr(e);return this.pullRequestStore.getLastRefreshed(t)}async getAllPullRequests(e){return this.getPullRequestsFor(Gr(e))}startPullRequestUpdater(e,t){null!==this.currentPullRequestUpdater&&this.stopPullRequestUpdater(),this.currentPullRequestUpdater=new pT(e,t,this),this.currentPullRequestUpdater.start()}stopPullRequestUpdater(){null!==this.currentPullRequestUpdater&&(this.currentPullRequestUpdater.stop(),this.currentPullRequestUpdater=null)}emitIsLoadingPullRequests(e,t){this.emitter.emit("onIsLoadingPullRequest",{repository:e,isLoadingPullRequests:t})}async getPullRequestsFor(e){return this.prCache.has(e.dbID)||this.prCache.set(e.dbID,await this.pullRequestStore.getAll(e)),this.prCache.get(e.dbID)||[]}}(xU,AU),_U=new class{statsStore;repositoryState=new Map;constructor(e){this.statsStore=e}get(e){const t=this.repositoryState.get(e.hash);if(null!=t)return t;const n={commitSelection:{shas:[],shasInDiff:[],isContiguous:!0,file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null},changesState:{workingDirectory:Yu.fromFiles(new Array),selection:{kind:nt.WorkingDirectory,selectedFileIDs:[],diff:null},commitMessage:yw,coAuthors:[],showCoAuthoredBy:!1,conflictState:null,stashEntry:null,currentBranchProtected:!1,currentRepoRulesInfo:new aC},selectedSection:tt.Changes,branchesState:{tip:{kind:Hr.Unknown},defaultBranch:null,upstreamDefaultBranch:null,allBranches:new Array,recentBranches:new Array,openPullRequests:new Array,currentPullRequest:null,isLoadingPullRequests:!1,forcePushBranches:new Map},compareState:{formState:{kind:rt.History},tip:null,mergeStatus:null,showBranchList:!1,filterText:"",commitSHAs:[],shasToHighlight:[],branches:new Array,recentBranches:new Array,defaultBranch:null},pullRequestState:null,commitAuthor:null,commitLookup:new Map,localCommitSHAs:[],localTags:null,tagsToPush:null,aheadBehind:null,remote:null,isPushPullFetchInProgress:!1,isCommitting:!1,commitToAmend:null,lastFetched:null,checkoutProgress:null,pushPullFetchProgress:null,revertProgress:null,multiCommitOperationUndoState:null,multiCommitOperationState:null};return this.repositoryState.set(e.hash,n),n}update(e,t){const n=this.get(e),r=xp(n,t(n)),i=n.branchesState.tip,s=r.branchesState.tip,o=null!==r.commitToAmend&&s.kind===Hr.Valid&&i.kind===Hr.Valid&&i.branch.tip.sha===s.branch.tip.sha&&s.branch.tip.sha===r.commitToAmend.sha&&null===r.changesState.conflictState;this.repositoryState.set(e.hash,{...r,commitToAmend:o?r.commitToAmend:null})}updateCompareState(e,t){this.update(e,(e=>{const n=e.compareState;return{compareState:xp(n,t(n))}}))}updateChangesState(e,t){this.update(e,(e=>{const n=e.changesState,r=xp(n,t(n));return this.recordSubmoduleDiffViewedFromChangesListIfNeeded(n,r),{changesState:r}}))}recordSubmoduleDiffViewedFromChangesListIfNeeded(e,t){if(t.selection.kind!==nt.WorkingDirectory||1!==t.selection.selectedFileIDs.length)return;const n=t.workingDirectory.findFileWithID(t.selection.selectedFileIDs[0]);null!==n&&void 0!==n.status.submoduleStatus&&(e.selection.kind===nt.WorkingDirectory&&1===e.selection.selectedFileIDs.length&&e.selection.selectedFileIDs[0]===n.id||this.statsStore.increment("submoduleDiffViewedFromChangesListCount"))}updateCommitSelection(e,t){this.update(e,(e=>{const{commitSelection:n}=e,r=xp(n,t(n));return this.recordSubmoduleDiffViewedFromHistoryIfNeeded(n,r),{commitSelection:r}}))}recordSubmoduleDiffViewedFromHistoryIfNeeded(e,t){e.file?.id!==t.file?.id&&void 0!==t.file?.status.submoduleStatus&&this.statsStore.increment("submoduleDiffViewedFromHistoryCount")}updateBranchesState(e,t){this.update(e,(e=>{const n=e.branchesState;return{branchesState:xp(n,t(n))}}))}updateMultiCommitOperationUndoState(e,t){this.update(e,(e=>{const{multiCommitOperationUndoState:n}=e,r=t(n);return{multiCommitOperationUndoState:null===r?null:xp(n,r)}}))}updateMultiCommitOperationState(e,t){this.update(e,(e=>{const{multiCommitOperationState:n}=e,r=t(n);if(null===n){const e=`Cannot update a null state, trying to update object with keys: ${Object.keys(r).join(", ")}`;return FT("multiCommitOperation",new Error(e)),{multiCommitOperationState:null}}return{multiCommitOperationState:xp(n,r)}}))}initializeMultiCommitOperationState(e,t){this.update(e,(()=>({multiCommitOperationState:t})))}clearMultiCommitOperationState(e){this.update(e,(()=>({multiCommitOperationState:null})))}initializePullRequestState(e,t){this.update(e,(()=>({pullRequestState:t})))}sendPullRequestStateNotExistsException(){FT("PullRequestState",new Error("Cannot update a null pull request state"))}updatePullRequestState(e,t){const{pullRequestState:n}=this.get(e);null!==n?this.update(e,(e=>{const n=e.pullRequestState;return{pullRequestState:null===n?null:xp(n,t(n))}})):this.sendPullRequestStateNotExistsException()}updatePullRequestCommitSelection(e,t){const{pullRequestState:n}=this.get(e);if(null===n)return void this.sendPullRequestStateNotExistsException();const r=n.commitSelection,i=null===r?null:xp(r,t(r));this.updatePullRequestState(e,(()=>({commitSelection:i})))}clearPullRequestState(e){this.update(e,(()=>({pullRequestState:null})))}}(EU),MU=new class extends Fp{accountState=new Map;constructor(e){super(),e.onDidUpdate(this.onAccountsChanged)}onAccountsChanged=e=>{const t=new Map;for(const n of e)for(const[e,r]of this.accountState.entries())if(pn(e,n)){t.set(n,r);break}this.accountState=t,this.emitUpdate()};updateAccount(e,t){const n=new Map(this.accountState),r=wH(e,n),i=n.get(r),s=xp(void 0===i?{loading:!1,repositories:[]}:i,t);n.set(r,s),this.accountState=n,this.emitUpdate()}getAccountState(e){return this.accountState.get(wH(e,this.accountState))}async loadRepositories(e){const t=this.getAccountState(e);if(t?.loading)return;this.updateAccount(e,{loading:!0});const n=new Map,r=new Map;t?.repositories.forEach((e=>{n.set(e.clone_url,e),r.set(e.clone_url,e)}));const i=t=>{t.forEach((e=>{r.set(e.clone_url,e),n.delete(e.clone_url)})),this.updateAccount(e,{repositories:[...r.values()]})},s=ir.fromAccount(wH(e,this.accountState));await s.streamUserRepositories(i,void 0,{continue:async()=>(await Promise.all([s.streamUserRepositories(i,"owner"),s.streamUserRepositories(i,"collaborator"),s.streamUserRepositories(i,"organization_member")]),!1)}),n.size&&(n.forEach(((e,t)=>r.delete(t))),this.updateAccount(e,{repositories:[...r.values()]})),this.updateAccount(e,{loading:!1})}getState(){return this.accountState}}(RU),PU=new class{accounts=[];backgroundRefreshHandle=null;refreshQueued=!1;subscriptions=new Map;cache=new(Tt())({maxSize:250});queue=new Set;limit=vH()(6);constructor(e){e.getAll().then(this.onAccountsUpdated),e.onDidUpdate(this.onAccountsUpdated)}onAccountsUpdated=e=>{this.accounts=e};startBackgroundRefresh(){null===this.backgroundRefreshHandle&&(this.backgroundRefreshHandle=window.setInterval((()=>this.queueRefresh()),18e4),this.queueRefresh())}stopBackgroundRefresh(){null!==this.backgroundRefreshHandle&&(window.clearInterval(this.backgroundRefreshHandle),this.backgroundRefreshHandle=null)}queueRefresh(){this.refreshQueued||(this.refreshQueued=!0,setImmediate((()=>{this.refreshQueued=!1,this.refreshEligibleSubscriptions()})))}refreshEligibleSubscriptions(){for(const e of this.subscriptions.keys()){if(this.queue.has(e))continue;const t=this.cache.get(e);t&&!kH(t)||(this.limit((()=>this.refreshSubscription(e))).catch((e=>log.error("Failed refreshing commit status",e))).then((()=>this.queue.delete(e))),this.queue.add(e))}}async manualRefreshSubscription(e,t,n){const r=EH(e,t),i=this.subscriptions.get(r);if(void 0===i)return;const s=this.cache.get(r)?.check;if(null==s)return;const o=function(e,t){const n=[];for(const r of e){const e=t.find((e=>r.id===e.id));void 0!==e?n.push({...r,status:Yn.InProgress,conclusion:null,actionJobSteps:r.actionJobSteps?.map((e=>({...e,status:Yn.InProgress,conclusion:null})))}):n.push(r)}return Pb(n)}(s.checks,n);this.cache.set(r,{check:o,fetchedAt:new Date}),i.callbacks.forEach((e=>e(o)))}async refreshSubscription(e){const t=this.subscriptions.get(e);if(void 0===t)return;const{endpoint:n,owner:r,name:i,ref:s}=t,o=this.accounts.find((e=>e.endpoint===n));if(void 0===o)return;const a=ir.fromAccount(o),[l,c]=await Promise.all([a.fetchCombinedRefStatus(r,i,s),a.fetchRefCheckRuns(r,i,s)]),u=new Array;if(null===l&&null===c){const t=this.cache.get(e)?.check??null;return void this.cache.set(e,{check:t,fetchedAt:new Date})}if(null!==l&&u.push(...l.statuses.map(Ab)),null!==c){const e=Lb(c.check_runs);u.push(...e.map(Mb))}let h=null;void 0!==t.branchName&&(h=await this.getAndMapActionWorkflowRunsToCheckRuns(u,e,t.branchName));const p=Pb(h??u);this.cache.set(e,{check:p,fetchedAt:new Date}),t.callbacks.forEach((e=>e(p)))}async getAndMapActionWorkflowRunsToCheckRuns(e,t,n){const r=this.cache.get(t);if(void 0!==r&&null!==r.check&&r.check.checks.some((e=>void 0!==e.actionsWorkflow))&&0===SH()(r.check.checks.map((e=>e.id)),e.map((e=>e.id))).length){const t=new Array;for(const n of e){const e=r.check.checks.find((e=>e.id===n.id));if(void 0===e){t.push(n);continue}const{actionsWorkflow:i,actionJobSteps:s}=e;t.push({...n,actionsWorkflow:i,actionJobSteps:s})}return t}const i=await this.getCheckRunActionsWorkflowRuns(t,n,e);return await this.mapActionWorkflowRunsJobsToCheckRuns(t,i)}tryGetStatus(e,t,n){const r=EH(e,t);return void 0!==n&&this.subscriptions.get(r)?.branchName!==n?null:this.cache.get(r)?.check??null}getOrCreateSubscription(e,t,n){const r=EH(e,t);let i=this.subscriptions.get(r);if(void 0!==i){if(i.branchName===n)return i;const e={...i,branchName:n};this.subscriptions.set(r,e);const t=this.cache.get(r);return void 0!==t&&this.cache.set(r,{...t,fetchedAt:new Date(_t(-61,"minutes"))}),e}return i={endpoint:e.endpoint,owner:e.owner.login,name:e.name,ref:t,callbacks:new Set,branchName:n},this.subscriptions.set(r,i),i}subscribe(e,t,n,r){const i=EH(e,t),s=this.getOrCreateSubscription(e,t,r);return s.callbacks.add(n),this.queueRefresh(),new ft.Disposable((()=>{s.callbacks.delete(n),0===s.callbacks.size&&this.subscriptions.delete(i)}))}async getCheckRunActionsWorkflowRuns(e,t,n){const r=this.subscriptions.get(e);if(void 0===r)return n;const{endpoint:i,owner:s,name:o}=r,a=this.accounts.find((e=>e.endpoint===i));return void 0===a?n:Fb(a,s,o,t,n)}async mapActionWorkflowRunsJobsToCheckRuns(e,t){const n=this.subscriptions.get(e);if(void 0===n)return t;const{endpoint:r,owner:i,name:s}=n,o=this.accounts.find((e=>e.endpoint===r));return void 0===o?t:Bb(ir.fromAccount(o),i,s,t)}async rerequestCheckSuite(e,t){const{owner:n,name:r}=e,i=ur(this.accounts,e.endpoint);return null!==i&&ir.fromAccount(i).rerequestCheckSuite(n.login,r,t)}async rerunJob(e,t){const{owner:n,name:r}=e,i=ur(this.accounts,e.endpoint);return null!==i&&ir.fromAccount(i).rerunJob(n.login,r,t)}async rerunFailedJobs(e,t){const{owner:n,name:r}=e,i=ur(this.accounts,e.endpoint);return null!==i&&ir.fromAccount(i).rerunFailedJobs(n.login,r,t)}async fetchCheckSuite(e,t){const{owner:n,name:r}=e,i=ur(this.accounts,e.endpoint);return null===i?null:ir.fromAccount(i).fetchCheckSuite(n.login,r,t)}}(RU),IU=new class{cache=new(Tt())({maxSize:2500});workers=new Map;limit=vH()(1);tryGetAheadBehind(e,t,n){return this.cache.get(RH(e,t,n))??void 0}getAheadBehind(e,t,n,r){const i=RH(e,t,n),s=this.cache.get(i),o=new ft.Disposable((()=>{}));return null===s?o:void 0!==s?(r(s),o):(this.limit((async()=>{const s=this.cache.get(i);if(o.disposed||null===s)return;if(void 0!==s)return void r(s);let a=this.workers.get(i);void 0===a&&(a=Zg(e,Ug(t,n)).catch((e=>(log.error("Failed calculating ahead/behind status",e),null))).then((e=>(this.cache.set(i,e),e))).finally((()=>this.workers.delete(i))),this.workers.set(i,a));const l=await a;null===l||o.disposed||r(l)})).catch((e=>log.error("Failed calculating ahead/behind status",e))),o)}},OU=new class{accountsStore;ALIVE_EVENT_RECEIVED_EVENT="alive-event-received";sessionPerEndpoint=new Map;emitter=new ft.Emitter;subscriptions=[];enabled=!1;accountSubscriptionPromise=null;constructor(e){this.accountsStore=e,this.accountsStore.onDidUpdate(this.subscribeToAccounts)}setEnabled(e){this.enabled!==e&&(this.enabled=e,e?this.subscribeToAllAccounts():this.unsubscribeFromAllAccounts())}onAliveEventReceived(e){this.emitter.on(this.ALIVE_EVENT_RECEIVED_EVENT,e)}async subscribeToAllAccounts(){const e=await this.accountsStore.getAll();this.subscribeToAccounts(e)}async unsubscribeFromAllAccounts(){await this.accountSubscriptionPromise;const e=this.subscriptions.map((e=>e.account));for(const t of e)this.unsubscribeFromAccount(t)}subscribeToAccounts=async e=>{this.enabled&&(await this.accountSubscriptionPromise,this.accountSubscriptionPromise=this._subscribeToAccounts(e))};async _subscribeToAccounts(e){const t=this.subscriptions.map((e=>e.account));for(const n of t)YH(n,e)||this.unsubscribeFromAccount(n);for(const n of e)YH(n,t)||await this.subscribeToAccount(n)}sessionForAccount(e){return this.sessionPerEndpoint.get(e.endpoint)}async createSessionForAccount(e){const t=this.sessionForAccount(e);if(void 0!==t)return t;const n=ir.fromAccount(e);let r=null;try{r=await n.getAliveWebSocketURL()}catch(t){return log.error(`Could not get Alive web socket URL for '${e.login}'`,t),null}if(null===r)return null;const i={session:new KH(r,(()=>n.getAliveWebSocketURL()),!1,this.notify),webSocketUrl:r};return this.sessionPerEndpoint.set(e.endpoint,i),i}unsubscribeFromAccount(e){const t=this.sessionForAccount(e);if(void 0===t)return;const n=this.subscriptions.find((t=>pn(t.account,e)));void 0!==n&&(t.session.unsubscribe([n.subscription]),this.subscriptions=this.subscriptions.filter((t=>!pn(t.account,e))),this.sessionPerEndpoint.delete(e.endpoint),t.session.offline(),log.info(`Unubscribed '${e.login}' from Alive channel`))}subscribeToAccount=async e=>{if(!Zn(e.endpoint))return;const t=await this.createSessionForAccount(e),n=ir.fromAccount(e),r=await n.getAliveDesktopChannel();if(null===t||null===r)return;const i={subscriber:this,topic:{name:r.channel_name,signed:r.signed_channel,offset:""}};t.session.subscribe([i]),this.subscriptions.push({account:e,subscription:i}),log.info(`Subscribed '${e.login}' to Alive channel`)};notify=(e,t)=>{if("message"!==t.type)return;const n=t.data;"pr-checks-failed"!==n.type&&"pr-review-submit"!==n.type&&"pr-comment"!==n.type||this.emitter.emit(this.ALIVE_EVENT_RECEIVED_EVENT,n)}}(RU),NU=new class{accountsStore;aliveStore;pullRequestCoordinator;statsStore;repository=null;recentRepositories=[];onChecksFailedCallback=null;onPullRequestReviewSubmitCallback=null;onPullRequestCommentCallback=null;cachedCommits=new Map;skipCommitShas=new Set;skipCheckRuns=new Set;constructor(e,t,n,r){this.accountsStore=e,this.aliveStore=t,this.pullRequestCoordinator=n,this.statsStore=r,this.aliveStore.setEnabled(Yb()),this.aliveStore.onAliveEventReceived(this.onAliveEventReceived)}setNotificationsEnabled(e){Ht(Kb,!0)!==e&&(Ut(Kb,e),this.aliveStore.setEnabled(e))}onAliveEventReceived=async e=>this.handleAliveEvent(e,!1);onNotificationEventReceived=async(e,t,n)=>this.handleAliveEvent(n,!0);simulateAliveEvent(e){}async handleAliveEvent(e,t){switch(e.type){case"pr-checks-failed":return this.handleChecksFailedEvent(e,t);case"pr-review-submit":return this.handlePullRequestReviewSubmitEvent(e,t);case"pr-comment":return this.handlePullRequestCommentEvent(e,t)}}async handlePullRequestCommentEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("pullRequestCommentNotificationFromRecentRepoCount"):this.statsStore.increment("pullRequestCommentNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const i=await this.getAPIForRepository(n.gitHubRepository);if(null===i)return;const s="issue-comment"===e.subtype?await i.fetchIssueComment(e.owner,e.repo,e.comment_id):await i.fetchPullRequestReviewComment(e.owner,e.repo,e.comment_id);if(null===s)return;const o=`@${s.user.login} commented on your pull request`,a=`${r.title} #${r.pullRequestNumber}\n${zb(s.body,50)}`,l=()=>{this.statsStore.increment("pullRequestCommentNotificationClicked"),this.onPullRequestCommentCallback?.(n,r,s)};t?l():(Gb({title:o,body:a,userInfo:e,onClick:l}),this.statsStore.increment("pullRequestCommentNotificationCount"))}async handlePullRequestReviewSubmitEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("pullRequestReviewNotificationFromRecentRepoCount"):this.statsStore.increment("pullRequestReviewNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const i=this.getContributingRepository(n),s=await this.getAPIForRepository(i);if(null===s)return;const o=await s.fetchPullRequestReview(i.owner.login,i.name,r.pullRequestNumber.toString(),e.review_id);if(null===o||!jb(o))return;const a=Eb(o),l=`@${o.user.login} ${a} your pull request`,c=`${r.title} #${r.pullRequestNumber}\n${zb(o.body,50)}`,u=()=>{this.statsStore.recordPullRequestReviewNotificationClicked(o.state),this.onPullRequestReviewSubmitCallback?.(n,r,o)};t?u():(Gb({title:l,body:c,userInfo:e,onClick:u}),this.statsStore.recordPullRequestReviewNotificationShown(o.state))}async handleChecksFailedEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("checksFailedNotificationFromRecentRepoCount"):this.statsStore.increment("checksFailedNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const i=await this.getAccountForRepository(n.gitHubRepository);if(null===i)return;const s=e.commit_sha;if(this.skipCommitShas.has(s))return;const o=this.cachedCommits.get(s)??await ff(n,s);if(null===o)return void this.skipCommitShas.add(s);if(this.cachedCommits.set(s,o),!i.emails.map((e=>e.email)).includes(o.author.email))return void this.skipCommitShas.add(s);const a=this.getContributingRepository(n),l=await this.getChecksForRef(a,tm(r.pullRequestNumber));if(null===l)return;if(l.flatMap((t=>t.checkSuiteId===e.check_suite_id?t.id:[])).every((e=>this.skipCheckRuns.has(e))))return;const c=l.filter((e=>e.conclusion===Xn.Failure)).length;if(0===c)return;for(const e of l)this.skipCheckRuns.add(e.id);const u=1===c?"check was":"checks were",h=Jd(s),p=`${r.title} #${r.pullRequestNumber} (${h})\n${c} ${u} not successful.`,d=()=>{this.statsStore.increment("checksFailedNotificationClicked"),this.onChecksFailedCallback?.(n,r,l)};t?d():(Gb({title:"拉取请求检查失败",body:p,userInfo:e,onClick:d}),this.statsStore.increment("checksFailedNotificationCount"))}getContributingRepository(e){return Wr(e)&&zr(e)===Br.Parent?e.gitHubRepository.parent:e.gitHubRepository}isValidRepositoryForEvent(e,t){if(Wr(e)&&zr(e)===Br.Parent){const n=e.gitHubRepository.parent;return n.owner.login===t.owner&&n.name===t.repo}const n=e.gitHubRepository;return n.owner.login===t.owner&&n.name===t.repo}isRecentRepositoryEvent(e){return this.recentRepositories.some((t=>$r(t)&&this.isValidRepositoryForEvent(t,e)))}selectRepository(e){e.hash!==this.repository?.hash&&(this.repository=$r(e)?e:null,this.resetCache())}resetCache(){this.cachedCommits.clear(),this.skipCommitShas.clear(),this.skipCheckRuns.clear()}setRecentRepositories(e){this.recentRepositories=e}async getAccountForRepository(e){const{endpoint:t}=e;return(await this.accountsStore.getAll()).find((e=>e.endpoint===t))??null}async getAPIForRepository(e){const t=await this.getAccountForRepository(e);return null===t?null:ir.fromAccount(t)}async getChecksForRef(e,t){const{owner:n,name:r}=e,i=await this.getAPIForRepository(e);if(null===i)return null;const[s,o]=await Promise.all([i.fetchCombinedRefStatus(n.login,r,t,!0),i.fetchRefCheckRuns(n.login,r,t,!0)]),a=new Array;if(null===s||null===o)return null;if(null!==s&&a.push(...s.statuses.map(Ab)),null!==o){const e=Lb(o.check_runs);a.push(...e.map(Mb))}const l=Pb(a);return null===l||0===l.checks.length?null:l.checks}onChecksFailedNotification(e){this.onChecksFailedCallback=e}onPullRequestReviewSubmitNotification(e){this.onPullRequestReviewSubmitCallback=e}onPullRequestCommentNotification(e){this.onPullRequestCommentCallback=e}}(RU,OU,DU,EU),LU=new class{accountsStore;notificationsStore;pullRequestCoordinator;cachedComments=new Map;cachedReviews=new Map;constructor(e,t,n){this.accountsStore=e,this.notificationsStore=t,this.pullRequestCoordinator=n}async getAccountForRepository(e){const{endpoint:t}=e;return(await this.accountsStore.getAll()).find((e=>e.endpoint===t))??null}async getAPIForRepository(e){const t=await this.getAccountForRepository(e);return null===t?null:ir.fromAccount(t)}async getPullRequests(e,t){const n=await this.pullRequestCoordinator.getAllPullRequests(e);if(!t.filterByComments&&!t.filterByReviews)return n;const r=[];for(const i of n){if(t.filterByComments){const t=this.cachedComments.get(i.pullRequestNumber);if(t&&t.length>0){r.push(i);continue}const n=await this.getPullRequestComments(e,i.pullRequestNumber);this.cachedComments.set(i.pullRequestNumber,n),n.length>0&&r.push(i)}if(t.filterByReviews){const t=this.cachedReviews.get(i.pullRequestNumber);if(t&&t.length>0){r.push(i);continue}const n=await this.getPullRequestReviews(e,i.pullRequestNumber);this.cachedReviews.set(i.pullRequestNumber,n),n.length>0&&r.push(i)}}return r}async getPullRequestReviews(e,t){const n=this.cachedReviews.get(t);if(n)return n;const r=await this.getAPIForRepository(e.gitHubRepository);if(null===r)return[];const i=e.gitHubRepository;return(await r.fetchPullRequestReviews(i.owner.login,i.name,t.toString())).filter(jb)}async getPullRequestComments(e,t){const n=this.cachedComments.get(t);if(n)return n;const r=await this.getAPIForRepository(e.gitHubRepository);if(null===r)return[];const i=e.gitHubRepository;return[...await r.fetchIssueComments(i.owner.login,i.name,t.toString()),...await r.fetchPullRequestComments(i.owner.login,i.name,t.toString())]}simulatePullRequestReviewNotification(e,t,n){this.notificationsStore.simulateAliveEvent({type:"pr-review-submit",timestamp:new Date(n.submitted_at).getTime(),owner:e.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,state:n.state,review_id:n.id.toString()})}simulatePullRequestCommentNotification(e,t,n,r){this.notificationsStore.simulateAliveEvent({type:"pr-comment",subtype:r?"issue-comment":"review-comment",timestamp:new Date(n.created_at).getTime(),owner:e.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,comment_id:n.id.toString()})}async simulatePullRequestChecksFailed(e,t,n){const r=t.head.sha,i=tm(t.pullRequestNumber),s=await this.notificationsStore.getChecksForRef(e.gitHubRepository,i);if(!s)return void HO(new Error("Could not get checks for PR"),n);const o={type:"pr-checks-failed",timestamp:new Date(t.created).getTime(),owner:e.gitHubRepository.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,check_suite_id:s[0].checkSuiteId??0,commit_sha:r},a=s.filter((e=>e.conclusion===Xn.Failure)).length,l=1===a?"check was":"checks were",c=Jd(r);Gb({title:"拉取请求检查失败",body:`${t.title} #${t.pullRequestNumber} (${c})\n${a} ${l} not successful.`,userInfo:o,onClick:()=>{n.onChecksFailedNotification(e,t,s)}})}}(RU,NU,DU),BU=new class extends Hp{gitHubUserStore;cloningRepositoriesStore;issuesStore;statsStore;signInStore;accountsStore;repositoriesStore;pullRequestCoordinator;repositoryStateCache;apiRepositoriesStore;notificationsStore;gitStoreCache;accounts=new Array;repositories=new Array;recentRepositories=new Array;selectedRepository=null;currentBackgroundFetcher=null;currentBranchPruner=null;repositoryIndicatorUpdater;showWelcomeFlow=!1;focusCommitMessage=!1;currentFoldout=null;currentBanner=null;emitQueued=!1;localRepositoryStateLookup=new Map;emoji=new Map;appMenu=null;highlightAccessKeys=!1;appIsFocused=!1;sidebarWidth=QC(250);commitSummaryWidth=QC(250);stashedFilesWidth=QC(250);pullRequestFileListWidth=QC(250);windowState=null;windowZoomFactor=1;resizablePaneActive=!1;isUpdateAvailableBannerVisible=!1;isUpdateShowcaseVisible=!1;askToMoveToApplicationsFolderSetting=!0;useExternalCredentialHelper=!1;askForConfirmationOnRepositoryRemoval=!0;confirmDiscardChanges=!0;confirmDiscardChangesPermanently=!0;confirmDiscardStash=!0;confirmCheckoutCommit=!0;askForConfirmationOnForcePush=!0;confirmUndoCommit=!0;imageDiffType=PC;hideWhitespaceInChangesDiff=!1;hideWhitespaceInHistoryDiff=!1;hideWhitespaceInPullRequestDiff=!1;commitSpellcheckEnabled=!0;showSideBySideDiff=!1;uncommittedChangesStrategy=jw;selectedExternalEditor=null;resolvedExternalEditor=null;selectedShell=iw;repositoryFilterText="";currentMergeTreePromise=null;resolveOpenInDesktop=null;selectedCloneRepositoryTab=Ur.DotCom;selectedBranchesTab=qp.Branches;selectedTheme=Dp.System;currentTheme=Dp.Light;selectedTabSize=8;titleBarStyle="native";useWindowsOpenSSH=!1;showCommitLengthWarning=!1;hasUserViewedStash=!1;repositoryIndicatorsEnabled;currentOnboardingTutorialStep=Yw.NotApplicable;tutorialAssessor;currentDragElement=null;lastThankYou;useCustomEditor=!1;customEditor=null;useCustomShell=!1;customShell=null;showCIStatusPopover=!1;popupManager=new ev;pullRequestSuggestedNextAction=void 0;showDiffCheckMarks=KC;cachedRepoRulesets=new Map;underlineLinks=jC;constructor(e,t,n,r,i,s,o,a,l,c,u){super(),this.gitHubUserStore=e,this.cloningRepositoriesStore=t,this.issuesStore=n,this.statsStore=r,this.signInStore=i,this.accountsStore=s,this.repositoriesStore=o,this.pullRequestCoordinator=a,this.repositoryStateCache=l,this.apiRepositoriesStore=c,this.notificationsStore=u,this.showWelcomeFlow=!Ap(),this.gitStoreCache=new Fw(pt,this.statsStore,((e,t)=>this.onGitStoreUpdated(e,t)),(e=>this.emitError(e))),window.addEventListener("resize",(()=>{this.updateResizableConstraints(),this.emitUpdate()})),this.initializeWindowState(),this.initializeZoomFactor(),this.wireupIpcEventHandlers(),this.wireupStoreEventHandlers(),se(),this.tutorialAssessor=new nb(this.getResolvedExternalEditor),void 0===Ht(UC)&&Ut(UC,!0),this.repositoryIndicatorsEnabled=Ht(UC)??!0,this.repositoryIndicatorUpdater=new ub(this.getRepositoriesForIndicatorRefresh,this.refreshIndicatorForRepository),window.setTimeout((()=>{this.repositoryIndicatorsEnabled&&this.repositoryIndicatorUpdater.start()}),12e4),ir.onTokenInvalidated(this.onTokenInvalidated),this.notificationsStore.onChecksFailedNotification(this.onChecksFailedNotification),this.notificationsStore.onPullRequestReviewSubmitNotification(this.onPullRequestReviewSubmitNotification),this.notificationsStore.onPullRequestCommentNotification(this.onPullRequestCommentNotification),y("show-installing-update",this.onShowInstallingUpdate)}initializeWindowState=async()=>{const e=await F();void 0!==e&&(this.windowState=e)};initializeZoomFactor=async()=>{const e=await this.getWindowZoomFactor();void 0!==e&&this.onWindowZoomFactorChanged(e)};async getWindowZoomFactor(){return await H()}onTokenInvalidated=(e,t)=>{const n=ur(this.accounts,e);null!==n&&(n.token&&n.token!==t?log.error(`Token for ${e} invalidated but token mismatch`):(this._removeAccount(n),this._showPopup({type:dh.InvalidatedToken,account:n})))};onShowInstallingUpdate=()=>{this._showPopup({type:dh.InstallingUpdate})};async updateCurrentTutorialStep(e){const t=await this.tutorialAssessor.getCurrentStep(e.isTutorialRepository,this.repositoryStateCache.get(e));t!==this.currentOnboardingTutorialStep&&(this.currentOnboardingTutorialStep=t,log.info(`Current tutorial step is now ${t}`),this.recordTutorialStepCompleted(t),this.emitUpdate())}recordTutorialStepCompleted(e){if(Xw(e))switch(this.statsStore.recordHighestTutorialStepCompleted(Qw.indexOf(e)),e){case Yw.PickEditor:break;case Yw.CreateBranch:this.statsStore.recordTutorialEditorInstalled();break;case Yw.EditFile:this.statsStore.recordTutorialBranchCreated();break;case Yw.MakeCommit:this.statsStore.recordTutorialFileEdited();break;case Yw.PushBranch:this.statsStore.recordTutorialCommitCreated();break;case Yw.OpenPullRequest:this.statsStore.recordTutorialBranchPushed();break;case Yw.AllDone:this.statsStore.recordTutorialPrCreated(),this.statsStore.recordTutorialCompleted();break;case Yw.Announced:break;default:ct(0,"Unaccounted for step type")}}async _resumeTutorial(e){this.tutorialAssessor.resumeTutorial(),await this.updateCurrentTutorialStep(e)}async _pauseTutorial(e){this.tutorialAssessor.pauseTutorial(),await this.updateCurrentTutorialStep(e)}async _skipPickEditorTutorialStep(e){this.tutorialAssessor.skipPickEditor(),await this.updateCurrentTutorialStep(e)}async _markPullRequestTutorialStepAsComplete(e){this.tutorialAssessor.markPullRequestTutorialStepAsComplete(),await this.updateCurrentTutorialStep(e)}async _markTutorialCompletionAsAnnounced(e){this.tutorialAssessor.markTutorialCompletionAsAnnounced(),await this.updateCurrentTutorialStep(e)}wireupIpcEventHandlers(){y("window-state-changed",((e,t)=>{this.windowState=t,this.emitUpdate()})),y("zoom-factor-changed",((e,t)=>{this.onWindowZoomFactorChanged(t)})),y("app-menu",((e,t)=>this.setAppMenu(t)))}wireupStoreEventHandlers(){this.gitHubUserStore.onDidUpdate((()=>{this.emitUpdate()})),this.cloningRepositoriesStore.onDidUpdate((()=>{this.emitUpdate()})),this.cloningRepositoriesStore.onDidError((e=>this.emitError(e))),this.signInStore.onDidAuthenticate(((e,t)=>{this._addAccount(e),this.showWelcomeFlow&&this.statsStore.recordWelcomeWizardSignInMethod(t)})),this.signInStore.onDidUpdate((()=>this.emitUpdate())),this.signInStore.onDidError((e=>this.emitError(e))),this.accountsStore.onDidUpdate((e=>{this.accounts=e;const t=e.map((({endpoint:e,token:t})=>({endpoint:e,token:t})));he(t),this.emitUpdate()})),this.accountsStore.onDidError((e=>this.emitError(e))),this.repositoriesStore.onDidUpdate((e=>{this.repositories=e,this.updateRepositorySelectionAfterRepositoriesChanged(),this.emitUpdate()})),this.pullRequestCoordinator.onPullRequestsChanged(((e,t)=>this.onPullRequestChanged(e,t))),this.pullRequestCoordinator.onIsLoadingPullRequests(((e,t)=>{this.repositoryStateCache.updateBranchesState(e,(()=>({isLoadingPullRequests:t}))),this.emitUpdate()})),this.apiRepositoriesStore.onDidUpdate((()=>this.emitUpdate())),this.apiRepositoriesStore.onDidError((e=>this.emitError(e)))}async loadEmoji(){var e;(e=await St(),new Promise(((n,r)=>{const s=t.join(e,"emoji.json");i.readFile(s,"utf8",((e,t)=>{if(e)return void r(e);const i=new Map;try{JSON.parse(t).forEach((e=>{const t=e.emoji?function(e){const t=e.codePointAt(0);if(!t)return null;let n=gw(t);if(e.length>2){const t=e.codePointAt(2);t&&65039!==t&&(n=`${n}-${gw(t)}`)}return fw(`unicode/${n}.png`)}(e.emoji):fw(`${e.aliases[0]}.png`);t?e.aliases.forEach((e=>{i.set(`:${e}:`,t)})):log.error(`Could not calculate location of emoji: ${e}`)}))}catch(e){r(e)}const s=new Map;Array.from(i.keys()).sort().forEach((e=>{const t=i.get(e);t&&s.set(e,t)})),n(s)}))}))).then((e=>{this.emoji=e,this.emitUpdate()})).catch((e=>{log.warn("Unexpected issue when trying to read emoji into memory",e)}))}emitUpdate(){"hidden"!==this.windowState?this.emitQueued||(this.emitQueued=!0,window.requestAnimationFrame((()=>{this.emitUpdateNow()}))):this.emitUpdateNow()}emitUpdateNow(){this.emitQueued=!1;const e=this.getState();super.emitUpdate(e),function(e,t){const n=Yy(e);if(t)for(const[e,r]of n.entries()){const i=t.getItemById(e);i&&jy(r,i)&&n.delete(e)}if(0===n.size)return;const r=new Array;n.forEach(((e,t)=>r.push({id:t,state:e}))),D(r)}(e,this.appMenu)}onWindowZoomFactorChanged(e){const t=this.windowZoomFactor;this.windowZoomFactor=e,e!==t&&($t("zoom-factor",e),this.updateResizableConstraints(),this.emitUpdate())}getSelectedState(){const e=this.selectedRepository;if(!e)return null;if(e instanceof ti){const t=this.cloningRepositoriesStore.getRepositoryState(e);return t?{type:Je.CloningRepository,repository:e,progress:t}:null}return e.missing?{type:Je.MissingRepository,repository:e}:{type:Je.Repository,repository:e,state:this.repositoryStateCache.get(e)}}getState(){const e=[...this.repositories,...this.cloningRepositoriesStore.repositories];return{accounts:this.accounts,repositories:e,recentRepositories:this.recentRepositories,localRepositoryStateLookup:this.localRepositoryStateLookup,windowState:this.windowState,windowZoomFactor:this.windowZoomFactor,appIsFocused:this.appIsFocused,selectedState:this.getSelectedState(),signInState:this.signInStore.getState(),currentPopup:this.popupManager.currentPopup,allPopups:this.popupManager.allPopups,currentFoldout:this.currentFoldout,errorCount:this.popupManager.getPopupsOfType(dh.Error).length,showWelcomeFlow:this.showWelcomeFlow,focusCommitMessage:this.focusCommitMessage,emoji:this.emoji,sidebarWidth:this.sidebarWidth,commitSummaryWidth:this.commitSummaryWidth,stashedFilesWidth:this.stashedFilesWidth,pullRequestFilesListWidth:this.pullRequestFileListWidth,appMenuState:this.appMenu?this.appMenu.openMenus:[],highlightAccessKeys:this.highlightAccessKeys,isUpdateAvailableBannerVisible:this.isUpdateAvailableBannerVisible,isUpdateShowcaseVisible:this.isUpdateShowcaseVisible,currentBanner:this.currentBanner,askToMoveToApplicationsFolderSetting:this.askToMoveToApplicationsFolderSetting,useExternalCredentialHelper:this.useExternalCredentialHelper,askForConfirmationOnRepositoryRemoval:this.askForConfirmationOnRepositoryRemoval,askForConfirmationOnDiscardChanges:this.confirmDiscardChanges,askForConfirmationOnDiscardChangesPermanently:this.confirmDiscardChangesPermanently,askForConfirmationOnDiscardStash:this.confirmDiscardStash,askForConfirmationOnCheckoutCommit:this.confirmCheckoutCommit,askForConfirmationOnForcePush:this.askForConfirmationOnForcePush,askForConfirmationOnUndoCommit:this.confirmUndoCommit,uncommittedChangesStrategy:this.uncommittedChangesStrategy,selectedExternalEditor:this.selectedExternalEditor,imageDiffType:this.imageDiffType,hideWhitespaceInChangesDiff:this.hideWhitespaceInChangesDiff,hideWhitespaceInHistoryDiff:this.hideWhitespaceInHistoryDiff,hideWhitespaceInPullRequestDiff:this.hideWhitespaceInPullRequestDiff,showSideBySideDiff:this.showSideBySideDiff,selectedShell:this.selectedShell,repositoryFilterText:this.repositoryFilterText,resolvedExternalEditor:this.resolvedExternalEditor,selectedCloneRepositoryTab:this.selectedCloneRepositoryTab,selectedBranchesTab:this.selectedBranchesTab,selectedTheme:this.selectedTheme,currentTheme:this.currentTheme,selectedTabSize:this.selectedTabSize,titleBarStyle:this.titleBarStyle,apiRepositories:this.apiRepositoriesStore.getState(),useWindowsOpenSSH:this.useWindowsOpenSSH,showCommitLengthWarning:this.showCommitLengthWarning,optOutOfUsageTracking:this.statsStore.getOptOut(),currentOnboardingTutorialStep:this.currentOnboardingTutorialStep,repositoryIndicatorsEnabled:this.repositoryIndicatorsEnabled,commitSpellcheckEnabled:this.commitSpellcheckEnabled,currentDragElement:this.currentDragElement,lastThankYou:this.lastThankYou,useCustomEditor:this.useCustomEditor,customEditor:this.customEditor,useCustomShell:this.useCustomShell,customShell:this.customShell,showCIStatusPopover:this.showCIStatusPopover,notificationsEnabled:Yb(),pullRequestSuggestedNextAction:this.pullRequestSuggestedNextAction,resizablePaneActive:this.resizablePaneActive,cachedRepoRulesets:this.cachedRepoRulesets,underlineLinks:this.underlineLinks,showDiffCheckMarks:this.showDiffCheckMarks}}onGitStoreUpdated(e,t){const n=this.repositoryStateCache.get(e);this.repositoryStateCache.updateBranchesState(e,(r=>{let{currentPullRequest:i}=r;const{tip:s,currentRemote:o}=t;if(!function(e,t){if(e===t)return!0;const n=e.kind;switch(e.kind){case Hr.Unknown:return e.kind===t.kind;case Hr.Unborn:return e.kind===t.kind&&e.ref===t.ref;case Hr.Detached:return e.kind===t.kind&&e.currentSha===t.currentSha;case Hr.Valid:return e.kind===t.kind&&function(e,t){return e.type===t.type&&e.tip.sha===t.tip.sha&&e.upstreamRemoteName===t.upstreamRemoteName&&e.upstream===t.upstream}(e.branch,t.branch);default:return ct(0,`Unknown tip state ${n}`)}}(r.tip,s)||!function(e,t){return e===t||null!==e&&null!==t&&e.name===t.name&&e.url===t.url}(n.remote,o))if(s.kind!==Hr.Valid||null===o)i=null;else{const{branch:t}=s;i&&ib(t,i,o)||(i=rb(t,r.openPullRequests,o)),s.kind===Hr.Valid&&r.tip.kind===Hr.Valid&&s.branch.name!==r.tip.branch.name&&this.refreshBranchProtectionState(e)}return{tip:t.tip,defaultBranch:t.defaultBranch,upstreamDefaultBranch:t.upstreamDefaultBranch,allBranches:t.allBranches,recentBranches:t.recentBranches,pullWithRebase:t.pullWithRebase,currentPullRequest:i}}));let r=!1,i=!1;this.repositoryStateCache.updateChangesState(e,(e=>{const n=t.currentBranchStashEntry;return e.selection.kind===nt.Stash&&null!==e.stashEntry&&(null===n?r=!0:e.stashEntry.stashSha!==n.stashSha&&(i=!0)),{commitMessage:t.commitMessage,showCoAuthoredBy:t.showCoAuthoredBy,coAuthors:t.coAuthors,stashEntry:n}})),this.repositoryStateCache.update(e,(()=>({commitLookup:t.commitLookup,localCommitSHAs:t.localCommitSHAs,localTags:t.localTags,aheadBehind:t.aheadBehind,tagsToPush:t.tagsToPush,remote:t.currentRemote,lastFetched:t.lastFetched}))),r?this._selectWorkingDirectoryFiles(e):i?this._selectStashedFile(e):this.emitUpdate()}clearBranchProtectionState(e){this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:!1,currentRepoRulesInfo:new aC}))),this.emitUpdate()}async refreshBranchProtectionState(e){const{tip:t,currentRemote:n}=this.gitStoreCache.get(e);if(t.kind!==Hr.Valid||null===e.gitHubRepository)return;const r=e.gitHubRepository,i=Kw(t,n,r);if(null!==i){const t=ur(this.accounts,r.endpoint);if(null===t)return;if(!Lr(r))return this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:!1,currentRepoRulesInfo:new aC}))),void this.emitUpdate();const n=r.name,s=r.owner.login,o=ir.fromAccount(t),a=!function(e){const{allow_actor:t,required_status_checks:n,required_approving_review_count:r}=e,i=Array.isArray(n)?n.length:0;return!1!==t&&0===i&&0===r}(await o.fetchPushControl(s,n,i));let l=new aC;if(lC(t,e)){const t=await o.fetchAllRepoRulesets(s,n);if(t?.length){const e=t.map((e=>e.id)),r=[];for(const t of e)this.cachedRepoRulesets.has(t)||r.push(o.fetchRepoRuleset(s,n,t));if(r.length>0){const e=await Promise.all(r);this._updateCachedRepoRulesets(e)}}const r=await o.fetchRepoRulesForBranch(s,n,i);r.length>0&&(l=await cC(r,this.cachedRepoRulesets,e))}this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:a,currentRepoRulesInfo:l}))),this.emitUpdate()}}_updateCachedRepoRulesets(e){for(const t of e)null!==t&&this.cachedRepoRulesets.set(t.id,t)}clearSelectedCommit(e){this.repositoryStateCache.updateCommitSelection(e,(()=>({shas:[],file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null})))}_changeCommitSelection(e,t,n){const{commitSelection:r,commitLookup:i,compareState:s}=this.repositoryStateCache.get(e);if(r.shas.length===t.length&&r.shas.every(((e,n)=>e===t[n])))return;const o=this.getShasInDiff(this.orderShasByHistory(e,t),n,i);t.length>1&&n&&this.recordMultiCommitDiff(t,o,s),this.repositoryStateCache.updateCommitSelection(e,(()=>({shas:t,shasInDiff:o,isContiguous:n,file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null}))),this.emitUpdate()}recordMultiCommitDiff(e,t,n){n.formState.kind===rt.History?this.statsStore.increment("multiCommitDiffFromHistoryCount"):this.statsStore.increment("multiCommitDiffFromCompareCount");const r=!e.every((e=>t.includes(e)));r&&this.statsStore.increment("multiCommitDiffWithUnreachableCommitWarningCount")}async _updateShasToHighlight(e,t){this.repositoryStateCache.updateCompareState(e,(()=>({shasToHighlight:t}))),this.emitUpdate()}getShasInDiff(e,t,n){if(e.length<=1||!t)return e;const r=new Set,i=new Set(e),s=[e.at(-1)];let o;for(;void 0!==(o=s.pop());)r.has(o)||(r.add(o),n.get(o)?.parentSHAs?.forEach((e=>{i.has(e)&&!r.has(e)&&s.push(e)})));return Array.from(r)}updateOrSelectFirstCommit(e,t){const n=this.repositoryStateCache.get(e);let r=n.commitSelection.shas.length>0?n.commitSelection.shas[0]:null;null!=r&&t.findIndex((e=>e===r))<0&&(r=null,this.clearSelectedCommit(e)),null===r&&t.length>0&&(this._changeCommitSelection(e,[t[0]],!0),this._loadChangedFilesForCurrentSelection(e))}async _initializeCompare(e,t){const n=this.repositoryStateCache.get(e),{branchesState:r,compareState:i}=n,{tip:s}=r,o=s.kind===Hr.Valid?s.branch:null,a=r.allBranches.filter((e=>e.name!==o?.name&&!e.isDesktopForkRemoteBranch)),l=o?r.recentBranches.filter((e=>e.name!==o.name)):r.recentBranches,c=r.defaultBranch,u=null!=o&&null!=c&&o.name!==c.name?c:null;this.repositoryStateCache.updateCompareState(e,(()=>({branches:a,recentBranches:l,defaultBranch:u})));const h=i.formState,p=null!=t?t:function(e){if(e.kind===rt.History)return{kind:rt.History};const{comparisonMode:t,comparisonBranch:n}=e;return{kind:rt.Compare,comparisonMode:t,branch:n}}(h);this._executeCompare(e,p)}async _executeCompare(e,t){const n=this.gitStoreCache.get(e),r=t.kind;if(t.kind===rt.History){const{tip:t}=n;let r=null;t.kind===Hr.Valid?r=t.branch.tip.sha:t.kind===Hr.Detached&&(r=t.currentSha);const{compareState:i}=this.repositoryStateCache.get(e),{formState:s,commitSHAs:o}=i,a=i.tip;if(null!==r&&null!==a&&r===a&&s.kind===rt.History&&o.length>0)return;const l=await n.loadCommitBatch("HEAD",0);if(null===l)return;const c={kind:rt.History};return this.repositoryStateCache.updateCompareState(e,(()=>({tip:r,formState:c,commitSHAs:l,filterText:"",showBranchList:!1}))),this.updateOrSelectFirstCommit(e,l),this.emitUpdate()}return t.kind===rt.Compare?this.updateCompareToBranch(e,t):ct(0,`Unknown action: ${r}`)}async updateCompareToBranch(e,t){const n=this.gitStoreCache.get(e),r=t.branch,i=await n.getCompareCommits(r,t.comparisonMode);this.statsStore.increment("branchComparisons");const{branchesState:s}=this.repositoryStateCache.get(e);if(null!==s.defaultBranch&&r.name===s.defaultBranch.name&&this.statsStore.increment("defaultBranchComparisons"),null==i)return;const{ahead:o,behind:a}=i,l={ahead:o,behind:a},c=i.commits.map((e=>e.sha)),u={kind:rt.Compare,comparisonBranch:r,comparisonMode:t.comparisonMode,aheadBehind:l};this.repositoryStateCache.updateCompareState(e,(()=>({formState:u,filterText:r.name,commitSHAs:c})));const h=n.tip,p={kind:Gw.Loading};return this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:p}))),this.emitUpdate(),this.updateOrSelectFirstCommit(e,c),null!=this.currentMergeTreePromise?this.currentMergeTreePromise:h.kind===Hr.Valid&&l.behind>0?(this.currentMergeTreePromise=this.setupMergabilityPromise(e,h.branch,t.branch).then((t=>{this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:t}))),this.emitUpdate()})).finally((()=>{this.currentMergeTreePromise=null})),this.currentMergeTreePromise):(this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:null}))),this.emitUpdate())}setupMergabilityPromise(e,t,n){return cw((()=>Jb(e,t,n)),500).catch((e=>(log.warn(`Error occurred while trying to merge ${t.name} (${t.tip.sha}) and ${n.name} (${n.tip.sha})`,e),null)))}_updateCompareForm(e,t){this.repositoryStateCache.updateCompareState(e,(e=>xp(e,t))),this.emitUpdate()}async _loadNextCommitBatch(e){const t=this.gitStoreCache.get(e),n=this.repositoryStateCache.get(e),{formState:r}=n.compareState;if(r.kind===rt.History){const r=n.compareState.commitSHAs,i=await t.loadCommitBatch("HEAD",r.length);if(null==i)return;this.repositoryStateCache.updateCompareState(e,(()=>({commitSHAs:r.concat(i)}))),this.emitUpdate()}}async _loadChangedFilesForCurrentSelection(e){const t=this.repositoryStateCache.get(e),{commitSelection:n}=t,{shas:r,isContiguous:i}=n;if(0===r.length||r.length>1&&!i)return;const s=this.gitStoreCache.get(e),o=await s.performFailableOperation((()=>r.length>1?Sf(e,this.orderShasByHistory(e,r)):async function(e,t){const n=["log",t,"-C","-M","-m","-1","--no-show-signature","--first-parent","--raw","--format=format:","--numstat","-z","--"],{stdout:r}=await _d(n,e.path,"getChangesFiles");return mf(r,t,`${t}^`)}(e,r[0])));if(!o)return;if(n.shas.length!==r.length||!n.shas.every(((e,t)=>e===r[t])))return;const a=null===n.file&&o.files.length?o.files[0]:n.file;this.repositoryStateCache.updateCommitSelection(e,(()=>({file:a,changesetData:o,diff:null}))),this.emitUpdate(),null!==a&&this._changeFileSelection(e,a)}async _setRepositoryFilterText(e){this.repositoryFilterText=e,this.emitUpdate()}async _changeFileSelection(e,t){this.repositoryStateCache.updateCommitSelection(e,(()=>({file:t,diff:null}))),this.emitUpdate();const n=this.repositoryStateCache.get(e),{shas:r,isContiguous:i}=n.commitSelection;if(0===r.length)return;if(r.length>1&&!i)return;const s=r.length>1?await Cf(e,t,this.orderShasByHistory(e,r),this.hideWhitespaceInHistoryDiff):await vf(e,t,r[0],this.hideWhitespaceInHistoryDiff),o=this.repositoryStateCache.get(e),{shas:a}=o.commitSelection;a.length===r.length&&r.every(((e,t)=>e===a[t]))&&o.commitSelection.file&&o.commitSelection.file.id===t.id&&(this.repositoryStateCache.updateCommitSelection(e,(()=>({diff:s}))),this.emitUpdate())}async _selectRepository(e){const t=this.selectedRepository;if(!(this.currentOnboardingTutorialStep!==Yw.NotApplicable)||e instanceof Zr&&e.isTutorialRepository||(this.currentOnboardingTutorialStep=Yw.NotApplicable),this.selectedRepository=e,this.emitUpdate(),this.stopBackground同步(),this.stopPullRequestUpdater(),this._clearBanner(),this.stopBackgroundPruner(),null==e)return Promise.resolve(null);if(!(e instanceof Zr))return Promise.resolve(null);$t(fC,e.id);const n=t?t.id:null;this.updateRecentRepositories(n,e.id);const r=await this.recoverMissingRepository(e);return r.missing?(this.gitStoreCache.remove(e),Promise.resolve(null)):(this.updateBranchProtectionsFromAPI(e),this.notificationsStore.selectRepository(e),this._selectRepositoryRefreshTasks(r,t))}updateRecentRepositories(e,t){if(e===t)return;const n=Wt(gC).filter((n=>n!==t&&n!==e));null!==e&&n.unshift(e);const r=n.slice(0,3);qt(gC,r),this.recentRepositories=r,this.notificationsStore.setRecentRepositories(this.repositories.filter((e=>this.recentRepositories.includes(e.id)))),this.emitUpdate()}async _selectRepositoryRefreshTasks(e,t){if(this._refreshRepository(e),$r(e)){const t=Gr(e);this._refreshIssues(t),this.refreshMentionables(t),this.pullRequestCoordinator.getAllPullRequests(e).then((t=>{this.onPullRequestChanged(e,t)}))}return this.selectedRepository!==e?null:(this.stopBackground同步(),this.stopPullRequestUpdater(),this.stopBackgroundPruner(),this.startBackground同步(e,!t),this.startPullRequestUpdater(e),this.startBackgroundPruner(e),this.addUpstreamRemoteIfNeeded(e),this.repositoryWithRefreshedGitHubRepository(e))}stopBackgroundPruner(){const e=this.currentBranchPruner;null!==e&&(e.stop(),this.currentBranchPruner=null)}startBackgroundPruner(e){null!==this.currentBranchPruner&&lt(`A branch pruner is already active and cannot start updating on ${e.name}`);const t=new qw(e,this.gitStoreCache,this.repositoriesStore,this.repositoryStateCache,(e=>this._refreshRepository(e)));this.currentBranchPruner=t,this.currentBranchPruner.start()}async _refreshIssues(e){const t=ur(this.accounts,e.endpoint);if(t)try{await this.issuesStore.refreshIssues(e,t)}catch(t){log.warn(`Unable to fetch issues for ${e.fullName}`,t)}}stopBackground同步(){const e=this.currentBackgroundFetcher;e&&(e.stop(),this.currentBackgroundFetcher=null)}refreshMentionables(e){const t=ur(this.accounts,e.endpoint);t&&this.gitHubUserStore.updateMentionables(e,t)}startPullRequestUpdater(e){if(this.appIsFocused&&$r(e)){const t=Om(this.accounts,e);if(null!==t)return this.pullRequestCoordinator.startPullRequestUpdater(e,t)}this.pullRequestCoordinator.stopPullRequestUpdater()}stopPullRequestUpdater(){this.pullRequestCoordinator.stopPullRequestUpdater()}async fetchPullRequest(e,t){const n=function(e){const t=o.parse(e);return"github.com"===t.hostname?cr():`${t.protocol}//${t.hostname}/api`}(e),r=ur(this.accounts,n);if(r){const n=ir.fromAccount(r),i=mr(e);if(i&&i.owner&&i.name)return await n.fetchPullRequest(i.owner,i.name,t)}return null}async shouldBackgroundFetch(e,t){const n=this.gitStoreCache.get(e),r=await n.updateLastFetched();if(null===r)return!0;const i=(new Date).getTime()-r.getTime(),s=qr(e);if(i<18e5){const e=Math.floor(i/1e3);return log.debug(`Skipping background fetch as '${s}' was fetched ${e}s前`),!1}return null===t||r<t||(log.debug(`Skipping background fetch since nothing has been pushed to '${s}' since the last fetch at ${r}`),!1)}startBackground同步(e,t){if(this.currentBackgroundFetcher&&lt(`We should only have on background fetcher active at once, but we're trying to start background fetching on ${e.name} while another background fetcher is still active!`),!e.gitHubRepository)return;const n=new pw(e,this.accountsStore,(e=>this._fetch(e,ln.BackgroundTask)),(e=>this.shouldBackgroundFetch(e,null)));n.start(t),this.currentBackgroundFetcher=n}async loadInitialState(){const[e,t]=await Promise.all([this.accountsStore.getAll(),this.repositoriesStore.getAll()]);log.info(`[AppStore] loading ${t.length} repositories from store`),e.forEach((e=>{log.info(`[AppStore] found account: ${e.login} (${e.name})`)})),this.accounts=e,this.repositories=t,this.updateRepositorySelectionAfterRepositoriesChanged(),this.sidebarWidth=QC(Zt(yC,250)),this.commitSummaryWidth=QC(Zt(wC,250)),this.stashedFilesWidth=QC(Zt(bC,250)),this.pullRequestFileListWidth=QC(Zt(vC,250)),this.updateResizableConstraints(),this.updatePullRequestResizableConstraints(),this.askToMoveToApplicationsFolderSetting=Ht(CC,!0),this.useExternalCredentialHelper=mC(),this.askForConfirmationOnRepositoryRemoval=Ht(SC,!0),void 0===Ht(EC)&&Ut(EC,!0),this.showCommitLengthWarning=Ht(EC,!1),this.confirmDiscardChanges=Ht(kC,!0),this.confirmDiscardChangesPermanently=Ht(AC,!0),this.confirmDiscardStash=Ht(RC,!0),this.confirmCheckoutCommit=Ht(TC,!0),this.askForConfirmationOnForcePush=Ht(xC,!0),this.confirmUndoCommit=Ht(DC,!0),this.uncommittedChangesStrategy=Gt(_C,zw)??jw,this.updateSelectedExternalEditor(await this.lookupSelectedExternalEditor()).catch((e=>log.error("Failed resolving current editor at startup",e)));const n=localStorage.getItem(HC);this.selectedShell=n?ow(n):iw,this.updateMenuLabelsForSelectedRepository();const r=localStorage.getItem(IC);this.imageDiffType=null===r?PC:parseInt(r),this.hideWhitespaceInChangesDiff=Ht(OC,!1),this.hideWhitespaceInHistoryDiff=Ht(NC,!1),this.hideWhitespaceInPullRequestDiff=Ht(LC,!1),this.commitSpellcheckEnabled=Ht(BC,!0),this.showSideBySideDiff=wb(),this.selectedTheme=Op(),Np(this.selectedTheme),this.currentTheme=await Ip(),this.selectedTabSize=Zt(FC,8),om.onThemeChanged((e=>{this.currentTheme=e,this.emitUpdate()})),this.titleBarStyle=await we(),this.lastThankYou=zt(ZC),this.useCustomEditor=nn()&&Ht(WC,!1),this.customEditor=zt(qC)??null,this.useCustomShell=nn()&&Ht(VC,!1),this.customShell=zt(GC)??null,this.pullRequestSuggestedNextAction=Gt($C,im)??sm,this.underlineLinks=!!tn()&&Ht(zC,jC),this.showDiffCheckMarks=!!Jt()&&Ht(YC,KC),this.emitUpdateNow(),this.accountsStore.refresh(),this.updateMenuLabelsForSelectedRepository()}updateResizableConstraints(){let e=window.innerWidth;const t=e-460;this.sidebarWidth=QC(this.sidebarWidth,220,t),e-=ry(this.sidebarWidth);const n=e-150;this.commitSummaryWidth=QC(this.commitSummaryWidth,100,n),this.stashedFilesWidth=QC(this.stashedFilesWidth,100,n)}updatePullRequestResizableConstraints(){this.pullRequestFileListWidth=QC(this.pullRequestFileListWidth,100,680)}updateSelectedExternalEditor(e){return this.selectedExternalEditor=e,this._resolveCurrentEditor()}async lookupSelectedExternalEditor(){const e=(await Rm()).map((e=>e.editor)),t=localStorage.getItem(MC);if(t&&e.includes(t))return t;if(e.length){const t=e[0];return localStorage.setItem(MC,t),t}return null}updateMenuLabelsForSelectedRepository(){const{selectedState:e}=this.getState();null!==e&&e.type===Je.Repository?this.updateMenuItemLabels(e.state):this.updateMenuItemLabels(null)}updateMenuItemLabels(e){const{useCustomShell:t,selectedShell:n,selectedRepository:r,useCustomEditor:i,selectedExternalEditor:s,askForConfirmationOnRepositoryRemoval:o,askForConfirmationOnForcePush:a}=this,l={selectedShell:t?null:n,selectedExternalEditor:i?null:s,askForConfirmationOnRepositoryRemoval:o,askForConfirmationOnForcePush:a};if(null===e)return void ae(l);const{changesState:c,branchesState:u,aheadBehind:h}=e,{currentPullRequest:p}=u;let d;r instanceof Zr&&(d=Gy(r,u)?.name??void 0);const m=ay(u,h)!==iy.NotAvailable,f=c.selection.kind===nt.Stash,g=null!==c.stashEntry;ae({...l,contributionTargetDefaultBranch:d,isForcePushForCurrentRepository:m,isStashedChangesVisible:f,hasCurrentPullRequest:null!==p,askForConfirmationWhenStashingAllChanges:g})}updateRepositorySelectionAfterRepositoriesChanged(){const e=this.selectedRepository;let t=this.selectedRepository;if(e&&(t=this.repositories.find((t=>t.constructor===e.constructor&&t.id===e.id))||null),null===t&&this.repositories.length>0){const e=Zt(fC,0);e>0&&(t=this.repositories.find((t=>t.id===e))||null),t||(t=this.repositories[0])}(e&&t&&e.hash!==t.hash||e&&!t||!e&&t)&&(this._selectRepository(t),this.emitUpdate())}async _loadStatus(e,t=!1){const n=this.gitStoreCache.get(e),r=await n.loadStatus();return null===r?null:(this.repositoryStateCache.updateChangesState(e,(e=>function(e,t,n){const r=new Map;e.workingDirectory.files.forEach((e=>r.set(e.id,e)));const i=t.workingDirectory.files.map((e=>{const t=r.get(e.id);return t?n&&t.selection.getSelectionType()===Mu.Partial?e.withIncludeAll(!1):e.withSelection(t.selection):e})).sort(((e,t)=>br(e.path,t.path))),s=new Set(i.map((e=>e.id))),o=Yu.fromFiles(i),a=e.selection.kind;if(e.selection.kind===nt.WorkingDirectory){let t=e.selection.selectedFileIDs.filter((e=>s.has(e)));0===t.length&&i.length>0&&(t=[i[0].id]);const n=1===t.length&&1===e.selection.selectedFileIDs.length&&e.selection.selectedFileIDs[0]===t[0]?e.selection.diff:null;return{workingDirectory:o,selection:{kind:nt.WorkingDirectory,selectedFileIDs:t,diff:n}}}return e.selection.kind===nt.Stash?{workingDirectory:o,selection:e.selection}:ct(e.selection,`Unknown selection kind ${a}`)}(e,r,t))),this.repositoryStateCache.updateChangesState(e,(e=>({conflictState:Hw(e,r,this.statsStore)}))),this.updateMultiCommitOperationConflictsIfFound(e),await this.initializeMultiCommitOperationIfConflictsFound(e,r),this.selectedRepository===e&&this._triggerConflictsFlow(e,r),this.emitUpdate(),this.updateChangesWorkingDirectoryDiff(e),r)}async initializeMultiCommitOperationIfConflictsFound(e,t){const n=this.repositoryStateCache.get(e),{changesState:{conflictState:r},multiCommitOperationState:i,branchesState:s}=n;if(null===r)return void this.clearConflictsFlowVisuals(n);if(null!==i)return;let o,a,l=null,c=[],u="";if(s.tip.kind===Hr.Valid&&(l=s.tip.branch,u=l.tip.sha),st(r))o={kind:"Merge",isSquash:t.squashMsgFound,sourceBranch:null},u=null!==l?l.tip.sha:null;else if(ot(r)){const t=await uy(e),n=await cy(e);if(null===t||null===n)return;u=n.originalBranchTip,c=t.commits,a=t.progress,o={kind:"Rebase",sourceBranch:null,commits:c,currentTip:n.baseBranchTip};const r=await ff(e,n.originalBranchTip);null!==r&&(l=new Vp(n.targetBranch,null,r,$p.Local,`refs/heads/${n.targetBranch}`))}else if(at(r)){const t=await vy(e);if(null===t)return;u=null,c=t.commits,a=t.progress,o={kind:"Cherry-pick",sourceBranch:null,branchCreated:!1,commits:c},this.repositoryStateCache.updateMultiCommitOperationUndoState(e,(()=>({undoSha:t.targetBranchUndoSha,branchName:""})))}else ct(0,"Unsupported conflict kind");this._initializeMultiCommitOperation(e,o,l,c,u,!1),void 0!==a&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:a})))}updateMultiCommitOperationConflictsIfFound(e){const t=this.repositoryStateCache.get(e),{changesState:n,multiCommitOperationState:r}=this.repositoryStateCache.get(e),{conflictState:i}=n;if(null===i||null===r)return void this.clearConflictsFlowVisuals(t);const{step:s,operationDetail:o}=r;if("ShowConflicts"!==s.kind)return;const{manualResolutions:a}=i;if(this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:{...s,manualResolutions:a}}))),ot(i)){const{currentTip:t}=i;this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...o,currentTip:t}})))}}async _triggerConflictsFlow(e,t){const n=this.repositoryStateCache.get(e),{changesState:{conflictState:r},multiCommitOperationState:i}=n;if(null===r)return void this.clearConflictsFlowVisuals(n);if(null===i)return;if(null!==this.currentBanner&&this.currentBanner.type===Vw.ConflictsFound||function(e,t){return e&&null!==t&&Cb.includes(t.step.kind)}(this.popupManager.areTherePopupsOfType(dh.MultiCommitOperation),i))return;const{manualResolutions:s}=r;let o,a;st(r)?(a=await this.getMergeConflictsTheirBranch(e,t.squashMsgFound,i),o=r.currentBranch):ot(r)?(a=r.targetBranch,o=r.baseBranch):at(r)?(null!==i&&"Cherry-pick"===i.operationDetail.kind&&null!==i.operationDetail.sourceBranch&&(a=i.operationDetail.sourceBranch.name),o=r.targetBranchName):ct(0,"Unsupported conflict kind"),this.statsStore.increment("mergeConflictFromExplicitMergeCount"),this._setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:s,ourBranch:o,theirBranch:a}}),this._showPopup({type:dh.MultiCommitOperation,repository:e})}async getMergeConflictsTheirBranch(e,t,n){let r;if(null!==n&&"Merge"===n.operationDetail.kind&&null!==n.operationDetail.sourceBranch&&(r=n.operationDetail.sourceBranch.name),void 0===r&&!t){const t=await async function(e,t){const n=["branch","--points-at=MERGE_HEAD","--format=%(refname:short)"],{stdout:r,exitCode:i}=await _d(n,e.path,"branchPointedAt",{successExitCodes:new Set([0,1,129])});return 1===i||129===i?null:r.split("\n").slice(0,-1)}(e);if(null===t)return;r=1===t.length?t[0]:void 0}return r}clearConflictsFlowVisuals(e){const{multiCommitOperationState:t}=e;(function(e,t){return null!==e&&null!==t&&(e.type===dh.MultiCommitOperation&&("ChooseBranch"===t.step.kind||"WarnForcePush"===t.step.kind||"ShowProgress"===t.step.kind))})(this.popupManager.currentPopup,t)||(this._closePopup(dh.MultiCommitOperation),this._clearBanner(Vw.ConflictsFound),this._clearBanner(Vw.MergeConflictsFound))}async _changeRepositorySection(e,t,n=!1){if(this.repositoryStateCache.update(e,(e=>(e.selectedSection!==t&&this.statsStore.increment("repositoryViewChangeCount"),{selectedSection:t}))),this.emitUpdate(),t===tt.History?await this.refreshHistorySection(e):t===tt.Changes&&await this.refreshChangesSection(e,{includingStatus:!0,clearPartialState:!1}),n){const e=document.getElementById("repository-sidebar")?.querySelector(".tab-bar-item.selected");e?.focus()}}async _selectWorkingDirectoryFiles(e,t){this.repositoryStateCache.updateChangesState(e,(e=>function(e,t){let n;if(void 0===t){if(e.selection.kind===nt.WorkingDirectory)return{selection:e.selection};n=e.workingDirectory.files.length>0?[e.workingDirectory.files[0].id]:new Array}else n=t.map((e=>e.id));return{selection:{kind:nt.WorkingDirectory,selectedFileIDs:n,diff:null}}}(e,t))),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),this.updateChangesWorkingDirectoryDiff(e)}async updateChangesWorkingDirectoryDiff(e){const t=this.repositoryStateCache.get(e).changesState;if(t.selection.kind!==nt.WorkingDirectory)return;const n=t.selection,r=n.selectedFileIDs;if(1!==r.length)return void(null!==n.diff&&(this.repositoryStateCache.updateChangesState(e,(()=>({selection:{...n,diff:null}}))),this.emitUpdate()));const i=r[0],s=t.workingDirectory.findFileWithID(i);if(null===s)return;const o=await Ef(e,s,this.hideWhitespaceInChangesDiff),a=this.repositoryStateCache.get(e).changesState;if(a.selection.kind!==nt.WorkingDirectory||!ap(a.selection.selectedFileIDs,r))return;const l=a.selection.selectedFileIDs[0];if(l!==i)return;const c=a.workingDirectory.findFileWithID(l);if(null===c)return;const u=new Set;o.kind!==Du.Text&&o.kind!==Du.LargeText||o.hunks.forEach((e=>{e.lines.forEach(((t,n)=>{t.isIncludeableLine()&&u.add(e.unifiedDiffStart+n)}))}));const h=c.selection.withSelectableLines(u),p=c.withSelection(h),d=a.workingDirectory.files.map((e=>e.id===p.id?p:e)),m=Yu.fromFiles(d),f={...a.selection,diff:o};this.repositoryStateCache.updateChangesState(e,(()=>({selection:f,workingDirectory:m}))),this.emitUpdate()}_hideStashedChanges(e){const{changesState:t}=this.repositoryStateCache.get(e);t.selection.kind===nt.Stash&&(this.repositoryStateCache.updateChangesState(e,(e=>{const t=e.workingDirectory.files.filter((e=>e.selection.getSelectionType()!==Mu.None)).map((e=>e.id));return{selection:{kind:nt.WorkingDirectory,diff:null,selectedFileIDs:t}}})),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository())}async _selectStashedFile(e,t){this.repositoryStateCache.update(e,(()=>({selectedSection:tt.Changes}))),this.repositoryStateCache.updateChangesState(e,(e=>{let n=null;const{stashEntry:r,selection:i}=e,s=i.kind===nt.Stash?i.selectedStashedFile:null,o=null!==r&&r.files.kind===Ew.Loaded?r.files.files:[];return void 0===t?n=null!==s?o.find((e=>e.id===s.id))||o[0]||null:o[0]||null:null!==t&&(n=o.find((e=>e.id===t.id))||null),{selection:{kind:nt.Stash,selectedStashedFile:n,selectedStashedFileDiff:null}}})),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),this.updateChangesStashDiff(e),this.hasUserViewedStash||(this.statsStore.increment("stashViewedAfterCheckoutCount"),this.hasUserViewedStash=!0)}async updateChangesStashDiff(e){const t=this.repositoryStateCache.get(e).changesState,n=t.selection;if(n.kind!==nt.Stash)return;const r=t.stashEntry;if(null===r)return;let i=n.selectedStashedFile;if(null===i&&r.files.kind===Ew.Loaded&&r.files.files.length>0&&(i=r.files.files[0]),null===i)return this.repositoryStateCache.updateChangesState(e,(()=>({selection:{kind:nt.Stash,selectedStashedFile:null,selectedStashedFileDiff:null}}))),void this.emitUpdate();const s=await vf(e,i,i.commitish),o=this.repositoryStateCache.get(e).changesState;o.selection.kind===nt.Stash&&o.selection.selectedStashedFile===n.selectedStashedFile&&(this.repositoryStateCache.updateChangesState(e,(()=>({selection:{kind:nt.Stash,selectedStashedFile:i,selectedStashedFileDiff:s}}))),this.emitUpdate())}async _commitIncludedChanges(e,t){const n=this.repositoryStateCache.get(e),r=n.changesState.workingDirectory.files.filter((e=>e.selection.getSelectionType()!==Mu.None)),i=this.gitStoreCache.get(e);return this.withIsCommitting(e,(async()=>{const s=await i.performFailableOperation((async()=>{const n=await Im(e,t);return Tg(e,n,r,t.amend)}));return void 0!==s&&(await this._recordCommitStats(i,e,n,t,r,!0===t.amend),this.repositoryStateCache.update(e,(()=>({commitToAmend:null}))),await this.refreshChangesSection(e,{includingStatus:!0,clearPartialState:!0}),this._refreshRepositoryAfterCommit(e,s,n.commitToAmend)),void 0!==s}))}async _refreshRepositoryAfterCommit(e,t,n){await this._refreshRepository(e);const r=n?.sha;if(void 0!==r&&t!==r){const t=this.repositoryStateCache.get(e).branchesState.tip;t.kind===Hr.Valid&&this._addBranchToForcePushList(e,t,r)}}async _recordCommitStats(e,t,n,r,i,s){this.statsStore.recordCommit();const o=i.some((e=>e.selection.getSelectionType()===Mu.Partial));o&&this.statsStore.increment("partialCommits"),s&&this.statsStore.recordAmendCommitSuccessful(i.length>0);const{trailers:a}=r;void 0!==a&&a.some(zd)&&this.statsStore.increment("coAuthoredCommits");const l=Om(this.accounts,t);if(null!==t.gitHubRepository){if(null!==l){l.endpoint===cr()?this.statsStore.increment("dotcomCommits"):this.statsStore.increment("enterpriseCommits");const{commitAuthor:e}=n;null!==e&&(fb(l,e.email)||this.statsStore.increment("unattributedCommits"))}if(await this.repositoriesStore.hasBranchProtectionsConfigured(t.gitHubRepository)&&this.statsStore.increment("commitsToRepositoryWithBranchProtections"),null!==Kw(e.tip,e.currentRemote,t.gitHubRepository)){const{changesState:e}=this.repositoryStateCache.get(t);e.currentBranchProtected&&this.statsStore.increment("commitsToProtectedBranch")}null===t.gitHubRepository||Lr(t.gitHubRepository)||(this.statsStore.increment("commitsToRepositoryWithoutWriteAccess"),this.statsStore.recordRepositoryCommitedInWithoutWriteAccess(t.gitHubRepository.dbID))}}_changeFileIncluded(e,t,n){const r=n?t.selection.withSelectAll():t.selection.withSelectNone();return this.updateWorkingDirectoryFileSelection(e,t,r),Promise.resolve()}_changeFileLineSelection(e,t,n){return this.updateWorkingDirectoryFileSelection(e,t,n),Promise.resolve()}updateWorkingDirectoryFileSelection(e,t,n){this.repositoryStateCache.updateChangesState(e,(e=>{const r=e.workingDirectory.files.map((e=>e.id===t.id?e.withSelection(n):e));return{workingDirectory:Yu.fromFiles(r)}})),this.emitUpdate()}_changeIncludeAllFiles(e,t){return this.repositoryStateCache.updateChangesState(e,(e=>({workingDirectory:e.workingDirectory.withIncludeAllFiles(t)}))),this.emitUpdate(),Promise.resolve()}async _refreshOrRecoverRepository(e){if(!e.missing)return this._refreshRepository(e);{const t=await this.recoverMissingRepository(e);if(!t.missing)return this._refreshRepository(t)}}async recoverMissingRepository(e){return e.missing&&await R(e.path)&&"regular"===(await Vg(e.path)).kind&&null!==await this._loadStatus(e)?await this._updateRepositoryMissing(e,!1):e}async _refreshRepository(e){if(e.missing)return;if(!await R(e.path))return void this._updateRepositoryMissing(e,!0);const t=this.repositoryStateCache.get(e),n=this.gitStoreCache.get(e),r=await this._loadStatus(e);if(this.updateSidebarIndicator(e,r),null===r)return void await this._updateRepositoryMissing(e,!0);await n.loadRemotes(),await n.loadBranches();const i=t.selectedSection;let s;if(i===tt.History)s=this.refreshHistorySection(e);else{if(i!==tt.Changes)return ct(0,`Unknown section: ${i}`);s=this.refreshChangesSection(e,{includingStatus:!1,clearPartialState:!1})}await Promise.all([n.updateLastFetched(),n.loadStashEntries(),this._refreshAuthor(e),s]),await n.refreshTags(),this.updateStashEntryCountMetric(e,n.desktopStashEntryCount,n.stashEntryCount),this.updateCurrentPullRequest(e);const o=this.repositoryStateCache.get(e);this.updateMenuItemLabels(o),this._initializeCompare(e),this.updateCurrentTutorialStep(e)}async updateStashEntryCountMetric(e,t,n){const r=await this.repositoriesStore.getLastStashCheckDate(e),i=_t(-24,"hours");if(null==r||i>r){await this.repositoriesStore.updateLastStashCheckDate(e);const r=n-t;this.statsStore.addStashEntriesCreatedOutsideDesktop(r)}}async updateSidebarIndicator(e,t){const n=this.localRepositoryStateLookup;e.missing?n.delete(e.id):null!==t?n.set(e.id,{aheadBehind:t.branchAheadBehind||null,changedFilesCount:t.workingDirectory.files.length}):n.delete(e.id)}refreshIndicatorForRepository=async e=>{const t=this.localRepositoryStateLookup;if(e.missing)return void t.delete(e.id);if(!await R(e.path))return void t.delete(e.id);const n=this.gitStoreCache.get(e),r=await n.loadStatus();if(null===r)return void t.delete(e.id);this.updateSidebarIndicator(e,r),this.emitUpdate();const i=await async function(e,t,n){const r=Om(e,n);if(null==r)return null;await t.loadRemotes();const{currentRemote:i}=t,s=ir.fromAccount(r);if(null!==i){const t=vr(e,i.url);if(null!==t){const{owner:e,name:n}=t,r=await s.fetchRepository(e,n);if(null!==r)return new Date(r.pushed_at)}}if(null!==n.gitHubRepository){const{owner:e,name:t}=n.gitHubRepository,r=await s.fetchRepository(e.login,t);if(null!==r)return new Date(r.pushed_at)}return null}(this.accounts,n,e);if(await this.shouldBackgroundFetch(e,i)){const n=await this.fetchForRepositoryIndicator(e),r=t.get(e.id);t.set(e.id,{aheadBehind:n,changedFilesCount:r?.changedFilesCount??0}),this.emitUpdate()}};getRepositoriesForIndicatorRefresh=()=>this.repositories.filter((e=>e!==this.selectedRepository));fetchForRepositoryIndicator(e){return this.withRefreshedGitHubRepository(e,(async e=>{const t=this.gitStoreCache.get(e);return await this.withPushPullFetch(e,(()=>t.fetch(!0,(t=>this.updatePushPullFetchProgress(e,t))))),this.updatePushPullFetchProgress(e,null),t.aheadBehind}))}_setRepositoryIndicatorsEnabled(e){this.repositoryIndicatorsEnabled!==e&&(Ut(UC,e),this.repositoryIndicatorsEnabled=e,e?this.repositoryIndicatorUpdater.start():this.repositoryIndicatorUpdater.stop(),this.emitUpdate())}_setCommitSpellcheckEnabled(e){this.commitSpellcheckEnabled!==e&&(Ut(BC,e),this.commitSpellcheckEnabled=e,this.emitUpdate())}_setUseWindowsOpenSSH(e){Ut(id,e),this.useWindowsOpenSSH=e,this.emitUpdate()}_setShowCommitLengthWarning(e){Ut(EC,e),this.showCommitLengthWarning=e,this.emitUpdate()}_setNotificationsEnabled(e){this.notificationsStore.setNotificationsEnabled(e),this.emitUpdate()}async refreshChangesSection(e,t){t.includingStatus&&await this._loadStatus(e,t.clearPartialState);const n=this.gitStoreCache.get(e),r=this.repositoryStateCache.get(e);if(r.branchesState.tip.kind===Hr.Valid){const e=r.branchesState.tip.branch;await n.loadLocalCommits(e)}else r.branchesState.tip.kind===Hr.Unborn&&await n.loadLocalCommits(null)}async refreshHistorySection(e){const t=this.gitStoreCache.get(e),n=this.repositoryStateCache.get(e),r=n.branchesState.tip;return r.kind===Hr.Valid&&await t.loadLocalCommits(r.branch),this.updateOrSelectFirstCommit(e,n.compareState.commitSHAs)}async _refreshAuthor(e){const t=this.gitStoreCache.get(e),n=await t.performFailableOperation((()=>Ay(e)))||null;this.repositoryStateCache.update(e,(()=>({commitAuthor:n}))),this.emitUpdate()}async _showPopup(e){this._closeFoldout(et.AppMenu),this.popupManager.addPopup(e),this.emitUpdate()}_closePopup(e){const t=this.popupManager.currentPopup;if(null!==t){if(void 0===e)this.popupManager.removePopup(t);else{if(t.type!==e)return;t.type===dh.CloneRepository&&this._completeOpenInDesktop((()=>Promise.resolve(null))),this.popupManager.removePopupByType(e)}this.emitUpdate()}}_closePopupById(e){null!==this.popupManager.currentPopup&&(this.popupManager.removePopupById(e),this.emitUpdate())}async _showFoldout(e){this.currentFoldout=e,this.emitUpdate(),e.type===et.Repository&&this.repositoryIndicatorsEnabled&&this.repositoryIndicatorUpdater.start()}async _closeCurrentFoldout(){null!=this.currentFoldout&&(this.currentFoldout=null,this.emitUpdate())}async _closeFoldout(e){null!=this.currentFoldout&&(void 0!==e&&this.currentFoldout.type!==e||(this.currentFoldout=null,this.emitUpdate()))}async _createBranch(e,t,n,r=!1,i=!0){const s=this.gitStoreCache.get(e),o=await s.createBranch(t,n,r);return void 0!==o&&i&&await this._checkoutBranch(e,o),o}async _createTag(e,t,n){const r=this.gitStoreCache.get(e);await r.createTag(t,n)}async _deleteTag(e,t){const n=this.gitStoreCache.get(e);await n.deleteTag(t)}updateCheckoutProgress(e,t){this.repositoryStateCache.update(e,(()=>({checkoutProgress:t}))),this.selectedRepository instanceof Zr&&this.selectedRepository.id===e.id&&this.emitUpdate()}async _checkoutBranch(e,t,n){const r=this.repositoryStateCache.get(e),{changesState:i,branchesState:s}=r,{currentBranchProtected:o,stashEntry:a}=i,{tip:l}=s,c=i.workingDirectory.files.length>0;if(l.kind===Hr.Valid&&l.branch.name===t.name)return e;let u=n??this.uncommittedChangesStrategy;if(void 0===n&&u===zw.StashOnCurrentBranch&&c&&null!==a){const n=dh.ConfirmOverwriteStash;return this._showPopup({type:n,repository:e,branchToCheckout:t}),e}if((l.kind!==Hr.Valid||o)&&(u=zw.MoveToNewBranch),u===zw.AskForConfirmation&&c){const n=dh.StashAndSwitchBranch;return this._showPopup({type:n,branchToCheckout:t,repository:e}),e}return this.withRefreshedGitHubRepository(e,(e=>this.checkoutImplementation(e,t,u).then((()=>this.onSuccessfulCheckout(e,t))).catch((n=>this.emitError(new yt(n,e,t)))).then((()=>this.refreshAfterCheckout(e,t.name))).finally((()=>this.updateCheckoutProgress(e,null)))))}checkoutImplementation(e,t,n){const{currentRemote:r}=this.gitStoreCache.get(e);return n===zw.StashOnCurrentBranch?this.checkoutAndLeaveChanges(e,t,r):n===zw.MoveToNewBranch?this.checkoutAndBringChanges(e,t,r):this.checkoutIgnoringChanges(e,t,r)}async checkoutIgnoringChanges(e,t,n){await yg(e,t,n,(t=>{this.updateCheckoutProgress(e,t)}))}async checkoutAndLeaveChanges(e,t,n){const r=this.repositoryStateCache.get(e),{workingDirectory:i}=r.changesState,{tip:s}=r.branchesState;return s.kind===Hr.Valid&&i.files.length>0&&(await this.createStashAndDropPreviousEntry(e,s.branch),this.statsStore.increment("stashCreatedOnCurrentBranchCount")),this.checkoutIgnoringChanges(e,t,n)}async checkoutAndBringChanges(e,t,n){try{await this.checkoutIgnoringChanges(e,t,n)}catch(r){if(!XC(r))throw r;const i=await this.createStashEntry(e,t)?await Tw(e,t):null;if(null===i)throw r;await this.checkoutIgnoringChanges(e,t,n),await _w(e,i.stashSha),this.statsStore.increment("changesTakenToNewBranchCount")}}async onSuccessfulCheckout(e,t){const n=this.repositoryStateCache.get(e),{stashEntry:r}=n.changesState,{defaultBranch:i}=n.branchesState;this.clearBranchProtectionState(e),await this._selectWorkingDirectoryFiles(e),this._initializeCompare(e,{kind:rt.History}),null!==i&&t.name!==i.name&&this.statsStore.recordNonDefaultBranchCheckout(),null===r||this.hasUserViewedStash||this.statsStore.increment("stashNotViewedAfterCheckoutCount"),this.hasUserViewedStash=!1}async refreshAfterCheckout(e,t){return this.updateCheckoutProgress(e,{kind:"checkout",title:"刷新存储库",description:"Checking out",value:1,target:t}),await this._refreshRepository(e),e}async _checkoutCommit(e,t){const n=this.repositoryStateCache.get(e),{branchesState:r}=n,{tip:i}=r,{currentRemote:s}=this.gitStoreCache.get(e);return i.kind===Hr.Valid&&i.branch.tip.sha===t.sha||i.kind===Hr.Detached&&i.currentSha===t.sha?e:this.withRefreshedGitHubRepository(e,(e=>this.checkoutCommitDefaultBehaviour(e,t,s).catch((e=>this.emitError(new Error(e)))).then((()=>this.refreshAfterCheckout(e,Jd(t.sha)))).finally((()=>this.updateCheckoutProgress(e,null)))))}async checkoutCommitDefaultBehaviour(e,t,n){await async function(e,t,n,r){const i=await gg(e,"Checking out commit",Jd(t.sha),n,r),s=[...mg(r),t.sha];return await _d(s,e.path,"checkoutCommit",i),!0}(e,t,n,(t=>{this.updateCheckoutProgress(e,t)}))}async _createStashForCurrentBranch(e,t){const n=this.repositoryStateCache.get(e),r=n.branchesState.tip,i=r.kind===Hr.Valid?r.branch:null,s=null!==n.changesState.stashEntry;return null!==i&&(t&&s?(this._showPopup({type:dh.ConfirmOverwriteStash,branchToCheckout:null,repository:e}),!1):!!await this.createStashAndDropPreviousEntry(e,i)&&(this.statsStore.increment("stashCreatedOnCurrentBranchCount"),await this._refreshRepository(e),!0))}async repositoryWithRefreshedGitHubRepository(e){const t=this.repositoriesStore,n=await this.matchGitHubRepository(e);if(!n)return e;const{account:r,owner:i,name:s}=n,{endpoint:a}=r,l=ir.fromAccount(r),c=await l.fetchRepository(i,s);if(null===c){if(a!==e.gitHubRepository?.endpoint){const r=await t.upsertGitHubRepositoryFromMatch(n);return t.setGitHubRepository(e,r)}return e}if(e.gitHubRepository){const t=this.gitStoreCache.get(e);await async function(e,t,n){if(null===e.defaultRemote)return;const r=e.defaultRemote.url,i=n.clone_url,s=Er(i,e.defaultRemote),a=o.parse(r),l=o.parse(i),c=null!==a.protocol&&null!==l.protocol&&a.protocol===l.protocol,u=e.defaultRemote&&Er(t.cloneURL,e.defaultRemote);c&&u&&!s&&await e.setRemoteURL(e.defaultRemote.name,i)}(t,e.gitHubRepository,c)}const u=await t.upsertGitHubRepository(a,c),h=await t.setGitHubRepository(e,u);return await this.refreshBranchProtectionState(h),h}async updateBranchProtectionsFromAPI(e){if(null===e.gitHubRepository)return;const{owner:t,name:n}=e.gitHubRepository,r=ur(this.accounts,e.gitHubRepository.endpoint);if(null===r)return;const i=ir.fromAccount(r),s=await i.fetchProtectedBranches(t.login,n);await this.repositoriesStore.updateBranchProtections(e.gitHubRepository,s)}async matchGitHubRepository(e){const t=this.gitStoreCache.get(e);t.defaultRemote||await t.loadRemotes();const n=t.defaultRemote;return null!==n?vr(this.accounts,n.url):null}_pushError(e){return this.popupManager.addErrorPopup(e),this.emitUpdate(),Promise.resolve()}async _changeRepositoryAlias(e,t){return this.repositoriesStore.updateRepositoryAlias(e,t)}async _renameBranch(e,t,n){const r=this.gitStoreCache.get(e);return await r.performFailableOperation((async()=>{await async function(e,t,n){await _d(["branch","-m",t.nameWithoutRemote,n],e.path,"renameBranch")}(e,t,n);{const i=r.desktopStashEntries.get(t.name);i&&await async function(e,{stashSha:t,parents:n,tree:r},i){const s=`On ${i}: ${Aw(i)}`,o=n.flatMap((e=>["-p",e])),{stdout:a}=await _d(["commit-tree",...o,"-m",s,"--no-gpg-sign",r],e.path,"moveStashEntryToBranch");await _d(["stash","store","-m",s,a.trim()],e.path,"moveStashEntryToBranch"),await Dw(e,t)}(e,i,n)}})),this._refreshRepository(e)}async _deleteBranch(e,t,n,r){return this.withRefreshedGitHubRepository(e,(async e=>{const i=this.gitStoreCache.get(e);if(t.type===$p.Remote){const{remoteName:n,tip:r,nameWithoutRemote:s}=t;if(null===n)throw new Error(`Could not determine remote name from: ${t.ref}.`);const o=i.remotes.find((e=>e.name===n))??await Lg(e,n).then((e=>e?{name:n,url:e}:void 0)).catch((e=>log.debug("Could not get remote URL",e)));if(void 0===o)throw new Error(`Could not determine remote url from: ${t.ref}.`);return await i.performFailableOperation((()=>Wf(e,o,s))),log.info(`Deleted branch ${t.upstreamWithoutRemote} (was ${r.sha})`),this._refreshRepository(e)}const s=r??this.getBranchToCheckoutAfterDelete(t,e);return null!==s&&await i.performFailableOperation((()=>yg(e,s,i.currentRemote))),await i.performFailableOperation((()=>this.deleteLocalBranchAndUpstreamBranch(e,t,n))),this._refreshRepository(e)}))}async deleteLocalBranchAndUpstreamBranch(e,t,n){if(await $f(e,t.name),!0===n&&null!==t.upstreamRemoteName&&null!==t.upstreamWithoutRemote){const n=this.gitStoreCache.get(e),r=t.upstreamRemoteName,i=n.remotes.find((e=>e.name===r))??await Lg(e,r).then((e=>e?{name:r,url:e}:void 0)).catch((e=>log.debug("Could not get remote URL",e)));if(!i)throw new Error(`Could not determine remote url from: ${t.ref}.`);await Wf(e,i,t.upstreamWithoutRemote)}}getBranchToCheckoutAfterDelete(e,t){const{branchesState:n}=this.repositoryStateCache.get(t),r=n.tip,i=r.kind===Hr.Valid?r.branch:null;if(null!==i&&e.name!==i.name)return null;const s=n.defaultBranch??n.recentBranches.find((t=>t.name!==e.name));if(void 0===s)throw new Error("It's not possible to delete the only existing branch in a repository.");return s}updatePushPullFetchProgress(e,t){this.repositoryStateCache.update(e,(()=>({pushPullFetchProgress:t}))),this.selectedRepository===e&&this.emitUpdate()}async _push(e,t){return this.withRefreshedGitHubRepository(e,(e=>this.performPush(e,t)))}async performPush(e,t){const n=this.repositoryStateCache.get(e),{remote:r}=n;if(null!==r)return this.withPushPullFetch(e,(async()=>{const{tip:i}=n.branchesState;if(i.kind===Hr.Unborn)throw new Error("The current branch is unborn.");if(i.kind===Hr.Detached)throw new Error("The current repository is in a detached HEAD state.");if(i.kind===Hr.Valid){const{branch:n}=i,s=n.upstreamRemoteName||r.name,o=`正在推送到 ${s}`;this.updatePushPullFetchProgress(e,{kind:"push",title:o,value:0,remote:s,branch:n.name});let a=2.5,l=1;const c=.1,u=1/(a+l)*(1-c);a*=u,l*=u;const h={type:mt.Push,repository:e},p={name:s,url:r.url};p.name!==r.name&&FT("remoteNameMismatch",new Error("The current remote name differs from the branch remote"));const d=this.gitStoreCache.get(e);await d.performFailableOperation((async()=>{await async function(e,t,n,r,i,s={forceWithLease:!1},o){const a=["push",t.name,r?`${n}:${r}`:n];null!==i&&a.push(...i),r?!0===s.forceWithLease&&a.push("--force-with-lease"):a.push("--set-upstream");const l=new Set(Lf);l.add(Gp.GitError.ProtectedBranchForcePush);let c={env:await Uf(t.url),expectedErrors:l};if(o){a.push("--progress");const e=`正在推送到 ${t.name}`,r="push";c=await pg({...c,trackLFSProgress:!0},new Qf,(i=>{const s="progress"===i.kind?i.details.text:i.text,a=i.percent;o({kind:r,title:e,description:s,value:a,remote:t.name,branch:n})})),o({kind:"push",title:e,value:0,remote:t.name,branch:n})}const u=await _d(a,e.path,"push",c);if(u.gitErrorDescription)throw new Dd(u,a)}(e,p,n.name,n.upstreamWithoutRemote,d.tagsToPush,t,(t=>{this.updatePushPullFetchProgress(e,{...t,title:o,value:a*t.value})})),d.clearTagsToPush(),await d.fetchRemotes([p],!1,(t=>{this.updatePushPullFetchProgress(e,{...t,value:a+t.value*l})}));const r="刷新存储库",i=a+l;this.updatePushPullFetchProgress(e,{kind:"generic",title:r,description:"快进式合并分支",value:i}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:r,value:i+.5*c}),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}),{retryAction:h}),this.updatePushPullFetchProgress(e,null),this.updateMenuLabelsForSelectedRepository(),this.statsStore.recordPush(Om(this.accounts,e),t)}}));this._showPopup({type:dh.PublishRepository,repository:e})}async withIsCommitting(e,t){if(this.repositoryStateCache.get(e).isCommitting)return!1;this.repositoryStateCache.update(e,(()=>({isCommitting:!0}))),this.emitUpdate();try{return await t()}finally{this.repositoryStateCache.update(e,(()=>({isCommitting:!1}))),this.emitUpdate()}}async withPushPullFetch(e,t){if(!this.repositoryStateCache.get(e).isPushPullFetchInProgress){this.repositoryStateCache.update(e,(()=>({isPushPullFetchInProgress:!0}))),this.emitUpdate();try{await t()}finally{this.repositoryStateCache.update(e,(()=>({isPushPullFetchInProgress:!1}))),this.emitUpdate()}}}async _pull(e){return this.withRefreshedGitHubRepository(e,(e=>this.performPull(e)))}async performPull(e){return this.withPushPullFetch(e,(async()=>{const t=this.gitStoreCache.get(e),n=t.currentRemote;if(!n)throw new Error("The repository has no remotes.");const r=this.repositoryStateCache.get(e).branchesState.tip;if(r.kind===Hr.Unborn)throw new Error("The current branch is unborn.");if(r.kind===Hr.Detached)throw new Error("The current repository is in a detached HEAD state.");if(r.kind===Hr.Valid){let i,s=null;null!==r.branch.upstream&&(s=await wf(e,r.branch.name,r.branch.upstream),i={kind:"pull",theirBranch:r.branch.upstream,currentBranch:r.branch.name});const o=`Pulling ${n.name}`,a="pull";this.updatePushPullFetchProgress(e,{kind:a,title:o,value:0,remote:n.name});try{let r=2,o=1;const a=.1,l=1/(r+o)*(1-a);r*=l,o*=l;const c={type:mt.Pull,repository:e};t.pullWithRebase?this.statsStore.increment("pullWithRebaseCount"):this.statsStore.increment("pullWithDefaultSettingCount"),await t.performFailableOperation((async()=>(await async function(e,t,n){let r={env:await Uf(t.url),expectedErrors:Lf};if(n){const e=`Pulling ${t.name}`,i="pull";r=await pg({...r,trackLFSProgress:!0},new ng,(r=>{if("context"===r.kind&&!r.text.startsWith("remote: Counting objects"))return;const s="progress"===r.kind?r.details.text:r.text,o=r.percent;n({kind:i,title:e,description:s,value:o,remote:t.name})})),n({kind:i,title:e,value:0,remote:t.name})}const i=await async function(e,t,n){return["-c","rebase.backend=merge","pull",...await _g(e),"--recurse-submodules",...n?["--progress"]:[],t]}(e,t.name,n),s=await _d(i,e.path,"pull",r);if(s.gitErrorDescription)throw new Dd(s,i)}(e,n,(t=>{this.updatePushPullFetchProgress(e,{...t,value:t.value*r})})),!0)),{gitContext:i,retryAction:c})&&await Bg(e,n,!1).catch((e=>log.error("Failed updating remote HEAD",e)));const u=r+o,h="刷新存储库";this.updatePushPullFetchProgress(e,{kind:"generic",title:h,description:"快进式合并分支",value:u}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:h,value:u+.5*a}),s&&await t.reconcileHistory(s),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}finally{this.updatePushPullFetchProgress(e,null)}}}))}async fastForwardBranches(e){try{const t=await async function(e){const{formatArgs:t,parse:n}=cf({fullName:"%(refname)",sha:"%(objectname)",upstream:"%(upstream)",symref:"%(symref)",head:"%(HEAD)"}),r=await _d(["for-each-ref",...t,"refs/heads","refs/remotes"],e.path,"getBranchesDifferingFromUpstream",{expectedErrors:new Set([Gp.GitError.NotAGitRepository])});if(r.gitError===Gp.GitError.NotAGitRepository)return[];const i=[],s=new Map;for(const e of n(r.stdout))if(!(e.symref.length>0||"*"===e.head))if(e.fullName.startsWith("refs/heads")){if(0===e.upstream.length)continue;i.push({ref:e.fullName,sha:e.sha,upstream:e.upstream})}else s.set(e.fullName,e.sha);const o=new Array;for(const e of i){const t=s.get(e.upstream);void 0!==t&&t!==e.sha&&o.push({ref:e.ref,sha:e.sha,upstreamRef:e.upstream,upstreamSha:t})}return o}(e);await async function(e,t){if(0===t.length)return;const n=t.map((e=>`${e.upstreamRef}:${e.ref}`)),r={successExitCodes:new Set([0,1]),env:{GIT_REFLOG_ACTION:"pull"},stdin:n.join("\n")};await _d(["fetch",".","--show-forced-updates","--no-write-fetch-head","--stdin"],e.path,"fastForwardBranches",r)}(e,t)}catch(e){log.error("Branch fast-forwarding failed",e)}}async _publishRepository(e,t,n,r,i,s){const o=ir.fromAccount(i),a=await o.createRepository(s,t,n,r),l=this.gitStoreCache.get(e);return await l.performFailableOperation((()=>Ig(e,"origin",a.clone_url))),await l.loadRemotes(),l.tip.kind===Hr.Valid&&await this.performPush(e),await l.refreshDefaultBranch(),this.repositoryWithRefreshedGitHubRepository(e)}_clone(e,t,n={}){const r=this.cloningRepositoriesStore.clone(e,t,n),i=this.cloningRepositoriesStore.repositories.find((n=>n.url===e&&n.path===t));return r.then((e=>{e&&this.statsStore.recordCloneRepository()})),{promise:r,repository:i}}_removeCloningRepository(e){this.cloningRepositoriesStore.remove(e)}async _discardChanges(e,t,n=!0){const r=this.gitStoreCache.get(e),{askForConfirmationOnDiscardChangesPermanently:i}=this.getState();try{await r.discardChanges(t,n,i)}catch(e){return e instanceof wt||log.error("Failed discarding changes",e),void this.emitError(e)}return this._refreshRepository(e)}async _discardChangesFromSelection(e,t,n,r){const i=this.gitStoreCache.get(e);return await i.discardChangesFromSelection(t,n,r),this._refreshRepository(e)}async _startAmendingRepository(e,t,n,r=!1){const i=this.repositoryStateCache.get(e),{tip:s}=i.branchesState,{askForConfirmationOnForcePush:o}=this.getState();if(o&&!r&&!n&&s.kind===Hr.Valid)return this._showPopup({type:dh.WarnForcePush,operation:"修改",onBegin:()=>{this._startAmendingRepository(e,t,n,!0)}});await this._changeRepositorySection(e,tt.Changes);const a=this.gitStoreCache.get(e);await a.prepareToAmendCommit(t),this.setRepositoryCommitToAmend(e,t),this.statsStore.increment("amendCommitStartedCount")}async _stopAmendingRepository(e){this.setRepositoryCommitToAmend(e,null)}setRepositoryCommitToAmend(e,t){this.repositoryStateCache.update(e,(()=>({commitToAmend:t}))),this.emitUpdate()}async _undoCommit(e,t,n){const r=this.gitStoreCache.get(e),i=this.repositoryStateCache.get(e),{changesState:s}=i,o=0===s.workingDirectory.files.length;return n&&(this.confirmUndoCommit&&!o||t.isMergeCommit)?this._showPopup({type:dh.WarnLocalChangesBeforeUndo,repository:e,commit:t,isWorkingDirectoryClean:o}):(await this._changeRepositorySection(e,tt.Changes,!0),await r.undoCommit(t),this.statsStore.recordCommitUndone(o),this._refreshRepository(e))}async _resetToCommit(e,t,n){const r=this.gitStoreCache.get(e),i=this.repositoryStateCache.get(e),{changesState:s}=i,o=0===s.workingDirectory.files.length;return n&&!o?this._showPopup({type:dh.WarningBeforeReset,repository:e,commit:t}):(await this._changeRepositorySection(e,tt.Changes),await r.performFailableOperation((()=>Eg(e,2,t.sha))),this._refreshRepository(e))}async _fetchRefspec(e,t){return this.withRefreshedGitHubRepository(e,(async e=>{const n=this.gitStoreCache.get(e);return await n.fetchRefspec(t),this._refreshRepository(e)}))}_fetch(e,t){return this.withRefreshedGitHubRepository(e,(e=>this.performFetch(e,t)))}_fetchRemote(e,t,n){return this.withRefreshedGitHubRepository(e,(e=>this.performFetch(e,n,[t])))}async performFetch(e,t,n){await this.withPushPullFetch(e,(async()=>{const r=this.gitStoreCache.get(e);try{const i=.9,s=.1,o=t===ln.BackgroundTask,a=t=>{this.updatePushPullFetchProgress(e,{...t,value:t.value*i})};void 0===n?await r.fetch(o,a):await r.fetchRemotes(n,o,a);const l="刷新存储库";this.updatePushPullFetchProgress(e,{kind:"generic",title:l,description:"快进式合并分支",value:i}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:l,value:i+.5*s}),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}finally{this.updatePushPullFetchProgress(e,null),t===ln.UserInitiatedTask&&null!=e.gitHubRepository&&this._refreshIssues(e.gitHubRepository)}}))}_endWelcomeFlow(){return this.showWelcomeFlow=!1,this.emitUpdate(),Ut(Tp,!0),this.statsStore.recordWelcomeWizardTerminated(),Promise.resolve()}_setCommitMessageFocus(e){this.focusCommitMessage!==e&&(this.focusCommitMessage=e,this.emitUpdate())}_setSidebarWidth(e){return this.sidebarWidth={...this.sidebarWidth,value:e},$t(yC,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetSidebarWidth(){return this.sidebarWidth={...this.sidebarWidth,value:250},localStorage.removeItem(yC),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setCommitSummaryWidth(e){return this.commitSummaryWidth={...this.commitSummaryWidth,value:e},$t(wC,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetCommitSummaryWidth(){return this.commitSummaryWidth={...this.commitSummaryWidth,value:250},localStorage.removeItem(wC),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setCommitMessage(e,t){return this.gitStoreCache.get(e).setCommitMessage(t)}setAppMenu(e){return this.appMenu?this.appMenu=this.appMenu.withMenu(e):this.appMenu=Jr.fromMenu(e),this.emitUpdate(),Promise.resolve()}_setAppMenuState(e){return this.appMenu&&(this.appMenu=e(this.appMenu),this.emitUpdate()),Promise.resolve()}_setAccessKeyHighlightState(e){return this.highlightAccessKeys!==e&&(this.highlightAccessKeys=e,this.emitUpdate()),Promise.resolve()}async _mergeBranch(e,t,n,r=!1){const{multiCommitOperationState:i}=this.repositoryStateCache.get(e);if(null===i||"Merge"!==i.operationDetail.kind)return void log.error("[mergeBranch] - Not in merge operation state");this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...i.operationDetail,sourceBranch:t}})));const s=this.gitStoreCache.get(e);r&&this.statsStore.increment("squashMergeInvokedCount"),null!==n&&(n.kind===Gw.Clean?this.statsStore.increment("mergedWithCleanMergeHintCount"):n.kind===Gw.Conflicts?this.statsStore.increment("mergedWithConflictWarningHintCount"):n.kind===Gw.Loading&&this.statsStore.increment("mergedWithLoadingHintCount"));const o=await s.merge(t,r),{tip:a}=s;return o===yf.Success&&a.kind===Hr.Valid?(this._setBanner({type:Vw.SuccessfulMerge,ourBranch:a.branch.name,theirBranch:t.name}),r&&this.statsStore.increment("squashMergeSuccessfulCount"),this._endMultiCommitOperation(e)):o===yf.AlreadyUpToDate&&a.kind===Hr.Valid&&(this._setBanner({type:Vw.BranchAlreadyUpToDate,ourBranch:a.branch.name,theirBranch:t.name}),this._endMultiCommitOperation(e)),this._refreshRepository(e)}_setConflictsResolved(e){const{multiCommitOperationState:t}=this.repositoryStateCache.get(e);null!==t&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({userHasResolvedConflicts:!0})))}async _rebase(e,t,n){const r=this.getMultiCommitOperationProgressCallBack(e),i=this.gitStoreCache.get(e),s=await i.performFailableOperation((()=>async function(e,t,n,r){const i={expectedErrors:new Set([Gp.GitError.RebaseConflicts])};let s=i;if(void 0!==r){const o=await $g(e,t.tip.sha,n.tip.sha);if(null===o)return log.warn("Unable to rebase these branches because one or both of the refs do not exist in the repository"),sy.Error;s=dy(i,{commits:o,progressCallback:r})}return my(await _d(["-c","rebase.backend=merge","rebase",t.name,n.name],e.path,"rebase",s))}(e,t,n,r)),{retryAction:{type:mt.Rebase,repository:e,baseBranch:t,targetBranch:n}});return s||sy.Error}async _abortRebase(e){const t=this.gitStoreCache.get(e);return await t.performFailableOperation((()=>async function(e){await _d(["rebase","--abort"],e.path,"abortRebase")}(e)))}async _continueRebase(e,n,r){const i=this.getMultiCommitOperationProgressCallBack(e),s=this.gitStoreCache.get(e);return await s.performFailableOperation((()=>async function(e,n,r=new Map,i,s=":"){const o=n.filter((e=>e.status.kind!==Nu.Untracked));for(const[t,i]of r){const r=n.find((e=>e.path===t));void 0!==r?await Rg(e,r,i):log.error(`[continueRebase] couldn't find file ${t} even though there's a manual resolution for it`)}const a=o.filter((e=>!r.has(e.path)));await Cg(e,a);const l=await Ry(e);if(null==l)return log.warn("[continueRebase] unable to get status after staging changes, skipping any other steps"),sy.Aborted;const c=await async function(e){try{const n=t.join(e.path,".git","REBASE_HEAD");return(await(0,b.readFile)(n,"utf8")).trim()}catch(e){return log.warn("[rebase] a problem was encountered reading .git/REBASE_HEAD, so it is unsafe to continue rebasing",e),null}}(e);if(null===c)return sy.Aborted;const u=l.workingDirectory.files.filter((e=>e.status.kind!==Nu.Untracked)),h={expectedErrors:new Set([Gp.GitError.RebaseConflicts,Gp.GitError.UnresolvedConflicts]),env:{GIT_EDITOR:s}};let p=h;if(void 0!==i){const t=await uy(e);if(null===t)return log.warn("[continueRebase] unable to get rebase status, skipping any other steps"),sy.Aborted;p=dy(h,{commits:t.commits,progressCallback:i})}return 0===u.length?(log.warn(`[rebase] no tracked changes to commit for ${c}, continuing rebase but skipping this commit`),my(await _d(["rebase","--skip"],e.path,"continueRebaseSkipCurrentCommit",p))):my(await _d(["rebase","--continue"],e.path,"continueRebase",p))}(e,n.files,r,i)))||sy.Error}async _abortMerge(e){const t=this.gitStoreCache.get(e);return await t.performFailableOperation((()=>async function(e){await _d(["merge","--abort"],e.path,"abortMerge")}(e)))}async _abortSquashMerge(e){const t=this.gitStoreCache.get(e),{branchesState:n,changesState:{workingDirectory:r}}=this.repositoryStateCache.get(e);if(void 0===await this._finishConflictedMerge(e,r,new Map))return void log.error("[_abortSquashMerge] - Could not abort squash merge - commiting squash msg failed");const{tip:i}=n;i.kind===Hr.Valid?await t.performFailableOperation((()=>Eg(e,0,i.branch.tip.sha))):log.error("[_abortSquashMerge] - Could not abort squash merge - tip was invalid")}async _finishConflictedMerge(e,t,n){const r=t.files.filter((e=>e.status.kind===Nu.Conflicted)),i=this.gitStoreCache.get(e);return await i.performFailableOperation((()=>async function(e,t,n=new Map){for(const[r,i]of n){const n=t.find((e=>e.path===r));void 0!==n?await Rg(e,n,i):log.error(`couldn't find file ${r} even though there's a manual resolution for it`)}const r=t.filter((e=>!n.has(e.path)));return await Cg(e,r),Ld(await _d(["commit","--no-edit","--cleanup=strip"],e.path,"createMergeCommit"))}(e,r,n)))}async _setRemoteURL(e,t,n){const r=this.gitStoreCache.get(e);await r.setRemoteURL(t,n)}async _openShell(e){this.statsStore.increment("openShellCount");const{useCustomShell:t,customShell:n}=this.getState();try{if(t&&n)await async function(e,t,n){if(!await vm(e.path)){const t="选项";throw new rw(`Could not find executable for custom shell at path '${e.path}'. Please open ${t} and select an available shell.`)}let r=null;return r=function(e,t){const n=Dm(e.arguments,t);return Cm(e.path,n)}(e,t),null!=r?(lw("Custom Shell",r,n),Promise.resolve()):Promise.reject("Platform not currently supported for launching shells: linux")}(n,e,(e=>this._pushError(e)));else{const t=await async function(e){const t=await aw(),n=t.find((t=>t.shell===e));return n||t.find((e=>e.shell===iw))}(this.selectedShell);await async function(e,t,n){if(!await vm(e.path)){const t="选项";throw new rw(`Could not find executable for '${e.shell}' at path '${e.path}'. Please open ${t} and select an available shell.`)}let r=null;return r=function(e,t){const n=e.shell;switch(n){case Jy.Gnome:case Jy.GnomeConsole:case Jy.Mate:case Jy.Tilix:case Jy.Terminator:case Jy.XFCE:case Jy.Alacritty:return Cm(e.path,["--working-directory",t]);case Jy.Urxvt:return Cm(e.path,["-cd",t]);case Jy.Konsole:return Cm(e.path,["--workdir",t]);case Jy.Xterm:return Cm(e.path,["-e","/bin/bash"],{cwd:t});case Jy.Terminology:return Cm(e.path,["-d",t]);case Jy.Deepin:case Jy.Elementary:return Cm(e.path,["-w",t]);case Jy.Kitty:return Cm(e.path,["--single-instance","--directory",t]);case Jy.LXTerminal:return Cm(e.path,["--working-directory="+t]);case Jy.Warp:return Cm(e.path,[],{cwd:t});default:return ct(0,`Unknown shell: ${n}`)}}(e,t),null!=r?(lw(e.shell,r,n),Promise.resolve()):Promise.reject("Platform not currently supported for launching shells: linux")}(t,e,(e=>this._pushError(e)))}}catch(e){this.emitError(e)}}_openInBrowser(e){return pt.openExternal(e)}async _openInExternalEditor(e){const{selectedExternalEditor:t,useCustomEditor:n,customEditor:r}=this.getState();try{if(n&&r)await async function(e,t){const n=t.path;if(!await vm(n))throw new am(`Could not find executable for custom editor at path '${t.path}'. Please open Options and select an available editor.`,{openPreferences:!0});const r={detached:!0},i=Dm(t.arguments,e);try{n.endsWith(".cmd")?(0,v.spawn)(`"${n}"`,i,{...r,shell:!0}):(0,v.spawn)(n,i,r)}catch(e){throw log.error(`Error while launching custom editor at path ${t.path} with arguments ${i}`,e),new am("EACCES"===e?.code?`GitHub Desktop doesn't have the proper permissions to start custom editor at path ${t.path}. Please open Options and try another editor.`:`Something went wrong while trying to start custom editor at path ${t.path}. Please open Options and try another editor.`,{openPreferences:!0})}}(e,r);else{const n=await Tm(t);if(null===n)return void this.emitError(new am("No suitable editors installed for GitHub Desktop to launch. Install Visual Studio Code for your platform and restart GitHub Desktop to try again.",{suggestDefaultEditor:!0}));await async function(e,t){const n=t.path;if(!await vm(n))throw new am(`Could not find executable for '${t.editor}' at path '${t.path}'. Please open Options and select an available editor.`,{openPreferences:!0});const r={detached:!0};try{t.usesShell?(0,v.spawn)(`"${n}"`,[`"${e}"`],{...r,shell:!0}):function(e,t,n){if(bm()){const r=function(e){return e.startsWith("/var/lib/flatpak/app")?e.replace("/var/lib/flatpak/app/",""):e}(e),i=function(e){return e.replace(/(\s)/," ")}(t);return(0,v.spawn)("flatpak-spawn",["--host",r,i],n)}(0,v.spawn)(e,[t],n)}(n,e,r)}catch(e){throw log.error(`Error while launching ${t.editor}`,e),new am("EACCES"===e?.code?`GitHub Desktop doesn't have the proper permissions to start '${t.editor}'. Please open Options and try another editor.`:`Something went wrong while trying to start '${t.editor}'. Please open Options and try another editor.`,{openPreferences:!0})}}(e,n)}}catch(e){this.emitError(e)}}async _saveGitIgnore(e,t){return await Py(e,t),this._refreshRepository(e)}async setStatsOptOut(e,t){await this.statsStore.setOptOut(e,t),this.emitUpdate()}_setUseExternalCredentialHelper(e){(e=>{Ut(dC,e)})(e),this.useExternalCredentialHelper=e,this.emitUpdate()}_setAskToMoveToApplicationsFolderSetting(e){return this.askToMoveToApplicationsFolderSetting=e,Ut(CC,e),this.emitUpdate(),Promise.resolve()}_setConfirmRepositoryRemovalSetting(e){return this.askForConfirmationOnRepositoryRemoval=e,Ut(SC,e),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardChangesSetting(e){return this.confirmDiscardChanges=e,Ut(kC,e),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardChangesPermanentlySetting(e){return this.confirmDiscardChangesPermanently=e,Ut(AC,e),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardStashSetting(e){return this.confirmDiscardStash=e,Ut(RC,e),this.emitUpdate(),Promise.resolve()}_setConfirmCheckoutCommitSetting(e){return this.confirmCheckoutCommit=e,Ut(TC,e),this.emitUpdate(),Promise.resolve()}_setConfirmForcePushSetting(e){return this.askForConfirmationOnForcePush=e,Ut(xC,e),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),Promise.resolve()}_setConfirmUndoCommitSetting(e){return this.confirmUndoCommit=e,Ut(DC,e),this.emitUpdate(),Promise.resolve()}_setUncommittedChangesStrategySetting(e){return this.uncommittedChangesStrategy=e,localStorage.setItem(_C,e),this.emitUpdate(),Promise.resolve()}_setExternalEditor(e){const t=this.updateSelectedExternalEditor(e);return localStorage.setItem(MC,e),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository(),t}_setShell(e){return this.selectedShell=e,localStorage.setItem(HC,e),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository(),Promise.resolve()}_changeImageDiffType(e){return this.imageDiffType=e,localStorage.setItem(IC,JSON.stringify(this.imageDiffType)),this.emitUpdate(),Promise.resolve()}_setHideWhitespaceInChangesDiff(e,t){return Ut(OC,e),this.hideWhitespaceInChangesDiff=e,this.refreshChangesSection(t,{includingStatus:!0,clearPartialState:!0})}_setHideWhitespaceInHistoryDiff(e,t,n){return Ut(NC,e),this.hideWhitespaceInHistoryDiff=e,null===n?this.updateChangesWorkingDirectoryDiff(t):this._changeFileSelection(t,n)}_setHideWhitespaceInPullRequestDiff(e,t,n){Ut(LC,e),this.hideWhitespaceInPullRequestDiff=e,null!==n&&this._changePullRequestFileSelection(t,n)}_setShowSideBySideDiff(e){e!==this.showSideBySideDiff&&(function(e){Ut(yb,e)}(e),this.showSideBySideDiff=e,this.statsStore.increment("diffModeChangeCount"),this.emitUpdate())}_setUpdateBannerVisibility(e){this.isUpdateAvailableBannerVisible=e,this.emitUpdate()}_setUpdateShowCaseVisibility(e){this.isUpdateShowcaseVisible=e,this.emitUpdate()}_setBanner(e){this.currentBanner=e,this.emitUpdate()}_clearBanner(e){const{currentBanner:t}=this;null!==t&&(void 0!==e&&t.type!==e||(this.currentBanner=null,this.emitUpdate()))}_reportStats(){return this.statsStore.reportStats(this.accounts,this.repositories)}_recordLaunchStats(e){return this.statsStore.recordLaunchStats(e)}async _appendIgnoreRule(e,t){return await Iy(e,t),this._refreshRepository(e)}async _appendIgnoreFile(e,t){return await async function(e,t){if(t instanceof Array){const n=t.map((e=>Oy(e)));return Iy(e,n)}return Iy(e,Oy(t))}(e,t),this._refreshRepository(e)}_resolveOAuthRequest(e){return this.signInStore.resolveOAuthRequest(e)}_resetSignInState(){return this.signInStore.reset(),Promise.resolve()}_beginDotComSignIn(e){return this.signInStore.beginDotComSignIn(e)}_beginEnterpriseSignIn(e){return this.signInStore.beginEnterpriseSignIn(e)}_setSignInEndpoint(e){return this.signInStore.setEndpoint(e)}_setSignInCredentials(e,t){return this.signInStore.authenticateWithBasicAuth(e,t)}_requestBrowserAuthentication(){this.signInStore.authenticateWithBrowser()}_setSignInOTP(e){return this.signInStore.setTwoFactorOTP(e)}async _setAppFocusState(e){this.appIsFocused!==e&&(this.appIsFocused=e,this.emitUpdate()),this.appIsFocused?(this.repositoryIndicatorUpdater.resume(),this.selectedRepository instanceof Zr&&(this.startPullRequestUpdater(this.selectedRepository),this.currentOnboardingTutorialStep===Yw.PickEditor&&await this._resolveCurrentEditor())):(this.repositoryIndicatorUpdater.pause(),this.stopPullRequestUpdater())}_startOpenInDesktop(e){const t=new Promise((e=>this.resolveOpenInDesktop=e));return e(),t}async _completeOpenInDesktop(e){const t=this.resolveOpenInDesktop;this.resolveOpenInDesktop=null;const n=await e();return t&&t(n),n}_updateRepositoryPath(e,t){return this.repositoriesStore.updateRepositoryPath(e,t)}async _removeAccount(e){log.info(`[AppStore] removing account ${e.login} (${e.name}) from store`),await this.accountsStore.removeAccount(e),await async function(e){try{const t=Buffer.from(`${Gn}:${zn}`).toString("base64");return 204===(await gn(e.endpoint,null,"DELETE",`applications/${Gn}/token`,{access_token:e.token},{Authorization:`Basic ${t}`})).status}catch(t){return log.error(`deleteToken: failed with endpoint ${e.endpoint}`,t),!1}}(e)}async _addAccount(e){log.info(`[AppStore] adding account ${e.login} (${e.name}) to store`);const t=await this.accountsStore.addAccount(e);this.showWelcomeFlow&&null!==t&&this.apiRepositoriesStore.loadRepositories(t)}_updateRepositoryMissing(e,t){return this.repositoriesStore.updateRepositoryMissing(e,t)}async _updateRepositoryWorkflowPreferences(e,t){await this.repositoriesStore.updateRepositoryWorkflowPreferences(e,t)}async _addTutorialRepository(e,t,n){const r=await Vg(e);if("regular"===r.kind){const e=r.topLevelWorkingDirectory;log.info(`[AppStore] adding tutorial repository at ${e} to store`),await this.repositoriesStore.addTutorialRepository(e,t,n),this.tutorialAssessor.onNewTutorialRepository()}else{const t=new Error(`${e} isn't a git repository.`);this.emitError(t)}}async _addRepositories(e){const t=new Array,n=new Array,r=new Array;for(const i of e){const e=await Vg(i).catch((e=>(log.error("Could not determine repository type",e),{kind:"missing"})));if("unsafe"!==e.kind)if("regular"===e.kind){const r=e.topLevelWorkingDirectory;log.info(`[AppStore] adding repository at ${r} to store`);const i=Cr(this.repositories,r);if(void 0!==i){t.push(i);continue}const s=await this.repositoriesStore.addRepository(r),o=this.gitStoreCache.get(s);await o.loadRemotes();const[a,l]=await Promise.all([this.repositoryWithRefreshedGitHubRepository(s),this.isUsingLFS(s)]);t.push(a),l&&n.push(a)}else r.push(i);else{const e=await this.repositoriesStore.addRepository(i,{missing:!0});t.push(e)}}return r.length>0&&this.emitError(new Error(this.getInvalidRepoPathsMessage(r))),n.length>0&&this._showPopup({type:dh.InitializeLFS,repositories:n}),t}async _removeRepository(e,t){try{if(t)try{await pt.moveItemToTrash(e.path)}catch(e){return log.error("Failed moving repository to trash",e),void this.emitError(new Error("Failed to move the repository directory to Trash.\n\nA common reason for this is that the directory or one of its files is open in another program."))}e instanceof ti?this._removeCloningRepository(e):await this.repositoriesStore.removeRepository(e)}catch(e){return void this.emitError(e)}0===(await this.repositoriesStore.getAll()).length?this._closeFoldout(et.Repository):this._showFoldout({type:et.Repository})}async _cloneAgain(e,t){const{promise:n,repository:r}=this._clone(e,t);if(await this._selectRepository(r),!await n)return;const i=this.repositories.find((e=>e.path===t));if(i){const e=await this._updateRepositoryMissing(i,!1);await this._selectRepository(e)}}getInvalidRepoPathsMessage(e){return 1===e.length?`${e} isn't a Git repository.`:`The following paths aren't Git repositories:\n\n${e.slice(0,3).map((e=>`- ${e}`)).join("\n")}${e.length>3?`\n\n(and ${e.length-3} more)`:""}`}async withRefreshedGitHubRepository(e,t){let n=e;return Om(this.accounts,n)||(n=await this.repositoryWithRefreshedGitHubRepository(e)),t(n)}updateRevertProgress(e,t){this.repositoryStateCache.update(e,(()=>({revertProgress:t}))),this.selectedRepository===e&&this.emitUpdate()}async _revertCommit(e,t){return this.withRefreshedGitHubRepository(e,(async e=>{const n=this.gitStoreCache.get(e);await n.revertCommit(e,t,(t=>{this.updateRevertProgress(e,t)})),this.updateRevertProgress(e,null),await this._refreshRepository(e)}))}async _installGlobalLFSFilters(e){try{await async function(e){const t=["lfs","install","--skip-repo"];e&&t.push("--force"),await _d(t,__dirname,"installGlobalLFSFilter")}(e)}catch(e){this.emitError(e)}}async isUsingLFS(e){try{return await async function(e){return(await _d(["lfs","track"],e.path,"isUsingLFS",{env:{GIT_LFS_TRACK_NO_INSTALL_HOOKS:"1"}})).stdout.length>0}(e)}catch(e){return!1}}async _installLFSHooks(e){for(const t of e)try{await Ly(t,!0)}catch(e){this.emitError(e)}}_changeCloneRepositoriesTab(e){return this.selectedCloneRepositoryTab=e,this.emitUpdate(),Promise.resolve()}_refreshApiRepositories(e){return this.apiRepositoriesStore.loadRepositories(e)}_changeBranchesTab(e){return this.selectedBranchesTab=e,this.emitUpdate(),Promise.resolve()}async _showGitHubExplore(e){const{gitHubRepository:t}=e;if(!t||null===t.htmlURL)return;const n=new URL(t.htmlURL);n.pathname="/explore",await this._openInBrowser(n.toString())}async _createPullRequest(e,t){if(!e.gitHubRepository)return;const n=this.repositoryStateCache.get(e),r=n.branchesState.tip;if(r.kind!==Hr.Valid)return;const i=r.branch,s=n.aheadBehind;null==s?this._showPopup({type:dh.PushBranchCommits,repository:e,branch:i}):s.ahead>0?this._showPopup({type:dh.PushBranchCommits,repository:e,branch:i,unPushedCommits:s.ahead}):await this._openCreatePullRequestInBrowser(e,i,t)}async _showPullRequest(e){if(null===e.gitHubRepository)return;const t=this.repositoryStateCache.get(e).branchesState.currentPullRequest;return null!==t?this._showPullRequestByPR(t):void 0}async _showPullRequestByPR(e){const{htmlURL:t}=e.base.gitHubRepository;if(null===t)return;const n=`${t}/pull/${e.pullRequestNumber}`;await this._openInBrowser(n)}async _refreshPullRequests(e){if($r(e)){const t=Om(this.accounts,e);null!==t&&await this.pullRequestCoordinator.refreshPullRequests(e,t)}}async onPullRequestChanged(e,t){this.repositoryStateCache.updateBranchesState(e,(()=>({openPullRequests:t}))),this.updateCurrentPullRequest(e),this.gitStoreCache.get(e).pruneForkedRemotes(t);const n=this.getSelectedState();n&&n.type===Je.Repository&&n.repository.id===e.id&&this.updateMenuLabelsForSelectedRepository(),this.emitUpdate()}updateCurrentPullRequest(e){e.gitHubRepository&&(this.repositoryStateCache.updateBranchesState(e,(t=>{let n=null;const{remote:r}=this.repositoryStateCache.get(e);return t.tip.kind===Hr.Valid&&r&&(n=rb(t.tip.branch,t.openPullRequests,r)),{currentPullRequest:n}})),this.emitUpdate())}async _openCreatePullRequestInBrowser(e,t,n){const r=e.gitHubRepository;if(!r)return;const{parent:i,owner:s,name:o,htmlURL:a}=r,l=jr(e),c=l&&null!==i?`${i.owner.login}:${i.name}:`:"",u=`${a}/pull/new/${void 0!==n?c+encodeURIComponent(n.nameWithoutRemote)+"...":""}${(l?`${s.login}:${o}:`:"")+encodeURIComponent(t.upstreamWithoutRemote??t.nameWithoutRemote)}`;await this._openInBrowser(u)}async _updateExistingUpstreamRemote(e){const t=this.gitStoreCache.get(e);return await t.updateExistingUpstreamRemote(),this._refreshRepository(e)}getIgnoreExistingUpstreamRemoteKey(e){return`repository/${e.id}/ignoreExistingUpstreamRemote`}_ignoreExistingUpstreamRemote(e){return Ut(this.getIgnoreExistingUpstreamRemoteKey(e),!0),Promise.resolve()}getIgnoreExistingUpstreamRemote(e){const t=this.getIgnoreExistingUpstreamRemoteKey(e);return Promise.resolve(Ht(t,!1))}async addUpstreamRemoteIfNeeded(e){const t=this.gitStoreCache.get(e);if(!await this.getIgnoreExistingUpstreamRemote(e))return t.addUpstreamRemoteIfNeeded()}async _checkoutPullRequest(e,t,n,r,i){const s=await this._findPullRequestBranch(e,t,n,r,i);void 0!==s&&(await this._checkoutBranch(e,s),this.statsStore.increment("prBranchCheckouts"))}async _findPullRequestBranch(e,t,n,r,i){const s=this.gitStoreCache.get(e);let o=(await Pg(e)).find((e=>Er(r,e)));if(void 0===o)try{const t=`github-desktop-${n}`;o=await Ig(e,t,r)}catch(e){return void this.emitError(new Error(`Couldn't find PR branch, adding remote failed: ${e.message}`))}const a=`${o.name}/${i}`;let l=s.allBranches.find((e=>e.type===$p.Local&&e.upstream===a));if(void 0!==l)return l;const c=e=>s.allBranches.find((t=>t.type===$p.Remote&&t.name===e));if(l=c(a),void 0===l)try{await this._fetchRemote(e,o,ln.UserInitiatedTask),l=c(a)}catch(e){log.error(`Failed fetching remote ${o?.name}`,e)}if(void 0!==l)return o.name!==s.defaultRemote?.name&&o.name!==s.upstreamRemote?.name?await this._createBranch(e,`pr/${t}`,a,!1):l;this.emitError(new Error(`Couldn't find branch '${i}' in remote '${o.name}'. A common reason for this is that the PR author has deleted their branch or their forked repository.`))}_setShowCoAuthoredBy(e,t){return this.gitStoreCache.get(e).setShowCoAuthoredBy(t),Promise.resolve()}_setCoAuthors(e,t){return this.gitStoreCache.get(e).setCoAuthors(t),Promise.resolve()}_setSelectedTheme(e){return Np(e),this.selectedTheme=e,this.emitUpdate(),Promise.resolve()}_setSelectedTabSize(e){return isNaN(e)||(this.selectedTabSize=e,$t(FC,e),this.emitUpdate()),Promise.resolve()}_setTitleBarStyle(e){return this.titleBarStyle=e,ye(e)}async _resolveCurrentEditor(){const e=await Tm(this.selectedExternalEditor),t=null!=e?e.editor:null;this.resolvedExternalEditor!==t&&(this.resolvedExternalEditor=t,this.currentOnboardingTutorialStep===Yw.PickEditor&&this.selectedRepository instanceof Zr&&this.updateCurrentTutorialStep(this.selectedRepository),this.emitUpdate())}getResolvedExternalEditor=()=>this.resolvedExternalEditor;_updateManualConflictResolution(e,t,n){this.repositoryStateCache.updateChangesState(e,(e=>{const{conflictState:r}=e;if(null===r)return{conflictState:r};const i=new Map(r.manualResolutions);return null!==n?i.set(t,n):i.delete(t),{conflictState:{...r,manualResolutions:i}}})),this.updateMultiCommitOperationStateAfterManualResolution(e),this.emitUpdate()}updateMultiCommitOperationStateAfterManualResolution(e){const t=this.repositoryStateCache.get(e),{changesState:n,multiCommitOperationState:r}=t;if(null===n.conflictState||null===r||"ShowConflicts"!==r.step.kind)return;const{step:i}=r,{manualResolutions:s}=n.conflictState,o={...i.conflictState,manualResolutions:s};this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:{...i,conflictState:o}})))}async createStashAndDropPreviousEntry(e,t){const n=await Tw(e,t),r=this.gitStoreCache.get(e),i=await r.performFailableOperation((()=>this.createStashEntry(e,t)));if(!0===i&&null!==n){const{stashSha:t,branchName:i}=n;await r.performFailableOperation((async()=>{await Dw(e,t),log.info(`Dropped stash '${t}' associated with ${i}`)}))}return!0===i}async createStashEntry(e,t){const{changesState:n}=this.repositoryStateCache.get(e),{workingDirectory:r}=n,i=r.files.filter((e=>e.status.kind===Nu.Untracked));return async function(e,t,n){const r=n.map((e=>e.withIncludeAll(!0)));await Cg(e,r);const i=["stash","push","-m",Aw("string"==typeof t?t:t.name)],s=await _d(i,e.path,"createStashEntry",{successExitCodes:new Set([0,1])});if(1===s.exitCode){const e=/^error: /m.exec(s.stderr);if(null!==e&&e.length>0)throw new Dd(s,i);log.info(`[createDesktopStashEntry] a stash was created successfully but exit code ${s.exitCode} reported. stderr: ${s.stderr}`)}return"No local changes to save\n"!==s.stdout}(e,t,i)}async _popStashEntry(e,t){await _w(e,t.stashSha),log.info(`[AppStore. _popStashEntry] popped stash with commit id ${t.stashSha}`),this.statsStore.increment("stashRestoreCount"),await this._refreshRepository(e)}async _dropStashEntry(e,t){const n=this.gitStoreCache.get(e);await n.performFailableOperation((()=>Dw(e,t.stashSha))),log.info(`[AppStore. _dropStashEntry] dropped stash with commit id ${t.stashSha}`),this.statsStore.increment("stashDiscardCount"),await n.loadStashEntries()}_setStashedFilesWidth(e){return this.stashedFilesWidth={...this.stashedFilesWidth,value:e},$t(bC,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetStashedFilesWidth(){return this.stashedFilesWidth={...this.stashedFilesWidth,value:250},localStorage.removeItem(bC),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}async _testPruneBranches(){null!==this.currentBranchPruner&&await this.currentBranchPruner.testPrune()}async _showCreateForkDialog(e){const t=Om(this.accounts,e);null!==t&&await this._showPopup({type:dh.CreateFork,repository:e,account:t})}async _convertRepositoryToFork(e,t){const n=this.gitStoreCache.get(e),r=n.defaultRemote?.name,i=n.defaultRemote?.url,{endpoint:s}=e.gitHubRepository;return void 0!==r&&void 0!==i&&await n.setRemoteURL(r,t.clone_url)?(await n.ensureUpstreamRemoteURL(i),this.repositoriesStore.setGitHubRepository(e,await this.repositoriesStore.upsertGitHubRepository(s,t))):e}async _createTutorialRepository(e){try{await this.statsStore.recordTutorialStarted();const n="desktop-tutorial",r=t.resolve(await ab(),n),i=await async function(e,n,r,i){const s=sb(e);if(i(`Creating repository on ${s}`,0),await R(r))throw new Error(`The path '${r}' already exists. Please move it out of the way, or remove it, and then try again.`);const o=await async function(e,t){const n=new ir(e.endpoint,e.token);try{return await n.createRepository(null,t,"GitHub Desktop tutorial repository",!0)}catch(n){if(n instanceof mn&&422===n.responseStatus&&null!==n.apiError&&"Repository creation failed."===n.apiError.message&&n.apiError.errors&&n.apiError.errors.some((e=>"name already exists on this account"===e.message)))throw new Error(`You already have a repository named "${t}" on your account at ${sb(e)}.\n\nPlease delete the repository and try again.`);throw n}}(e,n),a=o.default_branch??await bg();i("Initializing local repository",.2),await(0,b.mkdir)(r,{recursive:!0}),await _d(["-c",`init.defaultBranch=${a}`,"init"],r,"tutorial:init"),await(0,b.writeFile)(t.join(r,"README.md"),"# Welcome to GitHub Desktop!\n\nThis is your README. READMEs are where you can communicate what your project is and how to use it.\n\nWrite your name on line 6, save it, and then head back to GitHub Desktop.\n"),await _d(["add","--","README.md"],r,"tutorial:add"),await _d(["commit","-m","Initial commit"],r,"tutorial:commit");const l={name:"origin",url:o.clone_url};return await _d(["remote","add",l.name,l.url],r,"tutorial:add-remote"),await async function(e,t,n,r,i){const s=`Pushing repository to ${sb(t)}`;i(s,0);const o=await pg({env:await Uf(n.url)},new Qf,(e=>{"progress"===e.kind&&i(s,e.percent,e.details.text)})),a=["push","-u",n.name,r];await _d(a,e,"tutorial:push",o)}(r,e,l,a,((e,t,n)=>{i(e,.3+.6*t,n)})),i("Finalizing tutorial repository",.9),o}(e,n,r,((e,t,n)=>{this.popupManager.currentPopup?.type===dh.CreateTutorialRepository&&(this.popupManager.updatePopup({...this.popupManager.currentPopup,progress:{kind:"generic",title:e,value:t,description:n}}),this.emitUpdate())}));await this._addTutorialRepository(r,e.endpoint,i),await this.statsStore.recordTutorialRepoCreated()}catch(e){FT("tutorialRepoCreation",e),e instanceof Dd?this.emitError(e):this.emitError(new Error(`Failed creating the tutorial repository.\n\n${e.message}`))}finally{this._closePopup(dh.CreateTutorialRepository)}}_initializeCherryPickProgress(e,t){const n=ut("Unable to initialize cherry-pick progress. No commits provided.",t.at(-1));this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:{kind:"multiCommitOperation",value:0,position:1,totalCommitCount:t.length,currentCommitSummary:n.summary}}))),this.emitUpdate()}getMultiCommitOperationProgressCallBack(e){return t=>{this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:t}))),this.emitUpdate()}}orderCommitsByHistory(e,t){const{compareState:n}=this.repositoryStateCache.get(e),{commitSHAs:r}=n,i=new Map(r.map(((e,t)=>[e,t])));return[...t].sort(((e,t)=>gr(i.get(t.sha),i.get(e.sha))))}orderShasByHistory(e,t){const{compareState:n}=this.repositoryStateCache.get(e),{commitSHAs:r}=n,i=new Map(r.map(((e,t)=>[e,t])));return[...t].sort(((e,t)=>gr(i.get(t),i.get(e))))}async _cherryPick(e,t){if(0===t.length)return log.error("[_cherryPick] - Unable to cherry-pick. No commits provided."),gy.UnableToStart;const n=this.orderCommitsByHistory(e,t);await this._refreshRepository(e);const r=this.getMultiCommitOperationProgressCallBack(e),i=this.gitStoreCache.get(e),s=await i.performFailableOperation((()=>async function(e,t,n){if(0===t.length)return gy.UnableToStart;let r={expectedErrors:new Set([Gp.GitError.MergeConflicts,Gp.GitError.ConflictModifyDeletedInBranch])};void 0!==n&&(r=await wy(r,t,n));const i=await _d(["cherry-pick",...t.map((e=>e.sha)),"--empty=keep","-m 1"],e.path,"cherry-pick",r);return by(i)}(e,n,r)));return s||gy.Error}_checkForUncommittedChanges(e,t){const{changesState:n}=this.repositoryStateCache.get(e);return n.workingDirectory.files.length>0&&(this._showPopup({type:dh.LocalChangesOverwritten,repository:e,retryAction:t,files:n.workingDirectory.files.map((e=>e.path))}),!0)}async _checkoutBranchReturnName(e,t){const n=this.gitStoreCache.get(e),r=await this.withRefreshedGitHubRepository(e,(e=>n.performFailableOperation((()=>yg(e,t,n.currentRemote)))));if(!0===r)return(await n.loadStatus())?.currentBranch}async _abortCherryPick(e,t){const n=this.gitStoreCache.get(e);await n.performFailableOperation((()=>Cy(e))),await this.checkoutBranchIfNotNull(e,t)}_setCherryPickBranchCreated(e,t){const{multiCommitOperationState:n}=this.repositoryStateCache.get(e);null!==n&&"Cherry-pick"===n.operationDetail.kind?this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...n.operationDetail,branchCreated:t}}))):log.error("[setCherryPickBranchCreated] - Not in cherry-pick operation state")}async _continueCherryPick(e,t,n){const r=this.getMultiCommitOperationProgressCallBack(e),i=this.gitStoreCache.get(e),s=await i.performFailableOperation((()=>async function(e,t,n=new Map,r){const i=t.filter((e=>e.status.kind!==Nu.Untracked));for(const[r,i]of n){const n=t.find((e=>e.path===r));void 0!==n?await Rg(e,n,i):log.error(`[continueCherryPick] couldn't find file ${r} even though there's a manual resolution for it`)}const s=i.filter((e=>!n.has(e.path)));await Cg(e,s);const o=await Ry(e);if(null==o)return log.warn("[continueCherryPick] unable to get status after staging changes,\n skipping any other steps"),gy.UnableToStart;if(await!Sy(e))return gy.UnableToStart;let a={expectedErrors:new Set([Gp.GitError.MergeConflicts,Gp.GitError.ConflictModifyDeletedInBranch,Gp.GitError.UnresolvedConflicts]),env:{GIT_EDITOR:":"}};if(void 0!==r){const t=await vy(e);if(null===t)return log.warn("[continueCherryPick] unable to get cherry-pick status, skipping other steps"),gy.UnableToStart;a=wy(a,t.commits,r,t.cherryPickedCount)}const l=o.workingDirectory.files.filter((e=>e.status.kind!==Nu.Untracked));return 0===l.length?(log.warn("[cherryPick] no tracked changes to commit, continuing cherry-pick but skipping this commit"),by(await _d(["commit","--allow-empty"],e.path,"continueCherryPickSkipCurrentCommit",a))):by(await _d(["cherry-pick","--continue"],e.path,"continueCherryPick",a))}(e,t,n,r)));return s||gy.Error}async _setCherryPickProgressFromState(e){const t=await vy(e);null!==t&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:t.progress})))}async _clearCherryPickingHead(e,t){if(!Sy(e))return;const n=this.gitStoreCache.get(e);return await n.performFailableOperation((()=>Cy(e))),await this.checkoutBranchIfNotNull(e,t),this._refreshRepository(e)}async checkoutBranchIfNotNull(e,t){if(null===t)return;const n=this.gitStoreCache.get(e);await this.withRefreshedGitHubRepository(e,(async e=>{await n.performFailableOperation((()=>yg(e,t,n.currentRemote)))}))}async _setDragElement(e){this.currentDragElement=e,this.emitUpdate()}async _getBranchAheadBehind(e,t){return async function(e,t){if(t.type===$p.Remote)return null;const n=t.upstream;return n?Zg(e,Ug(t.name,n)):null}(e,t)}_setLastThankYou(e){const t=void 0!==this.lastThankYou&&this.lastThankYou.version===e.version,n=void 0!==this.lastThankYou&&this.lastThankYou.checkedUsers.length===e.checkedUsers.length;t&&n||(jt(ZC,e),this.lastThankYou=e,this.emitUpdate())}_setUseCustomEditor(e){Ut(WC,e),this.useCustomEditor=e,this.emitUpdate()}_setCustomEditor(e){jt(qC,e),this.customEditor=e,this.emitUpdate()}_setUseCustomShell(e){Ut(VC,e),this.useCustomShell=e,this.emitUpdate()}_setCustomShell(e){jt(GC,e),this.customShell=e,this.emitUpdate()}async _reorderCommits(e,t,n,r){if(0===t.length)return log.error("[_reorder] - Unable to reorder. No commits provided."),sy.Error;const i=this.getMultiCommitOperationProgressCallBack(e),s=this.gitStoreCache.get(e),o=await s.performFailableOperation((()=>async function(e,t,n,r,i){let s,o;try{if(0===t.length)throw new Error("[reorder] No commits provided to reorder.");const a=new Set(t.map((e=>e.sha))),l=await df(e,null===r?void 0:Hg(r,"HEAD"));if(0===l.length)throw new Error("[reorder] Could not find commits in log for last retained commit ref.");s=await og("reorderTodo");let c=!1;const u=[],h=[];for(let e=l.length-1;e>=0;e--){const t=l[e];if(a.has(t.sha))c?await(0,b.appendFile)(s,`pick ${t.sha} ${t.summary}\n`):u.push(t);else if(null===n||t.sha!==n.sha)c?h.push(t):await(0,b.appendFile)(s,`pick ${t.sha} ${t.summary}\n`);else{c=!0,h.push(t);for(let e=0;e<u.length;e++)await(0,b.appendFile)(s,`pick ${u[e].sha} ${u[e].summary}\n`)}}if(h.length>0)for(let e=0;e<h.length;e++)await(0,b.appendFile)(s,`pick ${h[e].sha} ${h[e].summary}\n`);if(null===n)for(let e=0;e<u.length;e++)await(0,b.appendFile)(s,`pick ${u[e].sha} ${u[e].summary}\n`);else if(!c)throw new Error("[reorder] The base commit onto was not in the log. Continuing would result in dropping the commits in the toMove array.");o=await fy(e,s,r,"Reorder",void 0,i,l)}catch(e){return log.error(e),sy.Error}finally{void 0!==s&&await(0,b.rm)(s,{recursive:!0,force:!0})}return o}(e,t,n,r,i)));return o||sy.Error}async _squash(e,t,n,r,i){if(0===t.length)return log.error("[_squash] - Unable to squash. No commits provided."),sy.Error;const s=this.getMultiCommitOperationProgressCallBack(e),o=await Im(e,i),a=this.gitStoreCache.get(e),l=await a.performFailableOperation((()=>async function(e,t,n,r,i,s){let o,a,l;try{if(0===t.length)throw new Error("[squash] No commits provided to squash.");const c=new Set(t.map((e=>e.sha)));if(c.has(n.sha))throw new Error("[squash] The commits to squash cannot contain the commit to squash onto.");const u=await df(e,null===r?void 0:Hg(r,"HEAD"));if(0===u.length)throw new Error("[squash] Could not find commits in log for last retained commit ref.");a=await og("squashTodo");let h=!1;const p=[],d=[];for(let e=u.length-1;e>=0;e--){const t=u[e];if(c.has(t.sha))h?await(0,b.appendFile)(a,`squash ${t.sha} ${t.summary}\n`):p.push(t);else if(t.sha!==n.sha)h?d.push(t):await(0,b.appendFile)(a,`pick ${t.sha} ${t.summary}\n`);else{h=!0,p.push(t);for(let e=0;e<p.length;e++){const t=0===e?"pick":"squash";await(0,b.appendFile)(a,`${t} ${p[e].sha} ${p[e].summary}\n`)}}}if(d.length>0)for(let e=0;e<d.length;e++)await(0,b.appendFile)(a,`pick ${d[e].sha} ${d[e].summary}\n`);if(!h)throw new Error("[squash] The commit to squash onto was not in the log. Continuing would result in dropping the commits in the toSquash array.");""!==i.trim()&&(o=await og("squashCommitMessage"),await(0,b.writeFile)(o,i));const m=void 0!==o?`cat "${o}" >`:void 0;l=await fy(e,a,r,"Squash",m,s,[...t,n])}catch(e){return log.error(e),sy.Error}finally{void 0!==a&&await(0,b.rm)(a,{recursive:!0,force:!0}),void 0!==o&&await(0,b.rm)(o,{recursive:!0,force:!0})}return l}(e,t,n,r,o,s)));return l||sy.Error}async _undoMultiCommitOperation(e,t,n){const{branchesState:r,multiCommitOperationUndoState:i,changesState:{workingDirectory:s}}=this.repositoryStateCache.get(t),{operationDetail:o}=e,{kind:a}=o;if(null===i)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. There is no undo info available.`),!1;const{undoSha:l,branchName:c}=i;if(s.files.length>0)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. This would delete the local changes that exist on the branch.`),!1;const{tip:u}=r;if(u.kind!==Hr.Valid||u.branch.name!==c)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. User no longer on branch the ${a} occurred on.`),!1;if(null===l)return log.error("[_undoMultiCommitOperation] - Could not determine undo sha"),!1;if("Cherry-pick"===o.kind&&o.branchCreated)return this._deleteBranch(t,u.branch,!1,o.sourceBranch),!0;const h=this.gitStoreCache.get(t);if(!0!==await h.performFailableOperation((()=>Eg(t,0,l))))return!1;let p;switch(a){case"Squash":p={type:Vw.SquashUndone,commitsCount:n};break;case"Reorder":p={type:Vw.ReorderUndone,commitsCount:n};break;case"Cherry-pick":const e="Cherry-pick"===o.kind?o.sourceBranch:null;await this.checkoutBranchIfNotNull(t,e),p={type:Vw.CherryPickUndone,targetBranchName:c,countCherryPicked:n};break;case"Rebase":case"Merge":throw new Error(`Unexpected multi commit operation kind to undo ${a}`);default:ct(0,`Unsupported multi operation kind to undo ${a}`)}this._setBanner(p),await this._loadStatus(t);const d=this.repositoryStateCache.get(t);return d.branchesState.tip.kind===Hr.Valid&&"Cherry-pick"!==a&&this._addBranchToForcePushList(t,d.branchesState.tip,u.branch.tip.sha),await this._refreshRepository(t),!0}_addBranchToForcePushList=(e,t,n)=>{if(t.branch.tip.sha===n)return;const r=this.repositoryStateCache.get(e),{forcePushBranches:i}=r.branchesState,s=new Map(i);s.set(t.branch.nameWithoutRemote,t.branch.tip.sha),this.repositoryStateCache.updateBranchesState(e,(()=>({forcePushBranches:s})))};_setMultiCommitOperationUndoState(e,t){this.repositoryStateCache.updateMultiCommitOperationUndoState(e,(()=>({undoSha:bb(t),branchName:t.branch.name})))}async _handleConflictsDetectedOnError(e,t,n){const{multiCommitOperationState:r}=this.repositoryStateCache.get(e);if(null===r){const r=this.gitStoreCache.get(e),i=r.allBranches.find((e=>e.name===t));if(void 0===i)return;const s=r.allBranches.find((e=>e.name===n));this._initializeMultiCommitOperation(e,{kind:"Merge",isSquash:!1,sourceBranch:s??null},i,[],i.tip.sha)}return this._setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:new Map,ourBranch:t,theirBranch:n}}),this._showPopup({type:dh.MultiCommitOperation,repository:e})}async _setMultiCommitOperationStep(e,t){this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:t}))),this.emitUpdate()}_setMultiCommitOperationTargetBranch(e,t){this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({targetBranch:t})))}_endMultiCommitOperation(e){this.repositoryStateCache.clearMultiCommitOperationState(e),this.emitUpdate()}_initializeMultiCommitOperation(e,t,n,r,i,s=!0){this.repositoryStateCache.initializeMultiCommitOperationState(e,{step:{kind:"ShowProgress"},operationDetail:t,progress:{kind:"multiCommitOperation",currentCommitSummary:r.length>0?r[0].summary:"",position:1,totalCommitCount:r.length,value:0},userHasResolvedConflicts:!1,originalBranchTip:i,targetBranch:n}),s&&this.emitUpdate()}_setShowCIStatusPopover(e){this.showCIStatusPopover!==e&&(this.showCIStatusPopover=e,this.emitUpdate())}_toggleCIStatusPopover(){this.showCIStatusPopover=!this.showCIStatusPopover,this.emitUpdate()}onChecksFailedNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),i={type:dh.PullRequestChecksFailed,pullRequest:t,repository:e,shouldChangeRepository:!0,checks:n};if(null===r||r.hash!==e.hash)return this.statsStore.increment("checksFailedDialogOpenCount"),this._showPopup(i);const s=this.repositoryStateCache.get(e),{branchesState:o}=s,{tip:a}=o,l=a.kind===Hr.Valid?a.branch:null;if(null===l||l.name!==t.head.ref)return this.statsStore.increment("checksFailedDialogOpenCount"),this._showPopup({...i,shouldChangeRepository:!1});this._setShowCIStatusPopover(!0)};onPullRequestReviewSubmitNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),i=this.repositoryStateCache.get(e),{branchesState:s}=i,{tip:o}=s,a=o.kind===Hr.Valid?o.branch:null;return this._showPopup({type:dh.PullRequestReview,shouldCheckoutBranch:null!==a&&a.name!==t.head.ref,shouldChangeRepository:null===r||r.hash!==e.hash,review:n,pullRequest:t,repository:e})};onPullRequestCommentNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),i=this.repositoryStateCache.get(e),{branchesState:s}=i,{tip:o}=s,a=o.kind===Hr.Valid?o.branch:null;return this._showPopup({type:dh.PullRequestComment,shouldCheckoutBranch:null!==a&&a.name!==t.head.ref,shouldChangeRepository:null===r||r.hash!==e.hash,comment:n,pullRequest:t,repository:e})};async _startPullRequest(e){const{tip:t,defaultBranch:n}=this.repositoryStateCache.get(e).branchesState;if(t.kind!==Hr.Valid)return;const r=t.branch;this._initializePullRequestPreview(e,n,r)}async _initializePullRequestPreview(e,t,n){if(null===t)return void this.showPullRequestPopupNoBaseBranch(e,n);const r=this.gitStoreCache.get(e),i=(await r.getCommitsBetweenBranches(t,n)).map((e=>e.sha)),s={files:[],linesAdded:0,linesDeleted:0},o=i.length>0?await r.performFailableOperation((()=>async function(e,t,n,r){const i=["diff","--merge-base",t,n,"-C","-M","-z","--raw","--numstat","--"],s=await wf(e,t,n);return null===s?null:mf((await _d(i,e.path,"getBranchMergeBaseChangedFiles")).stdout,`${r}`,s)}(e,t.name,n.name,i[0]))):s;if(void 0===o)return;const a=null!==o,l=a?i:[];this.repositoryStateCache.initializePullRequestState(e,{baseBranch:t,commitSHAs:l,commitSelection:{shas:l,shasInDiff:l,isContiguous:!0,changesetData:o??s,file:null,diff:null},mergeStatus:l.length>0||!a?{kind:a?Gw.Loading:Gw.Invalid}:null}),this.emitUpdate(),l.length>0&&this.setupPRMergeTreePromise(e,t,n),null!==o&&o.files.length>0&&await this._changePullRequestFileSelection(e,o.files[0]),this.showPullRequestPopup(e,n,l)}showPullRequestPopupNoBaseBranch(e,t){this.repositoryStateCache.initializePullRequestState(e,{baseBranch:null,commitSHAs:null,commitSelection:null,mergeStatus:null}),this.emitUpdate(),this.showPullRequestPopup(e,t,[])}showPullRequestPopup(e,t,n){if(this.popupManager.areTherePopupsOfType(dh.StartPullRequest))return;this.statsStore.increment("previewedPullRequestCount");const{branchesState:r,localCommitSHAs:i}=this.repositoryStateCache.get(e),{allBranches:s,recentBranches:o,defaultBranch:a,currentPullRequest:l}=r,c=this.gitStoreCache.get(e),u=jr(e)?vw:c.defaultRemote?.name,h=s.filter((e=>e.upstreamRemoteName===u||e.remoteName===u)),p=o.filter((e=>e.upstreamRemoteName===u||e.remoteName===u)),{imageDiffType:d,selectedExternalEditor:m,showSideBySideDiff:f}=this.getState(),g=n.length>0&&!i.includes(n[0])?n[0]:null;this._showPopup({type:dh.StartPullRequest,prBaseBranches:h,prRecentBaseBranches:p,currentBranch:t,defaultBranch:a,imageDiffType:d,repository:e,externalEditorLabel:m??void 0,nonLocalCommitSHA:g,showSideBySideDiff:f,currentBranchHasPullRequest:null!==l})}async _changePullRequestFileSelection(e,t){const{branchesState:n,pullRequestState:r}=this.repositoryStateCache.get(e);if(n.tip.kind!==Hr.Valid||null===r)return;const i=n.tip.branch,{baseBranch:s,commitSHAs:o}=r;if(null===o||null===s)return;if(this.repositoryStateCache.updatePullRequestCommitSelection(e,(()=>({file:t,diff:null}))),this.emitUpdate(),0===o.length)return;const a=await this.gitStoreCache.get(e).performFailableOperation((()=>async function(e,t,n,r,i=!1,s){const o=["diff","--merge-base",n,r,...i?["-w"]:[],"--patch-with-raw","-z","--no-color","--",t.path];t.status.kind!==Nu.Renamed&&t.status.kind!==Nu.Copied||o.push(t.status.oldPath);const a=await _d(o,e.path,"getBranchMergeBaseDiff",{maxBuffer:1/0});return Tf(Buffer.from(a.stdout),e,t,s)}(e,t,s.name,i.name,this.hideWhitespaceInPullRequestDiff,o[0])))??null,{pullRequestState:l}=this.repositoryStateCache.get(e),c=l?.commitSelection?.file;c?.id===t.id&&(this.repositoryStateCache.updatePullRequestCommitSelection(e,(()=>({diff:a}))),this.emitUpdate())}_setPullRequestFileListWidth(e){return this.pullRequestFileListWidth={...this.pullRequestFileListWidth,value:e},$t(vC,e),this.updatePullRequestResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetPullRequestFileListWidth(){return this.pullRequestFileListWidth={...this.pullRequestFileListWidth,value:250},localStorage.removeItem(vC),this.updatePullRequestResizableConstraints(),this.emitUpdate(),Promise.resolve()}_updatePullRequestBaseBranch(e,t){const{branchesState:n,pullRequestState:r}=this.repositoryStateCache.get(e),{tip:i}=n;i.kind===Hr.Valid&&null!==r&&this._initializePullRequestPreview(e,t,i.branch)}setupPRMergeTreePromise(e,t,n){this.setupMergabilityPromise(e,t,n).then((t=>{this.repositoryStateCache.updatePullRequestState(e,(()=>({mergeStatus:t}))),this.emitUpdate()}))}_quitApp(e){e&&g("will-quit-even-if-updating"),q()}_cancelQuittingApp(){g("cancel-quitting")}_setPullRequestSuggestedNextAction(e){this.pullRequestSuggestedNextAction=e,localStorage.setItem($C,e),this.emitUpdate()}isResizePaneActive(){return null!==document.activeElement&&(document.getElementById("app-menu-bar")?.contains(document.activeElement)?this.resizablePaneActive:null!==document.activeElement.closest(".resizable-component"))}_appFocusedElementChanged(){const e=this.isResizePaneActive();e!==this.resizablePaneActive&&(this.resizablePaneActive=e,this.emitUpdate())}_updateUnderlineLinks(e){e!==this.underlineLinks&&(this.underlineLinks=e,Ut(zC,e),this.emitUpdate())}_updateShowDiffCheckMarks(e){e!==this.showDiffCheckMarks&&(this.showDiffCheckMarks=e,Ut(YC,e),this.emitUpdate())}}(vU,CU,SU,EU,kU,RU,AU,DU,_U,MU,NU);BU.onDidUpdate((e=>{wU=e}));const FU=new class{appStore;repositoryStateManager;statsStore;commitStatusStore;errorHandlers=new Array;incrementMetric;constructor(e,t,n,r){this.appStore=e,this.repositoryStateManager=t,this.statsStore=n,this.commitStatusStore=r,this.incrementMetric=n.increment.bind(n)}loadInitialState(){return this.appStore.loadInitialState()}addRepositories(e){return this.appStore._addRepositories(e)}addTutorialRepository(e,t,n){return this.appStore._addTutorialRepository(e,t,n)}resumeTutorial(e){return this.appStore._resumeTutorial(e)}pauseTutorial(e){return this.appStore._pauseTutorial(e)}async removeRepository(e,t){return this.appStore._removeRepository(e,t)}async updateRepositoryMissing(e,t){return this.appStore._updateRepositoryMissing(e,t)}loadNextCommitBatch(e){return this.appStore._loadNextCommitBatch(e)}loadChangedFilesForCurrentSelection(e){return this.appStore._loadChangedFilesForCurrentSelection(e)}changeCommitSelection(e,t,n){return this.appStore._changeCommitSelection(e,t,n)}updateShasToHighlight(e,t){this.appStore._updateShasToHighlight(e,t)}changeFileSelection(e,t){return this.appStore._changeFileSelection(e,t)}setRepositoryFilterText(e){return this.appStore._setRepositoryFilterText(e)}selectRepository(e){return this.appStore._selectRepository(e)}changeRepositorySection(e,t){return this.appStore._changeRepositorySection(e,t)}selectWorkingDirectoryFiles(e,t){return this.appStore._selectWorkingDirectoryFiles(e,t)}selectStashedFile(e,t){return this.appStore._selectStashedFile(e,t)}async commitIncludedChanges(e,t){return this.appStore._commitIncludedChanges(e,t)}changeFileIncluded(e,t,n){return this.appStore._changeFileIncluded(e,t,n)}changeFileLineSelection(e,t,n){return this.appStore._changeFileLineSelection(e,t,n)}changeIncludeAllFiles(e,t){return this.appStore._changeIncludeAllFiles(e,t)}refreshRepository(e){return this.appStore._refreshOrRecoverRepository(e)}async refreshAuthor(e){return this.appStore._refreshAuthor(e)}showPopup(e){return this.appStore._showPopup(e)}closePopup(e){return this.appStore._closePopup(e)}closePopupById(e){return this.appStore._closePopupById(e)}showFoldout(e){return this.appStore._showFoldout(e)}closeCurrentFoldout(){return this.appStore._closeCurrentFoldout()}closeFoldout(e){return this.appStore._closeFoldout(e)}async warnAboutRemoteCommits(e,t,n){if(null===t.upstream)return!1;if(0===(await Dg(e,`refs/remotes/${t.upstream}`)).length)return!1;if(null===n)return!0;const r=await $g(e,n,t.upstream);return null!==r&&r.length>0}async showRebaseDialog(e,t){const n=this.repositoryStateManager.get(e),r=Sb(n,t),{tip:i}=n.branchesState;let s=null;if(i.kind!==Hr.Valid)throw new Error("Tip is not in a valid state, which is required to start the rebase flow");s=i.branch,this.initializeMultiCommitOperation(e,{kind:"Rebase",sourceBranch:null,commits:[],currentTip:i.branch.tip.sha},s,[],s.tip.sha),this.setMultiCommitOperationStep(e,r),this.showPopup({type:dh.MultiCommitOperation,repository:e})}async startRebase(e,t,n,r,i){const{askForConfirmationOnForcePush:s}=this.appStore.getState(),o=void 0!==i&&i.continueWithForcePush,{branchesState:a}=this.repositoryStateManager.get(e),l=bb(a.tip);this.appStore._initializeMultiCommitOperation(e,{kind:"Rebase",commits:r,currentTip:t.tip.sha,sourceBranch:t},n,r,l),s&&!o&&await this.warnAboutRemoteCommits(e,t,n.tip.sha)?this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:n,baseBranch:t,commits:r}):await this.rebase(e,t,n)}async launchRebaseOperation(e,t){await this.appStore._loadStatus(e);const n=this.repositoryStateManager.get(e),{conflictState:r}=n.changesState;if(null===r||!ot(r))return;const i={...r,targetBranch:t};this.repositoryStateManager.updateChangesState(e,(()=>({conflictState:i})));const s=await uy(e);if(null===s)return;const{progress:o,commits:a}=s;this.initializeMultiCommitOperation(e,{kind:"Rebase",sourceBranch:null,commits:a,currentTip:""},null,a,t),this.repositoryStateManager.updateMultiCommitOperationState(e,(()=>({progress:o})));const{manualResolutions:l}=r;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:l,ourBranch:t,theirBranch:void 0}}),this.showPopup({type:dh.MultiCommitOperation,repository:e})}createBranch(e,t,n,r=!1){return this.appStore._createBranch(e,t,n,r)}createTag(e,t,n){return this.appStore._createTag(e,t,n)}deleteTag(e,t){return this.appStore._deleteTag(e,t)}showCreateTagDialog(e,t,n,r){return this.showPopup({type:dh.CreateTag,repository:e,targetCommitSha:t,initialName:r,localTags:n})}showDeleteTagDialog(e,t){return this.showPopup({type:dh.DeleteTag,repository:e,tagName:t})}checkoutBranch(e,t,n){return this.appStore._checkoutBranch(e,t,n)}checkoutCommit(e,t){return this.appStore._checkoutCommit(e,t)}push(e){return this.appStore._push(e)}pushWithOptions(e,t){return void 0!==t&&t.forceWithLease&&this.dropCurrentBranchFromForcePushList(e),this.appStore._push(e,t)}pull(e){return this.appStore._pull(e)}fetchRefspec(e,t){return this.appStore._fetchRefspec(e,t)}fetch(e,t){return this.appStore._fetch(e,t)}publishRepository(e,t,n,r,i,s){return this.appStore._publishRepository(e,t,n,r,i,s)}async postError(e){let t=e;for(let e=this.errorHandlers.length-1;e>=0;e--){const n=this.errorHandlers[e];if(t=await n(t,this),!t)break}t&&lt(`Unhandled error ${t}. This shouldn't happen! All errors should be handled, even if it's just by the default handler.`)}presentError(e){return this.appStore._pushError(e)}cloneAgain(e,t){return this.appStore._cloneAgain(e,t)}async clone(e,t,n){return this.appStore._completeOpenInDesktop((async()=>{const{promise:r,repository:i}=this.appStore._clone(e,t,n);if(await this.selectRepository(i),!await r)return null;const s=await this.addRepositories([t]);if(s.length<1)return null;const o=s[0];return await this.selectRepository(o),Wr(o)&&this.showPopup({type:dh.ChooseForkSettings,repository:o}),o}))}changeRepositoryAlias(e,t){return this.appStore._changeRepositoryAlias(e,t)}renameBranch(e,t,n){return this.appStore._renameBranch(e,t,n)}deleteLocalBranch(e,t,n){return this.appStore._deleteBranch(e,t,n)}deleteRemoteBranch(e,t){return this.appStore._deleteBranch(e,t)}discardChanges(e,t,n=!0){return this.appStore._discardChanges(e,t,n)}discardChangesFromSelection(e,t,n,r){return this.appStore._discardChangesFromSelection(e,t,n,r)}async startAmendingRepository(e,t,n,r=!1){this.appStore._startAmendingRepository(e,t,n,r)}async stopAmendingRepository(e){this.appStore._stopAmendingRepository(e)}undoCommit(e,t,n=!0){return this.appStore._undoCommit(e,t,n)}resetToCommit(e,t,n=!0){return this.statsStore.increment("resetToCommitCount"),this.appStore._resetToCommit(e,t,n)}revertCommit(e,t){return this.appStore._revertCommit(e,t)}setSidebarWidth(e){return this.appStore._setSidebarWidth(e)}setUpdateBannerVisibility(e){return this.appStore._setUpdateBannerVisibility(e)}setUpdateShowCaseVisibility(e){return this.appStore._setUpdateShowCaseVisibility(e)}setBanner(e){return this.appStore._setBanner(e)}clearBanner(e){return this.appStore._clearBanner(e)}resetSidebarWidth(){return this.appStore._resetSidebarWidth()}setCommitSummaryWidth(e){return this.appStore._setCommitSummaryWidth(e)}resetCommitSummaryWidth(){return this.appStore._resetCommitSummaryWidth()}refreshIssues(e){return this.appStore._refreshIssues(e)}endWelcomeFlow(){return this.appStore._endWelcomeFlow()}setCommitMessageFocus(e){this.appStore._setCommitMessageFocus(e)}setCommitMessage(e,t){return this.appStore._setCommitMessage(e,t)}removeAccount(e){return this.appStore._removeAccount(e)}setAppMenuState(e){return this.appStore._setAppMenuState(e)}executeMenuItem(e){return(e=>{M(e.id)})(e),Promise.resolve()}setAccessKeyHighlightState(e){return this.appStore._setAccessKeyHighlightState(e)}mergeBranch(e,t,n,r=!1){return this.appStore._mergeBranch(e,t,n,r)}addBranchToForcePushList=(e,t,n)=>{this.appStore._addBranchToForcePushList(e,t,n)};dropCurrentBranchFromForcePushList=e=>{const t=this.repositoryStateManager.get(e),{forcePushBranches:n,tip:r}=t.branchesState;if(r.kind!==Hr.Valid)return;const i=new Map(n);i.delete(r.branch.nameWithoutRemote),this.repositoryStateManager.updateBranchesState(e,(()=>({forcePushBranches:i})))};setConflictsResolved(e){return this.appStore._setConflictsResolved(e)}async rebase(e,t,n){const{branchesState:r,multiCommitOperationState:i}=this.repositoryStateManager.get(e);if(null==i||"Rebase"!==i.operationDetail.kind)return;const{commits:s}=i.operationDetail,o=bb(r.tip);log.info(`[rebase] starting rebase for ${n.name} at ${o}`),log.info("[rebase] to restore the previous state if this completed rebase is unsatisfactory:"),log.info(`[rebase] - git checkout ${n.name}`),log.info(`[rebase] - git reset ${o} --hard`);const a=await this.appStore._rebase(e,t,n);await this.appStore._loadStatus(e);const l=this.repositoryStateManager.get(e),{tip:c}=l.branchesState,u=bb(c);if(log.info(`[rebase] completed rebase - got ${a} and on tip ${u} - kind ${c.kind}`),a===sy.ConflictsEncountered){const{conflictState:r}=l.changesState;return null===r?void log.warn("[rebase] conflict state after rebase is null - unable to continue"):ot(r)?this.startMultiCommitOperationConflictFlow("Rebase",e,t.name,n.name):void log.warn("[rebase] conflict state after rebase is not rebase conflicts - unable to continue")}if(a===sy.AlreadyUpToDate){if(c.kind!==Hr.Valid)return void log.warn(`[rebase] tip after already up to date is ${c.kind} but this should be a valid tip if the rebase completed without error`);const{operationDetail:t}=i,{sourceBranch:r}=t,s=null!==n?n.name:"",o=null!==r?r.name:"",a={type:Vw.BranchAlreadyUpToDate,ourBranch:s,theirBranch:o};this.statsStore.increment("rebaseWithBranchAlreadyUpToDateCount"),this.setBanner(a),this.endMultiCommitOperation(e),await this.refreshRepository(e)}else if(a===sy.CompletedWithoutError){if(c.kind!==Hr.Valid)return void log.warn(`[rebase] tip after completing rebase is ${c.kind} but this should be a valid tip if the rebase completed without error`);this.statsStore.increment("rebaseSuccessWithoutConflictsCount"),await this.completeMultiCommitOperation(e,s.length)}else a===sy.Error&&this.endMultiCommitOperation(e)}async abortRebase(e){await this.appStore._abortRebase(e),await this.appStore._loadStatus(e),await this.refreshRepository(e)}async continueRebase(e,t,n,r){const i=this.repositoryStateManager.get(t),{manualResolutions:s}=r,o=bb(i.branchesState.tip);log.info(`[continueRebase] continuing rebase for ${o}`);const a=await this.appStore._continueRebase(t,n,s);a===sy.CompletedWithoutError&&this.statsStore.recordOperationSuccessfulWithConflicts(e),await this.appStore._loadStatus(t);const l=this.repositoryStateManager.get(t),{tip:c}=l.branchesState,u=bb(c);return log.info(`[continueRebase] completed rebase - got ${a} and on tip ${u} - kind ${c.kind}`),a}async abortMerge(e){await this.appStore._abortMerge(e),await this.appStore._loadStatus(e)}async abortSquashMerge(e){return await this.appStore._abortSquashMerge(e),this.appStore._refreshRepository(e)}async finishConflictedMerge(e,t,n,r){const i=this.repositoryStateManager.get(e),{conflictState:s}=i.changesState;null!==s?void 0!==await this.appStore._finishConflictedMerge(e,t,s.manualResolutions)&&(this.setBanner(n),r&&(this.statsStore.increment("squashMergeSuccessfulCount"),this.statsStore.increment("squashMergeSuccessfulWithConflictsCount"))):log.error("Conflict state missing during finishConflictedMerge. No merge will be committed.")}recordLaunchStats(e){return this.appStore._recordLaunchStats(e)}reportStats(){return this.appStore._reportStats()}setRemoteURL(e,t,n){return this.appStore._setRemoteURL(e,t,n)}openInBrowser(e){return this.appStore._openInBrowser(e)}appendIgnoreRule(e,t){return this.appStore._appendIgnoreRule(e,t)}appendIgnoreFile(e,t){return this.appStore._appendIgnoreFile(e,t)}async openShell(e,t=!1){await(async()=>void 0!==await S("which",["git"]).then((({stdout:e})=>e.split(/\r?\n/,1)[0])).catch((e=>{log.warn("Failed trying to find Git on PATH",e)})))()||t?this.appStore._openShell(e):this.appStore._showPopup({type:dh.InstallGit,path:e})}async openInExternalEditor(e){return this.appStore._openInExternalEditor(e)}saveGitIgnore(e,t){return this.appStore._saveGitIgnore(e,t)}setStatsOptOut(e,t){return this.appStore.setStatsOptOut(e,t)}setUseExternalCredentialHelper(e){return this.appStore._setUseExternalCredentialHelper(e)}moveToApplicationsFolder(){return ie()}resetSignInState(){return this.appStore._resetSignInState()}beginEnterpriseSignIn(e){this.appStore._beginEnterpriseSignIn(e)}setSignInEndpoint(e){return this.appStore._setSignInEndpoint(e)}setSignInCredentials(e,t){return this.appStore._setSignInCredentials(e,t)}beginDotComSignIn(e){this.appStore._beginDotComSignIn(e)}beginBrowserBasedSignIn(e,t){e===cr()||"github.com"===new URL(e).hostname?(this.appStore._beginDotComSignIn(t),this.requestBrowserAuthentication()):(this.appStore._beginEnterpriseSignIn(t),this.appStore._setSignInEndpoint(e).then((()=>this.requestBrowserAuthentication())).catch((e=>log.error("Error setting sign in endpoint",e))))}requestBrowserAuthentication(){this.appStore._requestBrowserAuthentication()}requestBrowserAuthenticationToDotcom(e){this.appStore._beginDotComSignIn(e),this.requestBrowserAuthentication()}setSignInOTP(e){return this.appStore._setSignInOTP(e)}async showDotComSignInDialog(e){this.appStore._beginDotComSignIn(e),this.appStore._showPopup({type:dh.SignIn})}async showEnterpriseSignInDialog(e,t){this.appStore._beginEnterpriseSignIn(t),void 0!==e&&this.appStore._setSignInEndpoint(e),this.appStore._showPopup({type:dh.SignIn})}async showCreateForkDialog(e){await this.appStore._showCreateForkDialog(e)}async showUnknownAuthorsCommitWarning(e,t){return this.appStore._showPopup({type:dh.UnknownAuthors,authors:e,onCommit:t})}async showRepoRulesCommitBypassWarning(e,t,n){return this.appStore._showPopup({type:dh.ConfirmRepoRulesBypass,repository:e,branch:t,onConfirm:n})}registerErrorHandler(e){return this.errorHandlers.push(e),new ft.Disposable((()=>{const t=this.errorHandlers.indexOf(e);t>=0&&this.errorHandlers.splice(t,1)}))}async relocateRepository(e){const t=await me({properties:["openDirectory"]});null!==t&&await this.updateRepositoryPath(e,t)}async updateRepositoryWorkflowPreferences(e,t){await this.appStore._updateRepositoryWorkflowPreferences(e,t)}async updateRepositoryPath(e,t){await this.appStore._updateRepositoryPath(e,t)}async setAppFocusState(e){await this.appStore._setAppFocusState(e),e?this.commitStatusStore.startBackgroundRefresh():this.commitStatusStore.stopBackgroundRefresh()}async initializeAppFocusState(){const e=await P();this.setAppFocusState(e)}getRepositoryFromPullRequest(e){const t=this.appStore.getState().repositories,n=e.head.repo?.clone_url,r=e.base.repo?.clone_url;if(void 0===n||void 0===r)return null;for(const e of t)if(this.doesRepositoryMatchUrl(e,n))return e;for(const e of t)if(this.doesRepositoryMatchUrl(e,r))return e;return null}doesRepositoryMatchUrl(e,t){if(e instanceof Zr&&$r(e)){const n=e.gitHubRepository.htmlURL,r=e.gitHubRepository.parent?.htmlURL??null;if(null!==n&&kr(n,t))return!0;if(null!==r&&kr(r,t))return!0}return!1}async openRepositoryFromUrl(e){const{url:n,pr:r,branch:i,filepath:s}=e;let o;if(o=null!==r?await this.openPullRequestFromUrl(n,r):null!==i?await this.openBranchNameFromUrl(n,i):await this.openOrCloneRepository(n),null!==o&&null!==s){const e=await function(e,...n){return async function(e,n,r=t){if(0===e.length)return null;const{join:i,normalize:s,resolve:o}=r,a=s(e),l=s(i(...n));if(-1!==a.indexOf("\0")||-1!==l.indexOf("\0"))return null;const c=o(a,l),u=await(0,b.realpath)(a);return(await(0,b.realpath)(c)).startsWith(u)?c:null}(e,n)}(o.path,s);null!==e?pt.showItemInFolder(e):log.error(`Prevented attempt to open path outside of the repository root: ${s}`)}}async openBranchNameFromUrl(e,t){const n=await this.openOrCloneRepository(e);return null===n?null:(await this.appStore._refreshRepository(n),await this.appStore._fetch(n,ln.UserInitiatedTask),await this.checkoutLocalBranch(n,t),n)}async openPullRequestFromUrl(e,t){const n=await this.appStore.fetchPullRequest(e,t);if(null===n)return null;let r=this.getRepositoryFromPullRequest(n);return null!==r?await this.selectRepository(r):r=await this.openOrCloneRepository(e),null===r?(log.warn(`Open Repository from URL failed, did not find or clone repository: ${e}`),null):$r(r)?(await this.appStore._refreshRepository(r),null===n.head.repo?null:(await this.appStore._checkoutPullRequest(r,n.number,n.head.repo.owner.login,n.head.repo.clone_url,n.head.ref),r)):(log.warn(`Received a non-GitHub repository when opening repository from URL: ${e}`),null)}async dispatchURLAction(e){switch(e.name){case"oauth":await this.appStore._resolveOAuthRequest(e);break;case"open-repository-from-url":this.openRepositoryFromUrl(e);break;case"open-repository-from-path":const t=await Vg(e.path).then((t=>"regular"===t.kind?t.topLevelWorkingDirectory:e.path)).catch((t=>(log.error("Could not determine repository type",t),e.path))),{repositories:n}=this.appStore.getState(),r=Cr(n,t);r?(await this.selectRepository(r),this.statsStore.recordAddExistingRepository()):await this.showPopup({type:dh.AddRepository,path:t});break;default:const i=e;log.warn(`Unknown URL action: ${i.name} - payload: ${JSON.stringify(i)}`)}}setAskToMoveToApplicationsFolderSetting(e){return this.appStore._setAskToMoveToApplicationsFolderSetting(e)}setConfirmRepoRemovalSetting(e){return this.appStore._setConfirmRepositoryRemovalSetting(e)}setConfirmDiscardChangesSetting(e){return this.appStore._setConfirmDiscardChangesSetting(e)}setConfirmDiscardChangesPermanentlySetting(e){return this.appStore._setConfirmDiscardChangesPermanentlySetting(e)}setUncommittedChangesStrategySetting(e){return this.appStore._setUncommittedChangesStrategySetting(e)}setExternalEditor(e){return this.appStore._setExternalEditor(e)}setShell(e){return this.appStore._setShell(e)}async checkoutLocalBranch(e,t){let n=!0;const r=this.repositoryStateManager.get(e),i=r.branchesState.allBranches,{tip:s}=r.branchesState;s.kind===Hr.Valid&&(n=s.branch.nameWithoutRemote!==t);const o=i.find((e=>e.nameWithoutRemote===t));n&&void 0!==o&&await this.checkoutBranch(e,o)}async openOrCloneRepository(e){const t=this.appStore.getState().repositories.find((t=>this.doesRepositoryMatchUrl(t,e)));return t?await this.selectRepository(t):this.appStore._startOpenInDesktop((()=>{this.changeCloneRepositoriesTab(Ur.Generic),this.showPopup({type:dh.CloneRepository,initialURL:e})}))}async openOrAddRepository(e){const t=this.appStore.getState().repositories.find((t=>t.path===e));return t?await this.selectRepository(t):this.appStore._startOpenInDesktop((()=>{this.showPopup({type:dh.AddRepository,path:e})}))}async installDarwinCLI(){try{await async function(){if(await async function(){try{return await(0,b.readlink)(OO)}catch{return null}}()!==NO)try{await LO(!1)}catch(e){await LO(!0)}}(),this.showPopup({type:dh.CLIInstalled})}catch(e){log.error("Error installing CLI",e),this.postError(e)}}async saveGenericGitCredentials(e,t,n){log.info(`storing generic credentials for '${e}' and '${t}'`),dd(e,t);try{await md(e,t,n)}catch(n){log.error(`Error saving generic git credentials: ${t}@${e}`,n),this.postError(n)}}async performRetry(e){switch(e.type){case mt.Push:return this.push(e.repository);case mt.Pull:return this.pull(e.repository);case mt.Fetch:return this.fetch(e.repository,ln.UserInitiatedTask);case mt.Clone:await this.clone(e.url,e.path,e.options);break;case mt.Checkout:await this.checkoutBranch(e.repository,e.branch);break;case mt.Merge:return this.mergeBranch(e.repository,e.theirBranch,null);case mt.Rebase:return this.rebase(e.repository,e.baseBranch,e.targetBranch);case mt.CherryPick:return this.cherryPick(e.repository,e.targetBranch,e.commits,e.sourceBranch);case mt.CreateBranchForCherryPick:return this.startCherryPickWithBranchName(e.repository,e.targetBranchName,e.startPoint,e.noTrackOption,e.commits,e.sourceBranch);case mt.Squash:return this.squash(e.repository,e.toSquash,e.squashOnto,e.lastRetainedCommitRef,e.commitContext);case mt.Reorder:return this.reorderCommits(e.repository,e.commitsToReorder,e.beforeCommit,e.lastRetainedCommitRef);case mt.DiscardChanges:return this.discardChanges(e.repository,e.files,!1);default:return ct(0,`Unknown retry action: ${e}`)}}changeImageDiffType(e){return this.appStore._changeImageDiffType(e)}onHideWhitespaceInChangesDiffChanged(e,t){return this.appStore._setHideWhitespaceInChangesDiff(e,t)}onHideWhitespaceInHistoryDiffChanged(e,t,n=null){return this.appStore._setHideWhitespaceInHistoryDiff(e,t,n)}onHideWhitespaceInPullRequestDiffChanged(e,t,n=null){this.appStore._setHideWhitespaceInPullRequestDiff(e,t,n)}onShowSideBySideDiffChanged(e){return this.appStore._setShowSideBySideDiff(e)}installGlobalLFSFilters(e){return this.appStore._installGlobalLFSFilters(e)}installLFSHooks(e){return this.appStore._installLFSHooks(e)}changeCloneRepositoriesTab(e){return this.appStore._changeCloneRepositoriesTab(e)}refreshApiRepositories(e){return this.appStore._refreshApiRepositories(e)}changeBranchesTab(e){return this.appStore._changeBranchesTab(e)}showGitHubExplore(e){return this.appStore._showGitHubExplore(e)}createPullRequest(e,t){return this.appStore._createPullRequest(e,t)}showPullRequest(e){return this.appStore._showPullRequest(e)}async showPullRequestByPR(e){return this.appStore._showPullRequestByPR(e)}openCreatePullRequestInBrowser(e,t){return this.appStore._openCreatePullRequestInBrowser(e,t)}updateExistingUpstreamRemote(e){return this.appStore._updateExistingUpstreamRemote(e)}ignoreExistingUpstreamRemote(e){return this.appStore._ignoreExistingUpstreamRemote(e)}async checkoutPullRequest(e,t){if(null!==t.head.gitHubRepository.cloneURL)return this.appStore._checkoutPullRequest(e,t.pullRequestNumber,t.head.gitHubRepository.owner.login,t.head.gitHubRepository.cloneURL,t.head.ref)}setShowCoAuthoredBy(e,t){return this.appStore._setShowCoAuthoredBy(e,t)}setCoAuthors(e,t){return this.appStore._setCoAuthors(e,t)}initializeCompare(e,t){return this.appStore._initializeCompare(e,t)}executeCompare(e,t){return this.appStore._executeCompare(e,t)}updateCompareForm(e,t){return this.appStore._updateCompareForm(e,t)}updateManualConflictResolution(e,t,n){return this.appStore._updateManualConflictResolution(e,t,n)}async confirmOrForcePush(e){const{askForConfirmationOnForcePush:t}=this.appStore.getState(),{branchesState:n}=this.repositoryStateManager.get(e),{tip:r}=n;if(r.kind!==Hr.Valid)return void log.warn("Could not find a branch to perform force push");const{upstream:i}=r.branch;null!==i?t?this.showPopup({type:dh.ConfirmForcePush,repository:e,upstreamBranch:i}):await this.performForcePush(e):log.warn("Could not find an upstream branch which will be pushed")}async performForcePush(e){await this.pushWithOptions(e,{forceWithLease:!0}),await this.appStore._loadStatus(e)}setConfirmDiscardStashSetting(e){return this.appStore._setConfirmDiscardStashSetting(e)}setConfirmCheckoutCommitSetting(e){return this.appStore._setConfirmCheckoutCommitSetting(e)}setConfirmForcePushSetting(e){return this.appStore._setConfirmForcePushSetting(e)}setConfirmUndoCommitSetting(e){return this.appStore._setConfirmUndoCommitSetting(e)}async convertRepositoryToFork(e,t){return this.appStore._convertRepositoryToFork(e,t)}recordMenuInitiatedMerge(e=!0){return this.statsStore.recordMenuInitiatedMerge(e)}setSelectedTheme(e){return this.appStore._setSelectedTheme(e)}setSelectedTabSize(e){return this.appStore._setSelectedTabSize(e)}async setTitleBarStyle(e){const t=this.appStore.getState(),{titleBarStyle:n}=t;await this.appStore._setTitleBarStyle(e),e!==n&&this.showPopup({type:dh.ConfirmRestart})}recordRepoClicked(e){return this.statsStore.recordRepoClicked(e)}recordWelcomeWizardInitiated(){return this.statsStore.recordWelcomeWizardInitiated()}recordCreateRepository(){this.statsStore.recordCreateRepository()}recordAddExistingRepository(){this.statsStore.recordAddExistingRepository()}refreshPullRequests(e){return this.appStore._refreshPullRequests(e)}tryGetCommitStatus(e,t,n){return this.commitStatusStore.tryGetStatus(e,t,n)}subscribeToCommitStatus(e,t,n,r){return this.commitStatusStore.subscribe(e,t,n,r)}manualRefreshSubscription(e,t,n){return this.commitStatusStore.manualRefreshSubscription(e,t,n)}async rerequestCheckSuites(e,t,n){const r=new Array;if(1===t.length&&void 0!==t[0].actionsWorkflow)return r.push(this.commitStatusStore.rerunJob(e,t[0].id)),Promise.all(r);const i=new Set,s=new Set;for(const e of t)n&&void 0!==e.actionsWorkflow?s.add(e.actionsWorkflow.id):null!==e.checkSuiteId&&i.add(e.checkSuiteId);for(const t of s)r.push(this.commitStatusStore.rerunFailedJobs(e,t));for(const t of i)r.push(this.commitStatusStore.rerequestCheckSuite(e,t));return Promise.all(r)}async fetchCheckSuite(e,t){return this.commitStatusStore.fetchCheckSuite(e,t)}createStashForCurrentBranch(e,t=!0){return this.appStore._createStashForCurrentBranch(e,t)}dropStash(e,t){return this.appStore._dropStashEntry(e,t)}popStash(e,t){return this.appStore._popStashEntry(e,t)}setStashedFilesWidth=e=>this.appStore._setStashedFilesWidth(e);resetStashedFilesWidth=()=>this.appStore._resetStashedFilesWidth();hideStashedChanges(e){return this.appStore._hideStashedChanges(e)}skipPickEditorTutorialStep(e){return this.appStore._skipPickEditorTutorialStep(e)}markPullRequestTutorialStepAsComplete(e){return this.appStore._markPullRequestTutorialStepAsComplete(e)}markTutorialCompletionAsAnnounced(e){return this.appStore._markTutorialCompletionAsAnnounced(e)}createTutorialRepository(e){return this.appStore._createTutorialRepository(e)}async openIssueCreationPage(e){const t=Vr(e);return null!==t&&(this.statsStore.increment("issueCreationWebpageOpenedCount"),this.appStore._openInBrowser(`${t}/issues/new/choose`))}setRepositoryIndicatorsEnabled(e){this.appStore._setRepositoryIndicatorsEnabled(e)}setCommitSpellcheckEnabled(e){this.appStore._setCommitSpellcheckEnabled(e)}setUseWindowsOpenSSH(e){this.appStore._setUseWindowsOpenSSH(e)}setShowCommitLengthWarning(e){this.appStore._setShowCommitLengthWarning(e)}setNotificationsEnabled(e){this.appStore._setNotificationsEnabled(e)}logHowToRevertCherryPick(e,t){log.info(`[cherryPick] starting cherry-pick for ${e} at ${t}`),log.info("[cherryPick] to restore the previous state if this completed cherry-pick is unsatisfactory:"),log.info(`[cherryPick] - git checkout ${e}`),log.info(`[cherryPick] - git reset ${t} --hard`)}initializeMultiCommitOperationStateCherryPick(e,t,n,r){null===this.repositoryStateManager.get(e).multiCommitOperationState&&this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:r,branchCreated:!1,commits:n},t,n,r?.tip.sha??null)}async cherryPick(e,t,n,r){this.initializeMultiCommitOperationStateCherryPick(e,t,n,r),this.appStore._initializeCherryPickProgress(e,n),this.switchMultiCommitOperationToShowProgress(e);const i={type:mt.CherryPick,repository:e,targetBranch:t,commits:n,sourceBranch:r};if(this.appStore._checkForUncommittedChanges(e,i))return void this.endMultiCommitOperation(e);const{tip:s}=t;this.repositoryStateManager.updateMultiCommitOperationUndoState(e,(()=>({undoSha:s.sha,branchName:t.name}))),n.length>1&&this.statsStore.increment("cherryPickMultipleCommitsCount");const o=await this.appStore._checkoutBranchReturnName(e,t);if(void 0===o)return log.error("[cherryPick] - Failed to check out the target branch."),void this.endMultiCommitOperation(e);const a=await this.appStore._cherryPick(e,n);a!==gy.UnableToStart&&this.logHowToRevertCherryPick(o,s.sha),this.processCherryPickResult(e,a,o,n,r)}async startCherryPickWithBranchName(e,t,n,r=!1,i,s){const o={type:mt.CreateBranchForCherryPick,repository:e,targetBranchName:t,startPoint:n,noTrackOption:r,commits:i,sourceBranch:s};if(this.appStore._checkForUncommittedChanges(e,o))return void this.endMultiCommitOperation(e);const a=await this.appStore._createBranch(e,t,n,r,!1);return void 0===a?(log.error("[startCherryPickWithBranchName] - Unable to create branch for cherry-pick operation"),void this.endMultiCommitOperation(e)):(this.initializeMultiCommitOperationStateCherryPick(e,a,i,s),this.appStore._setMultiCommitOperationTargetBranch(e,a),this.appStore._setCherryPickBranchCreated(e,!0),this.statsStore.increment("cherryPickBranchCreatedCount"),this.cherryPick(e,a,i,s))}async startCherryPickWithBranch(e,t){const{branchesState:n}=this.repositoryStateManager.get(e),{dragData:r}=bp;if(null==r||r.type!==vp.Commit)return log.error("[cherryPick] Invalid Cherry-picking State: Could not determine selected commits."),void this.endMultiCommitOperation(e);const{tip:i}=n;if(i.kind!==Hr.Valid)throw this.endMultiCommitOperation(e),new Error("Tip is not in a valid state, which is required to start the cherry-pick flow.");const s=i.branch,{commits:o}=r;this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:s,branchCreated:!1,commits:o},t,o,i.branch.tip.sha),this.showPopup({type:dh.MultiCommitOperation,repository:e}),this.statsStore.increment("cherryPickViaDragAndDropCount"),this.setCherryPickBranchCreated(e,!1),this.cherryPick(e,t,o,s)}async startCherryPickWithPullRequest(e,t){const{pullRequestNumber:n,head:r}=t,{ref:i,gitHubRepository:s}=r,{cloneURL:o,owner:{login:a}}=s;let l;return null!==o&&(l=await this.appStore._findPullRequestBranch(e,n,a,o,i)),void 0===l?(log.error("[cherryPick] Could not determine target branch for cherry-pick operation - aborting cherry-pick."),void this.endMultiCommitOperation(e)):this.startCherryPickWithBranch(e,l)}async continueCherryPick(e,t,n,r,i){await this.switchMultiCommitOperationToShowProgress(e);const s=await this.appStore._continueCherryPick(e,t,n.manualResolutions);s===gy.CompletedWithoutError&&this.statsStore.increment("cherryPickSuccessfulWithConflictsCount"),this.processCherryPickResult(e,s,n.targetBranchName,r,i)}startConflictCherryPickFlow(e){const{changesState:t,multiCommitOperationState:n}=this.repositoryStateManager.get(e),{conflictState:r}=t;if(null===r||!at(r)||null==n||"Cherry-pick"!==n.operationDetail.kind)return log.error("[cherryPick] - conflict state was null or not in a cherry-pick conflict state - unable to continue"),void this.endMultiCommitOperation(e);const{sourceBranch:i}=n.operationDetail;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:r.manualResolutions,ourBranch:r.targetBranchName,theirBranch:null!==i?i.name:void 0}}),this.statsStore.increment("cherryPickConflictsEncounteredCount")}async abortCherryPick(e,t){await this.appStore._abortCherryPick(e,t),await this.appStore._loadStatus(e),this.endMultiCommitOperation(e),await this.refreshRepository(e)}async switchMultiCommitOperationToShowProgress(e){this.setMultiCommitOperationStep(e,{kind:"ShowProgress"}),await uw(500)}async processCherryPickResult(e,t,n,r,i){switch(await this.appStore._loadStatus(e),t){case gy.CompletedWithoutError:await this.changeCommitSelection(e,[r[0].sha],!0),await this.completeMultiCommitOperation(e,r.length);break;case gy.ConflictsEncountered:this.startConflictCherryPickFlow(e);break;case gy.UnableToStart:this.endMultiCommitOperation(e);break;default:this.appStore._clearCherryPickingHead(e,i),this.endMultiCommitOperation(e),this.appStore._closePopup()}}setCherryPickProgressFromState(e){return this.appStore._setCherryPickProgressFromState(e)}setDragElement(e){this.appStore._setDragElement(e)}clearDragElement(){this.appStore._setDragElement(null)}async setCherryPickCreateBranchFlowStep(e,t,n,r){const{branchesState:i}=this.repositoryStateManager.get(e),{defaultBranch:s,upstreamDefaultBranch:o,allBranches:a,tip:l}=i;if(l.kind!==Hr.Valid)return this.appStore._clearCherryPickingHead(e,null),this.endMultiCommitOperation(e),void log.error("Tip is in unknown state. Cherry-pick aborted.");const c=$r(e)?Gr(e):null;this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:r,branchCreated:!0,commits:n},null,n,l.branch.tip.sha);const u={kind:"CreateBranch",allBranches:a,defaultBranch:s,upstreamDefaultBranch:o,upstreamGhRepo:c,tip:l,targetBranchName:t};return this.appStore._setMultiCommitOperationStep(e,u)}setMultiCommitOperationTargetBranch(e,t){this.repositoryStateManager.updateMultiCommitOperationState(e,(()=>({targetBranch:t})))}setCherryPickBranchCreated(e,t){this.appStore._setCherryPickBranchCreated(e,t)}async getBranchAheadBehind(e,t){return this.appStore._getBranchAheadBehind(e,t)}setLastThankYou(e){this.appStore._setLastThankYou(e)}setUseCustomEditor(e){this.appStore._setUseCustomEditor(e)}setCustomEditor(e){this.appStore._setCustomEditor(e)}setUseCustomShell(e){this.appStore._setUseCustomShell(e)}setCustomShell(e){this.appStore._setCustomShell(e)}async reorderCommits(e,t,n,r,i=!1){const s={type:mt.Reorder,repository:e,commitsToReorder:t,beforeCommit:n,lastRetainedCommitRef:r};if(this.appStore._checkForUncommittedChanges(e,s))return;const o=this.repositoryStateManager.get(e),{tip:a}=o.branchesState;if(a.kind!==Hr.Valid)return void log.info("[reorder] - invalid tip state - could not perform reorder.");this.statsStore.increment("reorderStartedCount"),t.length>1&&this.statsStore.increment("reorderMultipleCommitsCount"),this.appStore._initializeMultiCommitOperation(e,{kind:"Reorder",lastRetainedCommitRef:r,beforeCommit:n,commits:t,currentTip:a.branch.tip.sha},a.branch,t,a.branch.tip.sha),this.showPopup({type:dh.MultiCommitOperation,repository:e}),this.appStore._setMultiCommitOperationUndoState(e,a);const{askForConfirmationOnForcePush:l}=this.appStore.getState();if(l&&!i&&await this.warnAboutRemoteCommits(e,a.branch,r))return void this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:a.branch,baseBranch:a.branch,commits:t});const c=await this.appStore._reorderCommits(e,t,n,r);return this.logHowToRevertMultiCommitOperation("Reorder",a),this.processMultiCommitOperationRebaseResult("Reorder",e,c,t.length,a.branch.name,`${"Reorder".toLowerCase()} commit`)}async squash(e,t,n,r,i,s=!1){const o={type:mt.Squash,repository:e,toSquash:t,squashOnto:n,lastRetainedCommitRef:r,commitContext:i};if(this.appStore._checkForUncommittedChanges(e,o))return;const a=this.repositoryStateManager.get(e),{tip:l}=a.branchesState;if(l.kind!==Hr.Valid)return void log.info("[squash] - invalid tip state - could not perform squash.");t.length>1&&this.statsStore.increment("squashMultipleCommitsInvokedCount"),this.initializeMultiCommitOperation(e,{kind:"Squash",lastRetainedCommitRef:r,commitContext:i,targetCommit:n,commits:t,currentTip:l.branch.tip.sha},l.branch,t,l.branch.tip.sha),this.closePopup(dh.CommitMessage),this.showPopup({type:dh.MultiCommitOperation,repository:e}),this.appStore._setMultiCommitOperationUndoState(e,l);const{askForConfirmationOnForcePush:c}=this.appStore.getState();if(c&&!s&&await this.warnAboutRemoteCommits(e,l.branch,r))return void this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:l.branch,baseBranch:l.branch,commits:t});const u=await this.appStore._squash(e,t,n,r,i);return this.logHowToRevertMultiCommitOperation("Squash",l),this.processMultiCommitOperationRebaseResult("Squash",e,u,t.length+1,l.branch.name,`${"Squash".toLowerCase()} commit`)}initializeMultiCommitOperation(e,t,n,r,i){this.appStore._initializeMultiCommitOperation(e,t,n,r,i)}logHowToRevertMultiCommitOperation(e,t){const n=e.toLocaleLowerCase(),r=bb(t);log.info(`[${n}] starting rebase for ${t.branch.name} at ${r}`),log.info(`[${n}] to restore the previous state if this completed rebase is unsatisfactory:`),log.info(`[${n}] - git checkout ${t.branch.name}`),log.info(`[${n}] - git reset ${r} --hard`)}async processMultiCommitOperationRebaseResult(e,t,n,r,i,s){const o=await this.appStore._loadStatus(t);switch(n){case sy.AlreadyUpToDate:FT("rebaseConflictsWithBranchAlreadyUpToDate",new Error("processMultiCommitOperationRebaseResult was invoked (which means Desktop went into a conflicts-found state) but the branch was already up-to-date, so there couldn't be any conflicts at all"));break;case sy.CompletedWithoutError:null!==o&&void 0!==o.currentTip&&await this.changeCommitSelection(t,[o.currentTip],!0),await this.completeMultiCommitOperation(t,r);break;case sy.ConflictsEncountered:await this.refreshRepository(t),this.startMultiCommitOperationConflictFlow(e,t,i,s);break;default:this.appStore._closePopup()}}startMultiCommitOperationConflictFlow(e,t,n,r){const{changesState:{conflictState:i}}=this.repositoryStateManager.get(t);if(null===i)return log.error("[startMultiCommitOperationConflictFlow] - conflict state was null - unable to continue"),void this.endMultiCommitOperation(t);const{manualResolutions:s}=i;this.setMultiCommitOperationStep(t,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:s,ourBranch:n,theirBranch:r}}),this.statsStore.recordOperationConflictsEncounteredCount(e),this.showPopup({type:dh.MultiCommitOperation,repository:t})}async completeMultiCommitOperation(e,t){this.closePopup();const{branchesState:{tip:n},multiCommitOperationState:r}=this.repositoryStateManager.get(e);if(null===r)return void log.error("[completeMultiCommitOperation] - No multi commit operation to complete.");const{operationDetail:i,originalBranchTip:s}=r,{kind:o}=i,a=this.getMultiCommitOperationSuccessBanner(e,t,r);this.setBanner(a),n.kind===Hr.Valid&&null!==s&&"Cherry-pick"!==o&&this.addBranchToForcePushList(e,n,s),this.statsStore.recordOperationSuccessful(o),this.endMultiCommitOperation(e),await this.refreshRepository(e)}getMultiCommitOperationSuccessBanner(e,t,n){const{operationDetail:r,targetBranch:i}=n,{kind:s}=r,o={count:t,onUndo:()=>{this.undoMultiCommitOperation(n,e,t)}};let a;switch(s){case"Squash":a={...o,type:Vw.SuccessfulSquash};break;case"Reorder":a={...o,type:Vw.SuccessfulReorder};break;case"Cherry-pick":a={...o,type:Vw.SuccessfulCherryPick,targetBranchName:null!==i?i.name:""};break;case"Rebase":const{sourceBranch:e}=r;a={type:Vw.SuccessfulRebase,targetBranch:null!==i?i.name:"",baseBranch:null!==e?e.name:void 0};break;case"Merge":throw new Error(`Unexpected multi commit operation kind ${s}`);default:ct(0,`Unsupported multi operation kind ${s}`)}return a}async undoMultiCommitOperation(e,t,n){const r=await this.appStore._undoMultiCommitOperation(e,t,n);return r&&this.statsStore.recordOperationUndone(e.operationDetail.kind),r}handleConflictsDetectedOnError(e,t,n){return this.appStore._handleConflictsDetectedOnError(e,t,n)}setMultiCommitOperationStep(e,t){return this.appStore._setMultiCommitOperationStep(e,t)}endMultiCommitOperation(e){this.appStore._endMultiCommitOperation(e)}onConflictsFoundBanner=(e,t,n)=>{this.setBanner({type:Vw.ConflictsFound,operationDescription:t,onOpenConflictsDialog:async()=>{const{changesState:t,multiCommitOperationState:r}=this.repositoryStateManager.get(e),{conflictState:i}=t;if(null==i)return void log.error("[onConflictsFoundBanner] App is in invalid state to so conflicts dialog.");null!==r&&"Cherry-pick"===r.operationDetail.kind&&await this.setCherryPickProgressFromState(e);const{manualResolutions:s}=i;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{...n,manualResolutions:s}}),this.showPopup({type:dh.MultiCommitOperation,repository:e})}})};startMergeBranchOperation(e,t=!1,n){const{branchesState:r}=this.repositoryStateManager.get(e),{defaultBranch:i,allBranches:s,recentBranches:o,tip:a}=r;let l=null;if(a.kind!==Hr.Valid)throw new Error("Tip is not in a valid state, which is required to start the merge operation");l=a.branch,this.initializeMergeOperation(e,t,null),this.setMultiCommitOperationStep(e,{kind:"ChooseBranch",defaultBranch:i,currentBranch:l,allBranches:s,recentBranches:o,initialBranch:null!==n?n:void 0}),this.showPopup({type:dh.MultiCommitOperation,repository:e})}recordSquashInvoked(e){e?this.statsStore.increment("squashViaContextMenuInvokedCount"):this.statsStore.increment("squashViaDragAndDropInvokedCount")}initializeMergeOperation(e,t,n){const{branchesState:{tip:r}}=this.repositoryStateManager.get(e);let i=null;if(r.kind!==Hr.Valid)throw new Error("Tip is not in a valid state, which is required to initialize the merge operation");i=r.branch,this.initializeMultiCommitOperation(e,{kind:"Merge",isSquash:t,sourceBranch:n},i,[],i.tip.sha)}setShowCIStatusPopover(e){this.appStore._setShowCIStatusPopover(e),e&&this.statsStore.increment("opensCheckRunsPopover")}_toggleCIStatusPopover(){this.appStore._toggleCIStatusPopover()}recordPullRequestReviewDialogSwitchToPullRequest(e){this.statsStore.recordPullRequestReviewDialogSwitchToPullRequest(e)}showUnreachableCommits(e){this.statsStore.increment("multiCommitDiffUnreachableCommitsDialogOpenedCount"),this.showPopup({type:dh.UnreachableCommits,selectedTab:e})}startPullRequest(e){this.appStore._startPullRequest(e)}changePullRequestFileSelection(e,t){return this.appStore._changePullRequestFileSelection(e,t)}setPullRequestFileListWidth(e){return this.appStore._setPullRequestFileListWidth(e)}resetPullRequestFileListWidth(){return this.appStore._resetPullRequestFileListWidth()}updatePullRequestBaseBranch(e,t){this.appStore._updatePullRequestBaseBranch(e,t)}quitApp(e){this.appStore._quitApp(e)}cancelQuittingApp(){this.appStore._cancelQuittingApp()}setPullRequestSuggestedNextAction(e){return this.appStore._setPullRequestSuggestedNextAction(e)}appFocusedElementChanged(){this.appStore._appFocusedElementChanged()}updateCachedRepoRulesets(e){this.appStore._updateCachedRepoRulesets(e)}onChecksFailedNotification(e,t,n){this.appStore.onChecksFailedNotification(e,t,n)}setUnderlineLinksSetting(e){return this.appStore._updateUnderlineLinks(e)}setDiffCheckMarksSetting(e){return this.appStore._updateShowDiffCheckMarks(e)}}(BU,_U,EU,PU);FU.registerErrorHandler(HO),FU.registerErrorHandler((async function(e,t){return e instanceof bw?(t.showPopup({type:dh.UpstreamAlreadyExists,repository:e.repository,existingRemote:e.existingRemote}),null):e})),FU.registerErrorHandler((async function(e,t){const n=function(e){return e instanceof am?e:null}(e);if(!n)return e;const{suggestDefaultEditor:r,openPreferences:i}=n.metadata;return await t.showPopup({type:dh.ExternalEditorFailed,message:n.message,suggestDefaultEditor:r,openPreferences:i}),null})),FU.registerErrorHandler((async function(e,t){return e instanceof rw?(await t.showPopup({type:dh.OpenShellFailed,message:e.message}),null):e})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=FO(n.underlyingError);if(!r)return e;const i=r.result.gitError;if(null===i)return e;if(i!==Gp.GitError.MergeConflicts)return e;const{repository:s,gitContext:o}=n.metadata;if(null==s)return e;if(!(s instanceof Zr))return e;if(null==o)return e;if("merge"!==o.kind&&"pull"!==o.kind)return e;switch(o.kind){case"pull":t.incrementMetric("mergeConflictFromPullCount");break;case"merge":t.incrementMetric("mergeConflictFromExplicitMergeCount")}const{currentBranch:a,theirBranch:l}=o;return t.handleConflictsDetectedOnError(s,a,l),null})),FU.registerErrorHandler((async function(e,t){const n=FO(e);if(!n)return e;const r=n.result.gitError;return null===r||r!==Gp.GitError.LFSAttributeDoesNotMatch?e:(t.showPopup({type:dh.LFSAttributeMismatch}),null)})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=FO(n.underlyingError);if(!r||null===r.result.gitError)return e;if(!Md(r.result.gitError))return e;const{repository:i,retryAction:s}=n.metadata;return i instanceof Zr&&$r(i)?void 0===s||s.type!==mt.Push||Lr(i.gitHubRepository)?e:(t.showCreateForkDialog(i),null):e})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=FO(n.underlyingError);if(!r)return e;const i=r.result.gitError;if(null===i)return e;if(i!==Gp.GitError.PushNotFastForward)return e;const s=n.metadata.repository;return s&&s instanceof Zr?(t.showPopup({type:dh.PushNeedsPull,repository:s}),null):e})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=FO(n.underlyingError);if(!r||null===r.result.gitError)return e;if(!Md(r.result.gitError))return e;const{repository:i}=n.metadata;if(!(i instanceof Zr))return e;if(null===i.gitHubRepository)return e;const s=function(e){const t="remote: ";return e.split(/\r?\n/).filter((e=>e.startsWith(t))).map((e=>e.substring(t.length))).join("\n")}(r.result.stderr),o=ZO.exec(s);if(!o)return e;const a=o[1],l=i.gitHubRepository.endpoint;return t.showPopup({type:dh.SAMLReauthRequired,organizationName:a,endpoint:l,retryAction:n.metadata.retryAction}),null})),FU.registerErrorHandler((async function(e,t){const n=BO(e);return n&&n.metadata.backgroundTask?null:e})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=n.metadata.repository;if(!(r&&r instanceof Zr))return e;if(r.missing)return null;const i=function(e){return function(e){return e instanceof Error&&"string"==typeof e.code}(e)?e:null}(n.underlyingError),s=FO(n.underlyingError);return s&&s.result.gitError===Gp.GitError.NotAGitRepository||i&&i.code===Gp.RepositoryDoesNotExistErrorCode?(await t.updateRepositoryMissing(r,!0),null):e})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(null===n)return e;const r=FO(n.underlyingError);if(null===r)return e;const i=r.result.gitError;if(i!==Gp.GitError.LocalChangesOverwritten&&i!==Gp.GitError.MergeWithLocalChanges&&i!==Gp.GitError.RebaseWithLocalChanges)return e;const{repository:s,retryAction:o}=n.metadata;if(!(s instanceof Zr))return e;if(void 0===o)return e;"checkout"===n.metadata.gitContext?.kind&&t.incrementMetric("errorWhenSwitchingBranchesWithUncommmittedChanges");const a=function(e){const t=new Array,n=e.split("\n");let r=!1;for(const e of n)if(r){if(!e.startsWith("\t"))break;t.push(e.trimLeft())}else e.startsWith("error:")&&e.includes("files would be overwritten")&&e.endsWith(":")&&(r=!0);return t}(r.result.stderr);return t.showPopup({type:dh.LocalChangesOverwritten,repository:s,retryAction:o,files:a}),null})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;const r=FO(n.underlyingError);if(!r)return e;const i=r.result.gitError;if(null===i)return e;if(i!==Gp.GitError.RebaseConflicts)return e;const{repository:s,gitContext:o}=n.metadata;if(null==s)return e;if(!(s instanceof Zr))return e;if(null==o)return e;if("merge"!==o.kind&&"pull"!==o.kind)return e;const{currentBranch:a}=o;return t.launchRebaseOperation(s,a),null})),FU.registerErrorHandler((async function(e,t){const n=BO(e);if(!n)return e;if(!FO(n.underlyingError))return e;const{repository:r}=n.metadata;if(!(r instanceof Zr))return e;if(!$r(r))return e;const i=UO.exec(e.message);return i?(t.showPopup({type:dh.PushRejectedDueToMissingWorkflowScope,rejectedPath:i[1],repository:r}),null):e})),FU.registerErrorHandler((async function(e,t){if(!(e instanceof wt))return e;const{retryAction:n}=e.metadata;return void 0===n?e:(t.showPopup({type:dh.DiscardChangesRetry,retryAction:n}),null)})),document.body.classList.add("platform-linux"),FU.initializeAppFocusState(),function(e){y("notification-event",((t,n,r,i)=>{if("click"!==n)return;I();const s=Vb.get(r);if(void 0!==s)return s?.(),void Vb.delete(r);e.onNotificationEventReceived(n,r,i)}))}(NU),TH.setDispatcher(FU),y("focus",(()=>{const{selectedState:e}=BU.getState();e&&e.type!==Je.CloningRepository&&FU.refreshRepository(e.repository),FU.setAppFocusState(!0)})),y("blur",(()=>{FU.setAccessKeyHighlightState(!1),FU.setAppFocusState(!1)})),y("url-action",((e,t)=>FU.dispatchURLAction(t))),function(e,t){["aria-label","aria-readonly"].forEach((n=>{delete e?.[n],delete t?.[n]}))}(np.defaultProps,np.propTypes),De.render(Ae.createElement(pH,{dispatcher:FU,appStore:BU,repositoryStateManager:_U,issuesStore:SU,gitHubUserStore:vU,aheadBehindStore:IU,notificationsDebugStore:LU,startTime:yU}),document.getElementById("desktop-app-container"))})(),module.exports.renderer=r})();
//# sourceMappingURL=renderer.js.map