diff options
Diffstat (limited to 'GithubPicker.0820539144ef5245d1e9.js')
-rw-r--r-- | GithubPicker.0820539144ef5245d1e9.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/GithubPicker.0820539144ef5245d1e9.js b/GithubPicker.0820539144ef5245d1e9.js new file mode 100644 index 0000000..2b9c8de --- /dev/null +++ b/GithubPicker.0820539144ef5245d1e9.js @@ -0,0 +1,3 @@ +/*! For license information please see GithubPicker.0820539144ef5245d1e9.js.LICENSE.txt */ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3203],{27926:function(n,e,t){"use strict";t.d(e,{Z:function(){return j}});var r=t(93379),o=t.n(r),i=t(7795),a=t.n(i),c=t(90569),s=t.n(c),u=t(3565),l=t.n(u),d=t(19216),f=t.n(d),h=t(44589),p=t.n(h),y=t(56281),A={};A.styleTagTransform=p(),A.setAttributes=l(),A.insert=s().bind(null,"head"),A.domAPI=a(),A.insertStyleElement=f(),o()(y.Z,A);var m=y.Z&&y.Z.locals?y.Z.locals:void 0,v=t(85893);function g(n){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g(n)}var b=["children","secondary","className"];function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function w(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?x(Object(t),!0).forEach((function(e){E(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function E(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==g(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===g(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function C(n){var e=n.children,t=n.secondary,r=n.className,o=function(n,e){if(null==n)return{};var t,r,o=function(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,b);return(0,v.jsx)("button",w(w({className:[r,m.action,t&&m.secondary].join(" ")},o),{},{children:e}))}C.defaultProps={className:""};var j=C},72054:function(n,e,t){"use strict";t.d(e,{Z:function(){return O}});var r=t(94184),o=t.n(r),i=t(67294),a=t(45697),c=t.n(a),s=t(93379),u=t.n(s),l=t(7795),d=t.n(l),f=t(90569),h=t.n(f),p=t(3565),y=t.n(p),A=t(19216),m=t.n(A),v=t(44589),g=t.n(v),b=t(56634),x={};x.styleTagTransform=g(),x.setAttributes=y(),x.insert=h().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=m(),u()(b.Z,x);var w=b.Z&&b.Z.locals?b.Z.locals:void 0,E=t(21517),C=t(64261),j=t(62092),B=t(85893);function k(n){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k(n)}function S(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function O(n){var e,t,r,a,c,s=n.actions,u=(e=(0,C.X)(),t=4,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=i.call(t)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(n){u=!0,o=n}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(n,e){if(n){if("string"==typeof n)return S(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(n,e):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=u[0],d=u[2],f=u[3],h=(0,i.useRef)();return(0,E.Z)(h,d),(0,B.jsxs)("div",{ref:h,className:w.wrapper,children:[(0,B.jsx)(j.Z,{className:w.button,onClick:f,icon:"ellipsis"}),(0,B.jsx)("div",{className:o()(w.menu,(r={},a=w.open,c=l,(a=function(n){var e=function(n,e){if("object"!==k(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===k(e)?e:String(e)}(a))in r?Object.defineProperty(r,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[a]=c,r)),children:(0,B.jsx)("ul",{children:s.map((function(n,e){return(0,B.jsx)("li",{onClick:function(){return function(n){d(),n()}(n.callback)},children:n.content},e)}))})})]})}O.propTypes={actions:c().arrayOf(c().shape({callback:c().func.isRequired,content:c().oneOfType([c().node,c().string]).isRequired})).isRequired}},97494:function(n,e,t){"use strict";t.d(e,{Z:function(){return B}});var r=t(45697),o=t.n(r),i=t(93379),a=t.n(i),c=t(7795),s=t.n(c),u=t(90569),l=t.n(u),d=t(3565),f=t.n(d),h=t(19216),p=t.n(h),y=t(44589),A=t.n(y),m=t(33988),v={};v.styleTagTransform=A(),v.setAttributes=f(),v.insert=l().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=p(),a()(m.Z,v);var g=m.Z&&m.Z.locals?m.Z.locals:void 0,b=t(85893);function x(n){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},x(n)}var w=["validator","required","value"];function E(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?E(Object(t),!0).forEach((function(e){j(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function j(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==x(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===x(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function B(n){var e=n.validator,t=n.required,r=void 0!==t&&t,o=n.value,i=void 0===o?"":o,a=function(n,e){if(null==n)return{};var t,r,o=function(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,w),c=e(i)||!i&&r&&"cannot be empty";return(0,b.jsxs)("span",{className:g.wrapper,children:[(0,b.jsx)("input",C({type:"text",value:i},a)),c&&(0,b.jsx)("span",{className:g.error,children:c})]})}B.propTypes={value:o().any.isRequired,required:o().bool,validator:o().func}},92087:function(n,e,t){"use strict";var r=t(45697),o=t.n(r),i=t(96186),a=t(64261),c=t(80031),s=t(85893);function u(n){var e=n.onDismiss;return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(i.Z,{onDismiss:e,children:[(0,s.jsx)("h2",{children:"Automatic Layout Generation Failed"}),(0,s.jsx)("p",{children:"No accompanying layout was found with your keymap file and the Keymap Editor was unable to generate one automatically for you."}),(0,s.jsx)("p",{children:"Something went wrong with the attempted automatic layout generation for your keyboard and there's no automatic way to recover, but if you want to reach out for assistance maybe we can work together to resolve any technical issues or else craft a manual layout for your keyboard."}),(0,s.jsxs)("p",{children:["Share your experience at ",c.qM,"."]})]})})}u.propTypes={onDismiss:o().func.isRequired},e.Z=u},75620:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Sn}});var r=t(13311),o=t.n(r),i=t(66379),a=t.n(i),c=t(67294),s=t(45697),u=t.n(s),l=t(93965),d=t(96186),f=t(64261),h=t(85893),p={maxHeight:"300px",overflow:"auto",padding:"10px",fontFamily:"monospace",fontSize:"80%",backgroundColor:"rgb(239, 239, 239, 0.5)"},y={margin:"10px"};function A(n){var e=n.onDismiss,t=n.title,r=n.errors,o=function(n){if("InfoValidationError"===n)return"config/info.json"}(t);return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:t}),o&&(0,h.jsxs)("p",{children:["Errors in the file ",(0,h.jsx)("code",{children:o}),"."]}),(0,h.jsx)("ul",{style:p,children:r.map((function(n,e){return(0,h.jsx)("li",{style:y,children:n},e)}))})]})})}var m=t(97168),v=t(35161),g=t.n(v),b="selectedGithubRepository",x="selectedGithubBranch",w="selectedGithubKeyboard";function E(n,e){try{return JSON.parse(localStorage.getItem("".concat(w,":").concat(n,":").concat(e)))}catch(n){return null}}function C(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var j={blocked:!1,initialized:!1,selectedRepoId:null,selectedBranchName:null,selectedKeyboard:null,loadedGitInfo:null,noBranches:!1,branches:[],keyboards:[],loading:!1,warningFlags:[]},B=(0,m.oM)({name:"github-picker",initialState:j,reducers:{clearSelection:function(n){n.warningFlags=[],n.loading=!1},integrationInitialized:function(n){var e,t=function(){try{return JSON.parse(localStorage.getItem(b))}catch(n){return null}}(),r=l.Z.repositories||[];o()(r,{id:t})?e=t:r.length>0&&(e=r[0].id),n.initialized=!0,n.selectedRepoId=e},loadingBranchesList:function(n){n.noBranches=!1,n.loading=!0},loadedBranchesList:function(n,e){var t=n.selectedRepoId,r=e.payload.branches,i=o()(l.Z.repositories,{id:t});n.noBranches=0===r.length,n.branches=r,n.keyboard=null,n.keyboards=[],n.loading=!1;for(var a=g()(r,"name"),c=i.default_branch,s=function(n){try{return JSON.parse(localStorage.getItem("".concat(x,":").concat(n)))}catch(n){return null}}(t),u=0,d=[1===r.length?r[0].name:null,s,c];u<d.length;u++){var f=d[u];if(a.includes(f)){n.selectedBranchName=f,n.selectedKeyboard=E(t,f);break}}},loadingKeyboardsList:function(n){n.loading=!0},loadedKeyboardsList:function(n,e){var t=n.selectedRepoId,r=n.selectedBranchName,o=e.payload,i=o.keyboards,a=o.default;n.keyboards=i,n.loading=!1;for(var c=E(t,r),s=0,u=[1===i.length?i[0]:null,c,a];s<u.length;s++){var l=u[s];if(i.includes(l)){n.selectedKeyboard=l;break}}},createdBranch:function(n,e){n.branches.push({id:e.payload.name,name:e.payload.name,protected:!1})},selectedRepository:function(n,e){var t;n.selectedRepoId=e.payload.repository.id,n.selectedBranchName=null,n.selectedKeyboard=null,n.noBranches=!1,n.branches=[],t=n.selectedRepoId,localStorage.setItem(b,JSON.stringify(t))},selectedBranch:function(n,e){var t,r;n.selectedBranchName=e.payload.name,n.selectedKeyboard=E(n.selectedRepoId,n.selectedBranchName),t=n.selectedRepoId,r=n.selectedBranchName,localStorage.setItem("".concat(x,":").concat(t),JSON.stringify(r))},selectedKeyboard:function(n,e){var t,r,o;n.selectedKeyboard=e.payload.name,t=n.selectedRepoId,r=n.selectedBranchName,o=n.selectedKeyboard,localStorage.setItem("".concat(w,":").concat(t,":").concat(r),JSON.stringify(o))},keyboardLoading:function(n,e){n.loading=!0,n.loadedGitInfo=null},keyboardLoadedSuccess:function(n,e){var t=e.payload.response,r=t.keymap,o=t.gitInfo;n.warningFlags=r.warningFlags||[],n.loadedGitInfo=o,n.loading=!1}}});function k(){var n,e,t,r=(e=(0,c.useReducer)(B.reducer,j),t=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=i.call(t)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(n){u=!0,o=n}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(n,e){if(n){if("string"==typeof n)return C(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(n,e):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=(n=r[1],(0,c.useMemo)((function(){return Object.keys(B.actions).reduce((function(e,t){return e[t]=function(){var e;return n((e=B.actions)[t].apply(e,arguments))},e}),{})}),[n]));return[o,i]}t(69247);function S(n){var e=n.onDismiss,t=n.missingPath;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"Missing keyboard definition?"}),(0,h.jsxs)("p",{children:["Hi there! The repository you're trying to load from doesn't have a defined ",(0,h.jsx)("code",{children:t}),". Right now this application is expecting to look at that directory to discover keyboard definitions for experimental features like automatic layout generation."]}),(0,h.jsx)("p",{children:"Is it possible that the keyboard you're trying to edit relies on data from the ZMK or other repositories? Fetching from other repositories is not currently supported."}),(0,h.jsx)("p",{children:"I'm a humble developer and have only worked with configurations for my own handwired builds, so if you feel you're receiving this message in error then please consider opening an issue on this project's GitHub repository to let me know what I can do differently."})]})})}S.propTypes={onDismiss:u().func.isRequired,missingPath:u().string.isRequired};var O=S,Z=t(2968);t(62092);u().shape({id:u().number.isRequired}).isRequired;var D=t(80031);function P(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"Is this a zmk-config repo?"}),(0,h.jsxs)("p",{children:["Hi there! The repository you're trying to load from doesn't have a defined ",(0,h.jsx)("code",{children:"config"})," directory. Right now this application is expecting to look at that directory to discover keymaps and other metadata."]}),D.t6]})})}P.propTypes={onDismiss:u().func.isRequired,otherRepoOrBranchAvailable:u().bool};var L=P,M=t(92087),T=function(){return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{dismissText:null,children:[(0,h.jsx)("h2",{children:"GitHub Account Blocked"}),(0,h.jsx)("p",{children:"Hi, your access to this application has been disabled."}),(0,h.jsxs)("p",{children:["This could be an innocent mistake. Possibly you've misunderstood the intended purpose of this app, possibly I got carried away with some housekeeping. If you want more information or feel this was done in error, please reach out to ",(0,h.jsx)("em",{children:"nickcoutsos"})," on GitHub or Discord (you can find me on the ZMK server)."]})]})})};function $(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"No Layout Available"}),(0,h.jsx)("p",{children:"Your keymap doesn't have an accompanying layout and we don't know enough about your keyboard to generate one for you automatically."}),(0,h.jsxs)("p",{children:["If you meant to include layout data, please make sure that its in the same directory as your keymap, like ",(0,h.jsx)("code",{children:"config/info.json"})," or ",(0,h.jsx)("code",{children:"config/<keyboard>.json"}),"."]}),D.Yo,D.t6]})})}$.propTypes={onDismiss:u().func.isRequired};var I=$;var _=(0,h.jsx)(Z.Z,{external:!0,href:"https://zmk.dev/docs/user-setup#user-config-setup-script",children:"User Config Setup Script"});function R(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"Empty Repository"}),(0,h.jsxs)("p",{children:["The selected repository doesn't appear to contain anything yet. please be sure to use ZMK's ",_," to initialize your repo first."]}),D.t6]})})}t(41051);function N(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"No Keymap Available"}),(0,h.jsxs)("p",{children:["We couldn't find a ",(0,h.jsx)("code",{children:".keymap"})," file in your ",(0,h.jsx)("code",{children:"config/"})," folder."]}),(0,h.jsxs)("p",{children:["Please ensure that any keymap(s) you wish to edit are placed in that directory even if an accompanying keyboard definition exists in your under the ",(0,h.jsx)("code",{children:"config/boards/..."})," directory."]}),(0,h.jsxs)("p",{children:["If you have any questions please feel free to reach out by creating an issue at ",D.qM,"."]})]})})}N.propTypes={onDismiss:u().func.isRequired};var Y=N,q=(t(91892),t(93379)),G=t.n(q),z=t(7795),F=t.n(z),K=t(90569),W=t.n(K),U=t(3565),H=t.n(U),J=t(19216),V=t.n(J),X=t(44589),Q=t.n(X),nn=t(92127),en={};en.styleTagTransform=Q(),en.setAttributes=H(),en.insert=W().bind(null,"head"),en.domAPI=F(),en.insertStyleElement=V(),G()(nn.Z,en);nn.Z&&nn.Z.locals&&nn.Z.locals;var tn=t(80047),rn={};rn.styleTagTransform=Q(),rn.setAttributes=H(),rn.insert=W().bind(null,"head"),rn.domAPI=F(),rn.insertStyleElement=V(),G()(tn.Z,rn);tn.Z&&tn.Z.locals&&tn.Z.locals;function on(n){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},on(n)}function an(){an=function(){return n};var n={},e=Object.prototype,t=e.hasOwnProperty,r=Object.defineProperty||function(n,e,t){n[e]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{s({},"")}catch(n){s=function(n,e,t){return n[e]=t}}function u(n,e,t,o){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),c=new j(o||[]);return r(a,"_invoke",{value:x(n,t,c)}),a}function l(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(n){return{type:"throw",arg:n}}}n.wrap=u;var d={};function f(){}function h(){}function p(){}var y={};s(y,i,(function(){return this}));var A=Object.getPrototypeOf,m=A&&A(A(B([])));m&&m!==e&&t.call(m,i)&&(y=m);var v=p.prototype=f.prototype=Object.create(y);function g(n){["next","throw","return"].forEach((function(e){s(n,e,(function(n){return this._invoke(e,n)}))}))}function b(n,e){function o(r,i,a,c){var s=l(n[r],n,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==on(d)&&t.call(d,"__await")?e.resolve(d.__await).then((function(n){o("next",n,a,c)}),(function(n){o("throw",n,a,c)})):e.resolve(d).then((function(n){u.value=n,a(u)}),(function(n){return o("throw",n,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(n,t){function r(){return new e((function(e,r){o(n,t,e,r)}))}return i=i?i.then(r,r):r()}})}function x(n,e,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var c=w(a,t);if(c){if(c===d)continue;return c}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=l(n,e,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}function w(n,e){var t=e.method,r=n.iterator[t];if(void 0===r)return e.delegate=null,"throw"===t&&n.iterator.return&&(e.method="return",e.arg=void 0,w(n,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=l(r,n.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[n.resultName]=i.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function C(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function j(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(E,this),this.reset(!0)}function B(n){if(n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,o=function e(){for(;++r<n.length;)if(t.call(n,r))return e.value=n[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=s(p,c,"GeneratorFunction"),n.isGeneratorFunction=function(n){var e="function"==typeof n&&n.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,p):(n.__proto__=p,s(n,c,"GeneratorFunction")),n.prototype=Object.create(v),n},n.awrap=function(n){return{__await:n}},g(b.prototype),s(b.prototype,a,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new b(u(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(n){return n.done?n.value:a.next()}))},g(v),s(v,c,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),n.keys=function(n){var e=Object(n),t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=B,j.prototype={constructor:j,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!n)for(var e in this)"t"===e.charAt(0)&&t.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var e=this;function r(t,r){return a.type="throw",a.arg=n,e.next=t,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),s=t.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(n,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===n||"continue"===n)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=n,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(n,e){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&e&&(this.next=e),d},finish:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),C(t),d}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var r=t.completion;if("throw"===r.type){var o=r.arg;C(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:B(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),d}},n}function cn(n,e,t,r,o,i,a){try{var c=n[i](a),s=c.value}catch(n){return void t(n)}c.done?e(s):Promise.resolve(s).then(r,o)}function sn(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){cn(i,r,o,a,c,"next",n)}function c(n){cn(i,r,o,a,c,"throw",n)}a(void 0)}))}}function un(n){return function(n){if(Array.isArray(n))return ln(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return ln(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ln(n,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}t(50361),t(39693),t(18446),t(95998),t(51606);var dn=t(27484),fn=t.n(dn),hn=t(84110),pn=t.n(hn);fn().extend(pn());u().shape({id:u().number.isRequired,name:u().string.isRequired,head_sha:u().string.isRequired,status:u().oneOf(["completed","action_required","cancelled","failure","neutral","skipped","stale","success","timed_out","in_progress","queued","requested","waiting"]).isRequired,conclusion:u().oneOf([null,"action_required","cancelled","failure","neutral","success","skipped","stale","timed_out"]),created_at:u().string.isRequired,updated_at:u().string.isRequired});t(27926);u().func.isRequired,u().func.isRequired,t(72054);t(97494);function yn(n){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yn(n)}function An(){An=function(){return n};var n={},e=Object.prototype,t=e.hasOwnProperty,r=Object.defineProperty||function(n,e,t){n[e]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{s({},"")}catch(n){s=function(n,e,t){return n[e]=t}}function u(n,e,t,o){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),c=new j(o||[]);return r(a,"_invoke",{value:x(n,t,c)}),a}function l(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(n){return{type:"throw",arg:n}}}n.wrap=u;var d={};function f(){}function h(){}function p(){}var y={};s(y,i,(function(){return this}));var A=Object.getPrototypeOf,m=A&&A(A(B([])));m&&m!==e&&t.call(m,i)&&(y=m);var v=p.prototype=f.prototype=Object.create(y);function g(n){["next","throw","return"].forEach((function(e){s(n,e,(function(n){return this._invoke(e,n)}))}))}function b(n,e){function o(r,i,a,c){var s=l(n[r],n,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==yn(d)&&t.call(d,"__await")?e.resolve(d.__await).then((function(n){o("next",n,a,c)}),(function(n){o("throw",n,a,c)})):e.resolve(d).then((function(n){u.value=n,a(u)}),(function(n){return o("throw",n,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(n,t){function r(){return new e((function(e,r){o(n,t,e,r)}))}return i=i?i.then(r,r):r()}})}function x(n,e,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var c=w(a,t);if(c){if(c===d)continue;return c}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=l(n,e,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}function w(n,e){var t=e.method,r=n.iterator[t];if(void 0===r)return e.delegate=null,"throw"===t&&n.iterator.return&&(e.method="return",e.arg=void 0,w(n,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=l(r,n.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[n.resultName]=i.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function C(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function j(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(E,this),this.reset(!0)}function B(n){if(n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,o=function e(){for(;++r<n.length;)if(t.call(n,r))return e.value=n[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=s(p,c,"GeneratorFunction"),n.isGeneratorFunction=function(n){var e="function"==typeof n&&n.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,p):(n.__proto__=p,s(n,c,"GeneratorFunction")),n.prototype=Object.create(v),n},n.awrap=function(n){return{__await:n}},g(b.prototype),s(b.prototype,a,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new b(u(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(n){return n.done?n.value:a.next()}))},g(v),s(v,c,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),n.keys=function(n){var e=Object(n),t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=B,j.prototype={constructor:j,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!n)for(var e in this)"t"===e.charAt(0)&&t.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var e=this;function r(t,r){return a.type="throw",a.arg=n,e.next=t,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),s=t.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(n,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===n||"continue"===n)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=n,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(n,e){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&e&&(this.next=e),d},finish:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),C(t),d}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var r=t.completion;if("throw"===r.type){var o=r.arg;C(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:B(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),d}},n}function mn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function vn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?mn(Object(t),!0).forEach((function(e){gn(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):mn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function gn(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==yn(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===yn(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function bn(n,e,t,r,o,i,a){try{var c=n[i](a),s=c.value}catch(n){return void t(n)}c.done?e(s):Promise.resolve(s).then(r,o)}function xn(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=i.call(t)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(n){u=!0,o=n}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,e)||function(n,e){if(n){if("string"==typeof n)return wn(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wn(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}u().func.isRequired,u().func.isRequired,u().array.isRequired,u().string.isRequired,u().any,t(83858),t(21007);var En=function(n){return a()(n,{name:"MissingRepoFile",path:"config"})},Cn=function(n){return a()(n,{name:"MissingRepoFile",intent:"directory-structure"})},jn=function(n){return a()(n,{name:"MissingRepoFile",path:"config/info.json"})||a()(n,{name:"MissingRepoFile",intent:"metadata"})},Bn=function(n){return"MissingRepoFile"===(null==n?void 0:n.name)&&(null==n?void 0:n.path.match(/config\/boards\/[^/]+\/[^/]+\/[^/]+?\..*$/))};function kn(n){var e=xn(k(),2),t=e[0],r=e[1],i=function(n,e){var t=n.branches,r=n.keyboards,i=n.selectedRepoId,a=n.selectedBranchName,s=n.selectedKeyboard,u=(l.Z.repositories||[]).map((function(n){return{id:n.id,name:n.name,full:n.full_name}})),d=(l.Z.installations||[]).map((function(n){return{id:n.id,type:"installation",name:"[Manage available repos for ".concat(n.account.login,"...]")}})),f=(0,c.useMemo)((function(){return[].concat(un(u),un(d))}),[u,d]),h=(0,c.useMemo)((function(){return t.map((function(n){return{id:n.name,name:n.name,protected:n.protected}}))}),[t]),p=(0,c.useMemo)((function(){return r.map((function(n){return{id:n,name:n}}))}),[r]),y=(0,c.useMemo)((function(){return o()(u,{id:i})}),[u,i]),A=(0,c.useMemo)((function(){return o()(h,{id:a})}),[h,a]),m=(0,c.useMemo)((function(){return o()(p,{id:s})}),[p,s]);return(0,c.useEffect)((function(){i&&sn(an().mark((function n(){var t,r;return an().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loadingBranchesList(),t=o()(l.Z.repositories,{id:i}),n.next=4,l.Z.fetchRepoBranches(t);case 4:r=n.sent,e.loadedBranchesList({branches:r});case 6:case"end":return n.stop()}}),n)})))()}),[i,e]),(0,c.useEffect)((function(){i&&a&&sn(an().mark((function n(){var t,r;return an().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loadingKeyboardsList(),t=o()(l.Z.repositories,{id:i}),n.next=4,l.Z.fetchBranchKeyboards(t,a);case 4:r=n.sent,e.loadedKeyboardsList(r);case 6:case"end":return n.stop()}}),n)})))()}),[i,a,e]),[{repositories:u,repositoryChoices:f,branchChoices:h,keyboardChoices:p},{selectedRepoChoice:y,selectedBranchChoice:A,selectedKeyboardChoice:m}]}(t,r),a=xn(i,2),s=a[0],u=(a[1],t.initialized,t.selectedRepoId),p=t.selectedBranchName,y=t.selectedKeyboard,m=(t.loading,n.expanded,n.onSelect),v=(n.onExpand,n.onError);(0,c.useEffect)((function(){var n=function(){return l.Z.beginLoginFlow()},e=function(){r.clearSelection(),v({dialog:T})},t=function(){r.clearSelection(),v({dialog:M.Z})},o=function(n){var e=A;En(n)&&(e=L),Bn(n)&&(e=O),jn(n)&&(e=I),Cn(n)&&(e=Y),r.clearSelection(),v({dialog:e,dialogProps:{title:n.name,errors:n.errors}})};return l.Z.init().then(r.integrationInitialized),l.Z.on("authentication-failed",n),l.Z.on("blocked",e),l.Z.on("repo-validation-error",o),l.Z.on("layout-generation-failed",t),function(){l.Z.off("authentication-failed",n),l.Z.off("blocked",e),l.Z.off("repo-validation-error",o),l.Z.off("layout-generation-failed",t)}}),[r,v]),(0,c.useEffect)((function(){!t.loading&&t.noBranches&&v({dialog:R})}),[t,v]);var g=(0,c.useCallback)(function(){var n,e=(n=An().mark((function n(e,t,i){var a,c,u,d,f,h;return An().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=l.Z.repositories,d=null===(a=o()(u,{id:e}))||void 0===a?void 0:a.full_name,f=null===(c=o()(s.branchChoices,{id:t}))||void 0===c?void 0:c.protected,r.keyboardLoading(),n.next=6,l.Z.fetchLayoutAndKeymap(d,t,{keyboard:i});case 6:h=n.sent,r.keyboardLoadedSuccess({response:h}),m(vn({github:{repository:d,branch:t,keyboard:i,isProtected:f}},h));case 9:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){bn(i,r,o,a,c,"next",n)}function c(n){bn(i,r,o,a,c,"throw",n)}a(void 0)}))});return function(n,t,r){return e.apply(this,arguments)}}(),[r,s.branchChoices,m]);return(0,c.useCallback)((function(){return g(u,p,y)}),[g,u,p,y]),(0,c.useEffect)((function(){u&&p&&g(u,p,y)}),[u,p,y,g]),(0,h.jsx)(f.Z,{centerOnly:!0,children:(0,h.jsxs)(d.Z,{dismissText:null,children:[(0,h.jsx)("h2",{children:"GitHub Integration Down"}),(0,h.jsxs)("p",{children:["I'm having trouble with the platform that runs Keymap Editor's backend. This is what makes the integration with GitHub work. I'm not sure how quickly I'll resolve it, but in the meantime you can use the ",(0,h.jsx)("em",{children:"Clipboard"})," source to load your keymap directly and make changes."]}),(0,h.jsx)("p",{children:"Apologies for the inconvenience."})]})})}kn.propTypes={expanded:u().bool.isRequired,onExpand:u().func.isRequired,onError:u().func.isRequired,onSelect:u().func.isRequired};var Sn=kn},56281:function(n,e,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,"button.pi2Ig8c3Fdh4H2Jpxdo7 {\n display: inline-block;\n cursor: pointer;\n background-color: var(--hover-selection);\n color: white;\n\n font-size: 16px;\n border: none;\n border-radius: 5px;\n padding: 0 5px;\n\n height: 30px;\n line-height: 30px;\n vertical-align: middle;\n}\n\nbutton.Ctpu4E2dZYJ6g8CUGFOF {\n color: var(--fg);\n background-color: transparent;\n}\n\nbutton.pi2Ig8c3Fdh4H2Jpxdo7[disabled] {\n filter: saturate(20%);\n opacity: .5;\n cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://./src/Common/action-button.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,eAAe;EACf,wCAAwC;EACxC,YAAY;;EAEZ,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,cAAc;;EAEd,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;EAChB,6BAA6B;AAC/B;;AAEA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;AACrB",sourcesContent:["button.action {\n display: inline-block;\n cursor: pointer;\n background-color: var(--hover-selection);\n color: white;\n\n font-size: 16px;\n border: none;\n border-radius: 5px;\n padding: 0 5px;\n\n height: 30px;\n line-height: 30px;\n vertical-align: middle;\n}\n\nbutton.secondary {\n color: var(--fg);\n background-color: transparent;\n}\n\nbutton.action[disabled] {\n filter: saturate(20%);\n opacity: .5;\n cursor: not-allowed;\n}\n"],sourceRoot:""}]),a.locals={action:"pi2Ig8c3Fdh4H2Jpxdo7",secondary:"Ctpu4E2dZYJ6g8CUGFOF"},e.Z=a},56634:function(n,e,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".Jzs3iq1rDP5C8GJijmFR {\n position: relative;\n}\n\n.NaSZTgWxjXTcejbI5OvU {\n border: none;\n background: none;\n}\n.NaSZTgWxjXTcejbI5OvU:hover {\n cursor: pointer;;\n}\n\n.jThiLc5_BrUyl71v3rKn {\n display: inline-block;\n position: absolute;\n top: 100%;\n left: 0;\n width: max-content;\n z-index: 1;\n font-size: 70%;\n padding: 5px 10px;\n\n border-radius: 4px;\n}\n\n.jThiLc5_BrUyl71v3rKn p {\n display: inline-block;\n cursor: pointer;\n margin: 0;\n}\n\n.jThiLc5_BrUyl71v3rKn ul {\n display: none;\n}\n.jThiLc5_BrUyl71v3rKn.xG2GKlsc07jLEb2aMC6H {\n background: var(--dialog-bg, var(--bg));\n box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);\n}\n.jThiLc5_BrUyl71v3rKn.xG2GKlsc07jLEb2aMC6H ul {\n display: block;\n padding: 0;\n margin: 0;\n list-style-type: none;\n}\n\n.jThiLc5_BrUyl71v3rKn li {\n cursor: pointer;\n margin: 2px 0;\n line-height: 20px;\n padding: 0 5px;\n border-radius: 10px;\n}\n\n.jThiLc5_BrUyl71v3rKn li:hover {\n background-color: var(--hover-selection);\n color: white;\n}\n","",{version:3,sources:["webpack://./src/Common/action-menu.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,iBAAiB;;EAEjB,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,SAAS;AACX;;AAEA;EACE,aAAa;AACf;AACA;EACE,uCAAuC;EACvC,8CAA8C;AAChD;AACA;EACE,cAAc;EACd,UAAU;EACV,SAAS;EACT,qBAAqB;AACvB;;AAEA;EACE,eAAe;EACf,aAAa;EACb,iBAAiB;EACjB,cAAc;EACd,mBAAmB;AACrB;;AAEA;EACE,wCAAwC;EACxC,YAAY;AACd",sourcesContent:[".wrapper {\n position: relative;\n}\n\n.button {\n border: none;\n background: none;\n}\n.button:hover {\n cursor: pointer;;\n}\n\n.menu {\n display: inline-block;\n position: absolute;\n top: 100%;\n left: 0;\n width: max-content;\n z-index: 1;\n font-size: 70%;\n padding: 5px 10px;\n\n border-radius: 4px;\n}\n\n.menu p {\n display: inline-block;\n cursor: pointer;\n margin: 0;\n}\n\n.menu ul {\n display: none;\n}\n.menu.open {\n background: var(--dialog-bg, var(--bg));\n box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);\n}\n.menu.open ul {\n display: block;\n padding: 0;\n margin: 0;\n list-style-type: none;\n}\n\n.menu li {\n cursor: pointer;\n margin: 2px 0;\n line-height: 20px;\n padding: 0 5px;\n border-radius: 10px;\n}\n\n.menu li:hover {\n background-color: var(--hover-selection);\n color: white;\n}\n"],sourceRoot:""}]),a.locals={wrapper:"Jzs3iq1rDP5C8GJijmFR",button:"NaSZTgWxjXTcejbI5OvU",menu:"jThiLc5_BrUyl71v3rKn",open:"xG2GKlsc07jLEb2aMC6H"},e.Z=a},33988:function(n,e,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".OaJISbD1WCmb03at77EG {\n position: relative;\n}\n\n.MUN9De8dUvbPGH9cEDoQ {\n position: absolute;\n z-index: 10;\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 100%);\n max-width: 250px;\n width: 100%;\n\n border-radius: 4px;\n padding: 3px 5px;\n\n color: white;\n background-color: var(--error-highlight);\n font-size: 85%;\n font-family: sans-serif;\n\n opacity: 0.9;\n}\n.MUN9De8dUvbPGH9cEDoQ::before {\n position: absolute;\n display: block;\n content: ' ';\n z-index: -1;\n\n left: 50%;\n width: 10px;\n height: 10px;\n\n background-color: var(--error-highlight);\n transform: translate(-50%, -7px) rotate(45deg);\n}\n","",{version:3,sources:["webpack://./src/Common/input.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,SAAS;EACT,SAAS;EACT,gCAAgC;EAChC,gBAAgB;EAChB,WAAW;;EAEX,kBAAkB;EAClB,gBAAgB;;EAEhB,YAAY;EACZ,wCAAwC;EACxC,cAAc;EACd,uBAAuB;;EAEvB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,YAAY;EACZ,WAAW;;EAEX,SAAS;EACT,WAAW;EACX,YAAY;;EAEZ,wCAAwC;EACxC,8CAA8C;AAChD",sourcesContent:[".wrapper {\n position: relative;\n}\n\n.error {\n position: absolute;\n z-index: 10;\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 100%);\n max-width: 250px;\n width: 100%;\n\n border-radius: 4px;\n padding: 3px 5px;\n\n color: white;\n background-color: var(--error-highlight);\n font-size: 85%;\n font-family: sans-serif;\n\n opacity: 0.9;\n}\n.error::before {\n position: absolute;\n display: block;\n content: ' ';\n z-index: -1;\n\n left: 50%;\n width: 10px;\n height: 10px;\n\n background-color: var(--error-highlight);\n transform: translate(-50%, -7px) rotate(45deg);\n}\n"],sourceRoot:""}]),a.locals={wrapper:"OaJISbD1WCmb03at77EG",error:"MUN9De8dUvbPGH9cEDoQ"},e.Z=a},92127:function(n,e,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".FMkASzwt_oMscZdObpDQ {\n display: inline-block;\n text-align: center;\n}\n.TNF6aRMBPANvZifB27ZK {\n display: inline-block;\n animation: GGCs7iiBiwDCnT80cyTh 1s linear infinite;\n}\n\n@keyframes GGCs7iiBiwDCnT80cyTh {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}","",{version:3,sources:["webpack://./src/Common/spinner.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kDAAkC;AACpC;;AAEA;EACE,OAAO,uBAAuB,EAAE;EAChC,KAAK,yBAAyB,EAAE;AAClC",sourcesContent:[".spinner {\n display: inline-block;\n text-align: center;\n}\n.icon {\n display: inline-block;\n animation: spin 1s linear infinite;\n}\n\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}"],sourceRoot:""}]),a.locals={spinner:"FMkASzwt_oMscZdObpDQ",icon:"TNF6aRMBPANvZifB27ZK",spin:"GGCs7iiBiwDCnT80cyTh"},e.Z=a},80047:function(n,e,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".z8z3GXuYqlepCz4tRPZj {\n cursor: pointer;\n display: flex;\n font-size: 1em;\n box-sizing: border-box;\n background: none;\n border: none;\n text-align: left;\n border-radius: 4px;\n gap: 5px;\n height: 38px;\n padding: 0 8px;\n\n /* color: hsl(0, 0%, 20%); */\n}\n\n.z8z3GXuYqlepCz4tRPZj:hover {\n background-color: var(--hover-selection);\n color: white;\n}\n\n.yyHfal9pM4DzShMl4LAY {\n display: inline-flex;\n height: 30px;\n border-radius: 5px;\n align-items: center;\n\n font-size: 70%;\n padding: 0 4px;\n\n background-color: royalblue;\n color: white;\n text-decoration: none;\n}\n\n.ukdycT4tarWVlV3PC6Rr {\n display: flex;\n height: 38px;\n gap: 4px;\n}\n\n.ukdycT4tarWVlV3PC6Rr button,\n.ukdycT4tarWVlV3PC6Rr .yyHfal9pM4DzShMl4LAY {\n height: 38px !important;\n}\n\n.yyHfal9pM4DzShMl4LAY code {\n font-family: monospace;\n}\n\n.QvI5wo7_u6OeAc12ib0W {\n width: 30px;\n height: 30px;\n line-height: 30px;\n font-size: 200%;\n text-align: center;\n}\n\n.eUw5NZqoPPF3BcyYDpJx {\n /* color: var(--selection); */\n}\n\n.XjY4lN_lY3nSgHcw67bX {\n /* color: brown; */\n}\n\n.Ap_OwCtp3j1Q29Phpw3V {\n color: gold;\n animation: WjBuPfls4V41d2sjbNFU 1s linear alternate infinite;\n}\n\n@keyframes WjBuPfls4V41d2sjbNFU {\n from { opacity: 0.5; }\n to { opacity: 1; }\n}\n","",{version:3,sources:["webpack://./src/Sources/Github/styles.module.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,aAAa;EACb,cAAc;EACd,sBAAsB;EACtB,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,cAAc;;EAEd,4BAA4B;AAC9B;;AAEA;EACE,wCAAwC;EACxC,YAAY;AACd;;AAEA;EACE,oBAAoB;EACpB,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;;EAEnB,cAAc;EACd,cAAc;;EAEd,2BAA2B;EAC3B,YAAY;EACZ,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,QAAQ;AACV;;AAEA;;EAEE,uBAAuB;AACzB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,4DAA6C;AAC/C;;AAEA;EACE,OAAO,YAAY,EAAE;EACrB,KAAK,UAAU,EAAE;AACnB",sourcesContent:[".compactWrapper {\n cursor: pointer;\n display: flex;\n font-size: 1em;\n box-sizing: border-box;\n background: none;\n border: none;\n text-align: left;\n border-radius: 4px;\n gap: 5px;\n height: 38px;\n padding: 0 8px;\n\n /* color: hsl(0, 0%, 20%); */\n}\n\n.compactWrapper:hover {\n background-color: var(--hover-selection);\n color: white;\n}\n\n.buildDetails {\n display: inline-flex;\n height: 30px;\n border-radius: 5px;\n align-items: center;\n\n font-size: 70%;\n padding: 0 4px;\n\n background-color: royalblue;\n color: white;\n text-decoration: none;\n}\n\n.pickerActions {\n display: flex;\n height: 38px;\n gap: 4px;\n}\n\n.pickerActions button,\n.pickerActions .buildDetails {\n height: 38px !important;\n}\n\n.buildDetails code {\n font-family: monospace;\n}\n\n.buildStatus {\n width: 30px;\n height: 30px;\n line-height: 30px;\n font-size: 200%;\n text-align: center;\n}\n\n.buildSuccess {\n /* color: var(--selection); */\n}\n\n.buildFailed {\n /* color: brown; */\n}\n\n.buildPending {\n color: gold;\n animation: pulse 1s linear alternate infinite;\n}\n\n@keyframes pulse {\n from { opacity: 0.5; }\n to { opacity: 1; }\n}\n"],sourceRoot:""}]),a.locals={compactWrapper:"z8z3GXuYqlepCz4tRPZj",buildDetails:"yyHfal9pM4DzShMl4LAY",pickerActions:"ukdycT4tarWVlV3PC6Rr",buildStatus:"QvI5wo7_u6OeAc12ib0W",buildSuccess:"eUw5NZqoPPF3BcyYDpJx",buildFailed:"XjY4lN_lY3nSgHcw67bX",buildPending:"Ap_OwCtp3j1Q29Phpw3V",pulse:"WjBuPfls4V41d2sjbNFU"},e.Z=a},27484:function(n){n.exports=function(){"use strict";var n=6e4,e=36e5,t="millisecond",r="second",o="minute",i="hour",a="day",c="week",s="month",u="quarter",l="year",d="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var e=["th","st","nd","rd"],t=n%100;return"["+n+(e[(t-20)%10]||e[t]||e[0])+"]"}},A=function(n,e,t){var r=String(n);return!r||r.length>=e?n:""+Array(e+1-r.length).join(t)+n},m={s:A,z:function(n){var e=-n.utcOffset(),t=Math.abs(e),r=Math.floor(t/60),o=t%60;return(e<=0?"+":"-")+A(r,2,"0")+":"+A(o,2,"0")},m:function n(e,t){if(e.date()<t.date())return-n(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(r,s),i=t-o<0,a=e.clone().add(r+(i?-1:1),s);return+(-(r+(t-o)/(i?o-a:a-o))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:s,y:l,w:c,d:a,D:d,h:i,m:o,s:r,ms:t,Q:u}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return void 0===n}},v="en",g={};g[v]=y;var b=function(n){return n instanceof C},x=function n(e,t,r){var o;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(o=i),t&&(g[i]=t,o=i);var a=e.split("-");if(!o&&a.length>1)return n(a[0])}else{var c=e.name;g[c]=e,o=c}return!r&&o&&(v=o),o||!r&&v},w=function(n,e){if(b(n))return n.clone();var t="object"==typeof e?e:{};return t.date=n,t.args=arguments,new C(t)},E=m;E.l=x,E.i=b,E.w=function(n,e){return w(n,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function y(n){this.$L=x(n.locale,null,!0),this.parse(n)}var A=y.prototype;return A.parse=function(n){this.$d=function(n){var e=n.date,t=n.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return t?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(n),this.$x=n.x||{},this.init()},A.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return!(this.$d.toString()===f)},A.isSame=function(n,e){var t=w(n);return this.startOf(e)<=t&&t<=this.endOf(e)},A.isAfter=function(n,e){return w(n)<this.startOf(e)},A.isBefore=function(n,e){return this.endOf(e)<w(n)},A.$g=function(n,e,t){return E.u(n)?this[e]:this.set(t,n)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(n,e){var t=this,u=!!E.u(e)||e,f=E.p(n),h=function(n,e){var r=E.w(t.$u?Date.UTC(t.$y,e,n):new Date(t.$y,e,n),t);return u?r:r.endOf(a)},p=function(n,e){return E.w(t.toDate()[n].apply(t.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),t)},y=this.$W,A=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case l:return u?h(1,0):h(31,11);case s:return u?h(1,A):h(0,A+1);case c:var g=this.$locale().weekStart||0,b=(y<g?y+7:y)-g;return h(u?m-b:m+(6-b),A);case a:case d:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case r:return p(v+"Milliseconds",3);default:return this.clone()}},A.endOf=function(n){return this.startOf(n,!1)},A.$set=function(n,e){var c,u=E.p(n),f="set"+(this.$u?"UTC":""),h=(c={},c[a]=f+"Date",c[d]=f+"Date",c[s]=f+"Month",c[l]=f+"FullYear",c[i]=f+"Hours",c[o]=f+"Minutes",c[r]=f+"Seconds",c[t]=f+"Milliseconds",c)[u],p=u===a?this.$D+(e-this.$W):e;if(u===s||u===l){var y=this.clone().set(d,1);y.$d[h](p),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},A.set=function(n,e){return this.clone().$set(n,e)},A.get=function(n){return this[E.p(n)]()},A.add=function(t,u){var d,f=this;t=Number(t);var h=E.p(u),p=function(n){var e=w(f);return E.w(e.date(e.date()+Math.round(n*t)),f)};if(h===s)return this.set(s,this.$M+t);if(h===l)return this.set(l,this.$y+t);if(h===a)return p(1);if(h===c)return p(7);var y=(d={},d[o]=n,d[i]=e,d[r]=1e3,d)[h]||1,A=this.$d.getTime()+t*y;return E.w(A,this)},A.subtract=function(n,e){return this.add(-1*n,e)},A.format=function(n){var e=this,t=this.$locale();if(!this.isValid())return t.invalidDate||f;var r=n||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,c=this.$M,s=t.weekdays,u=t.months,l=function(n,t,o,i){return n&&(n[t]||n(e,r))||o[t].slice(0,i)},d=function(n){return E.s(i%12||12,n,"0")},h=t.meridiem||function(n,e,t){var r=n<12?"AM":"PM";return t?r.toLowerCase():r},y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:c+1,MM:E.s(c+1,2,"0"),MMM:l(t.monthsShort,c,u,3),MMMM:l(u,c),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(t.weekdaysMin,this.$W,s,2),ddd:l(t.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:E.s(i,2,"0"),h:d(1),hh:d(2),a:h(i,a,!0),A:h(i,a,!1),m:String(a),mm:E.s(a,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:o};return r.replace(p,(function(n,e){return e||y[n]||o.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(t,d,f){var h,p=E.p(d),y=w(t),A=(y.utcOffset()-this.utcOffset())*n,m=this-y,v=E.m(this,y);return v=(h={},h[l]=v/12,h[s]=v,h[u]=v/3,h[c]=(m-A)/6048e5,h[a]=(m-A)/864e5,h[i]=m/e,h[o]=m/n,h[r]=m/1e3,h)[p]||m,f?v:E.a(v)},A.daysInMonth=function(){return this.endOf(s).$D},A.$locale=function(){return g[this.$L]},A.locale=function(n,e){if(!n)return this.$L;var t=this.clone(),r=x(n,e,!0);return r&&(t.$L=r),t},A.clone=function(){return E.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},y}(),j=C.prototype;return w.prototype=j,[["$ms",t],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",d]].forEach((function(n){j[n[1]]=function(e){return this.$g(e,n[0],n[1])}})),w.extend=function(n,e){return n.$i||(n(e,C,w),n.$i=!0),w},w.locale=x,w.isDayjs=b,w.unix=function(n){return w(1e3*n)},w.en=g[v],w.Ls=g,w.p={},w}()},84110:function(n){n.exports=function(){"use strict";return function(n,e,t){n=n||{};var r=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(n,e,t,o){return r.fromToBase(n,e,t,o)}t.en.relativeTime=o,r.fromToBase=function(e,r,i,a,c){for(var s,u,l,d=i.$locale().relativeTime||o,f=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,p=0;p<h;p+=1){var y=f[p];y.d&&(s=a?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var A=(n.rounding||Math.round)(Math.abs(s));if(l=s>0,A<=y.r||!y.r){A<=1&&p>0&&(y=f[p-1]);var m=d[y.l];c&&(A=c(""+A)),u="string"==typeof m?m.replace("%d",A):m(A,r,y.l,l);break}}if(r)return u;var v=l?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(n,e){return i(n,e,this,!0)},r.from=function(n,e){return i(n,e,this)};var a=function(n){return n.$u?t.utc():t()};r.toNow=function(n){return this.to(a(this),n)},r.fromNow=function(n){return this.from(a(this),n)}}}()},69199:function(n,e,t){var r=t(89881),o=t(98612);n.exports=function(n,e){var t=-1,i=o(n)?Array(n.length):[];return r(n,(function(n,r,o){i[++t]=e(n,r,o)})),i}},66379:function(n,e,t){var r=t(2958),o=t(1499);n.exports=function(n,e){return n===e||r(n,e,o(e))}},35161:function(n,e,t){var r=t(29932),o=t(67206),i=t(69199),a=t(1469);n.exports=function(n,e){return(a(n)?r:i)(n,o(e,3))}},66317:function(){},99918:function(){}}]); +//# sourceMappingURL=GithubPicker.0820539144ef5245d1e9.js.map
\ No newline at end of file |