From 2f8c26238261a9c057f0ae2d5589400d5c0d8e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=BB=D0=B0=D0=B2=D1=80=D0=B5=D0=B4=20=7C=20Glavred?= Date: Fri, 5 Feb 2021 15:01:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BE=D1=82=20=D0=93=D0=BB=D0=B0=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=20=D0=93=D0=B8=D1=82=D0=96=D0=A1=20|=20Chang?= =?UTF-8?q?es=20of=20GitJS=20Glavred?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0000 | 33 ++-- ... 00🕸jquery_3.5.1🕸jquery-3.5.1.min.js | 0 ...kit🕸🎬.js => 01🕸uikit_3.2.0🕸.js | 9 +- ...да => 01🕸uikit_3.2.0🕸.череда | 0 ...=> 01🕸uikit_3.2.0🕸uikit-icons.min.js | 0 ....css => 01🕸uikit_3.2.0🕸uikit.min.css | 0 ...in.js => 01🕸uikit_3.2.0🕸uikit.min.js | 0 02🕸UIK🕸🎬.js => 02🕸UIK🕸.js | 12 +- ...череда => 02🕸UIK🕸.череда | 0 03🕸isomorphic-git_1.7.2🕸.js | 22 +++ 03🕸isomorphic-git_1.7.2🕸.череда | 2 + 03🕸isomorphic-git_1.7.2🕸index.js | 167 ++++++++++++++++++ ...isomorphic-git_1.7.2🕸index.umd.min.js | 10 ++ ...somorphic-git_1.7.2🕸lightning-fs.min.js | 2 + ...🎬.js => 70🕸механика🕸.js | 0 ...=> 70🕸механика🕸.череда | 0 ...да🕸🎬.js => 80🕸морда🕸.js | 0 ...да => 80🕸морда🕸.череда | 0 81🕸➕🕸.js | 83 +++++++++ 81🕸➕🕸.череда | 11 ++ 81🕸➕🕸🎬.js | 29 --- 81🕸➕🕸🎬.череда | 6 - 81🕸➕🕸🙈.html | 8 +- 23 files changed, 330 insertions(+), 64 deletions(-) rename 00🕸jquery🕸jquery-3.5.1.min.js => 00🕸jquery_3.5.1🕸jquery-3.5.1.min.js (100%) rename 01🕸uikit🕸🎬.js => 01🕸uikit_3.2.0🕸.js (64%) rename 01🕸uikit🕸🎬.череда => 01🕸uikit_3.2.0🕸.череда (100%) rename 01🕸uikit🕸uikit-icons.min.js => 01🕸uikit_3.2.0🕸uikit-icons.min.js (100%) rename 01🕸uikit🕸uikit.min.css => 01🕸uikit_3.2.0🕸uikit.min.css (100%) rename 01🕸uikit🕸uikit.min.js => 01🕸uikit_3.2.0🕸uikit.min.js (100%) rename 02🕸UIK🕸🎬.js => 02🕸UIK🕸.js (89%) rename 02🕸UIK🕸🎬.череда => 02🕸UIK🕸.череда (100%) create mode 100644 03🕸isomorphic-git_1.7.2🕸.js create mode 100644 03🕸isomorphic-git_1.7.2🕸.череда create mode 100644 03🕸isomorphic-git_1.7.2🕸index.js create mode 100644 03🕸isomorphic-git_1.7.2🕸index.umd.min.js create mode 100644 03🕸isomorphic-git_1.7.2🕸lightning-fs.min.js rename 70🕸механика🕸🎬.js => 70🕸механика🕸.js (100%) rename 70🕸механика🕸🎬.череда => 70🕸механика🕸.череда (100%) rename 80🕸морда🕸🎬.js => 80🕸морда🕸.js (100%) rename 80🕸морда🕸🎬.череда => 80🕸морда🕸.череда (100%) create mode 100644 81🕸➕🕸.js create mode 100644 81🕸➕🕸.череда delete mode 100644 81🕸➕🕸🎬.js delete mode 100644 81🕸➕🕸🎬.череда diff --git a/0000 b/0000 index b2ff77f..75dd69d 100644 --- a/0000 +++ b/0000 @@ -2,23 +2,28 @@ 0.1.0 https://git.opengamestudio.org/kornerr/AMYP -x /00🕸jquery🕸jquery-3.5.1.min.js -/01🕸uikit🕸uikit-icons.min.js -/01🕸uikit🕸uikit.min.css -/01🕸uikit🕸uikit.min.js -x /01🕸uikit🕸🎬.js -/01🕸uikit🕸🎬.череда -x /02🕸UIK🕸🎬.js -/02🕸UIK🕸🎬.череда +x /00🕸jquery_3.5.1🕸jquery-3.5.1.min.js +x /01🕸uikit_3.2.0🕸.js +/01🕸uikit_3.2.0🕸.череда +/01🕸uikit_3.2.0🕸uikit-icons.min.js +/01🕸uikit_3.2.0🕸uikit.min.css +/01🕸uikit_3.2.0🕸uikit.min.js +x /02🕸UIK🕸.js +/02🕸UIK🕸.череда /02🕸UIK🕸🙈.css /02🕸UIK🕸🙈.html -x /70🕸механика🕸🎬.js -/70🕸механика🕸🎬.череда -x /80🕸морда🕸🎬.js -/80🕸морда🕸🎬.череда +x /03🕸isomorphic-git_1.7.2🕸.js +/03🕸isomorphic-git_1.7.2🕸.череда +/03🕸isomorphic-git_1.7.2🕸index.js +/03🕸isomorphic-git_1.7.2🕸index.umd.min.js +/03🕸isomorphic-git_1.7.2🕸lightning-fs.min.js +x /70🕸механика🕸.js +/70🕸механика🕸.череда +x /80🕸морда🕸.js +/80🕸морда🕸.череда x /80🕸морда🕸📖.js -x /81🕸➕🕸🎬.js -/81🕸➕🕸🎬.череда +x /81🕸➕🕸.js +/81🕸➕🕸.череда /81🕸➕🕸🙈.html x /90🕸🎬.js /90🕸🎬.череда \ No newline at end of file diff --git a/00🕸jquery🕸jquery-3.5.1.min.js b/00🕸jquery_3.5.1🕸jquery-3.5.1.min.js similarity index 100% rename from 00🕸jquery🕸jquery-3.5.1.min.js rename to 00🕸jquery_3.5.1🕸jquery-3.5.1.min.js diff --git a/01🕸uikit🕸🎬.js b/01🕸uikit_3.2.0🕸.js similarity index 64% rename from 01🕸uikit🕸🎬.js rename to 01🕸uikit_3.2.0🕸.js index 944e273..69dd792 100644 --- a/01🕸uikit🕸🎬.js +++ b/01🕸uikit_3.2.0🕸.js @@ -1,10 +1,11 @@ УстановитьUIkit = мир => { var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬ_ЭТОГО_МОДУЛЯ); - - var css = м.содержимое["/01🕸uikit🕸uikit.min.css"]; - var js = м.содержимое["/01🕸uikit🕸uikit.min.js"]; - var iconsJS = м.содержимое["/01🕸uikit🕸uikit-icons.min.js"]; + var префикс = ИМЯ_ЭТОГО_ФАЙЛА.substring(0, ИМЯ_ЭТОГО_ФАЙЛА.length - 3); + + var css = м.содержимое[префикс + "uikit.min.css"]; + var js = м.содержимое[префикс + "uikit.min.js"]; + var iconsJS = м.содержимое[префикс + "uikit-icons.min.js"]; // Применить стиль. var style = document.createElement("style"); diff --git a/01🕸uikit🕸🎬.череда b/01🕸uikit_3.2.0🕸.череда similarity index 100% rename from 01🕸uikit🕸🎬.череда rename to 01🕸uikit_3.2.0🕸.череда diff --git a/01🕸uikit🕸uikit-icons.min.js b/01🕸uikit_3.2.0🕸uikit-icons.min.js similarity index 100% rename from 01🕸uikit🕸uikit-icons.min.js rename to 01🕸uikit_3.2.0🕸uikit-icons.min.js diff --git a/01🕸uikit🕸uikit.min.css b/01🕸uikit_3.2.0🕸uikit.min.css similarity index 100% rename from 01🕸uikit🕸uikit.min.css rename to 01🕸uikit_3.2.0🕸uikit.min.css diff --git a/01🕸uikit🕸uikit.min.js b/01🕸uikit_3.2.0🕸uikit.min.js similarity index 100% rename from 01🕸uikit🕸uikit.min.js rename to 01🕸uikit_3.2.0🕸uikit.min.js diff --git a/02🕸UIK🕸🎬.js b/02🕸UIK🕸.js similarity index 89% rename from 02🕸UIK🕸🎬.js rename to 02🕸UIK🕸.js index dfb595b..17df25f 100644 --- a/02🕸UIK🕸🎬.js +++ b/02🕸UIK🕸.js @@ -60,15 +60,9 @@ ЗагрузитьМакетUIK = мир => { var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬ_ЭТОГО_МОДУЛЯ); + var префикс = ИМЯ_ЭТОГО_ФАЙЛА.substring(0, ИМЯ_ЭТОГО_ФАЙЛА.length - 3); мир.макет = { - "структура": м.содержимое["/02🕸UIK🕸🙈.html"], - "вид": м.содержимое["/02🕸UIK🕸🙈.css"], + "структура": м.содержимое[префикс + "🙈.html"], + "вид": м.содержимое[префикс + "🙈.css"], }; }; - - - - console.debug("обработали модуль UIK") - - - \ No newline at end of file diff --git a/02🕸UIK🕸🎬.череда b/02🕸UIK🕸.череда similarity index 100% rename from 02🕸UIK🕸🎬.череда rename to 02🕸UIK🕸.череда diff --git a/03🕸isomorphic-git_1.7.2🕸.js b/03🕸isomorphic-git_1.7.2🕸.js new file mode 100644 index 0000000..2ccd6da --- /dev/null +++ b/03🕸isomorphic-git_1.7.2🕸.js @@ -0,0 +1,22 @@ +УстановитьIsomorphicGit = мир => +{ + var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬ_ЭТОГО_МОДУЛЯ); + var префикс = ИМЯ_ЭТОГО_ФАЙЛА.substring(0, ИМЯ_ЭТОГО_ФАЙЛА.length - 3); + + var isogit = м.содержимое[префикс + "index.umd.min.js"]; + var http = м.содержимое[префикс + "index.js"]; + var lfs = м.содержимое[префикс + "lightning-fs.min.js"]; + + function загрузитьСкрипт(код) + { + var скрипт = document.createElement("script"); + скрипт.innerHTML = код; + document.body.appendChild(скрипт); + } + + загрузитьСкрипт(lfs); + загрузитьСкрипт(isogit); + + eval(http); + мир.гитHTTP = { request }; +}; \ No newline at end of file diff --git a/03🕸isomorphic-git_1.7.2🕸.череда b/03🕸isomorphic-git_1.7.2🕸.череда new file mode 100644 index 0000000..2f57edf --- /dev/null +++ b/03🕸isomorphic-git_1.7.2🕸.череда @@ -0,0 +1,2 @@ +ручной пуск + установить IsomorphicGit \ No newline at end of file diff --git a/03🕸isomorphic-git_1.7.2🕸index.js b/03🕸isomorphic-git_1.7.2🕸index.js new file mode 100644 index 0000000..a4bdf3a --- /dev/null +++ b/03🕸isomorphic-git_1.7.2🕸index.js @@ -0,0 +1,167 @@ +// https://unpkg.com/isomorphic-git@1.7.2/http/web/index.js +/** + * @typedef {Object} GitProgressEvent + * @property {string} phase + * @property {number} loaded + * @property {number} total + */ + +/** + * @callback ProgressCallback + * @param {GitProgressEvent} progress + * @returns {void | Promise} + */ + +/** + * @typedef {Object} GitHttpRequest + * @property {string} url - The URL to request + * @property {string} [method='GET'] - The HTTP method to use + * @property {Object} [headers={}] - Headers to include in the HTTP request + * @property {AsyncIterableIterator} [body] - An async iterator of Uint8Arrays that make up the body of POST requests + * @property {ProgressCallback} [onProgress] - Reserved for future use (emitting `GitProgressEvent`s) + * @property {object} [signal] - Reserved for future use (canceling a request) + */ + +/** + * @typedef {Object} GitHttpResponse + * @property {string} url - The final URL that was fetched after any redirects + * @property {string} [method] - The HTTP method that was used + * @property {Object} [headers] - HTTP response headers + * @property {AsyncIterableIterator} [body] - An async iterator of Uint8Arrays that make up the body of the response + * @property {number} statusCode - The HTTP status code + * @property {string} statusMessage - The HTTP status message + */ + +/** + * @callback HttpFetch + * @param {GitHttpRequest} request + * @returns {Promise} + */ + +/** + * @typedef {Object} HttpClient + * @property {HttpFetch} request + */ + +// Convert a value to an Async Iterator +// This will be easier with async generator functions. +function fromValue(value) { + let queue = [value]; + return { + next() { + return Promise.resolve({ done: queue.length === 0, value: queue.pop() }) + }, + return() { + queue = []; + return {} + }, + [Symbol.asyncIterator]() { + return this + }, + } +} + +function getIterator(iterable) { + if (iterable[Symbol.asyncIterator]) { + return iterable[Symbol.asyncIterator]() + } + if (iterable[Symbol.iterator]) { + return iterable[Symbol.iterator]() + } + if (iterable.next) { + return iterable + } + return fromValue(iterable) +} + +// Currently 'for await' upsets my linters. +async function forAwait(iterable, cb) { + const iter = getIterator(iterable); + while (true) { + const { value, done } = await iter.next(); + if (value) await cb(value); + if (done) break + } + if (iter.return) iter.return(); +} + +async function collect(iterable) { + let size = 0; + const buffers = []; + // This will be easier once `for await ... of` loops are available. + await forAwait(iterable, value => { + buffers.push(value); + size += value.byteLength; + }); + const result = new Uint8Array(size); + let nextIndex = 0; + for (const buffer of buffers) { + result.set(buffer, nextIndex); + nextIndex += buffer.byteLength; + } + return result +} + +// Convert a web ReadableStream (not Node stream!) to an Async Iterator +// adapted from https://jakearchibald.com/2017/async-iterators-and-generators/ +function fromStream(stream) { + // Use native async iteration if it's available. + if (stream[Symbol.asyncIterator]) return stream + const reader = stream.getReader(); + return { + next() { + return reader.read() + }, + return() { + reader.releaseLock(); + return {} + }, + [Symbol.asyncIterator]() { + return this + }, + } +} + +/* eslint-env browser */ + +/** + * HttpClient + * + * @param {GitHttpRequest} request + * @returns {Promise} + */ +async function request({ + onProgress, + url, + method = 'GET', + headers = {}, + body, +}) { + // streaming uploads aren't possible yet in the browser + if (body) { + body = await collect(body); + } + const res = await fetch(url, { method, headers, body }); + const iter = + res.body && res.body.getReader + ? fromStream(res.body) + : [new Uint8Array(await res.arrayBuffer())]; + // convert Header object to ordinary JSON + headers = {}; + for (const [key, value] of res.headers.entries()) { + headers[key] = value; + } + return { + url: res.url, + method: res.method, + statusCode: res.status, + statusMessage: res.statusText, + body: iter, + headers: headers, + } +} + +var index = { request }; + +//export default index; +//export { request }; \ No newline at end of file diff --git a/03🕸isomorphic-git_1.7.2🕸index.umd.min.js b/03🕸isomorphic-git_1.7.2🕸index.umd.min.js new file mode 100644 index 0000000..31e8fc4 --- /dev/null +++ b/03🕸isomorphic-git_1.7.2🕸index.umd.min.js @@ -0,0 +1,10 @@ +// https://unpkg.com/isomorphic-git@1.7.2/index.umd.min.js +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=152)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(24);function i(t,e){if(void 0===e)throw new n.a(t)}},function(t,e,r){"use strict";function n(t){return t.replace(/\/\.\//g,"/").replace(/\/{2,}/g,"/").replace(/^\/\.$/,"/").replace(/^\.\/$/,".").replace(/^\.\//,"").replace(/\/\.$/,"").replace(/(.+)\/$/,"$1").replace(/^$/,".")}function i(...t){return n(t.map(n).join("/"))}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(21),i=r.n(n),o=r(33),a=r(26);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}class u{constructor(t){if(void 0!==t._original_unwrapped_fs)return t;const e=Object.getOwnPropertyDescriptor(t,"promises");e&&e.enumerable?(this._readFile=t.promises.readFile.bind(t.promises),this._writeFile=t.promises.writeFile.bind(t.promises),this._mkdir=t.promises.mkdir.bind(t.promises),this._rmdir=t.promises.rmdir.bind(t.promises),this._unlink=t.promises.unlink.bind(t.promises),this._stat=t.promises.stat.bind(t.promises),this._lstat=t.promises.lstat.bind(t.promises),this._readdir=t.promises.readdir.bind(t.promises),this._readlink=t.promises.readlink.bind(t.promises),this._symlink=t.promises.symlink.bind(t.promises)):(this._readFile=i()(t.readFile.bind(t)),this._writeFile=i()(t.writeFile.bind(t)),this._mkdir=i()(t.mkdir.bind(t)),this._rmdir=i()(t.rmdir.bind(t)),this._unlink=i()(t.unlink.bind(t)),this._stat=i()(t.stat.bind(t)),this._lstat=i()(t.lstat.bind(t)),this._readdir=i()(t.readdir.bind(t)),this._readlink=i()(t.readlink.bind(t)),this._symlink=i()(t.symlink.bind(t))),this._original_unwrapped_fs=t}exists(t,e={}){var r=this;return c((function*(){try{return yield r._stat(t),!0}catch(t){if("ENOENT"===t.code||"ENOTDIR"===t.code)return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}}))()}read(e,r={}){var n=this;return c((function*(){try{let i=yield n._readFile(e,r);return"string"!=typeof i&&(i=t.from(i)),i}catch(t){return null}}))()}write(t,e,r={}){var n=this;return c((function*(){try{return void(yield n._writeFile(t,e,r))}catch(i){yield n.mkdir(Object(a.a)(t)),yield n._writeFile(t,e,r)}}))()}mkdir(t,e=!1){var r=this;return c((function*(){try{return void(yield r._mkdir(t))}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if(e)throw n;if("ENOENT"===n.code){const e=Object(a.a)(t);if("."===e||"/"===e||e===t)throw n;yield r.mkdir(e),yield r.mkdir(t,!0)}}}))()}rm(t){var e=this;return c((function*(){try{yield e._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}rmdir(t){var e=this;return c((function*(){try{yield e._rmdir(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}readdir(t){var e=this;return c((function*(){try{const r=yield e._readdir(t);return r.sort(o.a),r}catch(t){return"ENOTDIR"===t.code?null:[]}}))()}readdirDeep(t){var e=this;return c((function*(){const r=yield e._readdir(t);return(yield Promise.all(r.map(function(){var r=c((function*(r){const n=t+"/"+r;return(yield e._stat(n)).isDirectory()?e.readdirDeep(n):n}));return function(t){return r.apply(this,arguments)}}()))).reduce((t,e)=>t.concat(e),[])}))()}lstat(t){var e=this;return c((function*(){try{return yield e._lstat(t)}catch(t){if("ENOENT"===t.code)return null;throw t}}))()}readlink(t,e={encoding:"buffer"}){var r=this;return c((function*(){try{return r._readlink(t,e)}catch(t){if("ENOENT"===t.code)return null;throw t}}))()}writelink(t,e){var r=this;return c((function*(){return r._symlink(e.toString("utf8"),t)}))()}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";var n=r(28),i=r(58),o=r(9);class a{constructor(t){if(this.refs=new Map,this.parsedConfig=[],t){let e=null;this.parsedConfig=t.trim().split("\n").map(t=>{if(/^\s*#/.test(t))return{line:t,comment:!0};const r=t.indexOf(" ");if(t.startsWith("^")){const r=t.slice(1);return this.refs.set(e+"^{}",r),{line:t,ref:e,peeled:r}}{const n=t.slice(0,r);return e=t.slice(r+1),this.refs.set(e,n),{line:t,ref:e,oid:n}}})}return this}static from(t){return new a(t)}delete(t){this.parsedConfig=this.parsedConfig.filter(e=>e.ref!==t),this.refs.delete(t)}toString(){return this.parsedConfig.map(({line:t})=>t).join("\n")+"\n"}}var s=r(92);function c(t,e){const r=t.replace(/\^\{\}$/,""),n=e.replace(/\^\{\}$/,""),i=-(rn);return 0===i?t.endsWith("^{}")?1:-1:i}var u=r(1),f=r(13);function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return y}));const h=t=>[`${t}`,`refs/${t}`,`refs/tags/${t}`,`refs/heads/${t}`,`refs/remotes/${t}`,`refs/remotes/${t}/HEAD`],p=["config","description","index","shallow","commondir"];class y{static updateRemoteRefs({fs:t,gitdir:e,remote:r,refs:o,symrefs:a,tags:c,refspecs:l,prune:h=!1,pruneTags:p=!1}){return d((function*(){for(const t of o.values())if(!t.match(/[0-9a-f]{40}/))throw new n.a(t);const d=yield f.a.get({fs:t,gitdir:e});if(!l){if(0===(l=yield d.getall(`remote.${r}.fetch`)).length)throw new i.a(r);l.unshift(`+HEAD:refs/remotes/${r}/HEAD`)}const g=s.a.from(l),v=new Map;if(p){const r=yield y.listRefs({fs:t,gitdir:e,filepath:"refs/tags"});yield y.deleteRefs({fs:t,gitdir:e,refs:r.map(t=>`refs/tags/${t}`)})}if(c)for(const r of o.keys())if(r.startsWith("refs/tags")&&!r.endsWith("^{}")&&!(yield y.exists({fs:t,gitdir:e,ref:r}))){const t=o.get(r+"^{}")||o.get(r);v.set(r,t)}const m=g.translate([...o.keys()]);for(const[t,e]of m){const r=o.get(t);v.set(e,r)}const w=g.translate([...a.keys()]);for(const[t,e]of w){const r=a.get(t),n=g.translateOne(r);n&&v.set(e,`ref: ${n}`)}const b=[];if(h){for(const r of g.localNamespaces()){const n=(yield y.listRefs({fs:t,gitdir:e,filepath:r})).map(t=>`${r}/${t}`);for(const t of n)v.has(t)||b.push(t)}b.length>0&&(yield y.deleteRefs({fs:t,gitdir:e,refs:b}))}for(const[r,n]of v)yield t.write(Object(u.a)(e,r),`${n.trim()}\n`,"utf8");return{pruned:b}}))()}static writeRef({fs:t,gitdir:e,ref:r,value:i}){return d((function*(){if(!i.match(/[0-9a-f]{40}/))throw new n.a(i);yield t.write(Object(u.a)(e,r),`${i.trim()}\n`,"utf8")}))()}static writeSymbolicRef({fs:t,gitdir:e,ref:r,value:n}){return d((function*(){yield t.write(Object(u.a)(e,r),"ref: "+`${n.trim()}\n`,"utf8")}))()}static deleteRef({fs:t,gitdir:e,ref:r}){return d((function*(){return y.deleteRefs({fs:t,gitdir:e,refs:[r]})}))()}static deleteRefs({fs:t,gitdir:e,refs:r}){return d((function*(){yield Promise.all(r.map(r=>t.rm(Object(u.a)(e,r))));let n=yield t.read(`${e}/packed-refs`,{encoding:"utf8"});const i=a.from(n),o=i.refs.size;for(const t of r)i.refs.has(t)&&i.delete(t);i.refs.size!p.includes(t));for(const r of s)if(i=(yield t.read(`${e}/${r}`,{encoding:"utf8"}))||a.get(r),i)return y.resolve({fs:t,gitdir:e,ref:i.trim(),depth:n});throw new o.a(r)}))()}static exists({fs:t,gitdir:e,ref:r}){return d((function*(){try{return yield y.expand({fs:t,gitdir:e,ref:r}),!0}catch(t){return!1}}))()}static expand({fs:t,gitdir:e,ref:r}){return d((function*(){if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const n=yield y.packedRefs({fs:t,gitdir:e}),i=h(r);for(const r of i){if(yield t.exists(`${e}/${r}`))return r;if(n.has(r))return r}throw new o.a(r)}))()}static expandAgainstMap({ref:t,map:e}){return d((function*(){const r=h(t);for(const t of r)if(yield e.has(t))return t;throw new o.a(t)}))()}static resolveAgainstMap({ref:t,fullref:e=t,depth:r,map:n}){if(void 0!==r&&-1===--r)return{fullref:e,oid:t};if(t.startsWith("ref: "))return t=t.slice("ref: ".length),y.resolveAgainstMap({ref:t,fullref:e,depth:r,map:n});if(40===t.length&&/[0-9a-f]{40}/.test(t))return{fullref:e,oid:t};const i=h(t);for(const t of i){const e=n.get(t);if(e)return y.resolveAgainstMap({ref:e.trim(),fullref:t,depth:r,map:n})}throw new o.a(t)}static packedRefs({fs:t,gitdir:e}){return d((function*(){const r=yield t.read(`${e}/packed-refs`,{encoding:"utf8"});return a.from(r).refs}))()}static listRefs({fs:t,gitdir:e,filepath:r}){return d((function*(){const n=y.packedRefs({fs:t,gitdir:e});let i=null;try{i=yield t.readdirDeep(`${e}/${r}`),i=i.map(t=>t.replace(`${e}/${r}/`,""))}catch(t){i=[]}for(let t of(yield n).keys())t.startsWith(r)&&(t=t.replace(r+"/",""),i.includes(t)||i.push(t));return i.sort(c),i}))()}static listBranches({fs:t,gitdir:e,remote:r}){return d((function*(){return r?y.listRefs({fs:t,gitdir:e,filepath:`refs/remotes/${r}`}):y.listRefs({fs:t,gitdir:e,filepath:"refs/heads"})}))()}static listTags({fs:t,gitdir:e}){return d((function*(){return(yield y.listRefs({fs:t,gitdir:e,filepath:"refs/tags"})).filter(t=>!t.endsWith("^{}"))}))()}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const e=new n(t.message);return e.code=t.code,e.data=t.data,e.caller=t.caller,e.stack=t.stack,e}get isIsomorphicGitError(){return!0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=i.code,this.data={message:t}}}i.code="InternalError"},,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(5),i=r(9),o=r(23),a=r(116),s=r(117),c=r(71),u=r(16);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,gitdir:r,oid:f,format:l="content"}){const h=t=>d({fs:e,gitdir:r,oid:t});let p;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===f&&(p={format:"wrapped",object:t.from("tree 0\0")}),p||(p=yield Object(a.a)({fs:e,gitdir:r,oid:f})),p||(p=yield Object(s.a)({fs:e,gitdir:r,oid:f,getExternalRefDelta:h})),!p)throw new i.a(f);if("deflated"===l)return p;switch(p.format){case"deflated":p.object=t.from(yield Object(c.a)(p.object)),p.format="wrapped";case"wrapped":{if("wrapped"===l&&"wrapped"===p.format)return p;const t=yield Object(u.a)(p.object);if(t!==f)throw new n.a(`SHA check failed! Expected ${f}, computed ${t}`);const{object:e,type:r}=o.a.unwrap(p.object);p.type=r,p.object=e,p.format="content"}case"content":if("content"===l)return p;break;default:throw new n.a(`invalid format "${p.format}"`)}}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(70),i=r(42);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class a{static flush(){return t.from("0000","utf8")}static delim(){return t.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=t.from(e));const r=e.length+4,n=Object(i.a)(4,r);return t.concat([t.from(n,"utf8"),e])}static streamReader(t){const e=new n.a(t);return(function(){var t,r=(t=function*(){try{let t=yield e.read(4);if(null==t)return!0;if(t=parseInt(t.toString("utf8"),16),0===t)return null;if(1===t)return null;const r=yield e.read(t-4);return null==r||r}catch(t){return console.log("error",t),!0}},function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))});return function(){return r.apply(this,arguments)}}())}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`Could not find ${t}.`),this.code=this.name=i.code,this.data={what:t}}}i.code="NotFoundError"},function(t,e,r){"use strict";(function(t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var n=r(131),i=r(132),o=r(133);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return M(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){for(var l=!0,d=0;di&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(f=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},c.prototype.compare=function(t,e,r,n,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),l=0;li)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return O(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function I(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,o){return o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,o){return o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(130))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(5),i=r(49),o=r(115);function a(t){switch(t){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new n.a(`Unexpected GitTree entry mode: ${t}`)}function s(t){return!t.oid&&t.sha&&(t.oid=t.sha),t.mode=function(t){if("number"==typeof t&&(t=t.toString(8)),t.match(/^0?4.*/))return"040000";if(t.match(/^1006.*/))return"100644";if(t.match(/^1007.*/))return"100755";if(t.match(/^120.*/))return"120000";if(t.match(/^160.*/))return"160000";throw new n.a(`Could not understand file mode: ${t}`)}(t.mode),t.type||(t.type=a(t.mode)),t}class c{constructor(e){if(t.isBuffer(e))this._entries=function(t){const e=[];let r=0;for(;r`${t.mode} ${t.type} ${t.oid} ${t.path}`).join("\n")}toObject(){const e=[...this._entries];return e.sort(o.a),t.concat(e.map(e=>{const r=t.from(e.mode.replace(/^0/,"")),n=t.from(" "),i=t.from(e.path,"utf8"),o=t.from([0]),a=t.from(e.oid,"hex");return t.concat([r,n,i,o,a])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(5),i=r(54),o=r(76),a=r(20),s=r(121),c=r(43);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class f{constructor(e){if("string"==typeof e)this._commit=e;else if(t.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitCommit constructor");this._commit=f.render(e)}}static fromPayloadSignature({payload:t,signature:e}){const r=f.justHeaders(t),n=f.justMessage(t),i=Object(a.a)(r+"\ngpgsig"+Object(o.a)(e)+"\n"+n);return new f(i)}static from(t){return new f(t)}toObject(){return t.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return f.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Object(a.a)(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){const t=f.justHeaders(this._commit).split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={parent:[]};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.author&&(r.author=Object(c.a)(r.author)),r.committer&&(r.committer=Object(c.a)(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent){if(void 0===t.parent.length)throw new n.a("commit 'parent' property should be an array");for(const r of t.parent)e+=`parent ${r}\n`}const r=t.author;e+=`author ${Object(i.a)(r)}\n`;const a=t.committer||t.author;return e+=`committer ${Object(i.a)(a)}\n`,t.gpgsig&&(e+="gpgsig"+Object(o.a)(t.gpgsig)),e}static render(t){return f.renderHeaders(t)+"\n"+Object(a.a)(t.message)}render(){return this._commit}withoutSignature(){const t=Object(a.a)(this._commit);if(-1===t.indexOf("\ngpgsig"))return t;const e=t.slice(0,t.indexOf("\ngpgsig")),r=t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+"-----END PGP SIGNATURE-----\n".length);return Object(a.a)(e+"\n"+r)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(s.a)(t)}static sign(t,e,r){return(n=function*(){const n=t.withoutSignature(),i=f.justMessage(t._commit);let{signature:s}=yield e({payload:n,secretKey:r});s=Object(a.a)(s);const c=f.justHeaders(t._commit)+"\ngpgsig"+Object(o.a)(s)+"\n"+i;return f.from(c)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(91);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{static get({fs:t,gitdir:e}){return o((function*(){const r=yield t.read(`${e}/config`,{encoding:"utf8"});return n.a.from(r)}))()}static save({fs:t,gitdir:e,config:r}){return o((function*(){yield t.write(`${e}/config`,r.toString(),{encoding:"utf8"})}))()}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e,r,n){super(`Object ${t} ${n?`at ${n}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=i.code,this.data={oid:t,actual:e,expected:r,filepath:n}}}i.code="ObjectTypeError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(5),i=r(54),o=r(20),a=r(43);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class c{constructor(e){if("string"==typeof e)this._tag=e;else if(t.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitAnnotatedTag constructor");this._tag=c.render(e)}}static from(t){return new c(t)}static render(t){return`object ${t.object}\ntype ${t.type}\ntag ${t.tag}\ntagger ${Object(i.a)(t.tagger)}\n\n${t.message}\n${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const t=this.withoutSignature();return t.slice(t.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.tagger&&(r.tagger=Object(a.a)(r.tagger)),r.committer&&(r.committer=Object(a.a)(r.committer)),r}withoutSignature(){const t=Object(o.a)(this._tag);return-1===t.indexOf("\n-----BEGIN PGP SIGNATURE-----")?t:t.slice(0,t.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1===this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(o.a)(t)}payload(){return this.withoutSignature()+"\n"}toObject(){return t.from(this._tag,"utf8")}static sign(t,e,r){return(n=function*(){const n=t.payload();let{signature:i}=yield e({payload:n,secretKey:r});i=Object(o.a)(i);const a=n+i;return c.from(a)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){s(o,r,i,a,c,"next",t)}function c(t){s(o,r,i,a,c,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";var n=r(65),i=r.n(n);function o(t){let e="";for(const r of new Uint8Array(t))r<16&&(e+="0"),e+=r.toString(16);return e}function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return u}));let c=null;function u(t){return f.apply(this,arguments)}function f(){return(f=s((function*(t){return null===c&&(c=yield p()),c?d(t):l(t)}))).apply(this,arguments)}function l(t){return(new i.a).update(t).digest("hex")}function d(t){return h.apply(this,arguments)}function h(){return(h=s((function*(t){return o(yield crypto.subtle.digest("SHA-1",t))}))).apply(this,arguments)}function p(){return y.apply(this,arguments)}function y(){return(y=s((function*(){try{if("da39a3ee5e6b4b0d3255bfef95601890afd80709"===(yield d(new Uint8Array([]))))return!0}catch(t){}return!1}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(23),i=r(123),o=r(72),a=r(16);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t){return f.apply(this,arguments)}function f(){return(f=c((function*({fs:e,gitdir:r,type:s,object:c,format:u="content",oid:f,dryRun:l=!1}){return"deflated"!==u&&("wrapped"!==u&&(c=n.a.wrap({type:s,object:c})),f=yield Object(a.a)(c),c=t.from(yield Object(o.a)(c))),l||(yield Object(i.a)({fs:e,gitdir:r,object:c,format:"deflated",oid:f})),f}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const e=this.buffer.slice(this._start,this._start+t);return this._start+=t,e}toString(t,e){const r=this.buffer.toString(t,this._start,this._start+e);return this._start+=e,r}write(t,e,r){const n=this.buffer.write(t,this._start,e,r);return this._start+=e,n}copy(t,e,r){const n=t.copy(this.buffer,this._start,e,r);return this._start+=n,n}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const e=this.buffer.writeUInt8(t,this._start);return this._start+=1,e}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const e=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,e}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const e=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,e}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(53),i=r.n(n),o=r(89),a=r(67);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}let u=null;function f(){return(f=c((function*(t,e,r){const n=yield t.lstat(e),i=yield t.read(e),a=yield o.a.from(i);r.map.set(e,a),r.stats.set(e,n)}))).apply(this,arguments)}function l(){return(l=c((function*(t,e,r){const n=r.stats.get(e);if(void 0===n)return!0;const i=yield t.lstat(e);return null!==n&&(null!==i&&Object(a.a)(n,i))}))).apply(this,arguments)}class d{static acquire({fs:t,gitdir:e,cache:r},n){return c((function*(){r.index||(r.index={map:new Map,stats:new Map});const o=`${e}/index`;let a;return null===u&&(u=new i.a({maxPending:1/0})),yield u.acquire(o,c((function*(){(yield function(t,e,r){return l.apply(this,arguments)}(t,o,r.index))&&(yield function(t,e,r){return f.apply(this,arguments)}(t,o,r.index));const e=r.index.map.get(o);if(a=yield n(e),e._dirty){const n=yield e.toObject();yield t.write(o,n),r.index.stats.set(o,yield t.lstat(o)),e._dirty=!1}}))),a}))()}}},function(t,e,r){"use strict";function n(t){return t=(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";const n=(t,e)=>function(...r){return new(0,e.promiseModule)((n,i)=>{e.multiArgs?r.push((...t)=>{e.errorFirst?t[0]?i(t):(t.shift(),n(t)):n(t)}):e.errorFirst?r.push((t,e)=>{t?i(t):n(e)}):r.push(n),t.apply(this,r)})};t.exports=(t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const r=typeof t;if(null===t||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":r}\``);const i=t=>{const r=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(r):!e.exclude.some(r)};let o;o="function"===r?function(...r){return e.excludeMain?t(...r):n(t,e).apply(this,r)}:Object.create(Object.getPrototypeOf(t));for(const r in t){const a=t[r];o[r]="function"==typeof a&&i(r)?n(a,e):a}return o}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`No name was provided for ${t} in the argument or in the .git/config file.`),this.code=this.name=i.code,this.data={role:t}}}i.code="MissingNameError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i}));var n=r(5);class i{static wrap({type:e,object:r}){return t.concat([t.from(`${e} ${r.byteLength.toString()}\0`),t.from(r)])}static unwrap(e){const r=e.indexOf(32),i=e.indexOf(0),o=e.slice(0,r).toString("utf8"),a=e.slice(r+1,i).toString("utf8"),s=e.length-(i+1);if(parseInt(a)!==s)throw new n.a(`Length mismatch: expected ${a} bytes but got ${s} instead.`);return{type:o,object:t.from(e.slice(i+1))}}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`The function requires a "${t}" parameter but none was provided.`),this.code=this.name=i.code,this.data={parameter:t}}}i.code="MissingParameterError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e,r=!0){super(`Failed to create ${t} at ${e} because it already exists.${r?` (Hint: use 'force: true' parameter to overwrite existing ${t}.)`:""}`),this.code=this.name=i.code,this.data={noun:t,where:e,canForce:r}}}i.code="AlreadyExistsError"},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o-1?t.size%2**32:0}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return m}));var n=r(48),i=r(59),o=r(62),a=r(73),s=r(45),c=r(99),u=r(75);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;et.endsWith("?")?`${t}${e}`:`${t}/${e.replace(/^https?:\/\//,"")}`,g=(t,e)=>{(e.username||e.password)&&(t.Authorization=Object(a.a)(e)),e.headers&&Object.assign(t,e.headers)},v=function(){var e=p((function*(e){try{const r=t.from(yield Object(s.a)(e.body)),n=r.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:r}}catch(t){return{}}}));return function(t){return e.apply(this,arguments)}}();class m{static capabilities(){return p((function*(){return["discover","connect"]}))()}static discover({http:t,onProgress:e,onAuth:r,onAuthSuccess:s,onAuthFailure:f,corsProxy:d,service:h,url:m,headers:w,protocolVersion:b}){return p((function*(){let{url:p,auth:_}=Object(c.a)(m);const x=d?y(d,p):p;let O,j;(_.username||_.password)&&(w.Authorization=Object(a.a)(_)),2===b&&(w["Git-Protocol"]="version=2");let P=!1;do{if(O=yield t.request({onProgress:e,method:"GET",url:`${x}/info/refs?service=${h}`,headers:w}),j=!1,401===O.statusCode||203===O.statusCode){const t=P?f:r;if(t){if(_=yield t(p,l({},_,{headers:l({},w)})),_&&_.cancel)throw new o.a;_&&(g(w,_),P=!0,j=!0)}}else 200===O.statusCode&&P&&s&&(yield s(p,_))}while(j);if(200!==O.statusCode){const{response:t}=yield v(O);throw new n.a(O.statusCode,O.statusMessage,t)}if(O.headers["content-type"]===`application/x-${h}-advertisement`){const t=yield Object(u.a)(O.body,{service:h});return t.auth=_,t}{const{preview:t,response:e,data:r}=yield v(O);try{const t=yield Object(u.a)([r],{service:h});return t.auth=_,t}catch(r){throw new i.a(t,e)}}}))()}static connect({http:t,onProgress:e,corsProxy:r,service:i,url:o,auth:a,body:s,headers:u}){return p((function*(){const f=Object(c.a)(o);f&&(o=f.url),r&&(o=y(r,o)),u["content-type"]=`application/x-${i}-request`,u.accept=`application/x-${i}-result`,g(u,a);const l=yield t.request({onProgress:e,method:"POST",url:`${o}/${i}`,body:s,headers:u});if(200!==l.statusCode){const{response:t}=v(l);throw new n.a(l.statusCode,l.statusMessage,t)}return l}))()}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`Expected "${t}" but received "${e}".`),this.code=this.name=i.code,this.data={expected:t,actual:e}}}i.code="ParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=Symbol("GitWalkSymbol")},function(t,e,r){"use strict";function n(t,e){return-(te)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(74);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=Object(n.a)(t);for(;;){const{value:t,done:n}=yield r.next();if(t&&(yield e(t)),n)break}r.return&&r.return()}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return e>-1&&(t=t.slice(e+1)),t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${e}".)`),this.code=this.name=i.code,this.data={ref:t,suggestion:e}}}i.code="InvalidRefNameError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(53),i=r.n(n),o=r(1);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}let c=null;class u{static read({fs:t,gitdir:e}){return s((function*(){null===c&&(c=new i.a);const r=Object(o.a)(e,"shallow"),n=new Set;return yield c.acquire(r,s((function*(){const e=yield t.read(r,{encoding:"utf8"});return null===e?n:""===e.trim()?n:void e.trim().split("\n").map(t=>n.add(t))}))),n}))()}static write({fs:t,gitdir:e,oids:r}){return s((function*(){null===c&&(c=new i.a);const n=Object(o.a)(e,"shallow");if(r.size>0){const e=[...r].join("\n")+"\n";yield c.acquire(n,s((function*(){yield t.write(n,e,{encoding:"utf8"})})))}else yield c.acquire(n,s((function*(){yield t.rm(n)})))}))()}}},function(t,e,r){"use strict";function n(t,e,r){return e=e instanceof RegExp?e:new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),t.replace(e,r)}var i={clean:function(t){if("string"!=typeof t)throw new Error("Expected a string, received: "+t);return t=n(t,"./","/"),t=n(t,"..","."),t=n(t," ","-"),t=n(t,/^[~^:?*\\\-]/g,""),t=n(t,/[~^:?*\\]/g,"-"),t=n(t,/[~^:?*\\\-]$/g,""),t=n(t,"@{","-"),t=n(t,/\.$/g,""),t=n(t,/\/$/g,""),t=n(t,/\.lock$/g,"")}};t.exports=i},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=i.code,this.data={}}}i.code="MergeNotSupportedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n={name:"isomorphic-git",version:"1.7.2",agent:"git/isomorphic-git@1.7.2"}},function(t,e,r){"use strict";var n={};(0,r(27).assign)(n,r(136),r(139),r(108)),t.exports=n},function(t,e,r){"use strict";function n(t,e){const r=e.toString(16);return"0".repeat(t-r.length)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){const[,e,r,n,o]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(n),timezoneOffset:i(o)}}function i(t){let[,e,r,n]=t.match(/(\+|-)(\d\d)(\d\d)/);return n=("+"===e?1:-1)*(60*Number(r)+Number(n)),0===(i=n)?i:-i;var i}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(9),i=r(14),o=r(3),a=r(11),s=r(7),c=r(1),u=r(66),f=r(50);function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}class h{constructor({fs:t,gitdir:e,ref:r}){this.fs=t,this.gitdir=e,this.mapPromise=d((function*(){const i=new Map;let a;try{a=yield o.a.resolve({fs:t,gitdir:e,ref:r})}catch(t){t instanceof n.a&&(a="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const s=yield Object(f.a)({fs:t,gitdir:e,oid:a});return s.type="tree",s.mode="40000",i.set(".",s),i}))();const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return d((function*(){return i.type(t)}))()}mode(){var t=this;return d((function*(){return i.mode(t)}))()}stat(){var t=this;return d((function*(){return i.stat(t)}))()}content(){var t=this;return d((function*(){return i.content(t)}))()}oid(){var t=this;return d((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return d((function*(){const r=t._fullpath,{fs:n,gitdir:o}=e,u=yield e.mapPromise,f=u.get(r);if(!f)throw new Error(`No obj for ${r}`);const l=f.oid;if(!l)throw new Error(`No oid for obj ${JSON.stringify(f)}`);if("tree"!==f.type)return null;const{type:d,object:h}=yield Object(s.a)({fs:n,gitdir:o,oid:l});if(d!==f.type)throw new i.a(l,d,f.type);const p=a.a.from(h);for(const t of p)u.set(Object(c.a)(r,t.path),t);return p.entries().map(t=>Object(c.a)(r,t.path))}))()}type(t){var e=this;return d((function*(){if(!1===t._type){const r=yield e.mapPromise,{type:n}=r.get(t._fullpath);t._type=n}return t._type}))()}mode(t){var e=this;return d((function*(){if(!1===t._mode){const r=yield e.mapPromise,{mode:n}=r.get(t._fullpath);t._mode=Object(u.a)(parseInt(n,8))}return t._mode}))()}stat(t){return d((function*(){}))()}content(t){var e=this;return d((function*(){if(!1===t._content){const r=yield e.mapPromise,{fs:n,gitdir:i}=e,o=r.get(t._fullpath).oid,{type:a,object:c}=yield Object(s.a)({fs:n,gitdir:i,oid:o});t._content="blob"!==a?void 0:new Uint8Array(c)}return t._content}))()}oid(t){var e=this;return d((function*(){if(!1===t._oid){const r=(yield e.mapPromise).get(t._fullpath);t._oid=r.oid}return t._oid}))()}}var p=r(32);function y({ref:t="HEAD"}){const e=Object.create(null);return Object.defineProperty(e,p.a,{value:function({fs:e,gitdir:r}){return new h({fs:e,gitdir:r,ref:t})}}),Object.freeze(e),e}r.d(e,"a",(function(){return y}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(34);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*(t){let e=0;const r=[];yield Object(n.a)(t,t=>{r.push(t),e+=t.byteLength});const i=new Uint8Array(e);let o=0;for(const t of r)i.set(t,o),o+=t.byteLength;return i}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(80),i=r(50);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,oid:r,filepath:o}){void 0!==o&&(r=yield Object(n.a)({fs:t,gitdir:e,oid:r,filepath:o}));const{tree:a,oid:s}=yield Object(i.a)({fs:t,gitdir:e,oid:r});return{oid:s,tree:a.entries()}}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(3),i=r(98);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,fullname:r=!1,test:o=!1}){const a=yield n.a.resolve({fs:t,gitdir:e,ref:"HEAD",depth:2});if(o)try{yield n.a.resolve({fs:t,gitdir:e,ref:a})}catch(t){return}if(a.startsWith("refs/"))return r?a:Object(i.a)(a)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e,r){super(`HTTP Error: ${t} ${e}`),this.code=this.name=i.code,this.data={statusCode:t,statusMessage:e,response:r}}}i.code="HttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(33);function i(t,e){return Object(n.a)(t.path,e.path)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(14),i=r(15),o=r(12),a=r(11),s=r(7);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,gitdir:e,oid:r}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===r)return{tree:a.a.from([]),oid:r};const{type:c,object:u}=yield Object(s.a)({fs:t,gitdir:e,oid:r});if("tag"===c)return f({fs:t,gitdir:e,oid:r=i.a.from(u).parse().object});if("commit"===c)return f({fs:t,gitdir:e,oid:r=o.a.from(u).parse().tree});if("tree"!==c)throw new n.a(r,c,"tree");return{tree:a.a.from(u),oid:r}}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(118),i=r.n(n),o=r(5),a=r(23),s=r(18),c=r(120),u=r(119),f=r(71),l=r(16);function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}class p{constructor(t){Object.assign(this,t),this.offsetCache={}}static fromIdx({idx:t,getExternalRefDelta:e}){return h((function*(){const r=new s.a(t);if("ff744f63"!==r.slice(4).toString("hex"))return;const n=r.readUInt32BE();if(2!==n)throw new o.a(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2147483648)throw new o.a("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+1020);const i=r.readUInt32BE(),a=[];for(let t=0;t>>0;a.end=n,a.crc=s}const m=new p({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:c,offsets:d,getExternalRefDelta:e});g=null;let w=0;const b=[0,0,0,0,0,0,0,0,0,0,0,0];for(let t in o){t=Number(t);const e=Math.floor(100*w++/y);e!==g&&r&&(yield r({phase:"Resolving deltas",loaded:w,total:y})),g=e;const n=o[t];if(!n.oid)try{m.readDepth=0,m.externalReadDepth=0;const{type:e,object:r}=yield m.readSlice({start:t});b[m.readDepth]+=1;const i=yield Object(l.a)(a.a.wrap({type:e,object:r}));n.oid=i,c.push(i),d.set(i,t),f[i]=n.crc}catch(t){continue}}return c.sort(),m}))()}toBuffer(){var e=this;return h((function*(){const r=[],n=(e,n)=>{r.push(t.from(e,n))};n("ff744f63","hex"),n("00000002","hex");const i=new s.a(t.alloc(1024));for(let t=0;t<256;t++){let r=0;for(const n of e.hashes)parseInt(n.slice(0,2),16)<=t&&r++;i.writeUInt32BE(r)}r.push(i.buffer);for(const t of e.hashes)n(t,"hex");const o=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)o.writeUInt32BE(e.crcs[t]);r.push(o.buffer);const a=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)a.writeUInt32BE(e.offsets.get(t));r.push(a.buffer),n(e.packfileSha,"hex");const c=t.concat(r),u=yield Object(l.a)(c),f=t.alloc(20);return f.write(u,"hex"),t.concat([c,f])}))()}load({pack:t}){var e=this;return h((function*(){e.pack=t}))()}unload(){var t=this;return h((function*(){t.pack=null}))()}read({oid:t}){var e=this;return h((function*(){if(!e.offsets.get(t)){if(e.getExternalRefDelta)return e.externalReadDepth++,e.getExternalRefDelta(t);throw new o.a(`Could not read object ${t} from packfile`)}const r=e.offsets.get(t);return e.readSlice({start:r})}))()}readSlice({start:e}){var r=this;return h((function*(){if(r.offsetCache[e])return Object.assign({},r.offsetCache[e]);r.readDepth++;if(!r.pack)throw new o.a("Tried to read from a GitPackIndex with no packfile loaded into memory");const n=(yield r.pack).slice(e),i=new s.a(n),a=i.readUInt8(),u=112&a;let l={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[u];if(void 0===l)throw new o.a("Unrecognized type: 0b"+u.toString(2));const d=15&a;let h=d;128&a&&(h=function(t,e){let r=e,n=4,i=null;do{i=t.readUInt8(),r|=(127&i)<t+1<<7|e,-1)}(i),n=e-t;({object:p,type:l}=yield r.readSlice({start:n}))}if("ref_delta"===l){const t=i.slice(20).toString("hex");({object:p,type:l}=yield r.read({oid:t}))}const g=n.slice(i.tell());if(y=t.from(yield Object(f.a)(g)),y.byteLength!==h)throw new o.a(`Packfile told us object would have length ${h} but it had length ${y.byteLength}`);return p&&(y=t.from(Object(c.a)(y,p))),r.readDepth>3&&(r.offsetCache[e]={type:l,object:y}),{type:l,format:"content",object:y}}))()}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";function n(t,e){const r=e-t;return Array.from({length:r},(e,r)=>t+r)}var i=r(96),o=r(32);class a{constructor(){this.value=null}consider(t){null!=t&&(null===this.value?this.value=t:tPromise.all([...e].map(t)))}){const h=c.map(n=>n[o.a]({fs:t,dir:r,gitdir:a,cache:e})),p=new Array(h.length).fill("."),y=n(0,h.length),g=function(){var t=u((function*(t){y.map(e=>{t[e]=t[e]&&new h[e].ConstructEntry(t[e])});const e=(yield Promise.all(y.map(e=>t[e]?h[e].readdir(t[e]):[]))).map(t=>null===t?[]:t).map(t=>t[Symbol.iterator]());return{entries:t,children:s(e)}}));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=u((function*(t){const{entries:e,children:r}=yield g(t),n=e.find(t=>t&&t._fullpath)._fullpath,i=yield f(n,e);if(null!==i){let t=yield d(v,r);return t=t.filter(t=>void 0!==t),l(i,t)}}));return function(e){return t.apply(this,arguments)}}();return v(p)}))).apply(this,arguments)}r.d(e,"a",(function(){return f}))},function(t,e,r){"use strict";t.exports=r(129)},function(t,e,r){"use strict";function n({name:t,email:e,timestamp:r,timezoneOffset:n}){return`${t} <${e}> ${r} ${n=function(t){const e=function(t){return Math.sign(t)||(Object.is(t,-0)?-1:1)}((r=t,0===r?r:-r));var r;t=Math.abs(t);const n=Math.floor(t/60);t-=60*n;let i=String(n),o=String(t);i.length<2&&(i="0"+i);o.length<2&&(o="0"+o);return(-1===e?"-":"+")+i+o}(n)}`}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}r.d(e,"a",(function(){return i}));class i{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const e=this._waiting;this._waiting=null,e({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this._ended=!0,this.error=t}next(){var t,e=this;return(t=function*(){if(e._queue.length>0)return{value:e._queue.shift()};if(e._ended)return{done:!0};if(e._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{e._waiting=t})},function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))})()}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`Remote does not support the "${t}" so the "${e}" parameter cannot be used.`),this.code=this.name=i.code,this.data={capability:t,parameter:e}}}i.code="RemoteCapabilityError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(){super("Empty response from git server."),this.code=this.name=i.code,this.data={}}}i.code="EmptyServerResponseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:\n[remote "${t}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=i.code,this.data={remote:t}}}i.code="NoRefspecError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${t}`),this.code=this.name=i.code,this.data={preview:t,response:e}}}i.code="SmartHttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e,r){super(`Git remote "${t}" uses an unrecognized transport protocol: "${e}"`),this.code=this.name=i.code,this.data={url:t,transport:e,suggestion:r}}}i.code="UnknownTransportError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`Cannot parse remote URL: "${t}"`),this.code=this.name=i.code,this.data={url:t}}}i.code="UrlParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(){super("The operation was canceled."),this.code=this.name=i.code,this.data={}}}i.code="UserCanceledError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(122),i=r.n(n),o=r(35),a=r(26),s=r(1);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class u{static isIgnored({fs:t,dir:e,gitdir:r=Object(s.a)(e,".git"),filepath:n}){return(u=function*(){if(".git"===Object(o.a)(n))return!0;if("."===n)return!1;const r=[{gitignore:Object(s.a)(e,".gitignore"),filepath:n}],c=n.split("/");for(let t=1;t>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=(e=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|e>>>31;for(var h=0;h<80;++h){var p=~~(h/20),y=u(n)+l(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,r){"use strict";function n(t){let e=t>0?t>>12:0;4!==e&&8!==e&&10!==e&&14!==e&&(e=8);let r=511&t;return r=73&r?493:420,8!==e&&(r=0),(e<<12)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){const r=Object(n.a)(t),i=Object(n.a)(e);return r.mode!==i.mode||r.mtimeSeconds!==i.mtimeSeconds||r.ctimeSeconds!==i.ctimeSeconds||r.uid!==i.uid||r.gid!==i.gid||r.ino!==i.ino||r.size!==i.size}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(5);class i{constructor({remotePath:t,localPath:e,force:r,matchPrefix:n}){Object.assign(this,{remotePath:t,localPath:e,force:r,matchPrefix:n})}static from(t){const[e,r,o,a,s]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),c="+"===e,u="*"===o;if(u!==("*"===s))throw new n.a("Invalid refspec");return new i({remotePath:r,localPath:a,force:c,matchPrefix:u})}translate(t){if(this.matchPrefix){if(t.startsWith(this.remotePath))return this.localPath+t.replace(this.remotePath,"")}else if(t===this.remotePath)return this.localPath;return null}reverseTranslate(t){if(this.matchPrefix){if(t.startsWith(this.localPath))return this.remotePath+t.replace(this.localPath,"")}else if(t===this.localPath)return this.remotePath;return null}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(51);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}const a=new Map;function s(){return(s=o((function*({fs:t,filename:e,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){const a=yield t.read(e);return n.a.fromIdx({idx:a,getExternalRefDelta:r})}))).apply(this,arguments)}function c({fs:t,filename:e,getExternalRefDelta:r,emitter:n,emitterPrefix:i}){let o=a.get(e);return o||(o=function(t){return s.apply(this,arguments)}({fs:t,filename:e,getExternalRefDelta:r,emitter:n,emitterPrefix:i}),a.set(e,o)),o}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(74);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{constructor(t){this.stream=Object(n.a)(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}byte(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(1),t.buffer[t.undoCursor]}))()}chunk(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(t.buffer.length),t.buffer.slice(t.undoCursor,t.cursor)}))()}read(t){var e=this;return o((function*(){if(!e.eof())return e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t),e.buffer.slice(e.undoCursor,e.cursor)}))()}skip(t){var e=this;return o((function*(){e.eof()||(e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t))}))()}undo(){var t=this;return o((function*(){t.cursor=t.undoCursor}))()}_next(){var e=this;return o((function*(){e.started=!0;let{done:r,value:n}=yield e.stream.next();return r&&(e._ended=!0),n&&(n=t.from(n)),n}))()}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}_accumulate(e){var r=this;return o((function*(){if(r._ended)return;const n=[r.buffer];for(;r.cursor+e>s(n);){const t=yield r._next();if(r._ended)break;n.push(t)}r.buffer=t.concat(n)}))()}_loadnext(){var t=this;return o((function*(){t._discardedBytes+=t.buffer.length,t.undoCursor=0,t.cursor=0,t.buffer=yield t._next()}))()}_init(){var t=this;return o((function*(){t.buffer=yield t._next()}))()}}function s(t){return t.reduce((t,e)=>t+e.length,0)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(41),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=!1;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.inflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new DecompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{if(new DecompressionStream("deflate"))return!0}catch(t){}return!1}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(41),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=null;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.deflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new CompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{if(new CompressionStream("deflate"))return!0}catch(t){}return!1}},function(t,e,r){"use strict";(function(t){function n({username:e="",password:r=""}){return`Basic ${t.from(`${e}:${r}`).toString("base64")}`}r.d(e,"a",(function(){return n}))}).call(this,r(10).Buffer)},function(t,e,r){"use strict";function n(t){return t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]?t[Symbol.iterator]():t.next?t:function(t){let e=[t];return{next:()=>Promise.resolve({done:0===e.length,value:e.pop()}),return:()=>(e=[],{}),[Symbol.asyncIterator](){return this}}}(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(57),i=r(31),o=r(8);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const e={};let r;for(;r=yield t(),!0!==r;){if(null===r)continue;r=r.toString("utf8").replace(/\n$/,"");const t=r.indexOf("=");if(t>-1){const n=r.slice(0,t),i=r.slice(t+1);e[n]=i}else e[r]=!0}return{protocolVersion:2,capabilities2:e}}))).apply(this,arguments)}function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t,e){return h.apply(this,arguments)}function h(){return(h=l((function*(t,{service:e}){const r=new Set,a=new Map,s=new Map,u=o.a.streamReader(t);let f=yield u();for(;null===f;)f=yield u();if(!0===f)throw new n.a;if(f.toString("utf8").replace(/\n$/,"")!==`# service=${e}`)throw new i.a(`# service=${e}\\n`,f.toString("utf8"));let l=yield u();for(;null===l;)l=yield u();if(!0===l)return{capabilities:r,refs:a,symrefs:s};if(l=l.toString("utf8"),l.includes("version 2"))return c(u);const[d,h]=p(l,"\0","\\x00");h.split(" ").map(t=>r.add(t));const[y,g]=p(d," "," ");for(a.set(g,y);;){const t=yield u();if(!0===t)break;if(null!==t){const[e,r]=p(t.toString("utf8")," "," ");a.set(r,e)}}for(const t of r)if(t.startsWith("symref=")){const e=t.match(/symref=([^:]+):(.*)/);3===e.length&&s.set(e[1],e[2])}return{protocolVersion:1,capabilities:r,refs:a,symrefs:s}}))).apply(this,arguments)}function p(t,e,r){const n=t.trim().split(e);if(2!==n.length)throw new i.a(`Two strings separated by '${r}'`,t.toString("utf8"));return n}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";function n(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.r(e);var n=r(25);r.d(e,"AlreadyExistsError",(function(){return n.a}));var i=r(83);r.d(e,"AmbiguousError",(function(){return i.a}));var o=r(84);r.d(e,"CheckoutConflictError",(function(){return o.a}));var a=r(85);r.d(e,"CommitNotFetchedError",(function(){return a.a}));var s=r(57);r.d(e,"EmptyServerResponseError",(function(){return s.a}));var c=r(86);r.d(e,"FastForwardError",(function(){return c.a}));var u=r(87);r.d(e,"GitPushError",(function(){return u.a}));var f=r(48);r.d(e,"HttpError",(function(){return f.a}));var l=r(5);r.d(e,"InternalError",(function(){return l.a}));var d=r(78);r.d(e,"InvalidFilepathError",(function(){return d.a}));var h=r(28);r.d(e,"InvalidOidError",(function(){return h.a}));var p=r(36);r.d(e,"InvalidRefNameError",(function(){return p.a}));var y=r(88);r.d(e,"MaxDepthError",(function(){return y.a}));var g=r(39);r.d(e,"MergeNotSupportedError",(function(){return g.a}));var v=r(22);r.d(e,"MissingNameError",(function(){return v.a}));var m=r(24);r.d(e,"MissingParameterError",(function(){return m.a}));var w=r(58);r.d(e,"NoRefspecError",(function(){return w.a}));var b=r(9);r.d(e,"NotFoundError",(function(){return b.a}));var _=r(14);r.d(e,"ObjectTypeError",(function(){return _.a}));var x=r(31);r.d(e,"ParseError",(function(){return x.a}));var O=r(79);r.d(e,"PushRejectedError",(function(){return O.a}));var j=r(56);r.d(e,"RemoteCapabilityError",(function(){return j.a}));var P=r(59);r.d(e,"SmartHttpError",(function(){return P.a}));var k=r(60);r.d(e,"UnknownTransportError",(function(){return k.a}));var E=r(61);r.d(e,"UrlParseError",(function(){return E.a}));var A=r(62);r.d(e,"UserCanceledError",(function(){return A.a}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){let e="invalid filepath";"leading-slash"!==t&&"trailing-slash"!==t||(e='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.'),super(e),this.code=this.name=i.code,this.data={reason:t}}}i.code="InvalidFilepathError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){let e="";"not-fast-forward"===t?e=" because it was not a simple fast-forward":"tag-exists"===t&&(e=" because tag already exists"),super(`Push rejected${e}. Use "force: true" to override.`),this.code=this.name=i.code,this.data={reason:t}}}i.code="PushRejectedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(78),i=r(9),o=r(14),a=r(11),s=r(7),c=r(50);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return d.apply(this,arguments)}function d(){return(d=f((function*({fs:t,gitdir:e,oid:r,filepath:i}){if(i.startsWith("/"))throw new n.a("leading-slash");if(i.endsWith("/"))throw new n.a("trailing-slash");const o=r,a=yield Object(c.a)({fs:t,gitdir:e,oid:r}),s=a.tree;if(""===i)r=a.oid;else{const n=i.split("/");r=yield h({fs:t,gitdir:e,tree:s,pathArray:n,oid:o,filepath:i})}return r}))).apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return(p=f((function*({fs:t,gitdir:e,tree:r,pathArray:n,oid:c,filepath:u}){const f=n.shift();for(const i of r)if(i.path===f){if(0===n.length)return i.oid;{const{type:f,object:l}=yield Object(s.a)({fs:t,gitdir:e,oid:i.oid});if("tree"!==f)throw new o.a(c,f,"blob",u);return h({fs:t,gitdir:e,tree:r=a.a.from(l),pathArray:n,oid:c,filepath:u})}}throw new i.a(`file or directory found at "${c}:${u}"`)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(19),i=r(3),o=r(12),a=r(11),s=r(17),c=r(90);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return d.apply(this,arguments)}function d(){return(d=f((function*({fs:t,cache:e,onSign:r,gitdir:a,message:u,author:l,committer:d,signingKey:p,dryRun:y=!1,noUpdateBranch:g=!1,ref:v,parent:m,tree:w}){return v||(v=yield i.a.resolve({fs:t,gitdir:a,ref:"HEAD",depth:2})),n.a.acquire({fs:t,gitdir:a,cache:e},function(){var e=f((function*(e){const n=Object(c.a)(e.entries).get(".");if(w||(w=yield h({fs:t,gitdir:a,inode:n,dryRun:y})),!m)try{m=[yield i.a.resolve({fs:t,gitdir:a,ref:v})]}catch(t){m=[]}let f=o.a.from({tree:w,parent:m,author:l,committer:d,message:u});p&&(f=yield o.a.sign(f,r,p));const b=yield Object(s.a)({fs:t,gitdir:a,type:"commit",object:f.toObject(),dryRun:y});return g||y||(yield i.a.writeRef({fs:t,gitdir:a,ref:v,value:b})),b}));return function(t){return e.apply(this,arguments)}}())}))).apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return(p=f((function*({fs:t,gitdir:e,inode:r,dryRun:n}){const i=r.children;for(const r of i)"tree"===r.type&&(r.metadata.mode="040000",r.metadata.oid=yield h({fs:t,gitdir:e,inode:r,dryRun:n}));const o=i.map(t=>({mode:t.metadata.mode,path:t.basename,oid:t.metadata.oid,type:t.type})),c=a.a.from(o);return yield Object(s.a)({fs:t,gitdir:e,type:"tree",object:c.toObject(),dryRun:n})}))).apply(this,arguments)}},function(t,e,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e,r){super(`Found multiple ${t} matching "${e}" (${r.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=i.code,this.data={nouns:t,short:e,matches:r}}}i.code="AmbiguousError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`Your local changes to the following files would be overwritten by checkout: ${t.join(", ")}`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="CheckoutConflictError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`Failed to checkout "${t}" because commit ${e} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=i.code,this.data={ref:t,oid:e}}}i.code="CommitNotFetchedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=i.code,this.data={}}}i.code="FastForwardError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t,e){super(`One or more branches were not updated: ${t}`),this.code=this.name=i.code,this.data={prettyDetails:t,result:e}}}i.code="GitPushError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4);class i extends n.a{constructor(t){super(`Maximum search depth of ${t} exceeded.`),this.code=this.name=i.code,this.data={depth:t}}}i.code="MaxDepthError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(5),i=r(18),o=r(49),a=r(29),s=r(16);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}class f{constructor(t){this._dirty=!1,this._entries=t||new Map}static from(e){return u((function*(){if(t.isBuffer(e))return f.fromBuffer(e);if(null===e)return new f(null);throw new n.a("invalid type passed to GitIndex.from")}))()}static fromBuffer(t){return u((function*(){const e=yield Object(s.a)(t.slice(0,-20)),r=t.slice(-20).toString("hex");if(r!==e)throw new n.a(`Invalid checksum in GitIndex buffer: expected ${r} but saw ${e}`);const o=new i.a(t),a=new Map,c=o.toString("utf8",4);if("DIRC"!==c)throw new n.a(`Inavlid dircache magic file number: ${c}`);const u=o.readUInt32BE();if(2!==u)throw new n.a(`Unsupported dircache version: ${u}`);const l=o.readUInt32BE();let d=0;for(;!o.eof()&&d>12,nameLength:4095&h});const i=t.indexOf(0,o.tell()+1)-o.tell();if(i<1)throw new n.a(`Got a path length of: ${i}`);e.path=o.toString("utf8",i);let s=8-(o.tell()-12)%8;for(0===s&&(s=8);s--;){const t=o.readUInt8();if(0!==t)throw new n.a(`Expected 1-8 null characters but got '${t}' after ${e.path}`);if(o.eof())throw new n.a("Unexpected end of file")}a.set(e.path,e),d++}var h;return new f(a)}))()}get entries(){return[...this._entries.values()].sort(o.a)}get entriesMap(){return this._entries}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:e,stats:r,oid:n}){r=Object(a.a)(r);const i=t.from(e),o={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:0,nameLength:i.length<4095?i.length:4095}};this._entries.set(o.path,o),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const e of this._entries.keys())e.startsWith(t+"/")&&this._entries.delete(e);this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join("\n")}toObject(){var e=this;return u((function*(){const r=t.alloc(12),n=new i.a(r);n.write("DIRC",4,"utf8"),n.writeUInt32BE(2),n.writeUInt32BE(e.entries.length);const o=t.concat(e.entries.map(e=>{const r=t.from(e.path),n=8*Math.ceil((62+r.length+1)/8),o=t.alloc(n),s=new i.a(o),c=Object(a.a)(e);return s.writeUInt32BE(c.ctimeSeconds),s.writeUInt32BE(c.ctimeNanoseconds),s.writeUInt32BE(c.mtimeSeconds),s.writeUInt32BE(c.mtimeNanoseconds),s.writeUInt32BE(c.dev),s.writeUInt32BE(c.ino),s.writeUInt32BE(c.mode),s.writeUInt32BE(c.uid),s.writeUInt32BE(c.gid),s.writeUInt32BE(c.size),s.write(e.oid,20,"hex"),s.writeUInt16BE(function(e){const r=e.flags;return r.extended=!1,r.nameLength=Math.min(t.from(e.path).length,4095),(r.assumeValid?32768:0)+(r.extended?16384:0)+((3&r.stage)<<12)+(4095&r.nameLength)}(e)),s.write(e.path,r.length,"utf8"),o})),c=t.concat([r,o]),u=yield Object(s.a)(c);return t.concat([c,t.from(u,"hex")])}))()}}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(35),i=r(26);function o(t){const e=new Map,r=function(t){if(!e.has(t)){const o={type:"tree",fullpath:t,basename:Object(n.a)(t),metadata:{},children:[]};e.set(t,o),o.parent=r(Object(i.a)(t)),o.parent&&o.parent!==o&&o.parent.children.push(o)}return e.get(t)},o=function(t,o){if(!e.has(t)){const a={type:"blob",fullpath:t,basename:Object(n.a)(t),metadata:o,parent:r(Object(i.a)(t)),children:[]};a.parent&&a.parent.children.push(a),e.set(t,a)}return e.get(t)};r(".");for(const e of t)o(e.path,e);return e}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return v}));const o=t=>{if("true"===(t=t.trim().toLowerCase())||"yes"===t||"on"===t)return!0;if("false"===t||"no"===t||"off"===t)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${t}`)},a={core:{filemode:o,bare:o,logallrefupdates:o,symlinks:o,ignorecase:o,bigFileThreshold:t=>{t=t.toLowerCase();let e=parseInt(t);return t.endsWith("k")&&(e*=1024),t.endsWith("m")&&(e*=1048576),t.endsWith("g")&&(e*=1073741824),e}}},s=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,c=/^[A-Za-z0-9-.]+$/,u=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,f=/^[A-Za-z][A-Za-z-]*$/,l=/^(.*?)( *[#;].*)$/,d=t=>{const e=l.exec(t);if(null==e)return t;const[r,n]=e.slice(1);return h(r)&&h(n)?`${r}${n}`:r},h=t=>(t.match(/(?:^|[^\\])"/g)||[]).length%2!=0,p=t=>t.split("").reduce((t,e,r,n)=>{const i='"'===e&&"\\"!==n[r-1],o="\\"===e&&'"'===n[r+1];return i||o?t:t+e},""),y=t=>null!=t?t.toLowerCase():null,g=(t,e,r)=>[y(t),e,y(r)].filter(t=>null!=t).join(".");class v{constructor(t){let e=null,r=null;this.parsedConfig=t.split("\n").map(t=>{let n=null,i=null;const o=t.trim(),a=(t=>{const e=s.exec(t);if(null!=e){const[t,r]=e.slice(1);return[t,r]}return null})(o),c=null!=a;if(c)[e,r]=a;else{const t=(t=>{const e=u.exec(t);if(null!=e){const[t,r="true"]=e.slice(1),n=d(r);return[t,p(n)]}return null})(o);null!=t&&([n,i]=t)}const f=g(e,r,n);return{line:t,isSection:c,section:e,subsection:r,name:n,value:i,path:f}})}static from(t){return new v(t)}get(t,e=!1){var r=this;return i((function*(){const n=r.parsedConfig.filter(e=>e.path===t.toLowerCase()).map(({section:t,name:e,value:r})=>{const n=a[t]&&a[t][e];return n?n(r):r});return e?n:n.pop()}))()}getall(t){var e=this;return i((function*(){return e.get(t,!0)}))()}getSubsections(t){var e=this;return i((function*(){return e.parsedConfig.filter(e=>e.section===t&&e.isSection).map(t=>t.subsection)}))()}deleteSection(t,e){var r=this;return i((function*(){r.parsedConfig=r.parsedConfig.filter(r=>!(r.section===t&&r.subsection===e))}))()}append(t,e){var r=this;return i((function*(){return r.set(t,e,!0)}))()}set(t,e,r=!1){var n=this;return i((function*(){const i=(o=n.parsedConfig,a=e=>e.path===t.toLowerCase(),o.reduce((t,e,r)=>a(e)?r:t,-1));var o,a;if(null==e)-1!==i&&n.parsedConfig.splice(i,1);else if(-1!==i){const t=n.parsedConfig[i],o=Object.assign({},t,{value:e,modified:!0});r?n.parsedConfig.splice(i+1,0,o):n.parsedConfig[i]=o}else{const r=t.split(".").slice(0,-1).join(".").toLowerCase(),i=n.parsedConfig.findIndex(t=>t.path===r),[o,a]=r.split("."),s=t.split(".").pop(),u={section:o,subsection:a,name:s,value:e,modified:!0,path:g(o,a,s)};if(c.test(o)&&f.test(s))if(i>=0)n.parsedConfig.splice(i+1,0,u);else{const t={section:o,subsection:a,modified:!0,path:g(o,a,null)};n.parsedConfig.push(t,u)}}}))()}toString(){return this.parsedConfig.map(({line:t,section:e,subsection:r,name:n,value:i,modified:o=!1})=>o?null!=n&&null!=i?`\t${n} = ${i}`:null!=r?`[${e} "${r}"]`:`[${e}]`:t).join("\n")}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(68);class i{constructor(t=[]){this.rules=t}static from(t){const e=[];for(const r of t)e.push(n.a.from(r));return new i(e)}add(t){const e=n.a.from(t);this.rules.push(e)}translate(t){const e=[];for(const r of this.rules)for(const n of t){const t=r.translate(n);t&&e.push([n,t])}return e}translateOne(t){let e=null;for(const r of this.rules){const n=r.translate(t);n&&(e=n)}return e}localNamespaces(){return this.rules.filter(t=>t.matchPrefix).map(t=>t.localPath.replace(/\/$/,""))}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(124),i=r.n(n);const o=/^.*(\r?\n|$)/gm;function a({ourContent:t,baseContent:e,theirContent:r,ourName:n="ours",baseName:a="base",theirName:s="theirs",format:c="diff",markerSize:u=7}){const f=t.match(o),l=e.match(o),d=r.match(o),h=i()(f,l,d);let p="",y=!0;for(const t of h)t.ok&&(p+=t.ok.join("")),t.conflict&&(y=!1,p+=`${"<".repeat(u)} ${n}\n`,p+=t.conflict.a.join(""),"diff3"===c&&(p+=`${"|".repeat(u)} ${a}\n`,p+=t.conflict.o.join("")),p+=`${"=".repeat(u)}\n`,p+=t.conflict.b.join(""),p+=`${">".repeat(u)} ${s}\n`);return{cleanMerge:y,mergedText:p}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(65),i=r.n(n),o=r(125),a=r(7),s=r(72),c=r(1),u=r(42);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,dir:r,gitdir:n=Object(c.a)(r,".git"),oids:f}){const d=new i.a,h=[];function p(e,r){const n=t.from(e,r);h.push(n),d.update(n)}function y(t){return g.apply(this,arguments)}function g(){return(g=l((function*({stype:e,object:r}){const n=o.a[e];let i=r.length,a=i>15?128:0;const c=15&i;i>>>=4;let f=(a|n|c).toString(16);for(p(f,"hex");a;)a=i>127?128:0,f=a|127&i,p(Object(u.a)(2,f),"hex"),i>>>=7;p(t.from(yield Object(s.a)(r)))}))).apply(this,arguments)}p("PACK"),p("00000002","hex"),p(Object(u.a)(8,f.length),"hex");for(const t of f){const{type:r,object:i}=yield Object(a.a)({fs:e,gitdir:n,oid:t});yield y({write:p,object:i,stype:r})}const v=d.digest();return h.push(v),h}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";var n=r(60),i=r(61);var o=r(30);r.d(e,"a",(function(){return a}));class a{static getRemoteHelperFor({url:t}){const e=new Map;e.set("http",o.a),e.set("https",o.a);const r=function({url:t}){if(t.startsWith("git@"))return{transport:"ssh",address:t};const e=t.match(/(\w+)(:\/\/|::)(.*)/);return null!==e?"://"===e[2]?{transport:e[1],address:e[0]}:"::"===e[2]?{transport:e[1],address:e[3]}:void 0:void 0}({url:t});if(!r)throw new i.a(t);if(e.has(r.transport))return e.get(r.transport);throw new n.a(t,r.transport,"ssh"===r.transport?function(t){return t=(t=t.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(t):void 0)}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=void 0===Array.prototype.flat?t=>t.reduce((t,e)=>t.concat(e),[]):t=>t.flat()},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(15),i=r(12),o=r(11),a=r(7),s=r(1);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,dir:e,gitdir:r=Object(s.a)(e,".git"),oids:c}){const f=new Set;function l(t){return d.apply(this,arguments)}function d(){return(d=u((function*(e){if(f.has(e))return;f.add(e);const{type:s,object:c}=yield Object(a.a)({fs:t,gitdir:r,oid:e});if("tag"===s){const t=n.a.from(c).headers().object;yield l(t)}else if("commit"===s){const t=i.a.from(c).headers().tree;yield l(t)}else if("tree"===s){const t=o.a.from(c);for(const e of t)"blob"!==e.type&&"commit"!==e.type||f.add(e.oid),"tree"===e.type&&(yield l(e.oid))}}))).apply(this,arguments)}for(const t of c)yield l(t);return f}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));const n=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function i(t){const e=n.exec(t);return e?"remotes/"===e[1]&&t.endsWith("/HEAD")?e[2].slice(0,-5):e[2]:t}},function(t,e,r){"use strict";function n(t){let e=t.match(/^https?:\/\/([^/]+)@/);if(null==e)return{url:t,auth:{}};e=e[1];const[r,n]=e.split(":");return{url:t=t.replace(`${e}@`,""),auth:{username:r,password:n}}}r.d(e,"a",(function(){return n}))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!f){var t=s(d);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l1)for(var r=1;r0&&!X.capabilities.has("deepen-not"))throw new o.a("deepen-not","exclude");if(!0===N&&!X.capabilities.has("deepen-relative"))throw new o.a("deepen-relative","relative");const{oid:tt,fullref:et}=s.a.resolveAgainstMap({ref:K,map:Q});for(const t of Q.keys())t===et||"HEAD"===t||t.startsWith("refs/heads/")||M&&t.startsWith("refs/tags/")||Q.delete(t);const rt=Object(v.a)([...X.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${b.a.agent}`]);N&&rt.push("deepen-relative");const nt=F?[tt]:Q.values(),it=F?[G]:yield s.a.listRefs({fs:e,gitdir:$,filepath:"refs"});let ot=[];for(let t of it)try{t=yield s.a.expand({fs:e,gitdir:$,ref:t});const r=yield s.a.resolve({fs:e,gitdir:$,ref:t});(yield Object(d.a)({fs:e,gitdir:$,oid:r}))&&ot.push(r)}catch(t){}ot=[...new Set(ot)];const at=yield u.a.read({fs:e,gitdir:$}),st=X.capabilities.has("shallow")?[...at]:[],ct=Object(O.a)({capabilities:rt,wants:nt,haves:ot,shallows:st,depth:C,since:z,exclude:D}),ut=t.from(yield Object(y.a)(ct)),ft=yield V.connect({http:r,onProgress:j,corsProxy:U,service:"git-upload-pack",url:q,auth:J,body:[ut],headers:H}),lt=yield Object(x.a)(ft.body);ft.headers&&(lt.headers=ft.headers);for(const t of lt.shallows)if(!at.has(t))try{const{object:r}=yield Object(h.a)({fs:e,gitdir:$,oid:t}),n=new f.a(r),i=yield Promise.all(n.headers().parent.map(t=>Object(d.a)({fs:e,gitdir:$,oid:t})));0===i.length||i.every(t=>t)||at.add(t)}catch(e){at.add(t)}for(const t of lt.unshallows)at.delete(t);if(yield u.a.write({fs:e,gitdir:$,oids:at}),F){const t=new Map([[et,tt]]),r=new Map;let n=10,i=et;for(;n--;){const t=X.symrefs.get(i);if(void 0===t)break;r.set(i,t),i=t}t.set(i,Q.get(i));const{pruned:o}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:W,refs:t,symrefs:r,tags:M,prune:L});L&&(lt.pruned=o)}else{const{pruned:t}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:W,refs:Q,symrefs:X.symrefs,tags:M,prune:L,pruneTags:Y});L&&(lt.pruned=t)}if(lt.HEAD=X.symrefs.get("HEAD"),void 0===lt.HEAD){const{oid:t}=s.a.resolveAgainstMap({ref:"HEAD",map:Q});for(const[e,r]of Q.entries())if("HEAD"!==e&&r===t){lt.HEAD=e;break}}const dt=et.startsWith("refs/tags")?"tag":"branch";if(lt.FETCH_HEAD={oid:tt,description:`${dt} '${Object(p.a)(et)}' of ${q}`},j||k){const t=Object(_.a)(lt.progress);Object(m.a)(t,function(){var t=P((function*(t){if(k&&(yield k(t)),j){const e=t.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);e&&(yield j({phase:e[1].trim(),loaded:parseInt(e[2],10),total:parseInt(e[3],10)}))}}));return function(e){return t.apply(this,arguments)}}())}const ht=t.from(yield Object(y.a)(lt.packfile)),pt=ht.slice(-20).toString("hex"),yt={defaultBranch:lt.HEAD,fetchHead:lt.FETCH_HEAD.oid,fetchHeadDescription:lt.FETCH_HEAD.description};if(lt.headers&&(yt.headers=lt.headers),L&&(yt.pruned=lt.pruned),""!==pt&&!Object(g.a)(ht)){yt.packfile=`objects/pack/pack-${pt}.pack`;const t=Object(w.a)($,yt.packfile);yield e.write(t,ht);const r=t=>Object(h.a)({fs:e,gitdir:$,oid:t}),n=yield l.a.fromPack({pack:ht,getExternalRefDelta:r,onProgress:j});yield e.write(t.replace(/\.pack$/,".idx"),yield n.toBuffer())}return yt}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){var n=r(10),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,r){"use strict";var n=r(27),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(8);function i({capabilities:t=[],wants:e=[],haves:r=[],shallows:i=[],depth:o=null,since:a=null,exclude:s=[]}){const c=[];e=[...new Set(e)];let u=` ${t.join(" ")}`;for(const t of e)c.push(n.a.encode(`want ${t}${u}\n`)),u="";for(const t of i)c.push(n.a.encode(`shallow ${t}\n`));null!==o&&c.push(n.a.encode(`deepen ${o}\n`)),null!==a&&c.push(n.a.encode(`deepen-since ${Math.floor(a.valueOf()/1e3)}\n`));for(const t of s)c.push(n.a.encode(`deepen-not ${t}\n`));c.push(n.a.flush());for(const t of r)c.push(n.a.encode(`have ${t}\n`));return c.push(n.a.encode("done\n")),c}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(28),i=r(64),o=r(34);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const{packetlines:e,packfile:r,progress:a}=i.a.demux(t),s=[],c=[],u=[];let f=!1,l=!1;return new Promise((t,i)=>{Object(o.a)(e,e=>{const o=e.toString("utf8").trim();if(o.startsWith("shallow")){const t=o.slice(-41).trim();40!==t.length&&i(new n.a(t)),s.push(t)}else if(o.startsWith("unshallow")){const t=o.slice(-41).trim();40!==t.length&&i(new n.a(t)),c.push(t)}else if(o.startsWith("ACK")){const[,t,e]=o.split(" ");u.push({oid:t,status:e}),e||(l=!0)}else o.startsWith("NAK")&&(f=!0,l=!0);l&&t({shallows:s,unshallows:c,acks:u,nak:f,packfile:r,progress:a})})})}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return h}));var n=r(44),i=r(52),o=r(39),a=r(11),s=r(17),c=r(35),u=r(1),f=r(93);function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}function h(t){return p.apply(this,arguments)}function p(){return(p=d((function*({fs:t,dir:e,gitdir:r=Object(u.a)(e,".git"),ourOid:f,baseOid:l,theirOid:h,ourName:p="ours",baseName:g="base",theirName:m="theirs",dryRun:w=!1}){const b=Object(n.a)({ref:f}),_=Object(n.a)({ref:l}),x=Object(n.a)({ref:h});var O,j;return(yield Object(i.a)({fs:t,dir:e,gitdir:r,trees:[b,_,x],map:(j=d((function*(e,[n,i,a]){const s=Object(c.a)(e);switch(`${yield y(n,i)}-${yield y(a,i)}`){case"false-false":return{mode:yield i.mode(),path:s,oid:yield i.oid(),type:yield i.type()};case"false-true":return a?{mode:yield a.mode(),path:s,oid:yield a.oid(),type:yield a.type()}:void 0;case"true-false":return n?{mode:yield n.mode(),path:s,oid:yield n.oid(),type:yield n.type()}:void 0;case"true-true":if(n&&i&&a&&"blob"===(yield n.type())&&"blob"===(yield i.type())&&"blob"===(yield a.type()))return v({fs:t,gitdir:r,path:s,ours:n,base:i,theirs:a,ourName:p,baseName:g,theirName:m});throw new o.a}})),function(t,e){return j.apply(this,arguments)}),reduce:(O=d((function*(e,n){const i=n.filter(Boolean);if(!e||"tree"!==e.type||0!==i.length){if(i.length>0){const n=new a.a(i).toObject(),o=yield Object(s.a)({fs:t,gitdir:r,type:"tree",object:n,dryRun:w});e.oid=o}return e}})),function(t,e){return O.apply(this,arguments)})})).oid}))).apply(this,arguments)}function y(t,e){return g.apply(this,arguments)}function g(){return(g=d((function*(t,e){return!(!t&&!e)&&(!(!t||e)||(!(t||!e)||("tree"!==(yield t.type())||"tree"!==(yield e.type()))&&((yield t.type())!==(yield e.type())||(yield t.mode())!==(yield e.mode())||(yield t.oid())!==(yield e.oid()))))}))).apply(this,arguments)}function v(t){return m.apply(this,arguments)}function m(){return(m=d((function*({fs:e,gitdir:r,path:n,ours:i,base:a,theirs:c,ourName:u,theirName:l,baseName:d,format:h,markerSize:p,dryRun:y}){const g=(yield a.mode())===(yield i.mode())?yield c.mode():yield i.mode();if((yield i.oid())===(yield c.oid()))return{mode:g,path:n,oid:yield i.oid(),type:"blob"};if((yield i.oid())===(yield a.oid()))return{mode:g,path:n,oid:yield c.oid(),type:"blob"};if((yield c.oid())===(yield a.oid()))return{mode:g,path:n,oid:yield i.oid(),type:"blob"};const{mergedText:v,cleanMerge:m}=Object(f.a)({ourContent:t.from(yield i.content()).toString("utf8"),baseContent:t.from(yield a.content()).toString("utf8"),theirContent:t.from(yield c.content()).toString("utf8"),ourName:u,theirName:l,baseName:d,format:h,markerSize:p});if(!m)throw new o.a;return{mode:g,path:n,oid:yield Object(s.a)({fs:e,gitdir:r,type:"blob",object:t.from(v,"utf8"),dryRun:y}),type:"blob"}}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(14),i=r(3),o=r(37),a=r(15),s=r(12),c=r(7),u=r(1);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:t,dir:e,gitdir:r=Object(u.a)(e,".git"),start:f,finish:d}){const h=yield o.a.read({fs:t,gitdir:r}),p=new Set,y=new Set;for(const e of f)p.add(yield i.a.resolve({fs:t,gitdir:r,ref:e}));for(const e of d)try{const n=yield i.a.resolve({fs:t,gitdir:r,ref:e});y.add(n)}catch(t){}const g=new Set;function v(t){return m.apply(this,arguments)}function m(){return(m=l((function*(e){g.add(e);const{type:i,object:o}=yield Object(c.a)({fs:t,gitdir:r,oid:e});if("tag"===i){return v(a.a.from(o).headers().object)}if("commit"!==i)throw new n.a(e,i,"commit");if(!h.has(e)){const t=s.a.from(o).headers().parent;for(e of t)y.has(e)||g.has(e)||(yield v(e))}}))).apply(this,arguments)}for(const t of p)yield v(t);return g}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(8);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({capabilities:t=[],triplets:e=[]}){const r=[];let i=`\0 ${t.join(" ")}`;for(const t of e)r.push(n.a.encode(`${t.oldoid} ${t.oid} ${t.fullRef}${i}\n`)),i="";return r.push(n.a.flush()),r}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(31),i=r(8);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*(t){const e={};let r="";const o=i.a.streamReader(t);let a=yield o();for(;!0!==a;)null!==a&&(r+=a.toString("utf8")+"\n"),a=yield o();const s=r.toString("utf8").split("\n");if(a=s.shift(),!a.startsWith("unpack "))throw new n.a('unpack ok" or "unpack [error message]',a);e.ok="unpack ok"===a,e.ok||(e.error=a.slice("unpack ".length)),e.refs={};for(const t of s){if(""===t.trim())continue;const r=t.slice(0,2),n=t.slice(3);let i=n.indexOf(" ");-1===i&&(i=n.length);const o=n.slice(0,i),a=n.slice(i+1);e.refs[o]={ok:"ok"===r,error:a}}return e}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(33);function i(t,e){return Object(n.a)(o(t),o(e))}function o(t){return"040000"===t.mode?t.path+"/":t.path}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`,i=yield t.read(`${e}/${n}`);return i?{object:i,format:"deflated",source:n}:null}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(5),i=r(69),o=r(1);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:t,gitdir:e,oid:r,format:a="content",getExternalRefDelta:s}){let c=yield t.readdir(Object(o.a)(e,"objects/pack"));c=c.filter(t=>t.endsWith(".idx"));for(const o of c){const a=`${e}/objects/pack/${o}`,c=yield Object(i.a)({fs:t,filename:a,getExternalRefDelta:s});if(c.error)throw new n.a(c.error);if(c.offsets.has(r)){if(!c.pack){const e=a.replace(/idx$/,"pack");c.pack=t.read(e)}const e=yield c.read({oid:r,getExternalRefDelta:s});return e.format="content",e.source=`objects/pack/${o.replace(/idx$/,"pack")}`,e}}return null}))).apply(this,arguments)}},function(t,e,r){var n;n=function(t){t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=t.length-1,o=0;o>>8^e[255&(n^t.charCodeAt(o++))])>>>8^e[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^e[255&(n^t.charCodeAt(o))]),-1^n},t.buf=function(t,r){if(t.length>1e4)return function(t,r){for(var n=-1^r,i=t.length-7,o=0;o>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o>>8^e[255&(n^t[o++])];return-1^n}(t,r);for(var n=-1^r,i=t.length-3,o=0;o>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o>>8^e[255&(n^t[o++])];return-1^n},t.str=function(t,r){for(var n,i,o=-1^r,a=0,s=t.length;a>>8^e[255&(o^n)]:n<2048?o=(o=o>>>8^e[255&(o^(192|n>>6&31))])>>>8^e[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(a++),o=(o=(o=(o=o>>>8^e[255&(o^(240|n>>8&7))])>>>8^e[255&(o^(128|n>>2&63))])>>>8^e[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^e[255&(o^(128|63&i))]):o=(o=(o=o>>>8^e[255&(o^(224|n>>12&15))])>>>8^e[255&(o^(128|n>>6&63))])>>>8^e[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(e):n({})},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(41),i=r.n(n),o=r(5),a=r(70);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t,e){return f.apply(this,arguments)}function f(){return(f=c((function*(t,e){const r=new a.a(t);let n=yield r.read(4);if(n=n.toString("utf8"),"PACK"!==n)throw new o.a(`Invalid PACK header '${n}'`);let s=yield r.read(4);if(s=s.readUInt32BE(0),2!==s)throw new o.a(`Invalid packfile version: ${s}`);let c=yield r.read(4);if(c=c.readUInt32BE(0),!(c<1))for(;!r.eof()&&c--;){const t=r.tell(),{type:n,length:a,ofs:s,reference:u}=yield l(r),f=new i.a.Inflate;for(;!f.result;){const i=yield r.chunk();if(r.ended)break;if(f.push(i,!1),f.err)throw new o.a(`Pako error: ${f.msg}`);if(f.result){if(f.result.length!==a)throw new o.a("Inflated object size is different from that stated in packfile.");yield r.undo(),yield r.read(i.length-f.strm.avail_in);const l=r.tell();yield e({data:f.result,type:n,num:c,offset:t,end:l,reference:u,ofs:s})}}}}))).apply(this,arguments)}function l(t){return d.apply(this,arguments)}function d(){return(d=c((function*(e){let r=yield e.byte();const n=r>>4&7;let i,o,a=15&r;if(128&r){let t=4;do{r=yield e.byte(),a|=(127&r)<>=1,i+=8;return n}function c(t,e){const r=t.readUInt8();if(128&r){const n=s(t,15&r,4);let i=s(t,(112&r)>>4,3);return 0===i&&(i=65536),e.slice(n,n+i)}return t.slice(r)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";function n(t){return t.split("\n").map(t=>t.replace(/^ /,"")).join("\n")}r.d(e,"a",(function(){return n}))},function(t,e,r){(function(e){function r(t){return Array.isArray(t)?t:[t]}const n=/^\s+$/,i=/^\\!/,o=/^\\#/,a=/\r?\n/g,s=/^\.*\/|^\.+$/,c="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",u=/([0-z])-([0-z])/g,f=[[/\\?\s+$/,t=>0===t.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,e,r)=>{return"]"===r?`[${n=e,n.replace(u,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}]`:`\\${t}`;var n}],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6`${e}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`],[/\\\\\\/g,()=>"\\"]],l=Object.create(null),d=t=>"string"==typeof t;class h{constructor(t,e,r,n){this.origin=t,this.pattern=e,this.negative=r,this.regex=n}}const p=(t,e)=>{const r=t;let n=!1;0===t.indexOf("!")&&(n=!0,t=t.substr(1));const a=((t,e,r)=>{const n=l[t];if(n)return n;const i=f.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t);return l[t]=r?new RegExp(i,"i"):new RegExp(i)})(t=t.replace(i,"!").replace(o,"#"),0,e);return new h(r,t,n,a)},y=(t,e)=>{throw new e(t)},g=(t,e,r)=>{if(!d(t))return r(`path must be a string, but got \`${e}\``,TypeError);if(!t)return r("path must not be empty",TypeError);if(g.isNotRelative(t)){return r(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},v=t=>s.test(t);g.isNotRelative=v,g.convert=t=>t;class m{constructor({ignorecase:t=!0}={}){var e,r,n;this._rules=[],this._ignorecase=t,e=this,r=c,n=!0,Object.defineProperty(e,r,{value:n}),this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[c])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&d(t)&&!n.test(t)&&0!==t.indexOf("#"))(t)){const e=p(t,this._ignorecase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,r(d(t)?(t=>t.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let r=!1,n=!1;return this._rules.forEach(i=>{const{negative:o}=i;n===o&&r!==n||o&&!r&&!n&&!e||i.regex.test(t)&&(r=!o,n=o)}),{ignored:r,unignored:n}}_test(t,e,r,n){const i=t&&g.convert(t);return g(i,t,y),this._t(i,e,r,n)}_t(t,e,r,n){if(t in e)return e[t];if(n||(n=t.split("/")),n.pop(),!n.length)return e[t]=this._testOne(t,r);const i=this._t(n.join("/")+"/",e,r,n);return e[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return r(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const w=t=>new m(t),b=()=>!1;if(w.isPathValid=t=>g(t&&g.convert(t),t,b),w.default=w,t.exports=w,void 0!==e&&(e.env&&e.env.IGNORE_TEST_WIN32||"win32"===e.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");g.convert=t;const e=/^[a-z]:\//i;g.isNotRelative=t=>e.test(t)||v(t)}}).call(this,r(100))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(5);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,object:r,format:i,oid:o}){if("deflated"!==i)throw new n.a("GitObjectStoreLoose expects objects to write to be in deflated format");const a=`${e}/${`objects/${o.slice(0,2)}/${o.slice(2)}`}`;(yield t.exists(a))||(yield t.write(a,r))}))).apply(this,arguments)}},function(t,e,r){var n=r(144);function i(t,e){for(var r=[],i=t.length,o=e.length,a=function(t,e){var r=new n(t,e);r.compose();for(var i,o,a=r.getses(),s=t.length-1,c=e.length-1,u=a.length-1;u>=0;--u)a[u].t===r.SES_COMMON?(o?(o.chain={file1index:s,file2index:c,chain:null},o=o.chain):o=i={file1index:s,file2index:c,chain:null},s--,c--):a[u].t===r.SES_DELETE?s--:a[u].t===r.SES_ADD&&c--;var f={file1index:-1,file2index:-1,chain:null};return o?(o.chain=f,i):f}(t,e);null!==a;a=a.chain){var s=i-a.file1index-1,c=o-a.file2index-1;i=a.file1index,o=a.file2index,(s||c)&&r.push({file1:[i+1,s],file2:[o+1,c]})}return r.reverse(),r}t.exports=function(t,e,r){var n=[],o=[t,e,r],a=function(t,e,r){var n,o=i(e,t),a=i(e,r),s=[];function c(t,e){s.push([t.file1[0],e,t.file1[1],t.file2[0],t.file2[1]])}for(n=0;nf&&(u.push([1,f,t-f]),f=t)}for(var d=0;dg)break;g=Math.max(g,m+v[2]),d++}if(l(y),h==d)p[4]>0&&u.push([p[1],p[3],p[4]]);else{var w={0:[t.length,-1,e.length,-1],2:[r.length,-1,e.length,-1]};for(n=h;n<=d;n++){var b=w[(p=s[n])[1]],_=p[0],x=_+p[2],O=p[3],j=O+p[4];b[0]=Math.min(O,b[0]),b[1]=Math.max(j,b[1]),b[2]=Math.min(_,b[2]),b[3]=Math.max(x,b[3])}var P=w[0][0]+(y-w[0][2]),k=w[0][1]+(g-w[0][3]),E=w[2][0]+(y-w[2][2]),A=w[2][1]+(g-w[2][3]);u.push([-1,P,k-P,y,g-y,E,A-E])}f=g}return l(e.length),u}(t,e,r),s=[];function c(){s.length&&n.push({ok:s}),s=[]}function u(t){for(var e=0;et.split("=",1)[0]);return e.filter(t=>{const e=t.split("=",1)[0];return r.includes(e)})}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(55),i=r(34);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){const e=t.indexOf("\r"),r=t.indexOf("\n");return-1===e&&-1===r?-1:-1===e?r+1:-1===r?e+1:r===e+1?r+1:Math.min(e,r)+1}function s(t){const e=new n.a;let r="";var s;return(s=function*(){yield Object(i.a)(t,t=>{for(t=t.toString("utf8"),r+=t;;){const t=a(r);if(-1===t)break;e.write(r.slice(0,t)),r=r.slice(t)}}),r.length>0&&e.write(r),e.end()},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=s.apply(t,e);function a(t){o(i,r,n,a,c,"next",t)}function c(t){o(i,r,n,a,c,"throw",t)}a(void 0)}))})(),e}},,function(t,e,r){"use strict";(function(e){var r=function(t){t=t||{},this.Promise=t.Promise||Promise,this.queues={},this.domains={},this.domainReentrant=t.domainReentrant||!1,this.timeout=t.timeout||r.DEFAULT_TIMEOUT,this.maxPending=t.maxPending||r.DEFAULT_MAX_PENDING};r.DEFAULT_TIMEOUT=0,r.DEFAULT_MAX_PENDING=1e3,r.prototype.acquire=function(t,r,n,i){if(Array.isArray(t))return this._acquireBatch(t,r,n,i);if("function"!=typeof r)throw new Error("You must pass a function to execute");var o=null,a=null,s=null;"function"!=typeof n&&(i=n,n=null,s=new this.Promise((function(t,e){o=t,a=e}))),i=i||{};var c=!1,u=null,f=this,l=function(e,r,i){e&&(0===f.queues[t].length&&delete f.queues[t],delete f.domains[t]),c||(s?r?a(r):o(i):"function"==typeof n&&n(r,i),c=!0),e&&f.queues[t]&&f.queues[t].length>0&&f.queues[t].shift()()},d=function(n){if(c)return l(n);if(u&&(clearTimeout(u),u=null),n&&(f.domains[t]=e.domain),1===r.length){var i=!1;r((function(t,e){i||(i=!0,l(n,t,e))}))}else f._promiseTry((function(){return r()})).then((function(t){l(n,void 0,t)}),(function(t){l(n,t)}))};if(e.domain&&(d=e.domain.bind(d)),f.queues[t])if(f.domainReentrant&&e.domain&&e.domain===f.domains[t])d(!1);else if(f.queues[t].length>=f.maxPending)l(!1,new Error("Too much pending tasks"));else{var h=function(){d(!0)};i.skipQueue?f.queues[t].unshift(h):f.queues[t].push(h);var p=i.timeout||f.timeout;p&&(u=setTimeout((function(){u=null,l(!1,new Error("async-lock timed out"))}),p))}else f.queues[t]=[],d(!0);return s||void 0},r.prototype._acquireBatch=function(t,e,r,n){"function"!=typeof r&&(n=r,r=null);var i=this,o=e;if(t.reverse().forEach((function(t){o=function(t,e){return function(r){i.acquire(t,e,r,n)}}(t,o)})),"function"!=typeof r)return new this.Promise((function(t,e){1===o.length?o((function(r,n){r?e(r):t(n)})):t(o())}));o(r)},r.prototype.isBusy=function(t){return t?!!this.queues[t]:Object.keys(this.queues).length>0},r.prototype._promiseTry=function(t){try{return this.Promise.resolve(t())}catch(t){return this.Promise.reject(t)}},t.exports=r}).call(this,r(100))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,f=-7,l=r?i-1:0,d=r?-1:1,h=t[e+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=d,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*c-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;t[r+h]=255&a,h+=p,a/=256,u-=8);t[r+h-p]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){var n=r(103).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,o=t.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,r){"use strict";var n=r(137),i=r(27),o=r(106),a=r(82),s=r(107),c=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(a[r]);this._dict_set=!0}}function f(t,e){var r=new u(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(t,e){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,r){"use strict";var n,i=r(27),o=r(138),a=r(104),s=r(105),c=r(82);function u(t,e){return t.msg=c[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function d(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function h(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function g(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,f=t.w_mask,l=t.prev,d=t.strstart+258,h=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&oa){if(t.match_start=e,a=n,n>=s)break;h=u[o+a-1],p=u[o+a]}}}while((e=l[e&f])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function v(t){var e,r,n,o,c,u,f,l,d,h,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);o+=p}if(0===t.strm.avail_in)break;if(u=t.strm,f=t.window,l=t.strstart+t.lookahead,d=o,h=void 0,(h=u.avail_in)>d&&(h=d),r=0===h?0:(u.avail_in-=h,i.arraySet(f,u.input,u.next_in,h,l),1===u.state.wrap?u.adler=a(u.adler,f,h,l):2===u.state.wrap&&(u.adler=s(u.adler,f,h,l)),u.next_in+=h,u.total_in+=h,h),t.lookahead+=r,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return u(t,-2);8===n&&(n=9);var c=new _;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(v(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,h(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(h(t,!1),t.strm.avail_out),1)})),new b(4,4,8,4,m),new b(4,5,16,8,m),new b(4,6,32,32,m),new b(4,4,16,16,w),new b(8,16,32,32,w),new b(8,16,128,128,w),new b(8,32,128,256,w),new b(32,128,258,1024,w),new b(32,258,258,4096,w)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var r,i,a,c;if(!t||!t.state||e>5||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,y(i,g),0!==i.strstart&&(y(i,t.adler>>>16),y(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(r)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var m=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(v(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(v(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(y(i,t.adler>>>16),y(i,65535&t.adler)),d(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,o,s,c,u,f,d,h=e.length;if(!t||!t.state)return-2;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(l(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,e,h-r.w_size,r.w_size,0),e=d,h=r.w_size),c=t.avail_in,u=t.next_in,f=t.input,t.avail_in=h,t.next_in=0,t.input=e,v(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var f=new Array(60);i(f);var l=new Array(512);i(l);var d=new Array(256);i(d);var h=new Array(29);i(h);var p,y,g,v=new Array(30);function m(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function b(t){return t<256?l[t]:l[256+(t>>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<>>=1,r<<=1}while(--e>0);return r>>>1}function P(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=j(o[s]++,s))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?_(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function A(t,e,r,n){var i=2*e,o=2*r;return t[i]>1;r>=1;r--)S(t,o,r);i=c;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,S(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,c=e.dyn_tree,u=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,y=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=c[2*c[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,y++),c[2*n+1]=o,n>u||(t.bl_count[o]++,a=0,n>=h&&(a=d[n-h]),s=c[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,y-=2}while(y>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),n--)}}(t,e),P(o,u,t.bl_count)}function B(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s>=7;n<30;n++)for(v[n]=i<<7,t=0;t<1<0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),a=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?U(t,e,r,n):4===t.strategy||o===i?(x(t,2+(n?1:0),3),$(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,r,n){var i;for(x(t,e-257,5),x(t,r-1,5),x(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(d[r]+256+1)]++,t.dyn_dtree[2*b(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,u),function(t){16===t.bi_valid?(_(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){"use strict";var n=r(140),i=r(27),o=r(106),a=r(108),s=r(82),c=r(107),u=r(143),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function d(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,c,u,l,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(h),d.next_out=0,d.avail_out=h),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),u=d.next_out-c,l=o.buf2string(d.output,c),d.next_out=u,d.avail_out=h-u,u&&i.arraySet(d.output,d.output,c,u,0),this.onData(l)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},function(t,e,r){"use strict";var n=r(27),i=r(104),o=r(105),a=r(141),s=r(142);function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function d(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,l(t))):-2}function h(t,e){var r,n;return t?(n=new u,t.state=n,n.window=null,0!==(r=d(t,e))&&(t.state=null),r):-2}var p,y,g=!0;function v(t){if(g){var e;for(p=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,y,0,t.work,{bits:5}),g=!1}t.lencode=p,t.lenbits=9,t.distcode=y,t.distbits=5}function m(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=o(r.check,U,2,0),y=0,g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(g-=4,$=8+(15&(y>>>=4)),0===r.wbits)r.wbits=$;else if($>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<$,t.adler=r.check=1,r.mode=512&y?10:12,y=0,g=0;break;case 2:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<>8&1),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=3;case 3:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,r.check=o(r.check,U,4,0)),y=0,g=0,r.mode=4;case 4:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<>8),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===h)break t;h--,y+=u[l++]<>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((_=r.length)>h&&(_=h),_&&(r.head&&($=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,_,$)),512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,r.length-=_),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break t;_=0;do{$=u[l+_++],r.head&&$&&r.length<65536&&(r.head.name+=String.fromCharCode($))}while($&&_>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===h)break t;h--,y+=u[l++]<>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===e){y>>>=2,g-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,g-=2;break;case 14:for(y>>>=7&g,g-=7&g;g<32;){if(0===h)break t;h--,y+=u[l++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,y=0,g=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(_=r.length){if(_>h&&(_=h),_>p&&(_=p),0===_)break t;n.arraySet(f,u,l,_,d),h-=_,l+=_,p-=_,d+=_,r.length-=_;break}r.mode=12;break;case 17:for(;g<14;){if(0===h)break t;h--,y+=u[l++]<>>=5,g-=5,r.ndist=1+(31&y),y>>>=5,g-=5,r.ncode=4+(15&y),y>>>=4,g-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,g-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},R=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,R){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,k=65535&I,!((j=I>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<>>=j,g-=j,r.lens[r.have++]=k;else{if(16===k){for(T=j+2;g>>=j,g-=j,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}$=r.lens[r.have-1],_=3+(3&y),y>>>=2,g-=2}else if(17===k){for(T=j+3;g>>=j)),y>>>=3,g-=3}else{for(T=j+7;g>>=j)),y>>>=7,g-=7}if(r.have+_>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;_--;)r.lens[r.have++]=$}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},R=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,R){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},R=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,R){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(h>=6&&p>=258){t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,a(t,b),d=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,u=t.input,h=t.avail_in,y=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;P=(I=r.lencode[y&(1<>>16&255,k=65535&I,!((j=I>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<>E)])>>>16&255,k=65535&I,!(E+(j=I>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<>>=E,g-=E,r.back+=E}if(y>>>=j,g-=j,r.back+=j,r.length=k,0===P){r.mode=26;break}if(32&P){r.back=-1,r.mode=12;break}if(64&P){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&P,r.mode=22;case 22:if(r.extra){for(T=r.extra;g>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;P=(I=r.distcode[y&(1<>>16&255,k=65535&I,!((j=I>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<>E)])>>>16&255,k=65535&I,!(E+(j=I>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<>>=E,g-=E,r.back+=E}if(y>>>=j,g-=j,r.back+=j,64&P){t.msg="invalid distance code",r.mode=30;break}r.offset=k,r.extra=15&P,r.mode=24;case 24:if(r.extra){for(T=r.extra;g>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break t;if(_=b-p,r.offset>_){if((_=r.offset-_)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}_>r.wnext?(_-=r.wnext,x=r.wsize-_):x=r.wnext-_,_>r.length&&(_=r.length),O=r.window}else O=f,x=d-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do{f[d++]=O[x++]}while(--_);0===r.length&&(r.mode=21);break;case 26:if(0===p)break t;f[d++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===h)break t;h--,y|=u[l++]<>>=b=w>>>24,p-=b,0===(b=w>>>16&255))k[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=y[(65535&w)+(h&(1<>>=b,p-=b),p<15&&(h+=P[n++]<>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=g[(65535&w)+(h&(1<c){t.msg="invalid distance too far back",r.mode=30;break t}if(h>>>=b,p-=b,x>(b=o-a)){if((b=x-b)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(O=0,j=d,0===l){if(O+=u-b,b<_){_-=b;do{k[o++]=d[O++]}while(--b);O=o-x,j=k}}else if(l2;)k[o++]=j[O++],k[o++]=j[O++],k[o++]=j[O++],_-=3;_&&(k[o++]=j[O++],_>1&&(k[o++]=j[O++]))}else{O=o-x;do{k[o++]=k[O++],k[o++]=k[O++],k[o++]=k[O++],_-=3}while(_>2);_&&(k[o++]=k[O++],_>1&&(k[o++]=k[O++]))}break}}break}}while(n>3,h&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n=1&&0===U[k];k--);if(E>k&&(E=k),0===k)return u[f++]=20971520,u[f++]=20971520,d.bits=1,0;for(P=1;P0&&(0===t||1!==k))return-1;for(C[1]=0,O=1;O<15;O++)C[O+1]=C[O]+U[O];for(j=0;j852||2===t&&R>592)return 1;for(;;){w=O-S,l[j]m?(b=z[D+l[j]],_=T[I+l[j]]):(b=96,_=0),h=1<>S)+(p-=h)]=w<<24|b<<16|_|0}while(0!==p);for(h=1<>=1;if(0!==h?(B&=h-1,B+=h):B=0,j++,0==--U[O]){if(O===k)break;O=e[r+l[j]]}if(O>E&&(B&g)!==y){for(0===S&&(S=E),v+=P,$=1<<(A=O-S);A+S852||2===t&&R>592)return 1;u[y=B&g]=E<<24|A<<16|v-f|0}}return 0!==B&&(u[v+B]=O-S<<24|64<<16|0),d.bits=E,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){t.exports=function(t,e){var r,n,i=t,o=e,a=i.length,s=o.length,c=!1,u=null,f=a+1,l=[],d=[],h=[],p="",y=function(t,e,r){return{x:t,y:e,k:r}},g=function(t,e){return{elem:t,t:e}},v=function(t,e,r){var n,c,u;for(n=e>r?l[t-1+f]:l[t+1+f],c=(u=Math.max(e,r))-t;c=s&&(r=i,n=a,i=o,o=r,a=s,s=n,c=!0,f=a+1),{SES_DELETE:-1,SES_COMMON:0,SES_ADD:1,editdistance:function(){return u},getlcs:function(){return p},getses:function(){return h},compose:function(){var t,e,r,n,m,w,b,_;for(t=s-a,e=a+s+3,r={},b=0;b=t+1;--_)r[_+f]=v(_,r[_-1+f]+1,r[_+1+f]);r[t+f]=v(t,r[t-1+f]+1,r[t+1+f])}while(r[t+f]!==s);for(u=t+2*n,m=l[t+f],w=[];-1!==m;)w[w.length]=new y(d[m].x,d[m].y,null),m=d[m].k;!function(t){var e,r,n;for(1,e=r=0,n=t.length-1;n>=0;--n)for(;er-e?(h[h.length]=new g(o[r],c?-1:1),++r):t[n].y-t[n].xt.endsWith(".idx"));for(const o of i){const i=`${e}/objects/pack/${o}`,a=yield Object(c.a)({fs:t,filename:i,getExternalRefDelta:n});if(a.error)throw new s.a(a.error);if(a.offsets.has(r))return!0}return!1}))).apply(this,arguments)}var p=r(7);function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function v(t){return m.apply(this,arguments)}function m(){return(m=g((function*({fs:t,gitdir:e,oid:r,format:n="content"}){const i=r=>Object(p.a)({fs:t,gitdir:e,oid:r});let a=yield o({fs:t,gitdir:e,oid:r});return a||(a=yield d({fs:t,gitdir:e,oid:r,getExternalRefDelta:i})),a}))).apply(this,arguments)}r.d(e,"a",(function(){return v}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(81),i=r(46),o=r(101),a=r(25),s=r(9),c=r(3),u=r(17);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,onSign:f,gitdir:l,ref:d,oid:h,note:p,force:y,author:g,committer:v,signingKey:m}){let w;try{w=yield c.a.resolve({gitdir:l,fs:e,ref:d})}catch(t){if(!(t instanceof s.a))throw t}let b=(yield Object(i.a)({fs:e,gitdir:l,oid:w||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;if(y)b=b.filter(t=>t.path!==h);else for(const t of b)if(t.path===h)throw new a.a("note",h);"string"==typeof p&&(p=t.from(p,"utf8"));const _=yield Object(u.a)({fs:e,gitdir:l,type:"blob",object:p,format:"content"});b.push({mode:"100644",path:h,oid:_,type:"blob"});const x=yield Object(o.a)({fs:e,gitdir:l,tree:b});return yield Object(n.a)({fs:e,cache:r,onSign:f,gitdir:l,ref:d,tree:x,parent:w&&[w],message:"Note added by 'isomorphic-git addNote'\n",author:g,committer:v,signingKey:m})}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";function n(t){return"5041434b0000000200000000"===t.slice(0,12).toString("hex")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(23),i=r(16);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({type:t,object:e,format:r="content",oid:o}){return"deflated"!==r&&("wrapped"!==r&&(e=n.a.wrap({type:t,object:e})),o=yield Object(i.a)(e)),{oid:o,object:e}}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(45),i=r(1),o=r(94);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:e,gitdir:r,oids:a,write:s}){const c=yield Object(o.a)({fs:e,gitdir:r,oids:a}),u=t.from(yield Object(n.a)(c)),f=`pack-${u.slice(-20).toString("hex")}.pack`;return s?(yield e.write(Object(i.a)(r,`objects/pack/${f}`),u),{filename:f}):{filename:f,packfile:new Uint8Array(u)}}))).apply(this,arguments)}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";r.r(e);var n=r(19),i=r(33),o=r(90),a=r(5);var s=r(29);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}class f{constructor({fs:t,gitdir:e,cache:r}){this.treePromise=n.a.acquire({fs:t,gitdir:e,cache:r},function(){var t=u((function*(t){return Object(o.a)(t.entries)}));return function(e){return t.apply(this,arguments)}}());const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}type(){var t=this;return u((function*(){return i.type(t)}))()}mode(){var t=this;return u((function*(){return i.mode(t)}))()}stat(){var t=this;return u((function*(){return i.stat(t)}))()}content(){var t=this;return u((function*(){return i.content(t)}))()}oid(){var t=this;return u((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return u((function*(){const r=t._fullpath,n=(yield e.treePromise).get(r);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${r}'`);const o=n.children.map(t=>t.fullpath);return o.sort(i.a),o}))()}type(t){return u((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return u((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return u((function*(){if(!1===t._stat){const r=(yield e.treePromise).get(t._fullpath);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);const n="tree"===r.type?{}:Object(s.a)(r.metadata);t._type="tree"===r.type?"tree":function(t){switch(t){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new a.a(`Unexpected GitTree entry mode: ${t.toString(8)}`)}(n.mode),t._mode=n.mode,"tree"===r.type?t._stat=void 0:t._stat=n}return t._stat}))()}content(t){return u((function*(){}))()}oid(t){var e=this;return u((function*(){if(!1===t._oid){const r=(yield e.treePromise).get(t._fullpath);t._oid=r.metadata.oid}return t._oid}))()}}var l=r(32);function d(){const t=Object.create(null);return Object.defineProperty(t,l.a,{value:function({fs:t,gitdir:e,cache:r}){return new f({fs:t,gitdir:e,cache:r})}}),Object.freeze(t),t}var h=r(44),p=r(67),y=r(1),g=r(16),v=r(23);function m(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function w(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){m(o,n,i,a,s,"next",t)}function s(t){m(o,n,i,a,s,"throw",t)}a(void 0)}))}}class b{constructor({fs:t,dir:e,gitdir:r,cache:n}){this.fs=t,this.cache=n,this.dir=e,this.gitdir=r;const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return w((function*(){return i.type(t)}))()}mode(){var t=this;return w((function*(){return i.mode(t)}))()}stat(){var t=this;return w((function*(){return i.stat(t)}))()}content(){var t=this;return w((function*(){return i.content(t)}))()}oid(){var t=this;return w((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return w((function*(){const r=t._fullpath,{fs:n,dir:i}=e,o=yield n.readdir(Object(y.a)(i,r));return null===o?null:o.map(t=>Object(y.a)(r,t))}))()}type(t){return w((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return w((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return w((function*(){if(!1===t._stat){const{fs:r,dir:n}=e;let i=yield r.lstat(`${n}/${t._fullpath}`);if(!i)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);let o=i.isDirectory()?"tree":"blob";"blob"!==o||i.isFile()||i.isSymbolicLink()||(o="special"),t._type=o,i=Object(s.a)(i),t._mode=i.mode,-1===i.size&&t._actualSize&&(i.size=t._actualSize),t._stat=i}return t._stat}))()}content(t){var e=this;return w((function*(){if(!1===t._content){const{fs:r,dir:n}=e;if("tree"===(yield t.type()))t._content=void 0;else{const e=yield r.read(`${n}/${t._fullpath}`);t._actualSize=e.length,t._stat&&-1===t._stat.size&&(t._stat.size=t._actualSize),t._content=new Uint8Array(e)}}return t._content}))()}oid(t){var e=this;return w((function*(){if(!1===t._oid){const{fs:r,gitdir:i,cache:o}=e;let a;yield n.a.acquire({fs:r,gitdir:i,cache:o},function(){var e=w((function*(e){const r=e.entriesMap.get(t._fullpath),n=yield t.stat();if(!r||Object(p.a)(n,r)){void 0===(yield t.content())?a=void 0:(a=yield Object(g.a)(v.a.wrap({type:"blob",object:yield t.content()})),r&&a===r.oid&&e.insert({filepath:t._fullpath,stats:n,oid:a}))}else a=r.oid}));return function(t){return e.apply(this,arguments)}}()),t._oid=a}return t._oid}))()}}function _(){const t=Object.create(null);return Object.defineProperty(t,l.a,{value:function({fs:t,dir:e,gitdir:r,cache:n}){return new b({fs:t,dir:e,gitdir:r,cache:n})}}),Object.freeze(t),t}var x=r(9),O=r(63),j=r(2),P=r(17),k=r(0);function E(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function A(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){E(o,n,i,a,s,"next",t)}function s(t){E(o,n,i,a,s,"throw",t)}a(void 0)}))}}function S(t){return $.apply(this,arguments)}function $(){return($=A((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),filepath:i}){try{Object(k.a)("fs",t),Object(k.a)("dir",e),Object(k.a)("gitdir",r),Object(k.a)("filepath",i);const o=new j.a(t),a={};yield n.a.acquire({fs:o,gitdir:r,cache:a},function(){var t=A((function*(t){yield R({dir:e,gitdir:r,fs:o,filepath:i,index:t})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.add",t}}))).apply(this,arguments)}function R(t){return B.apply(this,arguments)}function B(){return(B=A((function*({dir:t,gitdir:e,fs:r,filepath:n,index:i}){if(yield O.a.isIgnored({fs:r,dir:t,gitdir:e,filepath:n}))return;const o=yield r.lstat(Object(y.a)(t,n));if(!o)throw new x.a(n);if(o.isDirectory()){const o=(yield r.readdir(Object(y.a)(t,n))).map(o=>R({dir:t,gitdir:e,fs:r,filepath:Object(y.a)(n,o),index:i}));yield Promise.all(o)}else{const a=o.isSymbolicLink()?yield r.readlink(Object(y.a)(t,n)):yield r.read(Object(y.a)(t,n));if(null===a)throw new x.a(n);const s=yield Object(P.a)({fs:r,gitdir:e,type:"blob",object:a});i.insert({filepath:n,stats:o,oid:s})}}))).apply(this,arguments)}var T=r(148),I=r(22),U=r(13);function C(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function z(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){C(o,n,i,a,s,"next",t)}function s(t){C(o,n,i,a,s,"throw",t)}a(void 0)}))}}function D(t){return N.apply(this,arguments)}function N(){return(N=z((function*({fs:t,gitdir:e,path:r}){return(yield U.a.get({fs:t,gitdir:e})).get(r)}))).apply(this,arguments)}function M(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function F(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){M(o,n,i,a,s,"next",t)}function s(t){M(o,n,i,a,s,"throw",t)}a(void 0)}))}}function H(t){return L.apply(this,arguments)}function L(){return(L=F((function*({fs:t,gitdir:e,author:r={}}){let{name:n,email:i,timestamp:o,timezoneOffset:a}=r;if(n=n||(yield D({fs:t,gitdir:e,path:"user.name"})),i=i||(yield D({fs:t,gitdir:e,path:"user.email"}))||"",void 0!==n)return o=null!=o?o:Math.floor(Date.now()/1e3),a=null!=a?a:new Date(1e3*o).getTimezoneOffset(),{name:n,email:i,timestamp:o,timezoneOffset:a}}))).apply(this,arguments)}function Y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Y(o,n,i,a,s,"next",t)}function s(t){Y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Z(t){return W.apply(this,arguments)}function W(){return(W=G((function*({fs:t,gitdir:e,author:r,committer:n}){return n=Object.assign({},n||r),r&&(n.timestamp=n.timestamp||r.timestamp,n.timezoneOffset=n.timezoneOffset||r.timezoneOffset),n=yield H({fs:t,gitdir:e,author:n})}))).apply(this,arguments)}function q(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function K(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){q(o,n,i,a,s,"next",t)}function s(t){q(o,n,i,a,s,"throw",t)}a(void 0)}))}}function V(t){return X.apply(this,arguments)}function X(){return(X=K((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(y.a)(r,".git"),ref:i="refs/notes/commits",oid:o,note:a,force:s,author:c,committer:u,signingKey:f}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",n),Object(k.a)("oid",o),Object(k.a)("note",a),f&&Object(k.a)("onSign",e);const r=new j.a(t),l={},d=yield H({fs:r,gitdir:n,author:c});if(!d)throw new I.a("author");const h=yield Z({fs:r,gitdir:n,author:d,committer:u});if(!h)throw new I.a("committer");return yield Object(T.a)({fs:new j.a(r),cache:l,onSign:e,gitdir:n,ref:i,oid:o,note:a,force:s,author:d,committer:h,signingKey:f})}catch(t){throw t.caller="git.addNote",t}}))).apply(this,arguments)}var J=r(38),Q=r.n(J),tt=r(25),et=r(36);function rt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function nt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){rt(o,n,i,a,s,"next",t)}function s(t){rt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function it(t){return ot.apply(this,arguments)}function ot(){return(ot=nt((function*({fs:t,gitdir:e,remote:r,url:n,force:i}){if(r!==Q.a.clean(r))throw new et.a(r,Q.a.clean(r));const o=yield U.a.get({fs:t,gitdir:e});if(!i){if((yield o.getSubsections("remote")).includes(r)&&n!==(yield o.get(`remote.${r}.url`)))throw new tt.a("remote",r)}yield o.set(`remote.${r}.url`,n),yield o.set(`remote.${r}.fetch`,`+refs/heads/*:refs/remotes/${r}/*`),yield U.a.save({fs:t,gitdir:e,config:o})}))).apply(this,arguments)}function at(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function st(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){at(o,n,i,a,s,"next",t)}function s(t){at(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ct(t){return ut.apply(this,arguments)}function ut(){return(ut=st((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),remote:n,url:i,force:o=!1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("remote",n),Object(k.a)("url",i),yield it({fs:new j.a(t),gitdir:r,remote:n,url:i,force:o})}catch(t){throw t.caller="git.addRemote",t}}))).apply(this,arguments)}var ft=r(3),lt=r(15),dt=r(7);function ht(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function pt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ht(o,n,i,a,s,"next",t)}function s(t){ht(o,n,i,a,s,"throw",t)}a(void 0)}))}}function yt(t){return gt.apply(this,arguments)}function gt(){return(gt=pt((function*({fs:t,onSign:e,gitdir:r,ref:n,tagger:i,message:o=n,gpgsig:a,object:s,signingKey:c,force:u=!1}){if(n=n.startsWith("refs/tags/")?n:`refs/tags/${n}`,!u&&(yield ft.a.exists({fs:t,gitdir:r,ref:n})))throw new tt.a("tag",n);const f=yield ft.a.resolve({fs:t,gitdir:r,ref:s||"HEAD"}),{type:l}=yield Object(dt.a)({fs:t,gitdir:r,oid:f});let d=lt.a.from({object:f,type:l,tag:n.replace("refs/tags/",""),tagger:i,message:o,gpgsig:a});c&&(d=yield lt.a.sign(d,e,c));const h=yield Object(P.a)({fs:t,gitdir:r,type:"tag",object:d.toObject()});yield ft.a.writeRef({fs:t,gitdir:r,ref:n,value:h})}))).apply(this,arguments)}function vt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function mt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vt(o,n,i,a,s,"next",t)}function s(t){vt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function wt(t){return bt.apply(this,arguments)}function bt(){return(bt=mt((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(y.a)(r,".git"),ref:i,tagger:o,message:a=i,gpgsig:s,object:c,signingKey:u,force:f=!1}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",n),Object(k.a)("ref",i),u&&Object(k.a)("onSign",e);const r=new j.a(t),l=yield H({fs:r,gitdir:n,author:o});if(!l)throw new I.a("tagger");return yield yt({fs:r,onSign:e,gitdir:n,ref:i,tagger:l,message:a,gpgsig:s,object:c,signingKey:u,force:f})}catch(t){throw t.caller="git.annotatedTag",t}}))).apply(this,arguments)}function _t(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_t(o,n,i,a,s,"next",t)}function s(t){_t(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ot(t){return jt.apply(this,arguments)}function jt(){return(jt=xt((function*({fs:t,gitdir:e,ref:r,checkout:n=!1}){if(r!==Q.a.clean(r))throw new et.a(r,Q.a.clean(r));const i=`refs/heads/${r}`;if(yield ft.a.exists({fs:t,gitdir:e,ref:i}))throw new tt.a("branch",r,!1);let o;try{o=yield ft.a.resolve({fs:t,gitdir:e,ref:"HEAD"})}catch(t){}o&&(yield ft.a.writeRef({fs:t,gitdir:e,ref:i,value:o})),n&&(yield ft.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:i}))}))).apply(this,arguments)}function Pt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function kt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Pt(o,n,i,a,s,"next",t)}function s(t){Pt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Et(t){return At.apply(this,arguments)}function At(){return(At=kt((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n,checkout:i=!1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),yield Ot({fs:new j.a(t),gitdir:r,ref:n,checkout:i})}catch(t){throw t.caller="git.branch",t}}))).apply(this,arguments)}var St=r(52),$t=r(84),Rt=r(85),Bt=r(96);const Tt=(t,e)=>"."===t||null==e||0===e.length||"."===e||(e.length>=t.length?e.startsWith(t):t.startsWith(e));function It(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){It(o,n,i,a,s,"next",t)}function s(t){It(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ct(t){return zt.apply(this,arguments)}function zt(){return(zt=Ut((function*({fs:t,cache:e,onProgress:r,dir:i,gitdir:o,remote:s,ref:c,filepaths:u,noCheckout:f,noUpdateHead:l,dryRun:d,force:h}){let p;try{p=yield ft.a.resolve({fs:t,gitdir:o,ref:c})}catch(e){if("HEAD"===c)throw e;const r=`${s}/${c}`;p=yield ft.a.resolve({fs:t,gitdir:o,ref:r});const n=yield U.a.get({fs:t,gitdir:o});yield n.set(`branch.${c}.remote`,s),yield n.set(`branch.${c}.merge`,`refs/heads/${c}`),yield U.a.save({fs:t,gitdir:o,config:n}),yield ft.a.writeRef({fs:t,gitdir:o,ref:`refs/heads/${c}`,value:p})}if(!f){let s;try{s=yield Dt({fs:t,cache:e,onProgress:r,dir:i,gitdir:o,ref:c,force:h,filepaths:u})}catch(t){throw t instanceof x.a&&t.data.what===p?new Rt.a(c,p):t}const f=s.filter(([t])=>"conflict"===t).map(([t,e])=>e);if(f.length>0)throw new $t.a(f);const l=s.filter(([t])=>"error"===t).map(([t,e])=>e);if(l.length>0)throw new a.a(l.join(", "));if(d)return;let y=0;const g=s.length;yield n.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=Ut((function*(e){yield Promise.all(s.filter(([t])=>"delete"===t||"delete-index"===t).map(function(){var n=Ut((function*([n,o]){const a=`${i}/${o}`;"delete"===n&&(yield t.rm(a)),e.delete({filepath:o}),r&&(yield r({phase:"Updating workdir",loaded:++y,total:g}))}));return function(t){return n.apply(this,arguments)}}()))}));return function(t){return e.apply(this,arguments)}}()),yield n.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=Ut((function*(e){for(const[n,o]of s)if("rmdir"===n||"rmdir-index"===n){const a=`${i}/${o}`;try{"rmdir-index"===n&&e.delete({filepath:o}),yield t.rmdir(a),r&&(yield r({phase:"Updating workdir",loaded:++y,total:g}))}catch(t){if("ENOTEMPTY"!==t.code)throw t;console.log(`Did not delete ${o} because directory is not empty`)}}}));return function(t){return e.apply(this,arguments)}}()),yield Promise.all(s.filter(([t])=>"mkdir"===t||"mkdir-index"===t).map(function(){var e=Ut((function*([e,n]){const o=`${i}/${n}`;yield t.mkdir(o),r&&(yield r({phase:"Updating workdir",loaded:++y,total:g}))}));return function(t){return e.apply(this,arguments)}}())),yield n.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=Ut((function*(e){yield Promise.all(s.filter(([t])=>"create"===t||"create-index"===t||"update"===t||"mkdir-index"===t).map(function(){var n=Ut((function*([n,s,c,u,f]){const l=`${i}/${s}`;try{if("create-index"!==n&&"mkdir-index"!==n){const{object:e}=yield Object(dt.a)({fs:t,gitdir:o,oid:c});if(f&&(yield t.rm(l)),33188===u)yield t.write(l,e);else if(33261===u)yield t.write(l,e,{mode:511});else{if(40960!==u)throw new a.a(`Invalid mode 0o${u.toString(8)} detected in blob ${c}`);yield t.writelink(l,e)}}const i=yield t.lstat(l);33261===u&&(i.mode=493),"mkdir-index"===n&&(i.mode=57344),e.insert({filepath:s,stats:i,oid:c}),r&&(yield r({phase:"Updating workdir",loaded:++y,total:g}))}catch(t){console.log(t)}}));return function(t){return n.apply(this,arguments)}}()))}));return function(t){return e.apply(this,arguments)}}())}if(!l){const e=yield ft.a.expand({fs:t,gitdir:o,ref:c});e.startsWith("refs/heads")?yield ft.a.writeSymbolicRef({fs:t,gitdir:o,ref:"HEAD",value:e}):yield ft.a.writeRef({fs:t,gitdir:o,ref:"HEAD",value:p})}}))).apply(this,arguments)}function Dt(t){return Nt.apply(this,arguments)}function Nt(){return(Nt=Ut((function*({fs:t,cache:e,onProgress:r,dir:n,gitdir:i,ref:o,force:a,filepaths:s}){let c=0;return Object(St.a)({fs:t,cache:e,dir:n,gitdir:i,trees:[Object(h.a)({ref:o}),_(),d()],map:(f=Ut((function*(t,[e,n,i]){if("."!==t){if(s&&!s.some(e=>Tt(t,e)))return null;switch(r&&(yield r({phase:"Analyzing workdir",loaded:++c})),[!!i,!!e,!!n].map(Number).join("")){case"000":return;case"001":return a&&s&&s.includes(t)?["delete",t]:void 0;case"010":switch(yield e.type()){case"tree":return["mkdir",t];case"blob":return["create",t,yield e.oid(),yield e.mode()];case"commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`new entry Unhandled type ${yield e.type()}`]}case"011":switch(`${yield e.type()}-${yield n.type()}`){case"tree-tree":return;case"tree-blob":case"blob-tree":return["conflict",t];case"blob-blob":return(yield e.oid())!==(yield n.oid())?a?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]:(yield e.mode())!==(yield n.mode())?a?["update",t,yield e.oid(),yield e.mode(),!0]:["conflict",t]:["create-index",t,yield e.oid(),yield e.mode()];case"commit-tree":return;case"commit-blob":return["conflict",t];default:return["error",`new entry Unhandled type ${e.type}`]}case"100":return["delete-index",t];case"101":switch(yield i.type()){case"tree":return["rmdir",t];case"blob":return(yield i.oid())!==(yield n.oid())?a?["delete",t]:["conflict",t]:["delete",t];case"commit":return["rmdir-index",t];default:return["error",`delete entry Unhandled type ${yield i.type()}`]}case"110":case"111":switch(`${yield i.type()}-${yield e.type()}`){case"tree-tree":return;case"blob-blob":if((yield i.oid())===(yield e.oid())&&(yield i.mode())===(yield e.mode())&&!a)return;if(n){if((yield n.oid())!==(yield i.oid())&&(yield n.oid())!==(yield e.oid()))return a?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]}else if(a)return["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield i.mode())];return(yield e.mode())!==(yield i.mode())?["update",t,yield e.oid(),yield e.mode(),!0]:(yield e.oid())!==(yield i.oid())?["update",t,yield e.oid(),yield e.mode(),!1]:void 0;case"tree-blob":return["update-dir-to-blob",t,yield e.oid()];case"blob-tree":return["update-blob-to-tree",t];case"commit-commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`update entry Unhandled type ${yield i.type()}-${yield e.type()}`]}}}})),function(t,e){return f.apply(this,arguments)}),reduce:(u=Ut((function*(t,e){return e=Object(Bt.a)(e),t?t&&"rmdir"===t[0]?(e.push(t),e):(e.unshift(t),e):e})),function(t,e){return u.apply(this,arguments)})});var u,f}))).apply(this,arguments)}function Mt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ft(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mt(o,n,i,a,s,"next",t)}function s(t){Mt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ht(t){return Lt.apply(this,arguments)}function Lt(){return(Lt=Ft((function*({fs:t,onProgress:e,dir:r,gitdir:n=Object(y.a)(r,".git"),remote:i="origin",ref:o,filepaths:a,noCheckout:s=!1,noUpdateHead:c=void 0===o,dryRun:u=!1,force:f=!1}){try{Object(k.a)("fs",t),Object(k.a)("dir",r),Object(k.a)("gitdir",n);const l=o||"HEAD";return yield Ct({fs:new j.a(t),cache:{},onProgress:e,dir:r,gitdir:n,remote:i,ref:l,filepaths:a,noCheckout:s,noUpdateHead:c,dryRun:u,force:f})}catch(t){throw t.caller="git.checkout",t}}))).apply(this,arguments)}var Yt=r(102);function Gt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Gt(o,n,i,a,s,"next",t)}function s(t){Gt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Wt(t){return qt.apply(this,arguments)}function qt(){return(qt=Zt((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(y.a)(r,".git")),defaultBranch:i="master"}){if(yield t.exists(n+"/config"))return;let o=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];o=o.map(t=>n+"/"+t);for(const e of o)yield t.mkdir(e);yield t.write(n+"/config","[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n"+`\tbare = ${e}\n`+(e?"":"\tlogallrefupdates = true\n")+"\tsymlinks = false\n\tignorecase = true\n"),yield t.write(n+"/HEAD",`ref: refs/heads/${i}\n`)}))).apply(this,arguments)}function Kt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Vt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Kt(o,n,i,a,s,"next",t)}function s(t){Kt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xt(t){return Jt.apply(this,arguments)}function Jt(){return(Jt=Vt((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,dir:c,gitdir:u,url:f,corsProxy:l,ref:d,remote:h,depth:p,since:y,exclude:g,relative:v,singleBranch:m,noCheckout:w,noTags:b,headers:_}){if(yield Wt({fs:t,gitdir:u}),yield it({fs:t,gitdir:u,remote:h,url:f,force:!1}),l){const e=yield U.a.get({fs:t,gitdir:u});yield e.set("http.corsProxy",l),yield U.a.save({fs:t,gitdir:u,config:e})}const{defaultBranch:x,fetchHead:O}=yield Object(Yt.a)({fs:t,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:u,ref:d,remote:h,depth:p,since:y,exclude:g,relative:v,singleBranch:m,headers:_,tags:!b});null!==O&&(d=(d=d||x).replace("refs/heads/",""),yield Ct({fs:t,cache:e,onProgress:n,dir:c,gitdir:u,ref:d,remote:h,noCheckout:w}))}))).apply(this,arguments)}function Qt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function te(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qt(o,n,i,a,s,"next",t)}function s(t){Qt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ee(t){return re.apply(this,arguments)}function re(){return(re=te((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(y.a)(s,".git"),url:u,corsProxy:f,ref:l,remote:d="origin",depth:h,since:p,exclude:g=[],relative:v=!1,singleBranch:m=!1,noCheckout:w=!1,noTags:b=!1,headers:_={}}){try{return Object(k.a)("fs",t),Object(k.a)("http",e),Object(k.a)("gitdir",c),w||Object(k.a)("dir",s),Object(k.a)("url",u),yield Xt({fs:new j.a(t),cache:{},http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,url:u,corsProxy:f,ref:l,remote:d,depth:h,since:p,exclude:g,relative:v,singleBranch:m,noCheckout:w,noTags:b,headers:_})}catch(t){throw t.caller="git.clone",t}}))).apply(this,arguments)}var ne=r(81);function ie(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function oe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ie(o,n,i,a,s,"next",t)}function s(t){ie(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ae(t){return se.apply(this,arguments)}function se(){return(se=oe((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(y.a)(r,".git"),message:i,author:o,committer:a,signingKey:s,dryRun:c=!1,noUpdateBranch:u=!1,ref:f,parent:l,tree:d}){try{Object(k.a)("fs",t),Object(k.a)("message",i),s&&Object(k.a)("onSign",e);const r=new j.a(t),h={},p=yield H({fs:r,gitdir:n,author:o});if(!p)throw new I.a("author");const y=yield Z({fs:r,gitdir:n,author:p,committer:a});if(!y)throw new I.a("committer");return yield Object(ne.a)({fs:r,cache:h,onSign:e,gitdir:n,message:i,author:p,committer:y,signingKey:s,dryRun:c,noUpdateBranch:u,ref:f,parent:l,tree:d})}catch(t){throw t.caller="git.commit",t}}))).apply(this,arguments)}var ce=r(47);function ue(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function fe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ue(o,n,i,a,s,"next",t)}function s(t){ue(o,n,i,a,s,"throw",t)}a(void 0)}))}}function le(t){return de.apply(this,arguments)}function de(){return(de=fe((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),fullname:n=!1,test:i=!1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),yield Object(ce.a)({fs:new j.a(t),gitdir:r,fullname:n,test:i})}catch(t){throw t.caller="git.currentBranch",t}}))).apply(this,arguments)}function he(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function pe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){he(o,n,i,a,s,"next",t)}function s(t){he(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ye(t){return ge.apply(this,arguments)}function ge(){return(ge=pe((function*({fs:t,gitdir:e,ref:r}){if(!(yield ft.a.exists({fs:t,gitdir:e,ref:r})))throw new x.a(r);const n=yield ft.a.expand({fs:t,gitdir:e,ref:r});if(n===(yield Object(ce.a)({fs:t,gitdir:e,fullname:!0}))){const r=yield ft.a.resolve({fs:t,gitdir:e,ref:n});yield ft.a.writeRef({fs:t,gitdir:e,ref:"HEAD",value:r})}yield ft.a.deleteRef({fs:t,gitdir:e,ref:n})}))).apply(this,arguments)}function ve(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function me(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ve(o,n,i,a,s,"next",t)}function s(t){ve(o,n,i,a,s,"throw",t)}a(void 0)}))}}function we(t){return be.apply(this,arguments)}function be(){return(be=me((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n}){try{return Object(k.a)("fs",t),Object(k.a)("ref",n),yield ye({fs:new j.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteBranch",t}}))).apply(this,arguments)}function _e(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_e(o,n,i,a,s,"next",t)}function s(t){_e(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Oe(t){return je.apply(this,arguments)}function je(){return(je=xe((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n}){try{Object(k.a)("fs",t),Object(k.a)("ref",n),yield ft.a.deleteRef({fs:new j.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteRef",t}}))).apply(this,arguments)}function Pe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ke(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Pe(o,n,i,a,s,"next",t)}function s(t){Pe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ee(t){return Ae.apply(this,arguments)}function Ae(){return(Ae=ke((function*({fs:t,gitdir:e,remote:r}){const n=yield U.a.get({fs:t,gitdir:e});yield n.deleteSection("remote",r),yield U.a.save({fs:t,gitdir:e,config:n})}))).apply(this,arguments)}function Se(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function $e(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Se(o,n,i,a,s,"next",t)}function s(t){Se(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Re(t){return Be.apply(this,arguments)}function Be(){return(Be=$e((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),remote:n}){try{return Object(k.a)("fs",t),Object(k.a)("remote",n),yield Ee({fs:new j.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.deleteRemote",t}}))).apply(this,arguments)}function Te(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ie(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Te(o,n,i,a,s,"next",t)}function s(t){Te(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ue(t){return Ce.apply(this,arguments)}function Ce(){return(Ce=Ie((function*({fs:t,gitdir:e,ref:r}){r=r.startsWith("refs/tags/")?r:`refs/tags/${r}`,yield ft.a.deleteRef({fs:t,gitdir:e,ref:r})}))).apply(this,arguments)}function ze(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function De(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ze(o,n,i,a,s,"next",t)}function s(t){ze(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ne(t){return Me.apply(this,arguments)}function Me(){return(Me=De((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n}){try{return Object(k.a)("fs",t),Object(k.a)("ref",n),yield Ue({fs:new j.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteTag",t}}))).apply(this,arguments)}var Fe=r(83);function He(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Le(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){He(o,n,i,a,s,"next",t)}function s(t){He(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ye(t){return Ge.apply(this,arguments)}function Ge(){return(Ge=Le((function*({fs:t,gitdir:e,oid:r}){const n=r.slice(0,2);return(yield t.readdir(`${e}/objects/${n}`)).map(t=>`${n}${t}`).filter(t=>t.startsWith(r))}))).apply(this,arguments)}var Ze=r(69);function We(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){We(o,n,i,a,s,"next",t)}function s(t){We(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ke(t){return Ve.apply(this,arguments)}function Ve(){return(Ve=qe((function*({fs:t,gitdir:e,oid:r,getExternalRefDelta:n}){const i=[];let o=yield t.readdir(Object(y.a)(e,"objects/pack"));o=o.filter(t=>t.endsWith(".idx"));for(const s of o){const o=`${e}/objects/pack/${s}`,c=yield Object(Ze.a)({fs:t,filename:o,getExternalRefDelta:n});if(c.error)throw new a.a(c.error);for(const t of c.offsets.keys())t.startsWith(r)&&i.push(t)}return i}))).apply(this,arguments)}function Xe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Je(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xe(o,n,i,a,s,"next",t)}function s(t){Xe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qe(t){return tr.apply(this,arguments)}function tr(){return(tr=Je((function*({fs:t,gitdir:e,oid:r}){const n=yield Ye({fs:t,gitdir:e,oid:r}),i=yield Ke({fs:t,gitdir:e,oid:r,getExternalRefDelta:r=>Object(dt.a)({fs:t,gitdir:e,oid:r})}),o=n.concat(i);if(1===o.length)return o[0];if(o.length>1)throw new Fe.a("oids",r,o);throw new x.a(`an object matching "${r}"`)}))).apply(this,arguments)}function er(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){er(o,n,i,a,s,"next",t)}function s(t){er(o,n,i,a,s,"throw",t)}a(void 0)}))}}function nr(t){return ir.apply(this,arguments)}function ir(){return(ir=rr((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),yield Qe({fs:new j.a(t),gitdir:r,oid:n})}catch(t){throw t.caller="git.expandOid",t}}))).apply(this,arguments)}function or(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ar(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){or(o,n,i,a,s,"next",t)}function s(t){or(o,n,i,a,s,"throw",t)}a(void 0)}))}}function sr(t){return cr.apply(this,arguments)}function cr(){return(cr=ar((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),yield ft.a.expand({fs:new j.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.expandRef",t}}))).apply(this,arguments)}var ur=r(12);function fr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function lr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fr(o,n,i,a,s,"next",t)}function s(t){fr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function dr(t){return hr.apply(this,arguments)}function hr(){return(hr=lr((function*({fs:t,gitdir:e,oids:r}){const n={},i=r.length;let o=r.map((t,e)=>({index:e,oid:t}));for(;o.length;){const r=new Set;for(const t of o){const{oid:e,index:o}=t;n[e]||(n[e]=new Set),n[e].add(o),n[e].size===i&&r.add(e)}if(r.size>0)return[...r];const a=new Map;for(const r of o){const{oid:i,index:o}=r;try{const{object:r}=yield Object(dt.a)({fs:t,gitdir:e,oid:i}),s=ur.a.from(r),{parent:c}=s.parseHeaders();for(const t of c)n[t]&&n[t].has(o)||a.set(t+":"+o,{oid:t,index:o})}catch(t){}}o=Array.from(a.values())}return[]}))).apply(this,arguments)}var pr=r(86),yr=r(39),gr=r(98),vr=r(111);function mr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mr(o,n,i,a,s,"next",t)}function s(t){mr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function br(t){return _r.apply(this,arguments)}function _r(){return(_r=wr((function*({fs:t,cache:e,gitdir:r,ours:n,theirs:i,fastForwardOnly:o=!1,dryRun:a=!1,noUpdateBranch:s=!1,message:c,author:u,committer:f,signingKey:l}){void 0===n&&(n=yield Object(ce.a)({fs:t,gitdir:r,fullname:!0})),n=yield ft.a.expand({fs:t,gitdir:r,ref:n}),i=yield ft.a.expand({fs:t,gitdir:r,ref:i});const d=yield ft.a.resolve({fs:t,gitdir:r,ref:n}),h=yield ft.a.resolve({fs:t,gitdir:r,ref:i}),p=yield dr({fs:t,gitdir:r,oids:[d,h]});if(1!==p.length)throw new yr.a;const y=p[0];if(y===h)return{oid:d,alreadyMerged:!0};if(y===d)return a||s||(yield ft.a.writeRef({fs:t,gitdir:r,ref:n,value:h})),{oid:h,fastForward:!0};{if(o)throw new pr.a;const p=yield Object(vr.a)({fs:t,gitdir:r,ourOid:d,theirOid:h,baseOid:y,ourName:n,baseName:"base",theirName:i,dryRun:a});return c||(c=`Merge branch '${Object(gr.a)(i)}' into ${Object(gr.a)(n)}`),{oid:yield Object(ne.a)({fs:t,cache:e,gitdir:r,message:c,ref:n,tree:p,parent:[d,h],author:u,committer:f,signingKey:l,dryRun:a,noUpdateBranch:s}),tree:p,mergeCommit:!0}}}))).apply(this,arguments)}var xr=r(24);function Or(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Or(o,n,i,a,s,"next",t)}function s(t){Or(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pr(t){return kr.apply(this,arguments)}function kr(){return(kr=jr((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,dir:c,gitdir:u,ref:f,url:l,remote:d,remoteRef:h,fastForwardOnly:p,corsProxy:y,singleBranch:g,headers:v,author:m,committer:w,signingKey:b}){try{if(!f){const e=yield Object(ce.a)({fs:t,gitdir:u});if(!e)throw new xr.a("ref");f=e}const{fetchHead:_,fetchHeadDescription:x}=yield Object(Yt.a)({fs:t,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:u,corsProxy:y,ref:f,url:l,remote:d,remoteRef:h,singleBranch:g,headers:v});yield br({fs:t,cache:e,gitdir:u,ours:f,theirs:_,fastForwardOnly:p,message:`Merge ${x}`,author:m,committer:w,signingKey:b,dryRun:!1,noUpdateBranch:!1}),yield Ct({fs:t,cache:e,onProgress:n,dir:c,gitdir:u,ref:f,remote:d,noCheckout:!1})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}function Er(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ar(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Er(o,n,i,a,s,"next",t)}function s(t){Er(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sr(t){return $r.apply(this,arguments)}function $r(){return($r=Ar((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(y.a)(s,".git"),ref:u,url:f,remote:l,remoteRef:d,corsProxy:h,singleBranch:p,headers:g={}}){try{Object(k.a)("fs",t),Object(k.a)("http",e),Object(k.a)("gitdir",c);const y={name:"",email:"",timestamp:Date.now(),timezoneOffset:0};return yield Pr({fs:new j.a(t),cache:{},http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:u,url:f,remote:l,remoteRef:d,fastForwardOnly:!0,corsProxy:h,singleBranch:p,headers:g,author:y,committer:y})}catch(t){throw t.caller="git.fastForward",t}}))).apply(this,arguments)}function Rr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Br(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Rr(o,n,i,a,s,"next",t)}function s(t){Rr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Tr(t){return Ir.apply(this,arguments)}function Ir(){return(Ir=Br((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(y.a)(s,".git"),ref:u,remote:f,remoteRef:l,url:d,corsProxy:h,depth:p=null,since:g=null,exclude:v=[],relative:m=!1,tags:w=!1,singleBranch:b=!1,headers:_={},prune:x=!1,pruneTags:O=!1}){try{return Object(k.a)("fs",t),Object(k.a)("http",e),Object(k.a)("gitdir",c),yield Object(Yt.a)({fs:new j.a(t),http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:c,ref:u,remote:f,remoteRef:l,url:d,corsProxy:h,depth:p,since:g,exclude:v,relative:m,tags:w,singleBranch:b,headers:_,prune:x,pruneTags:O})}catch(t){throw t.caller="git.fetch",t}}))).apply(this,arguments)}function Ur(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Cr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ur(o,n,i,a,s,"next",t)}function s(t){Ur(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zr(t){return Dr.apply(this,arguments)}function Dr(){return(Dr=Cr((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oids:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oids",n),yield dr({fs:new j.a(t),gitdir:r,oids:n})}catch(t){throw t.caller="git.findMergeBase",t}}))).apply(this,arguments)}var Nr=r(26);function Mr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Fr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mr(o,n,i,a,s,"next",t)}function s(t){Mr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Hr(t){return Lr.apply(this,arguments)}function Lr(){return(Lr=Fr((function*({fs:t,filepath:e}){if(yield t.exists(Object(y.a)(e,".git")))return e;{const r=Object(Nr.a)(e);if(r===e)throw new x.a(`git root for ${e}`);return Hr({fs:t,filepath:r})}}))).apply(this,arguments)}function Yr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Gr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Yr(o,n,i,a,s,"next",t)}function s(t){Yr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zr(t){return Wr.apply(this,arguments)}function Wr(){return(Wr=Gr((function*({fs:t,filepath:e}){try{return Object(k.a)("fs",t),Object(k.a)("filepath",e),yield Hr({fs:new j.a(t),filepath:e})}catch(t){throw t.caller="git.findRoot",t}}))).apply(this,arguments)}function qr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Kr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){qr(o,n,i,a,s,"next",t)}function s(t){qr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Vr(t){return Xr.apply(this,arguments)}function Xr(){return(Xr=Kr((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),path:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("path",n),yield D({fs:new j.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfig",t}}))).apply(this,arguments)}function Jr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Qr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Jr(o,n,i,a,s,"next",t)}function s(t){Jr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function tn(t){return en.apply(this,arguments)}function en(){return(en=Qr((function*({fs:t,gitdir:e,path:r}){return(yield U.a.get({fs:t,gitdir:e})).getall(r)}))).apply(this,arguments)}function rn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){rn(o,n,i,a,s,"next",t)}function s(t){rn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function on(t){return an.apply(this,arguments)}function an(){return(an=nn((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),path:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("path",n),yield tn({fs:new j.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfigAll",t}}))).apply(this,arguments)}var sn=r(30);function cn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function un(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cn(o,n,i,a,s,"next",t)}function s(t){cn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function fn(t){return ln.apply(this,arguments)}function ln(){return(ln=un((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1}){try{Object(k.a)("http",t),Object(k.a)("url",o);const c=yield sn.a.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:1}),u={capabilities:[...c.capabilities]};for(const[t,e]of c.refs){const r=t.split("/"),n=r.pop();let i=u;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}for(const[t,e]of c.symrefs){const r=t.split("/"),n=r.pop();let i=u;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}return u}catch(t){throw t.caller="git.getRemoteInfo",t}}))).apply(this,arguments)}function dn(t,e,r,n){const i=[];for(const[o,a]of t.refs){if(e&&!o.startsWith(e))continue;if(o.endsWith("^{}")){if(n){const t=o.replace("^{}",""),e=i[i.length-1],r=e.ref===t?e:i.find(e=>e.ref===t);if(void 0===r)throw new Error("I did not expect this to happen");r.peeled=a}continue}const s={ref:o,oid:a};r&&t.symrefs.has(o)&&(s.target=t.symrefs.get(o)),i.push(s)}return i}function hn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function pn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){hn(o,n,i,a,s,"next",t)}function s(t){hn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function yn(t){return gn.apply(this,arguments)}function gn(){return(gn=pn((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2}){try{Object(k.a)("http",t),Object(k.a)("url",o);const u=yield sn.a.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(2===u.protocolVersion)return{protocolVersion:u.protocolVersion,capabilities:u.capabilities2};const f={};for(const t of u.capabilities){const[e,r]=t.split("=");f[e]=r||!0}return{protocolVersion:1,capabilities:f,refs:dn(u,void 0,!0,!0)}}catch(t){throw t.caller="git.getRemoteInfo2",t}}))).apply(this,arguments)}var vn=r(145),mn=r(51);function wn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){wn(o,n,i,a,s,"next",t)}function s(t){wn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _n(t){return xn.apply(this,arguments)}function xn(){return(xn=bn((function*({fs:t,onProgress:e,dir:r,gitdir:n,filepath:i}){try{i=Object(y.a)(r,i);const o=yield t.read(i),a=e=>Object(dt.a)({fs:t,gitdir:n,oid:e}),s=yield mn.a.fromPack({pack:o,getExternalRefDelta:a,onProgress:e});return yield t.write(i.replace(/\.pack$/,".idx"),yield s.toBuffer()),{oids:[...s.hashes]}}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function On(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){On(o,n,i,a,s,"next",t)}function s(t){On(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pn(t){return kn.apply(this,arguments)}function kn(){return(kn=jn((function*({fs:t,onProgress:e,dir:r,gitdir:n=Object(y.a)(r,".git"),filepath:i}){try{return Object(k.a)("fs",t),Object(k.a)("dir",r),Object(k.a)("gitdir",r),Object(k.a)("filepath",i),yield _n({fs:new j.a(t),onProgress:e,dir:r,gitdir:n,filepath:i})}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function En(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function An(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){En(o,n,i,a,s,"next",t)}function s(t){En(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sn(t){return $n.apply(this,arguments)}function $n(){return($n=An((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(y.a)(r,".git")),defaultBranch:i="master"}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",n),e||Object(k.a)("dir",r),yield Wt({fs:new j.a(t),bare:e,dir:r,gitdir:n,defaultBranch:i})}catch(t){throw t.caller="git.init",t}}))).apply(this,arguments)}var Rn=r(88),Bn=r(14),Tn=r(37);function In(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Un(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){In(o,n,i,a,s,"next",t)}function s(t){In(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Cn(t){return zn.apply(this,arguments)}function zn(){return(zn=Un((function*({fs:t,gitdir:e,oid:r,ancestor:n,depth:i}){const o=yield Tn.a.read({fs:t,gitdir:e});if(!r)throw new xr.a("oid");if(!n)throw new xr.a("ancestor");if(r===n)return!1;const a=[r],s=new Set;let c=0;for(;a.length;){if(c++===i)throw new Rn.a(i);const r=a.shift(),{type:u,object:f}=yield Object(dt.a)({fs:t,gitdir:e,oid:r});if("commit"!==u)throw new Bn.a(r,u,"commit");const l=ur.a.from(f).parse();for(const t of l.parent)if(t===n)return!0;if(!o.has(r))for(const t of l.parent)s.has(t)||(a.push(t),s.add(t))}return!1}))).apply(this,arguments)}function Dn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Dn(o,n,i,a,s,"next",t)}function s(t){Dn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Mn(t){return Fn.apply(this,arguments)}function Fn(){return(Fn=Nn((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n,ancestor:i,depth:o=-1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),Object(k.a)("ancestor",i),yield Cn({fs:new j.a(t),gitdir:r,oid:n,ancestor:i,depth:o})}catch(t){throw t.caller="git.isDescendent",t}}))).apply(this,arguments)}function Hn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ln(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Hn(o,n,i,a,s,"next",t)}function s(t){Hn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Yn(t){return Gn.apply(this,arguments)}function Gn(){return(Gn=Ln((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),remote:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),ft.a.listBranches({fs:new j.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.listBranches",t}}))).apply(this,arguments)}var Zn=r(46);function Wn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wn(o,n,i,a,s,"next",t)}function s(t){Wn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Kn(t){return Vn.apply(this,arguments)}function Vn(){return(Vn=qn((function*({fs:t,gitdir:e,ref:r,cache:i}){if(r){const n=yield ft.a.resolve({gitdir:e,fs:t,ref:r}),i=[];return yield Xn({fs:t,gitdir:e,oid:n,filenames:i,prefix:""}),i}return n.a.acquire({fs:t,gitdir:e,cache:i},function(){var t=qn((function*(t){return t.entries.map(t=>t.path)}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}function Xn(t){return Jn.apply(this,arguments)}function Jn(){return(Jn=qn((function*({fs:t,gitdir:e,oid:r,filenames:n,prefix:i}){const{tree:o}=yield Object(Zn.a)({fs:t,gitdir:e,oid:r});for(const r of o)"tree"===r.type?yield Xn({fs:t,gitdir:e,oid:r.oid,filenames:n,prefix:Object(y.a)(i,r.path)}):n.push(Object(y.a)(i,r.path))}))).apply(this,arguments)}function Qn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ti(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qn(o,n,i,a,s,"next",t)}function s(t){Qn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ei(t){return ri.apply(this,arguments)}function ri(){return(ri=ti((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),yield Kn({fs:new j.a(t),cache:{},gitdir:r,ref:n})}catch(t){throw t.caller="git.listFiles",t}}))).apply(this,arguments)}function ni(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ii(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ni(o,n,i,a,s,"next",t)}function s(t){ni(o,n,i,a,s,"throw",t)}a(void 0)}))}}function oi(t){return ai.apply(this,arguments)}function ai(){return(ai=ii((function*({fs:t,gitdir:e,ref:r}){let n;try{n=yield ft.a.resolve({gitdir:e,fs:t,ref:r})}catch(t){if(t instanceof x.a)return[]}return(yield Object(Zn.a)({fs:t,gitdir:e,oid:n})).tree.map(t=>({target:t.path,note:t.oid}))}))).apply(this,arguments)}function si(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ci(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){si(o,n,i,a,s,"next",t)}function s(t){si(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ui(t){return fi.apply(this,arguments)}function fi(){return(fi=ci((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n="refs/notes/commits"}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),yield oi({fs:new j.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.listNotes",t}}))).apply(this,arguments)}function li(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function di(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){li(o,n,i,a,s,"next",t)}function s(t){li(o,n,i,a,s,"throw",t)}a(void 0)}))}}function hi(t){return pi.apply(this,arguments)}function pi(){return(pi=di((function*({fs:t,gitdir:e}){const r=yield U.a.get({fs:t,gitdir:e}),n=yield r.getSubsections("remote");return Promise.all(n.map(function(){var t=di((function*(t){return{remote:t,url:yield r.get(`remote.${t}.url`)}}));return function(e){return t.apply(this,arguments)}}()))}))).apply(this,arguments)}function yi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function gi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){yi(o,n,i,a,s,"next",t)}function s(t){yi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function vi(t){return mi.apply(this,arguments)}function mi(){return(mi=gi((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git")}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),yield hi({fs:new j.a(t),gitdir:r})}catch(t){throw t.caller="git.listRemotes",t}}))).apply(this,arguments)}var wi=r(8);function bi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function _i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){bi(o,n,i,a,s,"next",t)}function s(t){bi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function xi(t){return Oi.apply(this,arguments)}function Oi(){return(Oi=_i((function*(t){const e=wi.a.streamReader(t),r=[];let n;for(;n=yield e(),!0!==n;){if(null===n)continue;n=n.toString("utf8").replace(/\n$/,"");const[t,e,...i]=n.split(" "),o={ref:e,oid:t};for(const t of i){const[e,r]=t.split(":");"symref-target"===e?o.target=r:"peeled"===e&&(o.peeled=r)}r.push(o)}return r}))).apply(this,arguments)}var ji=r(40);function Pi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ki(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Pi(o,n,i,a,s,"next",t)}function s(t){Pi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ei(t){return Ai.apply(this,arguments)}function Ai(){return(Ai=ki((function*({prefix:t,symrefs:e,peelTags:r}){const n=[];return n.push(wi.a.encode("command=ls-refs\n")),n.push(wi.a.encode(`agent=${ji.a.agent}\n`)),(r||e||t)&&n.push(wi.a.delim()),r&&n.push(wi.a.encode("peel")),e&&n.push(wi.a.encode("symrefs")),t&&n.push(wi.a.encode(`ref-prefix ${t}`)),n.push(wi.a.flush()),n}))).apply(this,arguments)}function Si(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function $i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Si(o,n,i,a,s,"next",t)}function s(t){Si(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ri(t){return Bi.apply(this,arguments)}function Bi(){return(Bi=$i((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2,prefix:u,symrefs:f,peelTags:l}){try{Object(k.a)("http",t),Object(k.a)("url",o);const d=yield sn.a.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(1===d.protocolVersion)return dn(d,u,f,l);const h=yield Ei({prefix:u,symrefs:f,peelTags:l});return xi((yield sn.a.connect({http:t,auth:d.auth,headers:a,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,body:h})).body)}catch(t){throw t.caller="git.listServerRefs",t}}))).apply(this,arguments)}function Ti(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ii(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ti(o,n,i,a,s,"next",t)}function s(t){Ti(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ui(t){return Ci.apply(this,arguments)}function Ci(){return(Ci=Ii((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git")}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),ft.a.listTags({fs:new j.a(t),gitdir:r})}catch(t){throw t.caller="git.listTags",t}}))).apply(this,arguments)}function zi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Di(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){zi(o,n,i,a,s,"next",t)}function s(t){zi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ni(t){return Mi.apply(this,arguments)}function Mi(){return(Mi=Di((function*({fs:t,gitdir:e,oid:r}){const{type:n,object:i}=yield Object(dt.a)({fs:t,gitdir:e,oid:r});if("tag"===n)return Ni({fs:t,gitdir:e,oid:r=lt.a.from(i).parse().object});if("commit"!==n)throw new Bn.a(r,n,"commit");return{commit:ur.a.from(i),oid:r}}))).apply(this,arguments)}function Fi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Hi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fi(o,n,i,a,s,"next",t)}function s(t){Fi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Li(t){return Yi.apply(this,arguments)}function Yi(){return(Yi=Hi((function*({fs:t,gitdir:e,oid:r}){const{commit:n,oid:i}=yield Ni({fs:t,gitdir:e,oid:r});return{oid:i,commit:n.parse(),payload:n.withoutSignature()}}))).apply(this,arguments)}function Gi(t,e){return t.committer.timestamp-e.committer.timestamp}function Zi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Wi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Zi(o,n,i,a,s,"next",t)}function s(t){Zi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function qi(t){return Ki.apply(this,arguments)}function Ki(){return(Ki=Wi((function*({fs:t,gitdir:e,ref:r,depth:n,since:i}){const o=void 0===i?void 0:Math.floor(i.valueOf()/1e3),a=[],s=yield Tn.a.read({fs:t,gitdir:e}),c=yield ft.a.resolve({fs:t,gitdir:e,ref:r}),u=[yield Li({fs:t,gitdir:e,oid:c})];for(;;){const r=u.pop();if(void 0!==o&&r.commit.committer.timestamp<=o)break;if(a.push(r),void 0!==n&&a.length===n)break;if(!s.has(r.oid))for(const n of r.commit.parent){const r=yield Li({fs:t,gitdir:e,oid:n});u.map(t=>t.oid).includes(r.oid)||u.push(r)}if(0===u.length)break;u.sort((t,e)=>Gi(t.commit,e.commit))}return a}))).apply(this,arguments)}function Vi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Xi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Vi(o,n,i,a,s,"next",t)}function s(t){Vi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ji(t){return Qi.apply(this,arguments)}function Qi(){return(Qi=Xi((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n="HEAD",depth:i,since:o}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),yield qi({fs:new j.a(t),gitdir:r,ref:n,depth:i,since:o})}catch(t){throw t.caller="git.log",t}}))).apply(this,arguments)}function to(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function eo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){to(o,n,i,a,s,"next",t)}function s(t){to(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ro(t){return no.apply(this,arguments)}function no(){return(no=eo((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(y.a)(r,".git"),ours:i,theirs:o,fastForwardOnly:a=!1,dryRun:s=!1,noUpdateBranch:c=!1,message:u,author:f,committer:l,signingKey:d}){try{Object(k.a)("fs",t),d&&Object(k.a)("onSign",e);const r=new j.a(t),h={},p=yield H({fs:r,gitdir:n,author:f});if(!p&&!a)throw new I.a("author");const y=yield Z({fs:r,gitdir:n,author:p,committer:l});if(!y&&!a)throw new I.a("committer");return yield br({fs:r,cache:h,gitdir:n,ours:i,theirs:o,fastForwardOnly:a,dryRun:s,noUpdateBranch:c,message:u,author:p,committer:y,signingKey:d})}catch(t){throw t.caller="git.merge",t}}))).apply(this,arguments)}var io=r(151);function oo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ao(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){oo(o,n,i,a,s,"next",t)}function s(t){oo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function so(t){return co.apply(this,arguments)}function co(){return(co=ao((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oids:n,write:i=!1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oids",n),yield Object(io.a)({fs:new j.a(t),gitdir:r,oids:n,write:i})}catch(t){throw t.caller="git.packObjects",t}}))).apply(this,arguments)}function uo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function fo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){uo(o,n,i,a,s,"next",t)}function s(t){uo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function lo(t){return ho.apply(this,arguments)}function ho(){return(ho=fo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(y.a)(s,".git"),ref:u,url:f,remote:l,remoteRef:d,fastForwardOnly:h=!1,corsProxy:p,singleBranch:g,headers:v={},author:m,committer:w,signingKey:b}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",c);const y=new j.a(t),_=yield H({fs:y,gitdir:c,author:m});if(!_)throw new I.a("author");const x=yield Z({fs:y,gitdir:c,author:_,committer:w});if(!x)throw new I.a("committer");return yield Pr({fs:y,cache:{},http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:u,url:f,remote:l,remoteRef:d,fastForwardOnly:h,corsProxy:p,singleBranch:g,headers:v,author:_,committer:x,signingKey:b})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}var po=r(112),yo=r(97),go=r(94),vo=r(87),mo=r(79),wo=r(95),bo=r(64),_o=r(126),xo=r(34),Oo=r(127),jo=r(114),Po=r(113);function ko(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Eo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ko(o,n,i,a,s,"next",t)}function s(t){ko(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ao(t){return So.apply(this,arguments)}function So(){return(So=Eo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:s,ref:c,remoteRef:u,remote:f,url:l,force:d=!1,delete:h=!1,corsProxy:p,headers:y={}}){const g=c||(yield Object(ce.a)({fs:t,gitdir:s}));if(void 0===g)throw new xr.a("ref");const v=yield U.a.get({fs:t,gitdir:s});f=f||(yield v.get(`branch.${g}.pushRemote`))||(yield v.get("remote.pushDefault"))||(yield v.get(`branch.${g}.remote`))||"origin";const m=l||(yield v.get(`remote.${f}.pushurl`))||(yield v.get(`remote.${f}.url`));if(void 0===m)throw new xr.a("remote OR url");const w=u||(yield v.get(`branch.${g}.merge`));if(void 0===m)throw new xr.a("remoteRef");void 0===p&&(p=yield v.get("http.corsProxy"));const b=yield ft.a.expand({fs:t,gitdir:s,ref:g}),_=h?"0000000000000000000000000000000000000000":yield ft.a.resolve({fs:t,gitdir:s,ref:b}),O=wo.a.getRemoteHelperFor({url:m}),j=yield O.discover({http:e,onAuth:i,onAuthSuccess:o,onAuthFailure:a,corsProxy:p,service:"git-receive-pack",url:m,headers:y}),P=j.auth;let k;if(w)try{k=yield ft.a.expandAgainstMap({ref:w,map:j.refs})}catch(t){if(!(t instanceof x.a))throw t;k=w.startsWith("refs/")?w:`refs/heads/${w}`}else k=b;const E=j.refs.get(k)||"0000000000000000000000000000000000000000",A=!j.capabilities.has("no-thin");let S=new Set;if(!h){const e=[...j.refs.values()];let r=new Set;if("0000000000000000000000000000000000000000"!==E){const n=yield dr({fs:t,gitdir:s,oids:[_,E]});for(const t of n)e.push(t);A&&(r=yield Object(yo.a)({fs:t,gitdir:s,oids:n}))}if(!e.includes(_)){const r=yield Object(po.a)({fs:t,gitdir:s,start:[_],finish:e});S=yield Object(yo.a)({fs:t,gitdir:s,oids:r})}if(A){try{const e=yield ft.a.resolve({fs:t,gitdir:s,ref:`refs/remotes/${f}/HEAD`,depth:2}),{oid:n}=yield ft.a.resolveAgainstMap({ref:e.replace(`refs/remotes/${f}/`,""),fullref:e,map:j.refs}),i=[n];for(const e of yield Object(yo.a)({fs:t,gitdir:s,oids:i}))r.add(e)}catch(t){}for(const t of r)S.delete(t)}if(!d){if(b.startsWith("refs/tags")&&"0000000000000000000000000000000000000000"!==E)throw new mo.a("tag-exists");if("0000000000000000000000000000000000000000"!==_&&"0000000000000000000000000000000000000000"!==E&&!(yield Cn({fs:t,gitdir:s,oid:_,ancestor:E,depth:-1})))throw new mo.a("not-fast-forward")}}const $=Object(_o.a)([...j.capabilities],["report-status","side-band-64k",`agent=${ji.a.agent}`]),R=yield Object(Po.a)({capabilities:$,triplets:[{oldoid:E,oid:_,fullRef:k}]}),B=h?[]:yield Object(go.a)({fs:t,gitdir:s,oids:[...S]}),T=yield O.connect({http:e,onProgress:r,corsProxy:p,service:"git-receive-pack",url:m,auth:P,headers:y,body:[...R,...B]}),{packfile:I,progress:C}=yield bo.a.demux(T.body);if(n){const t=Object(Oo.a)(C);Object(xo.a)(t,function(){var t=Eo((function*(t){yield n(t)}));return function(e){return t.apply(this,arguments)}}())}const z=yield Object(jo.a)(I);if(T.headers&&(z.headers=T.headers),f&&z.ok&&z.refs[k].ok){const e=`refs/remotes/${f}/${k.replace("refs/heads","")}`;h?yield ft.a.deleteRef({fs:t,gitdir:s,ref:e}):yield ft.a.writeRef({fs:t,gitdir:s,ref:e,value:_})}if(z.ok&&Object.values(z.refs).every(t=>t.ok))return z;{const t=Object.entries(z.refs).filter(([t,e])=>!e.ok).map(([t,e])=>`\n - ${t}: ${e.error}`).join("");throw new vo.a(t,z)}}))).apply(this,arguments)}function $o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ro(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$o(o,n,i,a,s,"next",t)}function s(t){$o(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Bo(t){return To.apply(this,arguments)}function To(){return(To=Ro((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(y.a)(s,".git"),ref:u,remoteRef:f,remote:l="origin",url:d,force:h=!1,delete:p=!1,corsProxy:g,headers:v={}}){try{return Object(k.a)("fs",t),Object(k.a)("http",e),Object(k.a)("gitdir",c),yield Ao({fs:new j.a(t),http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:c,ref:u,remoteRef:f,remote:l,url:d,force:h,delete:p,corsProxy:g,headers:v})}catch(t){throw t.caller="git.push",t}}))).apply(this,arguments)}function Io(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Uo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Io(o,n,i,a,s,"next",t)}function s(t){Io(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Co(t){return zo.apply(this,arguments)}function zo(){return(zo=Uo((function*({fs:t,gitdir:e,oid:r}){const{type:n,object:i}=yield Object(dt.a)({fs:t,gitdir:e,oid:r});if("tag"===n)return Co({fs:t,gitdir:e,oid:r=lt.a.from(i).parse().object});if("blob"!==n)throw new Bn.a(r,n,"blob");return{oid:r,blob:new Uint8Array(i)}}))).apply(this,arguments)}var Do=r(80);function No(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){No(o,n,i,a,s,"next",t)}function s(t){No(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Fo(t){return Ho.apply(this,arguments)}function Ho(){return(Ho=Mo((function*({fs:t,gitdir:e,oid:r,filepath:n}){return void 0!==n&&(r=yield Object(Do.a)({fs:t,gitdir:e,oid:r,filepath:n})),yield Co({fs:t,gitdir:e,oid:r})}))).apply(this,arguments)}function Lo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Yo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Lo(o,n,i,a,s,"next",t)}function s(t){Lo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Go(t){return Zo.apply(this,arguments)}function Zo(){return(Zo=Yo((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n,filepath:i}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),yield Fo({fs:new j.a(t),gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readBlob",t}}))).apply(this,arguments)}function Wo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wo(o,n,i,a,s,"next",t)}function s(t){Wo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ko(t){return Vo.apply(this,arguments)}function Vo(){return(Vo=qo((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),yield Li({fs:new j.a(t),gitdir:r,oid:n})}catch(t){throw t.caller="git.readCommit",t}}))).apply(this,arguments)}function Xo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Jo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xo(o,n,i,a,s,"next",t)}function s(t){Xo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qo(t){return ta.apply(this,arguments)}function ta(){return(ta=Jo((function*({fs:t,gitdir:e,ref:r="refs/notes/commits",oid:n}){const i=yield ft.a.resolve({gitdir:e,fs:t,ref:r}),{blob:o}=yield Fo({fs:t,gitdir:e,oid:i,filepath:n});return o}))).apply(this,arguments)}function ea(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ra(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ea(o,n,i,a,s,"next",t)}function s(t){ea(o,n,i,a,s,"throw",t)}a(void 0)}))}}function na(t){return ia.apply(this,arguments)}function ia(){return(ia=ra((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n="refs/notes/commits",oid:i}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),Object(k.a)("oid",i),yield Qo({fs:new j.a(t),gitdir:r,ref:n,oid:i})}catch(t){throw t.caller="git.readNote",t}}))).apply(this,arguments)}var oa=r(11);function aa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function sa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){aa(o,n,i,a,s,"next",t)}function s(t){aa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ca(t){return ua.apply(this,arguments)}function ua(){return(ua=sa((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n,format:i="parsed",filepath:o,encoding:a}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n);const e=new j.a(t);void 0!==o&&(n=yield Object(Do.a)({fs:e,gitdir:r,oid:n,filepath:o}));const s="parsed"===i?"content":i,c=yield Object(dt.a)({fs:e,gitdir:r,oid:n,format:s});if(c.oid=n,"parsed"===i)switch(c.format="parsed",c.type){case"commit":c.object=ur.a.from(c.object).parse();break;case"tree":c.object=oa.a.from(c.object).entries();break;case"blob":a?c.object=c.object.toString(a):(c.object=new Uint8Array(c.object),c.format="content");break;case"tag":c.object=lt.a.from(c.object).parse();break;default:throw new Bn.a(c.oid,c.type,"blob|commit|tag|tree")}else"deflated"!==c.format&&"wrapped"!==c.format||(c.type=c.format);return c}catch(t){throw t.caller="git.readObject",t}}))).apply(this,arguments)}function fa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function la(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fa(o,n,i,a,s,"next",t)}function s(t){fa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function da(t){return ha.apply(this,arguments)}function ha(){return(ha=la((function*({fs:t,gitdir:e,oid:r}){const{type:n,object:i}=yield Object(dt.a)({fs:t,gitdir:e,oid:r,format:"content"});if("tag"!==n)throw new Bn.a(r,n,"tag");const o=lt.a.from(i);return{oid:r,tag:o.parse(),payload:o.payload()}}))).apply(this,arguments)}function pa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ya(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pa(o,n,i,a,s,"next",t)}function s(t){pa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ga(t){return va.apply(this,arguments)}function va(){return(va=ya((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),yield da({fs:new j.a(t),gitdir:r,oid:n})}catch(t){throw t.caller="git.readTag",t}}))).apply(this,arguments)}function ma(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ma(o,n,i,a,s,"next",t)}function s(t){ma(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ba(t){return _a.apply(this,arguments)}function _a(){return(_a=wa((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),oid:n,filepath:i}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("oid",n),yield Object(Zn.a)({fs:new j.a(t),gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readTree",t}}))).apply(this,arguments)}function xa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Oa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xa(o,n,i,a,s,"next",t)}function s(t){xa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ja(t){return Pa.apply(this,arguments)}function Pa(){return(Pa=Oa((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),filepath:i}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("filepath",i);const e={};yield n.a.acquire({fs:new j.a(t),gitdir:r,cache:e},function(){var t=Oa((function*(t){t.delete({filepath:i})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.remove",t}}))).apply(this,arguments)}var ka=r(101);function Ea(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Aa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ea(o,n,i,a,s,"next",t)}function s(t){Ea(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sa(t){return $a.apply(this,arguments)}function $a(){return($a=Aa((function*({fs:t,cache:e,onSign:r,gitdir:n,ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c}){let u;try{u=yield ft.a.resolve({gitdir:n,fs:t,ref:i})}catch(t){if(!(t instanceof x.a))throw t}let f=(yield Object(Zn.a)({fs:t,gitdir:n,oid:u||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;f=f.filter(t=>t.path!==o);const l=yield Object(ka.a)({fs:t,gitdir:n,tree:f});return yield Object(ne.a)({fs:t,cache:e,onSign:r,gitdir:n,ref:i,tree:l,parent:u&&[u],message:"Note removed by 'isomorphic-git removeNote'\n",author:a,committer:s,signingKey:c})}))).apply(this,arguments)}function Ra(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ba(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ra(o,n,i,a,s,"next",t)}function s(t){Ra(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ta(t){return Ia.apply(this,arguments)}function Ia(){return(Ia=Ba((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(y.a)(r,".git"),ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",n),Object(k.a)("oid",o);const r=new j.a(t),u={},f=yield H({fs:r,gitdir:n,author:a});if(!f)throw new I.a("author");const l=yield Z({fs:r,gitdir:n,author:f,committer:s});if(!l)throw new I.a("committer");return yield Sa({fs:r,cache:u,onSign:e,gitdir:n,ref:i,oid:o,author:f,committer:l,signingKey:c})}catch(t){throw t.caller="git.removeNote",t}}))).apply(this,arguments)}function Ua(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ca(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ua(o,n,i,a,s,"next",t)}function s(t){Ua(o,n,i,a,s,"throw",t)}a(void 0)}))}}function za(t){return Da.apply(this,arguments)}function Da(){return(Da=Ca((function*({fs:t,gitdir:e,oldref:r,ref:n,checkout:i=!1}){if(n!==Q.a.clean(n))throw new et.a(n,Q.a.clean(n));if(r!==Q.a.clean(r))throw new et.a(r,Q.a.clean(r));const o=`refs/heads/${r}`,a=`refs/heads/${n}`;if(yield ft.a.exists({fs:t,gitdir:e,ref:a}))throw new tt.a("branch",n,!1);const s=yield ft.a.resolve({fs:t,gitdir:e,ref:o,depth:1});yield ft.a.writeRef({fs:t,gitdir:e,ref:a,value:s}),yield ft.a.deleteRef({fs:t,gitdir:e,ref:o}),i&&(yield ft.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:a}))}))).apply(this,arguments)}function Na(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ma(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Na(o,n,i,a,s,"next",t)}function s(t){Na(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Fa(t){return Ha.apply(this,arguments)}function Ha(){return(Ha=Ma((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n,oldref:i,checkout:o=!1}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),Object(k.a)("oldref",i),yield za({fs:new j.a(t),gitdir:r,ref:n,oldref:i,checkout:o})}catch(t){throw t.caller="git.renameBranch",t}}))).apply(this,arguments)}function La(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ya(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){La(o,n,i,a,s,"next",t)}function s(t){La(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ga(t){return Za.apply(this,arguments)}function Za(){return(Za=Ya((function*({gitdir:t,type:e,object:r}){return Object(g.a)(v.a.wrap({type:e,object:r}))}))).apply(this,arguments)}function Wa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wa(o,n,i,a,s,"next",t)}function s(t){Wa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ka(t){return Va.apply(this,arguments)}function Va(){return(Va=qa((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),filepath:i,ref:o="HEAD"}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("filepath",i),Object(k.a)("ref",o);const a=new j.a(t),s={};let c,u=yield ft.a.resolve({fs:a,gitdir:r,ref:o});try{u=yield Object(Do.a)({fs:a,gitdir:r,oid:u,filepath:i})}catch(t){u=null}let f={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:0,uid:0,gid:0,size:0};const l=e&&(yield a.read(Object(y.a)(e,i)));l&&(c=yield Ga({gitdir:r,type:"blob",object:l}),u===c&&(f=yield a.lstat(Object(y.a)(e,i)))),yield n.a.acquire({fs:a,gitdir:r,cache:s},function(){var t=qa((function*(t){t.delete({filepath:i}),u&&t.insert({filepath:i,stats:f,oid:u})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.reset",t}}))).apply(this,arguments)}function Xa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ja(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xa(o,n,i,a,s,"next",t)}function s(t){Xa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qa(t){return ts.apply(this,arguments)}function ts(){return(ts=Ja((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n,depth:i}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),yield ft.a.resolve({fs:new j.a(t),gitdir:r,ref:n,depth:i})}catch(t){throw t.caller="git.resolveRef",t}}))).apply(this,arguments)}function es(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function rs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){es(o,n,i,a,s,"next",t)}function s(t){es(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ns(t){return is.apply(this,arguments)}function is(){return(is=rs((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),path:n,value:i,append:o=!1}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("path",n);const e=new j.a(t),a=yield U.a.get({fs:e,gitdir:r});o?yield a.append(n,i):yield a.set(n,i),yield U.a.save({fs:e,gitdir:r,config:a})}catch(t){throw t.caller="git.setConfig",t}}))).apply(this,arguments)}function os(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function as(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){os(o,n,i,a,s,"next",t)}function s(t){os(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ss(t){return cs.apply(this,arguments)}function cs(){return(cs=as((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),filepath:i}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("filepath",i);const o=new j.a(t),a={};if(yield O.a.isIgnored({fs:o,gitdir:r,dir:e,filepath:i}))return"ignored";const s=yield ls({fs:o,gitdir:r}),c=yield us({fs:o,gitdir:r,tree:s,path:i}),u=yield n.a.acquire({fs:o,gitdir:r,cache:a},function(){var t=as((function*(t){for(const e of t)if(e.path===i)return e;return null}));return function(e){return t.apply(this,arguments)}}()),f=yield o.lstat(Object(y.a)(e,i)),l=null!==c,d=null!==u,h=null!==f,g=function(){var t=as((function*(){if(d&&!Object(p.a)(u,f))return u.oid;{const t=yield o.read(Object(y.a)(e,i)),s=yield Ga({gitdir:r,type:"blob",object:t});return d&&u.oid===s&&-1!==f.size&&n.a.acquire({fs:o,gitdir:r,cache:a},function(){var t=as((function*(t){t.insert({filepath:i,stats:f,oid:s})}));return function(e){return t.apply(this,arguments)}}()),s}}));return function(){return t.apply(this,arguments)}}();if(!l&&!h&&!d)return"absent";if(!l&&!h&&d)return"*absent";if(!l&&h&&!d)return"*added";if(!l&&h&&d){return(yield g())===u.oid?"added":"*added"}if(l&&!h&&!d)return"deleted";if(l&&!h&&d)return u.oid,"*deleted";if(l&&h&&!d){return(yield g())===c?"*undeleted":"*undeletemodified"}if(l&&h&&d){const t=yield g();return t===c?t===u.oid?"unmodified":"*unmodified":t===u.oid?"modified":"*modified"}}catch(t){throw t.caller="git.status",t}}))).apply(this,arguments)}function us(t){return fs.apply(this,arguments)}function fs(){return(fs=as((function*({fs:t,gitdir:e,tree:r,path:n}){"string"==typeof n&&(n=n.split("/"));const i=n.shift();for(const o of r)if(o.path===i){if(0===n.length)return o.oid;const{type:r,object:i}=yield Object(dt.a)({fs:t,gitdir:e,oid:o.oid});if("tree"===r){return us({fs:t,gitdir:e,tree:oa.a.from(i),path:n})}if("blob"===r)throw new Bn.a(o.oid,r,"blob",n.join("/"))}return null}))).apply(this,arguments)}function ls(t){return ds.apply(this,arguments)}function ds(){return(ds=as((function*({fs:t,gitdir:e}){let r;try{r=yield ft.a.resolve({fs:t,gitdir:e,ref:"HEAD"})}catch(t){if(t instanceof x.a)return[]}const{tree:n}=yield Object(Zn.a)({fs:t,gitdir:e,oid:r});return n}))).apply(this,arguments)}function hs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ps(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){hs(o,n,i,a,s,"next",t)}function s(t){hs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ys(t){return gs.apply(this,arguments)}function gs(){return(gs=ps((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n="HEAD",filepaths:i=["."],filter:o}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n);const s=new j.a(t),c={};return yield Object(St.a)({fs:s,cache:c,dir:e,gitdir:r,trees:[Object(h.a)({ref:n}),_(),d()],map:(a=ps((function*(t,[r,n,a]){if(!r&&!a&&n&&(yield O.a.isIgnored({fs:s,dir:e,filepath:t})))return null;if(!i.some(e=>Tt(t,e)))return null;if(o&&!o(t))return;const c=r&&(yield r.type());if("tree"===c||"special"===c)return;if("commit"===c)return null;const u=n&&(yield n.type());if("tree"===u||"special"===u)return;const f=a&&(yield a.type());if("commit"===f)return null;if("tree"===f||"special"===f)return;const l=r?yield r.oid():void 0,d=a?yield a.oid():void 0;let h;r||!n||a?n&&(h=yield n.oid()):h="42";const p=[void 0,l,h,d],y=p.map(t=>p.indexOf(t));return y.shift(),[t,...y]})),function(t,e){return a.apply(this,arguments)})})}catch(t){throw t.caller="git.statusMatrix",t}var a}))).apply(this,arguments)}function vs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ms(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vs(o,n,i,a,s,"next",t)}function s(t){vs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ws(t){return bs.apply(this,arguments)}function bs(){return(bs=ms((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n,object:i,force:o=!1}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n);const e=new j.a(t);if(void 0===n)throw new xr.a("ref");n=n.startsWith("refs/tags/")?n:`refs/tags/${n}`;const a=yield ft.a.resolve({fs:e,gitdir:r,ref:i||"HEAD"});if(!o&&(yield ft.a.exists({fs:e,gitdir:r,ref:n})))throw new tt.a("tag",n);yield ft.a.writeRef({fs:e,gitdir:r,ref:n,value:a})}catch(t){throw t.caller="git.tag",t}}))).apply(this,arguments)}function _s(){try{return ji.a.version}catch(t){throw t.caller="git.version",t}}function xs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Os(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xs(o,n,i,a,s,"next",t)}function s(t){xs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function js(t){return Ps.apply(this,arguments)}function Ps(){return(Ps=Os((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),trees:n,map:i,reduce:o,iterate:a}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("trees",n),yield Object(St.a)({fs:new j.a(t),cache:{},dir:e,gitdir:r,trees:n,map:i,reduce:o,iterate:a})}catch(t){throw t.caller="git.walk",t}}))).apply(this,arguments)}function ks(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Es(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ks(o,n,i,a,s,"next",t)}function s(t){ks(o,n,i,a,s,"throw",t)}a(void 0)}))}}function As(t){return Ss.apply(this,arguments)}function Ss(){return(Ss=Es((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),blob:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("blob",n),yield Object(P.a)({fs:new j.a(t),gitdir:r,type:"blob",object:n,format:"content"})}catch(t){throw t.caller="git.writeBlob",t}}))).apply(this,arguments)}function $s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Rs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$s(o,n,i,a,s,"next",t)}function s(t){$s(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Bs(t){return Ts.apply(this,arguments)}function Ts(){return(Ts=Rs((function*({fs:t,gitdir:e,commit:r}){const n=ur.a.from(r).toObject();return yield Object(P.a)({fs:t,gitdir:e,type:"commit",object:n,format:"content"})}))).apply(this,arguments)}function Is(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Us(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Is(o,n,i,a,s,"next",t)}function s(t){Is(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Cs(t){return zs.apply(this,arguments)}function zs(){return(zs=Us((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),commit:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("commit",n),yield Bs({fs:new j.a(t),gitdir:r,commit:n})}catch(t){throw t.caller="git.writeCommit",t}}))).apply(this,arguments)}var Ds=r(146);function Ns(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ms(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ns(o,n,i,a,s,"next",t)}function s(t){Ns(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Fs(t){return Hs.apply(this,arguments)}function Hs(){return(Hs=Ms((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),ref:n,value:i,force:o=!1,symbolic:a=!1}){try{Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("ref",n),Object(k.a)("value",i);const e=new j.a(t);if(n!==Q.a.clean(n))throw new et.a(n,Q.a.clean(n));if(!o&&(yield ft.a.exists({fs:e,gitdir:r,ref:n})))throw new tt.a("ref",n);a?yield ft.a.writeSymbolicRef({fs:e,gitdir:r,ref:n,value:i}):(i=yield ft.a.resolve({fs:e,gitdir:r,ref:i}),yield ft.a.writeRef({fs:e,gitdir:r,ref:n,value:i}))}catch(t){throw t.caller="git.writeRef",t}}))).apply(this,arguments)}function Ls(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ys(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ls(o,n,i,a,s,"next",t)}function s(t){Ls(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Gs(t){return Zs.apply(this,arguments)}function Zs(){return(Zs=Ys((function*({fs:t,gitdir:e,tag:r}){const n=lt.a.from(r).toObject();return yield Object(P.a)({fs:t,gitdir:e,type:"tag",object:n,format:"content"})}))).apply(this,arguments)}function Ws(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ws(o,n,i,a,s,"next",t)}function s(t){Ws(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ks(t){return Vs.apply(this,arguments)}function Vs(){return(Vs=qs((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),tag:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("tag",n),yield Gs({fs:new j.a(t),gitdir:r,tag:n})}catch(t){throw t.caller="git.writeTag",t}}))).apply(this,arguments)}function Xs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Js(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xs(o,n,i,a,s,"next",t)}function s(t){Xs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qs(t){return tc.apply(this,arguments)}function tc(){return(tc=Js((function*({fs:t,dir:e,gitdir:r=Object(y.a)(e,".git"),tree:n}){try{return Object(k.a)("fs",t),Object(k.a)("gitdir",r),Object(k.a)("tree",n),yield Object(ka.a)({fs:new j.a(t),gitdir:r,tree:n})}catch(t){throw t.caller="git.writeTree",t}}))).apply(this,arguments)}var ec=r(77);r.d(e,"Errors",(function(){return ec})),r.d(e,"STAGE",(function(){return d})),r.d(e,"TREE",(function(){return h.a})),r.d(e,"WORKDIR",(function(){return _})),r.d(e,"add",(function(){return S})),r.d(e,"addNote",(function(){return V})),r.d(e,"addRemote",(function(){return ct})),r.d(e,"annotatedTag",(function(){return wt})),r.d(e,"branch",(function(){return Et})),r.d(e,"checkout",(function(){return Ht})),r.d(e,"clone",(function(){return ee})),r.d(e,"commit",(function(){return ae})),r.d(e,"getConfig",(function(){return Vr})),r.d(e,"getConfigAll",(function(){return on})),r.d(e,"setConfig",(function(){return ns})),r.d(e,"currentBranch",(function(){return le})),r.d(e,"deleteBranch",(function(){return we})),r.d(e,"deleteRef",(function(){return Oe})),r.d(e,"deleteRemote",(function(){return Re})),r.d(e,"deleteTag",(function(){return Ne})),r.d(e,"expandOid",(function(){return nr})),r.d(e,"expandRef",(function(){return sr})),r.d(e,"fastForward",(function(){return Sr})),r.d(e,"fetch",(function(){return Tr})),r.d(e,"findMergeBase",(function(){return zr})),r.d(e,"findRoot",(function(){return Zr})),r.d(e,"getRemoteInfo",(function(){return fn})),r.d(e,"getRemoteInfo2",(function(){return yn})),r.d(e,"hashBlob",(function(){return vn.a})),r.d(e,"indexPack",(function(){return Pn})),r.d(e,"init",(function(){return Sn})),r.d(e,"isDescendent",(function(){return Mn})),r.d(e,"listBranches",(function(){return Yn})),r.d(e,"listFiles",(function(){return ei})),r.d(e,"listNotes",(function(){return ui})),r.d(e,"listRemotes",(function(){return vi})),r.d(e,"listServerRefs",(function(){return Ri})),r.d(e,"listTags",(function(){return Ui})),r.d(e,"log",(function(){return Ji})),r.d(e,"merge",(function(){return ro})),r.d(e,"packObjects",(function(){return so})),r.d(e,"pull",(function(){return lo})),r.d(e,"push",(function(){return Bo})),r.d(e,"readBlob",(function(){return Go})),r.d(e,"readCommit",(function(){return Ko})),r.d(e,"readNote",(function(){return na})),r.d(e,"readObject",(function(){return ca})),r.d(e,"readTag",(function(){return ga})),r.d(e,"readTree",(function(){return ba})),r.d(e,"remove",(function(){return ja})),r.d(e,"removeNote",(function(){return Ta})),r.d(e,"renameBranch",(function(){return Fa})),r.d(e,"resetIndex",(function(){return Ka})),r.d(e,"resolveRef",(function(){return Qa})),r.d(e,"status",(function(){return ss})),r.d(e,"statusMatrix",(function(){return ys})),r.d(e,"tag",(function(){return ws})),r.d(e,"version",(function(){return _s})),r.d(e,"walk",(function(){return js})),r.d(e,"writeBlob",(function(){return As})),r.d(e,"writeCommit",(function(){return Cs})),r.d(e,"writeObject",(function(){return Ds.a})),r.d(e,"writeRef",(function(){return Fs})),r.d(e,"writeTag",(function(){return Ks})),r.d(e,"writeTree",(function(){return Qs}));e.default={Errors:ec,STAGE:d,TREE:h.a,WORKDIR:_,add:S,addNote:V,addRemote:ct,annotatedTag:wt,branch:Et,checkout:Ht,clone:ee,commit:ae,getConfig:Vr,getConfigAll:on,setConfig:ns,currentBranch:le,deleteBranch:we,deleteRef:Oe,deleteRemote:Re,deleteTag:Ne,expandOid:nr,expandRef:sr,fastForward:Sr,fetch:Tr,findMergeBase:zr,findRoot:Zr,getRemoteInfo:fn,getRemoteInfo2:yn,hashBlob:vn.a,indexPack:Pn,init:Sn,isDescendent:Mn,listBranches:Yn,listFiles:ei,listNotes:ui,listRemotes:vi,listServerRefs:Ri,listTags:Ui,log:Ji,merge:ro,packObjects:so,pull:lo,push:Bo,readBlob:Go,readCommit:Ko,readNote:na,readObject:ca,readTag:ga,readTree:ba,remove:ja,removeNote:Ta,renameBranch:Fa,resetIndex:Ka,resolveRef:Qa,status:ss,statusMatrix:ys,tag:ws,version:_s,walk:js,writeBlob:As,writeCommit:Cs,writeObject:Ds.a,writeRef:Fs,writeTag:Ks,writeTree:Qs}}])})); +//# sourceMappingURL=index.umd.min.js.map \ No newline at end of file diff --git a/03🕸isomorphic-git_1.7.2🕸lightning-fs.min.js b/03🕸isomorphic-git_1.7.2🕸lightning-fs.min.js new file mode 100644 index 0000000..5f12640 --- /dev/null +++ b/03🕸isomorphic-git_1.7.2🕸lightning-fs.min.js @@ -0,0 +1,2 @@ +// https://unpkg.com/@isomorphic-git/lightning-fs@4.3.0/dist/lightning-fs.min.js +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.LightningFS=e():t.LightningFS=e()}(self,function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}([function(t,e){function i(t){if(0===t.length)return".";let e=n(t);return e=e.reduce(s,[]),r(...e)}function r(...t){if(0===t.length)return"";let e=t.join("/");return e=e.replace(/\/{2,}/g,"/")}function n(t){if(0===t.length)return[];if("/"===t)return["/"];let e=t.split("/");return""===e[e.length-1]&&e.pop(),"/"===t[0]?e[0]="/":"."!==e[0]&&e.unshift("."),e}function s(t,e){if(0===t.length)return t.push(e),t;if("."===e)return t;if(".."===e){if(1===t.length){if("/"===t[0])throw new Error("Unable to normalize path - traverses above root directory");if("."===t[0])return t.push(e),t}return".."===t[t.length-1]?(t.push(".."),t):(t.pop(),t)}return t.push(e),t}t.exports={join:r,normalize:i,split:n,basename:function(t){if("/"===t)throw new Error(`Cannot get basename of "${t}"`);const e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)},dirname:function(t){const e=t.lastIndexOf("/");if(-1===e)throw new Error(`Cannot get dirname of "${t}"`);return 0===e?"/":t.slice(0,e)},resolve:function(...t){let e="";for(let n of t)e=n.startsWith("/")?n:i(r(e,n));return e}}},function(t,e){function i(t){return class extends Error{constructor(...e){super(...e),this.code=t,this.message?this.message=t+": "+this.message:this.message=t}}}const r=i("EEXIST"),n=i("ENOENT"),s=i("ENOTDIR"),o=i("ENOTEMPTY"),a=i("ETIMEDOUT");t.exports={EEXIST:r,ENOENT:n,ENOTDIR:s,ENOTEMPTY:o,ETIMEDOUT:a}},function(t,e,i){"use strict";i.r(e),i.d(e,"Store",function(){return r}),i.d(e,"get",function(){return o}),i.d(e,"set",function(){return a}),i.d(e,"update",function(){return h}),i.d(e,"del",function(){return c}),i.d(e,"clear",function(){return l}),i.d(e,"keys",function(){return u}),i.d(e,"close",function(){return d});class r{constructor(t="keyval-store",e="keyval"){this.storeName=e,this._dbName=t,this._storeName=e,this._init()}_init(){this._dbp||(this._dbp=new Promise((t,e)=>{const i=indexedDB.open(this._dbName);i.onerror=(()=>e(i.error)),i.onsuccess=(()=>t(i.result)),i.onupgradeneeded=(()=>{i.result.createObjectStore(this._storeName)})}))}_withIDBStore(t,e){return this._init(),this._dbp.then(i=>new Promise((r,n)=>{const s=i.transaction(this.storeName,t);s.oncomplete=(()=>r()),s.onabort=s.onerror=(()=>n(s.error)),e(s.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let n;function s(){return n||(n=new r),n}function o(t,e=s()){let i;return e._withIDBStore("readwrite",e=>{i=e.get(t)}).then(()=>i.result)}function a(t,e,i=s()){return i._withIDBStore("readwrite",i=>{i.put(e,t)})}function h(t,e,i=s()){return i._withIDBStore("readwrite",i=>{const r=i.get(t);r.onsuccess=(()=>{i.put(e(r.result),t)})})}function c(t,e=s()){return e._withIDBStore("readwrite",e=>{e.delete(t)})}function l(t=s()){return t._withIDBStore("readwrite",t=>{t.clear()})}function u(t=s()){const e=[];return t._withIDBStore("readwrite",t=>{(t.openKeyCursor||t.openCursor).call(t).onsuccess=function(){this.result&&(e.push(this.result.key),this.result.continue())}}).then(()=>e)}function d(t=s()){return t._close()}},function(t,e,i){const r=i(4),n=i(5);function s(t,e){"function"==typeof t&&(e=t);return[(...t)=>e(null,...t),e=r(e)]}t.exports=class{constructor(...t){this.promises=new n(...t),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this)}init(t,e){this.promises.init(t,e)}readFile(t,e,i){const[r,n]=s(e,i);this.promises.readFile(t,e).then(r).catch(n)}writeFile(t,e,i,r){const[n,o]=s(i,r);this.promises.writeFile(t,e,i).then(n).catch(o)}unlink(t,e,i){const[r,n]=s(e,i);this.promises.unlink(t,e).then(r).catch(n)}readdir(t,e,i){const[r,n]=s(e,i);this.promises.readdir(t,e).then(r).catch(n)}mkdir(t,e,i){const[r,n]=s(e,i);this.promises.mkdir(t,e).then(r).catch(n)}rmdir(t,e,i){const[r,n]=s(e,i);this.promises.rmdir(t,e).then(r).catch(n)}rename(t,e,i){const[r,n]=s(i);this.promises.rename(t,e).then(r).catch(n)}stat(t,e,i){const[r,n]=s(e,i);this.promises.stat(t).then(r).catch(n)}lstat(t,e,i){const[r,n]=s(e,i);this.promises.lstat(t).then(r).catch(n)}readlink(t,e,i){const[r,n]=s(e,i);this.promises.readlink(t).then(r).catch(n)}symlink(t,e,i){const[r,n]=s(i);this.promises.symlink(t,e).then(r).catch(n)}backFile(t,e,i){const[r,n]=s(e,i);this.promises.backFile(t,e).then(r).catch(n)}du(t,e){const[i,r]=s(e);this.promises.du(t).then(i).catch(r)}}},function(t,e){t.exports=function(t){var e,i;if("function"!=typeof t)throw new Error("expected a function but got "+t);return function(){return e?i:(e=!0,i=t.apply(this,arguments))}}},function(t,e,i){const{encode:r,decode:n}=i(6),s=i(9),o=i(10),a=i(11),{ENOENT:h,ENOTEMPTY:c,ETIMEDOUT:l}=i(1),u=i(12),d=i(13),_=i(14),p=i(15),m=i(0);i(16);function f(t,e){return void 0!==e&&"function"!=typeof e||(e={}),"string"==typeof e&&(e={encoding:e}),[t=m.normalize(t),e]}function w(t,e){return[m.normalize(t),m.normalize(e)]}t.exports=class{constructor(t,e){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,!1),this.writeFile=this._wrap(this.writeFile,!0),this.unlink=this._wrap(this.unlink,!0),this.readdir=this._wrap(this.readdir,!1),this.mkdir=this._wrap(this.mkdir,!0),this.rmdir=this._wrap(this.rmdir,!0),this.rename=this._wrap(this.rename,!0),this.stat=this._wrap(this.stat,!1),this.lstat=this._wrap(this.lstat,!1),this.readlink=this._wrap(this.readlink,!1),this.symlink=this._wrap(this.symlink,!0),this.backFile=this._wrap(this.backFile,!0),this.du=this._wrap(this.du,!1),this.saveSuperblock=s(()=>{this._saveSuperblock()},500),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,e)}async init(...t){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...t),this._initPromise}async _init(t,{wipe:e,url:i,urlauto:r,fileDbName:n=t,fileStoreName:s=t+"_files",lockDbName:o=t+"_lock",lockStoreName:h=t+"_lock",defer:c=!1}={}){await this._gracefulShutdown(),this._name=t,this._idb=new u(n,s),this._mutex=navigator.locks?new p(t):new _(o,h),this._cache=new a(t),this._opts={wipe:e,url:i},this._needsWipe=!!e,i&&(this._http=new d(i),this._urlauto=!!r),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),c||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(t=>this._gracefulShutdownResolve=t),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(t,e){return async(...i)=>{let r={name:t.name,args:i};this._operations.add(r);try{return await this._activate(),await t.apply(this,i)}finally{this._operations.delete(r),e&&this.saveSuperblock(),0===this._operations.size&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){if(this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this.__activate()),await this._activationPromise,!await this._mutex.has())throw new l}async __activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();const t=await this._idb.loadSuperblock();if(t)this._cache.activate(t);else if(this._http){const t=await this._http.loadSuperblock();this._cache.activate(t),await this._saveSuperblock()}else this._cache.activate()}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this.__deactivate()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async __deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(t){console.log(t)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}async _writeStat(t,e,i){let r=m.split(m.dirname(t)),n=r.shift();for(let t of r){n=m.join(n,t);try{this._cache.mkdir(n,{mode:511})}catch(t){}}return this._cache.writeStat(t,e,i)}async readFile(t,e){[t,e]=f(t,e);const{encoding:i}=e;if(i&&"utf8"!==i)throw new Error('Only "utf8" encoding is supported in readFile');let r=null,s=null;try{s=this._cache.stat(t),r=await this._idb.readFile(s.ino)}catch(t){if(!this._urlauto)throw t}if(!r&&this._http){let e=this._cache.lstat(t);for(;"symlink"===e.type;)t=m.resolve(m.dirname(t),e.target),e=this._cache.lstat(t);r=await this._http.readFile(t)}if(r&&(s&&s.size==r.byteLength||(s=await this._writeStat(t,r.byteLength,{mode:s?s.mode:438}),this.saveSuperblock()),"utf8"===i&&(r=n(r))),!s)throw new h(t);return r}async writeFile(t,e,i){[t,i]=f(t,i);const{mode:n,encoding:s="utf8"}=i;if("string"==typeof e){if("utf8"!==s)throw new Error('Only "utf8" encoding is supported in writeFile');e=r(e)}const o=await this._cache.writeStat(t,e.byteLength,{mode:n});return await this._idb.writeFile(o.ino,e),null}async unlink(t,e){[t,e]=f(t,e);const i=this._cache.lstat(t);return this._cache.unlink(t),"symlink"!==i.type&&await this._idb.unlink(i.ino),null}async readdir(t,e){return[t,e]=f(t,e),this._cache.readdir(t)}async mkdir(t,e){[t,e]=f(t,e);const{mode:i=511}=e;return await this._cache.mkdir(t,{mode:i}),null}async rmdir(t,e){if([t,e]=f(t,e),"/"===t)throw new c;return this._cache.rmdir(t),null}async rename(t,e){return[t,e]=w(t,e),this._cache.rename(t,e),null}async stat(t,e){[t,e]=f(t,e);const i=this._cache.stat(t);return new o(i)}async lstat(t,e){[t,e]=f(t,e);let i=this._cache.lstat(t);return new o(i)}async readlink(t,e){return[t,e]=f(t,e),this._cache.readlink(t)}async symlink(t,e){return[t,e]=w(t,e),this._cache.symlink(t,e),null}async backFile(t,e){[t,e]=f(t,e);let i=await this._http.sizeFile(t);return await this._writeStat(t,i,e),null}async du(t){return this._cache.du(t)}}},function(t,e,i){i(7),t.exports={encode:t=>(new TextEncoder).encode(t),decode:t=>(new TextDecoder).decode(t)}},function(t,e,i){(function(t){!function(t){function e(t){if("utf-8"!==(t=void 0===t?"utf-8":t))throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+t+"') is invalid.")}function i(t,e){if(e=void 0===e?{fatal:!1}:e,"utf-8"!==(t=void 0===t?"utf-8":t))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+t+"') is invalid.");if(e.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(t.TextEncoder&&t.TextDecoder)return!1;Object.defineProperty(e.prototype,"encoding",{value:"utf-8"}),e.prototype.encode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");e=0;for(var i=t.length,r=0,n=Math.max(32,i+(i>>1)+7),s=new Uint8Array(n>>3<<3);e=o){if(e=o)continue}if(r+4>s.length&&(n+=8,n=(n*=1+e/t.length*2)>>3<<3,(a=new Uint8Array(n)).set(s),s=a),0==(4294967168&o))s[r++]=o;else{if(0==(4294965248&o))s[r++]=o>>6&31|192;else if(0==(4294901760&o))s[r++]=o>>12&15|224,s[r++]=o>>6&63|128;else{if(0!=(4292870144&o))continue;s[r++]=o>>18&7|240,s[r++]=o>>12&63|128,s[r++]=o>>6&63|128}s[r++]=63&o|128}}return s.slice(0,r)},Object.defineProperty(i.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(i.prototype,"fatal",{value:!1}),Object.defineProperty(i.prototype,"ignoreBOM",{value:!1}),i.prototype.decode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");e=0;for(var i=(t=new Uint8Array(t)).length,r=[];e>>10&1023|55296),n=56320|1023&n),r.push(n)}}return String.fromCharCode.apply(null,r)},t.TextEncoder=e,t.TextDecoder=i}("undefined"!=typeof window?window:void 0!==t?t:this)}).call(this,i(8))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t,e,i){var r;return function(){if(!e)return t.apply(this,arguments);var n=this,s=arguments,o=i&&!r;return clearTimeout(r),r=setTimeout(function(){if(r=null,!o)return t.apply(n,s)},e),o?t.apply(this,arguments):void 0}}},function(t,e){t.exports=class{constructor(t){this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return"file"===this.type}isDirectory(){return"dir"===this.type}isSymbolicLink(){return"symlink"===this.type}}},function(t,e,i){const r=i(0),{EEXIST:n,ENOENT:s,ENOTDIR:o,ENOTEMPTY:a}=i(1),h=0;t.exports=class{constructor(){}_makeRoot(t=new Map){return t.set(h,{mode:511,type:"dir",size:0,ino:0,mtimeMs:Date.now()}),t}activate(t=null){this._root=null===t?new Map([["/",this._makeRoot()]]):"string"==typeof t?new Map([["/",this._makeRoot(this.parse(t))]]):t}get activated(){return!!this._root}deactivate(){this._root=void 0}size(){return this._countInodes(this._root.get("/"))-1}_countInodes(t){let e=1;for(let[i,r]of t)i!==h&&(e+=this._countInodes(r));return e}autoinc(){return this._maxInode(this._root.get("/"))+1}_maxInode(t){let e=t.get(h).ino;for(let[i,r]of t)i!==h&&(e=Math.max(e,this._maxInode(r)));return e}print(t=this._root.get("/")){let e="";const i=(t,r)=>{for(let[n,s]of t){if(0===n)continue;let t=s.get(h),o=t.mode.toString(8);e+=`${"\t".repeat(r)}${n}\t${o}`,"file"===t.type?e+=`\t${t.size}\t${t.mtimeMs}\n`:(e+="\n",i(s,r+1))}};return i(t,0),e}parse(t){let e=0;function i(t){const i=++e,r=1===t.length?"dir":"file";let[n,s,o]=t;return n=parseInt(n,8),s=s?parseInt(s):0,o=o?parseInt(o):Date.now(),new Map([[h,{mode:n,type:r,size:s,mtimeMs:o,ino:i}]])}let r=t.trim().split("\n"),n=this._makeRoot(),s=[{indent:-1,node:n},{indent:0,node:null}];for(let t of r){let e=t.match(/^\t*/)[0].length;t=t.slice(e);let[r,...n]=t.split("\t"),o=i(n);if(e<=s[s.length-1].indent)for(;e<=s[s.length-1].indent;)s.pop();s.push({indent:e,node:o}),s[s.length-2].node.set(r,o)}return n}_lookup(t,e=!0){let i=this._root,n="/",o=r.split(t);for(let a=0;a1)throw new a;let i=this._lookup(r.dirname(t)),n=r.basename(t);i.delete(n)}readdir(t){let e=this._lookup(t);if("dir"!==e.get(h).type)throw new o;return[...e.keys()].filter(t=>"string"==typeof t)}writeStat(t,e,{mode:i}){let n;try{let e=this.stat(t);null==i&&(i=e.mode),n=e.ino}catch(t){}null==i&&(i=438),null==n&&(n=this.autoinc());let s=this._lookup(r.dirname(t)),o=r.basename(t),a={mode:i,type:"file",size:e,mtimeMs:Date.now(),ino:n},c=new Map;return c.set(h,a),s.set(o,c),a}unlink(t){let e=this._lookup(r.dirname(t)),i=r.basename(t);e.delete(i)}rename(t,e){let i=r.basename(e),n=this._lookup(t);this._lookup(r.dirname(e)).set(i,n),this.unlink(t)}stat(t){return this._lookup(t).get(h)}lstat(t){return this._lookup(t,!1).get(h)}readlink(t){return this._lookup(t,!1).get(h).target}symlink(t,e){let i,n;try{let t=this.stat(e);null===n&&(n=t.mode),i=t.ino}catch(t){}null==n&&(n=40960),null==i&&(i=this.autoinc());let s=this._lookup(r.dirname(e)),o=r.basename(e),a={mode:n,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:i},c=new Map;return c.set(h,a),s.set(o,c),a}_du(t){let e=0;for(const[i,r]of t.entries())e+=i===h?r.size:this._du(r);return e}du(t){let e=this._lookup(t);return this._du(e)}}},function(t,e,i){const r=i(2);t.exports=class{constructor(t,e){this._database=t,this._storename=e,this._store=new r.Store(this._database,this._storename)}saveSuperblock(t){return r.set("!root",t,this._store)}loadSuperblock(){return r.get("!root",this._store)}readFile(t){return r.get(t,this._store)}writeFile(t,e){return r.set(t,e,this._store)}unlink(t){return r.del(t,this._store)}wipe(){return r.clear(this._store)}close(){return r.close(this._store)}}},function(t,e){t.exports=class{constructor(t){this._url=t}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(t=>t.ok?t.text():null)}async readFile(t){const e=await fetch(this._url+t);if(200===e.status)return e.arrayBuffer();throw new Error("ENOENT")}async sizeFile(t){const e=await fetch(this._url+t,{method:"HEAD"});if(200===e.status)return e.headers.get("content-length");throw new Error("ENOENT")}}},function(t,e,i){const r=i(2),n=t=>new Promise(e=>setTimeout(e,t));t.exports=class{constructor(t,e){this._id=Math.random(),this._database=t,this._storename=e,this._store=new r.Store(this._database,this._storename),this._lock=null}async has({margin:t=2e3}={}){if(this._lock&&this._lock.holder===this._id){const e=Date.now();return this._lock.expires>e+t||await this.renew()}return!1}async renew({ttl:t=5e3}={}){let e;return await r.update("lock",i=>{const r=Date.now()+t;return e=i&&i.holder===this._id,this._lock=e?{holder:this._id,expires:r}:i,this._lock},this._store),e}async acquire({ttl:t=5e3}={}){let e,i,n;if(await r.update("lock",r=>{const s=Date.now(),o=s+t;return i=r&&r.expires(e=t||r&&r.holder===this._id,i=void 0===r,n=r&&r.holder!==this._id,this._lock=e?void 0:r,this._lock),this._store),await r.close(this._store),!e&&!t){if(i)throw new Error("Mutex double-freed");if(n)throw new Error("Mutex lost ownership")}return e}}},function(t,e){t.exports=class{constructor(t){this._id=Math.random(),this._database=t,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(t=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},e=>(this._has=!!e,t(!!e),new Promise(t=>{this._release=t})))})}async wait({timeout:t=6e5}={}){return new Promise((e,i)=>{const r=new AbortController;setTimeout(()=>{r.abort(),i(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:r.signal},t=>(this._has=!!t,e(!!t),new Promise(t=>{this._release=t})))})}async release({force:t=!1}={}){this._has=!1,this._release?this._release():t&&navigator.locks.request(this._database+"_lock",{steal:!0},t=>!0)}}},function(t,e){const i="undefined"==typeof window?"worker":"main";t.exports=function(t){return performance.mark(`${t} start`),console.log(`${i}: ${t}`),console.time(`${i}: ${t}`),function(){performance.mark(`${t} end`),console.timeEnd(`${i}: ${t}`),performance.measure(`${t}`,`${t} start`,`${t} end`)}}}])}); \ No newline at end of file diff --git a/70🕸механика🕸🎬.js b/70🕸механика🕸.js similarity index 100% rename from 70🕸механика🕸🎬.js rename to 70🕸механика🕸.js diff --git a/70🕸механика🕸🎬.череда b/70🕸механика🕸.череда similarity index 100% rename from 70🕸механика🕸🎬.череда rename to 70🕸механика🕸.череда diff --git a/80🕸морда🕸🎬.js b/80🕸морда🕸.js similarity index 100% rename from 80🕸морда🕸🎬.js rename to 80🕸морда🕸.js diff --git a/80🕸морда🕸🎬.череда b/80🕸морда🕸.череда similarity index 100% rename from 80🕸морда🕸🎬.череда rename to 80🕸морда🕸.череда diff --git a/81🕸➕🕸.js b/81🕸➕🕸.js new file mode 100644 index 0000000..a0b4fdc --- /dev/null +++ b/81🕸➕🕸.js @@ -0,0 +1,83 @@ +ИмпортироватьХранилище = мир => +{ + (async() => { + + await git.clone({ + fs: мир.импортХранилища.фс, + http: мир.гитHTTP, + dir: мир.импортХранилища.директория, + url: мир.импортХранилища.хранилище, + corsProxy: мир.импортХранилища.прокси, + }); + + //мир.уведомить("склонировали хранилище"); + + })(); +}; + + +// // // // + + +ЗадатьПараметрыИмпортаХранилища = мир => +{ + const хранилище = $(`#окно-добавление-хранилища-гит-хранилище`).val(); + const прокси = $(`#окно-добавление-хранилища-гит-прокси`).val(); + const имяФС = "git_" + хранилище; + + мир.импортХранилища = { + "хранилище": хранилище, + "фс": new LightningFS(имяФС), + "директория": "/", + "прокси": прокси, + }; +}; + + +// // // // + + +ОтобразитьОкноДобавленияХранилища = мир => +{ + UIkit.modal($("#окно-добавление-хранилища")).show(); +}; + + +// // // // + + +ЗадатьПроксиИмпортаПоУмолчанию = мир => +{ + $(`#окно-добавление-хранилища-гит-прокси`).val("https://cors.isomorphic-git.org"); +}; + + +// // // // + + +СоздатьОкноДобавленияХранилища = мир => +{ + var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬ_ЭТОГО_МОДУЛЯ); + var префикс = ИМЯ_ЭТОГО_ФАЙЛА.substring(0, ИМЯ_ЭТОГО_ФАЙЛА.length - 3); + var содержимое = м.содержимое[префикс + "🙈.html"]; + $(document.body).prepend(содержимое); + + $(`#окно-добавление-хранилища-гит-учётка`).submit(function(событие) { + событие.preventDefault(); + мир.уведомить("кнопка импорта в окне добавления хранилища"); + }); +}; + + +// // // // + + +СоздатьКнопкуПлюсВШапке = мир => +{ + мир.кнопкиШапки.push({ + "🎃": "шапка-кнопка-плюс", + "💥": "кнопка плюс в шапке", + "🍲": "➕", + }); + мир.уведомить("изменили кнопки шапки"); +}; \ No newline at end of file diff --git a/81🕸➕🕸.череда b/81🕸➕🕸.череда new file mode 100644 index 0000000..9a1d8a9 --- /dev/null +++ b/81🕸➕🕸.череда @@ -0,0 +1,11 @@ +пуск амура + создать кнопку плюс в шапке + создать окно добавления хранилища + задать прокси импорта по умолчанию + +кнопка плюс в шапке + отобразить окно добавления хранилища + +кнопка импорта в окне добавления хранилища + задать параметры импорта хранилища + импортировать хранилище \ No newline at end of file diff --git a/81🕸➕🕸🎬.js b/81🕸➕🕸🎬.js deleted file mode 100644 index 660acc3..0000000 --- a/81🕸➕🕸🎬.js +++ /dev/null @@ -1,29 +0,0 @@ -ОтобразитьОкноДобавленияХранилища = мир => -{ - UIkit.modal($("#окно-добавление-хранилища")).show(); -}; - - -// // // // - - -ДобавитьОкноДобавленияХранилища = мир => -{ - var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬ_ЭТОГО_МОДУЛЯ); - var содержимое = м.содержимое["/81🕸➕🕸🙈.html"]; - $(document.body).prepend(содержимое); -}; - - -// // // // - - -ДобавитьКнопкуПлюсВШапку = мир => -{ - мир.кнопкиШапки.push({ - "🎃": "шапка-кнопка-плюс", - "💥": "шапки кнопка плюс", - "🍲": "➕", - }); - мир.уведомить("изменили кнопки шапки"); -}; \ No newline at end of file diff --git a/81🕸➕🕸🎬.череда b/81🕸➕🕸🎬.череда deleted file mode 100644 index e957221..0000000 --- a/81🕸➕🕸🎬.череда +++ /dev/null @@ -1,6 +0,0 @@ -пуск амура - добавить кнопку плюс в шапку - добавить окно добавления хранилища -шапки кнопка плюс - отобразить окно добавления хранилища - \ No newline at end of file diff --git a/81🕸➕🕸🙈.html b/81🕸➕🕸🙈.html index 65e5d0f..dd90296 100644 --- a/81🕸➕🕸🙈.html +++ b/81🕸➕🕸🙈.html @@ -2,9 +2,13 @@
-

Добавить ⚬ 添加 ⚬ Add

+

Добавить 🕸 添加 🕸 Add

-
+
+ + + +
\ No newline at end of file