@withgraphite/graphite-cli 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.CHANGELOG.md +17 -0
- package/1463a26331df3b0b4d694b076097b2dd.node +0 -0
- package/741.js +3 -0
- package/741.js.LICENSE.txt +41 -0
- package/999.js +3 -0
- package/999.js.map +1 -0
- package/build/asset-manifest.json +7 -7
- package/build/index.html +1 -1
- package/build/static/css/{74.67093f40.chunk.css → 521.ea7bdcfc.chunk.css} +1 -1
- package/build/static/css/521.ea7bdcfc.chunk.css.map +1 -0
- package/build/static/css/main.a9f28c16.css +2 -0
- package/build/static/css/main.a9f28c16.css.map +1 -0
- package/build/static/js/521.9e4e25a2.chunk.js +1 -0
- package/build/static/js/521.9e4e25a2.chunk.js.map +1 -0
- package/build/static/js/main.js +1 -1
- package/build/static/js/main.js.map +1 -1
- package/child.js +1 -1
- package/child.js.map +1 -1
- package/graphite.js +1 -1
- package/graphite.js.LICENSE.txt +42 -0
- package/package.json +1 -1
- package/325.js +0 -3
- package/325.js.map +0 -1
- package/903.js +0 -3
- package/903.js.map +0 -1
- package/build/static/css/74.67093f40.chunk.css.map +0 -1
- package/build/static/css/main.c959f863.css +0 -2
- package/build/static/css/main.c959f863.css.map +0 -1
- package/build/static/js/74.ef2afffb.chunk.js +0 -1
- package/build/static/js/74.ef2afffb.chunk.js.map +0 -1
package/build/static/js/main.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see main.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GraphiteInteractive=t():e.GraphiteInteractive=t()}(self,(function(){return function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),i=n(6860),o=n(379),a=n(8206);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},7757:function(e,t,n){e.exports=n(9727)},2212:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(5671),i=n(3144),o=n(5281),a=n(5710),s=new(function(){function e(){var t=this;(0,r.Z)(this,e),this.listenersByType=new Map,this.incomingListener=a.j.onMessage((function(e){var n=(0,o.deserializeFromString)(e.data),r=n.type,i=t.listenersByType.get(r);i&&i.forEach((function(e){return e(n)}))})),this.cwdChangeHandlers=[]}return(0,i.Z)(e,[{key:"dispose",value:function(){this.incomingListener.dispose()}},{key:"onMessageOfType",value:function(e,t){var n=this,r=this.listenersByType.get(e);return null==r&&(r=new Set,this.listenersByType.set(e,r)),null==r||r.add(t),{dispose:function(){var r=n.listenersByType.get(e);r&&r.delete(t)}}}},{key:"nextMessageMatching",value:function(e,t){var n=(0,o.defer)(),r=this.onMessageOfType(e,(function(e){t(e)&&(null==r||r.dispose(),r=null,n.resolve(e))}));return n.promise}},{key:"postMessage",value:function(e){a.j.postMessage((0,o.serializeToString)(e))}},{key:"postMessageWithPayload",value:function(e,t){a.j.postMessage((0,o.serializeToString)(Object.assign(Object.assign({},e),{hasBinaryPayload:!0}))),a.j.postMessage(t)}},{key:"onConnectOrReconnect",value:function(e){var t=!0,n=void 0,r=a.j.onChangeStatus((function(r){"reconnecting"===r.type?t=!0:"open"===r.type&&(t&&(n=e()),t=!1)}));return function(){r.dispose(),"function"==typeof n&&(null==n||n())}}},{key:"onCwdChanged",value:function(e){var t=this;return this.cwdChangeHandlers.push(e),function(){t.cwdChangeHandlers.splice(t.cwdChangeHandlers.indexOf(e),1)}}},{key:"cwdChanged",value:function(){this.cwdChangeHandlers.forEach((function(e){return e()}))}},{key:"onSetup",value:function(e){var t=this.onConnectOrReconnect(e),n=this.onCwdChanged(e);return function(){t(),n()}}}]),e}());window.clientToServerAPI=s},8131:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(184);function i(e){var t=e.children;return(0,r.jsx)("div",Object.assign({className:"empty-state"},{children:(0,r.jsx)("div",{children:t})}))}},5544:function(e,t,n){"use strict";n.d(t,{SV:function(){return h},Wq:function(){return f},_c:function(){return p}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(885),l=n(184),u=n(2791),c=n(8162),d=n(1191);function f(e){var t,n=e.title,r=e.description,i=e.error,o=e.buttons,a=e.hideExpand,d=(0,u.useState)(!1),f=(0,s.Z)(d,2),h=f[0],p=f[1],v=null!=r?r:null==i?void 0:i.message;return(0,l.jsxs)("div",Object.assign({className:"error-notice",onClick:function(){return!a&&p((function(e){return!e}))}},{children:[(0,l.jsxs)("div",Object.assign({className:"error-notice-left"},{children:[a?null:(0,l.jsx)("div",Object.assign({className:"error-notice-arrow"},{children:(0,l.jsx)(c.J,{icon:h?"triangle-down":"triangle-right"})})),(0,l.jsxs)("div",Object.assign({className:"error-notice-content"},{children:[(0,l.jsx)("span",Object.assign({className:"error-notice-title"},{children:n})),v?(0,l.jsx)("span",Object.assign({className:"error-notice-byline"},{children:v})):null,h&&i?(0,l.jsx)("span",Object.assign({className:"error-notice-stack-trace"},{children:null!==(t=i.stack)&&void 0!==t?t:i.message})):null]}))]})),o?(0,l.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:o})):null]}))}var h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).state={error:null},i}return(0,i.Z)(n,[{key:"render",value:function(){return null!=this.state.error?(0,l.jsx)(f,{title:"Something went wrong",error:this.state.error}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),n}(u.Component);function p(e){var t=e.children,n=e.error,r=e.title;return(0,l.jsx)("div",Object.assign({className:"inline-error-badge"},{children:(0,l.jsxs)(d.u,Object.assign({component:v(n,r)},{children:[(0,l.jsx)(c.J,{icon:"error",slot:"start"}),(0,l.jsx)("span",{children:t})]}))}))}function v(e,t){return function(){return(0,l.jsx)("div",Object.assign({className:"inline-error-tooltip"},{children:(0,l.jsx)(f,{title:null!=t?t:e.message,error:e})}))}}},8162:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(184),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e){var t=e.icon,n=e.size,o=e.slot,a=i(e,["icon","size","slot"]);return(0,r.jsx)("div",Object.assign({slot:o,className:"codicon codicon-".concat(t," icon-size-").concat(null!=n?n:"S")},a))}},5710:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r=n(7762),i=n(5671),o=n(3144),a=n(5281),s=n(4004),l=n(9133),u="undefined"!=typeof acquireVsCodeApi?acquireVsCodeApi():null,c=function(){function e(t){(0,i.Z)(this,e),this.vscode=t}return(0,o.Z)(e,[{key:"onMessage",value:function(e){return window.addEventListener("message",e),{dispose:function(){return window.removeEventListener("message",e)}}}},{key:"onChangeStatus",value:function(e){return e({type:"open"}),{dispose:function(){}}}},{key:"postMessage",value:function(e){this.vscode.postMessage(e)}}]),e}(),d=function(){function e(t,n){(0,i.Z)(this,e),this.host=t,this.WebSocketType=n,this.status={type:"initializing"},this.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,this.queuedMessages=[],this.handlers=[],this.statusChangeHandlers=[],this.disposed=!1,this.websocket=this.startConnection()}return(0,o.Z)(e,[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,this.websocket.close())}},{key:"startConnection",value:function(){var t,n=this,i=new URL("ws://".concat(this.host,"/ws")),o=l.l.get("token");o&&i.searchParams.append("token",o);var u=l.l.get("cwd");if(u){var c=decodeURIComponent(u);i.searchParams.append("cwd",c)}var d=null===(t=window.gtiPlatform)||void 0===t?void 0:t.platformName;return d&&i.searchParams.append("platform",d),this.websocket=new this.WebSocketType(i.href),this.websocket.addEventListener("open",(function(t){for(s.k.info("websocket open",t),n.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,n.websocket.addEventListener("message",(function(e){var t,i=(0,r.Z)(n.handlers);try{for(i.s();!(t=i.n()).done;)(0,t.value)(e)}catch(e){i.e(e)}finally{i.f()}}));n.queuedMessages.length>0;){var i=n.queuedMessages[0];n.websocket.send(i),n.queuedMessages.shift()}n.setStatus({type:"open"})})),this.websocket.addEventListener("close",(function(e){e.code!==a.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE?n.disposed||n.scheduleReconnect():n.setStatus({type:"error",error:e.reason})})),this.websocket}},{key:"setStatus",value:function(e){this.status=e,this.statusChangeHandlers.forEach((function(t){return t(e)}))}},{key:"scheduleReconnect",value:function(){var t=this;this.setStatus({type:"reconnecting"}),s.k.info("websocket connecion closed. Retrying in ".concat(this.exponentialReconnectDelay,"ms")),setTimeout((function(){t.startConnection()}),this.exponentialReconnectDelay),this.exponentialReconnectDelay=Math.min(2*this.exponentialReconnectDelay,e.MAX_RECONNECT_CHECK_TIME_MS)}},{key:"onMessage",value:function(e){var t=this;return this.handlers.push(e),{dispose:function(){var n=t.handlers.indexOf(e);-1!==n&&t.handlers.splice(n,1)}}}},{key:"postMessage",value:function(e){"open"===this.status.type?this.websocket.send(e):this.queuedMessages.push(e)}},{key:"onChangeStatus",value:function(e){var t=this;return this.statusChangeHandlers.push(e),e(this.status),{dispose:function(){var n=t.statusChangeHandlers.indexOf(e);-1!==n&&t.statusChangeHandlers.splice(n,1)}}}}]),e}();d.MAX_RECONNECT_CHECK_TIME_MS=6e4,d.DEFAULT_RECONNECT_CHECK_TIME_MS=100;var f=null!=u?new c(u):new d(location.host,WebSocket)},1191:function(e,t,n){"use strict";n.d(t,{cf:function(){return u},u:function(){return c}});var r,i=n(885),o=n(184),a=n(5281),s=n(2791),l=n(4164),u=750;function c(e){var t=e.children,n=e.title,r=e.component,a=e.placement,l=e.trigger,u=e.delayMs,c=e.shouldShow,h=e.inline,p=null!=l?l:"hover",v=null!=a?a:"top",g=(0,s.useState)(!1),m=(0,i.Z)(g,2),y=m[0],b=m[1],w=(0,s.useRef)(null);(0,s.useEffect)((function(){"boolean"==typeof c&&b(c)}),[c]),(0,s.useEffect)((function(){if("click"===p&&y){var e=function(e){d(e)||b(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}}),[y,b,p]),(0,s.useEffect)((function(){if(y){var e=function(e){"keyup"===e.type?"Escape"===e.key&&b(!1):"resize"!==e.type&&d(e)||b(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[y,b]),(0,s.useLayoutEffect)((function(){if("hover"===p||"click"===p&&null!=n){var e=function(){return b((function(e){return"click"!==p||(!0===e?e:"title")}))},t=function(){return b((function(e){return"click"===p&&!0===e&&e}))},r=w.current;return null==r||r.addEventListener("mouseenter",e),null==r||r.addEventListener("mouseleave",t),function(){null==r||r.removeEventListener("mouseenter",e),null==r||r.removeEventListener("mouseleave",t)}}}),[p,n]);var _="click"===p&&!0===y?0:u;return(0,o.jsxs)("div",Object.assign({className:"tooltip-creator ".concat(h?"tooltip-creator-inline":""),ref:w,onClick:"click"===p?function(e){!0===y&&d(e)||(b((function(e){return!0!==e})),e.stopPropagation())}:void 0},{children:[y&&w.current&&(0,o.jsx)(f,Object.assign({delayMs:_,element:w.current,placement:v},{children:"title"===y||null==r?n:r((function(){return b(!1)}))})),t]}))}function d(e){return null!=(0,a.findParentWithClassName)(e.target,"tooltip")}function f(e){var t,n,r=e.element,a=e.placement,u=e.children,c=e.delayMs,d=r.getBoundingClientRect(),f=(0,s.useRef)(null),p=function(e,t){var n=(0,s.useState)({width:0,height:0}),r=(0,i.Z)(n,2),o=r[0],a=r[1];return(0,s.useLayoutEffect)((function(){var t=e.current;if(null!=t){var n=function(){a({width:t.offsetWidth,height:t.offsetHeight})};n();var r=new ResizeObserver((function(e){e.forEach((function(e){e.target===t&&n()}))}));return r.observe(t),function(){return r.disconnect()}}}),[e,t]),o}(f,u),v=function(e,t,n){switch(e){case"top":var r=t.top-5-n.height,i=t.left+t.width/2-n.width/2;return r<0?{top:t.top+t.height+5,left:i,autoPlacement:"bottom"}:{top:r,left:i};case"bottom":return{top:t.top+t.height+5,left:t.left+t.width/2-n.width/2};case"left":return{top:t.top+t.height/2-n.height/2,left:t.left-n.width-5};case"right":return{top:t.top+t.height/2-n.height/2,left:t.right+5}}}(a,d,p),g=function(e,t,n){var r={top:0,left:0},i=document.body.getBoundingClientRect();if("right"===e||"left"===e){var o=t.top-5,a=t.top+5+n.height;o<i.top?r.top=i.top-o:a>i.top+i.height&&(r.top=i.top+i.height-a)}else{var s=t.left-5,l=t.left+5+n.width;s<i.left?r.left=i.left-s:l>i.right&&(r.left=i.left+i.width-l)}return r}(n=null!==(t=v.autoPlacement)&&void 0!==t?t:a,v,p),m=document.body.getBoundingClientRect(),y={animationDelay:c?"".concat(c,"ms"):void 0};return v.left>m.width/2?y.right=m.width-(v.left+g.left+p.width):y.left=v.left+g.left,v.top>m.height/2?y.bottom=m.height-(v.top+g.top+p.height):y.top=v.top+g.top,l.createPortal((0,o.jsxs)("div",Object.assign({ref:f,role:"tooltip",className:"tooltip tooltip-".concat(n)+("string"==typeof u?" simple-text-tooltip":""),style:y},{children:[(0,o.jsx)("div",{className:"tooltip-arrow tooltip-arrow-".concat(n),style:{transform:"translate(".concat(-g.left,"px, ").concat(-g.top,"px)")}}),u]})),h(r))}var h=function(e){if(r)return r;var t=(0,a.unwrap)((0,a.findParentWithClassName)(e,"gti-root"));return r=(0,a.unwrap)(t.querySelector(".tooltip-root-container"))}},3520:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(5281),i=n(4098).LO.box({comparison:{type:r.ComparisonType.UncommittedChanges},visible:!1},{deep:!1})},6526:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(2212),i=n(1485),o=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,i.u)({default:n,setter:function(e){r.H.postMessage({type:"setConfig",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,i=r.H.onMessageOfType("gotConfig",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return i.dispose()}},function(){var e=r.H.onConnectOrReconnect((function(){r.H.postMessage({type:"getConfig",name:t})}));return function(){return e()}}]})}},374:function(e,t,n){"use strict";n.d(t,{SG:function(){return f},XI:function(){return d},t9:function(){return c}});var r=n(7762),i=n(2982),o=n(885),a=n(7757),s=n.n(a),l=s().mark(d),u=function(e,t){return new Date(t.date).getTime()-new Date(e.date).getTime()};function c(e){var t=new Map;return e.forEach((function(e){var n=(0,o.Z)(e.parents,1)[0];if(n){var r=t.get(n);r||(r=new Set,t.set(n,r)),r.add(e)}})),e.filter((function(e){return e.partOfTrunk||0===e.parents.length})).sort(u).map((function e(n){var r,o=n.branch,a=null!==(r=t.get(o))&&void 0!==r?r:[],s=(0,i.Z)(a).sort(u);return{info:n,children:null==s?[]:s.filter((function(e){return!e.partOfTrunk})).map(e)}}))}function d(e){var t,n,i;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,r.Z)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=11;break}if(!((i=n.value).children.length>0)){o.next=7;break}return o.delegateYield(d(i.children),"t0",7);case 7:return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),t.e(o.t1);case 16:return o.prev=16,t.f(),o.finish(16);case 19:case"end":return o.stop()}}),l,null,[[1,13,16,19]])}function f(e,t){var n,i=(0,r.Z)(d([t]));try{for(i.s();!(n=i.n()).done;)if(n.value.info.branch===e)return!0}catch(e){i.e(e)}finally{i.f()}return!1}},7338:function(e,t,n){"use strict";function r(e){var t=e.genKey,n=e.genValue,r={};return function(e){var i=t(e);return i in r||(r[i]=n(e)),r[i]}}n.d(t,{N:function(){return r}})},1485:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(5671),i=n(3144),o=n(7762),a=n(4098);function s(e){var t=new l(e.default,e.setter);if(e.effects){var n,r=(0,o.Z)(e.effects);try{for(r.s();!(n=r.n()).done;)(0,n.value)({setSelf:t.set})}catch(e){r.e(e)}finally{r.f()}}return t}var l=function(){function e(t,n){(0,r.Z)(this,e),this.setter=n,this.value=t,(0,a.rC)(this,{value:a.LO.ref,set:a.aD.bound})}return(0,i.Z)(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value="function"==typeof e?e(this.get()):e,this.setter&&this.setter(this.value)}}]),e}()},4004:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=console},3158:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r,i=n(2212),o={platformName:"browser",confirm:function(e,t){var n=window.confirm(e+"\n"+(null!=t?t:""));return Promise.resolve(n)},openFile:function(e,t){i.H.postMessage({type:"platform/openFile",path:e,options:t})},openExternalLink:function(e){window.open(e,"_blank")},clipboardCopy:function(e){navigator.clipboard.writeText(e)}},a=null!==(r=window.gtiPlatform)&&void 0!==r?r:o;window.gtiPlatform=a},2392:function(e,t,n){"use strict";n.d(t,{Es:function(){return R},JC:function(){return D},Mh:function(){return y},OR:function(){return _},Qz:function(){return U},R0:function(){return M},SC:function(){return k},Tq:function(){return S},WK:function(){return Z},YI:function(){return A},ZB:function(){return j},b8:function(){return $},c$:function(){return T},cC:function(){return w},cM:function(){return m},gi:function(){return O},il:function(){return z},ip:function(){return g},lp:function(){return I},p7:function(){return x},ql:function(){return N},uB:function(){return P},ui:function(){return b},wH:function(){return q},wf:function(){return L},xn:function(){return K},zV:function(){return H}});var r=n(2982),i=n(7762),o=n(5281),a=n(4098),s=n(2791),l=n(2212),u=n(6526),c=n(374),d=n(1485),f=n(5710),h=n(9133),p={smartlogCommits:"",uncommittedChanges:"",mergeConflicts:""},v=(0,d.u)({default:{info:void 0,cwd:void 0},effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("repoInfo",(function(e){t({info:e.info,cwd:e.cwd})}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestRepoInfo"})}))}]}),g=(0,a.Fl)((function(){var e=v.get();return null==e?void 0:e.info}),{set:function(e){v.set((function(t){return Object.assign(Object.assign({},t),{info:e})}))}}),m=(0,d.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("applicationInfo",(function(e){t(e)}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestApplicationInfo"})}))}]}),y=(0,d.u)({default:{type:"initializing"},effects:[function(e){var t=e.setSelf,n=f.j.onChangeStatus(t);return function(){return n.dispose()}}]}),b=(0,a.Fl)((function(){var e,t,n=v.get();return null!==(t=null!==(e=null==n?void 0:n.cwd)&&void 0!==e?e:h.l.get("cwd"))&&void 0!==t?t:""})),w=(0,d.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,files:[]},effects:[E("uncommittedChanges",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{files:null!==(r=null!==(n=e.files.value)&&void 0!==n?n:t.files)&&void 0!==r?r:[],error:e.files.error})}))}))]}),_=(0,a.Fl)((function(){return w.get().files})),x=(0,a.Fl)((function(){return w.get().error})),k=(0,d.u)({default:void 0,effects:[E("mergeConflicts",(function(e,t){(0,t.setSelf)(e)}))]}),O=(0,d.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[E("smartlogCommits",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{commits:null!==(r=null!==(n=e.commits.value)&&void 0!==n?n:t.commits)&&void 0!==r?r:[],error:e.commits.error})}))}))]}),C=(0,a.Fl)((function(){return O.get().commits})),j=(0,a.Fl)((function(){return O.get().error})),S=(0,a.Fl)((function(){var e=new Map;return C.get().forEach((function(t){e.set(t.branch,t)})),e}));function E(e,t){return function(n){var r=(0,o.randomId)();p[e]=r;var i=l.H.onMessageOfType("subscriptionResult",(function(i){i.subscriptionID===r&&i.kind===e&&t(i.data,n)})),a=l.H.onSetup((function(){return l.H.postMessage({type:"subscribe",kind:e,subscriptionID:r}),function(){return l.H.postMessage({type:"unsubscribe",kind:e,subscriptionID:r})}}));return function(){i.dispose(),a()}}}(0,u.X)({config:"gti.experimental-features",default:null});var A=(0,d.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(){t(!1)})),l.H.onMessageOfType("beganFetchingSmartlogCommitsEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),T=(0,d.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"smartlogCommits"===e.kind&&t(!1)})),l.H.onMessageOfType("beganLoadingMoreCommits",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),D=(0,d.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"uncommittedChanges"===e.kind&&t(!1)})),l.H.onMessageOfType("beganFetchingUncommittedChangesEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),R=(0,d.u)({default:o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD)}))},function(e){var t=e.setSelf,n=[l.H.onMessageOfType("commitsShownRange",(function(e){t(e.rangeInDays)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),I=(0,a.Fl)((function(){var e=C.get();return(0,c.t9)(e)})),N=(0,a.Fl)((function(){return C.get().find((function(e){return e.isHead}))})),P=(0,a.Fl)((function(){var e,t=I.get(),n=new Map,r=(0,i.Z)((0,c.XI)(t));try{for(r.s();!(e=r.n()).done;){var o=e.value;n.set(o.info.branch,o)}}catch(e){r.e(e)}finally{r.f()}return n})),M=(0,a.Fl)((function(){return C.get().length>0})),L=(0,d.u)({default:void 0,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(void 0)}))}]}),Z=(0,a.Fl)((function(){var e=g.get();return"success"===(null==e?void 0:e.type)&&"none"!==e.codeReviewSystem.type}));function F(e,t){var n;if((null===(n=t.currentOperation)||void 0===n?void 0:n.operation.id)===e.id)return Object.assign({},t);var i=(0,r.Z)(t.operationHistory);null!=t.currentOperation&&i.push(t.currentOperation);var o={operation:e,startTime:new Date};return Object.assign(Object.assign({},t),{operationHistory:i,currentOperation:o})}var z=(0,d.u)({default:{currentOperation:void 0,operationHistory:[]},effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t({currentOperation:void 0,operationHistory:[]})}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"spawn":t((function(t){var n=t,r=B.get(e.id);return null==r?t:F(r,n)}));break;case"stdout":case"stderr":t((function(t){var n;if(null==t)return t;var i=t.currentOperation;return i?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},i),{commandOutput:[].concat((0,r.Z)(null!==(n=null==i?void 0:i.commandOutput)&&void 0!==n?n:[]),[e.message])})}):t}));break;case"exit":t((function(t){if(null==t)return t;var n=t.currentOperation;return n?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},n),{exitCode:e.exitCode,endTime:new Date(e.timestamp)})}):t}))}}));return function(){return n.dispose()}}]}),B=new Map,H=(0,d.u)({default:[],effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t([])}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"queue":case"spawn":t((function(){return e.queue.map((function(e){return B.get(e)})).filter((function(e){return null!=e}))}));break;case"error":t((function(){return[]}));break;case"exit":t((function(t){return B.delete(e.id),null!=e.exitCode&&0!==e.exitCode?[]:t}))}}));return function(){return n.dispose()}}]});function V(e){l.H.postMessage({type:"runOperation",operation:{args:e.getArgs(),id:e.id,stdin:e.getStdin(),runner:e.runner,trackEventName:e.trackEventName}}),B.set(e.id,e);var t=z.get();if(null!=(null==t?void 0:t.currentOperation)&&null==t.currentOperation.exitCode){var n=H.get();H.set([].concat((0,r.Z)(n||[]),[e]))}else z.set((function(t){return F(e,t)}))}function U(){return(0,s.useCallback)((function(e){V(e)}),[])}function K(){return(0,s.useCallback)((function(e){var t,n;l.H.postMessage({type:"abortRunningOperation",operationId:e});var r=z.get();(null===(n=null===(t=null==r?void 0:r.currentOperation)||void 0===t?void 0:t.operation)||void 0===n?void 0:n.id)===e&&z.set((function(e){var t=e.currentOperation;return null!=t?Object.assign(Object.assign({},e),{currentOperation:Object.assign({aborting:!0},t)}):e}))}),[])}function q(){return(0,s.useCallback)((function(e){if(e)L.set(void 0);else{var t=L.get();L.set(void 0),t&&V(t)}}),[])}function $(){return(0,s.useCallback)((function(){z.set((function(e){for(var t=(0,r.Z)(e.operationHistory),n=0;n<t.length;n++)null!=t[n].exitCode&&(t[n].hasCompletedOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedOptimisticState:!0})),t[n].hasCompletedUncommittedChangesOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedUncommittedChangesOptimisticState:!0})),t[n].hasCompletedMergeConflictsOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedMergeConflictsOptimisticState:!0})));var i=null==e.currentOperation?void 0:Object.assign({},e.currentOperation);return null!=(null==i?void 0:i.exitCode)&&(i.hasCompletedOptimisticState=!0,i.hasCompletedUncommittedChangesOptimisticState=!0,i.hasCompletedMergeConflictsOptimisticState=!0),{currentOperation:i,operationHistory:t}}))}),[])}},4439:function(e,t,n){"use strict";n.d(t,{s:function(){return f},X:function(){return d}});var r,i,o,a=n(184),s=n(32),l=n(1485),u=n(3158),c="gti-color-theme",d=(0,l.u)({default:null!==(o=null!==(i=null===(r=u.J.theme)||void 0===r?void 0:r.getTheme())&&void 0!==i?i:localStorage.getItem(c))&&void 0!==o?o:"dark",setter:function(e){localStorage.setItem(c,e)},effects:[function(e){var t,n=e.setSelf,r=null===(t=u.J.theme)||void 0===t?void 0:t.onDidChangeTheme((function(e){n(e)}));return function(){return null==r?void 0:r.dispose()}}]}),f=(0,s.Pi)((function(e){var t=e.children,n=d.get();return(0,a.jsx)("div",Object.assign({className:"gti-root ".concat(n,"-theme")},{children:t}))}))},9133:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(2982),i=n(4004),o=n(4790),a="GTIInitialParams",s=function(){var e;if(window.location.search&&(e=new Map((0,r.Z)(new URLSearchParams(window.location.search).entries())),i.k.log("Loaded initial params from URL: ",e),"browser"===(0,o.iD)())){try{localStorage.setItem(a,JSON.stringify((0,r.Z)(e.entries())))}catch(e){i.k.log("Failed to save initial params to local storage",e)}window.history.replaceState({},document.title,window.location.pathname),i.k.log("Saved initial params to local storage")}if(!e)try{var t=localStorage.getItem(a);e=new Map(t?JSON.parse(t):[]),i.k.log("Loaded initial params from local storage: ",e)}catch(e){i.k.log("Failed to load initial params from local storage",e)}return null!=e?e:new Map}()},4790:function(e,t,n){"use strict";function r(e){return e.next().value}function i(e,t){if(!e)throw new Error(t)}function o(){var e,t;return null!==(t=null===(e=window.gtiPlatform)||void 0===e?void 0:e.platformName)&&void 0!==t?t:"browser"}function a(){return document.body.clientWidth}n.d(t,{Zn:function(){return r},hu:function(){return i},iD:function(){return o},wn:function(){return a}})},8262:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},32:function(e,t,n){"use strict";n.d(t,{Pi:function(){return k}});var r=n(4098),i=n(2791);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.rC)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(4164);function a(e){return(0,r.Gf)(e)}var s="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function l(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+u}}var u=1e4,c=s?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=l(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(s):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=l(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),d=c.addReactionToTrack,f=c.recordReactionAsCommitted,h=(c.resetCleanupScheduleForTests,c.forceCleanupTimerToRunNowForTests,!1);function p(){return h}var v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function g(e){return"observer".concat(e)}var m=function(){};function y(){return new m}function b(e,t){if(void 0===t&&(t="observed"),p())return e();var n=v(i.useState(y),1)[0],o=v(i.useState(),2)[1],s=function(){return o([])},l=i.useRef(null);if(!l.current)var u=new r.le(g(t),(function(){c.mounted?s():c.changedBeforeMount=!0})),c=d(l,u,n);var h,m,b=l.current.reaction;if(i.useDebugValue(b,a),i.useEffect((function(){return f(l),l.current?(l.current.mounted=!0,l.current.changedBeforeMount&&(l.current.changedBeforeMount=!1,s())):(l.current={reaction:new r.le(g(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){l.current.reaction.dispose(),l.current=null}}),[]),b.track((function(){try{h=e()}catch(e){m=e}})),m)throw m;return h}var w="function"==typeof Symbol&&Symbol.for,_=w?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,x=w?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function k(e,t){var n;if(x&&e.$$typeof===x)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(p())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(_&&e.$$typeof===_&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,l,u=function(e,t){return b((function(){return o(e,t)}),a)};return""!==a&&(u.displayName=a),e.contextTypes&&(u.contextTypes=e.contextTypes),r&&(u=(0,i.forwardRef)(u)),u=(0,i.memo)(u),s=e,l=u,Object.keys(s).forEach((function(e){C[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(s,e))})),u}var O,C={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(O=o.unstable_batchedUpdates)||(O=function(e){e()}),(0,r.jQ)({reactionScheduler:O})},4098:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{EH:function(){return Dt},Ei:function(){return jn},Fl:function(){return Te},Gf:function(){return Bt},LJ:function(){return In},LO:function(){return je},M5:function(){return Gt},N7:function(){return tn},PS:function(){return nn},Pb:function(){return Vn},U5:function(){return Nt},XP:function(){return en},aD:function(){return St},dw:function(){return zt},eJ:function(){return Qt},jQ:function(){return Ft},kS:function(){return nr},le:function(){return vt},rC:function(){return fn},so:function(){return V},vP:function(){return Rn},z:function(){return At}});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,u=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function p(){f||r("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function m(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function w(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function _(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){l(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){l(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function O(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function C(e){return e instanceof Map}function j(e){return e instanceof Set}var S=void 0!==Object.getOwnPropertySymbols,E="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:S?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function A(e){return null===e?null:"object"==typeof e?""+e:e}function T(e,t){return u.hasOwnProperty.call(e,t)}var D=Object.getOwnPropertyDescriptors||function(e){var t={};return E(e).forEach((function(n){t[n]=s(e,n)})),t};function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function P(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var z=Symbol("mobx-stored-annotations");function B(e){return Object.assign((function(t,n){H(t,n,e)}),e)}function H(e,t,n){T(e,z)||x(e,z,N({},e[z])),function(e){return e.annotationType_===J}(n)||(e[z][t]=n)}var V=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return ht(this)},t.reportChanged=function(){dt(),pt(this),ft()},t.toString=function(){return this.name_},e}(),K=O("Atom",U);function q(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new U(e);return t!==g&&Lt(Pt,r,t,void 0),n!==g&&Mt(r,n),r}var $={identity:function(e,t){return e===t},structural:function(e,t){return or(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return or(e,t,1)}};function Y(e,t,n){return Xt(e)?e:Array.isArray(e)?je.array(e,{name:n}):w(e)?je.object(e,void 0,{name:n}):C(e)?je.map(e,{name:n}):j(e)?je.set(e,{name:n}):"function"!=typeof e||Tt(e)||Wt(e)?e:_(e)?$t(e):Et(n,e)}function W(e){return e}var J="override";function G(e,t){return{annotationType_:e,options_:t,make_:Q,extend_:X}}function Q(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Tt(n.value))return 1;var o=ee(e,this,t,n,!1);return l(r,t,o),2}function X(e,t,n,r){var i=ee(e,this,t,n);return e.defineProperty_(t,i,r)}function ee(e,t,n,r,i){var o,a,s,l,u,c,d,f;void 0===i&&(i=st.safeDescriptors),f=r,t.annotationType_,f.value;var h,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:Me(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),p,null!=(l=null==(u=t.options_)?void 0:u.autoAction)&&l,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re}}function ne(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!T(e.target_,t)||!Wt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Wt(n.value))return 1;var o=ie(e,this,0,n,!1,!1);return l(r,t,o),2}function re(e,t,n,r){var i,o=ie(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ie(e,t,n,r,i,o){var a;void 0===o&&(o=st.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return Wt(l)||(l=$t(l)),i&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:l,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get}(0,this,0,n),e.defineComputedProperty_(t,N({},this.options_,{get:n.get,set:n.set}),r)}function le(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:ce}}function ue(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Y,r)}var de=fe();function fe(e){return{annotationType_:"true",options_:e,make_:he,extend_:pe}}function he(e,t,n,r){var i,o,a,s;if(n.get)return Te.make_(e,t,n,r);if(n.set){var u=Me(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!st.safeDescriptors||e.isPlainObject_,set:u})?0:2:(l(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"==typeof n.value)return _(n.value)?(null!=(s=this.options_)&&s.autoBind?$t.bound:$t).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Et.bound:Et).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?je.ref:je;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function pe(e,t,n,r){var i,o,a;return n.get?Te.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!st.safeDescriptors||e.isPlainObject_,set:Me(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?je.ref:je).extend_(e,t,n,r))}var ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(e){return e||ve}Object.freeze(ve);var me=le("observable"),ye=le("observable.ref",{enhancer:W}),be=le("observable.shallow",{enhancer:function(e,t,n){return null==e||Vn(e)||jn(e)||In(e)||Mn(e)?e:Array.isArray(e)?je.array(e,{name:n,deep:!1}):w(e)?je.object(e,void 0,{name:n,deep:!1}):C(e)?je.map(e,{name:n,deep:!1}):j(e)?je.set(e,{name:n,deep:!1}):void 0}}),we=le("observable.struct",{enhancer:function(e,t){return or(e,t)?t:e}}),_e=B(me);function xe(e){return!0===e.deep?Y:!1===e.deep?W:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Y}(e.defaultDecorator)}function ke(e,t,n){if(!y(t))return Xt(e)?e:w(e)?je.object(e,t,n):Array.isArray(e)?je.array(e,t):C(e)?je.map(e,t):j(e)?je.set(e,t):"object"==typeof e&&null!==e?e:je.box(e,t);H(e,t,me)}Object.assign(ke,_e);var Oe,Ce,je=a(ke,{box:function(e,t){var n=ge(t);return new He(e,xe(n),n.name,!0,n.equals)},array:function(e,t){var n=ge(t);return(!1===st.useProxies||!1===n.proxy?er:mn)(e,xe(n),n.name)},map:function(e,t){var n=ge(t);return new Rn(e,xe(n),n.name)},set:function(e,t){var n=ge(t);return new Pn(e,xe(n),n.name)},object:function(e,t,n){return zt(!1===st.useProxies||!1===(null==n?void 0:n.proxy)?zn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=zn(e,t))[V]).proxy_)?r:n.proxy_=new Proxy(e,on)}({},n),e,t)},ref:B(ye),shallow:B(be),deep:_e,struct:B(we)}),Se="computed",Ee=oe(Se),Ae=oe("computed.struct",{equals:$.structural}),Te=function(e,t){if(y(t))return H(e,t,Ee);if(w(e))return B(oe(Se,e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ke(n)};Object.assign(Te,Ee),Te.struct=B(Ae);var De,Re=0,Ie=1,Ne=null!=(Oe=null==(Ce=s((function(){}),"name"))?void 0:Ce.configurable)&&Oe,Pe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Me(e,t,n,r){function i(){return Le(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Ne&&(Pe.value=e,Object.defineProperty(i,"name",Pe)),i}function Le(e,t,n,i,o){var a=function(e,t,n,r){var i=st.trackingDerivation,o=!t||!i;dt();var a=st.allowStateChanges;o&&(Xe(),a=Fe(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:tt(!0),notifySpy_:!1,startTime_:0,actionId_:Ie++,parentActionId_:Re};return Re=s.actionId_,s}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Re!==e.actionId_&&r(30),Re=e.parentActionId_,void 0!==e.error_&&(st.suppressReactionErrors=!0),ze(e.prevAllowStateChanges_),nt(e.prevAllowStateReads_),ft(),e.runAsAction_&&et(e.prevDerivation_),st.suppressReactionErrors=!1}(a)}}function Ze(e,t){var n=Fe(e);try{return t()}finally{ze(n)}}function Fe(e){var t=st.allowStateChanges;return st.allowStateChanges=e,t}function ze(e){st.allowStateChanges=e}De=Symbol.toPrimitive;var Be,He=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=$.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}P(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==st.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(an(this)){var t=ln(this,{object:this,type:pn,newValue:e});if(!t)return st.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?st.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&dn(this,{type:pn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return sn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:pn,newValue:this.value_,oldValue:void 0}),cn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return A(this.get())},n[De]=function(){return this.valueOf()},t}(U);Be=Symbol.toPrimitive;var Ve,Ue,Ke=function(){function e(e){this.dependenciesState_=Ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new $e(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ue.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Me("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ve.UP_TO_DATE_&&(e.lowestObserverState_=Ve.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(e.dependenciesState_=Ve.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==st.inBatch||0!==this.observers_.size||this.keepAlive_){if(ht(this),We(this)){var e=st.trackingContext;this.keepAlive_&&!e&&(st.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ve.STALE_&&(e.lowestObserverState_=Ve.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ve.POSSIBLY_STALE_?t.dependenciesState_=Ve.STALE_:t.dependenciesState_===Ve.UP_TO_DATE_&&(e.lowestObserverState_=Ve.UP_TO_DATE_)})))}(this),st.trackingContext=e}}else We(this)&&(this.warnAboutUntrackedRead_(),dt(),this.value_=this.computeValue_(!1),ft());var t=this.value_;if(Ye(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ve.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Ye(e)||Ye(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Fe(!1);if(e)t=Je(this,this.derivation,this.scope_);else if(!0===st.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new $e(e)}return ze(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Ge(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Dt((function(){var o=n.get();if(!r||t){var a=Xe();e({observableKind:"computed",debugObjectName:n.name_,type:pn,object:n,newValue:o,oldValue:i}),et(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return A(this.get())},t[Be]=function(){return this.valueOf()},e}(),qe=O("ComputedValue",Ke);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ve||(Ve={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ue||(Ue={}));var $e=function(e){this.cause=void 0,this.cause=e};function Ye(e){return e instanceof $e}function We(e){switch(e.dependenciesState_){case Ve.UP_TO_DATE_:return!1;case Ve.NOT_TRACKING_:case Ve.STALE_:return!0;case Ve.POSSIBLY_STALE_:for(var t=tt(!0),n=Xe(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(qe(a)){if(st.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return et(n),nt(t),!0}if(e.dependenciesState_===Ve.STALE_)return et(n),nt(t),!0}}return rt(e),et(n),nt(t),!1}}function Je(e,t,n){var r=tt(!0);rt(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++st.runId;var i,o=st.trackingDerivation;if(st.trackingDerivation=e,st.inBatch++,!0===st.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new $e(e)}return st.inBatch--,st.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ve.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue_&&ut(l,e),l.diffValue_=0}for(;i--;){var u=n[i];1===u.diffValue_&&(u.diffValue_=0,lt(u,e))}r!==Ve.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),nt(r),i}function Ge(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)ut(t[n],e);e.dependenciesState_=Ve.NOT_TRACKING_}function Qe(e){var t=Xe();try{return e()}finally{et(t)}}function Xe(){var e=st.trackingDerivation;return st.trackingDerivation=null,e}function et(e){st.trackingDerivation=e}function tt(e){var t=st.allowStateReads;return st.allowStateReads=e,t}function nt(e){st.allowStateReads=e}function rt(e){if(e.dependenciesState_!==Ve.UP_TO_DATE_){e.dependenciesState_=Ve.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ve.UP_TO_DATE_}}var it=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ot=!0,at=!1,st=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ot=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new it).version&&(ot=!1),ot?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new it):(setTimeout((function(){at||r(35)}),1),new it)}();function lt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ut(e,t){e.observers_.delete(t),0===e.observers_.size&&ct(e)}function ct(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,st.pendingUnobservations.push(e))}function dt(){st.inBatch++}function ft(){if(0==--st.inBatch){mt();for(var e=st.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Ke&&n.suspend_())}st.pendingUnobservations=[]}}function ht(e){var t=st.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&st.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&st.inBatch>0&&ct(e),!1)}function pt(e){e.lowestObserverState_!==Ve.STALE_&&(e.lowestObserverState_=Ve.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ve.STALE_})))}var vt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ve.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ue.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,st.pendingReactions.push(this),mt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){dt(),this.isScheduled_=!1;var e=st.trackingContext;if(st.trackingContext=this,We(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}st.trackingContext=e,ft()}},t.track=function(e){if(!this.isDisposed_){dt(),this.isRunning_=!0;var t=st.trackingContext;st.trackingContext=this;var n=Je(this,e,void 0);st.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Ge(this),Ye(n)&&this.reportExceptionInDerivation_(n.cause),ft()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(st.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";st.suppressReactionErrors||console.error(n,e),st.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(dt(),Ge(this),ft()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[V]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return st.trackingDerivation;case 1:return tr(e[0]);case 2:return tr(e[0],e[1])}}(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ue.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Ue.BREAK:Ue.LOG}(this,e)},e}(),gt=function(e){return e()};function mt(){st.inBatch>0||st.isRunningReactions||gt(yt)}function yt(){st.isRunningReactions=!0;for(var e=st.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}st.isRunningReactions=!1}var bt=O("Reaction",vt),wt="action",_t="autoAction",xt=G(wt),kt=G("action.bound",{bound:!0}),Ot=G(_t,{autoAction:!0}),Ct=G("autoAction.bound",{autoAction:!0,bound:!0});function jt(e){return function(t,n){return m(t)?Me(t.name||"<unnamed action>",t,e):m(n)?Me(t,n,e):y(n)?H(t,n,e?Ot:xt):y(t)?B(G(e?_t:wt,{name:t,autoAction:e})):void 0}}var St=jt(!1);Object.assign(St,xt);var Et=jt(!0);function At(e){return Le(e.name,!1,e,this,void 0)}function Tt(e){return m(e)&&!0===e.isMobxAction}function Dt(e,t){var n,r;void 0===t&&(t=d);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=It(t),s=!1;i=new vt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(l)})))}),t.onError,t.requiresObservable)}else i=new vt(o,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(Et,Ot),St.bound=B(kt),Et.bound=B(Ct);var Rt=function(e){return e()};function It(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Rt}function Nt(e,t,n){var r;void 0===n&&(n=d);var i,o,a,s,l=null!=(r=n.name)?r:"Reaction",u=St(l,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=It(n),h=!0,p=!1,v=n.compareStructural?$.structural:n.equals||$.default,g=new vt(l,(function(){h||c?m():p||(p=!0,f(m))}),n.onError,n.requiresObservable);function m(){if(p=!1,!g.isDisposed_){var t=!1;g.track((function(){var n=Ze(!1,(function(){return e(g)}));t=h||!v(a,n),s=a,a=n})),(h&&n.fireImmediately||!h&&t)&&u(a,s,g),h=!1}}return g.schedule_(),g.getDisposer_()}var Pt="onBO";function Mt(e,t,n){return Lt("onBUO",e,t,n)}function Lt(e,t,n,r){var i="function"==typeof r?tr(t,n):tr(t),o=m(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Zt="always";function Ft(e){!0===e.isolateGlobalState&&function(){if((st.pendingReactions.length||st.inBatch||st.isRunningReactions)&&r(36),at=!0,ot){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),st=new it}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(st.useProxies=t===Zt||"never"!==t&&"undefined"!=typeof Proxy),"ifavailable"===t&&(st.verifyProxies=!0),void 0!==n){var i=n===Zt?Zt:"observed"===n;st.enforceActions=i,st.allowStateChanges=!0!==i&&i!==Zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(st[t]=!!e[t])})),st.allowStateReads=!st.observableRequiresReaction,e.reactionScheduler&&function(e){var t=gt;gt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function zt(e,t,n,r){var i=D(t),o=zn(e,r)[V];dt();try{E(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{ft()}return e}function Bt(e,t){return Ht(tr(e,t))}function Ht(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Ht)),n}var Vt=0;function Ut(){this.message="FLOW_CANCELLED"}Ut.prototype=Object.create(Error.prototype);var Kt=te("flow"),qt=te("flow.bound",{bound:!0}),$t=Object.assign((function(e,t){if(y(t))return H(e,t,Kt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Vt,o=St(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=St(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function u(e){var t;a=void 0;try{t=St(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!m(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,u);e.then(c,n)}e=n,l(void 0)}));return s.cancel=St(r+" - runid: "+i+" - cancel",(function(){try{a&&Yt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Yt(n),e(new Ut)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Kt);function Yt(e){m(e.cancel)&&e.cancel()}function Wt(e){return!0===(null==e?void 0:e.isMobXFlow)}function Jt(e,t){if(void 0===t)return qe(e);if(!1===Vn(e))return!1;if(!e[V].values_.has(t))return!1;var n=tr(e,t);return qe(n)}function Gt(e){return Jt(e)}function Qt(e,t){return Jt(e,t)}function Xt(e){return function(e,t){return!!e&&(Vn(e)||!!e[V]||K(e)||bt(e)||qe(e))}(e)}function en(e){return Vn(e)?e[V].keys_():In(e)||Mn(e)?Array.from(e.keys()):jn(e)?e.map((function(e,t){return t})):void r(5)}function tn(e,t,n,r){return m(n)?function(e,t,n,r){return nr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return nr(e).observe_(t,n)}(e,t,n)}function nn(e,t){void 0===t&&(t=void 0),dt();try{return e.apply(t)}finally{ft()}}function rn(e){return e[V]}$t.bound=B(qt);var on={has:function(e,t){return rn(e).has_(t)},get:function(e,t){return rn(e).get_(t)},set:function(e,t,n){var r;return!!y(t)&&(null==(r=rn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(t)&&(null==(n=rn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=rn(e).defineProperty_(t,n))||r},ownKeys:function(e){return rn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function an(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function sn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=Xe();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{et(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=Xe(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);et(n)}}function fn(e,t,n){var r=zn(e,n)[V];dt();try{null!=t||(t=function(e){return T(e,z)||x(e,z,N({},e[z])),e[z]}(e)),E(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ft()}return e}var hn="splice",pn="update",vn={get:function(e,t){var n=e[V];return t===V?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?T(yn,t)?yn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[V];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},gn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return sn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Xn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),an(this)){var o=ln(this,{object:this.proxy_,type:hn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,type:pn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&dn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:hn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&dn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(an(this)){var o=ln(this,{type:pn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function mn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),p();var i=new gn(n,t,r,!1);k(i.values_,V,i);var o=new Proxy(i.values_,vn);if(i.proxy_=o,e&&e.length){var a=Fe(!0);i.spliceWithArray_(0,0,e),ze(a)}return o}var yn={clear:function(){return this.splice(0)},replace:function(e){var t=this[V];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[V];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[V].spliceWithArray_(e,t,n)},push:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return st.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){st.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[V],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function bn(e,t){"function"==typeof Array.prototype[e]&&(yn[e]=t(e))}function wn(e){return function(){var t=this[V];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function _n(e){return function(t,n){var r=this,i=this[V];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function xn(e){return function(){var t=this,n=this[V];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}bn("concat",wn),bn("flat",wn),bn("includes",wn),bn("indexOf",wn),bn("join",wn),bn("lastIndexOf",wn),bn("slice",wn),bn("toString",wn),bn("toLocaleString",wn),bn("every",_n),bn("filter",_n),bn("find",_n),bn("findIndex",_n),bn("flatMap",_n),bn("forEach",_n),bn("map",_n),bn("some",_n),bn("reduce",xn),bn("reduceRight",xn);var kn,On,Cn=O("ObservableArrayAdministration",gn);function jn(e){return b(e)&&Cn(e[V])}var Sn={},En="add",An="delete";kn=Symbol.iterator,On=Symbol.toStringTag;var Tn,Dn,Rn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=Sn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,m(Map)||r(18),this.keysAtom_=q("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Ze(!0,(function(){i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!st.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new He(this.has_(e),W,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Mt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(an(this)){var r=ln(this,{type:n?pn:En,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,an(this)&&!ln(this,{type:An,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:An,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return nn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&dn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==st.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:pn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&dn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,nn((function(){var r,i=new He(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:En,object:this,name:e,newValue:t}:null;r&&dn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return lr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return lr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[kn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=F(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return In(e)&&(e=new Map(e)),nn((function(){w(e)?function(e){var t=Object.keys(e);if(!S)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return u.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):C(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;nn((function(){Qe((function(){for(var t,n=F(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return nn((function(){for(var n,i=function(e){if(C(e)||In(e))return e;if(Array.isArray(e))return new Map(e);if(w(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=F(t.data_.keys());!(n=s()).done;){var l=n.value;if(!i.has(l))if(t.delete(l))a=!0;else{var u=t.data_.get(l);o.set(l,u)}}for(var c,d=F(i.entries());!(c=d()).done;){var f=c.value,h=f[0],p=f[1],v=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var g=t.data_.get(h);o.set(h,g),v||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),y=o.keys(),b=m.next(),_=y.next();!b.done;){if(b.value!==_.value){t.keysAtom_.reportChanged();break}b=m.next(),_=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},I(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:On,get:function(){return"Map"}}]),e}(),In=O("ObservableMap",Rn),Nn={};Tn=Symbol.iterator,Dn=Symbol.toStringTag;var Pn=function(){function e(e,t,n){void 0===t&&(t=Y),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[V]=Nn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,m(Set)||r(22),this.atom_=q(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;nn((function(){Qe((function(){for(var t,n=F(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=F(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,an(this)&&!ln(this,{type:En,object:this,newValue:e}))return this;if(!this.has(e)){nn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:En,object:this,newValue:e}:null;n&&dn(this,r)}return this},t.delete=function(e){var t=this;if(an(this)&&!ln(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return nn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&dn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return lr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return lr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Mn(e)&&(e=new Set(e)),nn((function(){Array.isArray(e)||j(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Tn]=function(){return this.values()},I(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Dn,get:function(){return"Set"}}]),e}(),Mn=O("ObservableSet",Pn),Ln=Object.create(null),Zn="remove",Fn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=de),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=w(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Ke)return n.set(t),!0;if(an(this)){var r=ln(this,{type:pn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==st.UNCHANGED){var i=un(this),o=i?{type:pn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&dn(this,o)}return!0},t.get_=function(e){return st.trackingDerivation&&!T(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),T(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!st.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new He(e in this.target_,W,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[z])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==u;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Un(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Un(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{dt();var r=this.delete_(e);if(!r)return r;if(an(this)){var i=ln(this,{object:this.proxy_||this.target_,name:e,type:En,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=N({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else l(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ft()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{dt();var i=this.delete_(e);if(!i)return i;if(an(this)){var o=ln(this,{object:this.proxy_||this.target_,name:e,type:En,newValue:t});if(!o)return null;t=o.newValue}var a=Hn(e),s={configurable:!st.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else l(this.target_,e,s);var u=new He(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{ft()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{dt();var r=this.delete_(e);if(!r)return r;if(an(this)&&!ln(this,{object:this.proxy_||this.target_,name:e,type:En,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Hn(e),o={configurable:!st.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else l(this.target_,e,o);this.values_.set(e,new Ke(t)),this.notifyPropertyAddition_(e,void 0)}finally{ft()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!T(this.target_,e))return!0;if(an(this)&&!ln(this,{object:this.proxy_||this.target_,name:e,type:Zn}))return null;try{var n,r;dt();var i,o=un(this),a=this.values_.get(e),l=void 0;if(!a&&o&&(l=null==(i=s(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof He&&(l=a.value_),pt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var u={type:Zn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:l,name:e};o&&dn(this,u)}}finally{ft()}return!0},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=un(this);if(i){var o=i?{type:En,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&dn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),E(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function zn(e,t){var n;if(T(e,V))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Fn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:fe(e):void 0}(t));return x(e,V,i),e}var Bn=O("ObservableObjectAdministration",Fn);function Hn(e){return Ln[e]||(Ln[e]={get:function(){return this[V].getObservablePropValue_(e)},set:function(t){return this[V].setObservablePropValue_(e,t)}})}function Vn(e){return!!b(e)&&Bn(e[V])}function Un(e,t,n){var r;null==(r=e.target_[z])||delete r[n]}var Kn,qn,$n=Gn(0),Yn=0,Wn=function(){};Kn=Wn,qn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,qn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=qn:Kn.prototype=qn;var Jn=function(e,t,n){function r(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new gn(r,n,i,!0);if(a.proxy_=L(o),k(L(o),V,a),t&&t.length){var s=Fe(!0);o.spliceWithArray(0,0,t),ze(s)}return Object.defineProperty(L(o),"0",$n),o}P(r,e);var i=r.prototype;return i.concat=function(){this[V].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return jn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return lr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},I(r,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(e){this[V].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(Wn,Symbol.toStringTag,Symbol.iterator);function Gn(e){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(e)},set:function(t){this[V].set_(e,t)}}}function Qn(e){l(Jn.prototype,""+e,Gn(e))}function Xn(e){if(e>Yn){for(var t=Yn;t<e+100;t++)Qn(t);Yn=e}}function er(e,t,n){return new Jn(e,t,n)}function tr(e,t){if("object"==typeof e&&null!==e){if(jn(e))return void 0!==t&&r(23),e[V].atom_;if(Mn(e))return e[V];if(In(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,rr(e)),n}if(Vn(e)){if(!t)return r(26);var i=e[V].values_.get(t);return i||r(27,t,rr(e)),i}if(K(e)||qe(e)||bt(e))return e}else if(m(e)&&bt(e[V]))return e[V];r(28)}function nr(e,t){return e||r(29),void 0!==t?nr(tr(e,t)):K(e)||qe(e)||bt(e)||In(e)||Mn(e)?e:e[V]?e[V]:void r(24,e)}function rr(e,t){var n;if(void 0!==t)n=tr(e,t);else{if(Tt(e))return e.name;n=Vn(e)||In(e)||Mn(e)?nr(e):tr(e)}return n.name_}Object.entries(yn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&x(Jn.prototype,t,n)})),Xn(1e3);var ir=u.toString;function or(e,t,n){return void 0===n&&(n=-1),ar(e,t,n)}function ar(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=ir.call(e);if(a!==ir.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=sr(e),t=sr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(m(l)&&l instanceof l&&m(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!ar(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!T(t,d=f[c])||!ar(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function sr(e){return jn(e)?e.slice():C(e)||In(e)||j(e)||Mn(e)?Array.from(e.entries()):e}function lr(e){return e[Symbol.iterator]=ur,e}function ur(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:rr},$mobx:V})},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var M,L=Object.assign;function Z(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Z(e):""}function B(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case x:return"Portal";case C:return"Profiler";case O:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){G(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,ke=null,Oe=null;function Ce(e){if(e=bi(e)){if("function"!=typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),xe(e.stateNode,e.type,t))}}function je(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function Se(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ee(e,t){return e(t)}function Ae(){}var Te=!1;function De(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ee(e,t,n)}finally{Te=!1,(null!==ke||null!==Oe)&&(Ae(),Se())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Ie=!1}function Pe(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ze=!1,Fe=null,ze={onError:function(e){Me=!0,Le=e}};function Be(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,Pe.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(o(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,We=i.unstable_shouldYield,Je=i.unstable_requestPaint,Ge=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var _t,xt,kt,Ot,Ct,jt=!1,St=[],Et=null,At=null,Tt=null,Dt=new Map,Rt=new Map,It=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Zt(e)&&n.delete(t)}function zt(){jt=!1,null!==Et&&Zt(Et)&&(Et=null),null!==At&&Zt(At)&&(At=null),null!==Tt&&Zt(Tt)&&(Tt=null),Dt.forEach(Ft),Rt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,jt||(jt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<St.length){Bt(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Bt(Et,e),null!==At&&Bt(At,e),null!==Tt&&Bt(Tt,e),Dt.forEach(t),Rt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Lt(n),null===n.blockedOn&&It.shift()}var Vt=w.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=i,Vt.transition=o}}function qt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=i,Vt.transition=o}}function $t(e,t,n,r){if(Ut){var i=Wt(e,t,n,r);if(null===i)Ur(e,t,r,Yt,n),Pt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Et=Mt(Et,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return Tt=Mt(Tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Mt(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&_t(o),null===(o=Wt(e,t,n,r))&&Ur(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function Wt(e,t,n,r){if(Yt=null,null!==(e=yi(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Gt=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,i="value"in Gt?Gt.value:Gt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),fn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),vn=on(L({},hn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),mn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return On}var jn=L({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=on(jn),En=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Dn),In=[9,13,27,32],Nn=c&&"CompositionEvent"in window,Pn=null;c&&"documentMode"in document&&(Pn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Pn,Ln=c&&(!Nn||Pn&&8<Pn&&11>=Pn),Zn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Kn(e,t,n,r){je(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){Zr(e,0)}function Wn(e){if($(wi(e)))return e}function Jn(e,t){if("change"===e)return t}var Gn=!1;if(c){var Qn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;Gn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Wn($n)){var t=[];Kn(t,$n,e,_e(e)),De(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn($n)}function or(e,t){if("click"===e)return Wn(t)}function ar(e,t){if("input"===e||"change"===e)return Wn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Or={};function Cr(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Or)return kr[e]=n[t];return e}c&&(Or=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var jr=Cr("animationend"),Sr=Cr("animationiteration"),Er=Cr("animationstart"),Ar=Cr("transitionend"),Tr=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Tr.set(e,t),l(t,[e])}for(var Ir=0;Ir<Dr.length;Ir++){var Nr=Dr[Ir];Rr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Rr(jr,"onAnimationEnd"),Rr(Sr,"onAnimationIteration"),Rr(Er,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Ar,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Le;Me=!1,Le=null,Ze||(Ze=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,u),o=l}}}if(Ze)throw e=Fe,Ze=!1,Fe=null,e}function Fr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Jt(t)){case 1:var i=Kt;break;case 4:i=qt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}De((function(){var r=o,i=_e(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case jr:case Sr:case Er:l=mn;break;case Ar:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&null!=(v=Re(p,f))&&c.push(Kr(p,v,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=En,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:wi(l),h=null==u?s:wi(u),(s=new c(v,p+"leave",l,n,i)).target=d,s.relatedTarget=h,v=null,yi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,v=c),d=v,l&&u)e:{for(f=u,p=0,h=c=l;h;h=$r(h))p++;for(h=0,v=f;v;v=$r(v))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Gn)g=ar;else{g=ir;var m=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Kn(a,g,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?wi(r):window,e){case"focusin":(Un(m)||"true"===m.contentEditable)&&(gr=m,mr=r,yr=null);break;case"focusout":yr=mr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Qt="value"in(Gt=i)?Gt.value:Gt.textContent,Hn=!0)),0<(m=qr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:m}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Zn);case"textInput":return(e=t.data)===Zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Nn&&zn(e,t)?(e=en(),Xt=Qt=Gt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Zr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(Kr(e,o,i)),null!=(o=Re(e,t))&&r.push(Kr(e,o,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(n,o))&&a.unshift(Kr(n,l,s)):i||null!=(l=Re(n,o))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Jr,"")}function Qr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,gi="__reactListeners$"+di,mi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[hi]||null}var xi=[],ki=-1;function Oi(e){return{current:e}}function Ci(e){0>ki||(e.current=xi[ki],xi[ki]=null,ki--)}function ji(e,t){ki++,xi[ki]=e.current,e.current=t}var Si={},Ei=Oi(Si),Ai=Oi(!1),Ti=Si;function Di(e,t){var n=e.type.contextTypes;if(!n)return Si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Ci(Ai),Ci(Ei)}function Ni(e,t,n){if(Ei.current!==Si)throw Error(o(168));ji(Ei,t),ji(Ai,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Ti=Ei.current,ji(Ei,e),ji(Ai,Ai.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Pi(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ai),Ci(Ei),ji(Ei,e)):Ci(Ai),ji(Ai,n)}var Zi=null,Fi=!1,zi=!1;function Bi(e){null===Zi?Zi=[e]:Zi.push(e)}function Hi(){if(!zi&&null!==Zi){zi=!0;var e=0,t=bt;try{var n=Zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Zi=null,Fi=!1}catch(t){throw null!==Zi&&(Zi=Zi.slice(e+1)),$e(Xe,Hi),t}finally{bt=t,zi=!1}}return null}var Vi=[],Ui=0,Ki=null,qi=0,$i=[],Yi=0,Wi=null,Ji=1,Gi="";function Qi(e,t){Vi[Ui++]=qi,Vi[Ui++]=Ki,Ki=e,qi=t}function Xi(e,t,n){$i[Yi++]=Ji,$i[Yi++]=Gi,$i[Yi++]=Wi,Wi=e;var r=Ji;e=Gi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ji=1<<32-at(t)+i|n<<i|r,Gi=o+e}else Ji=1<<o|n<<i|r,Gi=e}function eo(e){null!==e.return&&(Qi(e,1),Xi(e,1,0))}function to(e){for(;e===Ki;)Ki=Vi[--Ui],Vi[Ui]=null,qi=Vi[--Ui],Vi[Ui]=null;for(;e===Wi;)Wi=$i[--Yi],$i[Yi]=null,Gi=$i[--Yi],$i[Yi]=null,Ji=$i[--Yi],$i[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Wi?{id:Ji,overflow:Gi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function mo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Oi(null),bo=null,wo=null,_o=null;function xo(){_o=wo=bo=null}function ko(e){var t=yo.current;Ci(yo),e._currentValue=t}function Oo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){bo=e,_o=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ws=!0),e.firstContext=null)}function jo(e){var t=e._currentValue;if(_o!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var So=null;function Eo(e){null===So?So=[e]:So.push(e)}function Ao(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Eo(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Do=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function No(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&El)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,To(e,n)}return null===(i=r.interleaved)?(t.next=t,Eo(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;Do=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(f=t,h=n,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"==typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=L({},d,f);break e;case 2:Do=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var zo=(new r.Component).refs;function Bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=No(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(nu(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=No(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(nu(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=No(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Po(e,i,r))&&(nu(t,e,r,n),Mo(t,e,r))}};function Vo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function Uo(e,t,n){var r=!1,i=Si,o=t.contextType;return"object"==typeof o&&null!==o?o=jo(o):(i=Ri(t)?Ti:Ei.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Di(e,i):Si),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zo,Ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=jo(o):(o=Ri(t)?Ti:Ei.current,i.context=Di(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ho.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function $o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===zo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wo(e){return(0,e._init)(e._payload)}function Jo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Wo(o)===t.type)?((r=i(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Pu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case x:return(t=Zu(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||P(t))return(t=Pu(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?u(e,t,n,r):null;case x:return n.key===i?c(e,t,n,r):null;case R:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||P(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||P(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,d=o,v=o=0,g=null;null!==d&&v<s.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=h(i,d,s[v],l);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(i,d),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m,d=g}if(v===s.length)return n(i,d),io&&Qi(i,v),u;if(null===d){for(;v<s.length;v++)null!==(d=f(i,s[v],l))&&(o=a(d,o,v),null===c?u=d:c.sibling=d,c=d);return io&&Qi(i,v),u}for(d=r(i,d);v<s.length;v++)null!==(g=p(d,i,v,s[v],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,v),u}function g(i,s,l,u){var c=P(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,v=s,g=s=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(i,v,y.value,u);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,v=m}if(y.done)return n(i,v),io&&Qi(i,g),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(v=r(i,v);!y.done;g++,y=l.next())null!==(y=p(v,i,g,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Qi(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&Wo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=$o(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=Pu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Nu(a.type,a.key,a.props,null,r.mode,l)).ref=$o(r,o,a),l.return=r,r=l)}return s(r);case x:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Zu(a,r.mode,l)).return=r,r=o}return s(r);case R:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return v(r,o,a,l);if(P(a))return g(r,o,a,l);Yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Go=Jo(!0),Qo=Jo(!1),Xo={},ea=Oi(Xo),ta=Oi(Xo),na=Oi(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(ji(na,t),ji(ta,e),ji(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(ea),ji(ea,t)}function oa(){Ci(ea),Ci(ta),Ci(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(ji(ta,e),ji(ea,n))}function sa(e){ta.current===e&&(Ci(ea),Ci(ta))}var la=Oi(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=w.ReactCurrentDispatcher,ha=w.ReactCurrentBatchConfig,pa=0,va=null,ga=null,ma=null,ya=!1,ba=!1,wa=0,_a=0;function xa(){throw Error(o(321))}function ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Oa(e,t,n,r,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,ma=ga=null,t.updateQueue=null,fa.current=us,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==ga&&null!==ga.next,pa=0,ma=ga=va=null,ya=!1,t)throw Error(o(300));return e}function Ca(){var e=0!==wa;return wa=0,e}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function Sa(){if(null===ga){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function Ea(e,t){return"function"==typeof t?t(e):t}function Aa(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,va.lanes|=d,Ml|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,va.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Da(){}function Ra(e,t){var n=va,r=Sa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ws=!0),r=r.queue,Ua(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,Fa(9,Na.bind(null,n,r,i,t),void 0,null),null===Al)throw Error(o(349));0!=(30&pa)||Ia(n,t,i)}return i}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Pa(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=To(e,1);null!==t&&nu(t,e,1,-1)}function Za(e){var t=ja();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,va,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Sa().memoizedState}function Ba(e,t,n,r){var i=ja();va.flags|=e,i.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var i=Sa();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&ka(r,a.deps))return void(i.memoizedState=Fa(t,n,o,r))}va.flags|=e,i.memoizedState=Fa(1|t,n,o,r)}function Va(e,t){return Ba(8390656,8,e,t)}function Ua(e,t){return Ha(2048,8,e,t)}function Ka(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4,4,$a.bind(null,t,e),n)}function Wa(){}function Ja(e,t){var n=Sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=Sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),va.lanes|=n,Ml|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Sa().memoizedState}function ts(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=Ao(e,t,n,r))&&(nu(n,e,r,eu()),os(n,t,r))}function ns(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Eo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ao(e,t,i,r))&&(nu(n,e,r,i=eu()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:jo,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:jo,useCallback:function(e,t){return ja().memoizedState=[e,void 0===t?null:t],e},useContext:jo,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=ja();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ja();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ja().memoizedState=e},useState:Za,useDebugValue:Wa,useDeferredValue:function(e){return ja().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xa.bind(null,e[1]),ja().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=ja();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Al)throw Error(o(349));0!=(30&pa)||Ia(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Va(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Na.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ja(),t=Al.identifierPrefix;if(io){var n=Gi;t=":"+t+"R"+(n=(Ji&~(1<<32-at(Ji)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_a++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:jo,useCallback:Ja,useContext:jo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ga,useReducer:Aa,useRef:za,useState:function(){return Aa(Ea)},useDebugValue:Wa,useDeferredValue:function(e){return Qa(Sa(),ga.memoizedState,e)},useTransition:function(){return[Aa(Ea)[0],Sa().memoizedState]},useMutableSource:Da,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},us={readContext:jo,useCallback:Ja,useContext:jo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ga,useReducer:Ta,useRef:za,useState:function(){return Ta(Ea)},useDebugValue:Wa,useDeferredValue:function(e){var t=Sa();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Ta(Ea)[0],Sa().memoizedState]},useMutableSource:Da,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=No(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),fs(0,t)},n}function vs(e,t,n){(n=No(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=No(-1,1)).tag=2,Po(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function _s(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Go(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Co(t,i),r=Oa(e,t,n,r,o,i),n=Ca(),null===e||ws?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function ks(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Os(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function Os(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Us(e,t,i);0!=(131072&e.flags)&&(ws=!0)}}return Ss(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ji(Il,Rl),Rl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ji(Il,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ji(Il,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ji(Il,Rl),Rl|=r;return _s(e,t,i,n),t.child}function js(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Ri(n)?Ti:Ei.current;return o=Di(t,o),Co(t,i),n=Oa(e,t,n,r,o,i),r=Ca(),null===e||ws?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function Es(e,t,n,r,i){if(Ri(n)){var o=!0;Mi(t)}else o=!1;if(Co(t,i),null===t.stateNode)Vs(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?jo(u):Di(t,u=Ri(n)?Ti:Ei.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Ko(t,a,r,u),Do=!1;var f=t.memoizedState;a.state=f,Zo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ai.current||Do?("function"==typeof c&&(Bo(t,n,c,r),l=t.memoizedState),(s=Do||Vo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mo(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?jo(l):Di(t,l=Ri(n)?Ti:Ei.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Ko(t,a,r,l),Do=!1,f=t.memoizedState,a.state=f,Zo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ai.current||Do?("function"==typeof h&&(Bo(t,n,h,r),p=t.memoizedState),(u=Do||Vo(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,o,i)}function As(e,t,n,r,i,o){js(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Us(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Go(t,e.child,null,o),t.child=Go(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Ni(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ni(0,t.context,!1),ia(e,t.containerInfo)}function Ds(e,t,n,r,i){return po(),vo(i),t.flags|=256,_s(e,t,n,r),t.child}var Rs,Is,Ns,Ps={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ji(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mu(l,i,0,null),e=Pu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Ps,e):Zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mu({mode:"visible",children:r.children},i,0,null),(a=Pu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Go(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ps,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=0!=(s&e.childLanes),ws||l){if(null!==(r=Al)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),nu(r,e,i,-1))}return vu(),Fs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Su.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&($i[Yi++]=Ji,$i[Yi++]=Gi,$i[Yi++]=Wi,Ji=e.id,Gi=e.overflow,Wi=t),(t=Zs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Iu(r,s):(s=Pu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ps,i}return e=(s=e.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Zs(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&vo(r),Go(t,e.child,null,n),(e=Zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oo(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),0!=(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ji(la,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ri(t.type)&&Ii(),qs(t),null;case 3:return r=t.stateNode,oa(),Ci(Ai),Ci(Ei),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),qs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Fr(Pr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":J(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":q(r),X(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,Rs(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Fr(Pr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":J(e,r),i=W(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":q(e),X(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return qs(t),null;case 13:if(Ci(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Nl&&(Nl=3):vu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return oa(),null===e&&Hr(t.stateNode.containerInfo),qs(t),null;case 10:return ko(t.type._context),qs(t),null;case 19:if(Ci(la),null===(a=t.memoizedState))return qs(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Ks(a,!1);else{if(0!==Nl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Ks(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ji(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ge()>Hl&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Ge()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ge(),t.sibling=null,n=la.current,ji(la,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ci(Ai),Ci(Ei),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ci(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(la),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=W(e,i),r=W(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ws=!1,Js=!1,Gs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ou(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Ou(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[gi],delete t[mi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Js||Xs(n,t);case 6:var r=cl,i=dl;cl=null,fl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Js&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Js&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ou(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gs),t.forEach((function(t){var r=Eu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Ou(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),ml(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Ou(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Ou(e,e.return,t)}}break;case 1:vl(t,e),ml(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(vl(t,e),ml(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Ou(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&G(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Ou(e,e.return,t)}}break;case 6:if(vl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Ou(e,e.return,t)}}break;case 3:if(vl(t,e),ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Ou(e,e.return,t)}break;case 4:default:vl(t,e),ml(e);break;case 13:vl(t,e),ml(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Ge())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(c=Js)||d,vl(t,e),Js=c):vl(t,e),ml(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(p=(h=Qs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Xs(h,h.return);var v=h.stateNode;if("function"==typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Ou(r,n,e)}}break;case 5:Xs(h,h.return);break;case 22:if(null!==h.memoizedState){_l(f);continue}}null!==p?(p.return=h,Qs=p):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ve("display",s))}catch(t){Ou(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Ou(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vl(t,e),ml(e),4&r&&pl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(t){Ou(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Qs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!=(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ws;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Js;s=Ws;var u=Js;if(Ws=a,(Js=l)&&!u)for(Qs=i;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?xl(i):null!==l?(l.return=a,Qs=l):xl(i);for(;null!==o;)Qs=o,bl(o,t,n),o=o.sibling;Qs=i,Ws=s,Js=u}wl(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):wl(e)}}function wl(e){for(;null!==Qs;){var t=Qs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Js)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(o(163))}Js||512&t.flags&&il(t)}catch(e){Ou(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function _l(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Ou(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Ou(t,i,e)}}var o=t.return;try{il(t)}catch(e){Ou(t,o,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Ou(t,a,e)}}}catch(e){Ou(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var kl,Ol=Math.ceil,Cl=w.ReactCurrentDispatcher,jl=w.ReactCurrentOwner,Sl=w.ReactCurrentBatchConfig,El=0,Al=null,Tl=null,Dl=0,Rl=0,Il=Oi(0),Nl=0,Pl=null,Ml=0,Ll=0,Zl=0,Fl=null,zl=null,Bl=0,Hl=1/0,Vl=null,Ul=!1,Kl=null,ql=null,$l=!1,Yl=null,Wl=0,Jl=0,Gl=null,Ql=-1,Xl=0;function eu(){return 0!=(6&El)?Ge():-1!==Ql?Ql:Ql=Ge()}function tu(e){return 0==(1&e.mode)?1:0!=(2&El)&&0!==Dl?Dl&-Dl:null!==go.transition?(0===Xl&&(Xl=vt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nu(e,t,n,r){if(50<Jl)throw Jl=0,Gl=null,Error(o(185));mt(e,n,r),0!=(2&El)&&e===Al||(e===Al&&(0==(2&El)&&(Ll|=n),4===Nl&&su(e,Dl)),ru(e,r),1===n&&0===El&&0==(1&t.mode)&&(Hl=Ge()+500,Fi&&Hi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Al?Dl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fi=!0,Bi(e)}(lu.bind(null,e)):Bi(lu.bind(null,e)),ai((function(){0==(6&El)&&Hi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Ql=-1,Xl=0,0!=(6&El))throw Error(o(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===Al?Dl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var i=El;El|=2;var a=pu();for(Al===e&&Dl===t||(Vl=null,Hl=Ge()+500,fu(e,t));;)try{yu();break}catch(t){hu(e,t)}xo(),Cl.current=a,El=i,null!==Tl?t=0:(Al=null,Dl=0,t=Nl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=ou(e,i)),1===t)throw n=Pl,fu(e,0),su(e,r),ru(e,Ge()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gu(e,r))&&0!==(a=pt(e))&&(r=a,t=ou(e,a)),1===t))throw n=Pl,fu(e,0),su(e,r),ru(e,Ge()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,zl,Vl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bl+500-Ge())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,zl,Vl),t);break}_u(e,zl,Vl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ol(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,zl,Vl),r);break}_u(e,zl,Vl);break;default:throw Error(o(329))}}}return ru(e,Ge()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=zl,zl=n,null!==t&&au(t)),e}function au(e){null===zl?zl=e:zl.push.apply(zl,e)}function su(e,t){for(t&=~Zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!=(6&El))throw Error(o(327));xu();var t=ft(e,0);if(0==(1&t))return ru(e,Ge()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Pl,fu(e,0),su(e,t),ru(e,Ge()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,zl,Vl),ru(e,Ge()),null}function uu(e,t){var n=El;El|=1;try{return e(t)}finally{0===(El=n)&&(Hl=Ge()+500,Fi&&Hi())}}function cu(e){null!==Yl&&0===Yl.tag&&0==(6&El)&&xu();var t=El;El|=1;var n=Sl.transition,r=bt;try{if(Sl.transition=null,bt=1,e)return e()}finally{bt=r,Sl.transition=n,0==(6&(El=t))&&Hi()}}function du(){Rl=Il.current,Ci(Il)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:oa(),Ci(Ai),Ci(Ei),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ci(la);break;case 10:ko(r.type._context);break;case 22:case 23:du()}n=n.return}if(Al=e,Tl=e=Iu(e.current,null),Dl=Rl=t,Nl=0,Pl=null,Zl=Ll=Ml=0,zl=Fl=null,null!==So){for(t=0;t<So.length;t++)if(null!==(r=(n=So[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}So=null}return e}function hu(e,t){for(;;){var n=Tl;try{if(xo(),fa.current=as,ya){for(var r=va.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,ma=ga=va=null,ba=!1,wa=0,jl.current=null,null===n||null===n.return){Nl=1,Pl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Dl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var v=(t=p).updateQueue;if(null===v){var g=new Set;g.add(u),t.updateQueue=g}else v.add(u);break e}if(0==(1&t)){gs(a,c,t),vu();break e}u=Error(o(426))}else if(io&&1&l.mode){var m=ms(s);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),ys(m,s,l,0,t),vo(cs(u,l));break e}}a=u=cs(u,l),4!==Nl&&(Nl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,vs(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function pu(){var e=Cl.current;return Cl.current=as,null===e?as:e}function vu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Al||0==(268435455&Ml)&&0==(268435455&Ll)||su(Al,Dl)}function gu(e,t){var n=El;El|=2;var r=pu();for(Al===e&&Dl===t||(Vl=null,fu(e,t));;)try{mu();break}catch(t){hu(e,t)}if(xo(),El=n,Cl.current=r,null!==Tl)throw Error(o(261));return Al=null,Dl=0,Nl}function mu(){for(;null!==Tl;)bu(Tl)}function yu(){for(;null!==Tl&&!We();)bu(Tl)}function bu(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wu(e):Tl=t,jl.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$s(n,t,Rl)))return void(Tl=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function _u(e,t,n){var r=bt,i=Sl.transition;try{Sl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Yl);if(0!=(6&El))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Al&&(Tl=Al=null,Dl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$l||($l=!0,Au(tt,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Sl.transition,Sl.transition=null;var s=bt;bt=1;var l=El;El|=4,jl.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:mo(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Ou(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}v=tl,tl=!1}(e,n),gl(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Je(),El=l,bt=s,Sl.transition=a}else e.current=n;if($l&&($l=!1,Yl=e,Wl=i),0===(a=e.pendingLanes)&&(ql=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ge()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;0!=(1&Wl)&&0!==e.tag&&xu(),0!=(1&(a=e.pendingLanes))?e===Gl?Jl++:(Jl=0,Gl=e):Jl=0,Hi()}(e,t,n,r)}finally{Sl.transition=i,bt=r}return null}function xu(){if(null!==Yl){var e=wt(Wl),t=Sl.transition,n=bt;try{if(Sl.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Wl=0,0!=(6&El))throw Error(o(331));var i=El;for(El|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!=(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var h=(d=Qs).sibling,p=d.return;if(ol(d),d===c){Qs=null;break}if(null!==h){h.return=p,Qs=h;break}Qs=p}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Qs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!=(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var w=(s=Qs).child;if(0!=(2064&s.subtreeFlags)&&null!==w)w.return=s,Qs=w;else e:for(s=b;null!==Qs;){if(0!=(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Ou(l,l.return,e)}if(l===s){Qs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Qs=_;break e}Qs=l.return}}if(El=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Sl.transition=t}}return!1}function ku(e,t,n){e=Po(e,t=ps(0,t=cs(n,t),1),1),t=eu(),null!==e&&(mt(e,1,t),ru(e,t))}function Ou(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Po(t,e=vs(t,e=cs(n,e),1),1),e=eu(),null!==t&&(mt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Dl&n)===n&&(4===Nl||3===Nl&&(130023424&Dl)===Dl&&500>Ge()-Bl?fu(e,0):Zl|=n),ru(e,t)}function ju(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=To(e,t))&&(mt(e,t,n),ru(e,n))}function Su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ju(e,n)}function Eu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),ju(e,n)}function Au(e,t){return $e(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Tu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Pu(n.children,i,a,t);case O:s=8,i|=8;break;case C:return(e=Du(12,n,t,2|i)).elementType=C,e.lanes=a,e;case A:return(e=Du(13,n,t,i)).elementType=A,e.lanes=a,e;case T:return(e=Du(19,n,t,i)).elementType=T,e.lanes=a,e;case I:return Mu(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:s=10;break e;case S:s=9;break e;case E:s=11;break e;case D:s=14;break e;case R:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Du(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Pu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Zu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,i,o,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Du(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Bu(e){if(!e)return Si;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ri(n))return Pi(e,n,t)}return t}function Hu(e,t,n,r,i,o,a,s,l){return(e=zu(n,r,!0,e,0,o,0,s,l)).context=Bu(null),n=e.current,(o=No(r=eu(),i=tu(n))).callback=null!=t?t:null,Po(n,o,i),e.current.lanes=i,mt(e,i,r),ru(e,r),e}function Vu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=No(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Po(i,t,a))&&(nu(e,i,a,o),Mo(e,i,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)ws=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:aa(t);break;case 1:Ri(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ji(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ji(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ls(e,t,n):(ji(la,1&la.current),null!==(e=Us(e,t,n))?e.sibling:null);ji(la,1&la.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ji(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Us(e,t,n)}(e,t,n);ws=0!=(131072&e.flags)}else ws=!1,io&&0!=(1048576&t.flags)&&Xi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=Di(t,Ei.current);Co(t,n),i=Oa(null,t,r,e,i,n);var a=Ca();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=Ho,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===D)return 14}return 2}(r),e=mo(r,e),i){case 0:t=Ss(null,t,r,e,n);break e;case 1:t=Es(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=ks(null,t,r,mo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Io(e,t),Zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Ds(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Us(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),js(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ls(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Go(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ji(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=Us(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=No(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Oo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Oo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Co(t,n),r=r(i=jo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=mo(r=t.type,t.pendingProps),ks(e,t,r,i=mo(r.type,i),n);case 15:return Os(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mo(r,i),Vs(e,t),t.tag=1,Ri(r)?(e=!0,Mi(t)):e=!1,Co(t,n),Uo(t,r,i),qo(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Wu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Xu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Uu(a);s.call(e)}}Vu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Uu(a);o.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Vu(t,l,n,r)})),l}(n,t,e,i,r);return Uu(a)}Wu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vu(e,t,null,null)},Wu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Vu(null,e,null,null)})),t[pi]=null}},Wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Lt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Ge()),0==(6&El)&&(Hl=Ge()+500,Hi()))}break;case 13:cu((function(){var t=To(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},xt=function(e){if(13===e.tag){var t=To(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=To(e,t);null!==n&&nu(n,e,t,eu()),qu(e,t)}},Ot=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));$(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=uu,Ae=cu;var ec={usingClientEntryPoint:!1,Events:[bi,wi,_i,je,Se,uu]},tc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ju(e))throw Error(o(299));var n=!1,r="",i=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Gu(t))throw Error(o(200));return Xu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ju(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=$u;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Wu(t)},t.render=function(e,t,n){if(!Gu(t))throw Error(o(200));return Xu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Gu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var w=b.prototype=new y;w.constructor=b,v(w,m.prototype),w.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!O.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:k.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+E(l,0):o,_(a)?(i="",null!=e&&(i=e.replace(S,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",_(e))for(var u=0;u<e.length;u++){var c=o+E(s=e[u],u);l+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,i,c=o+E(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},I={transition:null},N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!O.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(A([])));_&&_!==n&&r.call(_,o)&&(b=_);var x=y.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return m.prototype=y,l(x,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(O.prototype),l(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),l(x,s,"Generator"),l(x,o,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);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}},e.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function _(e){if(g=!1,w(e),!v)if(null!==r(u))v=!0,I(x);else{var t=r(c);null!==t&&N(_,t.startTime-e)}}function x(e,n){v=!1,g&&(g=!1,y(j),j=-1),p=!0;var o=h;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&i(u),w(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&N(_,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,O=!1,C=null,j=-1,S=5,E=-1;function A(){return!(t.unstable_now()-E<S)}function T(){if(null!==C){var e=t.unstable_now();E=e;var n=!0;try{n=C(!0,e)}finally{n?k():(O=!1,C=null)}}else O=!1}if("function"==typeof b)k=function(){b(T)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,R=D.port2;D.port1.onmessage=T,k=function(){R.postMessage(null)}}else k=function(){m(T,0)};function I(e){C=e,O||(O=!0,k())}function N(e,n){j=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,I(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(j),j=-1):g=!0,N(_,o-a))):(e.sortIndex=s,n(u,e),v||p||(v=!0,I(x))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},4847:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.comparisonIsAgainstHead=t.labelForComparison=t.revsetArgsForComparison=t.ComparisonType=void 0,function(e){e.UncommittedChanges="UNCOMMITTED",e.HeadChanges="HEAD",e.StackChanges="STACK",e.Committed="InCommit"}(n=t.ComparisonType||(t.ComparisonType={})),t.revsetArgsForComparison=function(e){switch(e.type){case n.UncommittedChanges:return["uncommitted"];case n.HeadChanges:return["head"];case n.StackChanges:return["stack"];case n.Committed:return["stack","--ref",e.hash]}},t.labelForComparison=function(e){switch(e.type){case n.UncommittedChanges:return"Uncommitted Changes";case n.HeadChanges:return"Head Changes";case n.StackChanges:return"Stack Changes";case n.Committed:return"In ".concat(e.hash)}},t.comparisonIsAgainstHead=function(e){switch(e.type){case n.UncommittedChanges:case n.HeadChanges:case n.StackChanges:return!0;case n.Committed:return!1}}},9085:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8254:function(e,t,n){"use strict";var r=n(319).default,i=n(3038).default,o=n(3269).default,a=n(4575).default,s=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cached=t.LRU=void 0;var l=n(8466),u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;a(this,e),this.maxItems=t,this.maxHashCollision=n,this.cache=new Map}return s(e,[{key:"get",value:function(e){var t=void 0,n=c(e),r=this.cache.get(n);if(void 0!==r){var a=r.get(e);if(void 0!==a)t=a;else{var s,u=o(r);try{for(u.s();!(s=u.n()).done;){var d=i(s.value,2),f=d[0],h=d[1];if((0,l.is)(e,f)){t=h;break}}}catch(e){u.e(e)}finally{u.f()}}this.cache.delete(n),this.cache.set(n,r)}return t}},{key:"set",value:function(e,t){var n=c(e),r=this.cache.get(n);if(void 0===r||r.size>=this.maxHashCollision?r=new Map([[e,t]]):r.set(e,t),this.cache.delete(n),void 0!==t&&(this.cache.set(n,r),this.cache.size>this.maxItems)){var i=this.cache.keys().next();i.done||this.cache.delete(i.value)}}},{key:"delete",value:function(e){var t=c(e);this.cache.delete(t)}},{key:"clear",value:function(){this.cache.clear()}}]),e}();function c(e){var t=null==e?void 0:e.hashCode;return void 0!==t?t.apply(e):e}function d(e,t){var n,i,o=null!==(n=null==t?void 0:t.cache)&&void 0!==n?n:new u(null!==(i=null==t?void 0:t.cacheSize)&&void 0!==i?i:10),a=null==t?void 0:t.getExtraKeys,s=function(){for(var t,n,i,s=o.stats,u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];if(!c.every(h))return null!=s&&(s.skip=(null!==(t=s.skip)&&void 0!==t?t:0)+1),e.apply(this,c);var f=(0,l.List)(a?[].concat(r(a.apply(this)),c):c),p=o.get(f);if(void 0!==p)return null!=s&&(s.hit=(null!==(n=s.hit)&&void 0!==n?n:0)+1),p;null!=s&&(s.miss=(null!==(i=s.miss)&&void 0!==i?i:0)+1);var v=e.apply(this,c);return o.set(f,v),v};return s.cache=o,s}t.LRU=u,t.cached=function(e,t){return"function"==typeof e?d(e,t):function(e){var t,n=null!==(t=null==e?void 0:e.getExtraKeys)&&void 0!==t?t:function(){return(0,l.isValueObject)(this)?[this]:null!=this&&"object"==typeof this?Object.values(this).filter(h):[]};return function(t,r,i){var o=i.value;i.value=d(o,Object.assign(Object.assign({},e),{getExtraKeys:n}))}}(e)};var f=new Set(["number","string","boolean","symbol","bigint","undefined","null"]);function h(e){if(null==e)return!0;var t=typeof e;return!!f.has(t)||!("object"!==t||!(0,l.isValueObject)(e))}},9671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6606:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9671),t),i(n(7800),t),i(n(2428),t),i(n(8284),t)},7800:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2428:function(e,t,n){"use strict";var r=n(4575).default,i=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var o=n(4393),a=function(){function e(t,n){r(this,e),this.sendData=t,this.context=n}return i(e,[{key:"error",value:function(e,t,n,r){var i=n instanceof Error?n.message||String(n):n;return this.track(e,Object.assign(Object.assign({},null!=r?r:{}),{errorMessage:i,errorName:t}))}},{key:"operation",value:function(e,t,n,r){var i,a=this,s=Date.now(),l=null!==(i=null==n?void 0:n.id)&&void 0!==i?i:(0,o.randomId)();try{var u=r({parentId:l});if((0,o.isPromise)(u))return u.then((function(t){var r=Date.now()-s;return a.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:r,id:l})),t})).catch((function(r){var i=Date.now()-s;return a.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:i,id:l})),Promise.reject(r)}));var c=Date.now()-s;return this.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:c,id:l})),u}catch(r){var d=Date.now()-s;throw this.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:d,id:l})),r}}},{key:"trackAsParent",value:function(t,n){var r,i=this,a=null!==(r=null==n?void 0:n.id)&&void 0!==r?r:(0,o.randomId)();return this.trackData(Object.assign(Object.assign({},n),{eventName:t,id:a})),new e((function(e,t){return i.trackData(Object.assign(Object.assign({},e),t))}),{parentId:a})}},{key:"track",value:function(e,t){return this.trackData(Object.assign(Object.assign({},t),{eventName:e}))}},{key:"trackData",value:function(e){var t,n,r=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:(0,o.randomId)(),i=null!==(n=null==e?void 0:e.timestamp)&&void 0!==n?n:Date.now(),a=Object.assign({timestamp:i,id:r},null!=e?e:{});this.sendData(a,this.context)}}]),e}();t.Tracker=a},8284:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newAbortController=void 0;var r=n(4704);t.newAbortController=function(){return"function"==typeof AbortController?new AbortController:new r.AbortController}},5785:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!0;function a(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c;if(i){if(c=function(){o=!0,n=void 0},!o)return clearTimeout(n),void(n=setTimeout(c,t));o=!1,e.apply(r,l)}else a.reset(),c=function(){n=void 0,e.apply(r,l)};n=setTimeout(c,t)}return a.reset=function(){clearTimeout(n),n=void 0,o=!0},a.isPending=function(){return null!=n},a}},7823:function(e,t,n){"use strict";var r=n(4575).default,i=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SelfUpdate=void 0;var o=function(){function e(t){r(this,e),this.inner=t}return i(e,[{key:"hashCode",value:function(){return this.inner.hashCode()+1}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;if(this===t)return!0;var n=t.inner,r=this.inner.equals(n);return r&&this.inner!==n&&(this.inner=n),r}}]),e}();t.SelfUpdate=o},5281:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6606),t),i(n(4847),t),i(n(9001),t),i(n(5402),t),i(n(5797),t),i(n(4393),t),i(n(2149),t),i(n(8254),t),i(n(9852),t),i(n(7823),t),i(n(9085),t),i(n(5785),t),i(n(6316),t),i(n(1320),t)},9852:function(e,t,n){"use strict";var r=n(3269).default,i=n(319).default;Object.defineProperty(t,"__esModule",{value:!0}),t.minimalDisambiguousPaths=void 0,t.minimalDisambiguousPaths=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.map((function(e){var t=function(e){return e.replace(/[^\\]/g,"").length>e.replace(/[^/]/g,"").length?"\\":"/"}(e),n=/^(\w:).*/.exec(e),r=null!=n?n[1]:"";return{depth:null,parts:e.split(t).reverse().filter((function(e){return""!==e&&e!==r})),rootPrefix:r,separator:t,hadLeadingSeparator:e.startsWith(t)||r.length>0&&e.startsWith(r)}})),o=null==t.maxDepth?Math.max.apply(Math,i(n.map((function(e){return e.parts.length})))):t.maxDepth,a=new Set(n),s=new Map,l=1;l<=o;l++){s.clear();var u,c=r(a);try{for(c.s();!(u=c.n()).done;){var d=u.value,f=d.parts.slice(0,l).join(d.separator);s.has(f)||s.set(f,new Set),s.get(f).add(d)}}catch(e){c.e(e)}finally{c.f()}var h,p=r(s.values());try{for(p.s();!(h=p.n()).done;){var v=h.value;if(1===v.size){var g=Array.from(v)[0];g.depth=l,a.delete(g)}}}catch(e){p.e(e)}finally{p.f()}}return n.map((function(e){var n,r=e.depth,a=e.parts,s=e.rootPrefix,l=e.separator,u=e.hadLeadingSeparator,c=a.slice(0,null==r?o:r).reverse();return 0===c.length?"".concat(s).concat(l):((1===c.length&&""===c[0]||c.length>1&&""!==c[0])&&(c=c.length===a.length?u?[s].concat(i(c)):c:(null!==(n=t.alwaysShowLeadingSeparator)&&void 0!==n?n:u)?[""].concat(i(c)):c),c.join(l))}))}},1320:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=t.DiffType=void 0,function(e){e.Modified="Modified",e.Added="Added",e.Removed="Removed",e.Renamed="Renamed",e.Copied="Copied"}(n=t.DiffType||(t.DiffType={}));var r=/^diff --git (.*) (.*)$/,i=/^rename from (.*)$/,o=/^rename to (.*)$/,a=/^copy from (.*)$/,s=/^copy to (.*)$/,l=/^new file mode (\d{6})$/,u=/^deleted file mode (\d{6})$/,c=/^old mode (\d{6})$/,d=/^new mode (\d{6})$/,f=/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,h=/^--- (.*)$/,p=/^\+\+\+ (.*)$/,v=/\r\n|[\n\v\f\r\x85]/g;function g(e,t){if(!1===e)throw new Error(t)}t.parsePatch=function(e){var t=e.split(v),m=e.match(v)||[],y=[],b=0;function w(){var e={hunks:[]};for(y.push(e),function(e){for(;b<t.length;){var n=t[b],i=r.exec(n);if(i){e.oldFileName=i[1],e.newFileName=i[2],b++;break}b++}}(e);b<t.length;){var n=t[b];if(/^old mode/.test(n))_(e);else if(/^new mode/.test(n))x(e);else if(/^deleted file mode/.test(n))k(e);else if(/^new file mode/.test(n))O(e);else if(/^copy /.test(n))C(e);else if(/^rename /.test(n))j(e);else{if(/^--- /.test(n)){S(e);break}if(/^diff --git/.test(n))break;b++}}!function(e){for(;b<t.length;){var n=t[b];if(r.test(n))break;/^@@/.test(n)?e.hunks.push(E()):b++}}(e)}function _(e){var r=c.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.oldMode=r[1],e.type=n.Modified,b++}function x(e){var r=d.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Modified,b++}function k(e){var r=u.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Removed,b++}function O(e){var r=l.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Added,b++}function C(e){g(a.test(t[b]),"invalid format '".concat(t[b],"'")),g(s.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Copied,b+=2}function j(e){g(i.test(t[b]),"invalid format '".concat(t[b],"'")),g(o.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Renamed,b+=2}function S(e){g(h.test(t[b]),"invalid format '".concat(t[b],"'")),g(p.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),void 0===e.type&&(e.type=n.Modified),b+=2}function E(){var e=t[b++].split(f),n={oldStart:+e[1],oldLines:void 0===e[2]?1:+e[2],newStart:+e[3],newLines:void 0===e[4]?1:+e[4],lines:[],linedelimiters:[]};0===n.oldLines&&(n.oldStart+=1),0===n.newLines&&(n.newStart+=1);for(var r=0,i=0;b<t.length&&!(0===t[b].indexOf("--- ")&&b+2<t.length&&0===t[b+1].indexOf("+++ ")&&0===t[b+2].indexOf("@@"));b++){var o=0==t[b].length&&b!=t.length-1?" ":t[b][0];if("+"!==o&&"-"!==o&&" "!==o&&"\\"!==o)break;n.lines.push(t[b]),n.linedelimiters.push(m[b]||"\n"),"+"===o?r++:"-"===o?i++:" "===o&&(r++,i++)}return r||1!==n.newLines||(n.newLines=0),i||1!==n.oldLines||(n.oldLines=0),n}for(;b<t.length;)w();return y}},5797:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeFromString=t.deserialize=t.serializeToString=t.serialize=void 0;var i={__rpcType:"undefined"};function o(e){if(void 0===e)return i;if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null===e)return e;if(e instanceof Map)return{__rpcType:"Map",data:Array.from(e.entries()).map((function(e){var t=r(e,2),n=t[0],i=t[1];return[o(n),o(i)]}))};if(e instanceof Set)return{__rpcType:"Set",data:Array.from(e.values()).map(o)};if(e instanceof Error)return{__rpcType:"Error",data:{message:e.message,stack:e.stack}};if(e instanceof Date)return{__rpcType:"Date",data:e.valueOf()};if(Array.isArray(e))return e.map((function(e){return o(e)}));if("object"==typeof e){for(var t={__rpcType:"object"},n=0,a=Object.entries(e);n<a.length;n++){var s=r(a[n],2),l=s[0],u=s[1];t[l]=o(u)}return t}throw new Error("cannot serialize argument ".concat(e))}function a(e){if("object"!=typeof e||null==e)return e;if(Array.isArray(e))return e.map((function(e){return a(e)}));var t=e;switch(t.__rpcType){case"undefined":return;case"Map":return new Map(t.data.map((function(e){var t=r(e,2),n=t[0],i=t[1];return[a(n),a(i)]})));case"Set":return new Set(t.data.map(a));case"Error":var n=new Error;return n.stack=t.data.stack,n.message=t.data.message,n;case"Date":return new Date(t.data);case"object":for(var i=e,o={},s=0,l=Object.entries(i);s<l.length;s++){var u=r(l[s],2),c=u[0],d=u[1];"__rpcType"!==c&&(o[c]=a(d))}return o;default:throw new Error("cannot deserialize unknown type ".concat(t))}}t.serialize=o,t.serializeToString=function(e){return JSON.stringify(o(e))},t.deserialize=a,t.deserializeFromString=function(e){return a(JSON.parse(e))}},5402:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2149:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedableRevset=t.CommandRunner=void 0,function(e){e.Graphite="gt",e.CodeReviewProvider="codeReviewProvider"}(t.CommandRunner||(t.CommandRunner={})),t.SucceedableRevset=function(e){return{type:"succeedable-revset",revset:e}}},5724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},329:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2388:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorShortMessages=t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=t.ONE_MINUTE_MS=t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=void 0,t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=4100,t.ONE_MINUTE_MS=6e4,t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=void 0,function(e){e.NoCommitsFetched="No commits found"}(t.ErrorShortMessages||(t.ErrorShortMessages={}))},8305:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9001:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(140),t),i(n(1402),t),i(n(329),t),i(n(5724),t),i(n(2388),t),i(n(8305),t)},1402:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4393:function(e,t,n){"use strict";var r=n(7757),i=n(3269).default,o=r.mark(a);function a(e,t){var n,i,a,s;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=e[Symbol.iterator](),i=t[Symbol.iterator]();case 2:if(a=n.next(),s=i.next(),!a.done&&!s.done){r.next=7;break}return r.abrupt("break",11);case 7:return r.next=9,[a.value,s.value];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),o)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=t.truncate=t.zip=t.generatorContains=t.mapObject=t.findParentWithClassName=t.basename=t.defer=t.randomId=t.unwrap=t.notEmpty=void 0,t.notEmpty=function(e){return null!=e},t.unwrap=function(e){if(null==e)throw new Error("expected value not to be ".concat(e));return e},t.randomId=function(){return Date.now().toString(36)+Math.random().toString(36)},t.defer=function(){var e={promise:void 0,resolve:void 0,reject:void 0};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.basename=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.lastIndexOf(t);return-1===n?e:e.slice(n+1)},t.findParentWithClassName=function(e,t){for(var n,r=e;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains(t))return r;r=r.parentElement}},t.mapObject=function(e,t){return Object.fromEntries(Object.entries(e).map(t))},t.generatorContains=function(e,t){var n,r="function"==typeof t?t:function(e){return e===t},o=i(e);try{for(o.s();!(n=o.n()).done;)if(r(n.value))return!0}catch(e){o.e(e)}finally{o.f()}return!1},t.zip=a,t.truncate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.substring(0,Math.max(0,t-1))+"…":e},t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},8466:function(e,t,n){"use strict";n.r(t),n.d(t,{Collection:function(){return k},Iterable:function(){return kr},List:function(){return nn},Map:function(){return Rt},OrderedMap:function(){return mn},OrderedSet:function(){return ir},PairSorting:function(){return ur},Range:function(){return Bn},Record:function(){return cr},Repeat:function(){return mr},Seq:function(){return K},Set:function(){return Nn},Stack:function(){return kn},fromJS:function(){return yr},get:function(){return nt},getIn:function(){return Hn},has:function(){return tt},hasIn:function(){return Un},hash:function(){return de},is:function(){return se},isAssociative:function(){return x},isCollection:function(){return m},isImmutable:function(){return D},isIndexed:function(){return _},isKeyed:function(){return b},isList:function(){return tn},isMap:function(){return ie},isOrdered:function(){return I},isOrderedMap:function(){return oe},isOrderedSet:function(){return Tn},isPlainObject:function(){return Qe},isRecord:function(){return T},isSeq:function(){return E},isSet:function(){return An},isStack:function(){return xn},isValueObject:function(){return ae},merge:function(){return yt},mergeDeep:function(){return wt},mergeDeepWith:function(){return _t},mergeWith:function(){return bt},remove:function(){return it},removeIn:function(){return ct},set:function(){return ot},setIn:function(){return lt},update:function(){return ft},updateIn:function(){return at},version:function(){return _r}});var r=32,i=31,o={};function a(e){e&&(e.value=!0)}function s(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(c)),e.size}function u(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function c(){return!0}function d(e,t,n){return(0===e&&!v(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return p(e,t,0)}function h(e,t){return p(e,t,t)}function p(e,t,n){return void 0===e?n:v(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function v(e){return e<0||0===e&&1/e==-1/0}var g="@@__IMMUTABLE_ITERABLE__@@";function m(e){return Boolean(e&&e[g])}var y="@@__IMMUTABLE_KEYED__@@";function b(e){return Boolean(e&&e[y])}var w="@@__IMMUTABLE_INDEXED__@@";function _(e){return Boolean(e&&e[w])}function x(e){return b(e)||_(e)}var k=function(e){return m(e)?e:K(e)},O=function(e){function t(e){return b(e)?e:q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),C=function(e){function t(e){return _(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),j=function(e){function t(e){return m(e)&&!x(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k);k.Keyed=O,k.Indexed=C,k.Set=j;var S="@@__IMMUTABLE_SEQ__@@";function E(e){return Boolean(e&&e[S])}var A="@@__IMMUTABLE_RECORD__@@";function T(e){return Boolean(e&&e[A])}function D(e){return m(e)||T(e)}var R="@@__IMMUTABLE_ORDERED__@@";function I(e){return Boolean(e&&e[R])}var N="function"==typeof Symbol&&Symbol.iterator,P=N||"@@iterator",M=function(e){this.next=e};function L(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Z(){return{value:void 0,done:!0}}function F(e){return!!Array.isArray(e)||!!H(e)}function z(e){return e&&"function"==typeof e.next}function B(e){var t=H(e);return t&&t.call(e)}function H(e){var t=e&&(N&&e[N]||e["@@iterator"]);if("function"==typeof t)return t}M.prototype.toString=function(){return"[Iterator]"},M.KEYS=0,M.VALUES=1,M.ENTRIES=2,M.prototype.inspect=M.prototype.toSource=function(){return this.toString()},M.prototype[P]=function(){return this};var V=Object.prototype.hasOwnProperty;function U(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var K=function(e){function t(e){return null==e?X():D(e)?e.toSeq():function(e){var t=ne(e);if(t)return function(e){var t=H(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=H(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new M((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return L(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(k),q=function(e){function t(e){return null==e?X().toKeyedSeq():m(e)?b(e)?e.toSeq():e.fromEntrySeq():T(e)?e.toSeq():ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(K),$=function(e){function t(e){return null==e?X():m(e)?b(e)?e.entrySeq():e.toIndexedSeq():T(e)?e.toSeq().entrySeq():te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(K),Y=function(e){function t(e){return(m(e)&&!x(e)?e:$(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(K);K.isSeq=E,K.Keyed=q,K.Set=Y,K.Indexed=$,K.prototype[S]=!0;var W=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new M((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return L(e,o,n[o])}))},t}($),J=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return V.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new M((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return L(e,a,n[a])}))},t}(q);J.prototype[R]=!0;var G,Q=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._collection),r=0;if(z(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._collection);if(!z(n))return new M(Z);var r=0;return new M((function(){var t=n.next();return t.done?t:L(e,r++,t.value)}))},t}($);function X(){return G||(G=new W([]))}function ee(e){var t=ne(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function te(e){var t=ne(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ne(e){return U(e)?new W(e):F(e)?new Q(e):void 0}var re="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[re])}function oe(e){return ie(e)&&I(e)}function ae(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function se(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ae(e)&&ae(t)&&e.equals(t))}var le="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ue(e){return e>>>1&1073741824|3221225471&e}var ce=Object.prototype.valueOf;function de(e){if(null==e)return fe(e);if("function"==typeof e.hashCode)return ue(e.hashCode(e));var t,n=(t=e).valueOf!==ce&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return fe(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return ue(t)}(n);case"string":return n.length>xe?function(e){var t=Ce[e];return void 0===t&&(t=he(e),Oe===ke&&(Oe=0,Ce={}),Oe++,Ce[e]=t),t}(n):he(n);case"object":case"function":return function(e){var t;if(ye&&void 0!==(t=me.get(e)))return t;if(void 0!==(t=e[_e]))return t;if(!ve){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[_e]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ge(),ye)me.set(e,t);else{if(void 0!==pe&&!1===pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ve)Object.defineProperty(e,_e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[_e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[_e]=t}}return t}(n);case"symbol":return function(e){var t=be[e];return void 0!==t||(t=ge(),be[e]=t),t}(n);default:if("function"==typeof n.toString)return he(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function fe(e){return null===e?1108378658:1108378659}function he(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ue(t)}var pe=Object.isExtensible,ve=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ge(){var e=++we;return 1073741824&we&&(we=0),e}var me,ye="function"==typeof WeakMap;ye&&(me=new WeakMap);var be=Object.create(null),we=0,_e="__immutablehash__";"function"==typeof Symbol&&(_e=Symbol(_e));var xe=16,ke=255,Oe=0,Ce={},je=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Re(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=De(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(q);je.prototype[R]=!0;var Se=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&l(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&l(this),new M((function(){var o=r.next();return o.done?o:L(e,t?n.size-++i:i++,o.value,o)}))},t}($),Ee=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){var t=n.next();return t.done?t:L(e,t.value,t.value,t)}))},t}(Y),Ae=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){He(t);var r=m(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){He(r);var i=m(r);return L(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(q);function Te(e){var t=Ue(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Ke,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new M((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function De(e,t,n){var r=Ue(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,o);return a===o?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new M((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return L(r,s,t.call(n,a[1],s,e),i)}))},r}function Re(e,t){var n=this,r=Ue(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Te(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Ke,r.__iterate=function(n,r){var i=this,o=0;return r&&l(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&l(e);var a=e.__iterator(2,!i);return new M((function(){var e=a.next();if(e.done)return e;var s=e.value;return L(r,t?s[0]:i?n.size-++o:o++,s[1],e)}))},r}function Ie(e,t,n,r){var i=Ue(e);return r&&(i.has=function(r){var i=e.get(r,o);return i!==o&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,o);return a!==o&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new M((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return L(i,r?u:s++,c,o)}}))},i}function Ne(e,t,n,r){var i=e.size;if(d(t,n,i))return e;var o=f(t,i),a=h(n,i);if(o!=o||a!=a)return Ne(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var c=Ue(e);return c.size=0===s?s:e.size&&s||void 0,!r&&E(e)&&s>=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&t<s?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new M(Z);var i=e.__iterator(t,n),a=0,l=0;return new M((function(){for(;a++<o;)i.next();if(++l>s)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:L(t,l-1,0===t?void 0:e.value[1],e)}))},c}function Pe(e,t,n,r){var i=Ue(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),l=!0,u=0;return new M((function(){var e,o,c;do{if((e=s.next()).done)return r||1===i?e:L(i,u++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return 2===i?e:L(i,o,c,e)}))},i}function Me(e,t,n){var r=Ue(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(l,u){l.__iterate((function(o,l){return(!t||u<t)&&m(o)?e(o,u+1):(a++,!1===i(o,n?l:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new M((function(){for(;o;){var e=o.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(a.length<t)||!m(l))return n?e:L(r,s++,l,e);a.push(o),o=l.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function Le(e,t,n){t||(t=qe);var r=b(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?q(o):_(e)?$(o):Y(o)}function Ze(e,t,n){if(t||(t=qe),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Fe(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Fe(t,e,n)?n:e}))}function Fe(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function ze(e,t,n,r){var i=Ue(e),o=new W(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=k(e),B(i?e.reverse():e)})),a=0,s=!1;return new M((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:L(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Be(e,t){return e===t?e:E(e)?t:e.constructor(t)}function He(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ve(e){return b(e)?O:_(e)?C:j}function Ue(e){return Object.create((b(e)?q:_(e)?$:Y).prototype)}function Ke(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function qe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function $e(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Ye(e,t){if(!e)throw new Error(t)}function We(e){Ye(e!==1/0,"Cannot perform this action with an infinite size.")}function Je(e){if(U(e)&&"string"!=typeof e)return e;if(I(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Se.prototype.cacheResult=je.prototype.cacheResult=Ee.prototype.cacheResult=Ae.prototype.cacheResult=Ke;var Ge=Object.prototype.toString;function Qe(e){if(!e||"object"!=typeof e||"[object Object]"!==Ge.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function Xe(e){return"object"==typeof e&&(D(e)||Array.isArray(e)||Qe(e))}function et(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function tt(e,t){return D(e)?e.has(t):Xe(e)&&V.call(e,t)}function nt(e,t,n){return D(e)?e.get(t,n):tt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function rt(e){if(Array.isArray(e))return $e(e);var t={};for(var n in e)V.call(e,n)&&(t[n]=e[n]);return t}function it(e,t){if(!Xe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(D(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!V.call(e,t))return e;var n=rt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ot(e,t,n){if(!Xe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(D(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(V.call(e,t)&&n===e[t])return e;var r=rt(e);return r[t]=n,r}function at(e,t,n,r){r||(r=n,n=void 0);var i=st(D(e),e,Je(t),0,n,r);return i===o?n:i}function st(e,t,n,r,i,a){var s=t===o;if(r===n.length){var l=s?i:t,u=a(l);return u===l?t:u}if(!s&&!Xe(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(et)+"]: "+t);var c=n[r],d=s?o:nt(t,c,o),f=st(d===o?e:D(d),d,n,r+1,i,a);return f===d?t:f===o?it(t,c):ot(s?e?Ut():{}:t,c,f)}function lt(e,t,n){return at(e,t,o,(function(){return n}))}function ut(e,t){return lt(this,e,t)}function ct(e,t){return at(e,t,(function(){return o}))}function dt(e){return ct(this,e)}function ft(e,t,n,r){return at(e,[t],n,r)}function ht(e,t,n){return 1===arguments.length?e(this):ft(this,e,t,n)}function pt(e,t,n){return at(this,e,t,n)}function vt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mt(this,e)}function gt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return mt(this,t,e)}function mt(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=O(t[i]);0!==a.size&&r.push(a)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ft(e,r,o,(function(e){return e===o?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(e,t)}function bt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xt(e,t)}function _t(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return xt(t,n,e)}function xt(e,t,n){return kt(e,t,function(e){return function t(n,r,i){return Xe(n)&&Xe(r)&&function(e,t){var n=K(e),r=K(t);return _(n)===_(r)&&b(n)===b(r)}(n,r)?kt(n,[r],t):e?e(n,r,i):r}}(n))}function kt(e,t,n){if(!Xe(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(D(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?C:O,a=r?function(t){i===e&&(i=rt(i)),i.push(t)}:function(t,r){var o=V.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=rt(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function Ot(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xt(this,e)}function Ct(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xt(this,t,e)}function jt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return at(this,e,Ut(),(function(e){return kt(e,t)}))}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return at(this,e,Ut(),(function(e){return xt(e,t)}))}function Et(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function At(){return this.__ownerID?this:this.__ensureOwner(new s)}function Tt(){return this.__ensureOwner()}function Dt(){return this.__altered}var Rt=function(e){function t(t){return null==t?Ut():ie(t)&&!I(t)?t:Ut().withMutations((function(n){var r=e(t);We(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ut().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Kt(this,e,t)},t.prototype.remove=function(e){return Kt(this,e,o)},t.prototype.deleteAll=function(e){var t=k(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ut()},t.prototype.sort=function(e){return mn(Le(this,e))},t.prototype.sortBy=function(e,t){return mn(Le(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new zt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Vt(this.size,this._root,e,this.__hash):0===this.size?Ut():(this.__ownerID=e,this.__altered=!1,this)},t}(O);Rt.isMap=ie;var It=Rt.prototype;It[re]=!0,It.delete=It.remove,It.removeAll=It.deleteAll,It.setIn=ut,It.removeIn=It.deleteIn=dt,It.update=ht,It.updateIn=pt,It.merge=It.concat=vt,It.mergeWith=gt,It.mergeDeep=Ot,It.mergeDeepWith=Ct,It.mergeIn=jt,It.mergeDeepIn=St,It.withMutations=Et,It.wasAltered=Dt,It.asImmutable=Tt,It["@@transducer/init"]=It.asMutable=At,It["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},It["@@transducer/result"]=function(e){return e.asImmutable()};var Nt=function(e,t){this.ownerID=e,this.entries=t};Nt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(se(n,i[o][0]))return i[o][1];return r},Nt.prototype.update=function(e,t,n,r,i,l,u){for(var c=i===o,d=this.entries,f=0,h=d.length;f<h&&!se(r,d[f][0]);f++);var p=f<h;if(p?d[f][1]===i:c)return this;if(a(u),(c||!p)&&a(l),!c||1!==d.length){if(!p&&!c&&d.length>=Gt)return function(e,t,n,r){e||(e=new s);for(var i=new Zt(e,de(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,d,r,i);var v=e&&e===this.ownerID,g=v?d:$e(d);return p?c?f===h-1?g.pop():g[f]=g.pop():g[f]=[r,i]:g.push([r,i]),v?(this.entries=g,this):new Nt(e,g)}};var Pt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Pt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var o=1<<((0===e?t:t>>>e)&i),a=this.bitmap;return 0==(a&o)?r:this.nodes[Wt(a&o-1)].get(e+5,t,n,r)},Pt.prototype.update=function(e,t,n,a,s,l,u){void 0===n&&(n=de(a));var c=(0===t?n:n>>>t)&i,d=1<<c,f=this.bitmap,h=0!=(f&d);if(!h&&s===o)return this;var p=Wt(f&d-1),v=this.nodes,g=h?v[p]:void 0,m=qt(g,e,t+5,n,a,s,l,u);if(m===g)return this;if(!h&&m&&v.length>=Qt)return function(e,t,n,i,o){for(var a=0,s=new Array(r),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[i]=o,new Mt(e,a+1,s)}(e,v,f,c,m);if(h&&!m&&2===v.length&&$t(v[1^p]))return v[1^p];if(h&&m&&1===v.length&&$t(m))return m;var y=e&&e===this.ownerID,b=h?m?f:f^d:f|d,w=h?m?Jt(v,p,m,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(v,p,y):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(v,p,m,y);return y?(this.bitmap=b,this.nodes=w,this):new Pt(e,b,w)};var Mt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Mt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var o=(0===e?t:t>>>e)&i,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Mt.prototype.update=function(e,t,n,r,a,s,l){void 0===n&&(n=de(r));var u=(0===t?n:n>>>t)&i,c=a===o,d=this.nodes,f=d[u];if(c&&!f)return this;var h=qt(f,e,t+5,n,r,a,s,l);if(h===f)return this;var p=this.count;if(f){if(!h&&--p<Xt)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new Pt(e,i,a)}(e,d,p,u)}else p++;var v=e&&e===this.ownerID,g=Jt(d,u,h,v);return v?(this.count=p,this.nodes=g,this):new Mt(e,p,g)};var Lt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Lt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(se(n,i[o][0]))return i[o][1];return r},Lt.prototype.update=function(e,t,n,r,i,s,l){void 0===n&&(n=de(r));var u=i===o;if(n!==this.keyHash)return u?this:(a(l),a(s),Yt(this,e,t,n,[r,i]));for(var c=this.entries,d=0,f=c.length;d<f&&!se(r,c[d][0]);d++);var h=d<f;if(h?c[d][1]===i:u)return this;if(a(l),(u||!h)&&a(s),u&&2===f)return new Zt(e,this.keyHash,c[1^d]);var p=e&&e===this.ownerID,v=p?c:$e(c);return h?u?d===f-1?v.pop():v[d]=v.pop():v[d]=[r,i]:v.push([r,i]),p?(this.entries=v,this):new Lt(e,this.keyHash,v)};var Zt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Zt.prototype.get=function(e,t,n,r){return se(n,this.entry[0])?this.entry[1]:r},Zt.prototype.update=function(e,t,n,r,i,s,l){var u=i===o,c=se(r,this.entry[0]);return(c?i===this.entry[1]:u)?this:(a(l),u?void a(s):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Zt(e,this.keyHash,[r,i]):(a(s),Yt(this,e,t,de(r),[r,i])))},Nt.prototype.iterate=Lt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Pt.prototype.iterate=Mt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Zt.prototype.iterate=function(e,t){return e(this.entry)};var Ft,zt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ht(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return Bt(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Bt(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return Bt(e,o.entry);t=this._stack=Ht(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(M);function Bt(e,t){return L(e,t[0],t[1])}function Ht(e,t){return{node:e,index:0,__prev:t}}function Vt(e,t,n,r){var i=Object.create(It);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ut(){return Ft||(Ft=Vt(0))}function Kt(e,t,n){var r,i;if(e._root){var a={value:!1},s={value:!1};if(r=qt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;i=e.size+(a.value?n===o?-1:1:0)}else{if(n===o)return e;i=1,r=new Nt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Vt(i,r):Ut()}function qt(e,t,n,r,i,s,l,u){return e?e.update(t,n,r,i,s,l,u):s===o?e:(a(u),a(l),new Zt(t,r,[i,s]))}function $t(e){return e.constructor===Zt||e.constructor===Lt}function Yt(e,t,n,r,o){if(e.keyHash===r)return new Lt(t,r,[e.entry,o]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&i,l=(0===n?r:r>>>n)&i,u=s===l?[Yt(e,t,n+5,r,o)]:(a=new Zt(t,r,o),s<l?[e,a]:[a,e]);return new Pt(t,1<<s|1<<l,u)}function Wt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Jt(e,t,n,r){var i=r?e:$e(e);return i[t]=n,i}var Gt=8,Qt=16,Xt=8,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=cn();if(null==t)return n;if(tn(t))return t;var i=e(t),o=i.size;return 0===o?n:(We(o),o>0&&o<r?un(0,o,5,null,new on(i.toArray())):n.withMutations((function(e){e.setSize(o),i.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=u(this,e))>=0&&e<this.size){var n=hn(this,e+=this._origin);return n&&n.array[e&i]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=u(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?pn(e,t).set(0,n):pn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=vn(e._capacity)?r=dn(r,e.__ownerID,0,t,n,o):i=dn(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):un(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):cn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){pn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return pn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){pn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return pn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&F(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return pn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))}))},t.prototype.slice=function(e,t){var n=this.size;return d(e,t,n)?this:pn(this,f(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=ln(this,t);return new M((function(){var i=r();return i===sn?{value:void 0,done:!0}:L(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=ln(this,t);(n=i())!==sn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?un(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?cn():(this.__ownerID=e,this.__altered=!1,this)},t}(C);nn.isList=tn;var rn=nn.prototype;rn[en]=!0,rn.delete=rn.remove,rn.merge=rn.concat,rn.setIn=ut,rn.deleteIn=rn.removeIn=dt,rn.update=ht,rn.updateIn=pt,rn.mergeIn=jt,rn.mergeDeepIn=St,rn.withMutations=Et,rn.wasAltered=Dt,rn.asImmutable=Tt,rn["@@transducer/init"]=rn.asMutable=At,rn["@@transducer/step"]=function(e,t){return e.push(t)},rn["@@transducer/result"]=function(e){return e.asImmutable()};var on=function(e,t){this.array=e,this.ownerID=t};on.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&i;if(r>=this.array.length)return new on([],e);var o,a=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!o)return this;var l=fn(this,e);if(!a)for(var u=0;u<r;u++)l.array[u]=void 0;return o&&(l.array[r]=o),l},on.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&i;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var s=fn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var an,sn={};function ln(e,t){var n=e._origin,i=e._capacity,o=vn(i),a=e._tail;return function e(s,l,u){return 0===l?function(e,s){var l=s===o?a&&a.array:e&&e.array,u=s>n?0:n-s,c=i-s;return c>r&&(c=r),function(){if(u===c)return sn;var e=t?--c:u++;return l&&l[e]}}(s,u):function(o,a,s){var l,u=o&&o.array,c=s>n?0:n-s>>a,d=1+(i-s>>a);return d>r&&(d=r),function(){for(;;){if(l){var n=l();if(n!==sn)return n;l=null}if(c===d)return sn;var r=t?--d:c++;l=e(u&&u[r],a-5,s+(r<<a))}}}(s,l,u)}(e._root,e._level,0)}function un(e,t,n,r,i,o,a){var s=Object.create(rn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function cn(){return an||(an=un(0,0,5))}function dn(e,t,n,r,o,s){var l,u=r>>>n&i,c=e&&u<e.array.length;if(!c&&void 0===o)return e;if(n>0){var d=e&&e.array[u],f=dn(d,t,n-5,r,o,s);return f===d?e:((l=fn(e,t)).array[u]=f,l)}return c&&e.array[u]===o?e:(s&&a(s),l=fn(e,t),void 0===o&&u===l.array.length-1?l.array.pop():l.array[u]=o,l)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function hn(e,t){if(t>=vn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&i],r-=5;return n}}function pn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new s,o=e._origin,a=e._capacity,l=o+t,u=void 0===n?a:n<0?a+n:o+n;if(l===o&&u===a)return e;if(l>=u)return e.clear();for(var c=e._level,d=e._root,f=0;l+f<0;)d=new on(d&&d.array.length?[void 0,d]:[],r),f+=1<<(c+=5);f&&(l+=f,o+=f,u+=f,a+=f);for(var h=vn(a),p=vn(u);p>=1<<c+5;)d=new on(d&&d.array.length?[d]:[],r),c+=5;var v=e._tail,g=p<h?hn(e,u-1):p>h?new on([],r):v;if(v&&p>h&&l<a&&v.array.length){for(var m=d=fn(d,r),y=c;y>5;y-=5){var b=h>>>y&i;m=m.array[b]=fn(m.array[b],r)}m.array[h>>>5&i]=v}if(u<a&&(g=g&&g.removeAfter(r,0,u)),l>=p)l-=p,u-=p,c=5,d=null,g=g&&g.removeBefore(r,0,l);else if(l>o||p<h){for(f=0;d;){var w=l>>>c&i;if(w!==p>>>c&i)break;w&&(f+=(1<<c)*w),c-=5,d=d.array[w]}d&&l>o&&(d=d.removeBefore(r,c,l-f)),d&&p<h&&(d=d.removeAfter(r,c,p-f)),f&&(l-=f,u-=f)}return e.__ownerID?(e.size=u-l,e._origin=l,e._capacity=u,e._level=c,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):un(l,u,c,d,g)}function vn(e){return e<r?0:e-1>>>5<<5}var gn,mn=function(e){function t(e){return null==e?bn():oe(e)?e:bn().withMutations((function(t){var n=O(e);We(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):bn()},t.prototype.set=function(e,t){return wn(this,e,t)},t.prototype.remove=function(e){return wn(this,e,o)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?yn(t,n,e,this.__hash):0===this.size?bn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Rt);function yn(e,t,n,r){var i=Object.create(mn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function bn(){return gn||(gn=yn(Ut(),cn()))}function wn(e,t,n){var i,a,s=e._map,l=e._list,u=s.get(t),c=void 0!==u;if(n===o){if(!c)return e;l.size>=r&&l.size>=2*s.size?(i=(a=l.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=a.__ownerID=e.__ownerID)):(i=s.remove(t),a=u===l.size-1?l.pop():l.set(u,void 0))}else if(c){if(n===l.get(u)[1])return e;i=s,a=l.set(u,[t,n])}else i=s.set(t,l.size),a=l.set(l.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=a,e.__hash=void 0,e.__altered=!0,e):yn(i,a)}mn.isOrderedMap=oe,mn.prototype[R]=!0,mn.prototype.delete=mn.prototype.remove;var _n="@@__IMMUTABLE_STACK__@@";function xn(e){return Boolean(e&&e[_n])}var kn=function(e){function t(e){return null==e?Sn():xn(e)?e:Sn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&xn(t))return t;We(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):jn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sn()},t.prototype.slice=function(t,n){if(d(t,n,this.size))return this;var r=f(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):0===this.size?Sn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new W(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new W(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new M((function(){if(r){var t=r.value;return r=r.next,L(e,n++,t)}return{value:void 0,done:!0}}))},t}(C);kn.isStack=xn;var On,Cn=kn.prototype;function jn(e,t,n,r){var i=Object.create(Cn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Sn(){return On||(On=jn(0))}Cn[_n]=!0,Cn.shift=Cn.pop,Cn.unshift=Cn.push,Cn.unshiftAll=Cn.pushAll,Cn.withMutations=Et,Cn.wasAltered=Dt,Cn.asImmutable=Tt,Cn["@@transducer/init"]=Cn.asMutable=At,Cn["@@transducer/step"]=function(e,t){return e.unshift(t)},Cn["@@transducer/result"]=function(e){return e.asImmutable()};var En="@@__IMMUTABLE_SET__@@";function An(e){return Boolean(e&&e[En])}function Tn(e){return An(e)&&I(e)}function Dn(e,t){if(e===t)return!0;if(!m(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||b(e)!==b(t)||_(e)!==_(t)||I(e)!==I(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!x(e);if(I(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&se(i[1],e)&&(n||se(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):i?!se(t,e.get(r,o)):!se(e.get(r,o),t))return s=!1,!1}));return s&&e.size===l}function Rn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function In(e){if(!e||"object"!=typeof e)return e;if(!m(e)){if(!Xe(e))return e;e=K(e)}if(b(e)){var t={};return e.__iterate((function(e,n){t[n]=In(e)})),t}var n=[];return e.__iterate((function(e){n.push(In(e))})),n}var Nn=function(e){function t(t){return null==t?Fn():An(t)&&!I(t)?t:Fn().withMutations((function(n){var r=e(t);We(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.intersect=function(e){return(e=k(e).toArray()).length?Mn.intersect.apply(t(e.pop()),e):Fn()},t.union=function(e){return(e=k(e).toArray()).length?Mn.union.apply(t(e.pop()),e):Fn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Ln(this,this._map.set(e,e))},t.prototype.remove=function(e){return Ln(this,this._map.remove(e))},t.prototype.clear=function(){return Ln(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Ln(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return ir(Le(this,e))},t.prototype.sortBy=function(e,t){return ir(Le(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(j);Nn.isSet=An;var Pn,Mn=Nn.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Zn(e,t){var n=Object.create(Mn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Fn(){return Pn||(Pn=Zn(Ut()))}Mn[En]=!0,Mn.delete=Mn.remove,Mn.merge=Mn.concat=Mn.union,Mn.withMutations=Et,Mn.asImmutable=Tt,Mn["@@transducer/init"]=Mn.asMutable=At,Mn["@@transducer/step"]=function(e,t){return e.add(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()},Mn.__empty=Fn,Mn.__make=Zn;var zn,Bn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ye(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(zn)return zn;zn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+u(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return d(e,n,this.size)?this:(e=f(e,this.size),(n=h(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new M((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,L(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Dn(this,e)},t}($);function Hn(e,t,n){for(var r=Je(t),i=0;i!==r.length;)if((e=nt(e,r[i++],o))===o)return n;return e}function Vn(e,t){return Hn(this,e,t)}function Un(e,t){return Hn(e,t,o)!==o}function Kn(){We(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}k.isIterable=m,k.isKeyed=b,k.isIndexed=_,k.isAssociative=x,k.isOrdered=I,k.Iterator=M,Rn(k,{toArray:function(){We(this.size);var e=new Array(this.size||0),t=b(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Se(this)},toJS:function(){return In(this)},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Rt(this.toKeyedSeq())},toObject:Kn,toOrderedMap:function(){return mn(this.toKeyedSeq())},toOrderedSet:function(){return ir(b(this)?this.valueSeq():this)},toSet:function(){return Nn(b(this)?this.valueSeq():this)},toSetSeq:function(){return new Ee(this)},toSeq:function(){return _(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return kn(b(this)?this.valueSeq():this)},toList:function(){return nn(b(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Be(this,function(e,t){var n=b(e),r=[e].concat(t).map((function(e){return m(e)?n&&(e=O(e)):e=n?ee(e):te(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&b(i)||_(e)&&_(i))return i}var o=new W(r);return n?o=o.toKeyedSeq():_(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}(this,e))},includes:function(e){return this.some((function(t){return se(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){We(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Be(this,Ie(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=b(e),i=[[],[]];e.__iterate((function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)}));var o=Ve(e);return i.map((function(t){return Be(e,o(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return We(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){We(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Be(this,De(this,e,t))},reduce:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Be(this,Re(this,!0))},slice:function(e,t){return Be(this,Ne(this,e,t,!0))},some:function(e,t){We(this.size);var n=!1;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1})),n},sort:function(e){return Be(this,Le(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return l(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Rt().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Dn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new W(e._cache);var t=e.toSeq().map(Qn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Xn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(c,null,e)},flatMap:function(e,t){return Be(this,function(e,t,n){var r=Ve(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Be(this,Me(this,e,!0))},fromEntrySeq:function(){return new Ae(this)},get:function(e,t){return this.find((function(t,n){return se(n,e)}),void 0,t)},getIn:Vn,groupBy:function(e,t){return function(e,t,n){var r=b(e),i=(I(e)?mn():Rt()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=Ve(e);return i.map((function(t){return Be(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,o)!==o},hasIn:function(e){return Un(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:k(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:k(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return se(t,e)}))},keySeq:function(){return this.toSeq().map(Gn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ze(this,e)},maxBy:function(e,t){return Ze(this,t,e)},min:function(e){return Ze(this,e?er(e):nr)},minBy:function(e,t){return Ze(this,t?er(t):nr,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Be(this,Pe(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Xn(e),t)},sortBy:function(e,t){return Be(this,Le(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Be(this,function(e,t,n){var r=Ue(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new M((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?2===r?e:L(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Xn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=I(e),n=b(e),r=t?1:0;return function(e,t){return t=le(t,3432918353),t=le(t<<15|t>>>-15,461845907),t=le(t<<13|t>>>-13,5),t=le((t=(t+3864292196|0)^e)^t>>>16,2246822507),ue((t=le(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+rr(de(e),de(t))|0}:function(e,t){r=r+rr(de(e),de(t))|0}:t?function(e){r=31*r+de(e)|0}:function(e){r=r+de(e)|0}),r)}(this))}});var qn=k.prototype;qn[g]=!0,qn[P]=qn.values,qn.toJSON=qn.toArray,qn.__toStringMapper=et,qn.inspect=qn.toSource=function(){return this.toString()},qn.chain=qn.flatMap,qn.contains=qn.includes,Rn(O,{flip:function(){return Be(this,Te(this))},mapEntries:function(e,t){var n=this,r=0;return Be(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Be(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var $n=O.prototype;$n[y]=!0,$n[P]=qn.entries,$n.toJSON=Kn,$n.__toStringMapper=function(e,t){return et(t)+": "+et(e)},Rn(C,{toKeyedSeq:function(){return new je(this,!1)},filter:function(e,t){return Be(this,Ie(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Be(this,Re(this,!1))},slice:function(e,t){return Be(this,Ne(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return Be(this,1===n?r:r.concat($e(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Be(this,Me(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Be(this,function(e,t){var n=Ue(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new M((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?L(n,a++,t):L(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat($e(arguments)),t=ze(this.toSeq(),$.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Be(this,n)},keySeq:function(){return Bn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Be(this,Pe(this,e,t,!1))},zip:function(){return Be(this,ze(this,tr,[this].concat($e(arguments))))},zipAll:function(){return Be(this,ze(this,tr,[this].concat($e(arguments)),!0))},zipWith:function(e){var t=$e(arguments);return t[0]=this,Be(this,ze(this,e,t))}});var Yn=C.prototype;Yn[w]=!0,Yn[R]=!0,Rn(j,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Wn=j.prototype;function Jn(e,t,n,r,i,o){return We(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function Gn(e,t){return t}function Qn(e,t){return[t,e]}function Xn(e){return function(){return!e.apply(this,arguments)}}function er(e){return function(){return-e.apply(this,arguments)}}function tr(){return $e(arguments)}function nr(e,t){return e<t?1:e>t?-1:0}function rr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Wn.has=qn.includes,Wn.contains=Wn.includes,Wn.keys=Wn.values,Rn(q,$n),Rn($,Yn),Rn(Y,Wn);var ir=function(e){function t(e){return null==e?lr():Tn(e)?e:lr().withMutations((function(t){var n=j(e);We(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Nn);ir.isOrderedSet=Tn;var or,ar=ir.prototype;function sr(e,t){var n=Object.create(ar);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function lr(){return or||(or=sr(bn()))}ar[R]=!0,ar.zip=Yn.zip,ar.zipWith=Yn.zipWith,ar.zipAll=Yn.zipAll,ar.__empty=lr,ar.__make=sr;var ur={LeftThenRight:-1,RightThenLeft:1},cr=function(e,t){var n;!function(e){if(T(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(D(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),l=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var u=0;u<s.length;u++){var c=s[u];l[c]=u,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+hr(this)+' with property "'+c+'" since that property name is part of the Record API.'):vr(i,c)}}return this.__ownerID=void 0,this._values=nn().withMutations((function(e){e.setSize(a._keys.length),O(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(dr);return i.constructor=r,t&&(r.displayName=t),r};cr.prototype.toString=function(){for(var e,t=hr(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+et(this.get(e));return t+" }"},cr.prototype.equals=function(e){return this===e||T(e)&&pr(this).equals(pr(e))},cr.prototype.hashCode=function(){return pr(this).hashCode()},cr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},cr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},cr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return fr(this,n)}return this},cr.prototype.remove=function(e){return this.set(e)},cr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fr(this,e)},cr.prototype.wasAltered=function(){return this._values.wasAltered()},cr.prototype.toSeq=function(){return pr(this)},cr.prototype.toJS=function(){return In(this)},cr.prototype.entries=function(){return this.__iterator(2)},cr.prototype.__iterator=function(e,t){return pr(this).__iterator(e,t)},cr.prototype.__iterate=function(e,t){return pr(this).__iterate(e,t)},cr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?fr(this,t,e):(this.__ownerID=e,this._values=t,this)},cr.isRecord=T,cr.getDescriptiveName=hr;var dr=cr.prototype;function fr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function hr(e){return e.constructor.displayName||e.constructor.name||"Record"}function pr(e){return ee(e._keys.map((function(t){return[t,e.get(t)]})))}function vr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}dr[A]=!0,dr.delete=dr.remove,dr.deleteIn=dr.removeIn=dt,dr.getIn=Vn,dr.hasIn=qn.hasIn,dr.merge=vt,dr.mergeWith=gt,dr.mergeIn=jt,dr.mergeDeep=Ot,dr.mergeDeepWith=Ct,dr.mergeDeepIn=St,dr.setIn=ut,dr.update=ht,dr.updateIn=pt,dr.withMutations=Et,dr.asMutable=At,dr.asImmutable=Tt,dr[P]=dr.entries,dr.toJSON=dr.toObject=qn.toObject,dr.inspect=dr.toSource=function(){return this.toString()};var gr,mr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(gr)return gr;gr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return se(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,h(n,r)-f(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return se(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return se(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new M((function(){return i===r?{value:void 0,done:!0}:L(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?se(this._value,e._value):Dn(e)},t}($);function yr(e,t){return br([],t||wr,e,"",t&&t.length>2?[]:void 0,{"":e})}function br(e,t,n,r,i,o){if("string"!=typeof n&&!D(n)&&(U(n)||F(n)||Qe(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,K(n).map((function(r,o){return br(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function wr(e,t){return _(t)?t.toList():b(t)?t.toMap():t.toSet()}var _r="4.3.1",xr={version:_r,Collection:k,Iterable:k,Seq:K,Map:Rt,OrderedMap:mn,List:nn,Stack:kn,Set:Nn,OrderedSet:ir,PairSorting:ur,Record:cr,Range:Bn,Repeat:mr,is:se,fromJS:yr,hash:de,isImmutable:D,isCollection:m,isKeyed:b,isIndexed:_,isAssociative:x,isOrdered:I,isValueObject:ae,isPlainObject:Qe,isSeq:E,isList:tn,isMap:ie,isOrderedMap:oe,isStack:xn,isSet:An,isOrderedSet:Tn,isRecord:T,get:nt,getIn:Hn,has:tt,hasIn:Un,merge:yt,mergeDeep:wt,mergeWith:bt,mergeDeepWith:_t,remove:it,removeIn:ct,set:ot,setIn:lt,update:ft,updateIn:at},kr=k;t.default=xr},4704:function(e){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;if(!t)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!t.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');e.exports.AbortController=t.AbortController},8826:function(){},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},3668:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(1120),i=n(8814);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=n(7326);function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function l(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var o=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(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.")}()}},168:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907),i=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},1072:function(e,t,n){"use strict";n.d(t,{IM:function(){return os},vD:function(){return as},QJ:function(){return ss},y9:function(){return ls},Yb:function(){return us},Np:function(){return cs},nH:function(){return ds},VK:function(){return fs},dm:function(){return hs},gn:function(){return ps},OG:function(){return vs}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(7762),l=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===l.trustedTypes&&(l.trustedTypes={createPolicy:function(e,t){return t}});var u={configurable:!1,enumerable:!1,writable:!1};void 0===l.FAST&&Reflect.defineProperty(l,"FAST",Object.assign({value:Object.create(null)},u));var c=l.FAST;if(void 0===c.getById){var d=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value:function(e,t){var n=d[e];return void 0===n&&(n=t?d[e]=t():null),n}},u))}var f=Object.freeze([]);function h(){var e=new WeakMap;return function(t){var n=e.get(t);if(void 0===n){for(var r=Reflect.getPrototypeOf(t);void 0===n&&null!==r;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}var p=n(4942),v=n(7326),g=l.FAST.getById(1,(function(){var e=[],t=[];function n(){if(t.length)throw t.shift()}function r(e){try{e.call()}catch(e){t.push(e),setTimeout(n,0)}}function i(){for(var t=0;t<e.length;)if(r(e[t]),++t>1024){for(var n=0,i=e.length-t;n<i;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&l.requestAnimationFrame(i),e.push(t)},process:i})})),m=l.trustedTypes.createPolicy("fast-html",{createHTML:function(e){return e}}),y=m,b="fast-".concat(Math.random().toString(36).substring(2,8)),w="".concat(b,"{"),_="}".concat(b),x=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy:function(e){if(y!==m)throw new Error("The HTML policy can only be set once.");y=e},createHTML:function(e){return y.createHTML(e)},isMarker:function(e){return e&&8===e.nodeType&&e.data.startsWith(b)},extractDirectiveIndexFromMarker:function(e){return parseInt(e.data.replace("".concat(b,":"),""))},createInterpolationPlaceholder:function(e){return"".concat(w).concat(e).concat(_)},createCustomAttributePlaceholder:function(e,t){return"".concat(e,'="').concat(this.createInterpolationPlaceholder(t),'"')},createBlockPlaceholder:function(e){return"\x3c!--".concat(b,":").concat(e,"--\x3e")},queueUpdate:g.enqueue,processUpdates:g.process,nextUpdate:function(){return new Promise(g.enqueue)},setAttribute:function(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute:function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes:function(e){for(var t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:function(e){return document.createTreeWalker(e,133,null,!1)}}),k=function(){function e(t,n){(0,r.Z)(this,e),this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}return(0,i.Z)(e,[{key:"has",value:function(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}},{key:"subscribe",value:function(e){var t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}},{key:"unsubscribe",value:function(e){var t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},{key:"notify",value:function(e){var t=this.spillover,n=this.source;if(void 0===t){var r=this.sub1,i=this.sub2;void 0!==r&&r.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(var o=0,a=t.length;o<a;++o)t[o].handleChange(n,e)}}]),e}(),O=function(){function e(t){(0,r.Z)(this,e),this.subscribers={},this.sourceSubscribers=null,this.source=t}return(0,i.Z)(e,[{key:"notify",value:function(e){var t,n=this.subscribers[e];void 0!==n&&n.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}},{key:"subscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0===r&&(this.subscribers[t]=r=new k(this.source)),r.subscribe(e)}else this.sourceSubscribers=null!==(n=this.sourceSubscribers)&&void 0!==n?n:new k(this.source),this.sourceSubscribers.subscribe(e)}},{key:"unsubscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0!==r&&r.unsubscribe(e)}else null===(n=this.sourceSubscribers)||void 0===n||n.unsubscribe(e)}}]),e}(),C=c.getById(2,(function(){var e=/(:|&&|\|\||if)/,t=new WeakMap,n=x.queueUpdate,s=void 0,l=function(e){throw new Error("Must call enableArrayObservation before observing arrays.")};function u(e){var n=e.$fastController||t.get(e);return void 0===n&&(Array.isArray(e)?n=l(e):t.set(e,n=new O(e))),n}var c=h(),d=function(){function e(t){(0,r.Z)(this,e),this.name=t,this.field="_".concat(t),this.callback="".concat(t,"Changed")}return(0,i.Z)(e,[{key:"getValue",value:function(e){return void 0!==s&&s.watch(e,this.name),e[this.field]}},{key:"setValue",value:function(e,t){var n=this.field,r=e[n];if(r!==t){e[n]=t;var i=e[this.callback];"function"==typeof i&&i.call(e,r,t),u(e).notify(this.name)}}}]),e}(),f=function(e){(0,o.Z)(l,e);var t=(0,a.Z)(l);function l(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.Z)(this,l),(i=t.call(this,e,n)).binding=e,i.isVolatileBinding=o,i.needsRefresh=!0,i.needsQueue=!0,i.first=(0,v.Z)(i),i.last=null,i.propertySource=void 0,i.propertyName=void 0,i.notifier=void 0,i.next=void 0,i}return(0,i.Z)(l,[{key:"observe",value:function(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();var n=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;var r=this.binding(e,t);return s=n,r}},{key:"disconnect",value:function(){if(null!==this.last){for(var e=this.first;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}},{key:"watch",value:function(e,t){var n,r=this.last,i=u(e),o=null===r?this.first:{};o.propertySource=e,o.propertyName=t,o.notifier=i,i.subscribe(this,t),null!==r&&(this.needsRefresh||(s=void 0,n=r.propertySource[r.propertyName],s=this,e===n&&(this.needsRefresh=!0)),r.next=o),this.last=o}},{key:"handleChange",value:function(){this.needsQueue&&(this.needsQueue=!1,n(this))}},{key:"call",value:function(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}},{key:"records",value:function(){var e=this.first;return(0,p.Z)({next:function(){var t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})}},Symbol.iterator,(function(){return this}))}}]),l}(k);return Object.freeze({setArrayObserverFactory:function(e){l=e},getNotifier:u,track:function(e,t){void 0!==s&&s.watch(e,t)},trackVolatile:function(){void 0!==s&&(s.needsRefresh=!0)},notify:function(e,t){u(e).notify(t)},defineProperty:function(e,t){"string"==typeof t&&(t=new d(t)),c(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:c,binding:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.isVolatileBinding(e);return new f(e,t,n)},isVolatileBinding:function(t){return e.test(t.toString())}})}));function j(e,t){C.defineProperty(e,t)}var S=c.getById(3,(function(){var e=null;return{get:function(){return e},set:function(t){e=t}}})),E=function(){function e(){(0,r.Z)(this,e),this.index=0,this.length=0,this.parent=null,this.parentContext=null}return(0,i.Z)(e,[{key:"event",get:function(){return S.get()}},{key:"isEven",get:function(){return this.index%2==0}},{key:"isOdd",get:function(){return this.index%2!=0}},{key:"isFirst",get:function(){return 0===this.index}},{key:"isInMiddle",get:function(){return!this.isFirst&&!this.isLast}},{key:"isLast",get:function(){return this.index===this.length-1}}],[{key:"setEvent",value:function(e){S.set(e)}}]),e}();C.defineProperty(E.prototype,"index"),C.defineProperty(E.prototype,"length");var A=Object.seal(new E),T=n(1120);function D(){return D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,T.Z)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},D.apply(this,arguments)}var R=n(2982),I=function(){function e(){(0,r.Z)(this,e),this.targets=new WeakSet}return(0,i.Z)(e,[{key:"addStylesTo",value:function(e){this.targets.add(e)}},{key:"removeStylesFrom",value:function(e){this.targets.delete(e)}},{key:"isAttachedTo",value:function(e){return this.targets.has(e)}},{key:"withBehaviors",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}]),e}();function N(e){return e.map((function(e){return e instanceof I?N(e.styles):[e]})).reduce((function(e,t){return e.concat(t)}),[])}function P(e){return e.map((function(e){return e instanceof I?e.behaviors:null})).reduce((function(e,t){return null===t?e:(null===e&&(e=[]),e.concat(t))}),null)}I.create=function(){if(x.supportsAdoptedStyleSheets){var e=new Map;return function(t){return new Z(t,e)}}return function(e){return new z(e)}}();var M=function(e,t){e.adoptedStyleSheets=[].concat((0,R.Z)(e.adoptedStyleSheets),(0,R.Z)(t))},L=function(e,t){e.adoptedStyleSheets=e.adoptedStyleSheets.filter((function(e){return-1===t.indexOf(e)}))};if(x.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),M=function(e,t){var n;(n=e.adoptedStyleSheets).push.apply(n,(0,R.Z)(t))},L=function(e,t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.adoptedStyleSheets.indexOf(i);-1!==o&&e.adoptedStyleSheets.splice(o,1)}}catch(e){r.e(e)}finally{r.f()}}}catch(e){}var Z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).styles=e,o.styleSheetCache=i,o._styleSheets=void 0,o.behaviors=P(e),o}return(0,i.Z)(n,[{key:"styleSheets",get:function(){if(void 0===this._styleSheets){var e=this.styles,t=this.styleSheetCache;this._styleSheets=N(e).map((function(e){if(e instanceof CSSStyleSheet)return e;var n=t.get(e);return void 0===n&&((n=new CSSStyleSheet).replaceSync(e),t.set(e,n)),n}))}return this._styleSheets}},{key:"addStylesTo",value:function(e){M(e,this.styleSheets),D((0,T.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){L(e,this.styleSheets),D((0,T.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}}]),n}(I),F=0,z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).styles=e,i.behaviors=null,i.behaviors=P(e),i.styleSheets=N(e),i.styleClass="fast-style-class-".concat(++F),i}return(0,i.Z)(n,[{key:"addStylesTo",value:function(e){var t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(var i=0;i<t.length;i++){var o=document.createElement("style");o.innerHTML=t[i],o.className=r,e.append(o)}D((0,T.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){for(var t=(e=this.normalizeTarget(e)).querySelectorAll(".".concat(this.styleClass)),r=0,i=t.length;r<i;++r)e.removeChild(t[r]);D((0,T.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}},{key:"isAttachedTo",value:function(e){return D((0,T.Z)(n.prototype),"isAttachedTo",this).call(this,this.normalizeTarget(e))}},{key:"normalizeTarget",value:function(e){return e===document?document.body:e}}]),n}(I),B=Object.freeze({locate:h()}),H={toView:function(e){return e?"true":"false"},fromView:function(e){return null!=e&&"false"!==e&&!1!==e&&0!==e}},V={toView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t.toString()},fromView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t}},U=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.toLowerCase(),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"reflect",a=arguments.length>4?arguments[4]:void 0;(0,r.Z)(this,e),this.guards=new Set,this.Owner=t,this.name=n,this.attribute=i,this.mode=o,this.converter=a,this.fieldName="_".concat(n),this.callbackName="".concat(n,"Changed"),this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===a&&(this.converter=H)}return(0,i.Z)(e,[{key:"setValue",value:function(e,t){var n=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}},{key:"getValue",value:function(e){return C.track(e,this.name),e[this.fieldName]}},{key:"onAttributeChangedCallback",value:function(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}},{key:"tryReflectToAttribute",value:function(e){var t=this,n=this.mode,r=this.guards;r.has(e)||"fromView"===n||x.queueUpdate((function(){r.add(e);var i=e[t.fieldName];switch(n){case"reflect":var o=t.converter;x.setAttribute(e,t.attribute,void 0!==o?o.toView(i):i);break;case"boolean":x.setBooleanAttribute(e,t.attribute,i)}r.delete(e)}))}}],[{key:"collect",value:function(t){for(var n=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];i.push(B.locate(t));for(var a=0,s=i.length;a<s;++a){var l=i[a];if(void 0!==l)for(var u=0,c=l.length;u<c;++u){var d=l[u];"string"==typeof d?n.push(new e(t,d)):n.push(new e(t,d.property,d.attribute,d.mode,d.converter))}}return n}}]),e}();function K(e,t){var n;function r(e,t){arguments.length>1&&(n.property=t),B.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}var q={mode:"open"},$={},Y=c.getById(4,(function(){var e=new Map;return Object.freeze({register:function(t){return!e.has(t.type)&&(e.set(t.type,t),!0)},getByType:function(t){return e.get(t)}})})),W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.definition;(0,r.Z)(this,e),"string"==typeof n&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;for(var i=U.collect(t,n.attributes),o=new Array(i.length),a={},s={},l=0,u=i.length;l<u;++l){var c=i[l];o[l]=c.attribute,a[c.name]=c,s[c.attribute]=c}this.attributes=i,this.observedAttributes=o,this.propertyLookup=a,this.attributeLookup=s,this.shadowOptions=void 0===n.shadowOptions?q:null===n.shadowOptions?void 0:Object.assign(Object.assign({},q),n.shadowOptions),this.elementOptions=void 0===n.elementOptions?$:Object.assign(Object.assign({},$),n.elementOptions),this.styles=void 0===n.styles?void 0:Array.isArray(n.styles)?I.create(n.styles):n.styles instanceof I?n.styles:I.create([n.styles])}return(0,i.Z)(e,[{key:"isDefined",get:function(){return!!Y.getByType(this.type)}},{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements,t=this.type;if(Y.register(this)){for(var n=this.attributes,r=t.prototype,i=0,o=n.length;i<o;++i)C.defineProperty(r,n[i]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}]),e}();function J(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}W.forType=Y.getByType;var G=n(885),Q=new WeakMap,X={bubbles:!0,composed:!0,cancelable:!0};function ee(e){return e.shadowRoot||Q.get(e)||null}var te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;(0,r.Z)(this,n),(o=t.call(this,e)).boundObservables=null,o.behaviors=null,o.needsInitialization=!0,o._template=null,o._styles=null,o._isConnected=!1,o.$fastController=(0,v.Z)(o),o.view=null,o.element=e,o.definition=i;var a=i.shadowOptions;if(void 0!==a){var s=e.attachShadow(a);"closed"===a.mode&&Q.set(e,s)}var l=C.getAccessors(e);if(l.length>0)for(var u=o.boundObservables=Object.create(null),c=0,d=l.length;c<d;++c){var f=l[c].name,h=e[f];void 0!==h&&(delete e[f],u[f]=h)}return o}return(0,i.Z)(n,[{key:"isConnected",get:function(){return C.track(this,"isConnected"),this._isConnected}},{key:"setIsConnected",value:function(e){this._isConnected=e,C.notify(this,"isConnected")}},{key:"template",get:function(){return this._template},set:function(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}},{key:"styles",get:function(){return this._styles},set:function(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}},{key:"addStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){var n=e.behaviors;e.addStylesTo(t),null!==n&&this.addBehaviors(n)}}},{key:"removeStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){var n=e.behaviors;e.removeStylesFrom(t),null!==n&&this.removeBehaviors(n)}}},{key:"addBehaviors",value:function(e){for(var t=this.behaviors||(this.behaviors=new Map),n=e.length,r=[],i=0;i<n;++i){var o=e[i];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),r.push(o))}if(this._isConnected)for(var a=this.element,s=0;s<r.length;++s)r[s].bind(a,A)}},{key:"removeBehaviors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.behaviors;if(null!==n){for(var r=e.length,i=[],o=0;o<r;++o){var a=e[o];if(n.has(a)){var s=n.get(a)-1;0===s||t?n.delete(a)&&i.push(a):n.set(a,s)}}if(this._isConnected)for(var l=this.element,u=0;u<i.length;++u)i[u].unbind(l)}}},{key:"onConnectedCallback",value:function(){if(!this._isConnected){var e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,A);var t=this.behaviors;if(null!==t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;)(0,G.Z)(n.value,1)[0].bind(e,A)}catch(e){r.e(e)}finally{r.f()}}this.setIsConnected(!0)}}},{key:"onDisconnectedCallback",value:function(){if(this._isConnected){this.setIsConnected(!1);var e=this.view;null!==e&&e.unbind();var t=this.behaviors;if(null!==t){var n,r=this.element,i=(0,s.Z)(t);try{for(i.s();!(n=i.n()).done;)(0,G.Z)(n.value,1)[0].unbind(r)}catch(e){i.e(e)}finally{i.f()}}}}},{key:"onAttributeChangedCallback",value:function(e,t,n){var r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}},{key:"emit",value:function(e,t,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},X),n)))}},{key:"finishInitialization",value:function(){var e=this.element,t=this.boundObservables;if(null!==t){for(var n=Object.keys(t),r=0,i=n.length;r<i;++r){var o=n[r];e[o]=t[o]}this.boundObservables=null}var a=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():a.template&&(this._template=a.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():a.styles&&(this._styles=a.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}},{key:"renderTemplate",value:function(e){var t=this.element,n=ee(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||x.removeChildNodes(n),e&&(this.view=e.render(t,n,t))}}],[{key:"forCustomElement",value:function(e){var t=e.$fastController;if(void 0!==t)return t;var r=W.forType(e.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return e.$fastController=new n(e,r)}}]),n}(O);function ne(e){return function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),e=t.call(this),te.forCustomElement((0,v.Z)(e)),e}return(0,i.Z)(n,[{key:"$emit",value:function(e,t,n){return this.$fastController.emit(e,t,n)}},{key:"connectedCallback",value:function(){this.$fastController.onConnectedCallback()}},{key:"disconnectedCallback",value:function(){this.$fastController.onDisconnectedCallback()}},{key:"attributeChangedCallback",value:function(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}}]),n}(e)}var re=Object.assign(ne(HTMLElement),{from:function(e){return ne(e)},define:function(e,t){return new W(e,t).define().type}}),ie=n(9611),oe=n(8814);function ae(e,t,n){return ae=(0,oe.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,ie.Z)(i,n.prototype),i},ae.apply(null,arguments)}var se=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){var r=se.get(n);void 0===r&&se.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){var n=se.get(t);if(void 0!==n)return n.get(e)});var le=function(){function e(t,n){(0,r.Z)(this,e),this.container=t,this.key=n}return(0,i.Z)(e,[{key:"instance",value:function(e){return this.registerResolver(0,e)}},{key:"singleton",value:function(e){return this.registerResolver(1,e)}},{key:"transient",value:function(e){return this.registerResolver(2,e)}},{key:"callback",value:function(e){return this.registerResolver(3,e)}},{key:"cachedCallback",value:function(e){return this.registerResolver(3,Ne(e))}},{key:"aliasTo",value:function(e){return this.registerResolver(5,e)}},{key:"registerResolver",value:function(e,t){var n=this.container,r=this.key;return this.container=this.key=void 0,n.registerResolver(r,new _e(r,e,t))}}]),e}();function ue(e){for(var t,n=e.slice(),r=Object.keys(e),i=r.length,o=0;o<i;++o)He(t=r[o])||(n[t]=e[t]);return n}var ce=Object.freeze({none:function(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:function(e){return new _e(e,1,e)},transient:function(e){return new _e(e,2,e)}}),de=Object.freeze({default:Object.freeze({parentLocator:function(){return null},responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),fe=new Map;function he(e){return function(t){return Reflect.getOwnMetadata(e,t)}}var pe=null,ve=Object.freeze({createContainer:function(e){return new Re(null,Object.assign({},de.default,e))},findResponsibleContainer:function(e){var t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ve.findParentContainer(e)},findParentContainer:function(e){var t=new CustomEvent(Te,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ve.getOrCreateDOMContainer()},getOrCreateDOMContainer:function(e,t){return e?e.$$container$$||new Re(e,Object.assign({},de.default,t,{parentLocator:ve.findParentContainer})):pe||(pe=new Re(null,Object.assign({},de.default,t,{parentLocator:function(){return null}})))},getDesignParamtypes:he("design:paramtypes"),getAnnotationParamtypes:he("di:paramtypes"),getOrCreateAnnotationParamTypes:function(e){var t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies:function(e){var t=fe.get(e);if(void 0===t){var n=e.inject;if(void 0===n){var r=ve.getDesignParamtypes(e),i=ve.getAnnotationParamtypes(e);if(void 0===r)if(void 0===i){var o=Object.getPrototypeOf(e);t="function"==typeof o&&o!==Function.prototype?ue(ve.getDependencies(o)):[]}else t=ue(i);else if(void 0===i)t=ue(r);else{t=ue(r);for(var a,s=i.length,l=0;l<s;++l)void 0!==(a=i[l])&&(t[l]=a);var u,c=Object.keys(i);s=c.length;for(var d=0;d<s;++d)He(u=c[d])||(t[u]=i[u])}}else t=ue(n);fe.set(e,t)}return t},defineProperty:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="$di_".concat(t);Reflect.defineProperty(e,t,{get:function(){var e=this,o=this[i];if(void 0===o){var a=this instanceof HTMLElement?ve.findResponsibleContainer(this):ve.getOrCreateDOMContainer();if(o=a.get(n),this[i]=o,r&&this instanceof re){var s=this.$fastController;s.subscribe({handleChange:function(){ve.findResponsibleContainer(e).get(n)!==e[i]&&(e[i]=o,s.notify(t))}},"isConnected")}}return o}})},createInterface:function(e,t){var n="function"==typeof e?e:t,r="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Ze,i="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),o=function e(t,n,r){if(null==t||void 0!==(this instanceof e?this.constructor:void 0))throw new Error("No registration for interface: '".concat(o.friendlyName,"'"));n?ve.defineProperty(t,n,o,i):ve.getOrCreateAnnotationParamTypes(t)[r]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new le(e,null!=t?t:o))}),o.toString=function(){return"InterfaceSymbol<".concat(o.friendlyName,">")},o},inject:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){if("number"==typeof r){var i=ve.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[r]=o)}else if(n)ve.defineProperty(e,n,t[0]);else for(var a,s=r?ve.getOrCreateAnnotationParamTypes(r.value):ve.getOrCreateAnnotationParamTypes(e),l=0;l<t.length;++l)void 0!==(a=t[l])&&(s[l]=a)}},transient:function(e){return e.register=function(t){return Pe.transient(e,e).register(t)},e.registerInRequestor=!1,e},singleton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye;return e.register=function(t){return Pe.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),ge=ve.createInterface("Container");function me(e){return function(t){var n=function e(t,n,r){ve.inject(e)(t,n,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ve.inject;var ye={scoped:!1};function be(e,t,n){ve.inject(be)(e,t,n)}function we(e,t){return t.getFactory(e).construct(t)}me((function(e,t,n){return function(){return n.get(e)}})),me((function(e,t,n){return n.has(e,!0)?n.get(e):void 0})),be.$isResolver=!0,be.resolve=function(){},me((function(e,t,n){var r=we(e,t),i=new _e(e,0,r);return n.registerResolver(e,i),r})),me((function(e,t,n){return we(e,t)}));var _e=function(){function e(t,n,i){(0,r.Z)(this,e),this.key=t,this.strategy=n,this.state=i,this.resolving=!1}return(0,i.Z)(e,[{key:"$isResolver",get:function(){return!0}},{key:"register",value:function(e){return e.registerResolver(this.key,this)}},{key:"resolve",value:function(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: ".concat(this.state.name));return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:var n=e.getFactory(this.state);if(null===n)throw new Error("Resolver for ".concat(String(this.key)," returned a null factory"));return n.construct(t);case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error("Invalid resolver strategy specified: ".concat(this.strategy,"."))}}},{key:"getFactory",value:function(e){var t,n,r;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(r=null===(n=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:null;default:return null}}}]),e}();function xe(e){return this.get(e)}function ke(e,t){return t(e)}var Oe=function(){function e(t,n){(0,r.Z)(this,e),this.Type=t,this.dependencies=n,this.transformers=null}return(0,i.Z)(e,[{key:"construct",value:function(e,t){var n;return n=ae(this.Type,void 0===t?(0,R.Z)(this.dependencies.map(xe,e)):(0,R.Z)(this.dependencies.map(xe,e)).concat((0,R.Z)(t))),null==this.transformers?n:this.transformers.reduce(ke,n)}},{key:"registerTransformer",value:function(e){(this.transformers||(this.transformers=[])).push(e)}}]),e}(),Ce={$isResolver:!0,resolve:function(e,t){return t}};function je(e){return"function"==typeof e.register}function Se(e){return function(e){return je(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}function Ee(e){return void 0!==e.prototype}var Ae=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Te="__DI_LOCATE_PARENT__",De=new Map,Re=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this.owner=t,this.config=n,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(ge,Ce),t instanceof Node&&t.addEventListener(Te,(function(e){e.composedPath()[0]!==i.owner&&(e.detail.container=i,e.stopImmediatePropagation())}))}return(0,i.Z)(e,[{key:"parent",get:function(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}},{key:"depth",get:function(){return null===this.parent?0:this.parent.depth+1}},{key:"responsibleForOwnerRequests",get:function(){return this.config.responsibleForOwnerRequests}},{key:"registerWithContext",value:function(e){this.context=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.register.apply(this,n),this.context=null,this}},{key:"register",value:function(){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");for(var e,t,n,r,i,o=this.context,a=0,s=arguments.length;a<s;++a)if(Fe(e=a<0||arguments.length<=a?void 0:arguments[a]))if(je(e))e.register(this,o);else if(Ee(e))Pe.singleton(e,e).register(this);else for(r=0,i=(t=Object.keys(e)).length;r<i;++r)Fe(n=e[t[r]])&&(je(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}},{key:"registerResolver",value:function(e,t){Me(e);var n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof _e&&4===r.strategy?r.state.push(t):n.set(e,new _e(e,4,[r,t])),t}},{key:"registerTransformer",value:function(e,t){var n=this.getResolver(e);if(null==n)return!1;if(n.getFactory){var r=n.getFactory(this);return null!=r&&(r.registerTransformer(t),!0)}return!1}},{key:"getResolver",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Me(e),void 0!==e.resolve)return e;for(var n,r=this;null!=r;){if(null!=(n=r.resolvers.get(e)))return n;if(null==r.parent){var i=Se(e)?this:r;return t?this.jitRegister(e,i):null}r=r.parent}return null}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}},{key:"get",value:function(e){if(Me(e),e.$isResolver)return e.resolve(this,this);for(var t,n=this;null!=n;){if(null!=(t=n.resolvers.get(e)))return t.resolve(n,this);if(null==n.parent){var r=Se(e)?this:n;return(t=this.jitRegister(e,r)).resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(e))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Me(e);var n,r=this,i=r;if(t){for(var o=f;null!=i;)null!=(n=i.resolvers.get(e))&&(o=o.concat(Le(n,i,r))),i=i.parent;return o}for(;null!=i;){if(null!=(n=i.resolvers.get(e)))return Le(n,i,r);if(null==(i=i.parent))return f}return f}},{key:"getFactory",value:function(e){var t=De.get(e);if(void 0===t){if(ze(e))throw new Error("".concat(e.name," is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver."));De.set(e,t=new Oe(e,ve.getDependencies(e)))}return t}},{key:"registerFactory",value:function(e,t){De.set(e,t)}},{key:"createChild",value:function(t){var n=this;return new e(null,Object.assign({},this.config,t,{parentLocator:function(){return n}}))}},{key:"jitRegister",value:function(e,t){if("function"!=typeof e)throw new Error("Attempted to jitRegister something that is not a constructor: '".concat(e,"'. Did you forget to register this dependency?"));if(Ae.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(je(e)){var n=e.register(t);if(!(n instanceof Object)||null==n.resolve){var r=t.resolvers.get(e);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return n}if(e.$isInterface)throw new Error("Attempted to jitRegister an interface: ".concat(e.friendlyName));var i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}]),e}(),Ie=new WeakMap;function Ne(e){return function(t,n,r){if(Ie.has(r))return Ie.get(r);var i=e(t,n,r);return Ie.set(r,i),i}}var Pe=Object.freeze({instance:function(e,t){return new _e(e,0,t)},singleton:function(e,t){return new _e(e,1,t)},transient:function(e,t){return new _e(e,2,t)},callback:function(e,t){return new _e(e,3,t)},cachedCallback:function(e,t){return new _e(e,3,Ne(t))},aliasTo:function(e,t){return new _e(t,5,e)}});function Me(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Le(e,t,n){if(e instanceof _e&&4===e.strategy){for(var r=e.state,i=r.length,o=new Array(i);i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}var Ze="(anonymous)";function Fe(e){return"object"==typeof e&&null!==e||"function"==typeof e}var ze=function(){var e=new WeakMap,t=!1,n="",r=0;return function(i){return void 0===(t=e.get(i))&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&125===n.charCodeAt(r-1)&&n.charCodeAt(r-2)<=32&&93===n.charCodeAt(r-3)&&101===n.charCodeAt(r-4)&&100===n.charCodeAt(r-5)&&111===n.charCodeAt(r-6)&&99===n.charCodeAt(r-7)&&32===n.charCodeAt(r-8)&&101===n.charCodeAt(r-9)&&118===n.charCodeAt(r-10)&&105===n.charCodeAt(r-11)&&116===n.charCodeAt(r-12)&&97===n.charCodeAt(r-13)&&110===n.charCodeAt(r-14)&&88===n.charCodeAt(r-15),e.set(i,t)),t}}(),Be={};function He(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":var t=Be[e];if(void 0!==t)return t;var n=e.length;if(0===n)return Be[e]=!1;for(var r=0,i=0;i<n;++i)if(r=e.charCodeAt(i),0===i&&48===r&&n>1||r<48||r>57)return Be[e]=!1;return Be[e]=!0;default:return!1}}function Ve(e){return"".concat(e.toLowerCase(),":presentation")}var Ue=new Map,Ke=Object.freeze({define:function(e,t,n){var r=Ve(e);void 0===Ue.get(r)?Ue.set(r,t):Ue.set(r,!1),n.register(Pe.instance(r,t))},forTag:function(e,t){var n=Ve(e),r=Ue.get(n);return!1===r?ve.findResponsibleContainer(t).get(n):r||null}}),qe=function(){function e(t,n){(0,r.Z)(this,e),this.template=t||null,this.styles=void 0===n?null:Array.isArray(n)?I.create(n):n instanceof I?n:I.create([n])}return(0,i.Z)(e,[{key:"applyTo",value:function(e){var t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}]),e}(),$e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._presentation=void 0,e}return(0,i.Z)(n,[{key:"$presentation",get:function(){return void 0===this._presentation&&(this._presentation=Ke.forTag(this.tagName,this)),this._presentation}},{key:"templateChanged",value:function(){void 0!==this.template&&(this.$fastController.template=this.template)}},{key:"stylesChanged",value:function(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}},{key:"connectedCallback",value:function(){null!==this.$presentation&&this.$presentation.applyTo(this),D((0,T.Z)(n.prototype),"connectedCallback",this).call(this)}}],[{key:"compose",value:function(e){var t=this;return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new We(t===n?function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(n):t,e,s)}}}]),n}(re);function Ye(e,t,n){return"function"==typeof e?e(t,n):e}J([j],$e.prototype,"template",void 0),J([j],$e.prototype,"styles",void 0);var We=function(){function e(t,n,i){(0,r.Z)(this,e),this.type=t,this.elementDefinition=n,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}return(0,i.Z)(e,[{key:"register",value:function(e,t){var n=this.definition,r=this.overrideDefinition,i=n.prefix||t.elementPrefix,o="".concat(i,"-").concat(n.baseName);t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:function(e){var t=new qe(Ye(n.template,e,n),Ye(n.styles,e,n));e.definePresentation(t);var i=Ye(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:Ye(n.elementOptions,e,n),shadowOptions:i,attributes:Ye(n.attributes,e,n)})}})}}]),e}(),Je=new Set(["children","localName","ref","style","className"]),Ge=Object.freeze(Object.create(null)),Qe="_default",Xe=new Map;function et(e,t){if(!t.name){var n=W.forType(e);if(!n)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=n.name}return t.name}function tt(e){return e.events||(e.events={})}function nt(e,t,n){return!Je.has(n)||(console.warn("".concat(et(e,t)," contains property ").concat(n," which is a React ")+"reserved property. It will be used by React and not set on the element."),!1)}function rt(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(tt(t))));else{var n=new Set(Object.keys(tt(t))),r=C.getAccessors(e.prototype);if(r.length>0){var i,o=(0,s.Z)(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;nt(e,t,a.name)&&n.add(a.name)}}catch(e){o.e(e)}finally{o.f()}}else for(var l in e.prototype)!(l in HTMLElement.prototype)&&nt(e,t,l)&&n.add(l);t.keys=n}return t.keys}var it=n(2791),ot=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).generateBadgeStyle=function(){if(e.fill||e.color){var t="background-color: var(--badge-fill-".concat(e.fill,");"),n="color: var(--badge-color-".concat(e.color,");");return e.fill&&!e.color?t:e.color&&!e.fill?n:"".concat(n," ").concat(t)}},e}return(0,i.Z)(n)}($e);J([K({attribute:"fill"})],ot.prototype,"fill",void 0),J([K({attribute:"color"})],ot.prototype,"color",void 0),J([K({mode:"boolean"})],ot.prototype,"circular",void 0);var at=n(168),st=(0,i.Z)((function e(){(0,r.Z)(this,e),this.targetIndex=0})),lt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).createPlaceholder=x.createInterpolationPlaceholder,e}return(0,i.Z)(n)}(st),ut=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).name=e,a.behavior=i,a.options=o,a}return(0,i.Z)(n,[{key:"createPlaceholder",value:function(e){return x.createCustomAttributePlaceholder(this.name,e)}},{key:"createBehavior",value:function(e){return new this.behavior(e,this.options)}}]),n}(st);function ct(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=C.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function dt(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function ft(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function ht(){this.bindingObserver.disconnect(),this.source=null,this.context=null;var e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function pt(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function vt(e){x.setAttribute(this.target,this.targetName,e)}function gt(e){x.setBooleanAttribute(this.target,this.targetName,e)}function mt(e){if(null!=e||(e=""),e.create){this.target.textContent="";var t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{var n=this.target.$fastView;void 0!==n&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),this.target.textContent=e}}function yt(e){this.target[this.targetName]=e}function bt(e){var t=this.classVersions||Object.create(null),n=this.target,r=this.version||0;if(null!=e&&e.length)for(var i=e.split(/\s+/),o=0,a=i.length;o<a;++o){var s=i[o];""!==s&&(t[s]=r,n.classList.add(s))}if(this.classVersions=t,this.version=r+1,0!==r)for(var l in r-=1,t)t[l]===r&&n.classList.remove(l)}var wt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).binding=e,i.bind=ct,i.unbind=ft,i.updateTarget=vt,i.isBindingVolatile=C.isVolatileBinding(i.binding),i}return(0,i.Z)(n,[{key:"targetName",get:function(){return this.originalTargetName},set:function(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=yt,"innerHTML"===this.cleanedTargetName){var t=this.binding;this.binding=function(e,n){return x.createHTML(t(e,n))}}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=gt;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=dt,this.unbind=pt;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=bt)}}},{key:"targetAtContent",value:function(){this.updateTarget=mt,this.unbind=ht}},{key:"createBehavior",value:function(e){return new _t(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}]),n}(lt),_t=function(){function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=i,this.bind=o,this.unbind=a,this.updateTarget=s,this.targetName=l}return(0,i.Z)(e,[{key:"handleChange",value:function(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}},{key:"handleEvent",value:function(e){E.setEvent(e);var t=this.binding(this.source,this.context);E.setEvent(null),!0!==t&&e.preventDefault()}}]),e}(),xt=null,kt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"addFactory",value:function(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}},{key:"captureContentBinding",value:function(e){e.targetAtContent(),this.addFactory(e)}},{key:"reset",value:function(){this.behaviorFactories=[],this.targetIndex=-1}},{key:"release",value:function(){xt=this}}],[{key:"borrow",value:function(t){var n=xt||new e;return n.directives=t,n.reset(),xt=null,n}}]),e}(),Ot=_.length;function Ct(e,t){var n=t.split(w);if(1===n.length)return null;for(var r=[],i=0,o=n.length;i<o;++i){var a=n[i],s=a.indexOf(_),l=void 0;if(-1===s)l=a;else{var u=parseInt(a.substring(0,s));r.push(e.directives[u]),l=a.substring(s+Ot)}""!==l&&r.push(l)}return r}function jt(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.attributes,i=function(i,s){var l=r[i],u=l.value,c=Ct(e,u),d=null;null===c?n&&((d=new wt((function(){return u}))).targetName=l.name):d=function(e){if(1===e.length)return e[0];var t,n=e.length,r=e.map((function(e){return"string"==typeof e?function(){return e}:(t=e.targetName||t,e.binding)})),i=new wt((function(e,t){for(var i="",o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}(c),null!==d&&(t.removeAttributeNode(l),i--,s--,e.addFactory(d)),o=i,a=s},o=0,a=r.length;o<a;++o)i(o,a)}function St(e,t,n){var r=Ct(e,t.textContent);if(null!==r){for(var i=t,o=0,a=r.length;o<a;++o){var s=r[o],l=0===o?t:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?l.textContent=s:(l.textContent=" ",e.captureContentBinding(s)),i=l,e.targetIndex++,l!==t&&n.nextNode()}e.targetIndex--}}var Et,At=document.createRange(),Tt=function(){function e(t,n){(0,r.Z)(this,e),this.fragment=t,this.behaviors=n,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}return(0,i.Z)(e,[{key:"appendTo",value:function(e){e.appendChild(this.fragment)}},{key:"insertBefore",value:function(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{var t=this.lastChild;if(e.previousSibling===t)return;for(var n,r=e.parentNode,i=this.firstChild;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}},{key:"remove",value:function(){for(var e,t=this.fragment,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.appendChild(r),r=e;t.appendChild(n)}},{key:"dispose",value:function(){for(var e,t=this.firstChild.parentNode,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.removeChild(r),r=e;t.removeChild(n);for(var i=this.behaviors,o=this.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}},{key:"bind",value:function(e,t){var n=this.behaviors;if(this.source!==e)if(null!==this.source){var r=this.source;this.source=e,this.context=t;for(var i=0,o=n.length;i<o;++i){var a=n[i];a.unbind(r),a.bind(e,t)}}else{this.source=e,this.context=t;for(var s=0,l=n.length;s<l;++s)n[s].bind(e,t)}}},{key:"unbind",value:function(){if(null!==this.source){for(var e=this.behaviors,t=this.source,n=0,r=e.length;n<r;++n)e[n].unbind(t);this.source=null}}}],[{key:"disposeContiguousBatch",value:function(e){if(0!==e.length){At.setStartBefore(e[0].firstChild),At.setEndAfter(e[e.length-1].lastChild),At.deleteContents();for(var t=0,n=e.length;t<n;++t)for(var r=e[t],i=r.behaviors,o=r.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}}}]),e}(),Dt=function(){function e(t,n){(0,r.Z)(this,e),this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=n}return(0,i.Z)(e,[{key:"create",value:function(e){if(null===this.fragment){var t,n=this.html;if("string"==typeof n){(t=document.createElement("template")).innerHTML=x.createHTML(n);var r=t.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(t=r)}else t=n;var i=function(e,t){var n=e.content;document.adoptNode(n);var r=kt.borrow(t);jt(r,e,!0);var i=r.behaviorFactories;r.reset();for(var o,a=x.createTemplateWalker(n);o=a.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:jt(r,o);break;case 3:St(r,o,a);break;case 8:x.isMarker(o)&&r.addFactory(t[x.extractDirectiveIndexFromMarker(o)])}var s=0;(x.isMarker(n.firstChild)||1===n.childNodes.length&&t.length)&&(n.insertBefore(document.createComment(""),n.firstChild),s=-1);var l=r.behaviorFactories;return r.release(),{fragment:n,viewBehaviorFactories:l,hostBehaviorFactories:i,targetOffset:s}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}for(var o=this.fragment.cloneNode(!0),a=this.viewBehaviorFactories,s=new Array(this.behaviorCount),l=x.createTemplateWalker(o),u=0,c=this.targetOffset,d=l.nextNode(),f=a.length;u<f;++u)for(var h=a[u],p=h.targetIndex;null!==d;){if(c===p){s[u]=h.createBehavior(d);break}d=l.nextNode(),c++}if(this.hasHostBehaviors)for(var v=this.hostBehaviorFactories,g=0,m=v.length;g<m;++g,++u)s[u]=v[g].createBehavior(e);return new Tt(o,s)}},{key:"render",value:function(e,t,n){"string"==typeof t&&(t=document.getElementById(t)),void 0===n&&(n=t);var r=this.create(n);return r.bind(e,A),r.appendTo(t),r}}]),e}(),Rt=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function It(e){for(var t=[],n="",r=0,i=e.length-1;r<i;++r){var o=e[r],a=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];if(n+=o,a instanceof Dt&&function(){var e=a;a=function(){return e}}(),"function"==typeof a&&(a=new wt(a)),a instanceof lt){var s=Rt.exec(o);null!==s&&(a.targetName=s[2])}a instanceof st?(n+=a.createPlaceholder(t.length),t.push(a)):n+=a}return n+=e[e.length-1],new Dt(n,t)}var Nt=function(e,t){return It(Et||(Et=(0,at.Z)(['\n <template class="','">\n <div class="control" part="control" style="','">\n <slot></slot>\n </div>\n </template>\n'])),(function(e){return e.circular?"circular":""}),(function(e){return e.generateBadgeStyle()}))},Pt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"createCSS",value:function(){return""}},{key:"createBehavior",value:function(){}}]),e}();function Mt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(e,t){for(var n=[],r="",i=[],o=0,a=e.length-1;o<a;++o){r+=e[o];var s=t[o];if(s instanceof Pt){var l=s.createBehavior();s=s.createCSS(),l&&i.push(l)}s instanceof I||s instanceof CSSStyleSheet?(""!==r.trim()&&(n.push(r),r=""),n.push(s)):r+=s}return""!==(r+=e[e.length-1]).trim()&&n.push(r),{styles:n,behaviors:i}}(e,n),o=i.styles,a=i.behaviors,s=I.create(o);return a.length&&s.withBehaviors.apply(s,(0,R.Z)(a)),s}function Lt(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function Zt(e){var t=e.parentElement;if(t)return t;var n=e.getRootNode();return n.host instanceof HTMLElement?n.host:null}var Ft=document.createElement("div"),zt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;x.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;x.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),Bt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;(0,r.Z)(this,n),i=t.call(this);var o=new CSSStyleSheet;return i.target=o.cssRules[o.insertRule(":host{}")].style,e.$fastController.addStyles(I.create([o])),i}return(0,i.Z)(n)}(zt),Ht=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),e=t.call(this);var i=new CSSStyleSheet;return e.target=i.cssRules[i.insertRule(":root{}")].style,document.adoptedStyleSheets=[].concat((0,R.Z)(document.adoptedStyleSheets),[i]),e}return(0,i.Z)(n)}(zt),Vt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),(e=t.call(this)).style=document.createElement("style"),document.head.appendChild(e.style);var i=e.style.sheet;if(i){var o=i.insertRule(":root{}",i.cssRules.length);e.target=i.cssRules[o].style}return e}return(0,i.Z)(n)}(zt),Ut=function(){function e(t){(0,r.Z)(this,e),this.store=new Map,this.target=null;var n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),C.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}return(0,i.Z)(e,[{key:"targetChanged",value:function(){if(null!==this.target){var e,t=(0,s.Z)(this.store.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,G.Z)(e.value,2),r=n[0],i=n[1];this.target.setProperty(r,i)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"setProperty",value:function(e,t){var n=this;this.store.set(e,t),x.queueUpdate((function(){null!==n.target&&n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;this.store.delete(e),x.queueUpdate((function(){null!==t.target&&t.target.removeProperty(e)}))}},{key:"handleChange",value:function(e,t){var n=this.style.sheet;if(n){var r=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[r].style}else this.target=null}}]),e}();J([j],Ut.prototype,"target",void 0);var Kt=function(){function e(t){(0,r.Z)(this,e),this.target=t.style}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;x.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;x.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),qt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(t,n){e.properties[t]=n;var r,i=(0,s.Z)(e.roots.values());try{for(i.s();!(r=i.n()).done;){var o=r.value;Wt.getOrCreate(e.normalizeRoot(o)).setProperty(t,n)}}catch(e){i.e(e)}finally{i.f()}}},{key:"removeProperty",value:function(t){delete e.properties[t];var n,r=(0,s.Z)(e.roots.values());try{for(r.s();!(n=r.n()).done;){var i=n.value;Wt.getOrCreate(e.normalizeRoot(i)).removeProperty(t)}}catch(e){r.e(e)}finally{r.f()}}}],[{key:"registerRoot",value:function(t){var n=e.roots;if(!n.has(t)){n.add(t);var r=Wt.getOrCreate(this.normalizeRoot(t));for(var i in e.properties)r.setProperty(i,e.properties[i])}}},{key:"unregisterRoot",value:function(t){var n=e.roots;if(n.has(t)){n.delete(t);var r=Wt.getOrCreate(e.normalizeRoot(t));for(var i in e.properties)r.removeProperty(i)}}},{key:"normalizeRoot",value:function(e){return e===Ft?document:e}}]),e}();qt.roots=new Set,qt.properties={};var $t=new WeakMap,Yt=x.supportsAdoptedStyleSheets?Bt:Ut,Wt=Object.freeze({getOrCreate:function(e){return $t.has(e)?$t.get(e):(t=e===Ft?new qt:e instanceof Document?x.supportsAdoptedStyleSheets?new Ht:new Vt:e instanceof re?new Yt(e):new Kt(e),$t.set(e,t),t);var t}}),Jt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).subscribers=new WeakMap,i._appliedTo=new Set,i.name=e.name,null!==e.cssCustomPropertyName&&(i.cssCustomProperty="--".concat(e.cssCustomPropertyName),i.cssVar="var(".concat(i.cssCustomProperty,")")),i.id=n.uniqueId(),n.tokensById.set(i.id,(0,v.Z)(i)),i}return(0,i.Z)(n,[{key:"appliedTo",get:function(){return(0,R.Z)(this._appliedTo)}},{key:"getOrCreateSubscriberSet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}},{key:"createCSS",value:function(){return this.cssVar||""}},{key:"getValueFor",value:function(e){var t=nn.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error('Value could not be retrieved for token named "'.concat(this.name,'". Ensure the value is set for ').concat(e," or an ancestor of ").concat(e,"."))}},{key:"setValueFor",value:function(e,t){return this._appliedTo.add(e),t instanceof n&&(t=this.alias(t)),nn.getOrCreate(e).set(this,t),this}},{key:"deleteValueFor",value:function(e){return this._appliedTo.delete(e),nn.existsFor(e)&&nn.getOrCreate(e).delete(this),this}},{key:"withDefault",value:function(e){return this.setValueFor(Ft,e),this}},{key:"subscribe",value:function(e,t){var n=this.getOrCreateSubscriberSet(t);t&&!nn.existsFor(t)&&nn.getOrCreate(t),n.has(e)||n.add(e)}},{key:"unsubscribe",value:function(e,t){var n=this.subscribers.get(t||this);n&&n.has(e)&&n.delete(e)}},{key:"notify",value:function(e){var t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((function(e){return e.handleChange(t)})),this.subscribers.has(e)&&this.subscribers.get(e).forEach((function(e){return e.handleChange(t)}))}},{key:"alias",value:function(e){return function(t){return e.getValueFor(t)}}}],[{key:"from",value:function(e){return new n({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}},{key:"isCSSDesignToken",value:function(e){return"string"==typeof e.cssCustomProperty}},{key:"isDerivedDesignTokenValue",value:function(e){return"function"==typeof e}},{key:"getTokenById",value:function(e){return n.tokensById.get(e)}}]),n}(Pt);Jt.uniqueId=function(){var e=0;return function(){return(++e).toString(16)}}(),Jt.tokensById=new Map;var Gt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"startReflection",value:function(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}},{key:"stopReflection",value:function(e,t){e.unsubscribe(this,t),this.remove(e,t)}},{key:"handleChange",value:function(e){var t=e.token,n=e.target;this.add(t,n)}},{key:"add",value:function(e,t){Wt.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(nn.getOrCreate(t).get(e)))}},{key:"remove",value:function(e,t){Wt.getOrCreate(t).removeProperty(e.cssCustomProperty)}},{key:"resolveCSSValue",value:function(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}}]),e}(),Qt=function(){function e(t,n,i){(0,r.Z)(this,e),this.source=t,this.token=n,this.node=i,this.dependencies=new Set,this.observer=C.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}return(0,i.Z)(e,[{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"handleChange",value:function(){this.node.store.set(this.token,this.observer.observe(this.node.target,A))}}]),e}(),Xt=function(){function e(){(0,r.Z)(this,e),this.values=new Map}return(0,i.Z)(e,[{key:"set",value:function(e,t){this.values.get(e)!==t&&(this.values.set(e,t),C.getNotifier(this).notify(e.id))}},{key:"get",value:function(e){return C.track(this,e.id),this.values.get(e)}},{key:"delete",value:function(e){this.values.delete(e)}},{key:"all",value:function(){return this.values.entries()}}]),e}(),en=new WeakMap,tn=new WeakMap,nn=function(){function e(t){var n=this;(0,r.Z)(this,e),this.target=t,this.store=new Xt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:function(e,t){var r=Jt.getTokenById(t);if(r&&(r.notify(n.target),Jt.isCSSDesignToken(r))){var i=n.parent,o=n.isReflecting(r);if(i){var a=i.get(r),s=e.get(r);a===s||o?a===s&&o&&n.stopReflectToCSS(r):n.reflectToCSS(r)}else o||n.reflectToCSS(r)}}},en.set(t,this),C.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof re?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}return(0,i.Z)(e,[{key:"parent",get:function(){return tn.get(this)||null}},{key:"has",value:function(e){return this.assignedValues.has(e)}},{key:"get",value:function(e){var t=this.store.get(e);if(void 0!==t)return t;var n=this.getRaw(e);return void 0!==n?(this.hydrate(e,n),this.get(e)):void 0}},{key:"getRaw",value:function(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(n=e.findClosestAssignedNode(t,this))||void 0===n?void 0:n.getRaw(t)}},{key:"set",value:function(e,t){Jt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Jt.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}},{key:"delete",value:function(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);var t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}},{key:"bind",value:function(){var t=e.findParent(this);t&&t.appendChild(this);var n,r=(0,s.Z)(this.assignedValues.keys());try{for(r.s();!(n=r.n()).done;)n.value.notify(this.target)}catch(e){r.e(e)}finally{r.f()}}},{key:"unbind",value:function(){this.parent&&tn.get(this).removeChild(this)}},{key:"appendChild",value:function(e){e.parent&&tn.get(e).removeChild(e);var t=this.children.filter((function(t){return e.contains(t)}));tn.set(e,this),this.children.push(e),t.forEach((function(t){return e.appendChild(t)})),C.getNotifier(this.store).subscribe(e);var n,r=(0,s.Z)(this.store.all());try{for(r.s();!(n=r.n()).done;){var i=(0,G.Z)(n.value,2),o=i[0],a=i[1];e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),C.getNotifier(this.store).unsubscribe(e),e.parent===this&&tn.delete(e)}},{key:"contains",value:function(e){return function(e,t){for(var n=t;null!==n;){if(n===e)return!0;n=Zt(n)}return!1}(this.target,e.target)}},{key:"reflectToCSS",value:function(t){this.isReflecting(t)||(this.reflecting.add(t),e.cssCustomPropertyReflector.startReflection(t,this.target))}},{key:"stopReflectToCSS",value:function(t){this.isReflecting(t)&&(this.reflecting.delete(t),e.cssCustomPropertyReflector.stopReflection(t,this.target))}},{key:"isReflecting",value:function(e){return this.reflecting.has(e)}},{key:"handleChange",value:function(e,t){var n=Jt.getTokenById(t);n&&this.hydrate(n,this.getRaw(n))}},{key:"hydrate",value:function(e,t){if(!this.has(e)){var n=this.bindingObservers.get(e);Jt.isDerivedDesignTokenValue(t)?n?n.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(n&&this.tearDownBindingObserver(e),this.store.set(e,t))}}},{key:"setupBindingObserver",value:function(e,t){var n=new Qt(t,e,this);return this.bindingObservers.set(e,n),n}},{key:"tearDownBindingObserver",value:function(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}],[{key:"getOrCreate",value:function(t){return en.get(t)||new e(t)}},{key:"existsFor",value:function(e){return en.has(e)}},{key:"findParent",value:function(t){if(Ft!==t.target){for(var n=Zt(t.target);null!==n;){if(en.has(n))return en.get(n);n=Zt(n)}return e.getOrCreate(Ft)}return null}},{key:"findClosestAssignedNode",value:function(t,n){var r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Ft?e.getOrCreate(Ft):null}while(null!==r);return null}}]),e}();nn.cssCustomPropertyReflector=new Gt,J([j],nn.prototype,"children",void 0);var rn=Object.freeze({create:function(e){return Jt.from(e)},notifyConnection:function(e){return!(!e.isConnected||!nn.existsFor(e)||(nn.getOrCreate(e).bind(),0))},notifyDisconnection:function(e){return!(e.isConnected||!nn.existsFor(e)||(nn.getOrCreate(e).unbind(),0))},registerRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ft;qt.registerRoot(e)},unregisterRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ft;qt.unregisterRoot(e)}});function on(e){var t=getComputedStyle(document.body),n=document.querySelector("body");if(n){var r,i=n.getAttribute("data-vscode-theme-kind"),o=(0,s.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=(0,G.Z)(r.value,2),l=a[0],u=a[1],c=t.getPropertyValue(l).toString();if("vscode-high-contrast"===i)0===c.length&&u.name.includes("background")&&(c="transparent"),"button-icon-hover-background"===u.name&&(c="transparent");else if("vscode-high-contrast-light"===i){if(0===c.length&&u.name.includes("background"))switch(u.name){case"button-primary-hover-background":c="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":c="transparent"}}else"contrast-active-border"===u.name&&(c="transparent");u.setValueFor(n,c)}}catch(e){o.e(e)}finally{o.f()}}}var an=new Map,sn=!1;function ln(e,t){var n=rn.create(e);if(t){if(t.includes("--fake-vscode-token")){var r="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(r)}an.set(t,n)}return sn||(function(e){window.addEventListener("load",(function(){new MutationObserver((function(){on(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),on(e)}))}(an),sn=!0),n}var un,cn=ln("background","--vscode-editor-background").withDefault("#1e1e1e"),dn=ln("border-width").withDefault(1),fn=ln("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),hn=(ln("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),ln("corner-radius").withDefault(0)),pn=ln("design-unit").withDefault(4),vn=ln("disabled-opacity").withDefault(.4),gn=ln("focus-border","--vscode-focusBorder").withDefault("#007fd4"),mn=ln("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),yn=(ln("font-weight","--vscode-font-weight").withDefault("400"),ln("foreground","--vscode-foreground").withDefault("#cccccc")),bn=ln("input-height").withDefault("26"),wn=ln("input-min-width").withDefault("100px"),_n=ln("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),xn=ln("type-ramp-base-line-height").withDefault("normal"),kn=ln("type-ramp-minus1-font-size").withDefault("11px"),On=ln("type-ramp-minus1-line-height").withDefault("16px"),Cn=(ln("type-ramp-minus2-font-size").withDefault("9px"),ln("type-ramp-minus2-line-height").withDefault("16px"),ln("type-ramp-plus1-font-size").withDefault("16px"),ln("type-ramp-plus1-line-height").withDefault("24px"),ln("scrollbarWidth").withDefault("10px")),jn=ln("scrollbarHeight").withDefault("10px"),Sn=ln("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),En=ln("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),An=ln("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Tn=ln("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Dn=ln("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Rn=ln("button-border","--vscode-button-border").withDefault("transparent"),In=ln("button-icon-background").withDefault("transparent"),Nn=ln("button-icon-corner-radius").withDefault("5px"),Pn=ln("button-icon-outline-offset").withDefault(0),Mn=ln("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Ln=ln("button-icon-padding").withDefault("3px"),Zn=ln("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Fn=ln("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),zn=ln("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Bn=ln("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Hn=ln("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Vn=ln("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Un=ln("button-padding-horizontal").withDefault("11px"),Kn=ln("button-padding-vertical").withDefault("4px"),qn=ln("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),$n=ln("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Yn=ln("checkbox-corner-radius").withDefault(3),Wn=(ln("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),ln("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),Jn=ln("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Gn=ln("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Qn=ln("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Xn=ln("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),er=ln("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),tr=(ln("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),ln("dropdown-list-max-height").withDefault("200px")),nr=ln("input-background","--vscode-input-background").withDefault("#3c3c3c"),rr=ln("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),ir=(ln("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),ln("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),or=ln("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ar=ln("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),sr=ln("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),lr=ln("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),ur=ln("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),cr=(ln("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),ln("panel-view-border","--vscode-panel-border").withDefault("#80808059"),ln("tag-corner-radius").withDefault("2px")),dr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.circular||(this.circular=!0)}}]),n}(ot),fr=dr.compose({baseName:"badge",template:Nt,styles:function(e,t){return Mt(un||(un=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\ttext-align: center;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: 11px;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tdisplay: flex;\n\t\theight: calc("," * 4px);\n\t\tjustify-content: center;\n\t\tmin-width: calc("," * 4px + 2px);\n\t\tmin-height: calc("," * 4px + 2px);\n\t\tpadding: 3px 6px;\n\t}\n"])),Lt("inline-block"),mn,kn,On,Tn,dn,Rn,Dn,pn,pn,pn)}});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var hr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));J([K({attribute:"aria-atomic"})],hr.prototype,"ariaAtomic",void 0),J([K({attribute:"aria-busy"})],hr.prototype,"ariaBusy",void 0),J([K({attribute:"aria-controls"})],hr.prototype,"ariaControls",void 0),J([K({attribute:"aria-current"})],hr.prototype,"ariaCurrent",void 0),J([K({attribute:"aria-describedby"})],hr.prototype,"ariaDescribedby",void 0),J([K({attribute:"aria-details"})],hr.prototype,"ariaDetails",void 0),J([K({attribute:"aria-disabled"})],hr.prototype,"ariaDisabled",void 0),J([K({attribute:"aria-errormessage"})],hr.prototype,"ariaErrormessage",void 0),J([K({attribute:"aria-flowto"})],hr.prototype,"ariaFlowto",void 0),J([K({attribute:"aria-haspopup"})],hr.prototype,"ariaHaspopup",void 0),J([K({attribute:"aria-hidden"})],hr.prototype,"ariaHidden",void 0),J([K({attribute:"aria-invalid"})],hr.prototype,"ariaInvalid",void 0),J([K({attribute:"aria-keyshortcuts"})],hr.prototype,"ariaKeyshortcuts",void 0),J([K({attribute:"aria-label"})],hr.prototype,"ariaLabel",void 0),J([K({attribute:"aria-labelledby"})],hr.prototype,"ariaLabelledby",void 0),J([K({attribute:"aria-live"})],hr.prototype,"ariaLive",void 0),J([K({attribute:"aria-owns"})],hr.prototype,"ariaOwns",void 0),J([K({attribute:"aria-relevant"})],hr.prototype,"ariaRelevant",void 0),J([K({attribute:"aria-roledescription"})],hr.prototype,"ariaRoledescription",void 0);var pr,vr,gr,mr,yr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.propertyName=n}return(0,i.Z)(e,[{key:"bind",value:function(e){e[this.propertyName]=this.target}},{key:"unbind",value:function(){}}]),e}();function br(e){return new ut("fast-ref",yr,e)}var wr,_r=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"handleStartContentChange",value:function(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}},{key:"handleEndContentChange",value:function(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}]),e}(),xr=function(e,t){return It(pr||(pr=(0,at.Z)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),br("endContainer"),(function(e){return t.end?"end":void 0}),br("end"),(function(e){return e.handleEndContentChange()}),t.end||"")},kr=function(e,t){return It(vr||(vr=(0,at.Z)(['\n <span\n part="start"\n ','\n class="','"\n >\n <slot\n name="start"\n ','\n @slotchange="','"\n >\n ',"\n </slot>\n </span>\n"])),br("startContainer"),(function(e){return t.start?"start":void 0}),br("start"),(function(e){return e.handleStartContentChange()}),t.start||"")};function Or(e){for(var t=B.locate(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(n){Object.getOwnPropertyNames(n.prototype).forEach((function(t){"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t))})),B.locate(n).forEach((function(e){return t.push(e)}))}))}It(gr||(gr=(0,at.Z)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),br("endContainer"),br("end"),(function(e){return e.handleEndContentChange()})),It(mr||(mr=(0,at.Z)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),br("startContainer"),br("start"),(function(e){return e.handleStartContentChange()})),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(wr||(wr={}));var Cr="ArrowDown",jr="ArrowLeft",Sr="ArrowRight",Er="ArrowUp",Ar="Enter",Tr="Escape",Dr="Home",Rr="End",Ir=" ",Nr="Tab",Pr={ArrowDown:Cr,ArrowLeft:jr,ArrowRight:Sr,ArrowUp:Er},Mr="form-associated-proxy",Lr="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,Zr=new WeakMap;function Fr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).dirtyValue=!1,e.disabled=!1,e.proxyEventsToBlock=["change","click"],e.proxyInitialized=!1,e.required=!1,e.initialValue=e.initialValue||"",e.elementInternals||(e.formResetCallback=e.formResetCallback.bind((0,v.Z)(e))),e}return(0,i.Z)(n,[{key:"validity",get:function(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}},{key:"form",get:function(){return this.elementInternals?this.elementInternals.form:this.proxy.form}},{key:"validationMessage",get:function(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}},{key:"willValidate",get:function(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}},{key:"labels",get:function(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){var e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll("[for='".concat(this.id,"']"))),n=e?t.concat(Array.from(e)):t;return Object.freeze(n)}return f}},{key:"valueChanged",value:function(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}},{key:"currentValueChanged",value:function(){this.value=this.currentValue}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"disabledChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),x.queueUpdate((function(){return n.classList.toggle("disabled",n.disabled)}))}},{key:"nameChanged",value:function(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}},{key:"requiredChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),x.queueUpdate((function(){return n.classList.toggle("required",n.required)})),this.validate()}},{key:"elementInternals",get:function(){if(!Lr)return null;var e=Zr.get(this);return e||(e=this.attachInternals(),Zr.set(this,e)),e}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}},{key:"disconnectedCallback",value:function(){var e=this;this.proxyEventsToBlock.forEach((function(t){return e.proxy.removeEventListener(t,e.stopPropagation)})),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}},{key:"checkValidity",value:function(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}},{key:"reportValidity",value:function(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}},{key:"setValidity",value:function(e,t,n){this.elementInternals?this.elementInternals.setValidity(e,t,n):"string"==typeof t&&this.proxy.setCustomValidity(t)}},{key:"formDisabledCallback",value:function(e){this.disabled=e}},{key:"formResetCallback",value:function(){this.value=this.initialValue,this.dirtyValue=!1}},{key:"attachProxy",value:function(){var e,t=this;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((function(e){return t.proxy.addEventListener(e,t.stopPropagation)})),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Mr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Mr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}},{key:"detachProxy",value:function(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}},{key:"validate",value:function(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}},{key:"setFormValue",value:function(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}},{key:"_keypressHandler",value:function(e){if(e.key===Ar&&this.form instanceof HTMLFormElement){var t=this.form.querySelector("[type=submit]");null==t||t.click()}}},{key:"stopPropagation",value:function(e){e.stopPropagation()}}],[{key:"formAssociated",get:function(){return Lr}}]),n}(e);return K({mode:"boolean"})(t.prototype,"disabled"),K({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),K({attribute:"current-value"})(t.prototype,"currentValue"),K(t.prototype,"name"),K({mode:"boolean"})(t.prototype,"required"),j(t.prototype,"value"),t}function zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Fr(e)),n=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call(this,o)).dirtyChecked=!1,e.checkedAttribute=!1,e.checked=!1,e.dirtyChecked=!1,e}return(0,i.Z)(n,[{key:"checkedAttributeChanged",value:function(){this.defaultChecked=this.checkedAttribute}},{key:"defaultCheckedChanged",value:function(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}},{key:"checkedChanged",value:function(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}},{key:"currentCheckedChanged",value:function(e,t){this.checked=this.currentChecked}},{key:"updateForm",value:function(){var e=this.checked?this.value:null;this.setFormValue(e,e)}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.updateForm()}},{key:"formResetCallback",value:function(){D((0,T.Z)(n.prototype),"formResetCallback",this).call(this),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}]),n}(t);return K({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),K({attribute:"current-checked",converter:H})(n.prototype,"currentChecked"),j(n.prototype,"defaultChecked"),j(n.prototype,"checked"),n}var Br=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Hr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Fr(Br)),Vr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n;e.disabled&&(null===(n=e.defaultSlottedContent)||void 0===n?void 0:n.length)<=1&&t.stopPropagation()},e.handleSubmission=function(){if(e.form){var t=e.proxy.isConnected;t||e.attachProxy(),"function"==typeof e.form.requestSubmit?e.form.requestSubmit(e.proxy):e.proxy.click(),t||e.detachProxy()}},e.handleFormReset=function(){var t;null===(t=e.form)||void 0===t||t.reset()},e.handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){e.control.focus()})},e}return(0,i.Z)(n,[{key:"formactionChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}},{key:"formenctypeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}},{key:"formmethodChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}},{key:"formnovalidateChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}},{key:"formtargetChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}},{key:"typeChanged",value:function(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}},{key:"validate",value:function(){D((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}},{key:"connectedCallback",value:function(){var e,t=this;D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.addEventListener("click",t.handleClick)}))}},{key:"disconnectedCallback",value:function(){var e,t=this;D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this);var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.removeEventListener("click",t.handleClick)}))}}]),n}(Hr);J([K({mode:"boolean"})],Vr.prototype,"autofocus",void 0),J([K({attribute:"form"})],Vr.prototype,"formId",void 0),J([K],Vr.prototype,"formaction",void 0),J([K],Vr.prototype,"formenctype",void 0),J([K],Vr.prototype,"formmethod",void 0),J([K({mode:"boolean"})],Vr.prototype,"formnovalidate",void 0),J([K],Vr.prototype,"formtarget",void 0),J([K],Vr.prototype,"type",void 0),J([j],Vr.prototype,"defaultSlottedContent",void 0);var Ur=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function Kr(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}J([K({attribute:"aria-expanded"})],Ur.prototype,"ariaExpanded",void 0),J([K({attribute:"aria-pressed"})],Ur.prototype,"ariaPressed",void 0),Or(Ur,hr),Or(Vr,_r,Ur);var qr,$r,Yr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.options=n,this.source=null}return(0,i.Z)(e,[{key:"bind",value:function(e){var t=this.options.property;this.shouldUpdate=C.getAccessors(e).some((function(e){return e.name===t})),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}},{key:"unbind",value:function(){this.updateTarget(f),this.source=null,this.shouldUpdate&&this.disconnect()}},{key:"handleEvent",value:function(){this.updateTarget(this.computeNodes())}},{key:"computeNodes",value:function(){var e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}},{key:"updateTarget",value:function(e){this.source[this.options.property]=e}}]),e}(),Wr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,e,i)}return(0,i.Z)(n,[{key:"observe",value:function(){this.target.addEventListener("slotchange",this)}},{key:"disconnect",value:function(){this.target.removeEventListener("slotchange",this)}},{key:"getNodes",value:function(){return this.target.assignedNodes(this.options)}}]),n}(Yr);function Jr(e){return"string"==typeof e&&(e={property:e}),new ut("fast-slotted",Wr,e)}var Gr,Qr,Xr,ei,ti,ni=function(){if("boolean"==typeof $r)return $r;if("undefined"==typeof window||!window.document||!window.document.createElement)return $r=!1;var e=document.createElement("style"),t=function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),$r=!0}catch(e){$r=!1}finally{document.head.removeChild(e)}return $r}()?"focus-visible":"focus",ri="not-allowed",ii=Mt(Gr||(Gr=(0,at.Z)(["\n\t"," :host {\n\t\toutline: none;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tfill: currentColor;\n\t\tcursor: pointer;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\theight: inherit;\n\t\tflex-grow: 1;\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: "," ",";\n\t\twhite-space: wrap;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: inherit;\n\t\tborder-radius: inherit;\n\t\tfill: inherit;\n\t\tcursor: inherit;\n\t\tfont-family: inherit;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t}\n\t.control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t\tbackground: ",";\n\t\tcursor: ",";\n\t}\n\t.content {\n\t\tdisplay: flex;\n\t}\n\t.start {\n\t\tdisplay: flex;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-end: 8px;\n\t}\n"])),Lt("inline-flex"),mn,_n,xn,Fn,Zn,Kn,Un,dn,Rn,zn,Zn,ni,dn,gn,dn,vn,Zn,ri,pn,pn),oi=Mt(Qr||(Qr=(0,at.Z)(["\n\t:host([appearance='primary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='primary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='primary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Zn,Fn,zn,Zn,ni,dn,gn,dn,Zn),ai=Mt(Xr||(Xr=(0,at.Z)(["\n\t:host([appearance='secondary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='secondary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='secondary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Bn,Hn,Vn,Bn,ni,dn,gn,dn,Bn),si=Mt(ei||(ei=(0,at.Z)(["\n\t:host([appearance='icon']) {\n\t\tbackground: ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='icon']:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n\t:host([appearance='icon']) .control {\n\t\tpadding: ",";\n\t\tborder: none;\n\t}\n\t:host([appearance='icon']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='icon']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: ",";\n\t}\n\t:host([appearance='icon'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),In,Nn,yn,Mn,fn,Ln,Mn,ni,dn,gn,Pn,In),li=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){if(D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),!this.appearance){var e=this.getAttribute("appearance");this.appearance=e}}},{key:"attributeChangedCallback",value:function(e,t,n){"appearance"===e&&"icon"===n&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),"aria-label"===e&&(this.ariaLabel=n),"disabled"===e&&(this.disabled=null!==n)}}]),n}(Vr);!function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([K],li.prototype,"appearance",void 0);var ui,ci=li.compose({baseName:"button",template:function(e,t){return It(qr||(qr=(0,at.Z)(['\n <button\n class="control"\n part="control"\n ?autofocus="','"\n ?disabled="','"\n form="','"\n formaction="','"\n formenctype="','"\n formmethod="','"\n formnovalidate="','"\n formtarget="','"\n name="','"\n type="','"\n value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-pressed="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </button>\n"])),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.formId}),(function(e){return e.formaction}),(function(e){return e.formenctype}),(function(e){return e.formmethod}),(function(e){return e.formnovalidate}),(function(e){return e.formtarget}),(function(e){return e.name}),(function(e){return e.type}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaPressed}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),kr(0,t),Jr("defaultSlottedContent"),xr(0,t))},styles:function(e,t){return Mt(ti||(ti=(0,at.Z)(["\n\t","\n\t","\n\t","\n\t","\n"])),ii,oi,ai,si)},shadowOptions:{delegatesFocus:!0}}),di=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(di)),hi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.indeterminate=!1,e.keypressHandler=function(t){e.readOnly||t.key!==Ir||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.clickHandler=function(t){e.disabled||e.readOnly||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.proxy.setAttribute("type","checkbox"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}]),n}(fi);J([K({attribute:"readonly",mode:"boolean"})],hi.prototype,"readOnly",void 0),J([j],hi.prototype,"defaultSlottedNodes",void 0),J([j],hi.prototype,"indeterminate",void 0);var pi,vi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}]),n}(hi),gi=vi.compose({baseName:"checkbox",template:function(e,t){return It(ui||(ui=(0,at.Z)(['\n <template\n role="checkbox"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n tabindex="','"\n @keypress="','"\n @click="','"\n class="'," "," ",'"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n <slot name="indeterminate-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e){return e.disabled?null:0}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked?"checked":""}),(function(e){return e.indeterminate?"indeterminate":""}),t.checkedIndicator||"",t.indeterminateIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Jr("defaultSlottedNodes"))},styles:function(e,t){return Mt(pi||(pi=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\tmargin: calc("," * 1px) 0;\n\t\tuser-select: none;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tposition: relative;\n\t\twidth: calc("," * 4px + 2px);\n\t\theight: calc("," * 4px + 2px);\n\t\tbox-sizing: border-box;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbackground: ",";\n\t\toutline: none;\n\t\tcursor: pointer;\n\t}\n\t.label {\n\t\tfont-family: ",";\n\t\tcolor: ",";\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tcursor: pointer;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.checked-indicator {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tfill: ",";\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\t.indeterminate-indicator {\n\t\tborder-radius: 2px;\n\t\tbackground: ",";\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: 50%;\n\t\theight: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\topacity: 0;\n\t}\n\t:host(:enabled) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:enabled) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host(.disabled) .label,\n\t:host(.readonly) .label,\n\t:host(.readonly) .control,\n\t:host(.disabled) .control {\n\t\tcursor: ",";\n\t}\n\t:host(.checked:not(.indeterminate)) .checked-indicator,\n\t:host(.indeterminate) .indeterminate-indicator {\n\t\topacity: 1;\n\t}\n\t:host(.disabled) {\n\t\topacity: ",";\n\t}\n"])),Lt("inline-flex"),pn,_n,xn,pn,pn,Yn,dn,$n,qn,mn,yn,pn,pn,yn,yn,qn,$n,qn,gn,ni,dn,gn,ri,vn)},checkedIndicator:'\n\t\t<svg \n\t\t\tpart="checked-indicator"\n\t\t\tclass="checked-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"\n\t\t\t/>\n\t\t</svg>\n\t',indeterminateIndicator:'\n\t\t<div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n\t'});function mi(e,t,n){return{index:e,removed:t,addedCount:n}}function yi(e,t,n,r,i,o){var a=0,s=0,l=Math.min(n-t,o-i);if(0===t&&0===i&&(a=function(e,t,n){for(var r=0;r<n;++r)if(e[r]!==t[r])return r;return n}(e,r,l)),n===e.length&&o===r.length&&(s=function(e,t,n){for(var r=e.length,i=t.length,o=0;o<n&&e[--r]===t[--i];)o++;return o}(e,r,l-a)),i+=a,o-=s,(n-=s)-(t+=a)==0&&o-i==0)return f;if(t===n){for(var u=mi(t,[],0);i<o;)u.removed.push(r[i++]);return[u]}if(i===o)return[mi(t,[],n-t)];for(var c=function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!==t)if(0!==n){var o,a=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];(o=s<l?s<a?s:a:l<a?l:a)===a?(a===r?i.push(0):(i.push(1),r=a),t--,n--):o===s?(i.push(3),t--,r=s):(i.push(2),n--,r=l)}else i.push(3),t--;else i.push(2),n--;return i.reverse(),i}(function(e,t,n,r,i,o){for(var a,s,l=o-i+1,u=n-t+1,c=new Array(l),d=0;d<l;++d)c[d]=new Array(u),c[d][0]=d;for(var f=0;f<u;++f)c[0][f]=f;for(var h=1;h<l;++h)for(var p=1;p<u;++p)e[t+p-1]===r[i+h-1]?c[h][p]=c[h-1][p-1]:(a=c[h-1][p]+1,s=c[h][p-1]+1,c[h][p]=a<s?a:s);return c}(e,t,n,r,i,o)),d=[],h=void 0,p=t,v=i,g=0;g<c.length;++g)switch(c[g]){case 0:void 0!==h&&(d.push(h),h=void 0),p++,v++;break;case 1:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++,h.removed.push(r[v]),v++;break;case 2:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++;break;case 3:void 0===h&&(h=mi(p,[],0)),h.removed.push(r[v]),v++}return void 0!==h&&d.push(h),d}var bi=Array.prototype.push;function wi(e,t,n,r){for(var i,o,a,s,l=mi(t,n,r),u=!1,c=0,d=0;d<e.length;d++){var f=e[d];if(f.index+=c,!u){var h=(i=l.index,o=l.index+l.removed.length,a=f.index,s=f.index+f.addedCount,o<a||s<i?-1:o===a||s===i?0:i<a?o<s?o-a:s-a:s<o?s-i:o-i);if(h>=0){e.splice(d,1),d--,c-=f.addedCount-f.removed.length,l.addedCount+=f.addedCount-h;var p=l.removed.length+f.removed.length-h;if(l.addedCount||p){var v=f.removed;if(l.index<f.index){var g=l.removed.slice(0,f.index-l.index);bi.apply(g,v),v=g}if(l.index+l.removed.length>f.index+f.addedCount){var m=l.removed.slice(f.index+f.addedCount-l.index);bi.apply(v,m)}l.removed=v,f.index<l.index&&(l.index=f.index)}else u=!0}else if(l.index<f.index){u=!0,e.splice(d,0,l),d++;var y=l.addedCount-l.removed.length;f.index+=y,c+=y}}}u||e.push(l)}var _i=!1;function xi(e,t){var n=e.index,r=t.length;return n>r?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var ki=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).oldCollection=void 0,i.splices=void 0,i.needsQueue=!0,i.call=i.flush,Reflect.defineProperty(e,"$fastController",{value:(0,v.Z)(i),enumerable:!1}),i}return(0,i.Z)(n,[{key:"subscribe",value:function(e){this.flush(),D((0,T.Z)(n.prototype),"subscribe",this).call(this,e)}},{key:"addSplice",value:function(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,x.queueUpdate(this))}},{key:"reset",value:function(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,x.queueUpdate(this))}},{key:"flush",value:function(){var e=this.splices,t=this.oldCollection;if(void 0!==e||void 0!==t){this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;var n=void 0===t?function(e,t){for(var n=[],r=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];wi(t,i.index,i.removed,i.addedCount)}return t}(t),i=0,o=r.length;i<o;++i){var a=r[i];1!==a.addedCount||1!==a.removed.length?n=n.concat(yi(e,a.index,a.index+a.addedCount,a.removed,0,a.removed.length)):a.removed[0]!==e[a.index]&&n.push(a)}return n}(this.source,e):yi(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}}]),n}(k);function Oi(e,t,n,r){e.bind(t[n],r)}function Ci(e,t,n,r){var i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}Object.freeze({positioning:!1,recycle:!0});var ji=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.location=t,this.itemsBinding=n,this.templateBinding=o,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Oi,this.itemsBindingObserver=C.binding(n,this,i),this.templateBindingObserver=C.binding(o,this,a),s.positioning&&(this.bindView=Ci)}return(0,i.Z)(e,[{key:"bind",value:function(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}},{key:"unbind",value:function(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}},{key:"handleChange",value:function(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}},{key:"observeItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.items){var t=this.itemsObserver,n=this.itemsObserver=C.getNotifier(this.items),r=t!==n;r&&null!==t&&t.unsubscribe(this),(r||e)&&n.subscribe(this)}else this.items=f}},{key:"updateViews",value:function(e){for(var t=this.childContext,n=this.views,r=this.bindView,i=this.items,o=this.template,a=this.options.recycle,s=[],l=0,u=0,c=0,d=e.length;c<d;++c){for(var f=e[c],h=f.removed,p=0,v=f.index,g=v+f.addedCount,m=n.splice(f.index,h.length),y=u=s.length+m.length;v<g;++v){var b=n[v],w=b?b.firstChild:this.location,_=void 0;a&&u>0?(p<=y&&m.length>0?(_=m[p],p++):(_=s[l],l++),u--):_=o.create(),n.splice(v,0,_),r(_,i,v,t),_.insertBefore(w)}m[p]&&s.push.apply(s,(0,R.Z)(m.slice(p)))}for(var x=l,k=s.length;x<k;++x)s[x].dispose();if(this.options.positioning)for(var O=0,C=n.length;O<C;++O){var j=n[O].context;j.length=C,j.index=O}}},{key:"refreshAllViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView,a=t.length,s=this.views,l=s.length;if(0!==a&&!e&&this.options.recycle||(Tt.disposeContiguousBatch(s),l=0),0===l){this.views=s=new Array(a);for(var u=0;u<a;++u){var c=r.create();o(c,t,u,n),s[u]=c,c.insertBefore(i)}}else{for(var d=0;d<a;++d)if(d<l)o(s[d],t,d,n);else{var f=r.create();o(f,t,d,n),s.push(f),f.insertBefore(i)}var h=s.splice(d,l-d);for(d=0,a=h.length;d<a;++d)h[d].dispose()}}},{key:"unbindAllViews",value:function(){for(var e=this.views,t=0,n=e.length;t<n;++t)e[t].unbind()}}]),e}(),Si=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).itemsBinding=e,a.templateBinding=i,a.options=o,a.createPlaceholder=x.createBlockPlaceholder,function(){if(!_i){_i=!0,C.setArrayObserverFactory((function(e){return new ki(e)}));var e=Array.prototype;if(!e.$fastPatch){Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});var t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,a=e.splice,s=e.unshift;e.pop=function(){var e=this.length>0,n=t.apply(this,arguments),r=this.$fastController;return void 0!==r&&e&&r.addSplice(mi(this.length,[n],0)),n},e.push=function(){var e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(xi(mi(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=r.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.shift=function(){var e=this.length>0,t=i.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(mi(0,[t],0)),t},e.sort=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=o.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.splice=function(){var e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(xi(mi(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){var e=s.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(xi(mi(0,[],arguments.length),this)),e}}}}(),a.isItemsBindingVolatile=C.isVolatileBinding(e),a.isTemplateBindingVolatile=C.isVolatileBinding(i),a}return(0,i.Z)(n,[{key:"createBehavior",value:function(e){return new ji(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}]),n}(st),Ei="focus",Ai="focusin",Ti="focusout",Di="keydown",Ri="sticky",Ii="default",Ni="columnheader",Pi="default",Mi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).noTabbing=!1,e.generateHeader="default",e.rowsData=[],e.columnDefinitions=null,e.focusRowIndex=0,e.focusColumnIndex=0,e.rowsPlaceholder=null,e.generatedHeader=null,e.isUpdatingFocus=!1,e.pendingFocusUpdate=!1,e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!0,e.generatedGridTemplateColumns="",e.focusOnCell=function(t,n,r){if(0===e.rowElements.length)return e.focusRowIndex=0,void(e.focusColumnIndex=0);var i=Math.max(0,Math.min(e.rowElements.length-1,t)),o=e.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=o[Math.max(0,Math.min(o.length-1,n))];r&&e.scrollHeight!==e.clientHeight&&(i<e.focusRowIndex&&e.scrollTop>0||i>e.focusRowIndex&&e.scrollTop<e.scrollHeight-e.clientHeight)&&a.scrollIntoView({block:"center",inline:"center"}),a.focus()},e.onChildListChange=function(t,n){t&&t.length&&(t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=e.columnDefinitions)}))})),e.queueRowIndexUpdate())},e.queueRowIndexUpdate=function(){e.rowindexUpdateQueued||(e.rowindexUpdateQueued=!0,x.queueUpdate(e.updateRowIndexes))},e.updateRowIndexes=function(){var t=e.gridTemplateColumns;if(void 0===t){if(""===e.generatedGridTemplateColumns&&e.rowElements.length>0){var n=e.rowElements[0];e.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=e.generatedGridTemplateColumns}e.rowElements.forEach((function(n,r){var i=n;i.rowIndex=r,i.gridTemplateColumns=t,e.columnDefinitionsStale&&(i.columnDefinitions=e.columnDefinitions)})),e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!1},e}return(0,i.Z)(n,[{key:"noTabbingChanged",value:function(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}},{key:"generateHeaderChanged",value:function(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowIndexes()}},{key:"rowsDataChanged",value:function(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=n.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"columnDefinitionsChanged",value:function(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=n.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}},{key:"headerCellItemTemplateChanged",value:function(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}},{key:"focusRowIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"focusColumnIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Si((function(e){return e.rowsData}),(function(e){return e.rowItemTemplate}),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ei,this.handleFocus),this.addEventListener(Di,this.handleKeydown),this.addEventListener(Ti,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),x.queueUpdate(this.queueRowIndexUpdate)}},{key:"disconnectedCallback",value:function(){D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ei,this.handleFocus),this.removeEventListener(Di,this.handleKeydown),this.removeEventListener(Ti,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}},{key:"handleRowFocus",value:function(e){this.isUpdatingFocus=!0;var t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}},{key:"handleFocus",value:function(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"handleFocusOut",value:function(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case Er:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case Cr:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){var o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r)return void this.focusOnCell(n,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=n;t++){var a=this.rowElements[t];if(a.offsetTop+a.offsetHeight>r){var s=0;this.generateHeader===Ri&&null!==this.generatedHeader&&(s=this.generatedHeader.clientHeight),this.scrollTop=a.offsetTop-s;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Dr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Rr:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}}},{key:"queueFocusUpdate",value:function(){var e=this;this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,x.queueUpdate((function(){return e.updateFocus()})))}},{key:"updateFocus",value:function(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"toggleGeneratedHeader",value:function(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),"none"!==this.generateHeader&&this.rowsData.length>0){var e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Ri?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}],[{key:"generateTemplateColumns",value:function(e){var t="";return e.forEach((function(e){t="".concat(t).concat(""===t?"":" ","1fr")})),t}}]),n}($e);Mi.generateColumns=function(e){return Object.getOwnPropertyNames(e).map((function(e,t){return{columnDataKey:e,gridColumn:"".concat(t)}}))},J([K({attribute:"no-tabbing",mode:"boolean"})],Mi.prototype,"noTabbing",void 0),J([K({attribute:"generate-header"})],Mi.prototype,"generateHeader",void 0),J([K({attribute:"grid-template-columns"})],Mi.prototype,"gridTemplateColumns",void 0),J([j],Mi.prototype,"rowsData",void 0),J([j],Mi.prototype,"columnDefinitions",void 0),J([j],Mi.prototype,"rowItemTemplate",void 0),J([j],Mi.prototype,"cellItemTemplate",void 0),J([j],Mi.prototype,"headerCellItemTemplate",void 0),J([j],Mi.prototype,"focusRowIndex",void 0),J([j],Mi.prototype,"focusColumnIndex",void 0),J([j],Mi.prototype,"defaultRowItemTemplate",void 0),J([j],Mi.prototype,"rowElementTag",void 0),J([j],Mi.prototype,"rowElements",void 0);var Li=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e,i)).observer=null,i.childList=!0,o}return(0,i.Z)(n,[{key:"observe",value:function(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"getNodes",value:function(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}]),n}(Yr);function Zi(e){return"string"==typeof e&&(e={property:e}),new ut("fast-children",Li,e)}var Fi,zi,Bi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).rowType=Pi,e.rowData=null,e.columnDefinitions=null,e.isActiveRow=!1,e.cellsRepeatBehavior=null,e.cellsPlaceholder=null,e.focusColumnIndex=0,e.refocusOnLoad=!1,e.updateRowStyle=function(){e.style.gridTemplateColumns=e.gridTemplateColumns},e}return(0,i.Z)(n,[{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowStyle()}},{key:"rowTypeChanged",value:function(){this.$fastController.isConnected&&this.updateItemTemplate()}},{key:"rowDataChanged",value:function(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}},{key:"cellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"headerCellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Si((function(e){return e.columnDefinitions}),(function(e){return e.activeCellItemTemplate}),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Di,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}},{key:"disconnectedCallback",value:function(){D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Di,this.handleKeydown)}},{key:"handleFocusout",value:function(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}},{key:"handleCellFocus",value:function(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t=0;switch(e.key){case jr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case Sr:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Dr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Rr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}}},{key:"updateItemTemplate",value:function(){this.activeCellItemTemplate=this.rowType===Pi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Pi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}]),n}($e);J([K({attribute:"grid-template-columns"})],Bi.prototype,"gridTemplateColumns",void 0),J([K({attribute:"row-type"})],Bi.prototype,"rowType",void 0),J([j],Bi.prototype,"rowData",void 0),J([j],Bi.prototype,"columnDefinitions",void 0),J([j],Bi.prototype,"cellItemTemplate",void 0),J([j],Bi.prototype,"headerCellItemTemplate",void 0),J([j],Bi.prototype,"rowIndex",void 0),J([j],Bi.prototype,"isActiveRow",void 0),J([j],Bi.prototype,"activeCellItemTemplate",void 0),J([j],Bi.prototype,"defaultCellItemTemplate",void 0),J([j],Bi.prototype,"defaultHeaderCellItemTemplate",void 0),J([j],Bi.prototype,"cellElements",void 0);var Hi,Vi,Ui,Ki,qi,$i=It(Hi||(Hi=(0,at.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]})),Yi=It(Vi||(Vi=(0,at.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title})),Wi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).cellType=Ii,e.rowData=null,e.columnDefinition=null,e.isActiveCell=!1,e.customCellView=null,e.updateCellStyle=function(){e.style.gridColumn=e.gridColumn},e}return(0,i.Z)(n,[{key:"cellTypeChanged",value:function(){this.$fastController.isConnected&&this.updateCellView()}},{key:"gridColumnChanged",value:function(){this.$fastController.isConnected&&this.updateCellStyle()}},{key:"columnDefinitionChanged",value:function(e,t){this.$fastController.isConnected&&this.updateCellView()}},{key:"connectedCallback",value:function(){var e;D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener(Ai,this.handleFocusin),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Di,this.handleKeydown),this.style.gridColumn="".concat(void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}},{key:"disconnectedCallback",value:function(){D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener(Ai,this.handleFocusin),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Di,this.handleKeydown),this.disconnectCellView()}},{key:"handleFocusin",value:function(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===Ni){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus()}this.$emit("cell-focused",this)}}},{key:"handleFocusout",value:function(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}},{key:"handleKeydown",value:function(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===Ii&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ni&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case Ar:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===Ni){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus(),e.preventDefault()}break;case Tr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}},{key:"updateCellView",value:function(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ni:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Yi.render(this,this);break;case void 0:case"rowheader":case Ii:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=$i.render(this,this)}}},{key:"disconnectCellView",value:function(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}]),n}($e);J([K({attribute:"cell-type"})],Wi.prototype,"cellType",void 0),J([K({attribute:"grid-column"})],Wi.prototype,"gridColumn",void 0),J([j],Wi.prototype,"rowData",void 0),J([j],Wi.prototype,"columnDefinition",void 0);var Ji,Gi,Qi,Xi,eo,to=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}]),n}(Mi),no=to.compose({baseName:"data-grid",baseClass:Mi,template:function(e,t){var n=function(e){var t=e.tagFor(Bi);return It(Fi||(Fi=(0,at.Z)(["\n <",'\n :rowData="','"\n :cellItemTemplate="','"\n :headerCellItemTemplate="','"\n ></',">\n"])),t,(function(e){return e}),(function(e,t){return t.parent.cellItemTemplate}),(function(e,t){return t.parent.headerCellItemTemplate}),t)}(e),r=e.tagFor(Bi);return It(zi||(zi=(0,at.Z)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(function(){return r}),n,Zi({property:"rowElements",filter:Kr("[role=row]")}))},styles:function(e,t){return Mt(Gi||(Gi=(0,at.Z)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}}),ro=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Bi),io=ro.compose({baseName:"data-grid-row",baseClass:Bi,template:function(e,t){var n=function(e){var t=e.tagFor(Wi);return It(Ui||(Ui=(0,at.Z)(["\n <",'\n cell-type="','"\n grid-column="','"\n :rowData="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e){return e.isRowHeader?"rowheader":void 0}),(function(e,t){return t.index+1}),(function(e,t){return t.parent.rowData}),(function(e){return e}),t)}(e),r=function(e){var t=e.tagFor(Wi);return It(Ki||(Ki=(0,at.Z)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e,t){return t.index+1}),(function(e){return e}),t)}(e);return It(qi||(qi=(0,at.Z)(['\n <template\n role="row"\n class="','"\n :defaultCellItemTemplate="','"\n :defaultHeaderCellItemTemplate="','"\n ',"\n >\n <slot ","></slot>\n </template>\n "])),(function(e){return"default"!==e.rowType?e.rowType:""}),n,r,Zi({property:"cellElements",filter:Kr('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Jr("slottedCellElements"))},styles:function(e,t){return Mt(Qi||(Qi=(0,at.Z)(["\n\t:host {\n\t\tdisplay: grid;\n\t\tpadding: calc(("," / 4) * 1px) 0;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tbackground: transparent;\n\t}\n\t:host(.header) {\n\t}\n\t:host(.sticky-header) {\n\t\tbackground: ",";\n\t\tposition: sticky;\n\t\ttop: 0;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n"])),pn,cn,Gn,fn)}}),oo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Wi),ao=oo.compose({baseName:"data-grid-cell",baseClass:Wi,template:function(e,t){return It(Ji||(Ji=(0,at.Z)(['\n <template\n tabindex="-1"\n role="','"\n class="\n ','\n "\n >\n <slot></slot>\n </template>\n '])),(function(e){return e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}),(function(e){return"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":""}))},styles:function(e,t){return Mt(Xi||(Xi=(0,at.Z)(["\n\t:host {\n\t\tpadding: calc("," * 1px) calc("," * 3px);\n\t\tcolor: ",";\n\t\topacity: 1;\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tfont-weight: 400;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\twhite-space: wrap;\n\t\toverflow-wrap: anywhere;\n\t}\n\t:host(.column-header) {\n\t\tfont-weight: 600;\n\t}\n\t:host(:","),\n\t:host(:focus),\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tborder: solid calc("," * 1px) ",";\n\t\tcolor: ",";\n\t\toutline: none;\n\t}\n\t:host(:",") ::slotted(*),\n\t:host(:focus) ::slotted(*),\n\t:host(:active) ::slotted(*) {\n\t\tcolor: "," !important;\n\t}\n"])),pn,pn,yn,mn,_n,xn,dn,hn,ni,Wn,dn,gn,Jn,ni,Jn)}}),so="horizontal",lo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).role="separator",e.orientation=so,e}return(0,i.Z)(n)}($e);J([K],lo.prototype,"role",void 0),J([K],lo.prototype,"orientation",void 0);var uo,co=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(lo),fo=co.compose({baseName:"divider",template:function(e,t){return It(eo||(eo=(0,at.Z)(['\n <template role="','" aria-orientation="','"></template>\n'])),(function(e){return e.role}),(function(e){return e.orientation}))},styles:function(e,t){return Mt(uo||(uo=(0,at.Z)(["\n\t"," :host {\n\t\tborder: none;\n\t\tborder-top: calc("," * 1px) solid ",";\n\t\tbox-sizing: content-box;\n\t\theight: 0;\n\t\tmargin: calc("," * 1px) 0;\n\t\twidth: 100%;\n\t}\n"])),Lt("block"),dn,Qn,pn)}}),ho=0;function po(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(ho++)}function vo(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e instanceof HTMLElement}))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}var go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this)).defaultSelected=!1,s.dirtySelected=!1,s.selected=s.defaultSelected,s.dirtyValue=!1,e&&(s.textContent=e),i&&(s.initialValue=i),o&&(s.defaultSelected=o),a&&(s.selected=a),s.proxy=new Option("".concat(s.textContent),s.initialValue,s.defaultSelected,s.selected),s.proxy.disabled=s.disabled,s}return(0,i.Z)(n,[{key:"checkedChanged",value:function(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}},{key:"contentChanged",value:function(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}},{key:"defaultSelectedChanged",value:function(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}},{key:"disabledChanged",value:function(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}},{key:"selectedAttributeChanged",value:function(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}},{key:"selectedChanged",value:function(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"label",get:function(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}},{key:"text",get:function(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}},{key:"value",get:function(){var e;return C.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text},set:function(e){var t="".concat(null!=e?e:"");this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),C.notify(this,"value")}},{key:"form",get:function(){return this.proxy?this.proxy.form:null}}]),n}($e);J([j],go.prototype,"checked",void 0),J([j],go.prototype,"content",void 0),J([j],go.prototype,"defaultSelected",void 0),J([K({mode:"boolean"})],go.prototype,"disabled",void 0),J([K({attribute:"selected",mode:"boolean"})],go.prototype,"selectedAttribute",void 0),J([j],go.prototype,"selected",void 0),J([K({attribute:"value",mode:"fromView"})],go.prototype,"initialValue",void 0);var mo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));J([j],mo.prototype,"ariaChecked",void 0),J([j],mo.prototype,"ariaPosInSet",void 0),J([j],mo.prototype,"ariaSelected",void 0),J([j],mo.prototype,"ariaSetSize",void 0),Or(mo,hr),Or(go,_r,mo);var yo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._options=[],e.selectedIndex=-1,e.selectedOptions=[],e.shouldSkipFocus=!1,e.typeaheadBuffer="",e.typeaheadExpired=!0,e.typeaheadTimeout=-1,e}return(0,i.Z)(n,[{key:"firstSelectedOption",get:function(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}},{key:"hasSelectableOptions",get:function(){return this.options.length>0&&!this.options.every((function(e){return e.disabled}))}},{key:"length",get:function(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},{key:"options",get:function(){return C.track(this,"options"),this._options},set:function(e){this._options=e,C.notify(this,"options")}},{key:"typeAheadExpired",get:function(){return this.typeaheadExpired},set:function(e){this.typeaheadExpired=e}},{key:"clickHandler",value:function(e){var t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}},{key:"focusAndScrollOptionIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstSelectedOption;this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((function(){e.scrollIntoView({block:"nearest"})})))}},{key:"focusinHandler",value:function(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"getTypeaheadMatches",value:function(){var e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp("^".concat(e),"gi");return this.options.filter((function(e){return e.text.trim().match(t)}))}},{key:"getSelectableIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedIndex,t=arguments.length>1?arguments[1]:void 0,n=e>t?-1:e<t?1:0,r=e+n,i=null;switch(n){case-1:i=this.options.reduceRight((function(e,t,n){return!e&&!t.disabled&&n<r?t:e}),i);break;case 1:i=this.options.reduce((function(e,t,n){return!e&&!t.disabled&&n>r?t:e}),i)}return this.options.indexOf(i)}},{key:"handleChange",value:function(e,t){"selected"===t&&(n.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}},{key:"handleTypeAhead",value:function(e){var t=this;this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((function(){return t.typeaheadExpired=!0}),n.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer="".concat(this.typeaheadExpired?"":this.typeaheadBuffer).concat(e))}},{key:"keydownHandler",value:function(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;var t=e.key;switch(t){case Dr:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case Cr:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case Er:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case Rr:e.preventDefault(),this.selectLastOption();break;case Nr:return this.focusAndScrollOptionIntoView(),!0;case Ar:case Tr:return!0;case Ir:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}},{key:"multipleChanged",value:function(e,t){this.ariaMultiSelectable=t?"true":null}},{key:"selectedIndexChanged",value:function(e,t){var n;if(this.hasSelectableOptions){if((null===(n=this.options[this.selectedIndex])||void 0===n?void 0:n.disabled)&&"number"==typeof e){var r=this.getSelectableIndex(e,t),i=r>-1?r:e;return this.selectedIndex=i,void(t===i&&this.selectedIndexChanged(t,i))}this.setSelectedOptions()}else this.selectedIndex=-1}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this,o=t.filter(n.slottedOptionFilter);null===(r=this.options)||void 0===r||r.forEach((function(e){var t=C.getNotifier(e);t.unsubscribe(i,"selected"),e.selected=o.includes(e),t.subscribe(i,"selected")}))}},{key:"selectFirstOption",value:function(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return!e.disabled})))&&void 0!==t?t:-1)}},{key:"selectLastOption",value:function(){this.disabled||(this.selectedIndex=function(e,t){for(var n=e.length;n--;)if(t(e[n]))return n;return-1}(this.options,(function(e){return!e.disabled})))}},{key:"selectNextOption",value:function(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}},{key:"selectPreviousOption",value:function(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}},{key:"setDefaultSelectedOption",value:function(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return e.defaultSelected})))&&void 0!==t?t:-1}},{key:"setSelectedOptions",value:function(){var e,t,n;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==n?n:"",this.focusAndScrollOptionIntoView())}},{key:"slottedOptionsChanged",value:function(e,t){this.options=t.reduce((function(e,t){return vo(t)&&e.push(t),e}),[]);var n="".concat(this.options.length);this.options.forEach((function(e,t){e.id||(e.id=po("option-")),e.ariaPosInSet="".concat(t+1),e.ariaSetSize=n})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.$fastController.isConnected){var n=this.getTypeaheadMatches();if(n.length){var r=this.options.indexOf(n[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}}]),n}($e);yo.slottedOptionFilter=function(e){return vo(e)&&!e.hidden},yo.TYPE_AHEAD_TIMEOUT_MS=1e3,J([K({mode:"boolean"})],yo.prototype,"disabled",void 0),J([j],yo.prototype,"selectedIndex",void 0),J([j],yo.prototype,"selectedOptions",void 0),J([j],yo.prototype,"slottedOptions",void 0),J([j],yo.prototype,"typeaheadBuffer",void 0);var bo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function wo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[t,n].sort((function(e,t){return e-t})),i=(0,G.Z)(r,2);return t=i[0],n=i[1],t<=e&&e<n}J([j],bo.prototype,"ariaActiveDescendant",void 0),J([j],bo.prototype,"ariaDisabled",void 0),J([j],bo.prototype,"ariaExpanded",void 0),J([j],bo.prototype,"ariaMultiSelectable",void 0),Or(bo,hr),Or(yo,bo);var _o=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).activeIndex=-1,e.rangeStartIndex=-1,e}return(0,i.Z)(n,[{key:"activeOption",get:function(){return this.options[this.activeIndex]}},{key:"checkedOptions",get:function(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((function(e){return e.checked}))}},{key:"firstSelectedOptionIndex",get:function(){return this.options.indexOf(this.firstSelectedOption)}},{key:"activeIndexChanged",value:function(e,t){var n,r;this.ariaActiveDescendant=null!==(r=null===(n=this.options[t])||void 0===n?void 0:n.id)&&void 0!==r?r:"",this.focusAndScrollOptionIntoView()}},{key:"checkActiveIndex",value:function(){if(this.multiple){var e=this.activeOption;e&&(e.checked=!0)}}},{key:"checkFirstOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((function(t,n){t.checked=wo(n,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}},{key:"checkLastOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=wo(n,e.rangeStartIndex,e.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("focusout",this.focusoutHandler)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("focusout",this.focusoutHandler),D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"checkNextOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=wo(n,e.rangeStartIndex,e.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}},{key:"checkPreviousOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((function(t,n){t.checked=wo(n,e.activeIndex,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}},{key:"clickHandler",value:function(e){var t;if(!this.multiple)return D((0,T.Z)(n.prototype),"clickHandler",this).call(this,e);var r=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return r&&!r.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}},{key:"focusAndScrollOptionIntoView",value:function(){D((0,T.Z)(n.prototype),"focusAndScrollOptionIntoView",this).call(this,this.activeOption)}},{key:"focusinHandler",value:function(e){if(!this.multiple)return D((0,T.Z)(n.prototype),"focusinHandler",this).call(this,e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"focusoutHandler",value:function(e){this.multiple&&this.uncheckAllOptions()}},{key:"keydownHandler",value:function(e){if(!this.multiple)return D((0,T.Z)(n.prototype),"keydownHandler",this).call(this,e);if(this.disabled)return!0;var t=e.key,r=e.shiftKey;switch(this.shouldSkipFocus=!1,t){case Dr:return void this.checkFirstOption(r);case Cr:return void this.checkNextOption(r);case Er:return void this.checkPreviousOption(r);case Rr:return void this.checkLastOption(r);case Nr:return this.focusAndScrollOptionIntoView(),!0;case Tr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Ir:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return D((0,T.Z)(n.prototype),"mousedownHandler",this).call(this,e)}},{key:"multipleChanged",value:function(e,t){var n;this.ariaMultiSelectable=t?"true":null,null===(n=this.options)||void 0===n||n.forEach((function(e){e.checked=!t&&void 0})),this.setSelectedOptions()}},{key:"setSelectedOptions",value:function(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((function(e){return e.selected})),this.focusAndScrollOptionIntoView()):D((0,T.Z)(n.prototype),"setSelectedOptions",this).call(this)}},{key:"sizeChanged",value:function(e,t){var n,r=this,i=Math.max(0,parseInt(null!==(n=null==t?void 0:t.toFixed())&&void 0!==n?n:"",10));i!==t&&x.queueUpdate((function(){r.size=i}))}},{key:"toggleSelectedForAllCheckedOptions",value:function(){var e=this.checkedOptions.filter((function(e){return!e.disabled})),t=!e.every((function(e){return e.selected}));e.forEach((function(e){return e.selected=t})),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.multiple){if(this.$fastController.isConnected){var r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else D((0,T.Z)(n.prototype),"typeaheadBufferChanged",this).call(this,e,t)}},{key:"uncheckAllOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.options.forEach((function(t){return t.checked=!e.multiple&&void 0})),t||(this.rangeStartIndex=-1)}}]),n}(yo);J([j],_o.prototype,"activeIndex",void 0),J([K({mode:"boolean"})],_o.prototype,"multiple",void 0),J([K({converter:V})],_o.prototype,"size",void 0);var xo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(_o),ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("select"),e}return(0,i.Z)(n)}(Fr(xo)),Oo="above",Co=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).open=!1,e.forcedPosition=!1,e.listboxId=po("listbox-"),e.maxHeight=0,e}return(0,i.Z)(n,[{key:"openChanged",value:function(e,t){var n=this;if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void x.queueUpdate((function(){return n.focus()}));this.ariaControls="",this.ariaExpanded="false"}}},{key:"collapsible",get:function(){return!(this.multiple||"number"==typeof this.size)}},{key:"value",get:function(){return C.track(this,"value"),this._value},set:function(e){var t,r,i,o,a,s,l,u="".concat(this._value);if(null===(t=this._options)||void 0===t?void 0:t.length){var c=this._options.findIndex((function(t){return t.value===e})),d=null!==(i=null===(r=this._options[this.selectedIndex])||void 0===r?void 0:r.value)&&void 0!==i?i:null,f=null!==(a=null===(o=this._options[c])||void 0===o?void 0:o.value)&&void 0!==a?a:null;-1!==c&&d===f||(e="",this.selectedIndex=c),e=null!==(l=null===(s=this.firstSelectedOption)||void 0===s?void 0:s.value)&&void 0!==l?l:e}u!==e&&(this._value=e,D((0,T.Z)(n.prototype),"valueChanged",this).call(this,u,e),C.notify(this,"value"),this.updateDisplayValue())}},{key:"updateValue",value:function(e){var t,n;this.$fastController.isConnected&&(this.value=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==n?n:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}},{key:"selectedIndexChanged",value:function(e,t){D((0,T.Z)(n.prototype),"selectedIndexChanged",this).call(this,e,t),this.updateValue()}},{key:"positionChanged",value:function(e,t){this.positionAttribute=t,this.setPositioning()}},{key:"setPositioning",value:function(){var e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Oo:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Oo?~~e.top:~~t}},{key:"displayValue",get:function(){var e,t;return C.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}},{key:"disabledChanged",value:function(e,t){D((0,T.Z)(n.prototype),"disabledChanged",this)&&D((0,T.Z)(n.prototype),"disabledChanged",this).call(this,e,t),this.ariaDisabled=this.disabled?"true":"false"}},{key:"formResetCallback",value:function(){this.setProxyOptions(),D((0,T.Z)(n.prototype),"setDefaultSelectedOption",this).call(this),-1===this.selectedIndex&&(this.selectedIndex=0)}},{key:"clickHandler",value:function(e){if(!this.disabled){if(this.open){var t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return D((0,T.Z)(n.prototype),"clickHandler",this).call(this,e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}},{key:"focusoutHandler",value:function(e){var t;if(D((0,T.Z)(n.prototype),"focusoutHandler",this).call(this,e),!this.open)return!0;var r=e.relatedTarget;this.isSameNode(r)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(r))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}},{key:"handleChange",value:function(e,t){D((0,T.Z)(n.prototype),"handleChange",this).call(this,e,t),"value"===t&&this.updateValue()}},{key:"slottedOptionsChanged",value:function(e,t){var r=this;this.options.forEach((function(e){C.getNotifier(e).unsubscribe(r,"value")})),D((0,T.Z)(n.prototype),"slottedOptionsChanged",this).call(this,e,t),this.options.forEach((function(e){C.getNotifier(e).subscribe(r,"value")})),this.setProxyOptions(),this.updateValue()}},{key:"mousedownHandler",value:function(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?D((0,T.Z)(n.prototype),"mousedownHandler",this).call(this,e):this.collapsible}},{key:"multipleChanged",value:function(e,t){D((0,T.Z)(n.prototype),"multipleChanged",this).call(this,e,t),this.proxy&&(this.proxy.multiple=t)}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this;D((0,T.Z)(n.prototype),"selectedOptionsChanged",this).call(this,e,t),null===(r=this.options)||void 0===r||r.forEach((function(e,t){var n,r=null===(n=i.proxy)||void 0===n?void 0:n.options.item(t);r&&(r.selected=e.selected)}))}},{key:"setDefaultSelectedOption",value:function(){var e,t=this,n=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(yo.slottedOptionFilter),r=null==n?void 0:n.findIndex((function(e){return e.hasAttribute("selected")||e.selected||e.value===t.value}));this.selectedIndex=-1===r?0:r}},{key:"setProxyOptions",value:function(){var e=this;this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((function(t){var n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&e.proxy.options.add(n)})))}},{key:"keydownHandler",value:function(e){D((0,T.Z)(n.prototype),"keydownHandler",this).call(this,e);var t=e.key||e.key.charCodeAt(0);switch(t){case Ir:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Dr:case Rr:e.preventDefault();break;case Ar:e.preventDefault(),this.open=!this.open;break;case Tr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case Nr:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===Cr||t===Er)}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("contentchange",this.updateDisplayValue),D((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"sizeChanged",value:function(e,t){D((0,T.Z)(n.prototype),"sizeChanged",this).call(this,e,t),this.proxy&&(this.proxy.size=t)}},{key:"updateDisplayValue",value:function(){this.collapsible&&C.notify(this,"displayValue")}}]),n}(ko);J([K({attribute:"open",mode:"boolean"})],Co.prototype,"open",void 0),J([function(e,t,n){return Object.assign({},n,{get:function(){return C.trackVolatile(),n.get.apply(this)}})}],Co.prototype,"collapsible",null),J([j],Co.prototype,"control",void 0),J([K({attribute:"position"})],Co.prototype,"positionAttribute",void 0),J([j],Co.prototype,"position",void 0),J([j],Co.prototype,"maxHeight",void 0);var jo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));J([j],jo.prototype,"ariaControls",void 0),Or(jo,bo),Or(Co,_r,jo);var So,Eo,Ao=function(e){return"function"==typeof e},To=function(){return null};function Do(e){return void 0===e?To:Ao(e)?e:function(){return e}}function Ro(e,t,n){var r=Ao(e)?e:function(){return e},i=Do(t),o=Do(n);return function(e,t){return r(e,t)?i(e,t):o(e,t)}}var Io,No=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Co),Po=No.compose({baseName:"dropdown",template:function(e,t){return It(So||(So=(0,at.Z)(['\n <template\n class="','"\n aria-activedescendant="','"\n aria-controls="','"\n aria-disabled="','"\n aria-expanded="','"\n aria-haspopup="','"\n aria-multiselectable="','"\n ?open="','"\n role="combobox"\n tabindex="','"\n @click="','"\n @focusin="','"\n @focusout="','"\n @keydown="','"\n @mousedown="','"\n >\n ','\n <div\n class="listbox"\n id="','"\n part="listbox"\n role="listbox"\n ?disabled="','"\n ?hidden="','"\n ',"\n >\n <slot\n ","\n ></slot>\n </div>\n </template>\n"])),(function(e){return[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}),(function(e){return e.ariaActiveDescendant}),(function(e){return e.ariaControls}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaExpanded}),(function(e){return e.collapsible?"listbox":null}),(function(e){return e.ariaMultiSelectable}),(function(e){return e.open}),(function(e){return e.disabled?null:"0"}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.focusinHandler(t.event)}),(function(e,t){return e.focusoutHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.mousedownHandler(t.event)}),Ro((function(e){return e.collapsible}),It(Eo||(Eo=(0,at.Z)(['\n <div\n class="control"\n part="control"\n ?disabled="','"\n ',"\n >\n ",'\n <slot name="button-container">\n <div class="selected-value" part="selected-value">\n <slot name="selected-value">','</slot>\n </div>\n <div aria-hidden="true" class="indicator" part="indicator">\n <slot name="indicator">\n ',"\n </slot>\n </div>\n </slot>\n ","\n </div>\n "])),(function(e){return e.disabled}),br("control"),kr(0,t),(function(e){return e.displayValue}),t.indicator||"",xr(0,t))),(function(e){return e.listboxId}),(function(e){return e.disabled}),(function(e){return!!e.collapsible&&!e.open}),br("listbox"),Jr({filter:yo.slottedOptionFilter,flatten:!0,property:"slottedOptions"}))},styles:function(e,t){return Mt(Io||(Io=(0,at.Z)(["\n\t"," :host {\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcontain: contents;\n\t\tfont-family: ",";\n\t\theight: calc("," * 1px);\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmin-width: ",";\n\t\toutline: none;\n\t\tvertical-align: top;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbox-sizing: border-box;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tfont-family: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmin-height: 100%;\n\t\tpadding: 2px 6px 2px 8px;\n\t\twidth: 100%;\n\t}\n\t.listbox {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\tleft: 0;\n\t\tmax-height: ",";\n\t\tpadding: 0 0 calc("," * 1px) 0;\n\t\toverflow-y: auto;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\t}\n\t.listbox[hidden] {\n\t\tdisplay: none;\n\t}\n\t:host(:",") .control {\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled]):hover) {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",') ::slotted([aria-selected="true"][role="option"]:not([disabled])) {\n\t\tbackground: ',";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t\tuser-select: none;\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tborder-color: ",";\n\t}\n\t:host(:empty) .listbox {\n\t\tdisplay: none;\n\t}\n\t:host([open]) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([open][position='above']) .listbox,\n\t:host([open][position='below']) .control {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\t}\n\t:host([open][position='above']) .control,\n\t:host([open][position='below']) .listbox {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\t:host([open][position='above']) .listbox {\n\t\tbottom: calc("," * 1px);\n\t}\n\t:host([open][position='below']) .listbox {\n\t\ttop: calc("," * 1px);\n\t}\n\t.selected-value {\n\t\tflex: 1 1 auto;\n\t\tfont-family: inherit;\n\t\toverflow: hidden;\n\t\ttext-align: start;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\t.indicator {\n\t\tflex: 0 0 auto;\n\t\tmargin-inline-start: 1em;\n\t}\n\tslot[name='listbox'] {\n\t\tdisplay: none;\n\t\twidth: 100%;\n\t}\n\t:host([open]) slot[name='listbox'] {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t}\n\t.end {\n\t\tmargin-inline-start: auto;\n\t}\n\t.start,\n\t.end,\n\t.indicator,\n\t.select-indicator,\n\t::slotted(svg),\n\t::slotted(span) {\n\t\tfill: currentcolor;\n\t\theight: 1em;\n\t\tmin-height: calc("," * 4px);\n\t\tmin-width: calc("," * 4px);\n\t\twidth: 1em;\n\t}\n\t::slotted([role='option']),\n\t::slotted(option) {\n\t\tflex: 0 0 auto;\n\t}\n"])),Lt("inline-flex"),Xn,yn,mn,bn,wn,dn,er,hn,_n,xn,Xn,dn,gn,hn,tr,pn,ni,gn,Xn,er,ni,Wn,dn,gn,Jn,ri,vn,ri,Xn,yn,gn,gn,bn,bn,pn,pn)},indicator:'\n\t\t<svg \n\t\t\tclass="select-indicator"\n\t\t\tpart="select-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"\n\t\t\t/>\n\t\t</svg>\n\t'}),Mo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){var t;null===(t=e.control)||void 0===t||t.focus()})},e}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.handleUnsupportedDelegatesFocus()}}]),n}($e);J([K],Mo.prototype,"download",void 0),J([K],Mo.prototype,"href",void 0),J([K],Mo.prototype,"hreflang",void 0),J([K],Mo.prototype,"ping",void 0),J([K],Mo.prototype,"referrerpolicy",void 0),J([K],Mo.prototype,"rel",void 0),J([K],Mo.prototype,"target",void 0),J([K],Mo.prototype,"type",void 0),J([j],Mo.prototype,"defaultSlottedContent",void 0);var Lo,Zo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));J([K({attribute:"aria-expanded"})],Zo.prototype,"ariaExpanded",void 0),Or(Zo,hr),Or(Mo,_r,Zo);var Fo,zo,Bo,Ho,Vo,Uo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Mo),Ko=Uo.compose({baseName:"link",template:function(e,t){return It(Lo||(Lo=(0,at.Z)(['\n <a\n class="control"\n part="control"\n download="','"\n href="','"\n hreflang="','"\n ping="','"\n referrerpolicy="','"\n rel="','"\n target="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </a>\n"])),(function(e){return e.download}),(function(e){return e.href}),(function(e){return e.hreflang}),(function(e){return e.ping}),(function(e){return e.referrerpolicy}),(function(e){return e.rel}),(function(e){return e.target}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),kr(0,t),Jr("defaultSlottedContent"),xr(0,t))},styles:function(e,t){return Mt(Fo||(Fo=(0,at.Z)(["\n\t"," :host {\n\t\tbackground: transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\toutline: none;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\t\tfill: inherit;\n\t\tfont-family: inherit;\n\t\theight: inherit;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tword-break: break-word;\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t}\n\t:host(:hover) .content {\n\t\ttext-decoration: underline;\n\t}\n\t:host(:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t}\n\t:host(:",") .control,\n\t:host(:focus) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n"])),Lt("inline-flex"),or,mn,_n,xn,dn,hn,ir,ir,ni,dn,gn)},shadowOptions:{delegatesFocus:!0}}),qo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}]),n}(go),$o=qo.compose({baseName:"option",template:function(e,t){return It(zo||(zo=(0,at.Z)(['\n <template\n aria-checked="','"\n aria-disabled="','"\n aria-posinset="','"\n aria-selected="','"\n aria-setsize="','"\n class="','"\n role="option"\n >\n ','\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </template>\n"])),(function(e){return e.ariaChecked}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaPosInSet}),(function(e){return e.ariaSelected}),(function(e){return e.ariaSetSize}),(function(e){return[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}),kr(0,t),Jr("content"),xr(0,t))},styles:function(e,t){return Mt(Bo||(Bo=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: var(--body-font);\n\t\tborder-radius: ",";\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: 0;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tpadding: 0 calc(("," / 2) * 1px)\n\t\t\tcalc(("," / 4) * 1px);\n\t\tuser-select: none;\n\t\twhite-space: nowrap;\n\t}\n\t:host(:",") {\n\t\tborder-color: ",";\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):hover) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground-color: inherit;\n\t}\n\t.content {\n\t\tgrid-column-start: 2;\n\t\tjustify-self: start;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"])),Lt("inline-flex"),hn,dn,yn,_n,xn,pn,pn,ni,gn,Wn,yn,Wn,dn,gn,Jn,Wn,Jn,Wn,dn,gn,Jn,Wn,yn,ri,vn)}}),Yo="horizontal",Wo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=Yo,e.activeindicator=!0,e.showActiveIndicator=!0,e.prevActiveTabIndex=0,e.activeTabIndex=0,e.ticking=!1,e.change=function(){e.$emit("change",e.activetab)},e.isDisabledElement=function(e){return"true"===e.getAttribute("aria-disabled")},e.isFocusableElement=function(t){return!e.isDisabledElement(t)},e.setTabs=function(){var t=e.isHorizontal()?"gridColumn":"gridRow";e.activeTabIndex=e.getActiveIndex(),e.showActiveIndicator=!1,e.tabs.forEach((function(n,r){if("tab"===n.slot){var i=e.activeTabIndex===r&&e.isFocusableElement(n);e.activeindicator&&e.isFocusableElement(n)&&(e.showActiveIndicator=!0);var o=e.tabIds[r],a=e.tabpanelIds[r];n.setAttribute("id",o),n.setAttribute("aria-selected",i?"true":"false"),n.setAttribute("aria-controls",a),n.addEventListener("click",e.handleTabClick),n.addEventListener("keydown",e.handleTabKeyDown),n.setAttribute("tabindex",i?"0":"-1"),i&&(e.activetab=n)}n.style.gridColumn="",n.style.gridRow="",n.style[t]="".concat(r+1),e.isHorizontal()?n.classList.remove("vertical"):n.classList.add("vertical")}))},e.setTabPanels=function(){e.tabpanels.forEach((function(t,n){var r=e.tabIds[n],i=e.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),e.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},e.handleTabClick=function(t){var n=t.currentTarget;1===n.nodeType&&e.isFocusableElement(n)&&(e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=e.tabs.indexOf(n),e.setComponent())},e.handleTabKeyDown=function(t){if(e.isHorizontal())switch(t.key){case jr:t.preventDefault(),e.adjustBackward(t);break;case Sr:t.preventDefault(),e.adjustForward(t)}else switch(t.key){case Er:t.preventDefault(),e.adjustBackward(t);break;case Cr:t.preventDefault(),e.adjustForward(t)}switch(t.key){case Dr:t.preventDefault(),e.adjust(-e.activeTabIndex);break;case Rr:t.preventDefault(),e.adjust(e.tabs.length-e.activeTabIndex-1)}},e.adjustForward=function(t){var n=e.tabs,r=0;for((r=e.activetab?n.indexOf(e.activetab)+1:1)===n.length&&(r=0);r<n.length&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}if(e.activetab&&r===n.indexOf(e.activetab))break;r+1>=n.length?r=0:r+=1}},e.adjustBackward=function(t){var n=e.tabs,r=0;for(r=(r=e.activetab?n.indexOf(e.activetab)-1:0)<0?n.length-1:r;r>=0&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}r-1<0?r=n.length-1:r-=1}},e.moveToTabByIndex=function(t,n){var r=t[n];e.activetab=r,e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=n,r.focus(),e.setComponent()},e}return(0,i.Z)(n,[{key:"orientationChanged",value:function(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"activeidChanged",value:function(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((function(t){return t.id===e})),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabsChanged",value:function(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabpanelsChanged",value:function(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"getActiveIndex",value:function(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}},{key:"getTabIds",value:function(){return this.tabs.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"tab-".concat(po())}))}},{key:"getTabPanelIds",value:function(){return this.tabpanels.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat(po())}))}},{key:"setComponent",value:function(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}},{key:"isHorizontal",value:function(){return this.orientation===Yo}},{key:"handleActiveIndicatorPosition",value:function(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}},{key:"animateActiveIndicator",value:function(){var e=this;this.ticking=!0;var t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.activeTabIndex+1);var o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.prevActiveTabIndex+1);var a=o-i;this.activeIndicatorRef.style.transform="".concat(n,"(").concat(a,"px)"),this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(function(){e.ticking=!1,e.activeIndicatorRef.style[t]="".concat(e.activeTabIndex+1),e.activeIndicatorRef.style.transform="".concat(n,"(0px)"),e.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}},{key:"adjust",value:function(e){var t,n;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=this.tabs.length-1,(n=this.activeTabIndex+e)<0?t:n>t?0:n),this.setComponent()}},{key:"focusTab",value:function(){this.tabs[this.activeTabIndex].focus()}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}]),n}($e);J([K],Wo.prototype,"orientation",void 0),J([K],Wo.prototype,"activeid",void 0),J([j],Wo.prototype,"tabs",void 0),J([j],Wo.prototype,"tabpanels",void 0),J([K({mode:"boolean"})],Wo.prototype,"activeindicator",void 0),J([j],Wo.prototype,"activeIndicatorRef",void 0),J([j],Wo.prototype,"showActiveIndicator",void 0),Or(Wo,_r);var Jo,Go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e);J([K({mode:"boolean"})],Go.prototype,"disabled",void 0);var Qo,Xo,ea,ta,na,ra,ia,oa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),aa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.orientation&&(this.orientation=Yo),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}]),n}(Wo),sa=aa.compose({baseName:"panels",template:function(e,t){return It(Ho||(Ho=(0,at.Z)(['\n <template class="','">\n ','\n <div class="tablist" part="tablist" role="tablist">\n <slot class="tab" name="tab" part="tab" ',"></slot>\n\n ","\n </div>\n ",'\n <div class="tabpanel" part="tabpanel">\n <slot name="tabpanel" ',"></slot>\n </div>\n </template>\n"])),(function(e){return e.orientation}),kr(0,t),Jr("tabs"),Ro((function(e){return e.showActiveIndicator}),It(Vo||(Vo=(0,at.Z)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),br("activeIndicatorRef"))),xr(0,t),Jr("tabpanels"))},styles:function(e,t){return Mt(Xo||(Xo=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tgrid-template-columns: auto 1fr auto;\n\t\tgrid-template-rows: auto 1fr;\n\t\toverflow-x: auto;\n\t}\n\t.tablist {\n\t\tdisplay: grid;\n\t\tgrid-template-rows: auto auto;\n\t\tgrid-template-columns: auto;\n\t\tcolumn-gap: calc("," * 8px);\n\t\tposition: relative;\n\t\twidth: max-content;\n\t\talign-self: end;\n\t\tpadding: calc("," * 1px) calc("," * 1px) 0;\n\t\tbox-sizing: border-box;\n\t}\n\t.start,\n\t.end {\n\t\talign-self: center;\n\t}\n\t.activeIndicator {\n\t\tgrid-row: 2;\n\t\tgrid-column: 1;\n\t\twidth: 100%;\n\t\theight: calc(("," / 4) * 1px);\n\t\tjustify-self: center;\n\t\tbackground: ",";\n\t\tmargin: 0;\n\t\tborder-radius: calc("," * 1px);\n\t}\n\t.activeIndicatorTransition {\n\t\ttransition: transform 0.01s linear;\n\t}\n\t.tabpanel {\n\t\tgrid-row: 2;\n\t\tgrid-column-start: 1;\n\t\tgrid-column-end: 4;\n\t\tposition: relative;\n\t}\n"])),Lt("grid"),mn,_n,xn,yn,pn,pn,pn,pn,lr,hn)}}),la=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}]),n}(Go),ua=la.compose({baseName:"panel-tab",template:function(e,t){return It(Jo||(Jo=(0,at.Z)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(function(e){return e.disabled}))},styles:function(e,t){return Mt(ea||(ea=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\theight: calc("," * 7px);\n\t\tpadding: calc("," * 1px) 0;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: solid calc("," * 1px) transparent;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgrid-row: 1;\n\t\tcursor: pointer;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:active) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:hover) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:",") {\n\t\toutline: none;\n\t\tborder: solid calc("," * 1px) ",";\n\t}\n\t:host(:focus) {\n\t\toutline: none;\n\t}\n\t::slotted(vscode-badge) {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n"])),Lt("inline-flex"),mn,_n,xn,pn,pn,ur,hn,dn,lr,lr,lr,lr,lr,ni,dn,sr,pn)}}),ca=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(oa),da=ca.compose({baseName:"panel-view",template:function(e,t){return It(Qo||(Qo=(0,at.Z)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n'])))},styles:function(e,t){return Mt(ta||(ta=(0,at.Z)(["\n\t"," :host {\n\t\tcolor: inherit;\n\t\tbackground-color: transparent;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tbox-sizing: border-box;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: 10px calc(("," + 2) * 1px);\n\t}\n"])),Lt("flex"),dn,_n,xn,pn)}}),fa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).percentComplete=0,e}return(0,i.Z)(n,[{key:"valueChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"minChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"maxChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.updatePercentComplete()}},{key:"updatePercentComplete",value:function(){var e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,n="number"==typeof this.value?this.value:0,r=t-e;this.percentComplete=0===r?0:Math.fround((n-e)/r*100)}}]),n}($e);J([K({converter:V})],fa.prototype,"value",void 0),J([K({converter:V})],fa.prototype,"min",void 0),J([K({converter:V})],fa.prototype,"max",void 0),J([K({mode:"boolean"})],fa.prototype,"paused",void 0),J([j],fa.prototype,"percentComplete",void 0);var ha,pa,va=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}},{key:"attributeChangedCallback",value:function(e,t,n){"value"===e&&this.removeAttribute("value")}}]),n}(fa),ga=va.compose({baseName:"progress-ring",template:function(e,t){return It(na||(na=(0,at.Z)(['\n <template\n role="progressbar"\n aria-valuenow="','"\n aria-valuemin="','"\n aria-valuemax="','"\n class="','"\n >\n ',"\n </template>\n"])),(function(e){return e.value}),(function(e){return e.min}),(function(e){return e.max}),(function(e){return e.paused?"paused":""}),Ro((function(e){return"number"==typeof e.value}),It(ra||(ra=(0,at.Z)(['\n <svg\n class="progress"\n part="progress"\n viewBox="0 0 16 16"\n slot="determinate"\n >\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="determinate"\n part="determinate"\n style="stroke-dasharray: ',"px ",'px"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '])),(function(e){return 44*e.percentComplete/100}),44),It(ia||(ia=(0,at.Z)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||"")))},styles:function(e,t){return Mt(ha||(ha=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\theight: calc("," * 7px);\n\t\twidth: calc("," * 7px);\n\t\tmargin: 0;\n\t}\n\t.progress {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.background {\n\t\tfill: none;\n\t\tstroke: transparent;\n\t\tstroke-width: calc("," / 2 * 1px);\n\t}\n\t.indeterminate-indicator-1 {\n\t\tfill: none;\n\t\tstroke: ",";\n\t\tstroke-width: calc("," / 2 * 1px);\n\t\tstroke-linecap: square;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: all 0.2s ease-in-out;\n\t\tanimation: spin-infinite 2s linear infinite;\n\t}\n\t@keyframes spin-infinite {\n\t\t0% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t50% {\n\t\t\tstroke-dasharray: 21.99px 21.99px;\n\t\t\ttransform: rotate(450deg);\n\t\t}\n\t\t100% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(1080deg);\n\t\t}\n\t}\n"])),Lt("flex"),pn,pn,pn,ar,pn)},indeterminateIndicator:'\n\t\t<svg class="progress" part="progress" viewBox="0 0 16 16">\n\t\t\t<circle\n\t\t\t\tclass="background"\n\t\t\t\tpart="background"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t\t<circle\n\t\t\t\tclass="indeterminate-indicator-1"\n\t\t\t\tpart="indeterminate-indicator-1"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t</svg>\n\t'}),ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),ya=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(ma)),ba=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.keypressHandler=function(t){if(t.key!==Ir)return!0;e.checked||e.readOnly||(e.checked=!0)},e.proxy.setAttribute("type","radio"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}},{key:"defaultCheckedChanged",value:function(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}},{key:"connectedCallback",value:function(){var e,t;D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}},{key:"isInsideRadioGroup",value:function(){return null!==this.closest("[role=radiogroup]")}},{key:"clickHandler",value:function(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}]),n}(ya);J([K({attribute:"readonly",mode:"boolean"})],ba.prototype,"readOnly",void 0),J([j],ba.prototype,"name",void 0),J([j],ba.prototype,"defaultSlottedNodes",void 0);var wa,_a,xa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}]),n}(ba),ka=xa.compose({baseName:"radio",template:function(e,t){return It(pa||(pa=(0,at.Z)(['\n <template\n role="radio"\n class="'," ",'"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n @keypress="','"\n @click="','"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked?"checked":""}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),t.checkedIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Jr("defaultSlottedNodes"))},styles:function(e,t){return Mt(wa||(wa=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\tflex-direction: row;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t\toutline: none;\n\t\tposition: relative;\n\t\ttransition: all 0.2s ease-in-out;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbox-sizing: border-box;\n\t\tcursor: pointer;\n\t\theight: calc("," * 4px);\n\t\tposition: relative;\n\t\toutline: none;\n\t\twidth: calc("," * 4px);\n\t}\n\t.label {\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-family: ",";\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.control,\n\t.checked-indicator {\n\t\tflex-shrink: 0;\n\t}\n\t.checked-indicator {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tdisplay: inline-block;\n\t\tinset: calc("," * 1px);\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t}\n\t:host(:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']) .control {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",';\n\t}\n\t:host([aria-checked="true"]:',":not([disabled])) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([aria-checked='true']) .checked-indicator {\n\t\topacity: 1;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n"])),Lt("inline-flex"),_n,xn,pn,qn,dn,$n,pn,pn,yn,mn,pn,pn,yn,pn,qn,$n,qn,gn,ni,dn,gn,qn,dn,$n,qn,dn,$n,qn,dn,gn,ni,dn,gn,ri,vn)},checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});!function(e){e.ltr="ltr",e.rtl="rtl"}(_a||(_a={}));var Oa,Ca=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=so,e.radioChangeHandler=function(t){var n=t.target;n.checked&&(e.slottedRadioButtons.forEach((function(t){t!==n&&(t.checked=!1,e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),e.selectedRadio=n,e.value=n.value,n.setAttribute("tabindex","0"),e.focusedRadio=n),t.stopPropagation()},e.moveToRadioByIndex=function(t,n){var r=t[n];e.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?e.slottedRadioButtons.forEach((function(e){e!==r&&e.setAttribute("tabindex","-1")})):(r.checked=!0,e.selectedRadio=r)),e.focusedRadio=r,r.focus()},e.moveRightOffGroup=function(){var t;null===(t=e.nextElementSibling)||void 0===t||t.focus()},e.moveLeftOffGroup=function(){var t;null===(t=e.previousElementSibling)||void 0===t||t.focus()},e.focusOutHandler=function(t){var n=e.slottedRadioButtons,r=t.target,i=null!==r?n.indexOf(r):0,o=e.focusedRadio?n.indexOf(e.focusedRadio):-1;return(0===o&&i===o||o===n.length-1&&o===i)&&(e.selectedRadio?(e.focusedRadio=e.selectedRadio,e.isInsideFoundationToolbar||(e.selectedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.selectedRadio&&t.setAttribute("tabindex","-1")})))):(e.focusedRadio=n[0],e.focusedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},e.clickHandler=function(t){var n=t.target;if(n){var r=e.slottedRadioButtons;n.checked||0===r.indexOf(n)?(n.setAttribute("tabindex","0"),e.selectedRadio=n):(n.setAttribute("tabindex","-1"),e.selectedRadio=null),e.focusedRadio=n}t.preventDefault()},e.shouldMoveOffGroupToTheRight=function(t,n,r){return t===n.length&&e.isInsideToolbar&&r===Sr},e.shouldMoveOffGroupToTheLeft=function(t,n){return(e.focusedRadio?t.indexOf(e.focusedRadio)-1:0)<0&&e.isInsideToolbar&&n===jr},e.checkFocusedRadio=function(){null===e.focusedRadio||e.focusedRadio.readOnly||e.focusedRadio.checked||(e.focusedRadio.checked=!0,e.focusedRadio.setAttribute("tabindex","0"),e.focusedRadio.focus(),e.selectedRadio=e.focusedRadio)},e.moveRight=function(t){var n=e.slottedRadioButtons,r=0;if(r=e.focusedRadio?n.indexOf(e.focusedRadio)+1:1,e.shouldMoveOffGroupToTheRight(r,n,t.key))e.moveRightOffGroup();else for(r===n.length&&(r=0);r<n.length&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;if(r+1>=n.length){if(e.isInsideToolbar)break;r=0}else r+=1}},e.moveLeft=function(t){var n=e.slottedRadioButtons,r=0;if(r=(r=e.focusedRadio?n.indexOf(e.focusedRadio)-1:0)<0?n.length-1:r,e.shouldMoveOffGroupToTheLeft(n,t.key))e.moveLeftOffGroup();else for(;r>=0&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;r-1<0?r=n.length-1:r-=1}},e.keydownHandler=function(t){var n=t.key;if(n in Pr&&e.isInsideFoundationToolbar)return!0;switch(n){case Ar:e.checkFocusedRadio();break;case Sr:case Cr:e.direction===_a.ltr?e.moveRight(t):e.moveLeft(t);break;case jr:case Er:e.direction===_a.ltr?e.moveLeft(t):e.moveRight(t);break;default:return!0}},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.readOnly?t.readOnly=!0:t.readOnly=!1}))}},{key:"disabledChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.disabled?t.disabled=!0:t.disabled=!1}))}},{key:"nameChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.setAttribute("name",e.name)}))}},{key:"valueChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.value===e.value&&(t.checked=!0,e.selectedRadio=t)})),this.$emit("change")}},{key:"slottedRadioButtonsChanged",value:function(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}},{key:"parentToolbar",get:function(){return this.closest('[role="toolbar"]')}},{key:"isInsideToolbar",get:function(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}},{key:"isInsideFoundationToolbar",get:function(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}},{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.direction=function(e){var t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?_a.rtl:_a.ltr}(this),this.setupRadioButtons()}},{key:"disconnectedCallback",value:function(){var e=this;this.slottedRadioButtons.forEach((function(t){t.removeEventListener("change",e.radioChangeHandler)}))}},{key:"setupRadioButtons",value:function(){var e=this,t=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),n=t?t.length:0;n>1&&(t[n-1].checked=!0);var r=!1;if(this.slottedRadioButtons.forEach((function(t){void 0!==e.name&&t.setAttribute("name",e.name),e.disabled&&(t.disabled=!0),e.readOnly&&(t.readOnly=!0),e.value&&e.value===t.value?(e.selectedRadio=t,e.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),r=!0):(e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",e.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){var i=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),o=null!==i?i.length:0;if(o>0&&!r){var a=i[o-1];a.checked=!0,this.focusedRadio=a,a.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}]),n}($e);J([K({attribute:"readonly",mode:"boolean"})],Ca.prototype,"readOnly",void 0),J([K({attribute:"disabled",mode:"boolean"})],Ca.prototype,"disabled",void 0),J([K],Ca.prototype,"name",void 0),J([K],Ca.prototype,"value",void 0),J([K],Ca.prototype,"orientation",void 0),J([j],Ca.prototype,"childItems",void 0),J([j],Ca.prototype,"slottedRadioButtons",void 0);var ja,Sa,Ea=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("label");if(e){var t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}]),n}(Ca),Aa=Ea.compose({baseName:"radio-group",template:function(e,t){return It(Oa||(Oa=(0,at.Z)(['\n <template\n role="radiogroup"\n aria-disabled="','"\n aria-readonly="','"\n @click="','"\n @keydown="','"\n @focusout="','"\n >\n <slot name="label"></slot>\n <div\n class="positioning-region ','"\n part="positioning-region"\n >\n <slot\n ',"\n ></slot>\n </div>\n </template>\n"])),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.focusOutHandler(t.event)}),(function(e){return e.orientation===so?"horizontal":"vertical"}),Jr({property:"slottedRadioButtons",filter:Kr("[role=radio]")}))},styles:function(e,t){return Mt(ja||(ja=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: flex-start;\n\t\tmargin: calc("," * 1px) 0;\n\t\tflex-direction: column;\n\t}\n\t.positioning-region {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\t:host([orientation='vertical']) .positioning-region {\n\t\tflex-direction: column;\n\t}\n\t:host([orientation='horizontal']) .positioning-region {\n\t\tflex-direction: row;\n\t}\n\t::slotted([slot='label']) {\n\t\tcolor: ",";\n\t\tfont-size: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t}\n"])),Lt("flex"),pn,yn,_n,pn)}}),Ta=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.circular&&(this.circular=!1)}}]),n}(ot),Da=Ta.compose({baseName:"tag",template:Nt,styles:function(e,t){return Mt(Sa||(Sa=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t\tpadding: calc("," * 0.5px) calc("," * 1px);\n\t\ttext-transform: uppercase;\n\t}\n"])),Lt("inline-block"),mn,kn,On,Tn,dn,Rn,cr,Dn,pn,pn)}}),Ra=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Fr(Ra)),Na=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).type="text",e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}},{key:"placeholderChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}},{key:"typeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}},{key:"listChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}},{key:"patternChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}},{key:"sizeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"connectedCallback",value:function(){var e=this;D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&x.queueUpdate((function(){e.focus()}))}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleTextInput",value:function(){this.value=this.control.value}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){D((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(Ia);J([K({attribute:"readonly",mode:"boolean"})],Na.prototype,"readOnly",void 0),J([K({mode:"boolean"})],Na.prototype,"autofocus",void 0),J([K],Na.prototype,"placeholder",void 0),J([K],Na.prototype,"type",void 0),J([K],Na.prototype,"list",void 0),J([K({converter:V})],Na.prototype,"maxlength",void 0),J([K({converter:V})],Na.prototype,"minlength",void 0),J([K],Na.prototype,"pattern",void 0),J([K({converter:V})],Na.prototype,"size",void 0),J([K({mode:"boolean"})],Na.prototype,"spellcheck",void 0),J([j],Na.prototype,"defaultSlottedNodes",void 0);var Pa=(0,i.Z)((function e(){(0,r.Z)(this,e)}));Or(Pa,hr),Or(Na,_r,Pa);var Ma,La=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Za=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("textarea"),e}return(0,i.Z)(n)}(Fr(La)),Fa="none",za=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resize=Fa,e.cols=20,e.handleTextInput=function(){e.value=e.control.value},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}},{key:"listChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){D((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(Za);J([K({mode:"boolean"})],za.prototype,"readOnly",void 0),J([K],za.prototype,"resize",void 0),J([K({mode:"boolean"})],za.prototype,"autofocus",void 0),J([K({attribute:"form"})],za.prototype,"formId",void 0),J([K],za.prototype,"list",void 0),J([K({converter:V})],za.prototype,"maxlength",void 0),J([K({converter:V})],za.prototype,"minlength",void 0),J([K],za.prototype,"name",void 0),J([K],za.prototype,"placeholder",void 0),J([K({converter:V,mode:"fromView"})],za.prototype,"cols",void 0),J([K({converter:V,mode:"fromView"})],za.prototype,"rows",void 0),J([K({mode:"boolean"})],za.prototype,"spellcheck",void 0),J([j],za.prototype,"defaultSlottedNodes",void 0),Or(za,Pa);var Ba,Ha,Va=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}]),n}(za),Ua=Va.compose({baseName:"text-area",template:function(e,t){return It(Ma||(Ma=(0,at.Z)(['\n <template\n class="\n ',"\n ",'"\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot ','></slot>\n </label>\n <textarea\n part="control"\n class="control"\n id="control"\n ?autofocus="','"\n cols="','"\n ?disabled="','"\n form="','"\n list="','"\n maxlength="','"\n minlength="','"\n name="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n rows="','"\n ?spellcheck="','"\n :value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n @input="','"\n @change="','"\n ',"\n ></textarea>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.resize!==Fa?"resize-".concat(e.resize):""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Jr("defaultSlottedNodes"),(function(e){return e.autofocus}),(function(e){return e.cols}),(function(e){return e.disabled}),(function(e){return e.form}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.name}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.rows}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),(function(e,t){return e.handleTextInput()}),(function(e){return e.handleChange()}),br("control"))},styles:function(e,t){return Mt(Ba||(Ba=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tfont: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: calc("," * 2px + 1px);\n\t\twidth: 100%;\n\t\tmin-width: ",";\n\t\tresize: none;\n\t}\n\t.control:hover:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:active:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.control::-webkit-scrollbar {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n\t.control::-webkit-scrollbar-corner {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:hover {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:active {\n\t\tbackground: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([resize='both']) .control {\n\t\tresize: both;\n\t}\n\t:host([resize='horizontal']) .control {\n\t\tresize: horizontal;\n\t}\n\t:host([resize='vertical']) .control {\n\t\tresize: vertical;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Lt("inline-block"),mn,rr,nr,hn,dn,er,_n,xn,pn,wn,nr,er,nr,gn,ni,Cn,jn,nr,Sn,En,An,gn,yn,_n,xn,ri,vn,er)},shadowOptions:{delegatesFocus:!0}});function Ka(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var qa,$a=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}]),n}(Na),Ya=$a.compose({baseName:"text-field",template:function(e,t){return It(Ha||(Ha=(0,at.Z)(['\n <template\n class="\n ','\n "\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot\n ','\n ></slot>\n </label>\n <div class="root" part="root">\n ','\n <input\n class="control"\n part="control"\n id="control"\n @input="','"\n @change="','"\n ?autofocus="','"\n ?disabled="','"\n list="','"\n maxlength="','"\n minlength="','"\n pattern="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n size="','"\n ?spellcheck="','"\n :value="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n />\n ","\n </div>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Jr({property:"defaultSlottedNodes",filter:Ka}),kr(0,t),(function(e){return e.handleTextInput()}),(function(e){return e.handleChange()}),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.pattern}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.size}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),xr(0,t))},styles:function(e,t){return Mt(qa||(qa=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.root {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\theight: calc("," * 1px);\n\t\tmin-width: ",";\n\t}\n\t.control {\n\t\t-webkit-appearance: none;\n\t\tfont: inherit;\n\t\tbackground: transparent;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\theight: calc(100% - ("," * 1px));\n\t\twidth: 100%;\n\t\tmargin-top: auto;\n\t\tmargin-bottom: auto;\n\t\tborder: none;\n\t\tpadding: 0 calc("," * 2px + 1px);\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.start,\n\t.end {\n\t\tdisplay: flex;\n\t\tmargin: auto;\n\t\tfill: currentcolor;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n\t.end {\n\t\tmargin-inline-end: calc("," * 2px);\n\t}\n\t:host(:hover:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:active:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .root {\n\t\tborder-color: ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Lt("inline-block"),mn,rr,nr,hn,dn,er,bn,wn,pn,pn,_n,xn,ni,yn,_n,xn,pn,pn,pn,pn,nr,er,nr,gn,gn,ri,vn,er)},shadowOptions:{delegatesFocus:!0}}),Wa=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Ja=new Map,Ga=new Map,Qa=null,Xa=ve.createInterface((function(e){return e.cachedCallback((function(e){return null===Qa&&(Qa=new ts(null,e)),Qa}))})),es=Object.freeze({tagFor:function(e){return Ga.get(e)},responsibleFor:function(e){return e.$$designSystem$$||ve.findResponsibleContainer(e).get(Xa)},getOrCreate:function(e){if(!e)return null===Qa&&(Qa=ve.getOrCreateDOMContainer().get(Xa)),Qa;var t=e.$$designSystem$$;if(t)return t;var n=ve.getOrCreateDOMContainer(e);if(n.has(Xa,!1))return n.get(Xa);var r=new ts(e,n);return n.register(Pe.instance(Xa,r)),r}}),ts=function(){function e(t,n){(0,r.Z)(this,e),this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=function(){return Wa.definitionCallbackOnly},null!==t&&(t.$$designSystem$$=this)}return(0,i.Z)(e,[{key:"withPrefix",value:function(e){return this.prefix=e,this}},{key:"withShadowRootMode",value:function(e){return this.shadowRootMode=e,this}},{key:"withElementDisambiguation",value:function(e){return this.disambiguate=e,this}},{key:"withDesignTokenRoot",value:function(e){return this.designTokenRoot=e,this}},{key:"register",value:function(){var e=this.container,t=[],n=this.disambiguate,s=this.shadowRootMode,l={elementPrefix:this.prefix,tryDefineElement:function(l,u,c){for(var d=function(e,t,n){return"string"==typeof e?{name:e,type:t,callback:n}:e}(l,u,c),f=d.name,h=d.callback,p=d.baseClass,v=d.type,g=f,m=Ja.get(g),y=!0;m;){var b=n(g,v,m);switch(b){case Wa.ignoreDuplicate:return;case Wa.definitionCallbackOnly:y=!1,m=void 0;break;default:g=b,m=Ja.get(g)}}y&&((Ga.has(v)||v===$e)&&(v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(v)),Ja.set(g,v),Ga.set(v,g),p&&Ga.set(p,g)),t.push(new ns(e,g,v,s,h,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&rn.registerRoot(this.designTokenRoot));for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];e.registerWithContext.apply(e,[l].concat(c));for(var f=0,h=t;f<h.length;f++){var p=h[f];p.callback(p),p.willDefine&&null!==p.definition&&p.definition.define()}return this}}]),e}(),ns=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.container=t,this.name=n,this.type=i,this.shadowRootMode=o,this.callback=a,this.willDefine=s,this.definition=null}return(0,i.Z)(e,[{key:"definePresentation",value:function(e){Ke.define(this.name,e,this.container)}},{key:"defineElement",value:function(e){this.definition=new W(this.type,Object.assign(Object.assign({},e),{name:this.name}))}},{key:"tagFor",value:function(e){return es.tagFor(e)}}]),e}(),rs=function(e,t){var n=[],s={register:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.forEach((function(t){return t.register.apply(t,[e].concat(r))})),n=[]}};return{wrap:function(s){var l,u,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s instanceof We&&(t?t.register(s):n.push(s),s=s.type);var d=Xe.get(s);if(d){var f=d.get(null!==(l=c.name)&&void 0!==l?l:Qe);if(f)return f}var h=function(t){(0,o.Z)(l,t);var n=(0,a.Z)(l);function l(){var e;return(0,r.Z)(this,l),(e=n.apply(this,arguments))._element=null,e}return(0,i.Z)(l,[{key:"_updateElement",value:function(e){var t=this._element;if(null!==t){var n=this.props,r=e||Ge,i=tt(c);for(var o in this._elementProps){var a=n[o],s=i[o];if(void 0===s)t[o]=a;else{var l=r[o];if(a===l)continue;void 0!==l&&t.removeEventListener(s,l),void 0!==a&&t.addEventListener(s,a)}}}}},{key:"componentDidMount",value:function(){this._updateElement()}},{key:"componentDidUpdate",value:function(e){this._updateElement(e)}},{key:"render",value:function(){var t=this,n=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===n||(this._ref=function(e){null===t._element&&(t._element=e),null!==n&&function(e,t){"function"==typeof e?e(t):e.current=t}(n,e),t._userRef=n});var r={ref:this._ref},i=this._elementProps={},o=rt(s,c),a=this.props;for(var l in a){var u=a[l];o.has(l)?i[l]=u:r["className"===l?"class":l]=u}return e.createElement(et(s,c),r)}}]),l}(e.Component),p=e.forwardRef((function(t,n){return e.createElement(h,Object.assign(Object.assign({},t),{__forwardedRef:n}),null==t?void 0:t.children)}));return Xe.has(s)||Xe.set(s,new Map),Xe.get(s).set(null!==(u=c.name)&&void 0!==u?u:Qe,p),p},registry:s}}(it,es.getOrCreate(void 0).withPrefix("vscode")),is=rs.wrap,os=is(fr(),{name:"vscode-badge"}),as=is(ci(),{name:"vscode-button"}),ss=is(gi(),{name:"vscode-checkbox",events:{onChange:"change"}}),ls=(is(no(),{name:"vscode-data-grid"}),is(ao(),{name:"vscode-data-grid-cell"}),is(io(),{name:"vscode-data-grid-row"}),is(fo(),{name:"vscode-divider"})),us=is(Po(),{name:"vscode-dropdown",events:{onChange:"change"}}),cs=is(Ko(),{name:"vscode-link"}),ds=is($o(),{name:"vscode-option"}),fs=(is(sa(),{name:"vscode-panels",events:{onChange:"change"}}),is(ua(),{name:"vscode-panel-tab"}),is(da(),{name:"vscode-panel-view"}),is(ga(),{name:"vscode-progress-ring"}),is(ka(),{name:"vscode-radio",events:{onChange:"change"}})),hs=is(Aa(),{name:"vscode-radio-group",events:{onChange:"change"}}),ps=(is(Da(),{name:"vscode-tag"}),is(Ua(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}})),vs=is(Ya(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{74:"ef2afffb",697:"d1225ee9"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+".67093f40.chunk.css"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="GraphiteInteractive:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e=function(e){return new Promise((function(t,r){var i=n.miniCssF(e),o=n.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}}(i,o))return t();!function(e,t,n,r){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=function(o){if(i.onerror=i.onload=null,"load"===o.type)n();else{var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode.removeChild(i),r(l)}},i.href=t,document.head.appendChild(i)}(e,o,t,r)}))},t={179:0};n.f.miniCss=function(n,r){t[n]?r.push(t[n]):0!==t[n]&&{74:1}[n]&&r.push(t[n]=e(n).then((function(){t[n]=0}),(function(e){throw delete t[n],e})))}}(),function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],l=r[2],u=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);l&&l(n)}for(t&&t(r);u<a.length;u++)o=a[u],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkGraphiteInteractive=self.webpackChunkGraphiteInteractive||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0;var r={};return function(){"use strict";n.r(r);var e=n(184),t=n(2791),i=n(1250),o=n(1072),a=n(4098),s=n(32),l=n(5281),u=n(2212),c=new l.Tracker((function(e){u.H.postMessage({type:"track",data:e})}),{});function d(t){var n=t.title,r=t.description,i=t.buttons;return(0,e.jsxs)("div",Object.assign({className:"banner-notice"},{children:[(0,e.jsx)("div",Object.assign({className:"banner-notice-left"},{children:(0,e.jsxs)("div",Object.assign({className:"banner-notice-content"},{children:[(0,e.jsx)("span",Object.assign({className:"banner-notice-title"},{children:n})),(0,e.jsx)("span",Object.assign({className:"banner-notice-byline"},{children:r}))]}))})),i?(0,e.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:i})):null]}))}window.globalGtiClientTracker=c;var f=n(885);function h(e){var n=e.children,r=e.hideUntil,i=(0,t.useState)(!1),o=(0,f.Z)(i,2),a=o[0],s=o[1];return(0,t.useEffect)((function(){var e=r.getTime()-Date.now();if(e>0){s(!1);var t=setTimeout((function(){s(!0)}),e);return function(){return clearTimeout(t)}}s(!0)}),[r,s]),a?n:null}var p=n(8162),v=n(2392),g=n(1191);function m(t){var n=t.operation,r=t.className,i=n.getDescriptionForDisplay();return(null==i?void 0:i.description)?(0,e.jsx)("span",Object.assign({className:r},{children:i.description})):(0,e.jsx)("code",Object.assign({className:r},{children:"gt "+n.getArgs().map((function(e){if("object"==typeof e)switch(e.type){case"repo-relative-file":return e.path;case"succeedable-revset":return e.revset}return/\s/.test(e)?'"'.concat(t.long?e:(0,l.truncate)(e,30),'"'):e})).join(" ")}))}var y=(0,s.Pi)((function(){var t,n,r=v.il.get(),i=v.zV.get(),a=(0,v.xn)(),s=v.ip.get();if("success"!==(null==s?void 0:s.type))return null;var l=r.currentOperation;if(null==l)return null;var u,c,d=l.operation.getDescriptionForDisplay(),f=(0,e.jsx)(m,{operation:l.operation,className:"progress-container-command"}),y=null,b=!1;if(null==l.exitCode){u=(null==d?void 0:d.description)?f:(0,e.jsxs)(e.Fragment,{children:["Running ",f]}),c=(0,e.jsx)(p.J,{icon:"loading"}),b=null==(null==d?void 0:d.tooltip);var w=new Date(((null===(t=l.startTime)||void 0===t?void 0:t.getTime())||0)+1e4);y=(0,e.jsx)(h,Object.assign({hideUntil:w},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary","data-testid":"abort-button",disabled:l.aborting,onClick:function(){a(l.operation.id)}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:l.aborting?"loading":"stop-circle"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]}))}))}else 0===l.exitCode?(u=(0,e.jsx)("span",{children:f}),c=(0,e.jsx)(p.J,{icon:"pass","aria-label":"Command exited successfully"})):l.aborting?(u=(0,e.jsxs)(e.Fragment,{children:["Aborted ",f]}),c=(0,e.jsx)(p.J,{icon:"stop-circle","aria-label":"Command aborted"})):(u=(0,e.jsx)("span",{children:f}),c=(0,e.jsx)(p.J,{icon:"error","aria-label":"Command exited unsuccessfully"}),b=!0);return(0,e.jsx)("div",Object.assign({className:"progress-container","data-testid":"progress-container"},{children:(0,e.jsxs)(g.u,Object.assign({component:function(){var t;return(0,e.jsx)("div",Object.assign({className:"progress-command-tooltip"},{children:(null==d?void 0:d.tooltip)||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"progress-command-tooltip-command"},{children:[(0,e.jsx)("strong",{children:"Command: "}),(0,e.jsx)(m,{operation:l.operation,long:!0})]})),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Command output:"}),(0,e.jsx)("br",{}),(0,e.jsx)("pre",{children:(null===(t=l.commandOutput)||void 0===t?void 0:t.join(""))||"No output"})]})}))}},{children:[i.length>0?(0,e.jsxs)("div",Object.assign({className:"queued-operations-container","data-testid":"queued-commands"},{children:[(0,e.jsx)("strong",{children:"Next to run"}),i.map((function(t){return(0,e.jsx)("div",Object.assign({id:t.id,className:"queued-operation"},{children:(0,e.jsx)(m,{operation:t})}),t.id)}))]})):null,(0,e.jsxs)("div",Object.assign({className:"progress-container-row"},{children:[c,u]})),b?(0,e.jsx)("div",Object.assign({className:"progress-container-row"},{children:(0,e.jsx)("div",{children:null===(n=l.commandOutput)||void 0===n?void 0:n.slice(-1).map((function(t,n){return(0,e.jsx)("code",{children:t},n)}))})})):null,y]}))}))})),b=n(2982),w=n(4942),_=n(7762),x=n(7757),k=n.n(x),O=n(7338),C=n(1485),j=n(5671),S=n(3144),E=function(){function t(n){var r=this;(0,j.Z)(this,t),this.system=n,this.RepoInfo=function(){return(0,e.jsxs)("span",{children:["github.com"!==r.system.hostname?r.system.hostname:""," ",r.system.owner,"/",r.system.repo]})}}return(0,S.Z)(t,[{key:"DiffBadgeContent",value:function(t){var n=t.diff,r=t.children;return(0,e.jsx)("div",Object.assign({className:"github-diff-status"+((null==n?void 0:n.state)?" github-diff-status-".concat(n.state):"")},{children:(0,e.jsxs)(g.u,Object.assign({title:"Click to open Pull Request in Graphite",delayMs:500},{children:[n&&(0,e.jsx)(p.J,{icon:A(n.state)}),(null==n?void 0:n.state)&&(0,e.jsx)(T,{state:n.state}),r]}))}))}},{key:"formatDiffNumber",value:function(e){return"#".concat(e)}},{key:"isDiffClosed",value:function(e){return"CLOSED"===e.state}}]),t}();function A(e){switch(e){case"ERROR":return"error";case"OPEN":case"DRAFT":default:return"git-pull-request";case"MERGED":return"git-merge";case"CLOSED":return"git-pull-request-closed"}}function T(t){var n=t.state;switch(n){case"OPEN":return(0,e.jsx)(e.Fragment,{children:"Open"});case"MERGED":return(0,e.jsx)(e.Fragment,{children:"Merged"});case"CLOSED":return(0,e.jsx)(e.Fragment,{children:"Closed"});case"ERROR":return(0,e.jsx)(e.Fragment,{children:"Error"});case"DRAFT":return(0,e.jsx)(e.Fragment,{children:"Draft"});default:return(0,e.jsx)(e.Fragment,{children:n})}}var D=(0,a.Fl)((function(){var e=v.ip.get();return"success"!==(null==e?void 0:e.type)?null:"github"===e.codeReviewSystem.type?new E(e.codeReviewSystem):null})),R=(0,O.N)({genKey:function(e){return e||"__UNDEFINED__"},genValue:function(e){return(0,a.Fl)((function(){var t,n=P.get();return null==n?{value:void 0}:n.error?{error:n.error}:null==e?{value:void 0}:{value:null===(t=n.value)||void 0===t?void 0:t.get(e)}}))}}),I=(0,C.u)({default:{value:null},effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedDiffSummaries",(function(e){t(e.summaries)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchDiffSummaries"})}))}]}),N=(0,a.Fl)((function(){var e=I.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.branchName,e]})))}})),P=(0,a.Fl)((function(){var e=I.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.number,e]})))}})),M=((0,C.u)({default:document.hasFocus()?"focused":document.visibilityState,setter:(0,l.debounce)((function(e){u.H.postMessage({type:"pageVisibility",state:e})}),50),effects:[function(e){var t=e.setSelf,n=function(){t(document.hasFocus()?"focused":document.visibilityState)};return window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),window.removeEventListener("blur",n)}}]}),n(6526)),L=(0,M.X)({config:"gti.submitAsDraft",default:!1}),Z=(0,s.Pi)((function(t){var n=t.commitsToBeSubmit,r=L.get();return null==D.get()||n.length>0&&n.some((function(e){return null!=e.pr}))?null:(0,e.jsx)(o.QJ,Object.assign({className:"submit-as-draft-checkbox",checked:r,onChange:function(e){return L.set(e.target.checked)}},{children:(0,e.jsx)(g.u,Object.assign({title:(n.length,"Whether to submit this diff as a draft")},{children:"Submit as Draft"}))}))})),F=function(){var t="M".concat(21," ").concat(0)+"C ".concat(21," ").concat(22.5,", ").concat(0," ").concat(7.5,", ").concat(0," ").concat(30);return(0,e.jsx)("svg",Object.assign({className:"branch-indicator",width:22,height:30,xmlns:"http://www.w3.org/2000/svg"},{children:(0,e.jsx)("path",{d:t,strokeWidth:"2px",fill:"transparent"})}))},z=n(136),B=n(3668);function H(e){return function(t){V.set({x:t.clientX,y:t.clientY,items:e()}),t.preventDefault(),t.stopPropagation()}}var V=a.LO.box(null,{deep:!1}),U=(0,s.Pi)((function(){var n=V.get(),r=(0,t.useState)(null),i=(0,f.Z)(r,2),o=i[0],a=i[1],s=(0,t.useRef)(null);if((0,t.useEffect)((function(){if(null!=n){var e=function(e){"keyup"!==e.type?"click"===e.type&&(0,l.findParentWithClassName)(e.target,"context-menu-container")||V.set(null):"Escape"===e.key&&V.set(null)};return window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[n]),null==n)return null;var u,c=n.y>window.innerHeight/2?"bottom":"top",d=n.x>window.innerWidth/2?"right":"left";return u="top"===c?"left"===d?{top:n.y+10,left:n.x+-5}:{top:n.y+10,right:window.innerWidth-(n.x+-5)}:"left"===d?{bottom:window.innerHeight-(n.y-10),left:n.x+-5}:{bottom:window.innerHeight-(n.y-10),right:window.innerWidth-(n.x+-5)},(0,e.jsxs)("div",Object.assign({ref:s,className:"context-menu-container"+(null!=o?" context-menu-fadeout":""),"data-testid":"context-menu-container",style:u},{children:["top"===c?(0,e.jsx)("div",{className:"context-menu-arrow-top context-menu-arrow-".concat(d)}):null,(0,e.jsx)("div",Object.assign({className:"context-menu"},{children:n.items.map((function(t,n){return"divider"===t.type?(0,e.jsx)("div",{className:"context-menu-divider"},n):(0,e.jsx)("div",Object.assign({onClick:null!=o?void 0:function(){var e;null===(e=t.onClick)||void 0===e||e.call(t),a(n),setTimeout((function(){V.set(null),a(null)}),300)},className:"context-menu-item"+(null!=o&&o===n?" context-menu-item-selected":"")},{children:t.label}),n)}))})),"bottom"===c?(0,e.jsx)("div",{className:"context-menu-arrow-bottom context-menu-arrow-".concat(d)}):null]}))})),K=n(3158);function q(t){var n=t.href,r=t.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["href","children"]),a=function(e){"keyup"===e.type&&"Enter"!==e.key||(n&&K.J.openExternalLink(n),e.preventDefault(),e.stopPropagation())};return(0,e.jsx)(o.Np,Object.assign({href:n,tabIndex:0,onKeyUp:a,onClick:a},i,{children:r}))}var $=(0,s.Pi)((function(n){var r=n.diffId,i=D.get();return null==i?null:(0,e.jsx)(ee,Object.assign({provider:i,diffId:r},{children:(0,e.jsx)(t.Suspense,Object.assign({fallback:(0,e.jsx)(W,{diffId:r,provider:i})},{children:(0,e.jsx)(J,{diffId:r,provider:i})}))}))})),Y=(0,s.Pi)((function(t){var n=t.diff,r=t.children,i=t.url,o=t.provider,a=H((function(){return[{label:(0,e.jsxs)(e.Fragment,{children:['Copy Diff Number "',null==n?void 0:n.number,'"']}),onClick:function(){var e;return K.J.clipboardCopy(null!==(e=null==n?void 0:n.number)&&void 0!==e?e:"")}}]}));return(0,e.jsx)(q,Object.assign({href:i,className:"diff-badge github-diff-badge",onContextMenu:a},{children:(0,e.jsx)(o.DiffBadgeContent,{diff:n,children:r})}))}));function W(t){var n=t.diffId,r=t.provider;return(0,e.jsxs)("span",Object.assign({className:"diff-spinner","data-testid":"diff-spinner"},{children:[(0,e.jsx)(Y,Object.assign({provider:r},{children:(0,e.jsx)(p.J,{icon:"loading"})})),r.formatDiffNumber(n)]}))}var J=(0,s.Pi)((function(t){var n=t.diffId,r=t.provider,i=v.ip.get(),o=R(n).get();if(o.error||null!=i&&"success"!==(null==i?void 0:i.type))return(0,e.jsx)(te,{number:r.formatDiffNumber(n),provider:r});if(null==(null==o?void 0:o.value)||null==i)return(0,e.jsx)(W,{diffId:n,provider:r});if("none"===i.codeReviewSystem.type)return null;var a=o.value;return(0,e.jsxs)("div",Object.assign({className:"diff-info github-diff-info","data-testid":"github-diff-info"},{children:[(0,e.jsx)(X,{diff:a}),(0,e.jsx)(Y,{provider:r,diff:a,url:"".concat(i.profile.appUrl,"/github/pr/").concat(i.codeReviewSystem.owner,"/").concat(i.codeReviewSystem.repo,"/").concat(a.number)}),(0,e.jsx)(Q,{diff:a}),(0,e.jsx)(G,{children:r.formatDiffNumber(n)})]}))}));function G(n){var r=n.children,i=(0,t.useState)(!1),o=(0,f.Z)(i,2),a=o[0],s=o[1];return r?(0,e.jsx)(g.u,Object.assign({trigger:"manual",shouldShow:a,title:"Copied ".concat(r," to the clipboard")},{children:(0,e.jsx)("span",Object.assign({className:"diff-number",onClick:function(){K.J.clipboardCopy(r),s(!0),setTimeout((function(){return s(!1)}),2e3)}},{children:r}))})):null}function Q(e){return e.diff,null}function X(e){return e.diff,null}var ee=function(t){(0,z.Z)(r,t);var n=(0,B.Z)(r);function r(){var e;return(0,j.Z)(this,r),(e=n.apply(this,arguments)).state={error:null},e}return(0,S.Z)(r,[{key:"render",value:function(){return null!=this.state.error?(0,e.jsx)(te,{provider:this.props.provider,number:this.props.provider.formatDiffNumber(this.props.diffId)}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),r}(t.Component);function te(t){var n=t.number,r=t.provider;return(0,e.jsxs)("span",Object.assign({className:"diff-error diff-info","data-testid":"github-error"},{children:[(0,e.jsx)(Y,Object.assign({provider:r},{children:(0,e.jsx)(p.J,{icon:"error"})}))," ",n]}))}var ne=n(3520),re=n(4790),ie=a.LO.box({right:{size:500,collapsed:(0,re.wn)()<=500},left:{size:200,collapsed:!0},top:{size:200,collapsed:!0},bottom:{size:200,collapsed:!0}},{deep:!1}),oe=n(374),ae=a.LO.set();function se(n){var r=n.toHighlight,i=n.children,o=n.isSpan,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["toHighlight","children","isSpan"]),l=(0,t.useRef)(null),u=(0,t.useState)(!1),c=(0,f.Z)(u,2),d=c[0],h=c[1];return(0,t.useLayoutEffect)((function(){var e=function(){(0,a.z)((function(){ae.clear(),r.map((function(e){return ae.add(e.branch)}))})),h(!0)},t=function(){ae.clear(),h(!1)},n=l.current;return null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t),function(){null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)}}),[r]),(0,t.useEffect)((function(){return function(){d&&ae.clear()}}),[d]),o?(0,e.jsx)("span",Object.assign({},s,{ref:l},{children:i})):(0,e.jsx)("div",Object.assign({},s,{ref:l},{children:i}))}function le(t){var n=t.children,r=t.kind;return(0,e.jsx)("div",Object.assign({className:"inline-badge badge-".concat(null!=r?r:"secondary")},{children:n}))}function ue(){return window.globalGtiClientTracker}var ce,de=function(){function e(t){(0,j.Z)(this,e),this.trackEventName=t,this.id=(0,l.randomId)(),this.runner=l.CommandRunner.Graphite}return(0,S.Z)(e,[{key:"getStdin",value:function(){}},{key:"getDescriptionForDisplay",value:function(){}}]),e}();!function(e){e.REBASE_ROOT="rebase-root",e.REBASE_DESCENDANT="rebase-descendant",e.REBASE_OLD="rebase-old",e.REBASE_OPTIMISTIC_ROOT="rebase-optimistic-root",e.REBASE_OPTIMISTIC_DESCENDANT="rebase-optimistic-descendant",e.GOTO_DESTINATION="goto-destination",e.GOTO_PREVIOUS_LOCATION="goto-previous-location",e.HIDDEN_ROOT="hidden-root",e.HIDDEN_DESCENDANT="hidden-descendant",e.STACK_EDIT_ROOT="stack-edit-root",e.STACK_EDIT_DESCENDANT="stack-edit-descendant",e.NON_ACTIONABLE_COMMIT="non-actionable-commit"}(ce||(ce={}));var fe=(0,a.Fl)((function(){var e=v.il.get(),t=v.zV.get();return function(e,t,n){var r,i=t.currentOperation,o=[],a=(0,_.Z)(t.operationHistory);try{for(a.s();!(r=a.n()).done;){var s=r.value;null==s||s.hasCompletedUncommittedChangesOptimisticState||null!=s.operation.makeOptimisticUncommittedChangesApplier&&o.push(s.operation.makeOptimisticUncommittedChangesApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==i||i.hasCompletedUncommittedChangesOptimisticState||null!=i.exitCode&&0!==i.exitCode||null!=i.operation.makeOptimisticUncommittedChangesApplier&&o.push(i.operation.makeOptimisticUncommittedChangesApplier.bind(i.operation));var l,u=(0,_.Z)(n);try{for(u.s();!(l=u.n()).done;){var c=l.value;null!=c&&null!=c.makeOptimisticUncommittedChangesApplier&&o.push(c.makeOptimisticUncommittedChangesApplier.bind(c))}}catch(e){u.e(e)}finally{u.f()}if(o.length){var d,f=e,h=(0,_.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({uncommittedChanges:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(v.OR.get(),e,t)})),he=(0,a.Fl)((function(){var e=v.il.get(),t=v.zV.get(),n=v.SC.get();return null==(null==n?void 0:n.files)?n:function(e,t,n){var r=t.currentOperation;if("loaded"!==e.state)return e;var i,o=[],a=(0,_.Z)(t.operationHistory);try{for(a.s();!(i=a.n()).done;){var s=i.value;null==s||s.hasCompletedMergeConflictsOptimisticState||null!=s.operation.makeOptimisticMergeConflictsApplier&&o.push(s.operation.makeOptimisticMergeConflictsApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==r||r.hasCompletedMergeConflictsOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticMergeConflictsApplier&&o.push(r.operation.makeOptimisticMergeConflictsApplier.bind(r.operation));var l,u=(0,_.Z)(n);try{for(u.s();!(l=u.n()).done;){var c=l.value;null!=c&&null!=c.makeOptimisticMergeConflictsApplier&&o.push(c.makeOptimisticMergeConflictsApplier.bind(c))}}catch(e){u.e(e)}finally{u.f()}if(o.length){var d,f=e,h=(0,_.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({conflicts:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(n,e,t)})),pe=(0,a.Fl)((function(){var e,t=v.lp.get(),n=[],r=v.wf.get(),i=v.il.get(),o=v.zV.get(),a=i.currentOperation,s=(0,_.Z)(i.operationHistory);try{for(s.s();!(e=s.n()).done;){var u=e.value;null==u||u.hasCompletedOptimisticState||null!=u.operation.makeOptimisticApplier&&n.push(u.operation.makeOptimisticApplier.bind(u.operation))}}catch(e){s.e(e)}finally{s.f()}null==a||a.hasCompletedOptimisticState||null!=a.exitCode&&0!==a.exitCode||null!=a.operation.makeOptimisticApplier&&n.push(a.operation.makeOptimisticApplier.bind(a.operation));var c,d=(0,_.Z)(o);try{for(d.s();!(c=d.n()).done;){var f=c.value;null!=f&&null!=f.makeOptimisticApplier&&n.push(f.makeOptimisticApplier.bind(f))}}catch(e){d.e(e)}finally{d.f()}null!=(null==r?void 0:r.makePreviewApplier)&&n.push(r.makePreviewApplier.bind(r));var h=v.ql.get(),p=v.uB.get();if(n.length){var g,m=t,y=(0,_.Z)(n);try{var b=function(){var e=g.value,t={trees:m,headCommit:h,treeMap:p},n=h,r=new Map,i=e(t);if(null==i)return"continue";var o=function e(t,o){var a=i(t,o);if(null!=(null==a?void 0:a.info)){a.info.isHead&&(n=a.info);var s=a.info,l=a.children,u=a.previewType,c=a.childPreviewType,d={info:s,previewType:u,children:l.map((function(t){return e(t,c)})).filter((function(e){return null!=e}))};return r.set(d.info.branch,a),d}};m=m.map((function(e){return o(e)})).filter(l.notEmpty),h=n,p=r};for(y.s();!(g=y.n()).done;)b()}catch(e){y.e(e)}finally{y.f()}return{trees:m,treeMap:p,headCommit:h}}return{trees:t,treeMap:p,headCommit:h}}));function ve(e){var t,n,r=v.il.get(),i=v.zV.get();return(null===(t=r.currentOperation)||void 0===t?void 0:t.operation)instanceof e&&null==(null===(n=r.currentOperation)||void 0===n?void 0:n.exitCode)?"running":i.some((function(t){return t instanceof e}))?"queued":void 0}var ge=function(){var e,t,n=v.il.get(),r=v.zV.get();return r.length>0?r.at(-1):null==(null===(e=n.currentOperation)||void 0===e?void 0:e.exitCode)?null===(t=n.currentOperation)||void 0===t?void 0:t.operation:void 0},me=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"DeleteBranchOperation")).branch=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["delete",this.branch,"--force"]}},{key:"makePreviewApplier",value:function(e){var t=this;return function(e,n){return e.info.branch===t.branch?{info:e.info,children:e.children,previewType:ce.HIDDEN_ROOT,childPreviewType:ce.HIDDEN_DESCENDANT}:{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n,r){return e.info.branch===t.branch?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(de);me.opName="DeleteBranch";var ye=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"DownstackSubmitOperation")).branch=e,i.options=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){var e,t,n=["submit","--branch",this.branch];return(null===(e=this.options)||void 0===e?void 0:e.draft)&&n.push("--draft"),(null===(t=this.options)||void 0===t?void 0:t.publish)&&n.push("--publish"),n}}]),n}(de);ye.opName="downstack submit";var be=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"GotoOperation")).destination=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["checkout",this.destination]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this,r=null===(t=e.headCommit)||void 0===t?void 0:t.branch;if(r!==this.destination)return function(e,t){return e.info.branch===n.destination?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children,previewType:ce.GOTO_DESTINATION}:e.info.branch===r?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:e.children,previewType:ce.GOTO_PREVIOUS_LOCATION}:{info:e.info,children:e.children}}}}]),n}(de);be.opName="Goto";var we=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"HideOperation")).source=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["untrack","--force",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this;return function(e,n){return e.info.branch===t.source?{info:e.info,children:e.children,previewType:ce.HIDDEN_ROOT,childPreviewType:ce.HIDDEN_DESCENDANT}:{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.source))return function(e,n,r){return e.info.branch===t.source?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(de);we.opName="Hide";var _e=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"RebaseOperation")).source=e,i.destination=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["move","--onto",this.destination,"--source",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:ce.REBASE_ROOT,childPreviewType:ce.REBASE_DESCENDANT}:{info:e.info,children:e.children,previewType:ce.REBASE_OLD,childPreviewType:ce.REBASE_OLD}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,b.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n,o){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:ce.REBASE_OPTIMISTIC_ROOT,childPreviewType:ce.REBASE_OPTIMISTIC_DESCENDANT}:{info:null}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,b.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:o}}}}}]),n}(de);function xe(e,t){return Object.fromEntries(Object.entries(ke).map((function(n){var r=(0,f.Z)(n,2),i=r[0];return[i,"field"===r[1].type?!Oe(e[i],t[i]):e[i]!==t[i]]})))}_e.opName="Rebase";var ke={title:{label:"Title",type:"title",icon:"milestone"},description:{label:"Description",type:"textarea",icon:"note"}};function Oe(e,t){return e.length===t.length&&e.every((function(e,n){return t[n]===e}))}var Ce=(0,C.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedCommitMessageTemplate",(function(e){t(e.templates)}));return function(){return n.dispose()}},function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"fetchCommitMessageTemplate"})}))}]}),je=(0,O.N)({genKey:function(e){return e},genValue:function(e){return(0,a.Fl)((function(){var t;if("head"===e){var n=Ce.get(),r=n?Object.entries(n):[];return 1===r.length?{fields:{title:"",description:r[0][1]}}:{fields:{title:"",description:""}}}var i=null===(t=v.uB.get().get(e))||void 0===t?void 0:t.info;return null==i?{type:"optimistic"}:{fields:{title:i.title,description:i.description}}}))}}),Se=(0,O.N)({genKey:function(e){return e},genValue:function(e){var t=je(e).get();return a.LO.box(t)}}),Ee=(0,O.N)({genKey:function(e){return e},genValue:function(e){return(0,a.Fl)((function(){var t,n=Se(e).get();if("optimistic"===n.type)return!1;if("head"===e)return Object.values(n).some(Boolean);var r=null===(t=v.uB.get().get(e))||void 0===t?void 0:t.info;return Object.values(xe(n.fields,{title:(null==r?void 0:r.title)||"",description:(null==r?void 0:r.description)||""})).some(Boolean)}))}}),Ae=a.LO.box({title:!1,description:!1},{deep:!1}),Te=a.LO.box("amend"),De=(0,O.N)({genKey:function(e){return e},genValue:function(e){return(0,C.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFiles",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFiles",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFiles",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Re=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"PopOperation")).originalHeadCommit=e,i.files=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["pop"]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this;if((null===(t=e.headCommit)||void 0===t?void 0:t.branch)===this.originalHeadCommit.branch)return function(e,t){return e.info.branch===n.originalHeadCommit.branch?{info:null}:n.originalHeadCommit.parents[0]===e.info.branch?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children}:{info:e.info,children:e.children,previewType:t}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this.files,n=new Set(e.uncommittedChanges.map((function(e){return e.path})));if(!t.every((function(e){return n.has(e.path)})))return function(e){var r=t.filter((function(e){return!n.has(e.path)}));return[].concat((0,b.Z)(e),(0,b.Z)(r))}}}]),n}(de);Re.opName="Pop";var Ie,Ne,Pe=(0,s.Pi)((function(){var t,n=v.ql.get(),r=v.uB.get(),i=D.get(),a=R(null===(t=null==n?void 0:n.pr)||void 0===t?void 0:t.number).get(),s=null!=i&&null!=a.value&&(null==i?void 0:i.isDiffClosed(a.value)),l=(0,v.Qz)();if(!n)return null;var u=r.get(n.branch);if(!u||u.children.length)return null;if(s)return null;var c=De(n.branch).get();return(0,e.jsx)(g.u,Object.assign({inline:!0,delayMs:g.cf,title:"Delete this branch, but keep its changes, as if you didn't create it."},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){var e;return l(new Re(n,(null===(e=c.data)||void 0===e?void 0:e.files)||[]))}},{children:[(0,e.jsx)(e.Fragment,{children:"Pop"}),(0,e.jsx)(p.J,{icon:"reply"})]}),"pop")}))})),Me=6e4,Le=36e5,Ze=24*Le,Fe=7*Ze,ze=365*Ze,Be=ze/12,He=[[42e3,"now"],[9e4,"1m"],[36e5,"m",Me],[54e5,"1h"],[Ze,"h",Le],[2*Ze,"1d"],[7*Ze,"d",Ze],[1.5*Fe,"1w"],[Be,"w",Fe],[1.5*Be,"1mo"],[ze,"mo",Be],[1.5*ze,"1y"],[Number.MAX_VALUE,"y",ze]],Ve=[[42e3,"less than a minute"],[9e4,"one minute"],[36e5,"minutes",Me],[54e5,"one hour"],[Ze,"hours",Le],[2*Ze,"one day"],[7*Ze,"days",Ze],[1.5*Fe,"one week"],[Be,"weeks",Fe],[1.5*Be,"one month"],[ze,"months",Be],[1.5*ze,"one year"],[Number.MAX_VALUE,"years",ze]],Ue=[[42e3,"just now"],[9e4,"a minute ago"],[36e5,"minutes ago",Me],[54e5,"an hour ago"],[Ze,"hours ago",Le],[2*Ze,"yesterday"],[7*Ze,"days ago",Ze],[1.5*Fe,"a week ago"],[Be,"weeks ago",Fe],[1.5*Be,"a month ago"],[ze,"months ago",Be],[1.5*ze,"a year ago"],[Number.MAX_VALUE,"years ago",ze]],Ke=[[42e3,"just now"],[9e4,"1 minute ago"],[36e5,"minutes ago",Me],[54e5,"1 hour ago"],[Ze,"hours ago",Le],[2*Ze,"yesterday"],[7*Ze,"days ago",Ze],[1.5*Fe,"1 week ago"],[Be,"weeks ago",Fe],[1.5*Be,"1 month ago"],[ze,"months ago",Be],[1.5*ze,"1 year ago"],[Number.MAX_VALUE,"years ago",ze]];function qe(e,t){var n=e,r=t.reference;n instanceof Date&&(n=n.getTime()),r||(r=(new Date).getTime()),r instanceof Date&&(r=r.getTime());var i,o=r-n,a=t.useRelativeForm?Ve:t.useShortVariant?He:t.useNumbersOnly?Ke:Ue,s=(0,_.Z)(a);try{for(s.s();!(i=s.n()).done;){var l=(0,f.Z)(i.value,3),u=l[0],c=l[1],d=l[2];if(o<u)return"number"==typeof d?Math.round(o/d)+(t.useShortVariant?"":" ")+c:c}}catch(e){s.e(e)}finally{s.f()}throw new Error("This should never be reached.")}function $e(t){var n=t.date,r=t.reference,i=t.useShortVariant,o=t.useNumbersOnly,a=t.useRelativeForm;return(0,e.jsx)(e.Fragment,{children:qe(n,{reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:a})})}!function(e){e[e.NONE=0]="NONE",e[e.SHIFT=1]="SHIFT",e[e.CTRL=2]="CTRL",e[e.ALT=4]="ALT",e[e.CMD=8]="CMD"}(Ie||(Ie={})),function(e){e[e.Escape=27]="Escape",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.A=65]="A",e[e.C=67]="C",e[e.D=68]="D",e[e.N=78]="N",e[e.P=80]="P",e[e.R=82]="R",e[e.Period=190]="Period",e[e.SingleQuote=222]="SingleQuote",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow"}(Ne||(Ne={}));var Ye=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;(0,j.Z)(this,n),r=t.call(this);for(var i=new Set,o=0,a=Object.values(e);o<a.length;o++){var s=a[o],l=(0,f.Z)(s,2)[1];i.add(l)}return r.keydownListener=function(t){if(i.has(t.keyCode)&&!function(e){return null!=e.target&&/(vscode-text-area|vscode-text-field|textarea|input)/i.test(e.target.tagName)}(t))for(var n=(t.shiftKey?Ie.SHIFT:0)|(t.ctrlKey?Ie.CTRL:0)|(t.altKey?Ie.ALT:0)|(t.metaKey?Ie.CMD:0),o=0,a=Object.entries(e);o<a.length;o++){var s=(0,f.Z)(a[o],2),l=s[0],u=s[1],c=(0,f.Z)(u,2),d=c[0];if(c[1]===t.keyCode&&d===n){r.dispatchEvent(new Event(l));break}}},document.body.addEventListener("keydown",r.keydownListener),r}return(0,S.Z)(n)}(window.EventTarget),We=function(n){var r=new Ye(n),i=(0,t.createContext)(r);return[function(t){var n=t.children;return(0,e.jsx)(i.Provider,Object.assign({value:r},{children:n}))},function(e,n){var r=(0,t.useContext)(i);(0,t.useEffect)((function(){return r.addEventListener(e,n),function(){return r.removeEventListener(e,n)}}),[e,n,r])},function(e){return r.dispatchEvent(new Event(e))}]}({ToggleSidebar:[Ie.CMD,Ne.Period],OpenUncommittedChangesComparisonView:[Ie.CMD,Ne.SingleQuote],OpenHeadChangesComparisonView:[Ie.CMD|Ie.SHIFT,Ne.SingleQuote],Escape:[Ie.NONE,Ne.Escape],SelectUpwards:[Ie.NONE,Ne.UpArrow],SelectDownwards:[Ie.NONE,Ne.DownArrow],ContinueSelectionUpwards:[Ie.SHIFT,Ne.UpArrow],ContinueSelectionDownwards:[Ie.SHIFT,Ne.DownArrow]}),Je=(0,f.Z)(We,3),Ge=Je[0],Qe=Je[1],Xe=(Je[2],a.LO.set([],{deep:!1})),et=a.LO.box(void 0),tt=(0,a.Fl)((function(){var e=Xe,t=pe.get().treeMap;return(0,b.Z)(e).map((function(e){var n=t.get(e);return null==n?null:n.info})).filter(l.notEmpty)})),nt=(0,a.Fl)((function(){for(var e=pe.get().trees,t=(0,b.Z)(e),n=[];t.length>0;){var r=t.pop();if(!r)break;n.push(r.info),t.push.apply(t,(0,b.Z)(r.children))}return n}));function rt(){return(0,e.jsx)("div",Object.assign({"data-testid":"loading-spinner"},{children:(0,e.jsx)(p.J,{icon:"loading",size:"L"})}))}function it(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"center-container"},{children:n}))}function ot(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"flex-row"},{children:n}))}var at=(0,M.X)({config:"gti.changedFilesDisplayType",default:"short"}),st={short:{icon:"list-selection",label:(0,e.jsx)(e.Fragment,{children:"Short file names"})},fullPaths:{icon:"menu",label:(0,e.jsx)(e.Fragment,{children:"Full file paths"})},tree:{icon:"list-tree",label:(0,e.jsx)(e.Fragment,{children:"Tree"})},fish:{icon:"whole-word",label:(0,e.jsx)(e.Fragment,{children:"One-letter directories"})}},lt=Object.entries(st),ut=(0,s.Pi)((function(){var t=at.get(),n=lt.map((function(n){var r=(0,f.Z)(n,2),i=r[0],o=r[1];return{label:(0,e.jsxs)(ot,{children:[(0,e.jsx)(p.J,{icon:t===i?"check":"blank",slot:"start"}),(0,e.jsx)(p.J,{icon:o.icon,slot:"start"}),o.label]}),onClick:function(){return at.set(i)}}})),r=H((function(){return n}));return(0,e.jsx)(g.u,Object.assign({title:"Change how file paths are displayed"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",className:"changed-file-display-type-picker","data-testid":"changed-file-display-type-picker",onClick:r},{children:(0,e.jsx)(p.J,{icon:st[t].icon})}))}))}));function ct(t){var n=t.comparison;return(0,e.jsxs)(o.vD,Object.assign({"data-testid":"open-comparison-view-button-".concat(n.type),appearance:"icon",onClick:function(){ne._.set({comparison:n,visible:!0})}},{children:[(0,e.jsx)(p.J,{icon:"files",slot:"start"}),dt(n)]}))}function dt(e){switch(e.type){case l.ComparisonType.UncommittedChanges:return"View Changes";case l.ComparisonType.HeadChanges:return"View Head Changes";case l.ComparisonType.StackChanges:return"View Stack Changes";case l.ComparisonType.Committed:return"View Changes in ".concat(e.hash)}}var ft=n(5544),ht=n(8262),pt=n.n(ht);function vt(e,n,r){var i=(0,t.useCallback)((0,l.debounce)(e,n,void 0,!0),[n]);return(0,t.useEffect)((function(){return i.apply(void 0,arguments)}),r)}function gt(e,n){var r=(0,t.useRef)([]);pt()(n,r.current)||(r.current=n);var i=r.current;return(0,t.useMemo)(e,i)}var mt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"AbortMergeOperation")).conflicts=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["rebase","--abort"]}}]),n}(de);mt.opName="Abort";var yt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"AddAllOperation")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["add","--all"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:bt(e.status)}}))}}}]),n}(de);function bt(e){return["UNTRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"TRACKED_ADD":["UNTRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"TRACKED_REMOVE":["UNTRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"TRACKED_MODIFY":["UNTRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"TRACKED_COPY":["UNTRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"TRACKED_RENAME":e}yt.opName="AddAll";var wt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"AddOperation")).filePath=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["add",{type:"repo-relative-file",path:this.filePath}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:bt(e.status)}:e}))}}}]),n}(de);wt.opName="Add";var _t,xt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"AmendOperation")).method=e,i.message=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){var e,t;if("commit"===this.method)return["modify","--commit","--message",(null===(e=this.message)||void 0===e?void 0:e.title)||"Untitled commit"];var n=null===(t=this.message)||void 0===t?void 0:t.title;return["modify"].concat((0,b.Z)(n?["--message",n]:[]))}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.headCommit;if(null!=this.message){var r=this.message,i=r.title,o=r.description;if((null==n?void 0:n.title)!==i||(null==n?void 0:n.description)!==o)return function(e,n){if(e.info.isHead){if(!t.message)throw new Error("Missing message");return{info:Object.assign(Object.assign({},e.info),{title:i,description:null!=o?o:""}),children:e.children}}return{info:e.info,children:e.children}}}}}]),n}(de);xt.opName="Amend",function(e){e.theirs="theirs",e.ours="ours"}(_t||(_t={}));var kt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"AutoResolveOperation")).filePath=e,i.tool=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case _t.theirs:return["restore","--theirs","--",{type:"repo-relative-file",path:this.filePath}];case _t.ours:return["restore","--ours","--",{type:"repo-relative-file",path:this.filePath}]}}}]),n}(de);kt.opName="AutoResolve";var Ot=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"CommitOperation")).message=e,i.originalHeadHash=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["create","--message","".concat(this.message.title.split(/\n+/,1))]}},{key:"makeOptimisticApplier",value:function(e){var t,n,r=this,i=e.headCommit;if((null==i?void 0:i.branch)===this.originalHeadHash){var o=this.message.title,a=this.message.description,s=o.toLocaleLowerCase(),l={children:[],info:{author:null!==(t=null==i?void 0:i.author)&&void 0!==t?t:"",description:a,title:o,isHead:!0,parents:[null!==(n=null==i?void 0:i.branch)&&void 0!==n?n:""],branch:s,partOfTrunk:!1,date:(new Date).toISOString(),needsRestack:!1,needsSubmit:!0}};return function(e,t){return e.info.branch===r.originalHeadHash?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:[].concat((0,b.Z)(e.children),[l])}:{info:e.info,children:e.children}}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}}]),n}(de);Ot.opName="Commit";var Ct=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"ContinueMergeOperation")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["continue"]}}]),n}(de);Ct.opName="Continue";var jt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"DiscardOperation")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["reset","-q","--hard"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["TRACKED_MODIFY","TRACKED_ADD","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME","UNTRACKED_REMOVE"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(de);jt.opName="Discard";var St,Et=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"PurgeOperation")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["clean","--force"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["UNTRACKED_ADD"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(de);Et.opName="Purge",function(e){e.mark="mark",e.unmark="unmark"}(St||(St={}));var At=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"ResolveOperation")).filePath=e,i.tool=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case St.mark:return["add",{type:"repo-relative-file",path:this.filePath}];case St.unmark:return["restore","--merge","--",{type:"repo-relative-file",path:this.filePath}]}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&"UNRESOLVED"!==e.status})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:"RESOLVED"}:e}))}}},{key:"makeOptimisticMergeConflictsApplier",value:function(e){var t,n,r=this;if(!0!==(null===(n=null===(t=e.conflicts)||void 0===t?void 0:t.files)||void 0===n?void 0:n.some((function(e){return e.path===r.filePath&&"UNRESOLVED"!==e.status}))))return function(e){var t,n;return"loaded"!==(null==e?void 0:e.state)?e:Object.assign(Object.assign({},e),{files:null!==(n=null===(t=null==e?void 0:e.files)||void 0===t?void 0:t.map((function(e){return e.path===r.filePath?{path:e.path,status:"RESOLVED"}:e})))&&void 0!==n?n:[]})}}}]),n}(de);At.opName="Resolve";var Tt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"RevertOperation")).file=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["restore","-SW",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=new Set(this.file);if(!e.uncommittedChanges.every((function(e){return!t.has(e.path)})))return function(e){return e.filter((function(e){return!t.has(e.path)}))}}}]),n}(de);Tt.opName="Revert";var Dt=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"SoftResetAllOperation")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["reset","-q"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:Rt(e.status)}}))}}}]),n}(de);function Rt(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}Dt.opName="SoftResetAll";var It=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"SoftResetOperation")).file=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["reset","--",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.file&&!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.file?{path:e.path,status:Nt(e.status)}:e}))}}}]),n}(de);function Nt(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}It.opName="SoftReset";var Pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Mt={TRACKED_MODIFY:0,PARTIALLY_TRACKED_MODIFY:1,TRACKED_RENAME:2,PARTIALLY_TRACKED_RENAME:3,TRACKED_ADD:4,PARTIALLY_TRACKED_ADD:5,TRACKED_COPY:6,PARTIALLY_TRACKED_COPY:7,TRACKED_REMOVE:8,PARTIALLY_TRACKED_REMOVE:9,UNTRACKED_MODIFY:10,UNTRACKED_REMOVE:11,UNTRACKED_ADD:11,UNTRACKED_RENAME:12,UNTRACKED_COPY:13,UNRESOLVED:14,RESOLVED:15};function Lt(t){var n=at.get(),r=t.files,i=Pt(t,["files"]),o=gt((function(){return function(e){var t=(0,l.minimalDisambiguousPaths)(e.map((function(e){return e.path}))),n=new Set(e.map((function(e){return e.copy})).filter(l.notEmpty));return e.map((function(e,n){var r,i,o=t[n],a="".concat(e.path,"\n\n").concat(qt[e.status]),s=e.status;if(null!=e.copy){var u=(0,l.minimalDisambiguousPaths)([e.copy,e.path]),c=(0,f.Z)(u,2),d=c[0],h=c[1];o="".concat(d," → ").concat(h),["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME","UNTRACKED_RENAME"].includes(e.status)?(i=e.copy,a="".concat(a,"\n\nThis file was renamed from ").concat(e.copy),s=e.status):["TRACKED_COPY","PARTIALLY_TRACKED_COPY","UNTRACKED_COPY"].includes(e.status)&&(r=e.copy,a="".concat(a,"\n\nThis file was copied from ").concat(e.copy),s=e.status)}return{path:e.path,label:o,status:e.status,visualStatus:s,copiedFrom:r,renamedFrom:i,tooltip:a}})).filter((function(e){return!("TRACKED_REMOVE"===e.status&&n.has(e.path))})).sort((function(e,t){return e.visualStatus===t.visualStatus?e.path.localeCompare(t.path):Mt[e.visualStatus]-Mt[t.visualStatus]}))}(r)}),[r]);return(0,e.jsx)("div",Object.assign({className:"changed-files"},{children:"tree"===n?(0,e.jsx)(Ft,Object.assign({},i,{files:o,displayType:n})):(0,e.jsx)(Zt,Object.assign({},i,{files:o,displayType:n}))}))}function Zt(t){var n=t.files,r=Pt(t,["files"]);return(0,e.jsx)(e.Fragment,{children:n.map((function(t){return(0,e.jsx)(zt,Object.assign({},r,{file:t}),t.path)}))})}function Ft(n){var r=n.files,i=Pt(n,["files"]),a=gt((function(){return e=Object.fromEntries(r.map((function(e){return[e.path,e]}))),function e(t){var n,r=new Map,i=new Map,o=(0,_.Z)(t.entries());try{for(o.s();!(n=o.n()).done;){var a=(0,f.Z)(n.value,2),s=a[0],l=a[1],u=s.split("/",1),c=(0,f.Z)(u,1)[0],d=s.slice(c.length+1);if(""===d)i.set(c,l);else if(r.has(c)){var h=r.get(c);null==h||h.set(d,l)}else r.set(c,new Map([[d,l]]))}}catch(e){o.e(e)}finally{o.f()}var p,v=new Map,g=(0,_.Z)(r.entries());try{for(g.s();!(p=g.n()).done;){var m=(0,f.Z)(p.value,2),y=m[0],b=e(m[1]);if(1===b.size){var w=(0,f.Z)(b.entries().next().value,2),x=w[0],k=w[1];k instanceof Map?v.set(y+"/"+x,k):v.set(y,b)}else v.set(y,b)}}catch(e){g.e(e)}finally{g.f()}var O,C=(0,_.Z)(i.entries());try{for(C.s();!(O=C.n()).done;){var j=(0,f.Z)(O.value,2),S=j[0],E=j[1];v.set(S,E)}}catch(e){C.e(e)}finally{C.f()}return v}(new Map(Object.entries(e)));var e}),[r]),s=(0,t.useState)(new Set),l=(0,f.Z)(s,2),u=l[0],c=l[1];return function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,e.jsx)(e.Fragment,{children:(0,b.Z)(n.entries()).map((function(n){var a=(0,f.Z)(n,2),s=a[0],l=a[1],d="".concat(r,"/").concat(s),h=u.has(d);return(0,e.jsx)("div",Object.assign({className:"file-tree-level"},{children:l instanceof Map?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"file-tree-folder-path"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){c((function(e){return h?new Set((0,b.Z)(e).filter((function(e){return e!==d}))):new Set([].concat((0,b.Z)(e),[d]))}))}},{children:[(0,e.jsx)(p.J,{icon:h?"chevron-right":"chevron-down",slot:"start"}),s]}))})),h?null:t(l,d)]}):(0,e.jsx)(zt,Object.assign({},i,{file:l}),l.path)}),d)}))})}(a)}var zt=(0,s.Pi)((function(t){var n=t.file,r=t.displayType,i=t.comparison,a=(0,f.Z)($t[n.visualStatus],3),s=a[0],l=a[1],u=a[2],c=function(e){return["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME"].includes(e.status)?{tooltip:"Stage changes",operation:function(){return new wt(e.path)}}:["PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)?{tooltip:"Stage all changes",operation:function(){return new wt(e.path)}}:["TRACKED_MODIFY","TRACKED_COPY","TRACKED_RENAME"].includes(e.status)?{tooltip:"Unstage changes",operation:function(){return new It(e.path)}}:"TRACKED_ADD"===e.status?{tooltip:"Unstage addition",operation:function(){return new It(e.path)}}:"TRACKED_REMOVE"===e.status?{tooltip:"Unstage removal",operation:function(){return new It(e.path)}}:"RESOLVED"===e.status?{tooltip:"Mark as unresolved",operation:function(){return new At(e.path,St.unmark)}}:null}(n),d=(0,v.Qz)();return(0,e.jsxs)("div",Object.assign({className:"changed-file file-".concat(s),"data-testid":"changed-file-".concat(n.path),tabIndex:0,onKeyPress:function(e){"Enter"===e.key&&K.J.openFile(n.path)}},{children:[(0,e.jsx)(g.u,Object.assign({delayMs:g.cf,title:(null==c?void 0:c.tooltip)||""},{children:(0,e.jsx)(o.QJ,{className:null!==c?"changed-file-checkbox-clickable":"",checked:"full"===u||"partial"===u,indeterminate:"partial"===u,readOnly:!0,onClick:function(){var e=null==c?void 0:c.operation();e&&d(e)}})})),(0,e.jsxs)("span",Object.assign({className:"changed-file-path",onClick:function(){K.J.openFile(n.path)}},{children:[(0,e.jsx)(p.J,{icon:l}),(0,e.jsx)(g.u,Object.assign({title:n.tooltip,delayMs:2e3,placement:"right"},{children:(0,e.jsx)("span",Object.assign({className:"changed-file-path-text"},{children:"fish"===r?n.path.split("/").map((function(e,t,n){return t===n.length-1?e:e[0]})).join("/"):"fullPaths"===r?n.path:"tree"===r?n.path.slice(n.path.lastIndexOf("/")+1):n.label}))}))]})),(0,e.jsx)(Kt,{file:n,comparison:i})]}),n.path)})),Bt=(0,s.Pi)((function(n){var r,i,a,s=n.place,u=fe.get(),c=v.p7.get(),d=v.ql.get(),f=v.ip.get(),h=he.get(),m=(0,t.useRef)(null),y=(0,v.Qz)();if(c)return(0,e.jsx)(ft.Wq,{title:"Failed to fetch Uncommitted Changes",error:c});if(0===u.length)return null;var b=null!==(i=null===(r=null==h?void 0:h.files)||void 0===r?void 0:r.every((function(e){return"RESOLVED"===e.status})))&&void 0!==i&&i,w=["UNTRACKED_ADD","UNTRACKED_REMOVE","UNTRACKED_MODIFY","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],_=u.some((function(e){return w.includes(e.status)}))?(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){y(new yt)}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:"expand-all"}),(0,e.jsx)(e.Fragment,{children:"Stage all file changes"})]}),"allall"):null,x=["TRACKED_ADD","TRACKED_REMOVE","TRACKED_MODIFY","TRACKED_COPY","TRACKED_RENAME"],k=u.some((function(e){return x.includes(e.status)})),O=k?(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){y(new Dt)}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:"close-all"}),(0,e.jsx)(e.Fragment,{children:"Unstage all file changes"})]}),"reset"):null,C=null!=h||"main"!==s||!k;return(0,e.jsxs)("div",Object.assign({className:"uncommitted-changes"},{children:[null!=h?(0,e.jsxs)("div",Object.assign({className:"conflicts-header"},{children:[(0,e.jsx)("strong",{children:b?(0,e.jsx)(e.Fragment,{children:"All Merge Conflicts Resolved"}):(0,e.jsx)(e.Fragment,{children:"Unresolved Merge Conflicts"})}),"loading"===h.state?(0,e.jsx)("div",Object.assign({"data-testid":"merge-conflicts-spinner"},{children:(0,e.jsx)(p.J,{icon:"loading"})})):null,b?null:(0,e.jsx)(e.Fragment,{children:"Resolve conflicts to continue"})]})):null,(0,e.jsx)("div",Object.assign({className:"button-row"},{children:null!=h?(0,e.jsx)(Ht,{allConflictsResolved:b,conflicts:h}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ut,{}),(0,e.jsx)(ct,{comparison:{type:"amend sidebar"===s?l.ComparisonType.HeadChanges:l.ComparisonType.UncommittedChanges}}),_,O,(0,e.jsx)(g.u,Object.assign({delayMs:g.cf,title:"Discard ".concat(u.length," uncommitted change").concat(1===u.length?"":"s",", including untracked files.\n\nNote: Changes will be irreversably lost.")},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){var e=u.map((function(e){return e.path}));K.J.confirm("Are you sure you want to discard your ".concat(e.length," selected change").concat(1===e.length?"":"s","? Discarded changes cannot be recovered.")).then((function(e){e&&(y(new jt),y(new Et))}))}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:"trashcan"}),(0,e.jsx)(e.Fragment,{children:"Discard"})]}))}))]})})),null!=h?(0,e.jsx)(Lt,{files:null!==(a=h.files)&&void 0!==a?a:[],comparison:{type:l.ComparisonType.UncommittedChanges}}):(0,e.jsx)(Lt,{files:u,comparison:{type:l.ComparisonType.UncommittedChanges}}),C?null:(0,e.jsxs)("div",Object.assign({className:"button-rows"},{children:[(0,e.jsx)("div",Object.assign({className:"button-row"},{children:(0,e.jsxs)("span",Object.assign({className:"quick-commit-inputs"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"quick-commit-button",onClick:function(){var e,t,n=(null===(e=m.current)||void 0===e?void 0:e.value)||"Temporary Commit";y(new Ot(Object.assign(Object.assign({},{title:"",description:""}),{title:n}),null!==(t=null==d?void 0:d.branch)&&void 0!==t?t:""))}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:"plus"}),(0,e.jsx)(e.Fragment,{children:"Create a new branch"})]})),(0,e.jsx)(o.OG,{"data-testid":"quick-commit-title",placeholder:"Title",ref:m})]}))})),(null==d?void 0:d.partOfTrunk)?null:(0,e.jsx)("div",Object.assign({className:"button-row"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"uncommitted-changes-quick-amend-button",onClick:function(){y(new xt("success"===(null==f?void 0:f.type)?f.preferredBranchEdit:"amend"))}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:"debug-step-into"}),(0,e.jsx)(e.Fragment,{children:"Modify the current branch"})]}))}))]}))]}))}));function Ht(t){var n=t.conflicts,r=t.allConflictsResolved,i=(0,v.Qz)(),a=v.il.get().currentOperation,s=(null==a?void 0:a.operation)instanceof Ct&&0===a.exitCode,l=(null==a?void 0:a.operation)instanceof mt&&0===a.exitCode,u=!!ve(Ct),c=!!ve(mt),d=u||c||s||l;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:r?"primary":"icon",disabled:!r||d,"data-testid":"conflict-continue-button",onClick:function(){i(new Ct)}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:u?"loading":"debug-continue"}),(0,e.jsx)(e.Fragment,{children:"Continue"})]}),"continue"),(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",disabled:d,onClick:function(){i(new mt(n))}},{children:[(0,e.jsx)(p.J,{slot:"start",icon:c?"loading":"circle-slash"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]}),"abort")]})}var Vt=new Set(["TRACKED_MODIFY","UNTRACKED_MODIFY","TRACKED_REMOVE","UNTRACKED_REMOVE"]),Ut=new Set(["UNRESOLVED","RESOLVED"]);function Kt(t){var n=this,r=t.comparison,i=t.file,a=(0,v.Qz)(),s=[];return null==K.J.openDiff||Ut.has(i.status)||s.push((0,e.jsx)(g.u,Object.assign({title:"Open diff view",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(){var e;null===(e=K.J.openDiff)||void 0===e||e.call(K.J,i.path,r)}},{children:(0,e.jsx)(p.J,{icon:"git-pull-request-go-to-changes"})}))}),"revert")),Vt.has(i.status)&&r.type===l.ComparisonType.UncommittedChanges&&s.push((0,e.jsx)(g.u,Object.assign({title:"Revert back to last commit",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(){K.J.confirm("Are you sure you want to revert ".concat(i.path,"?")).then((function(e){e&&a(new Tt(i.path))}))}},{children:(0,e.jsx)(p.J,{icon:"discard"})}),i.path)}),"revert")),r.type===l.ComparisonType.UncommittedChanges&&("UNTRACKED_ADD"===i.status?s.push((0,e.jsx)(g.u,Object.assign({title:"Remove this file from the filesystem",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(n,0,void 0,k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.J.confirm("Are you sure you want to delete ".concat(i.path,"?"));case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:u.H.postMessage({type:"deleteFile",filePath:i.path});case 6:case"end":return e.stop()}}),e)})))}},{children:(0,e.jsx)(p.J,{icon:"trash"})}),i.path)}),"remove")):"RESOLVED"===i.status?s.push((0,e.jsx)(g.u,Object.assign({title:"Mark as unresolved"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return a(new At(i.path,St.unmark))}},{children:(0,e.jsx)(p.J,{icon:"circle-slash"})}),i.path)}),"unresolve-mark")):"UNRESOLVED"===i.status&&s.push((0,e.jsx)(g.u,Object.assign({title:"Mark as resolved"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover","data-testid":"file-action-resolve",appearance:"icon",onClick:function(){return a(new At(i.path,St.mark))}},{children:(0,e.jsx)(p.J,{icon:"check"})}),i.path)}),"resolve-mark"),(0,e.jsx)(g.u,Object.assign({title:"Take local version"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return a(new kt(i.path,_t.ours))}},{children:(0,e.jsx)(p.J,{icon:"fold-up"})}),i.path)}),"resolve-local"),(0,e.jsx)(g.u,Object.assign({title:"Take incoming version"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return a(new kt(i.path,_t.theirs))}},{children:(0,e.jsx)(p.J,{icon:"fold-down"})}),i.path)}),"resolve-other"))),(0,e.jsx)("div",Object.assign({className:"file-actions","data-testid":"file-actions"},{children:s}))}var qt={TRACKED_ADD:"Added (tracked)",TRACKED_MODIFY:"Modified (staged)",TRACKED_REMOVE:"Removed (staged)",PARTIALLY_TRACKED_ADD:"Added (partially tracked)",PARTIALLY_TRACKED_MODIFY:"Modified (partially staged)",PARTIALLY_TRACKED_REMOVE:"Removed (partially staged)",UNTRACKED_MODIFY:"Modified (unstaged)",UNTRACKED_ADD:"Added (untracked)",UNTRACKED_REMOVE:"Removed (unstaged)",UNRESOLVED:"Unresolved",RESOLVED:"Resolved",TRACKED_RENAME:"Renamed (staged)",PARTIALLY_TRACKED_RENAME:"Renamed and modified (partially staged)",UNTRACKED_RENAME:"Renamed (unstaged)",TRACKED_COPY:"Copied (tracked)",PARTIALLY_TRACKED_COPY:"Copied and modified (tracked and partially staged)",UNTRACKED_COPY:"Copied (untracked)"},$t={TRACKED_ADD:["added","diff-added","full"],TRACKED_MODIFY:["modified","diff-modified","full"],TRACKED_REMOVE:["removed","diff-removed","full"],PARTIALLY_TRACKED_ADD:["added","diff-added","partial"],PARTIALLY_TRACKED_MODIFY:["modified","diff-modified","partial"],PARTIALLY_TRACKED_REMOVE:["removed","diff-removed","partial"],UNTRACKED_MODIFY:["modified","diff-modified","empty"],UNTRACKED_ADD:["ignored","question","empty"],UNTRACKED_REMOVE:["ignored","warning","empty"],UNRESOLVED:["unresolved","diff-ignored","empty"],RESOLVED:["resolved","pass","full"],TRACKED_RENAME:["modified","diff-renamed","full"],PARTIALLY_TRACKED_RENAME:["modified","diff-renamed","partial"],UNTRACKED_RENAME:["modified","diff-renamed","empty"],TRACKED_COPY:["added","diff-added","full"],PARTIALLY_TRACKED_COPY:["added","diff-added","partial"],UNTRACKED_COPY:["added","diff-added","empty"]};function Yt(e){switch(e){case ce.REBASE_DESCENDANT:case ce.REBASE_OLD:case ce.HIDDEN_ROOT:case ce.HIDDEN_DESCENDANT:return!1;case ce.REBASE_ROOT:case ce.REBASE_OPTIMISTIC_DESCENDANT:case ce.REBASE_OPTIMISTIC_ROOT:default:return!0}}function Wt(e){if(!e)return[];var t=v.uB.get().get(e);if(!t)return[];var n=t.info;return n.partOfTrunk||!n.needsSubmit&&n.pr?[]:[].concat((0,b.Z)(Wt(t.info.parents[0])),[t.info])}var Jt=(0,t.memo)((0,s.Pi)((function(n){var r=n.commit,i=n.previewType,a=n.hasChildren,s=r.partOfTrunk,u=(0,v.wH)(),c=(0,v.Qz)(),d=ae.has(r.branch),h=function(e){var n=Xe,r=(0,t.useCallback)((function(t){var r;if(!(null===(r=v.uB.get().get(e))||void 0===r?void 0:r.info.partOfTrunk)){if(t.shiftKey){var i=et.get(),o=nt.get();if(null!=o&&null!=i){for(var a=o.findIndex((function(e){return e.branch===i})),s=o.findIndex((function(t){return t.branch===e})),l=a>s?[s,a]:[a,s],u=(0,f.Z)(l,2),c=u[0],d=u[1],h=o.slice(c,d+1),p=0,g=(0,b.Z)(h.filter((function(e){return e.partOfTrunk})).map((function(e){return e.branch})));p<g.length;p++){var m=g[p];n.add(m)}return void et.set(e)}}n.has(e)?!t.metaKey&&n.size>1?(n.clear(),n.add(e)):(n.delete(e),et.set(void 0)):(t.metaKey||n.clear(),n.add(e)),et.set(e)}}),[e]);return{isSelected:n.has(e),onClickToSelect:r}}(r.branch),m=h.isSelected,y=h.onClickToSelect,w=function(e){switch(e){case ce.REBASE_OLD:case ce.REBASE_DESCENDANT:case ce.REBASE_ROOT:case ce.HIDDEN_ROOT:case ce.HIDDEN_DESCENDANT:case ce.NON_ACTIONABLE_COMMIT:return!0;default:return!1}}(i),_=i===ce.NON_ACTIONABLE_COMMIT,x=(0,t.useCallback)((function(){ne._.set({comparison:{type:l.ComparisonType.Committed,hash:r.branch},visible:!0})}),[r,ne._]),k=H((function(){var t=[{label:(0,e.jsxs)(e.Fragment,{children:['Copy Branch Name "',null==r?void 0:r.branch,'"']}),onClick:function(){return K.J.clipboardCopy(r.branch)}}];return s||t.push({label:(0,e.jsx)(e.Fragment,{children:"View Changes in Branch"}),onClick:x}),s||w||t.push({label:(0,e.jsx)(e.Fragment,{children:"Untrack"}),onClick:function(){return v.wf.set(new we(r.branch))}}),s||w||t.push({label:(0,e.jsx)(e.Fragment,{children:"Delete branch"}),onClick:function(){K.J.confirm("Are you sure you want to delete ".concat(r.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&c(new me(r.branch))}))}}),t})),O=[];i===ce.REBASE_ROOT?O.push((0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return u(!0)}},{children:(0,e.jsx)(e.Fragment,{children:"Cancel"})})),(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return u(!1)}},{children:(0,e.jsx)(e.Fragment,{children:"Run Rebase"})}))]},"rebase")):i===ce.HIDDEN_ROOT&&O.push((0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return u(!0)}},{children:(0,e.jsx)(e.Fragment,{children:"Cancel"})})),(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return u(!1)}},{children:(0,e.jsx)(e.Fragment,{children:"Hide"})}))]},"hide")),w||r.isHead||O.push((0,e.jsx)("span",Object.assign({className:"goto-button"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(e){c(new be(r.branch)),e.stopPropagation()}},{children:[(0,e.jsx)(e.Fragment,{children:"Checkout"})," ",(0,e.jsx)(p.J,{icon:"arrow-right"})]}))}),"goto-button"));var C=Wt(r.branch);return!w&&C.length&&O.push((0,e.jsx)("span",Object.assign({className:"goto-button"},{children:(0,e.jsx)(se,Object.assign({isSpan:!0,toHighlight:C},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(e){c(new ye(r.branch)),e.stopPropagation()}},{children:[(0,e.jsx)(e.Fragment,{children:"Submit"})," ",(0,e.jsx)(p.J,{icon:"cloud-upload"})]}))}))}),"submit-button")),s||w||i===ce.GOTO_DESTINATION||!r.isHead||r.pr||O.push((0,e.jsx)("span",Object.assign({className:"goto-button"},{children:(0,e.jsx)(Pe,{},"pop")}),"pop-button")),(0,e.jsxs)("div",Object.assign({className:"commit"+(r.isHead?" head-commit":"")+(d?" highlighted":"")+(s||a?"":" topmost"),"data-testid":"commit-".concat(r.branch)},{children:[_||!r.isHead&&i!==ce.GOTO_PREVIOUS_LOCATION?null:(0,e.jsx)(Xt,{commit:r,previewType:i,hasChildren:a}),(0,e.jsxs)("div",Object.assign({className:"commit-rows"},{children:[m?(0,e.jsx)("div",{className:"selected-commit-background","data-testid":"selected-commit"}):null,(0,e.jsxs)(on,Object.assign({className:"commit-details"+(null!=i?" commit-preview-".concat(i):""),commit:r,draggable:!s&&Yt(i),onClick:y,onContextMenu:k,onDoubleClick:function(e){m||y(e);var t=ie.get();ie.set(Object.assign(Object.assign({},t),{right:Object.assign(Object.assign({},t.right),{collapsed:!1})}))}},{children:[(0,e.jsx)("div",{className:"commit-avatar"}),r.pr&&(0,e.jsx)($,{diffId:r.pr.number}),(0,e.jsxs)("span",Object.assign({className:"commit-title"},{children:[r.title?(0,e.jsx)(g.u,Object.assign({inline:!0,title:r.title},{children:(0,e.jsx)("span",Object.assign({className:"branch-name"},{children:r.branch}))})):(0,e.jsx)("span",Object.assign({className:"branch-name"},{children:r.branch})),(0,e.jsx)(Gt,{date:new Date(r.date)})]})),i===ce.REBASE_OPTIMISTIC_ROOT?(0,e.jsxs)("span",Object.assign({className:"commit-inline-operation-progress"},{children:[(0,e.jsx)(p.J,{icon:"loading"})," ",(0,e.jsx)(e.Fragment,{children:"rebasing..."})]})):null]}))]})),(0,e.jsx)(Qt,Object.assign({className:"commit-actions"},{children:O}))]}))})));function Gt(t){var n=t.date;return(0,e.jsx)("span",Object.assign({className:"commit-date"},{children:(0,e.jsx)($e,{date:n,useShortVariant:!0})}))}function Qt(t){var n=t.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["children"]);return!n||Array.isArray(n)&&0===n.filter(l.notEmpty).length?null:(0,e.jsx)("div",Object.assign({},r,{children:n}))}var Xt=(0,s.Pi)((function(t){var n=t.commit,r=t.previewType,i=t.hasChildren,o=v.OR.get().length>0&&(n.partOfTrunk||i);return(0,e.jsxs)("div",Object.assign({className:"head-commit-info-container".concat(o?" head-commit-info-indented":"")},{children:[(0,e.jsx)(en,{previewType:r}),n.isHead?(0,e.jsx)("div",Object.assign({className:"head-commit-info"},{children:(0,e.jsx)(Bt,{place:"main"})})):null,o?(0,e.jsx)(F,{}):null]}))})),en=(0,s.Pi)((function(t){var n,r=t.previewType,i=t.hideSpinner,o=v.JC.get()&&!i,a=!1;switch(r){case ce.GOTO_DESTINATION:n=(0,e.jsx)(e.Fragment,{children:"You're moving here..."}),a=!0;break;case ce.GOTO_PREVIOUS_LOCATION:n=(0,e.jsx)(e.Fragment,{children:"You were here..."});break;default:n=(0,e.jsx)(e.Fragment,{children:"You are here"})}return(0,e.jsxs)("div",Object.assign({className:"you-are-here-container"},{children:[(0,e.jsxs)(le,Object.assign({kind:"primary"},{children:[a?(0,e.jsx)(p.J,{icon:"loading"}):null,n]})),o&&r!==ce.GOTO_PREVIOUS_LOCATION?(0,e.jsx)(p.J,{icon:"loading"}):null]}))})),tn=void 0;function nn(e){e.preventDefault()}function rn(e){e.preventDefault(),tn=void 0;var t=e.target;null==t||t.removeEventListener("dragend",rn),document.removeEventListener("drop",nn),document.removeEventListener("dragover",nn)}function on(n){var r=n.commit,i=n.children,o=n.className,a=n.draggable,s=n.onClick,l=n.onDoubleClick,u=n.onContextMenu,c=(0,t.useCallback)((function(){var e=v.uB.get();if(null!=tn&&r.branch!==tn.branch){var t=e.get(tn.branch);if(t&&!(0,oe.SG)(r.branch,t)&&!tn.parents.includes(r.branch)){var n=r.branch;v.wf.set(new _e(tn.branch,n))}}}),[r]),d=(0,t.useCallback)((function(e){v.OR.get().length>0&&e.preventDefault(),tn=r,e.dataTransfer.dropEffect="none",e.target.addEventListener("dragend",rn),document.addEventListener("drop",nn),document.addEventListener("dragover",nn)}),[r]);return(0,e.jsx)("div",Object.assign({className:o,onDragStart:d,onDragEnter:c,draggable:a,onClick:s,onDoubleClick:l,onKeyPress:function(e){"Enter"===e.key&&(null==s||s(e))},onContextMenu:u,tabIndex:0,"data-testid":"draggable-commit"},{children:i}))}var an=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function sn(t){var n=t.children,r=t.className,i=an(t,["children","className"]);return(0,e.jsx)("span",Object.assign({className:"subtle"+(null==r?"":" ".concat(r))},i,{children:n}))}function ln(t){var n=t.commit,r=(0,e.jsxs)(e.Fragment,{children:["Created by ",n.author]});return(0,e.jsxs)(sn,Object.assign({className:"commit-info-title-byline"},{children:[n.isHead?(0,e.jsx)(en,{hideSpinner:!0}):null,n.partOfTrunk?(0,e.jsx)(un,{}):null,(0,e.jsx)(cn,Object.assign({shrink:!0},{children:(0,e.jsx)(g.u,Object.assign({trigger:"hover",component:function(){return r}},{children:r}))})),(0,e.jsx)(cn,{children:(0,e.jsx)(g.u,Object.assign({trigger:"hover",title:n.date.toLocaleString()},{children:(0,e.jsx)($e,{date:new Date(n.date)})}))})]}))}function un(){return(0,e.jsx)(g.u,Object.assign({placement:"bottom",title:"This commit has already been pushed to an append-only remote branch and can't be modified locally."},{children:(0,e.jsx)(le,{children:(0,e.jsx)(e.Fragment,{children:"Public"})})}))}function cn(t){var n=t.children,r=t.shrink;return(0,e.jsx)("div",Object.assign({className:"overflow-ellipsis".concat(r?" overflow-shrink":"")},{children:n}))}function dn(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"commit-info-small-title"},{children:n}))}function fn(t){var n=t.children,r=t.className,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["children","className"]);return(0,e.jsx)("section",Object.assign({},i,{className:"commit-info-section"+(r?" "+r:"")},{children:n}))}function hn(e){return null==e?null:e.control}var pn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},vn=a.LO.box({next:1,states:{}}),gn=(0,a.Fl)((function(){var e=vn.get();return Object.values(e.states).filter((function(e){return"pending"===e.status})).length})),mn=(0,a.Fl)((function(){var e=vn.get();return Object.values(e.states).filter((function(e){return"error"===e.status&&!e.resolved}))}));function yn(e){return"【 Uploading #".concat(e," 】")}function bn(e){return pn(this,void 0,void 0,k().mark((function t(){var n,r,i,o;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.arrayBuffer();case 2:return n=t.sent,r=(0,l.randomId)(),u.H.postMessageWithPayload({type:"uploadFile",filename:e.name,id:r},n),t.next=7,u.H.nextMessageMatching("uploadFileResult",(function(e){return e.id===r}));case 7:if(!(i=t.sent).result.error){t.next=10;break}throw i.result.error;case 10:return o=i.result.value,t.abrupt("return",o);case 12:case"end":return t.stop()}}),t)})))}var wn=(0,s.Pi)((function(n){var r,i=n.textAreaRef,a=gn.get(),s=mn.get(),l=(0,t.useState)(!1),u=(0,f.Z)(l,2),c=u[0],d=u[1],h=(0,t.useCallback)((function(){d(!1);var e=vn.get(),t=[],n=Object.assign(Object.assign({},e),{states:Object.fromEntries(Object.entries(e.states).map((function(e){var n=(0,f.Z)(e,2),r=n[0],i=n[1],o=Number(r);return"pending"===i.status?(t.push(o),[o,{state:"cancelled",id:o}]):[o,i]})))}),r=hn(i.current);if(r){var o,a=(0,_.Z)(t);try{for(a.s();!(o=a.n()).done;)On(r,yn(o.value),"")}catch(e){a.e(e)}finally{a.f()}}vn.set(n)}),[]),v=(0,t.useCallback)((function(){var e=vn.get();vn.set(Object.assign(Object.assign({},e),{states:Object.fromEntries(Object.entries(e.states).map((function(e){var t=(0,f.Z)(e,2),n=t[0],r=t[1];return[n,"error"===r.status?Object.assign(Object.assign({},r),{resolved:!0}):r]})))}))}),[]);return 0===s.length&&0===a?null:(s.length>0?r=(0,e.jsxs)("span",Object.assign({className:"upload-status-error"},{children:[(0,e.jsx)(g.u,Object.assign({title:"Click to dismiss error"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:v,"data-testid":"dismiss-upload-errors"},{children:(0,e.jsx)(p.J,{icon:"close"})}))})),(0,e.jsxs)(ft._c,Object.assign({error:s[0].error,title:(0,e.jsx)(e.Fragment,{children:"Image upload failed"})},{children:[s.length," file",1===s.length?"":"s"," failed to upload"]}))]})):a>0&&(r=c?(0,e.jsxs)(o.vD,Object.assign({appearance:"icon"},{children:[(0,e.jsx)(p.J,{icon:"stop-circle",slot:"start"}),"Click to cancel"]})):(0,e.jsxs)(o.vD,Object.assign({appearance:"icon"},{children:[(0,e.jsx)(p.J,{icon:"loading",slot:"start"}),a," file",1===a?"":"s"," uploading"]}))),(0,e.jsx)("span",Object.assign({className:"upload-status",onClick:h,onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)}},{children:r})))})),_n=(0,s.Pi)((function(n){var r=n.uploadFiles,i=(0,t.useId)();return(0,e.jsxs)("span",{children:[(0,e.jsx)("input",{type:"file",accept:"image/*,video/*",className:"choose-file","data-testid":"attach-file-input",id:i,multiple:!0,onChange:function(e){e.target.files&&r((0,b.Z)(e.target.files)),e.target.files=null}}),(0,e.jsx)("label",Object.assign({htmlFor:i},{children:(0,e.jsx)(g.u,Object.assign({title:"Choose image or video files to upload. Drag & Drop and Pasting images or videos is also supported."},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"attach-file-button"},{children:(0,e.jsx)(kn,{})}))}))}))]},"choose-file")})),xn=(0,s.Pi)((function(n){var r=n.children,i=n.onDrop,o=(0,t.useState)(!1),a=(0,f.Z)(o,2),s=a[0],l=a[1],u=function(e){(e.dataTransfer.files.length>0||e.dataTransfer.items.length>0)&&l(!0),e.preventDefault(),e.stopPropagation()},c=function(e){l(!1),e.preventDefault(),e.stopPropagation()};return(0,e.jsx)("div",Object.assign({className:"image-drop-zone"+(s?" hovering-to-drop":""),onDragEnter:u,onDragOver:u,onDragLeave:c,onDrop:function(e){c(e),i((0,b.Z)(e.dataTransfer.files))}},{children:r}))}));function kn(){return(0,e.jsx)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,e.jsx)("path",{d:"M5.795 9.25053L8.43233 6.58103C8.72536 6.35421 9.44589 6.03666 9.9837 6.58103C10.5215 7.1254 10.2078 7.78492 9.9837 8.04664L5.49998 12.5C4.99998 13 3.91267 13.2914 3.00253 12.2864C2.0924 11.2814 2.49999 10 3.00253 9.4599L8.89774 3.64982C9.51829 3.12638 11.111 2.42499 12.5176 3.80685C13.9242 5.1887 13.5 7 12.5 8L8.43233 12.2864",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round"})}))}function On(e,t,n){var r=e.selectionStart,i=e.selectionEnd,o=e.value.indexOf(t);e.value=e.value.replace(t,n),r&&(e.selectionStart=r>o?r+(n.length-t.length):r),i&&(e.selectionEnd=i>o?i+(n.length-t.length):i)}function Cn(e,t){if(null!=e.selectionStart){var n=e.selectionStart,r=e.selectionEnd,i=null!=r?r:n,o=e.value[n-1],a=e.value[i],s=function(e){return!e||/[ \n\t]/.test(e)},l=s(o)?"":" ",u=s(a)?"":" ",c=t.length+l.length+u.length;e.value=e.value.substring(0,n)+l+t+u+(null!=r?e.value.substring(r,e.value.length):"");var d=n+c;e.selectionStart=d,e.selectionEnd=d}else{var f=/\s/.test(e.value[e.value.length-1])?"":" ";e.value+=f+t}}var jn=(0,s.Pi)((function(t){var n=t.contextKey,r=t.runOperation,i=t.disabled,a=t.children,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["contextKey","runOperation","disabled","children"]),u=(0,v.Qz)(),c=ge(),d=Sn(n),f=d.get(),h=null!=c&&(null==f?void 0:f.includes(c.id));return(0,e.jsxs)(o.vD,Object.assign({},s,{disabled:h||i,onClick:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,k().mark((function e(){var t,n,i,o,a,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r(),!(0,l.isPromise)(t)){e.next=7;break}return e.next=4,t;case 4:n=e.sent,e.next=8;break;case 7:n=t;case 8:if(null!=n){e.next=10;break}return e.abrupt("return");case 10:i=Array.isArray(n)?n:[n],o=(0,_.Z)(i);try{for(o.s();!(a=o.n()).done;)s=a.value,u(s)}catch(e){o.e(e)}finally{o.f()}d.set(i.map((function(e){return e.id})));case 14:case"end":return e.stop()}}),e)})))}},{children:[h&&(0,e.jsx)(p.J,{icon:"loading",slot:"start"}),a]}))})),Sn=(0,O.N)({genKey:function(e){return e},genValue:function(){return a.LO.box([])}}),En=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"AmendMessageOperation")).branch=e,i.message=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["internal-only","metaedit",this.branch,"--title",this.message.title]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch)){var n=this.message,r=n.title,i=n.description;return function(e,n){return e.info.branch===t.branch?{info:Object.assign(Object.assign({},e.info),{title:r,description:null!=i?i:""}),children:e.children}:{info:e.info,children:e.children}}}}}]),n}(de);En.opName="Metaedit";var An=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r){var i;return(0,j.Z)(this,n),(i=t.call(this,"PrSubmitOperation")).branch=e,i.options=r,i}return(0,S.Z)(n,[{key:"getArgs",value:function(){var e,t=["submit","--branch",this.branch];return(null===(e=this.options)||void 0===e?void 0:e.draft)&&t.push("--draft"),t}}]),n}(de);function Tn(n){var r=n.children,i=(0,t.useRef)(null),a=(0,t.useState)(!1),s=(0,f.Z)(a,2),l=s[0],u=s[1],c=(0,t.useState)(!1),d=(0,f.Z)(c,2),h=d[0],v=d[1];return(0,t.useLayoutEffect)((function(){var e=i.current;null!=e&&e.scrollHeight>275?!1===l&&u(!0):!0===l&&u(!1)}),[i,l,r]),(0,e.jsxs)("div",Object.assign({className:"see-more-container"},{children:[(0,e.jsx)("div",Object.assign({className:"see-more-container-".concat(h?"expanded":"collapsed"),ref:i},{children:r})),l?(0,e.jsx)("div",Object.assign({className:"see-".concat(h?"less":"more","-button")},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){return v((function(e){return!e}))}},{children:[(0,e.jsx)(p.J,{icon:h?"fold-up":"fold-down",slot:"start"}),h?(0,e.jsx)(e.Fragment,{children:"See less"}):(0,e.jsx)(e.Fragment,{children:"See more"})]}))})):null]}))}An.opName="pr submit";var Dn=(0,t.forwardRef)((function(n,r){var i=n.onInput,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["onInput"]);return(0,re.hu)("object"==typeof r,"MinHeightTextArea requires ref object"),(0,t.useEffect)((function(){var e,t=null==r?void 0:r.current,n=null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("textarea");if(n){var i=function(){n.style.height="",n.style.height="".concat(n.scrollHeight,"px")};i();var o=new ResizeObserver(i);return o.observe(n),function(){return o.unobserve(n)}}}),[n.value,r]),(0,e.jsx)(o.gn,Object.assign({ref:r},a,{className:"min-height-text-area".concat(a.className?" "+a.className:""),onInput:function(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.value.replace(/(\r|\n)/g,"");i({target:{value:n}})}}))}));function Rn(n){var r=n.kind,i=n.name,a=n.autoFocus,s=n.editedMessage,l=n.setEditedCommitMessage,u=(0,t.useRef)(null);(0,t.useEffect)((function(){if(u.current&&a){var e=hn(u.current);null==e||e.focus()}}),[a,u]);var c="field"===r||"title"===r?Dn:o.gn,d="field"===r||"title"===r?{}:{rows:15,resize:"vertical"},f="textarea"===r&&!1,h=function(e){var t;l(null===(t=e.target)||void 0===t?void 0:t.value)},p=function(e,n){var r=this;return(0,t.useCallback)((function(t){return pn(r,void 0,void 0,k().mark((function r(){var i,o,a,s,l=this;return k().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=vn.get(),o=i.next,null==(a=hn(e.current))){r.next=6;break}return s=function(){n({target:a})},r.next=6,Promise.all(t.map((function(e){return pn(l,void 0,void 0,k().mark((function t(){var n,r,i,l,u,c,d;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o,o+=1,r={status:"pending",id:n},i=vn.get(),vn.set({next:o,states:Object.assign(Object.assign({},i.states),(0,w.Z)({},n,r))}),l=yn(r.id),Cn(a,l),s(),t.prev=8,t.next=11,bn(e);case 11:u=t.sent,c=vn.get(),vn.set({next:o,states:Object.assign(Object.assign({},c.states),(0,w.Z)({},n,{status:"complete",id:n}))}),On(a,l,u),s(),t.next=24;break;case 18:t.prev=18,t.t0=t.catch(8),d=vn.get(),vn.set({next:o,states:Object.assign(Object.assign({},d.states),(0,w.Z)({},n,{status:"error",id:n,error:t.t0,resolved:!1}))}),On(a,l,""),s();case 24:case"end":return t.stop()}}),t,null,[[8,18]])})))})));case 6:case"end":return r.stop()}}),r)})))}),[])}(u,h),v=i.toLowerCase().replace(/\s/g,"-"),g=(0,e.jsxs)("div",Object.assign({className:"commit-info-field"},{children:[(0,e.jsx)(In,{uploadFiles:f?p:void 0,textAreaRef:u}),(0,e.jsx)(c,Object.assign({ref:u},d,{onPaste:f?function(e){null!=e.clipboardData&&e.clipboardData.files.length>0&&(p((0,b.Z)(e.clipboardData.files)),e.preventDefault())}:null,value:s,"data-testid":"commit-info-".concat(v,"-field"),onInput:h}))]}));return f?(0,e.jsx)(xn,Object.assign({onDrop:p},{children:g})):g}function In(t){var n=t.textAreaRef,r=t.uploadFiles,i=[];return null!=r&&(i.push((0,e.jsx)(wn,{textAreaRef:n},"pending-uploads")),i.push((0,e.jsx)(_n,{uploadFiles:r},"picker"))),0===i.length?null:(0,e.jsx)("div",Object.assign({className:"text-area-toolbar"},{children:i}))}var Nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Pn(e,t){return 0===e.length?t:e.join(",")+","+t}function Mn(n){var r,i,a=n.name,s=n.autoFocus,c=n.editedMessage,d=n.setEditedCommitMessage,h=n.typeaheadKind,v=(0,t.useRef)(null);(0,t.useEffect)((function(){if(v.current&&s){var e=hn(v.current);null==e||e.focus()}}),[s,v]);var g=function(e){var t=e.split(","),n=0===t.length?e:t.pop();return[t.map((function(e){return e.trim()})),null!=n?n:""]}(c),m=(0,f.Z)(g,2),y=m[0],b=m[1],w=(0,t.useState)(void 0),_=(0,f.Z)(w,2),x=_[0],O=_[1],C=(0,t.useState)(0),j=(0,f.Z)(C,2),S=j[0],E=j[1],A=a.toLowerCase().replace(/\s/g,"-"),T=function(e){e&&(d(Pn(y,e+",")),O({type:"success",values:[],timestamp:Date.now()}))};return(0,e.jsxs)("div",Object.assign({className:"commit-info-tokenized-field",onKeyDown:function(e){var t;if("Backspace"!==e.key||0!==(null===(t=v.current)||void 0===t?void 0:t.value.length)){var n=null==x?void 0:x.values;null!=n&&("ArrowDown"===e.key?(E((function(e){return Math.min(e+1,n.length-1)})),e.preventDefault()):"ArrowUp"===e.key?(E((function(e){return Math.max(e-1,-1)})),e.preventDefault()):"Enter"===e.key&&T(n[S].value))}else d(Pn(y.slice(0,-1),""))}},{children:[y.filter((function(e){return""!=e})).map((function(t,n){return(0,e.jsxs)("span",Object.assign({className:"token"},{children:[t,(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){var e,n;d(Pn(y.filter((function(e){return e!==t})),null!==(n=null===(e=v.current)||void 0===e?void 0:e.value)&&void 0!==n?n:""))}},{children:(0,e.jsx)(p.J,{icon:"x"})}))]}),n)})),(0,e.jsxs)("div",Object.assign({className:"commit-info-field-with-typeahead"},{children:[(0,e.jsx)(o.OG,{ref:v,value:b,"data-testid":"commit-info-".concat(A,"-field"),onInput:function(e){var t,n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value;d(Pn(y,n)),"success"===(null==x?void 0:x.type)&&0!==x.values.length||O({type:"loading"}),function(e,t){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,k().mark((function n(){var r,i,o;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=Date.now(),!(t.trim().length<2)){n.next=3;break}return n.abrupt("return",{values:[],fetchStartTimestamp:r});case 3:return i=(0,l.randomId)(),u.H.postMessage({type:"typeahead",kind:e,id:i,query:t}),n.next=7,u.H.nextMessageMatching("typeaheadResult",(function(e){return e.id===i}));case 7:return o=n.sent,n.abrupt("return",{values:o.result,fetchStartTimestamp:r});case 9:case"end":return n.stop()}}),n)})))}(h,n).then((function(e){var t=e.values,n=e.fetchStartTimestamp;O((function(e){return"success"===(null==e?void 0:e.type)&&e.timestamp>n?e:{type:"success",values:t,timestamp:n}}))}))}}),"loading"===(null==x?void 0:x.type)||(null!==(i=null===(r=null==x?void 0:x.values)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0?(0,e.jsxs)("div",Object.assign({className:"typeahead-suggestions tooltip tooltip-bottom"},{children:[(0,e.jsx)("div",{className:"tooltip-arrow tooltip-arrow-bottom"}),"loading"===(null==x?void 0:x.type)?(0,e.jsx)(p.J,{icon:"loading"}):null==x?void 0:x.values.map((function(t,n){return(0,e.jsxs)("span",Object.assign({className:"suggestion"+(n===S?" selected-suggestion":""),onMouseDown:function(){T(t.value)}},{children:[t.image&&(0,e.jsx)(Ln,{src:t.image}),(0,e.jsxs)("span",Object.assign({className:"suggestion-label"},{children:[(0,e.jsx)("span",{children:t.label}),t.label!==t.value&&(0,e.jsx)(sn,{children:t.value})]}))]}),t.value)}))]})):null]}))]}))}function Ln(t){var n=t.src,r=Nn(t,["src"]);return(0,e.jsx)("img",Object.assign({src:n,onError:function(e){e.target&&(e.target.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")}},r))}var Zn=(0,s.Pi)((function(n){var r=n.field,i=n.fieldKey,o=n.isBeingEdited,a=n.readonly,s=n.content,l=n.editedField,u=n.startEditingField,c=n.setEditedField,d=n.extra,f=n.autofocus,h=null==l?"":Array.isArray(l)?l.join(", "):l;if("title"===r.type)return(0,e.jsxs)(e.Fragment,{children:[o?(0,e.jsxs)(fn,Object.assign({className:"commit-info-title-field-section"},{children:[(0,e.jsxs)(dn,{children:[(0,e.jsx)(p.J,{icon:"milestone"}),(0,e.jsx)(e.Fragment,{children:r.label})]}),(0,e.jsx)(Rn,{kind:r.type,name:i,autoFocus:null!=f&&f,editedMessage:h,setEditedCommitMessage:c})]})):(0,e.jsxs)(Fn,Object.assign({startEditingField:a?void 0:u,kind:r.type,fieldKey:i},{children:[(0,e.jsx)("span",{children:s||(0,e.jsx)("span",Object.assign({className:"subtle"},{children:"Untitled"}))}),a?null:(0,e.jsx)("span",Object.assign({className:"hover-edit-button"},{children:(0,e.jsx)(p.J,{icon:"edit"})}))]})),d]});var v="field"===r.type?t.Fragment:Tn;return o?(0,e.jsxs)(fn,Object.assign({className:"commit-info-field-section"},{children:[(0,e.jsxs)(dn,{children:[(0,e.jsx)(p.J,{icon:r.icon}),r.label]}),"field"===r.type?(0,e.jsx)(Mn,{name:r.label,autoFocus:null!=f&&f,editedMessage:h,setEditedCommitMessage:c,typeaheadKind:r.typeaheadKind}):(0,e.jsx)(Rn,{kind:r.type,name:r.label,autoFocus:null!=f&&f,editedMessage:h,setEditedCommitMessage:c})]})):(0,e.jsx)(fn,{children:(0,e.jsx)(v,{children:(0,e.jsxs)(Fn,Object.assign({startEditingField:a?void 0:u,kind:r.type,fieldKey:i},{children:[(0,e.jsxs)(dn,{children:[(0,e.jsx)(p.J,{icon:r.icon}),(0,e.jsx)(e.Fragment,{children:r.label}),a?null:(0,e.jsx)("span",Object.assign({className:"hover-edit-button"},{children:(0,e.jsx)(p.J,{icon:"edit"})}))]}),s&&""!==s?(0,e.jsx)("div",{children:s}):(0,e.jsx)("span",Object.assign({className:"empty-description subtle"},{children:a?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(e.Fragment,{children:[" No ",r.label]})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.J,{icon:"add"}),(0,e.jsxs)(e.Fragment,{children:[" Click to add ",r.label]})]})}))]}))})})}));function Fn(t){var n=t.children,r=t.startEditingField,i=t.fieldKey,o=t.kind,a=null!=r,s=i.toLowerCase().replace(/\s/g,"-");return(0,e.jsx)("div",Object.assign({className:"commit-info-rendered-".concat(o).concat(a?"":" non-editable"),"data-testid":"commit-info-rendered-".concat(s),onClick:null!=r?function(){r()}:void 0,onKeyPress:null!=r?function(e){"Enter"===e.key&&r()}:void 0,tabIndex:0},{children:n}))}function zn(e){if("optimistic"===e.type)throw new Error("Expected edited message to not be for optimistic commit");return e}var Bn=(0,s.Pi)((function(){var t=pe.get().headCommit,n=tt.get(),r=1===n.length?n[0]:void 0,i=null!=r?r:t;return null==i?(0,e.jsx)("div",Object.assign({className:"commit-info-view","data-testid":"commit-info-view-loading"},{children:(0,e.jsx)(it,{children:(0,e.jsx)(p.J,{icon:"loading"})})})):n.length>1?(0,e.jsx)(Hn,{selectedCommits:n}):(0,e.jsx)(Vn,{commit:i})})),Hn=(0,s.Pi)((function(t){var n,r=t.selectedCommits,i=D.get(),a=v.ip.get(),s=N.get(),l=(0,v.Qz)(),u=L.get(),c=s.value,d=null!==(n=i&&null!=c&&"success"===(null==a?void 0:a.type)?r.filter((function(e){return Kn(e,c,a.trunkBranch)})):void 0)&&void 0!==n?n:[];return(0,e.jsxs)("div",Object.assign({className:"commit-info-view-multi-commit","data-testid":"commit-info-view"},{children:[(0,e.jsxs)("strong",Object.assign({className:"commit-list-header"},{children:[(0,e.jsx)(p.J,{icon:"layers",size:"M"}),(0,e.jsxs)(e.Fragment,{children:[r.length," Commits Selected"]})]})),(0,e.jsx)(o.y9,{}),(0,e.jsx)("div",Object.assign({className:"commit-list"},{children:r.map((function(t){return(0,e.jsx)(Jt,{commit:t,hasChildren:!1,previewType:ce.NON_ACTIONABLE_COMMIT},t.branch)}))})),(0,e.jsxs)("div",Object.assign({className:"commit-info-actions-bar"},{children:[(0,e.jsx)("div",Object.assign({className:"commit-info-actions-bar-left"},{children:(0,e.jsx)(Z,{commitsToBeSubmit:r})})),(0,e.jsx)("div",Object.assign({className:"commit-info-actions-bar-right"},{children:0===d.length?null:(0,e.jsx)(se,Object.assign({toHighlight:d},{children:(0,e.jsx)(o.vD,Object.assign({onClick:function(){var e,t=(0,_.Z)(d);try{for(t.s();!(e=t.n()).done;){var n=e.value;l(new An(n.branch,{draft:u}))}}catch(e){t.e(e)}finally{t.f()}}},{children:(0,e.jsx)(e.Fragment,{children:"Submit Selected Commits"})}))}))}))]}))]}))})),Vn=(0,s.Pi)((function(n){var r,i,a=n.commit,s=Te.get(),u=a.isHead&&"commit"===s,c=Se(u?"head":a.branch),d=c.get(),h=fe.get(),p="amend"===s&&a.partOfTrunk,v=Ae.get(),g={title:a.title,description:a.description};(0,t.useEffect)((function(){if("optimistic"===d.type)return(0,re.hu)(!u,"Should not be in commit mode while editedMessage.type is optimistic"),void Ae.set(Object.fromEntries(Object.keys(ke).map((function(e){return[e,!1]}))));v.forceWhileOnHead&&a.isHead||Ae.set(u?Object.fromEntries(Object.keys(ke).map((function(e){return[e,!0]}))):xe(d.fields,g))}),[a.branch,u]);var m=De(a.branch),y=m.get();(0,t.useEffect)((function(){m.set(Object.assign(Object.assign({},m.get()),{isLoading:!0}))}),[a.date]);var b=function(e){for(var t=0,n=Object.keys(ke);t<n.length;t++){var r=n[t];if(e[r])return r}}(v);return(0,e.jsxs)("div",Object.assign({className:"commit-info-view","data-testid":"commit-info-view"},{children:[a.isHead?(0,e.jsx)("div",Object.assign({className:"commit-info-view-toolbar-top","data-testid":"commit-info-toolbar-top"},{children:(0,e.jsxs)(o.dm,Object.assign({value:s,onChange:function(e){return Te.set(e.target.value)}},{children:[(0,e.jsx)(o.VK,Object.assign({value:"commit",checked:"commit"===s,tabIndex:0},{children:(0,e.jsx)(e.Fragment,{children:"Create a new branch"})})),(0,e.jsx)(o.VK,Object.assign({value:"amend",checked:"amend"===s,tabIndex:0},{children:(0,e.jsx)(e.Fragment,{children:"Update the existing branch"})}))]}))})):null,(0,e.jsxs)("div",Object.assign({className:"commit-info-view-main-content"},{children:[Object.entries(ke).map((function(t){var n,r=(0,f.Z)(t,2),i=r[0],o=r[1];return"title"!==i&&"commit"===s?null:(0,e.jsx)(Zn,{fieldKey:i,field:o,content:g[i],autofocus:b===i,readonly:"optimistic"===d.type||p,isBeingEdited:v[i],startEditingField:function(){return function(e){(0,re.hu)("optimistic"!==d.type,"Cannot start editing fields when viewing optimistic commit"),Ae.set(Object.assign(Object.assign({},v),(0,w.Z)({},e,!0)))}(i)},editedField:null===(n=d.fields)||void 0===n?void 0:n[i],setEditedField:function(e){return c.set("optimistic"===d.type?d:{fields:Object.assign(Object.assign({},d.fields),(0,w.Z)({},i,"field"===o.type?[e]:e))})},extra:"commit"!==s&&"title"===i?(0,e.jsx)(ln,{commit:a}):void 0},i)})),(0,e.jsx)(o.y9,{}),a.isHead&&!p?(0,e.jsxs)(fn,Object.assign({"data-testid":"changes-to-amend"},{children:[(0,e.jsxs)(dn,{children:[u?(0,e.jsx)(e.Fragment,{children:"Changes to Commit"}):(0,e.jsx)(e.Fragment,{children:"Changes to Amend"}),(0,e.jsx)(o.IM,{children:h.length})]}),0===h.length?(0,e.jsx)(sn,{children:u?(0,e.jsx)(e.Fragment,{children:"No changes to commit"}):(0,e.jsx)(e.Fragment,{children:"No changes to amend"})}):(0,e.jsx)(Bt,{place:u?"commit sidebar":"amend sidebar"})]})):null,u?null:null===y.data?(0,e.jsx)(it,{children:(0,e.jsx)(rt,{})}):(0,e.jsxs)(fn,{children:[(0,e.jsxs)(dn,{children:[(0,e.jsx)(e.Fragment,{children:"Files Changed"}),(0,e.jsx)(o.IM,{children:null===(r=y.data)||void 0===r?void 0:r.total})]}),(0,e.jsxs)("div",Object.assign({className:"changed-file-list"},{children:[(0,e.jsx)(ct,{comparison:{type:l.ComparisonType.Committed,hash:a.branch}}),(0,e.jsx)(Lt,{files:(null===(i=y.data)||void 0===i?void 0:i.files)||[],comparison:a.isHead?{type:l.ComparisonType.HeadChanges}:{type:l.ComparisonType.Committed,hash:a.branch}})]}))]})]}),s),!p&&(0,e.jsx)("div",Object.assign({className:"commit-info-view-toolbar-bottom"},{children:(0,e.jsx)(Un,{commit:a,editedMessage:d,fieldsBeingEdited:v,isCommitMode:u})}))]}))})),Un=(0,s.Pi)((function(n){var r=n.commit,i=n.editedMessage,a=n.fieldsBeingEdited,s=n.isCommitMode,l=Object.values(a).some(Boolean),u=fe.get(),c=!s&&l||u.length>0,d=v.ip.get(),f=N.get(),h=v.Tq.get(),p=L.get(),m=(0,t.useCallback)((function(){if(r.isHead){var e=Xe;e&&1===e.size&&(0,re.Zn)(e.values())===r.branch&&Xe.clear()}}),[]),y=(0,t.useCallback)((function(e){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=9;break}if(!0!==Ee(s?"head":r.branch).get()){t.next=9;break}return t.next=6,K.J.confirm("Are you sure you want to discard your edited message?");case 6:if(!1!==t.sent){t.next=9;break}return t.abrupt("return");case 9:Se(s?"head":r.branch).set(Se(r.branch).get()),Ae.set({title:!1,description:!1});case 11:case"end":return t.stop()}}),t)})))}),[]),b="success"===(null==d?void 0:d.type)?d.codeReviewSystem.type:"unknown",w="none"!==b&&"unknown"!==b,_=f.value&&"success"===(null==d?void 0:d.type)&&Kn(r,f.value,d.trunkBranch),x=f.value&&"success"===(null==d?void 0:d.type)?qn({branch:r,allCommitsByBranchName:h,allDiffSummariesByBranchName:f.value,mainBranch:d.trunkBranch}):{canDownstackSubmit:"FALSE"},O="TRUE"===x.canDownstackSubmit&&x.impactedBranches.length>1,C=gn.get()>0;return(0,e.jsxs)("div",Object.assign({className:"commit-info-actions-bar","data-testid":"commit-info-actions-bar"},{children:[(0,e.jsx)("div",Object.assign({className:"commit-info-actions-bar-left"},{children:s?null:(0,e.jsx)(Z,{commitsToBeSubmit:[r]})})),(0,e.jsxs)("div",Object.assign({className:"commit-info-actions-bar-right"},{children:[l&&!s?(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){return y()}},{children:(0,e.jsx)(e.Fragment,{children:"Cancel"})})):null,r.isHead?(0,e.jsx)(g.u,Object.assign({title:C?"Image uploads are still pending":s?"No changes to commit":"No changes to amend",trigger:C||!c?"hover":"disabled"},{children:(0,e.jsx)(jn,Object.assign({contextKey:s?"commit":"amend",appearance:"secondary",disabled:!c||null==i||C,runOperation:function(){var e=zn(i).fields,t=s?new Ot(e,r.branch):new xt("success"===(null==d?void 0:d.type)?d.preferredBranchEdit:"amend",e);return y(!0),Te.set("amend"),m(),t}},{children:s?(0,e.jsx)(e.Fragment,{children:"Create"}):(0,e.jsx)(e.Fragment,{children:"Update"})}))})):(0,e.jsx)(g.u,Object.assign({title:"Image uploads are still pending",trigger:C?"hover":"disabled"},{children:(0,e.jsx)(jn,Object.assign({contextKey:"amend-message-".concat(r.branch),appearance:"secondary","data-testid":"amend-message-button",disabled:!l||null==i||C,runOperation:function(){var e=new En(r.branch,zn(i).fields);return y(!0),e}},{children:(0,e.jsx)(e.Fragment,{children:"Amend Message"})}))})),!c&&_&&(0,e.jsx)(g.u,Object.assign({title:C?"Image uploads are still pending":w?"Submit for code review with ".concat(b):"Submitting for code review is currently only supported for GitHub-backed repos",placement:"top"},{children:(0,e.jsx)(jn,Object.assign({contextKey:"submit-".concat(r.isHead?"head":r.branch),disabled:!w||C,runOperation:function(){return[new An(r.branch,{draft:p})]}},{children:"Submit"}))})),!c&&O&&(0,e.jsx)(g.u,Object.assign({title:C?"Image uploads are still pending":w?"Submit for code review with ".concat(b):"Submitting for code review is currently only supported for GitHub-backed repos",placement:"top"},{children:(0,e.jsx)(se,Object.assign({toHighlight:x.impactedBranches},{children:(0,e.jsx)(jn,Object.assign({contextKey:"downstack-submit-".concat(r.isHead?"head":r.branch),disabled:!w||C,runOperation:function(){return[new ye(r.branch,{draft:p})]}},{children:"Downstack Submit"}))}))}))]}))]}))}));function Kn(e,t,n){var r=t.get(e.branch);return!e.partOfTrunk&&(!r||"OPEN"===(null==r?void 0:r.state))&&e.parents.every((function(e){return e===n||t.get(e)}))}function qn(e){var t=e.branch,n=e.allCommitsByBranchName,r=e.allDiffSummariesByBranchName,i=e.mainBranch,o=r.get(t.branch);if(t.branch===i)return{canDownstackSubmit:"TRUE",impactedBranches:[]};if(t.partOfTrunk||o&&"OPEN"!==(null==o?void 0:o.state))return{canDownstackSubmit:"FALSE"};var a,s=t.parents.map((function(e){var t=n.get(e);return t?qn({branch:t,allCommitsByBranchName:n,allDiffSummariesByBranchName:r,mainBranch:i}):{canDownstackSubmit:"FALSE"}})),l=!0,u=[t],c=(0,_.Z)(s);try{for(c.s();!(a=c.n()).done;){var d=a.value;if("TRUE"!==d.canDownstackSubmit){l=!1;break}u.push.apply(u,(0,b.Z)(d.impactedBranches))}}catch(e){c.e(e)}finally{c.f()}return l?{canDownstackSubmit:"TRUE",impactedBranches:u}:{canDownstackSubmit:"FALSE"}}var $n=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,j.Z)(this,n),t.call(this,"CreateEmptyInitialCommit")}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["internal-only","init"]}}]),n}(de);$n.opName="CreateEmptyInitialCommit";var Yn=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"RestackOperation")).branch=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["restack","--branch",this.branch]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n){return e.info.branch===t.branch?{info:Object.assign(Object.assign({},e.info),{needsRestack:!1}),children:e.children}:{info:e.info,children:e.children}}}}]),n}(de);Yn.opName="restack";var Wn=(0,C.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedRepoMessage",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchRepoMessage"})}))},function(e){var t=e.setSelf;return u.H.onCwdChanged((function(){return t("")}))}]}),Jn=(0,s.Pi)((function(){!function(){var e=v.gi.get(),n=v.lp.get(),r=v.ql.get(),i=v.uB.get(),o=v.cC.get(),a=v.SC.get(),s=v.il.get();(0,t.useEffect)((function(){for(var t,u,c,d,f=[],h={trees:n,headCommit:r,treeMap:i},p={uncommittedChanges:null!==(t=o.files)&&void 0!==t?t:[]},g={conflicts:a},m=s.currentOperation,y=0,w=[].concat((0,b.Z)(s.operationHistory),[m]);y<w.length;y++){var _=w[y];_&&f.push(j(_,h,p,g))}if(f.some(l.notEmpty)){for(var x=(0,b.Z)(s.operationHistory),k=null==s.currentOperation?void 0:Object.assign({},s.currentOperation),O=0;O<f.length-1;O++)(null===(u=f[O])||void 0===u?void 0:u.commits)&&(x[O]=Object.assign(Object.assign({},x[O]),{hasCompletedOptimisticState:!0})),(null===(c=f[O])||void 0===c?void 0:c.files)&&(x[O]=Object.assign(Object.assign({},x[O]),{hasCompletedUncommittedChangesOptimisticState:!0})),(null===(d=f[O])||void 0===d?void 0:d.conflicts)&&(x[O]=Object.assign(Object.assign({},x[O]),{hasCompletedMergeConflictsOptimisticState:!0}));var C=f[f.length-1];C&&null!=k&&(C.commits&&(k.hasCompletedOptimisticState=!0),C.files&&(k.hasCompletedUncommittedChangesOptimisticState=!0),C.conflicts&&(k.hasCompletedMergeConflictsOptimisticState=!0)),v.il.set({operationHistory:x,currentOperation:k})}function j(t,n,r,i){var a,s,u,c,d,f,h=!1,p=!1,v=!1;if(null!=t&&!t.hasCompletedUncommittedChangesOptimisticState)if(null!=t.operation.makeOptimisticUncommittedChangesApplier){var g=t.operation.makeOptimisticUncommittedChangesApplier(r);null!=t.exitCode&&(null==g||0!==t.exitCode?h=!0:o.fetchStartTimestamp>(0,l.unwrap)(t.endTime).valueOf()&&(null===(a=ue())||void 0===a||a.track("OptimisticFilesStateForceResolved",{extras:{}}),h=!0))}else null!=t.exitCode&&(h=!0);if(null!=t&&!t.hasCompletedMergeConflictsOptimisticState)if(null!=t.operation.makeOptimisticMergeConflictsApplier){var m=t.operation.makeOptimisticMergeConflictsApplier(i);null!=t.exitCode&&(null==m||0!==t.exitCode?v=!0:(null!==(u=null===(s=i.conflicts)||void 0===s?void 0:s.fetchStartTimestamp)&&void 0!==u?u:0)>(0,l.unwrap)(t.endTime).valueOf()&&(null===(c=ue())||void 0===c||c.track("OptimisticConflictsStateForceResolved",{extras:{operation:(f=t.operation,f.constructor.opName)}}),v=!0))}else null!=t.exitCode&&(v=!0);if(null!=t&&!t.hasCompletedOptimisticState)if(null!=t.operation.makeOptimisticApplier){var y=t.operation.makeOptimisticApplier(n);null!=t.exitCode&&(null==y||0!==t.exitCode?p=!0:e.fetchStartTimestamp>(0,l.unwrap)(t.endTime).valueOf()&&(null===(d=ue())||void 0===d||d.track("OptimisticCommitsStateForceResolved",{extras:{}}),p=!0))}else null!=t.exitCode&&(p=!0);if(p||h||v)return{commits:p,files:h,conflicts:v}}}),[s,r,n,i,o,a,e])}(),function(){var e=(0,t.useCallback)((function(e){var t=et.get(),n=nt.get();if(null!=t&&null!=n){var r=n.filter((function(e){return!e.partOfTrunk})),i=r.findIndex((function(e){return e.branch===t}));if(-1!==i){var o=!1;switch(e){case"SelectUpwards":i<r.length-1&&i++;break;case"SelectDownwards":i>0&&i--;break;case"ContinueSelectionUpwards":i<r.length-1&&i++,o=!0;break;case"ContinueSelectionDownwards":i>0&&i--,o=!0}var a=r[i];o||Xe.clear(),Xe.add(a.branch),et.set(a.branch)}}}),[]);Qe("SelectUpwards",(function(){return e("SelectUpwards")})),Qe("SelectDownwards",(function(){return e("SelectDownwards")})),Qe("ContinueSelectionUpwards",(function(){return e("ContinueSelectionUpwards")})),Qe("ContinueSelectionDownwards",(function(){return e("ContinueSelectionDownwards")}))}();var n=pe.get().trees,r=v.ZB.get(),i=Wn.get();return null==r&&0===n.length?(0,e.jsx)(it,{children:(0,e.jsx)(rt,{})}):(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(d,{title:i}):null,r?(0,e.jsx)(Gn,{error:r}):null,(0,e.jsxs)("div",Object.assign({className:"commit-tree-root commit-group with-vertical-line","data-testid":"commit-tree-root"},{children:[(0,e.jsx)(er,{}),n.map((function(t){return(0,e.jsx)(Qn,{tree:t,depth:0},t.info.branch)})),(0,e.jsxs)(er,{children:[(0,e.jsx)(nr,{}),(0,e.jsx)(tr,{})]})]}))]})})),Gn=(0,s.Pi)((function(t){var n=t.error,r=(0,v.Qz)();return n.message===l.ErrorShortMessages.NoCommitsFetched?(0,e.jsx)(ft.Wq,{title:"No commits found",description:"If this is a new repository, try adding an initial commit first.",error:n,buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){r(new $n)}},{children:"Create empty initial commit"}))]}):(0,e.jsx)(ft.Wq,{title:"Failed to fetch commits",error:n})}));function Qn(t){var n=t.tree,r=t.depth,i=n.info,o=n.children,a=n.previewType,s=i.partOfTrunk,u=!s&&1===r||i.needsRestack?(0,e.jsx)(rr,{tree:n},"stack-actions"):null,c=(null!=o?o:[]).map((function(t){return(0,e.jsx)(Qn,{tree:t,depth:r+1},"tree-".concat(t.info.branch))})).map((function(t,n){return s||0!==n?[(0,e.jsx)(Xn,Object.assign({descendsFrom:i.branch},{children:t}),"branch-".concat(i.branch,"-").concat(n))]:t})).flat(),d=[].concat((0,b.Z)(c),[(0,e.jsx)(Jt,{commit:i,previewType:a,hasChildren:c.length>0},i.branch),u]).filter(l.notEmpty);return(0,e.jsx)(e.Fragment,{children:d})}function Xn(t){var n=t.children,r=t.descendsFrom,i=t.className;return(0,e.jsxs)("div",Object.assign({className:"commit-group ".concat(null!=i?i:"with-vertical-line"),"data-testid":"branch-from-".concat(r)},{children:[n,(0,e.jsx)(F,{})]}))}function er(t){var n=t.children;return(0,e.jsxs)("div",Object.assign({className:"commit-ellipsis"},{children:[(0,e.jsx)(p.J,{icon:"kebab-vertical"}),(0,e.jsx)("div",Object.assign({className:"commit-ellipsis-children"},{children:n}))]}))}var tr=(0,s.Pi)((function(){return v.c$.get()?(0,e.jsx)(p.J,{icon:"loading"}):null})),nr=(0,s.Pi)((function(){var t=v.Es.get(),n=v.c$.get();if(void 0===t)return null;var r="Showing comits from the last ".concat(t.toString()," days");return(0,e.jsx)(g.u,Object.assign({placement:"bottom",delayMs:g.cf,title:r},{children:(0,e.jsxs)(o.vD,Object.assign({disabled:n,onClick:function(){u.H.postMessage({type:"loadMoreCommits"})},appearance:"icon"},{children:[(0,e.jsx)(p.J,{icon:"unfold",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"Load more commits"})]}),"load-more-commit-button")}))})),rr=(0,s.Pi)((function(t){var n=t.tree,r=D.get(),i=(0,v.Qz)(),a=[],s=[],l=H((function(){return s}));if(null!==r&&n.info.needsRestack){var u=v.OR.get().length>0;a.push((0,e.jsx)(g.u,Object.assign({placement:"bottom",title:u?"Cannot restack while you have uncommited changes.":"The parent branch has been updated, and children branches need to be restacked to incorporate those changes."},{children:(0,e.jsx)(se,Object.assign({toHighlight:ir(n)},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",className:"commit-tree-stack-actions-restack",onClick:function(){i(new Yn(n.info.branch))},disabled:u},{children:[(0,e.jsx)(p.J,{icon:"debug-step-out",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"Restack"})]}))}),"restack-stack")})))}if(0===a.length)return null;var c=0===s.length?null:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:l},{children:(0,e.jsx)(p.J,{icon:"ellipsis"})}),"more-actions");return(0,e.jsxs)("div",Object.assign({className:"commit-tree-stack-actions"},{children:[a,c]}))}));function ir(e){return[e.info].concat((0,b.Z)(e.children.flatMap((function(e){return ir(e)}))))}function or(t){var n=t.className,r=t.children,i=t.width,a=t.height,s=t["aria-labelledby"],l=t["aria-describedby"],u=t.dismiss;return(0,e.jsx)("div",Object.assign({className:"modal",role:"dialog","aria-modal":!0,"aria-labelledby":s,"aria-describedby":l},{children:(0,e.jsxs)("div",Object.assign({className:"modal-contents ".concat(null!=n?n:""),style:{width:i,height:a}},{children:[null!=u?(0,e.jsx)("div",Object.assign({className:"dismiss-modal"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:u},{children:(0,e.jsx)(p.J,{icon:"x"})}))})):null,r]}))}))}n(8826);var ar,sr=(0,t.lazy)((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([n.e(697),n.e(74)]).then(n.bind(n,7074)).then((function(e){return{default:e.ComparisonView}})));case 1:case"end":return e.stop()}}),e)})))})),lr=(0,s.Pi)((function(){var n=ne._.get();function r(e){(0,a.z)((function(){var t=ne._.get();ne._.set(t.comparison===e?{visible:!n.visible,comparison:e}:{visible:!0,comparison:e})}))}return Qe("Escape",(function(){(0,a.z)((function(){var e=ne._.get();ne._.set(Object.assign(Object.assign({},e),{visible:!1}))}))})),Qe("OpenUncommittedChangesComparisonView",(function(){r({type:l.ComparisonType.UncommittedChanges})})),Qe("OpenHeadChangesComparisonView",(function(){r({type:l.ComparisonType.HeadChanges})})),n.visible?(0,e.jsx)(or,Object.assign({className:"comparison-view-modal"},{children:(0,e.jsx)(t.Suspense,Object.assign({fallback:(0,e.jsx)(p.J,{icon:"loading"})},{children:(0,e.jsx)(sr,{comparison:n.comparison})}))})):null}));!function(e){e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ar||(ar={}));var ur=(0,s.Pi)((function(t){var n=t.drawerState,r=t.right,i=t.left,o=t.leftLabel,a=t.top,s=t.topLabel,l=t.bottom,u=t.bottomLabel,c=t.errorBoundary,d=t.children;return(0,e.jsxs)("div",Object.assign({className:"drawers"},{children:[a?(0,e.jsx)(cr,Object.assign({stateAtom:n,side:ar.top,label:s,errorBoundary:c},{children:a})):null,(0,e.jsxs)("div",Object.assign({className:"drawers-horizontal"},{children:[i?(0,e.jsx)(cr,Object.assign({stateAtom:n,side:ar.left,label:o,errorBoundary:c},{children:i})):null,(0,e.jsx)("div",Object.assign({className:"drawer-main-content"},{children:d})),r?(0,e.jsx)(cr,Object.assign({stateAtom:n,side:ar.right,errorBoundary:c},{children:r})):null]})),l?(0,e.jsx)(cr,Object.assign({stateAtom:n,side:ar.bottom,label:u,errorBoundary:c},{children:l})):null]}))})),cr=(0,s.Pi)((function(n){var r=n.stateAtom,i=n.side,o=n.label,s=n.errorBoundary,u=n.children,c="top"===i||"bottom"===i,d=(0,t.useRef)(null),f=r.get()[i],h=!f.collapsed,p=(0,t.useCallback)((function(e){return(0,a.z)((function(){var t=r.get();r.set(Object.assign(Object.assign({},t),(0,w.Z)({},i,e(t[i]))))}))}),[i]),v=(0,t.useCallback)((function(e,t){e.preventDefault();var n=c?e.clientY:e.clientX,r=(0,l.debounce)((function(e){var r=c?e.clientY:e.clientX,o="right"===i||"bottom"===i?t-(r-n):t+(r-n);p((function(e){return{size:o,collapsed:!(o>60)}}))}),2,void 0,!0);window.addEventListener("mousemove",r);var o=function(){null==a||a(),a=void 0},a=function(){window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",o)};return window.addEventListener("mouseup",o),a}),[c,i,p]);return(0,e.jsxs)("div",Object.assign({className:"drawer drawer-".concat(i).concat(h?" drawer-expanded":""),style:h?(0,w.Z)({},c?"height":"width","".concat(f.size,"px")):void 0},{children:[o?(0,e.jsx)("div",Object.assign({className:"drawer-label","data-testid":"drawer-label",onClick:function(){(0,a.z)((function(){var e=r.get();r.set(Object.assign(Object.assign({},e),(0,w.Z)({},i,{size:e[i].size<400?400:e[i].size,collapsed:!e[i].collapsed})))}))}},{children:o})):null,h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Object.assign({ref:d,className:"resizable-drag-handle",onMouseDown:function(e){return v(e,f.size)}},{children:(0,e.jsx)("div",{className:"resizable-drag-handle__hover"})})),(0,e.jsx)("div",Object.assign({className:"drawer-content"},{children:(0,t.createElement)(s,null,u)}))]}):null]}))})),dr=n(8131),fr=a.LO.box(500);(0,a.Fl)((function(){return fr.get()<800}));var hr=n(4439);function pr(n){var r,i=n.children,o=n.className,a=(0,t.useState)(!1),s=(0,f.Z)(a,2),l=s[0],u=s[1];return(0,t.useEffect)((function(){if(l){var e=setTimeout((function(){return u(!1)}),1500);return function(){return clearTimeout(e)}}}),[l,u]),(0,e.jsx)(g.u,Object.assign({trigger:"manual",shouldShow:l,component:(r=i,function(){return(0,e.jsxs)("span",Object.assign({className:"copyable-success-tooltip"},{children:["Copied '",(0,e.jsx)("span",Object.assign({className:"copyable-success-overflow"},{children:r})),"'."]}))})},{children:(0,e.jsxs)("div",Object.assign({className:"copyable"+(o?" ".concat(o):""),tabIndex:0,onClick:function(){K.J.clipboardCopy(i),u(!0)}},{children:[i,(0,e.jsx)(p.J,{icon:"copy"})]}))}))}var vr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function gr(t){var n=t.title,r=t.icon,i=t.children,a=t.className,s=vr(t,["title","icon","children","className"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-fields"+(null!=a?" ".concat(a):"")},s,{children:[(0,e.jsxs)("div",Object.assign({className:"dropdown-fields-header"},{children:[(0,e.jsx)(p.J,{icon:r,size:"M"}),(0,e.jsx)("strong",Object.assign({role:"heading"},{children:n}))]})),(0,e.jsx)(o.y9,{}),(0,e.jsx)("div",Object.assign({className:"dropdown-fields-content"},{children:i}))]}))}function mr(t){var n=t.title,r=t.children,i=vr(t,["title","children"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-field"},{children:[(0,e.jsx)("strong",{children:n}),(0,e.jsx)("div",Object.assign({},i,{children:r}))]}))}function yr(){return(0,e.jsx)(xr,{children:(0,e.jsx)(g.u,Object.assign({trigger:"click",component:function(t){return(0,e.jsx)(kr,{dismiss:t})},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"bug-button"},{children:(0,e.jsx)(p.J,{icon:"bug"})}))}))})}var br,wr=a.LO.box(null),_r=null;function xr(t){var n=t.children,r=wr.get();return null==r?n:(0,e.jsx)(g.u,Object.assign({trigger:"manual",shouldShow:!0,component:function(){return(0,e.jsxs)("div",Object.assign({className:"bug-button-nux"},{children:[r,(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return wr.set(null)}},{children:(0,e.jsx)(p.J,{icon:"x"})}))]}))},placement:"bottom"},{children:n}))}(0,a.EH)((function(){null!=wr.get()?(br=Date.now(),_r=wr.get()):c.track("ShowBugButtonNux",{extras:{nux:_r},duration:null==br?void 0:Date.now()-br})}));var kr=(0,s.Pi)((function(n){var r=n.dismiss,i=v.cM.get();(0,t.useEffect)((function(){wr.set(null)}),[wr]);var a=K.J.AdditionalDebugContent;return(0,e.jsxs)(gr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Help"}),icon:"bug","data-testid":"bug-dropdown",className:"bug-dropdown"},{children:[null==i?(0,e.jsx)(p.J,{icon:"loading"}):(0,e.jsx)("div",Object.assign({className:"bug-dropdown-version"},{children:(0,e.jsx)(pr,{children:"GTI version ".concat(i.version," (").concat(i.platformName,")")})})),(0,e.jsxs)("div",Object.assign({className:"bug-dropdown-actions"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary",onClick:function(){K.J.openExternalLink("https://graphite.dev/docs/gti")}},{children:[(0,e.jsx)(p.J,{icon:"book",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"View Documentation"})]})),(0,e.jsx)(Or,{dismissBugDropdown:r}),a&&(0,e.jsxs)("div",Object.assign({className:"additional-debug-content"},{children:[(0,e.jsx)(o.y9,{}),(0,e.jsx)(ft.SV,{children:(0,e.jsx)(t.Suspense,{children:(0,e.jsx)(a,{})})})]}))]}))]}))}));function Or(t){return(0,e.jsx)(Cr,{})}function Cr(){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary",onClick:function(){K.J.openExternalLink("https://join.slack.com/t/graphite-community/shared_invite/zt-v828g9dz-TIRvlutxTCqgZmxnsO9Knw")}},{children:[(0,e.jsx)(p.J,{icon:"comment-discussion",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"Help and Feedback on Slack"})]}))})}var jr=(0,C.u)({default:[],effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("platform/availableCwds",(function(e){t(e.options)}));return function(){return n.dispose()}},function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"platform/subscribeToAvailableCwds"})}))}]}),Sr=(0,s.Pi)((function(){var t=v.ip.get();if("success"!==(null==t?void 0:t.type))return null;var n=(0,l.basename)(t.repoRoot);return(0,e.jsx)(g.u,Object.assign({trigger:"click",component:function(){return(0,e.jsx)(Er,{})},placement:"bottom"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"cwd-dropdown-button"},{children:[(0,e.jsx)(p.J,{icon:"folder",slot:"start"}),n]}))}))})),Er=(0,s.Pi)((function(){var t=v.ip.get(),n="success"===(null==t?void 0:t.type)?t.repoRoot:null,r=D.get(),i=v.ui.get();return(0,e.jsxs)(gr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Info"}),icon:"folder","data-testid":"cwd-details-dropdown"},{children:[(0,e.jsx)(Ar,{}),(0,e.jsx)(mr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Active repository"})},{children:(0,e.jsx)("code",{children:i})})),(0,e.jsx)(mr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Root"})},{children:(0,e.jsx)("code",{children:n})})),null!=r?(0,e.jsx)(mr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Remote"})},{children:(0,e.jsxs)("div",Object.assign({style:{display:"flex",alignItems:"center"}},{children:[(0,e.jsx)(p.J,{style:{marginRight:"4px"},icon:"github"})," ",(0,e.jsx)(r.RepoInfo,{})]}))})):null]}))})),Ar=(0,s.Pi)((function(){var t=v.ui.get(),n=jr.get();if(n.length<2)return null;var r=(0,l.minimalDisambiguousPaths)(n);return(0,e.jsxs)(mr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Change active repository"})},{children:[(0,e.jsx)(o.dm,Object.assign({orientation:"vertical",value:t,onChange:function(e){var n=e.target.value;n!==t&&(u.H.postMessage({type:"changeCwd",cwd:n}),u.H.cwdChanged())}},{children:r.map((function(r,i){var a=n[i];return(0,e.jsx)(o.VK,Object.assign({value:a,checked:a===t,tabIndex:0},{children:(0,e.jsx)(g.u,Object.assign({title:a,placement:"right"},{children:r}),r)}),r)}))})),(0,e.jsx)(o.y9,{})]}))})),Tr=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"DownstackGetOperation")).branchName=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["get",this.branchName]}}]),n}(de);Tr.opName="DownstackGet";var Dr=(0,s.Pi)((function(){var t=v.OR.get().length>0;return(0,e.jsx)(g.u,Object.assign({trigger:"click",component:function(t){return(0,e.jsx)(Rr,{dismiss:t})},placement:"bottom",title:"Downstack get"},{children:(0,e.jsx)(o.vD,Object.assign({disabled:t,appearance:"icon","data-testid":"download-commits-tooltip-button"},{children:(0,e.jsx)(p.J,{icon:"cloud-download"})}))}))})),Rr=(0,s.Pi)((function(n){var r=n.dismiss,i=v.OR.get().length>0,a=(0,t.useState)(""),s=(0,f.Z)(a,2),l=s[0],u=s[1],c=(0,v.Qz)(),d=(0,t.useRef)(null);return(0,t.useEffect)((function(){d.current&&d.current.focus()}),[d]),(0,e.jsx)(gr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Get a branch and its ancestors"}),icon:"cloud-download","data-testid":"settings-dropdown"},{children:(0,e.jsxs)("div",Object.assign({className:"download-commits-input-row"},{children:[(0,e.jsx)(o.OG,{placeholder:"Branch name...",value:l,onKeyUp:function(e){var t,n;"Enter"!==e.key?u(null!==(n=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:""):l.trim().length>0&&(c(new Tr(l)),r())},ref:d}),(0,e.jsx)(g.u,Object.assign({title:i?"Cannot downstack get with uncommited changes":""},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"secondary","data-testid":"download-commit-button",onClick:function(){c(new Tr(l))}},{children:(0,e.jsx)(e.Fragment,{children:"Pull"})}))}))]}))}))})),Ir=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e){var r;return(0,j.Z)(this,n),(r=t.call(this,"PullOperation")).options=e,r}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["sync",this.options.deleteBranches?"-f":"--no-delete"]}}]),n}(de);function Nr(t){var n,r=t.options,i=t.appearance,a=t.onClick,s=t.selected,l=t.onChangeSelected,u=t.buttonDisabled,c=t.pickerDisabled,d=t.icon,f=null!==(n=r.find((function(e){return e.id===s.id})))&&void 0!==n?n:r[0];return(0,e.jsxs)("div",Object.assign({className:"vscode-button-dropdown"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:i,onClick:u?void 0:function(){return a(s)},disabled:u},{children:[null!=d?d:null," ",f.label]})),(0,e.jsx)("select",Object.assign({disabled:c,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=r.find((function(t){return t.id===e.target.value}));null!=t&&l(t)}},{children:r.map((function(t){return(0,e.jsx)("option",Object.assign({value:t.id,selected:t.id===s.id},{children:t.label}),t.id)}))}))]}))}Ir.opName="Pull";var Pr=[{id:"pull",label:(0,e.jsx)(e.Fragment,{children:"Sync"}),getOperation:function(){return new Ir({deleteBranches:!0})},isRunning:function(e){return e instanceof Ir},tooltip:"Pull trunk, cleanup merged branches, and restack."},{id:"pnd",label:(0,e.jsx)(e.Fragment,{children:"Sync (skip cleanup)"}),getOperation:function(){return new Ir({deleteBranches:!1})},isRunning:function(e){return e instanceof Ir},tooltip:"Pull trunk, cleanup merged branches, and restack."}],Mr=(0,M.X)({config:"gti.pull-button-choice",default:Pr[0].id}),Lr=(0,s.Pi)((function(){var t,n=(0,v.Qz)(),r=v.lp.get(),i=0===r.length?null:Math.max.apply(Math,(0,b.Z)(r.map((function(e){return new Date(e.info.date).valueOf()})))),o=v.OR.get().length>0,a=null!==(t=Pr.find((function(e){return e.id===Mr.get()})))&&void 0!==t?t:Pr[0],s=a.tooltip+"\n\n"+(null==i?"":"Latest fetched commit is ".concat(qe(i,{})," old")),l=ge(),u=null!=l&&a.isRunning(l);return u&&(s+="\n\nPull is already running."),(0,e.jsx)(g.u,Object.assign({placement:"bottom",delayMs:g.cf,title:s},{children:(0,e.jsxs)("div",Object.assign({className:"pull-info"},{children:[(0,e.jsx)(Nr,{appearance:"secondary",buttonDisabled:!!u||o,options:Pr,onClick:function(){return n(a.getOperation())},onChangeSelected:function(e){return Mr.set(e.id)},selected:a,icon:(0,e.jsx)(p.J,{slot:"start",icon:u?"loading":"repo"})}),i&&(0,e.jsx)($e,{date:i,useShortVariant:!0})]}))}))})),Zr=function(e){(0,z.Z)(n,e);var t=(0,B.Z)(n);function n(e,r,i){var o;return(0,j.Z)(this,n),(o=t.call(this,"SetConfigOperation")).scope=e,o.configName=r,o.value=i,o}return(0,S.Z)(n,[{key:"getArgs",value:function(){return["internal-only","set-config","--level",this.scope,this.configName,this.value]}}]),n}(de);function Fr(){return(0,e.jsx)(g.u,Object.assign({trigger:"click",component:function(){return(0,e.jsx)(zr,{})},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"settings-gear-button"},{children:(0,e.jsx)(p.J,{icon:"gear"})}))}))}Zr.opName="SetConfig";var zr=(0,s.Pi)((function(){var t=hr.X.get(),n=v.ip.get(),r=(0,v.Qz)();return(0,e.jsxs)(gr,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Settings"}),icon:"gear","data-testid":"settings-dropdown"},{children:[null!=K.J.theme?null:(0,e.jsx)(Br,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Theme"})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:t,onChange:function(e){return hr.X.set(e.currentTarget.value)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"dark"},{children:(0,e.jsx)(e.Fragment,{children:"Dark"})})),(0,e.jsx)(o.nH,Object.assign({value:"light"},{children:(0,e.jsx)(e.Fragment,{children:"Light"})}))]}))})),"success"!==(null==n?void 0:n.type)?(0,e.jsx)(p.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Br,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Preferred modify behavior"}),description:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(e.Fragment,{children:"Whether to amend the commit or create one."})," ",(0,e.jsx)(o.Np,Object.assign({href:"https://graphite.dev/docs/updating-mid-stack-branches",target:"_blank"},{children:(0,e.jsx)(e.Fragment,{children:"Learn More."})}))]})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:n.preferredBranchEdit,onChange:function(e){var t=e.currentTarget.value;r(new Zr("user","graphite.branch_edit",t));var n=v.ip.get();"success"===(null==n?void 0:n.type)&&v.ip.set(Object.assign(Object.assign({},(0,l.unwrap)(n)),{preferredBranchEdit:t}))}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"commit"},{children:"commit"})),(0,e.jsx)(o.nH,Object.assign({value:"amend"},{children:"amend"}))]}))})),(0,e.jsx)(Br,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Preferred submit state"}),description:(0,e.jsxs)(e.Fragment,{children:["How new PRs should be submitted. Note that GitHub",(0,e.jsx)("br",{}),"does not allow draft PRs in all repositories."]})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:n.createPrsAs,onChange:function(e){var t=e.currentTarget.value;r(new Zr("user","graphite.create_prs_as",t));var n=v.ip.get();"success"===(null==n?void 0:n.type)&&v.ip.set(Object.assign(Object.assign({},(0,l.unwrap)(n)),{createPrsAs:t}))}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"draft"},{children:"draft"})),(0,e.jsx)(o.nH,Object.assign({value:"published"},{children:"published"}))]}))}))]})]}))}));function Br(t){var n=t.children,r=t.title,i=t.description;return(0,e.jsxs)(mr,Object.assign({title:r},{children:[i&&(0,e.jsx)("div",Object.assign({className:"setting-description"},{children:i})),n]}))}var Hr=(0,s.Pi)((function(){var t=v.R0.get(),n=v.WK.get();return t?(0,e.jsxs)("div",Object.assign({className:"top-bar"},{children:[(0,e.jsxs)("span",Object.assign({className:"button-group"},{children:[n&&(0,e.jsx)(Lr,{}),(0,e.jsx)(Sr,{}),(0,e.jsx)(Dr,{}),(0,e.jsx)(Vr,{})]})),(0,e.jsxs)("span",Object.assign({className:"button-group"},{children:[(0,e.jsx)(yr,{}),(0,e.jsx)(Fr,{}),(0,e.jsx)(Ur,{})]}))]})):null})),Vr=(0,s.Pi)((function(){return v.YI.get()?(0,e.jsx)(p.J,{icon:"loading"}):null}));function Ur(){var t=(0,v.b8)();return(0,e.jsx)(g.u,Object.assign({delayMs:g.cf,placement:"bottom",title:"Refresh"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){c.track("ClickedRefresh"),t(),u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},"data-testid":"refresh-button"},{children:(0,e.jsx)(p.J,{icon:"refresh"})}))}))}var Kr=(0,s.Pi)((function(){var t=v.Mh.get(),n=function(t,n,r){if("reconnecting"===n.type)return{title:(0,e.jsx)(e.Fragment,{children:"Connection to server was lost"}),error:new Error("Attempting to reconnect...")};if("error"===n.type)return"Invalid token"===n.error?{title:(0,e.jsx)(e.Fragment,{children:"Unable to connect to server. Try closing this window and accessing GTI with a fresh link."}),error:new Error("Invalid connection token. For security, you need to open a new GTI window when the server is restarted.")}:{title:(0,e.jsx)(e.Fragment,{children:"Error connecting to server"}),error:new Error(n.error)};if(r){if("success"===(null==t?void 0:t.type)&&"github"===t.codeReviewSystem.type){var i=(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){K.J.openExternalLink("https://graphite.dev/docs/graphite-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Learn more"})}));if(r.message.startsWith("NotAuthenticatedError")){var a=new Error("Log in to gh CLI with `gh auth login` to allow requests to GitHub");return a.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Not Authenticated to GitHub with `gh` CLI"}),error:a,buttons:[i],trackErrorName:"GhCliNotAuthenticated"}}if(r.message.startsWith("GhNotInstalledError")){var s=new Error("Install the `gh` CLI to make requests to GitHub");return s.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Unable to fetch data from Github"}),error:s,buttons:[i],trackErrorName:"GhCliNotInstalled"}}}return{title:(0,e.jsx)(e.Fragment,{children:"Failed to fetch Diffs"}),error:r,trackErrorName:"DiffFetchFailed"}}}(v.ip.get(),t,P.get().error);return null==n?null:(0,e.jsx)(qr,{info:n})})),qr=(0,s.Pi)((function(t){var n=t.info;return vt((function(){null!=n.trackErrorName&&c.error("TopLevelErrorShown",n.trackErrorName,n.error)}),1e3,[n.trackErrorName,n.error]),(0,e.jsx)(ft.Wq,{title:n.title,error:n.error,buttons:n.buttons})})),$r=(0,C.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedUpgradePrompt",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchUpgradePrompt"})}))}]}),Yr=a.LO.box(null,{deep:!1}),Wr=(0,s.Pi)((function(){var n,r=Yr.get(),i=(0,t.useRef)(null),a=function(){(null==r?void 0:r.visible)&&(r.deferred.resolve(void 0),Yr.set(Object.assign(Object.assign({},r),{visible:!1})))};if(Qe("Escape",a),(0,t.useEffect)((function(){(null==r?void 0:r.visible)&&null!=i.current&&i.current.focus()}),[i,null==r?void 0:r.visible]),!0!==(null==r?void 0:r.visible))return null;if("confirm"===r.config.type){var s=r.config;n=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Object.assign({id:"use-modal-message"},{children:s.message})),(0,e.jsx)("div",Object.assign({className:"use-modal-buttons"},{children:s.buttons.map((function(t,n){var a="object"==typeof t?t.label:t,s="object"==typeof t&&null!=t.primary;return(0,e.jsx)(o.vD,Object.assign({appearance:s?"primary":"secondary",onClick:function(){r.deferred.resolve(t),Yr.set(Object.assign(Object.assign({},r),{visible:!1}))},ref:s?i:void 0},{children:a}),n)}))}))]})}else if("custom"===r.config.type){var l=r.config.component;n=(0,e.jsx)(l,{returnResultAndDismiss:function(e){r.deferred.resolve(e),Yr.set(Object.assign(Object.assign({},r),{visible:!1}))}})}return(0,e.jsxs)(or,Object.assign({height:"fit-content",className:"use-modal","aria-labelledby":"use-modal-title","aria-describedby":"use-modal-message",dismiss:a},{children:[(0,e.jsxs)("div",Object.assign({id:"use-modal-title"},{children:[null!=r.config.icon?(0,e.jsx)(p.J,{icon:r.config.icon,size:"M"}):null,"string"==typeof r.config.title?(0,e.jsx)("span",{children:r.config.title}):r.config.title]})),n]}))}));(0,s.Pi)((function(){return Qe("ToggleSidebar",(0,a.aD)((function(){var e=ie.get();ie.set(Object.assign(Object.assign({},e),{right:Object.assign(Object.assign({},e.right),{collapsed:!e.right.collapsed})}))}))),(0,e.jsxs)(ur,Object.assign({drawerState:ie,right:(0,e.jsx)(Bn,{}),errorBoundary:ft.SV},{children:[(0,e.jsx)(Jr,{}),(0,e.jsx)(y,{})]}))}));var Jr=(0,s.Pi)((function(){var n=v.ip.get(),r=$r.get(),i=r.indexOf(":")+1,a=function(){var e=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=e.current;if(null!=t){var n=new ResizeObserver((function(e){var t=(0,f.Z)(e,1)[0];fr.set(t.contentRect.width)}));return n.observe(t),function(){return n.unobserve(t)}}}),[e]),e}();return(0,e.jsxs)("div",Object.assign({className:"main-content-area",ref:a},{children:[(0,e.jsx)(Kr,{}),r?(0,e.jsx)(d,{title:r.substring(0,i||void 0),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){K.J.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Upgrade docs"})}),"help-button")]}):null,null!=n&&"success"!==n.type?(0,e.jsx)(Gr,{repoError:n}):(0,e.jsx)(Jn,{})]}))})),Gr=(0,s.Pi)((function(t){var n,r=t.repoError;return vt((function(){switch(r.type){case"cwdNotARepository":c.track("UIEmptyState",{extras:{cwd:r.cwd},errorName:"InvalidCwd"});break;case"invalidCommand":c.track("UIEmptyState",{extras:{command:r.command},errorName:"InvalidCommand"});break;case"unknownError":c.error("UIEmptyState","RepositoryError",r.error)}}),1e3,[r]),null!=r&&(n="cwdNotARepository"===r.type?(0,e.jsxs)(dr.u,{children:[(0,e.jsx)("div",{children:(0,e.jsx)(e.Fragment,{children:"Not a valid repository"})}),(0,e.jsxs)("p",{children:[(0,e.jsx)("code",{children:r.cwd})," is not a valid Graphite repository. Clone or init a repository to use GTI."]})]}):"invalidCommand"===r.type?(0,e.jsx)(ft.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Could not find Graphite CLI"}),hideExpand:!0,buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()}},{children:(0,e.jsx)(e.Fragment,{children:"Reload"})}),"reload-button"),(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){K.J.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"See installation docs"})}),"help-button")]}):"invalidVersion"===r.type?(0,e.jsx)(ft.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Graphite CLI update required"}),error:new Error("While Graphite CLI was found, it is installed at version ".concat(r.versionFound,", and version ").concat(r.versionRequired," is required.")),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()}},{children:(0,e.jsx)(e.Fragment,{children:"Reload"})}),"reload-button"),(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){K.J.openExternalLink("https://graphite.dev/docs/updating-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"See upgrade docs"})}),"help-button")],hideExpand:!0}):(0,e.jsx)(ft.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Something went wrong"}),error:r.error})),(0,e.jsx)("div",Object.assign({className:"empty-app-state"},{children:n}))}));i.createRoot(document.getElementById("root")).render((0,e.jsx)((function(){return(0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(hr.s,{children:(0,e.jsx)(Ge,{children:(0,e.jsxs)(ft.SV,{children:[(0,e.jsx)(Hr,{}),(0,e.jsx)(Jr,{}),(0,e.jsx)(y,{}),(0,e.jsx)("div",{className:"tooltip-root-container","data-testid":"tooltip-root-container"}),(0,e.jsx)(lr,{}),(0,e.jsx)(Wr,{}),(0,e.jsx)(U,{})]})})})})}),{}))}(),r}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GraphiteInteractive=t():e.GraphiteInteractive=t()}(self,(function(){return function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),i=n(6860),o=n(379),a=n(8206);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},7757:function(e,t,n){e.exports=n(9727)},2474:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(184);function i(e){var t=e.children;return(0,r.jsx)("div",Object.assign({className:"empty-state"},{children:(0,r.jsx)("div",{children:t})}))}},6815:function(e,t,n){"use strict";n.d(t,{SV:function(){return f},Wq:function(){return d}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(885),u=n(184),l=n(2791),c=n(51);function d(e){var t,n=e.title,r=e.description,i=e.error,o=e.buttons,a=e.hideExpand,d=(0,l.useState)(!1),f=(0,s.Z)(d,2),h=f[0],p=f[1],v=null!=r?r:null==i?void 0:i.message;return(0,u.jsxs)("div",Object.assign({className:"error-notice",onClick:function(){return!a&&p((function(e){return!e}))}},{children:[(0,u.jsxs)("div",Object.assign({className:"error-notice-left"},{children:[a?null:(0,u.jsx)("div",Object.assign({className:"error-notice-arrow"},{children:(0,u.jsx)(c.J,{icon:h?"triangle-down":"triangle-right"})})),(0,u.jsxs)("div",Object.assign({className:"error-notice-content"},{children:[(0,u.jsx)("span",Object.assign({className:"error-notice-title"},{children:n})),v?(0,u.jsx)("span",Object.assign({className:"error-notice-byline"},{children:v})):null,h&&i?(0,u.jsx)("span",Object.assign({className:"error-notice-stack-trace"},{children:null!==(t=i.stack)&&void 0!==t?t:i.message})):null]}))]})),o?(0,u.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:o})):null]}))}n(6287);var f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).state={error:null},i}return(0,i.Z)(n,[{key:"render",value:function(){return null!=this.state.error?(0,u.jsx)(d,{title:"Something went wrong",error:this.state.error}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),n}(l.Component)},51:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(184),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e){var t=e.icon,n=e.size,o=e.slot,a=i(e,["icon","size","slot"]);return(0,r.jsx)("div",Object.assign({slot:o,className:"codicon codicon-".concat(t," icon-size-").concat(null!=n?n:"S")},a))}},6287:function(e,t,n){"use strict";n.d(t,{cf:function(){return l},u:function(){return c}});var r,i=n(885),o=n(184),a=n(5281),s=n(2791),u=n(4164),l=750;function c(e){var t=e.children,n=e.title,r=e.component,a=e.placement,u=e.trigger,l=e.delayMs,c=e.shouldShow,h=e.inline,p=null!=u?u:"hover",v=null!=a?a:"top",g=(0,s.useState)(!1),m=(0,i.Z)(g,2),y=m[0],b=m[1],_=(0,s.useRef)(null);(0,s.useEffect)((function(){"boolean"==typeof c&&b(c)}),[c]),(0,s.useEffect)((function(){if("click"===p&&y){var e=function(e){d(e)||b(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}}),[y,b,p]),(0,s.useEffect)((function(){if(y){var e=function(e){"keyup"===e.type?"Escape"===e.key&&b(!1):"resize"!==e.type&&d(e)||b(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[y,b]),(0,s.useLayoutEffect)((function(){if("hover"===p||"click"===p&&null!=n){var e=function(){return b((function(e){return"click"!==p||(!0===e?e:"title")}))},t=function(){return b((function(e){return"click"===p&&!0===e&&e}))},r=_.current;return null==r||r.addEventListener("mouseenter",e),null==r||r.addEventListener("mouseleave",t),function(){null==r||r.removeEventListener("mouseenter",e),null==r||r.removeEventListener("mouseleave",t)}}}),[p,n]);var w="click"===p&&!0===y?0:l;return(0,o.jsxs)("div",Object.assign({className:"tooltip-creator ".concat(h?"tooltip-creator-inline":""),ref:_,onClick:"click"===p?function(e){!0===y&&d(e)||(b((function(e){return!0!==e})),e.stopPropagation())}:void 0},{children:[y&&_.current&&(0,o.jsx)(f,Object.assign({delayMs:w,element:_.current,placement:v},{children:"title"===y||null==r?n:r((function(){return b(!1)}))})),t]}))}function d(e){return null!=(0,a.findParentWithClassName)(e.target,"tooltip")}function f(e){var t,n,r=e.element,a=e.placement,l=e.children,c=e.delayMs,d=r.getBoundingClientRect(),f=(0,s.useRef)(null),p=function(e,t){var n=(0,s.useState)({width:0,height:0}),r=(0,i.Z)(n,2),o=r[0],a=r[1];return(0,s.useLayoutEffect)((function(){var t=e.current;if(null!=t){var n=function(){a({width:t.offsetWidth,height:t.offsetHeight})};n();var r=new ResizeObserver((function(e){e.forEach((function(e){e.target===t&&n()}))}));return r.observe(t),function(){return r.disconnect()}}}),[e,t]),o}(f,l),v=function(e,t,n){switch(e){case"top":var r=t.top-5-n.height,i=t.left+t.width/2-n.width/2;return r<0?{top:t.top+t.height+5,left:i,autoPlacement:"bottom"}:{top:r,left:i};case"bottom":return{top:t.top+t.height+5,left:t.left+t.width/2-n.width/2};case"left":return{top:t.top+t.height/2-n.height/2,left:t.left-n.width-5};case"right":return{top:t.top+t.height/2-n.height/2,left:t.right+5}}}(a,d,p),g=function(e,t,n){var r={top:0,left:0},i=document.body.getBoundingClientRect();if("right"===e||"left"===e){var o=t.top-5,a=t.top+5+n.height;o<i.top?r.top=i.top-o:a>i.top+i.height&&(r.top=i.top+i.height-a)}else{var s=t.left-5,u=t.left+5+n.width;s<i.left?r.left=i.left-s:u>i.right&&(r.left=i.left+i.width-u)}return r}(n=null!==(t=v.autoPlacement)&&void 0!==t?t:a,v,p),m=document.body.getBoundingClientRect(),y={animationDelay:c?"".concat(c,"ms"):void 0};return v.left>m.width/2?y.right=m.width-(v.left+g.left+p.width):y.left=v.left+g.left,v.top>m.height/2?y.bottom=m.height-(v.top+g.top+p.height):y.top=v.top+g.top,u.createPortal((0,o.jsxs)("div",Object.assign({ref:f,role:"tooltip",className:"tooltip tooltip-".concat(n)+("string"==typeof l?" simple-text-tooltip":""),style:y},{children:[(0,o.jsx)("div",{className:"tooltip-arrow tooltip-arrow-".concat(n),style:{transform:"translate(".concat(-g.left,"px, ").concat(-g.top,"px)")}}),l]})),h(r))}var h=function(e){if(r)return r;var t=(0,a.unwrap)((0,a.findParentWithClassName)(e,"gti-root"));return r=(0,a.unwrap)(t.querySelector(".tooltip-root-container"))}},8122:function(e,t,n){"use strict";n.d(t,{s:function(){return f},X:function(){return d}});var r,i,o,a=n(184),s=n(32),u=n(1485),l=n(4447),c="gti-color-theme",d=(0,u.u)({default:null!==(o=null!==(i=null===(r=l.J.theme)||void 0===r?void 0:r.getTheme())&&void 0!==i?i:localStorage.getItem(c))&&void 0!==o?o:"dark",setter:function(e){localStorage.setItem(c,e)},effects:[function(e){var t,n=e.setSelf,r=null===(t=l.J.theme)||void 0===t?void 0:t.onDidChangeTheme((function(e){n(e)}));return function(){return null==r?void 0:r.dispose()}}]}),f=(0,s.Pi)((function(e){var t=e.children,n=d.get();return(0,a.jsx)("div",Object.assign({className:"gti-root ".concat(n,"-theme")},{children:t}))}))},3336:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=console},7338:function(e,t,n){"use strict";function r(e){var t=e.genKey,n=e.genValue,r={};return function(e){var i=t(e);return i in r||(r[i]=n(e)),r[i]}}n.d(t,{N:function(){return r}})},1485:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(5671),i=n(3144),o=n(7762),a=n(4098);function s(e){var t=new u(e.default,e.setter);if(e.effects){var n,r=(0,o.Z)(e.effects);try{for(r.s();!(n=r.n()).done;)(0,n.value)({setSelf:t.set})}catch(e){r.e(e)}finally{r.f()}}return t}var u=function(){function e(t,n){(0,r.Z)(this,e),this.setter=n,this.value=t,(0,a.rC)(this,{value:a.LO.ref,set:a.aD.bound})}return(0,i.Z)(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value="function"==typeof e?e(this.get()):e,this.setter&&this.setter(this.value)}}]),e}()},4447:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r,i=n(1828),o={platformName:"browser",confirm:function(e,t){var n=window.confirm(e+"\n"+(null!=t?t:""));return Promise.resolve(n)},openFile:function(e,t){i.H.postMessage({type:"platform/openFile",path:e,options:t})},openExternalLink:function(e){window.open(e,"_blank")},clipboardCopy:function(e){navigator.clipboard.writeText(e)}},a=null!==(r=window.gtiPlatform)&&void 0!==r?r:o;window.gtiPlatform=a},5288:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(5281),i=n(4098).LO.box({comparison:{type:r.ComparisonType.UncommittedChanges},visible:!1},{deep:!1})},1828:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(5671),i=n(3144),o=n(5281),a=n(4975),s=new(function(){function e(){var t=this;(0,r.Z)(this,e),this.listenersByType=new Map,this.incomingListener=a.j.onMessage((function(e){var n=(0,o.deserializeFromString)(e.data),r=n.type,i=t.listenersByType.get(r);i&&i.forEach((function(e){return e(n)}))})),this.cwdChangeHandlers=[]}return(0,i.Z)(e,[{key:"dispose",value:function(){this.incomingListener.dispose()}},{key:"onMessageOfType",value:function(e,t){var n=this,r=this.listenersByType.get(e);return null==r&&(r=new Set,this.listenersByType.set(e,r)),null==r||r.add(t),{dispose:function(){var r=n.listenersByType.get(e);r&&r.delete(t)}}}},{key:"nextMessageMatching",value:function(e,t){var n=(0,o.defer)(),r=this.onMessageOfType(e,(function(e){t(e)&&(null==r||r.dispose(),r=null,n.resolve(e))}));return n.promise}},{key:"postMessage",value:function(e){a.j.postMessage((0,o.serializeToString)(e))}},{key:"postMessageWithPayload",value:function(e,t){a.j.postMessage((0,o.serializeToString)(Object.assign(Object.assign({},e),{hasBinaryPayload:!0}))),a.j.postMessage(t)}},{key:"onConnectOrReconnect",value:function(e){var t=!0,n=void 0,r=a.j.onChangeStatus((function(r){"reconnecting"===r.type?t=!0:"open"===r.type&&(t&&(n=e()),t=!1)}));return function(){r.dispose(),"function"==typeof n&&(null==n||n())}}},{key:"onCwdChanged",value:function(e){var t=this;return this.cwdChangeHandlers.push(e),function(){t.cwdChangeHandlers.splice(t.cwdChangeHandlers.indexOf(e),1)}}},{key:"cwdChanged",value:function(){this.cwdChangeHandlers.forEach((function(e){return e()}))}},{key:"onSetup",value:function(e){var t=this.onConnectOrReconnect(e),n=this.onCwdChanged(e);return function(){t(),n()}}}]),e}());window.clientToServerAPI=s},4975:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r=n(7762),i=n(5671),o=n(3144),a=n(5281),s=n(3336),u=n(7622),l="undefined"!=typeof acquireVsCodeApi?acquireVsCodeApi():null,c=function(){function e(t){(0,i.Z)(this,e),this.vscode=t}return(0,o.Z)(e,[{key:"onMessage",value:function(e){return window.addEventListener("message",e),{dispose:function(){return window.removeEventListener("message",e)}}}},{key:"onChangeStatus",value:function(e){return e({type:"open"}),{dispose:function(){}}}},{key:"postMessage",value:function(e){this.vscode.postMessage(e)}}]),e}(),d=function(){function e(t,n){(0,i.Z)(this,e),this.host=t,this.WebSocketType=n,this.status={type:"initializing"},this.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,this.queuedMessages=[],this.handlers=[],this.statusChangeHandlers=[],this.disposed=!1,this.websocket=this.startConnection()}return(0,o.Z)(e,[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,this.websocket.close())}},{key:"startConnection",value:function(){var t,n=this,i=new URL("ws://".concat(this.host,"/ws")),o=u.l.get("token");o&&i.searchParams.append("token",o);var l=u.l.get("cwd");if(l){var c=decodeURIComponent(l);i.searchParams.append("cwd",c)}var d=null===(t=window.gtiPlatform)||void 0===t?void 0:t.platformName;return d&&i.searchParams.append("platform",d),this.websocket=new this.WebSocketType(i.href),this.websocket.addEventListener("open",(function(t){for(s.k.info("websocket open",t),n.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,n.websocket.addEventListener("message",(function(e){var t,i=(0,r.Z)(n.handlers);try{for(i.s();!(t=i.n()).done;)(0,t.value)(e)}catch(e){i.e(e)}finally{i.f()}}));n.queuedMessages.length>0;){var i=n.queuedMessages[0];n.websocket.send(i),n.queuedMessages.shift()}n.setStatus({type:"open"})})),this.websocket.addEventListener("close",(function(e){e.code!==a.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE?n.disposed||n.scheduleReconnect():n.setStatus({type:"error",error:e.reason})})),this.websocket}},{key:"setStatus",value:function(e){this.status=e,this.statusChangeHandlers.forEach((function(t){return t(e)}))}},{key:"scheduleReconnect",value:function(){var t=this;this.setStatus({type:"reconnecting"}),s.k.info("websocket connecion closed. Retrying in ".concat(this.exponentialReconnectDelay,"ms")),setTimeout((function(){t.startConnection()}),this.exponentialReconnectDelay),this.exponentialReconnectDelay=Math.min(2*this.exponentialReconnectDelay,e.MAX_RECONNECT_CHECK_TIME_MS)}},{key:"onMessage",value:function(e){var t=this;return this.handlers.push(e),{dispose:function(){var n=t.handlers.indexOf(e);-1!==n&&t.handlers.splice(n,1)}}}},{key:"postMessage",value:function(e){"open"===this.status.type?this.websocket.send(e):this.queuedMessages.push(e)}},{key:"onChangeStatus",value:function(e){var t=this;return this.statusChangeHandlers.push(e),e(this.status),{dispose:function(){var n=t.statusChangeHandlers.indexOf(e);-1!==n&&t.statusChangeHandlers.splice(n,1)}}}}]),e}();d.MAX_RECONNECT_CHECK_TIME_MS=6e4,d.DEFAULT_RECONNECT_CHECK_TIME_MS=100;var f=null!=l?new c(l):new d(location.host,WebSocket)},8194:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(1485),i=n(1828),o=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,r.u)({default:n,setter:function(e){i.H.postMessage({type:"setConfig",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,r=i.H.onMessageOfType("gotConfig",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return r.dispose()}},function(){var e=i.H.onConnectOrReconnect((function(){i.H.postMessage({type:"getConfig",name:t})}));return function(){return e()}}]})}},5729:function(e,t,n){"use strict";n.d(t,{SG:function(){return f},XI:function(){return d},t9:function(){return c}});var r=n(7762),i=n(2982),o=n(885),a=n(7757),s=n.n(a),u=s().mark(d),l=function(e,t){return new Date(t.date).getTime()-new Date(e.date).getTime()};function c(e){var t=new Map;return e.forEach((function(e){var n=(0,o.Z)(e.parents,1)[0];if(n){var r=t.get(n);r||(r=new Set,t.set(n,r)),r.add(e)}})),e.filter((function(e){return e.partOfTrunk||0===e.parents.length})).sort(l).map((function e(n){var r,o=n.branch,a=null!==(r=t.get(o))&&void 0!==r?r:[],s=(0,i.Z)(a).sort(l);return{info:n,children:null==s?[]:s.filter((function(e){return!e.partOfTrunk})).map(e)}}))}function d(e){var t,n,i;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,r.Z)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=11;break}if(!((i=n.value).children.length>0)){o.next=7;break}return o.delegateYield(d(i.children),"t0",7);case 7:return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),t.e(o.t1);case 16:return o.prev=16,t.f(),o.finish(16);case 19:case"end":return o.stop()}}),u,null,[[1,13,16,19]])}function f(e,t){var n,i=(0,r.Z)(d([t]));try{for(i.s();!(n=i.n()).done;)if(n.value.info.branch===e)return!0}catch(e){i.e(e)}finally{i.f()}return!1}},2104:function(e,t,n){"use strict";n.d(t,{Es:function(){return R},JC:function(){return T},Mh:function(){return y},OR:function(){return w},Qz:function(){return H},R0:function(){return P},SC:function(){return x},WK:function(){return L},YI:function(){return j},ZB:function(){return S},b8:function(){return q},c$:function(){return A},cC:function(){return _},cM:function(){return m},gi:function(){return C},il:function(){return z},ip:function(){return g},lp:function(){return D},p7:function(){return k},ql:function(){return I},uB:function(){return N},ui:function(){return b},wH:function(){return K},wf:function(){return M},xn:function(){return U},zV:function(){return V}});var r=n(2982),i=n(7762),o=n(5281),a=n(4098),s=n(2791),u=n(1485),l=n(1828),c=n(8194),d=n(5729),f=n(4975),h=n(7622),p={smartlogCommits:"",uncommittedChanges:"",mergeConflicts:""},v=(0,u.u)({default:{info:void 0,cwd:void 0},effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("repoInfo",(function(e){t({info:e.info,cwd:e.cwd})}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestRepoInfo"})}))}]}),g=(0,a.Fl)((function(){var e=v.get();return null==e?void 0:e.info}),{set:function(e){v.set((function(t){return Object.assign(Object.assign({},t),{info:e})}))}}),m=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("applicationInfo",(function(e){t(e)}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestApplicationInfo"})}))}]}),y=(0,u.u)({default:{type:"initializing"},effects:[function(e){var t=e.setSelf,n=f.j.onChangeStatus(t);return function(){return n.dispose()}}]}),b=(0,a.Fl)((function(){var e,t,n=v.get();return null!==(t=null!==(e=null==n?void 0:n.cwd)&&void 0!==e?e:h.l.get("cwd"))&&void 0!==t?t:""})),_=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,files:[]},effects:[E("uncommittedChanges",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{files:null!==(r=null!==(n=e.files.value)&&void 0!==n?n:t.files)&&void 0!==r?r:[],error:e.files.error})}))}))]}),w=(0,a.Fl)((function(){return _.get().files})),k=(0,a.Fl)((function(){return _.get().error})),x=(0,u.u)({default:void 0,effects:[E("mergeConflicts",(function(e,t){(0,t.setSelf)(e)}))]}),C=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[E("smartlogCommits",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{commits:null!==(r=null!==(n=e.commits.value)&&void 0!==n?n:t.commits)&&void 0!==r?r:[],error:e.commits.error})}))}))]}),O=(0,a.Fl)((function(){return C.get().commits})),S=(0,a.Fl)((function(){return C.get().error}));function E(e,t){return function(n){var r=(0,o.randomId)();p[e]=r;var i=l.H.onMessageOfType("subscriptionResult",(function(i){i.subscriptionID===r&&i.kind===e&&t(i.data,n)})),a=l.H.onSetup((function(){return l.H.postMessage({type:"subscribe",kind:e,subscriptionID:r}),function(){return l.H.postMessage({type:"unsubscribe",kind:e,subscriptionID:r})}}));return function(){i.dispose(),a()}}}(0,a.Fl)((function(){var e=new Map;return O.get().forEach((function(t){e.set(t.branch,t)})),e})),(0,c.X)({config:"gti.experimental-features",default:null});var j=(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(){t(!1)})),l.H.onMessageOfType("beganFetchingSmartlogCommitsEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),A=(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"smartlogCommits"===e.kind&&t(!1)})),l.H.onMessageOfType("beganLoadingMoreCommits",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),T=(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"uncommittedChanges"===e.kind&&t(!1)})),l.H.onMessageOfType("beganFetchingUncommittedChangesEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),R=(0,u.u)({default:o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD)}))},function(e){var t=e.setSelf,n=[l.H.onMessageOfType("commitsShownRange",(function(e){t(e.rangeInDays)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),D=(0,a.Fl)((function(){var e=O.get();return(0,d.t9)(e)})),I=(0,a.Fl)((function(){return O.get().find((function(e){return e.isHead}))})),N=(0,a.Fl)((function(){var e,t=D.get(),n=new Map,r=(0,i.Z)((0,d.XI)(t));try{for(r.s();!(e=r.n()).done;){var o=e.value;n.set(o.info.branch,o)}}catch(e){r.e(e)}finally{r.f()}return n})),P=(0,a.Fl)((function(){return O.get().length>0})),M=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(void 0)}))}]}),L=(0,a.Fl)((function(){var e=g.get();return"success"===(null==e?void 0:e.type)&&"none"!==e.codeReviewSystem.type}));function Z(e,t){var n;if((null===(n=t.currentOperation)||void 0===n?void 0:n.operation.id)===e.id)return Object.assign({},t);var i=(0,r.Z)(t.operationHistory);null!=t.currentOperation&&i.push(t.currentOperation);var o={operation:e,startTime:new Date};return Object.assign(Object.assign({},t),{operationHistory:i,currentOperation:o})}var z=(0,u.u)({default:{currentOperation:void 0,operationHistory:[]},effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t({currentOperation:void 0,operationHistory:[]})}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"spawn":t((function(t){var n=t,r=F.get(e.id);return null==r?t:Z(r,n)}));break;case"stdout":case"stderr":t((function(t){var n;if(null==t)return t;var i=t.currentOperation;return i?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},i),{commandOutput:[].concat((0,r.Z)(null!==(n=null==i?void 0:i.commandOutput)&&void 0!==n?n:[]),[e.message])})}):t}));break;case"exit":t((function(t){if(null==t)return t;var n=t.currentOperation;return n?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},n),{exitCode:e.exitCode,endTime:new Date(e.timestamp)})}):t}))}}));return function(){return n.dispose()}}]}),F=new Map,V=(0,u.u)({default:[],effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t([])}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"queue":case"spawn":t((function(){return e.queue.map((function(e){return F.get(e)})).filter((function(e){return null!=e}))}));break;case"error":t((function(){return[]}));break;case"exit":t((function(t){return F.delete(e.id),null!=e.exitCode&&0!==e.exitCode?[]:t}))}}));return function(){return n.dispose()}}]});function B(e){l.H.postMessage({type:"runOperation",operation:{args:e.getArgs(),id:e.id,stdin:e.getStdin(),runner:e.runner,trackEventName:e.trackEventName}}),F.set(e.id,e);var t=z.get();if(null!=(null==t?void 0:t.currentOperation)&&null==t.currentOperation.exitCode){var n=V.get();V.set([].concat((0,r.Z)(n||[]),[e]))}else z.set((function(t){return Z(e,t)}))}function H(){return(0,s.useCallback)((function(e){B(e)}),[])}function U(){return(0,s.useCallback)((function(e){var t,n;l.H.postMessage({type:"abortRunningOperation",operationId:e});var r=z.get();(null===(n=null===(t=null==r?void 0:r.currentOperation)||void 0===t?void 0:t.operation)||void 0===n?void 0:n.id)===e&&z.set((function(e){var t=e.currentOperation;return null!=t?Object.assign(Object.assign({},e),{currentOperation:Object.assign({aborting:!0},t)}):e}))}),[])}function K(){return(0,s.useCallback)((function(e){if(e)M.set(void 0);else{var t=M.get();M.set(void 0),t&&B(t)}}),[])}function q(){return(0,s.useCallback)((function(){z.set((function(e){for(var t=(0,r.Z)(e.operationHistory),n=0;n<t.length;n++)null!=t[n].exitCode&&(t[n].hasCompletedOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedOptimisticState:!0})),t[n].hasCompletedUncommittedChangesOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedUncommittedChangesOptimisticState:!0})),t[n].hasCompletedMergeConflictsOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedMergeConflictsOptimisticState:!0})));var i=null==e.currentOperation?void 0:Object.assign({},e.currentOperation);return null!=(null==i?void 0:i.exitCode)&&(i.hasCompletedOptimisticState=!0,i.hasCompletedUncommittedChangesOptimisticState=!0,i.hasCompletedMergeConflictsOptimisticState=!0),{currentOperation:i,operationHistory:t}}))}),[])}},7622:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(2982),i=n(3336),o="GTIInitialParams",a=function(){var e;if(window.location.search&&(e=new Map((0,r.Z)(new URLSearchParams(window.location.search).entries())),i.k.log("Loaded initial params from URL: ",e),"browser"===function(){var e,t;return null!==(t=null===(e=window.gtiPlatform)||void 0===e?void 0:e.platformName)&&void 0!==t?t:"browser"}())){try{localStorage.setItem(o,JSON.stringify((0,r.Z)(e.entries())))}catch(e){i.k.log("Failed to save initial params to local storage",e)}window.history.replaceState({},document.title,window.location.pathname),i.k.log("Saved initial params to local storage")}if(!e)try{var t=localStorage.getItem(o);e=new Map(t?JSON.parse(t):[]),i.k.log("Loaded initial params from local storage: ",e)}catch(e){i.k.log("Failed to load initial params from local storage",e)}return null!=e?e:new Map}()},8262:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},32:function(e,t,n){"use strict";n.d(t,{Pi:function(){return x}});var r=n(4098),i=n(2791);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.rC)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(4164);function a(e){return(0,r.Gf)(e)}var s="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function u(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+l}}var l=1e4,c=s?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=u(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(s):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=u(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),d=c.addReactionToTrack,f=c.recordReactionAsCommitted,h=(c.resetCleanupScheduleForTests,c.forceCleanupTimerToRunNowForTests,!1);function p(){return h}var v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function g(e){return"observer".concat(e)}var m=function(){};function y(){return new m}function b(e,t){if(void 0===t&&(t="observed"),p())return e();var n=v(i.useState(y),1)[0],o=v(i.useState(),2)[1],s=function(){return o([])},u=i.useRef(null);if(!u.current)var l=new r.le(g(t),(function(){c.mounted?s():c.changedBeforeMount=!0})),c=d(u,l,n);var h,m,b=u.current.reaction;if(i.useDebugValue(b,a),i.useEffect((function(){return f(u),u.current?(u.current.mounted=!0,u.current.changedBeforeMount&&(u.current.changedBeforeMount=!1,s())):(u.current={reaction:new r.le(g(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}}),[]),b.track((function(){try{h=e()}catch(e){m=e}})),m)throw m;return h}var _="function"==typeof Symbol&&Symbol.for,w=_?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,k=_?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function x(e,t){var n;if(k&&e.$$typeof===k)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(p())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(w&&e.$$typeof===w&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,l=function(e,t){return b((function(){return o(e,t)}),a)};return""!==a&&(l.displayName=a),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,i.forwardRef)(l)),l=(0,i.memo)(l),s=e,u=l,Object.keys(s).forEach((function(e){O[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))})),l}var C,O={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(C=o.unstable_batchedUpdates)||(C=function(e){e()}),(0,r.jQ)({reactionScheduler:C})},4098:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{EH:function(){return Rt},Ei:function(){return Sn},Fl:function(){return Te},Gf:function(){return Vt},LJ:function(){return In},LO:function(){return Se},M5:function(){return Jt},N7:function(){return tn},PS:function(){return nn},Pb:function(){return Hn},U5:function(){return Nt},XP:function(){return en},aD:function(){return Et},dw:function(){return Ft},eJ:function(){return Qt},jQ:function(){return zt},kS:function(){return nr},le:function(){return vt},rC:function(){return fn},so:function(){return H},vP:function(){return Dn},z:function(){return At}});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,l=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function p(){f||r("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function m(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function _(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function k(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function C(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function O(e){return e instanceof Map}function S(e){return e instanceof Set}var E=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function A(e){return null===e?null:"object"==typeof e?""+e:e}function T(e,t){return l.hasOwnProperty.call(e,t)}var R=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=s(e,n)})),t};function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function P(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var F=Symbol("mobx-stored-annotations");function V(e){return Object.assign((function(t,n){B(t,n,e)}),e)}function B(e,t,n){T(e,F)||k(e,F,N({},e[F])),function(e){return e.annotationType_===G}(n)||(e[F][t]=n)}var H=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return ht(this)},t.reportChanged=function(){dt(),pt(this),ft()},t.toString=function(){return this.name_},e}(),K=C("Atom",U);function q(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new U(e);return t!==g&&Lt(Pt,r,t,void 0),n!==g&&Mt(r,n),r}var $={identity:function(e,t){return e===t},structural:function(e,t){return or(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return or(e,t,1)}};function Y(e,t,n){return Xt(e)?e:Array.isArray(e)?Se.array(e,{name:n}):_(e)?Se.object(e,void 0,{name:n}):O(e)?Se.map(e,{name:n}):S(e)?Se.set(e,{name:n}):"function"!=typeof e||Tt(e)||Wt(e)?e:w(e)?$t(e):jt(n,e)}function W(e){return e}var G="override";function J(e,t){return{annotationType_:e,options_:t,make_:Q,extend_:X}}function Q(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Tt(n.value))return 1;var o=ee(e,this,t,n,!1);return u(r,t,o),2}function X(e,t,n,r){var i=ee(e,this,t,n);return e.defineProperty_(t,i,r)}function ee(e,t,n,r,i){var o,a,s,u,l,c,d,f;void 0===i&&(i=st.safeDescriptors),f=r,t.annotationType_,f.value;var h,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:Me(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),p,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re}}function ne(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!T(e.target_,t)||!Wt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Wt(n.value))return 1;var o=ie(e,this,0,n,!1,!1);return u(r,t,o),2}function re(e,t,n,r){var i,o=ie(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ie(e,t,n,r,i,o){var a;void 0===o&&(o=st.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return Wt(u)||(u=$t(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get}(0,this,0,n),e.defineComputedProperty_(t,N({},this.options_,{get:n.get,set:n.set}),r)}function ue(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ce}}function le(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Y,r)}var de=fe();function fe(e){return{annotationType_:"true",options_:e,make_:he,extend_:pe}}function he(e,t,n,r){var i,o,a,s;if(n.get)return Te.make_(e,t,n,r);if(n.set){var l=Me(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!st.safeDescriptors||e.isPlainObject_,set:l})?0:2:(u(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?$t.bound:$t).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?jt.bound:jt).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?Se.ref:Se;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function pe(e,t,n,r){var i,o,a;return n.get?Te.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!st.safeDescriptors||e.isPlainObject_,set:Me(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Se.ref:Se).extend_(e,t,n,r))}var ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(e){return e||ve}Object.freeze(ve);var me=ue("observable"),ye=ue("observable.ref",{enhancer:W}),be=ue("observable.shallow",{enhancer:function(e,t,n){return null==e||Hn(e)||Sn(e)||In(e)||Mn(e)?e:Array.isArray(e)?Se.array(e,{name:n,deep:!1}):_(e)?Se.object(e,void 0,{name:n,deep:!1}):O(e)?Se.map(e,{name:n,deep:!1}):S(e)?Se.set(e,{name:n,deep:!1}):void 0}}),_e=ue("observable.struct",{enhancer:function(e,t){return or(e,t)?t:e}}),we=V(me);function ke(e){return!0===e.deep?Y:!1===e.deep?W:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Y}(e.defaultDecorator)}function xe(e,t,n){if(!y(t))return Xt(e)?e:_(e)?Se.object(e,t,n):Array.isArray(e)?Se.array(e,t):O(e)?Se.map(e,t):S(e)?Se.set(e,t):"object"==typeof e&&null!==e?e:Se.box(e,t);B(e,t,me)}Object.assign(xe,we);var Ce,Oe,Se=a(xe,{box:function(e,t){var n=ge(t);return new Be(e,ke(n),n.name,!0,n.equals)},array:function(e,t){var n=ge(t);return(!1===st.useProxies||!1===n.proxy?er:mn)(e,ke(n),n.name)},map:function(e,t){var n=ge(t);return new Dn(e,ke(n),n.name)},set:function(e,t){var n=ge(t);return new Pn(e,ke(n),n.name)},object:function(e,t,n){return Ft(!1===st.useProxies||!1===(null==n?void 0:n.proxy)?Fn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=Fn(e,t))[H]).proxy_)?r:n.proxy_=new Proxy(e,on)}({},n),e,t)},ref:V(ye),shallow:V(be),deep:we,struct:V(_e)}),Ee="computed",je=oe(Ee),Ae=oe("computed.struct",{equals:$.structural}),Te=function(e,t){if(y(t))return B(e,t,je);if(_(e))return V(oe(Ee,e));var n=_(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ke(n)};Object.assign(Te,je),Te.struct=V(Ae);var Re,De=0,Ie=1,Ne=null!=(Ce=null==(Oe=s((function(){}),"name"))?void 0:Oe.configurable)&&Ce,Pe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Me(e,t,n,r){function i(){return Le(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Ne&&(Pe.value=e,Object.defineProperty(i,"name",Pe)),i}function Le(e,t,n,i,o){var a=function(e,t,n,r){var i=st.trackingDerivation,o=!t||!i;dt();var a=st.allowStateChanges;o&&(Xe(),a=ze(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:tt(!0),notifySpy_:!1,startTime_:0,actionId_:Ie++,parentActionId_:De};return De=s.actionId_,s}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){De!==e.actionId_&&r(30),De=e.parentActionId_,void 0!==e.error_&&(st.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),nt(e.prevAllowStateReads_),ft(),e.runAsAction_&&et(e.prevDerivation_),st.suppressReactionErrors=!1}(a)}}function Ze(e,t){var n=ze(e);try{return t()}finally{Fe(n)}}function ze(e){var t=st.allowStateChanges;return st.allowStateChanges=e,t}function Fe(e){st.allowStateChanges=e}Re=Symbol.toPrimitive;var Ve,Be=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=$.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}P(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==st.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(an(this)){var t=un(this,{object:this,type:pn,newValue:e});if(!t)return st.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?st.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),ln(this)&&dn(this,{type:pn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return sn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:pn,newValue:this.value_,oldValue:void 0}),cn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return A(this.get())},n[Re]=function(){return this.valueOf()},t}(U);Ve=Symbol.toPrimitive;var He,Ue,Ke=function(){function e(e){this.dependenciesState_=He.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new $e(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ue.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Me("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===He.UP_TO_DATE_&&(e.lowestObserverState_=He.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&(e.dependenciesState_=He.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==st.inBatch||0!==this.observers_.size||this.keepAlive_){if(ht(this),We(this)){var e=st.trackingContext;this.keepAlive_&&!e&&(st.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==He.STALE_&&(e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===He.POSSIBLY_STALE_?t.dependenciesState_=He.STALE_:t.dependenciesState_===He.UP_TO_DATE_&&(e.lowestObserverState_=He.UP_TO_DATE_)})))}(this),st.trackingContext=e}}else We(this)&&(this.warnAboutUntrackedRead_(),dt(),this.value_=this.computeValue_(!1),ft());var t=this.value_;if(Ye(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===He.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Ye(e)||Ye(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=ze(!1);if(e)t=Ge(this,this.derivation,this.scope_);else if(!0===st.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new $e(e)}return Fe(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Je(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Rt((function(){var o=n.get();if(!r||t){var a=Xe();e({observableKind:"computed",debugObjectName:n.name_,type:pn,object:n,newValue:o,oldValue:i}),et(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return A(this.get())},t[Ve]=function(){return this.valueOf()},e}(),qe=C("ComputedValue",Ke);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ue||(Ue={}));var $e=function(e){this.cause=void 0,this.cause=e};function Ye(e){return e instanceof $e}function We(e){switch(e.dependenciesState_){case He.UP_TO_DATE_:return!1;case He.NOT_TRACKING_:case He.STALE_:return!0;case He.POSSIBLY_STALE_:for(var t=tt(!0),n=Xe(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(qe(a)){if(st.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return et(n),nt(t),!0}if(e.dependenciesState_===He.STALE_)return et(n),nt(t),!0}}return rt(e),et(n),nt(t),!1}}function Ge(e,t,n){var r=tt(!0);rt(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++st.runId;var i,o=st.trackingDerivation;if(st.trackingDerivation=e,st.inBatch++,!0===st.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new $e(e)}return st.inBatch--,st.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=He.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&<(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,ut(l,e))}r!==He.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),nt(r),i}function Je(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)lt(t[n],e);e.dependenciesState_=He.NOT_TRACKING_}function Qe(e){var t=Xe();try{return e()}finally{et(t)}}function Xe(){var e=st.trackingDerivation;return st.trackingDerivation=null,e}function et(e){st.trackingDerivation=e}function tt(e){var t=st.allowStateReads;return st.allowStateReads=e,t}function nt(e){st.allowStateReads=e}function rt(e){if(e.dependenciesState_!==He.UP_TO_DATE_){e.dependenciesState_=He.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=He.UP_TO_DATE_}}var it=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ot=!0,at=!1,st=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ot=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new it).version&&(ot=!1),ot?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new it):(setTimeout((function(){at||r(35)}),1),new it)}();function ut(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function lt(e,t){e.observers_.delete(t),0===e.observers_.size&&ct(e)}function ct(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,st.pendingUnobservations.push(e))}function dt(){st.inBatch++}function ft(){if(0==--st.inBatch){mt();for(var e=st.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Ke&&n.suspend_())}st.pendingUnobservations=[]}}function ht(e){var t=st.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&st.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&st.inBatch>0&&ct(e),!1)}function pt(e){e.lowestObserverState_!==He.STALE_&&(e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=He.STALE_})))}var vt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=He.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ue.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,st.pendingReactions.push(this),mt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){dt(),this.isScheduled_=!1;var e=st.trackingContext;if(st.trackingContext=this,We(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}st.trackingContext=e,ft()}},t.track=function(e){if(!this.isDisposed_){dt(),this.isRunning_=!0;var t=st.trackingContext;st.trackingContext=this;var n=Ge(this,e,void 0);st.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Je(this),Ye(n)&&this.reportExceptionInDerivation_(n.cause),ft()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(st.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";st.suppressReactionErrors||console.error(n,e),st.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(dt(),Je(this),ft()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[H]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return st.trackingDerivation;case 1:return tr(e[0]);case 2:return tr(e[0],e[1])}}(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ue.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Ue.BREAK:Ue.LOG}(this,e)},e}(),gt=function(e){return e()};function mt(){st.inBatch>0||st.isRunningReactions||gt(yt)}function yt(){st.isRunningReactions=!0;for(var e=st.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}st.isRunningReactions=!1}var bt=C("Reaction",vt),_t="action",wt="autoAction",kt=J(_t),xt=J("action.bound",{bound:!0}),Ct=J(wt,{autoAction:!0}),Ot=J("autoAction.bound",{autoAction:!0,bound:!0});function St(e){return function(t,n){return m(t)?Me(t.name||"<unnamed action>",t,e):m(n)?Me(t,n,e):y(n)?B(t,n,e?Ct:kt):y(t)?V(J(e?wt:_t,{name:t,autoAction:e})):void 0}}var Et=St(!1);Object.assign(Et,kt);var jt=St(!0);function At(e){return Le(e.name,!1,e,this,void 0)}function Tt(e){return m(e)&&!0===e.isMobxAction}function Rt(e,t){var n,r;void 0===t&&(t=d);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=It(t),s=!1;i=new vt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new vt(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(jt,Ct),Et.bound=V(xt),jt.bound=V(Ot);var Dt=function(e){return e()};function It(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}function Nt(e,t,n){var r;void 0===n&&(n=d);var i,o,a,s,u=null!=(r=n.name)?r:"Reaction",l=Et(u,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=It(n),h=!0,p=!1,v=n.compareStructural?$.structural:n.equals||$.default,g=new vt(u,(function(){h||c?m():p||(p=!0,f(m))}),n.onError,n.requiresObservable);function m(){if(p=!1,!g.isDisposed_){var t=!1;g.track((function(){var n=Ze(!1,(function(){return e(g)}));t=h||!v(a,n),s=a,a=n})),(h&&n.fireImmediately||!h&&t)&&l(a,s,g),h=!1}}return g.schedule_(),g.getDisposer_()}var Pt="onBO";function Mt(e,t,n){return Lt("onBUO",e,t,n)}function Lt(e,t,n,r){var i="function"==typeof r?tr(t,n):tr(t),o=m(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Zt="always";function zt(e){!0===e.isolateGlobalState&&function(){if((st.pendingReactions.length||st.inBatch||st.isRunningReactions)&&r(36),at=!0,ot){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),st=new it}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(st.useProxies=t===Zt||"never"!==t&&"undefined"!=typeof Proxy),"ifavailable"===t&&(st.verifyProxies=!0),void 0!==n){var i=n===Zt?Zt:"observed"===n;st.enforceActions=i,st.allowStateChanges=!0!==i&&i!==Zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(st[t]=!!e[t])})),st.allowStateReads=!st.observableRequiresReaction,e.reactionScheduler&&function(e){var t=gt;gt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Ft(e,t,n,r){var i=R(t),o=Fn(e,r)[H];dt();try{j(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{ft()}return e}function Vt(e,t){return Bt(tr(e,t))}function Bt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Bt)),n}var Ht=0;function Ut(){this.message="FLOW_CANCELLED"}Ut.prototype=Object.create(Error.prototype);var Kt=te("flow"),qt=te("flow.bound",{bound:!0}),$t=Object.assign((function(e,t){if(y(t))return B(e,t,Kt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Ht,o=Et(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=Et(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function l(e){var t;a=void 0;try{t=Et(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!m(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return s.cancel=Et(r+" - runid: "+i+" - cancel",(function(){try{a&&Yt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Yt(n),e(new Ut)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Kt);function Yt(e){m(e.cancel)&&e.cancel()}function Wt(e){return!0===(null==e?void 0:e.isMobXFlow)}function Gt(e,t){if(void 0===t)return qe(e);if(!1===Hn(e))return!1;if(!e[H].values_.has(t))return!1;var n=tr(e,t);return qe(n)}function Jt(e){return Gt(e)}function Qt(e,t){return Gt(e,t)}function Xt(e){return function(e,t){return!!e&&(Hn(e)||!!e[H]||K(e)||bt(e)||qe(e))}(e)}function en(e){return Hn(e)?e[H].keys_():In(e)||Mn(e)?Array.from(e.keys()):Sn(e)?e.map((function(e,t){return t})):void r(5)}function tn(e,t,n,r){return m(n)?function(e,t,n,r){return nr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return nr(e).observe_(t,n)}(e,t,n)}function nn(e,t){void 0===t&&(t=void 0),dt();try{return e.apply(t)}finally{ft()}}function rn(e){return e[H]}$t.bound=V(qt);var on={has:function(e,t){return rn(e).has_(t)},get:function(e,t){return rn(e).get_(t)},set:function(e,t,n){var r;return!!y(t)&&(null==(r=rn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(t)&&(null==(n=rn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=rn(e).defineProperty_(t,n))||r},ownKeys:function(e){return rn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function an(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function sn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function un(e,t){var n=Xe();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{et(n)}}function ln(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=Xe(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);et(n)}}function fn(e,t,n){var r=Fn(e,n)[H];dt();try{null!=t||(t=function(e){return T(e,F)||k(e,F,N({},e[F])),e[F]}(e)),j(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ft()}return e}var hn="splice",pn="update",vn={get:function(e,t){var n=e[H];return t===H?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?T(yn,t)?yn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[H];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},gn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return sn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Xn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),an(this)){var o=un(this,{object:this.proxy_,type:hn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=ln(this),o=i||r?{observableKind:"array",object:this.proxy_,type:pn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&dn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=ln(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:hn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&dn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(an(this)){var o=un(this,{type:pn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function mn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),p();var i=new gn(n,t,r,!1);x(i.values_,H,i);var o=new Proxy(i.values_,vn);if(i.proxy_=o,e&&e.length){var a=ze(!0);i.spliceWithArray_(0,0,e),Fe(a)}return o}var yn={clear:function(){return this.splice(0)},replace:function(e){var t=this[H];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[H];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[H].spliceWithArray_(e,t,n)},push:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[H].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return st.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){st.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[H],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function bn(e,t){"function"==typeof Array.prototype[e]&&(yn[e]=t(e))}function _n(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function wn(e){return function(t,n){var r=this,i=this[H];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function kn(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}bn("concat",_n),bn("flat",_n),bn("includes",_n),bn("indexOf",_n),bn("join",_n),bn("lastIndexOf",_n),bn("slice",_n),bn("toString",_n),bn("toLocaleString",_n),bn("every",wn),bn("filter",wn),bn("find",wn),bn("findIndex",wn),bn("flatMap",wn),bn("forEach",wn),bn("map",wn),bn("some",wn),bn("reduce",kn),bn("reduceRight",kn);var xn,Cn,On=C("ObservableArrayAdministration",gn);function Sn(e){return b(e)&&On(e[H])}var En={},jn="add",An="delete";xn=Symbol.iterator,Cn=Symbol.toStringTag;var Tn,Rn,Dn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=En,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,m(Map)||r(18),this.keysAtom_=q("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Ze(!0,(function(){i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!st.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Be(this.has_(e),W,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Mt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(an(this)){var r=un(this,{type:n?pn:jn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,an(this)&&!un(this,{type:An,object:this,name:e}))return!1;if(this.has_(e)){var n=ln(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:An,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return nn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&dn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==st.UNCHANGED){var r=ln(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:pn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&dn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,nn((function(){var r,i=new Be(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ln(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:jn,object:this,name:e,newValue:t}:null;r&&dn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return ur({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return ur({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[xn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return In(e)&&(e=new Map(e)),nn((function(){_(e)?function(e){var t=Object.keys(e);if(!E)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):O(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;nn((function(){Qe((function(){for(var t,n=z(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return nn((function(){for(var n,i=function(e){if(O(e)||In(e))return e;if(Array.isArray(e))return new Map(e);if(_(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=z(t.data_.keys());!(n=s()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);o.set(u,l)}}for(var c,d=z(i.entries());!(c=d()).done;){var f=c.value,h=f[0],p=f[1],v=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var g=t.data_.get(h);o.set(h,g),v||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),y=o.keys(),b=m.next(),w=y.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=m.next(),w=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},I(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Cn,get:function(){return"Map"}}]),e}(),In=C("ObservableMap",Dn),Nn={};Tn=Symbol.iterator,Rn=Symbol.toStringTag;var Pn=function(){function e(e,t,n){void 0===t&&(t=Y),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Nn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,m(Set)||r(22),this.atom_=q(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;nn((function(){Qe((function(){for(var t,n=z(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,an(this)&&!un(this,{type:jn,object:this,newValue:e}))return this;if(!this.has(e)){nn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:jn,object:this,newValue:e}:null;n&&dn(this,r)}return this},t.delete=function(e){var t=this;if(an(this)&&!un(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return nn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&dn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return ur({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return ur({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Mn(e)&&(e=new Set(e)),nn((function(){Array.isArray(e)||S(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Tn]=function(){return this.values()},I(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Rn,get:function(){return"Set"}}]),e}(),Mn=C("ObservableSet",Pn),Ln=Object.create(null),Zn="remove",zn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=de),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=_(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Ke)return n.set(t),!0;if(an(this)){var r=un(this,{type:pn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==st.UNCHANGED){var i=ln(this),o=i?{type:pn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&dn(this,o)}return!0},t.get_=function(e){return st.trackingDerivation&&!T(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),T(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!st.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Be(e in this.target_,W,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[F])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Un(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Un(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{dt();var r=this.delete_(e);if(!r)return r;if(an(this)){var i=un(this,{object:this.proxy_||this.target_,name:e,type:jn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=N({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ft()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{dt();var i=this.delete_(e);if(!i)return i;if(an(this)){var o=un(this,{object:this.proxy_||this.target_,name:e,type:jn,newValue:t});if(!o)return null;t=o.newValue}var a=Bn(e),s={configurable:!st.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var l=new Be(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ft()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{dt();var r=this.delete_(e);if(!r)return r;if(an(this)&&!un(this,{object:this.proxy_||this.target_,name:e,type:jn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Bn(e),o={configurable:!st.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else u(this.target_,e,o);this.values_.set(e,new Ke(t)),this.notifyPropertyAddition_(e,void 0)}finally{ft()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!T(this.target_,e))return!0;if(an(this)&&!un(this,{object:this.proxy_||this.target_,name:e,type:Zn}))return null;try{var n,r;dt();var i,o=ln(this),a=this.values_.get(e),u=void 0;if(!a&&o&&(u=null==(i=s(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Be&&(u=a.value_),pt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var l={type:Zn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:u,name:e};o&&dn(this,l)}}finally{ft()}return!0},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return sn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=ln(this);if(i){var o=i?{type:jn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&dn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Fn(e,t){var n;if(T(e,H))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new zn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:fe(e):void 0}(t));return k(e,H,i),e}var Vn=C("ObservableObjectAdministration",zn);function Bn(e){return Ln[e]||(Ln[e]={get:function(){return this[H].getObservablePropValue_(e)},set:function(t){return this[H].setObservablePropValue_(e,t)}})}function Hn(e){return!!b(e)&&Vn(e[H])}function Un(e,t,n){var r;null==(r=e.target_[F])||delete r[n]}var Kn,qn,$n=Jn(0),Yn=0,Wn=function(){};Kn=Wn,qn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,qn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=qn:Kn.prototype=qn;var Gn=function(e,t,n){function r(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new gn(r,n,i,!0);if(a.proxy_=L(o),x(L(o),H,a),t&&t.length){var s=ze(!0);o.spliceWithArray(0,0,t),Fe(s)}return Object.defineProperty(L(o),"0",$n),o}P(r,e);var i=r.prototype;return i.concat=function(){this[H].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Sn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return ur({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},I(r,[{key:"length",get:function(){return this[H].getArrayLength_()},set:function(e){this[H].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(Wn,Symbol.toStringTag,Symbol.iterator);function Jn(e){return{enumerable:!1,configurable:!0,get:function(){return this[H].get_(e)},set:function(t){this[H].set_(e,t)}}}function Qn(e){u(Gn.prototype,""+e,Jn(e))}function Xn(e){if(e>Yn){for(var t=Yn;t<e+100;t++)Qn(t);Yn=e}}function er(e,t,n){return new Gn(e,t,n)}function tr(e,t){if("object"==typeof e&&null!==e){if(Sn(e))return void 0!==t&&r(23),e[H].atom_;if(Mn(e))return e[H];if(In(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,rr(e)),n}if(Hn(e)){if(!t)return r(26);var i=e[H].values_.get(t);return i||r(27,t,rr(e)),i}if(K(e)||qe(e)||bt(e))return e}else if(m(e)&&bt(e[H]))return e[H];r(28)}function nr(e,t){return e||r(29),void 0!==t?nr(tr(e,t)):K(e)||qe(e)||bt(e)||In(e)||Mn(e)?e:e[H]?e[H]:void r(24,e)}function rr(e,t){var n;if(void 0!==t)n=tr(e,t);else{if(Tt(e))return e.name;n=Hn(e)||In(e)||Mn(e)?nr(e):tr(e)}return n.name_}Object.entries(yn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&k(Gn.prototype,t,n)})),Xn(1e3);var ir=l.toString;function or(e,t,n){return void 0===n&&(n=-1),ar(e,t,n)}function ar(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=ir.call(e);if(a!==ir.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=sr(e),t=sr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(m(u)&&u instanceof u&&m(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!ar(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!T(t,d=f[c])||!ar(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function sr(e){return Sn(e)?e.slice():O(e)||In(e)||S(e)||Mn(e)?Array.from(e.entries()):e}function ur(e){return e[Symbol.iterator]=lr,e}function lr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:rr},$mobx:H})},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var M,L=Object.assign;function Z(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Z(e):""}function V(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case O:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Ce=null;function Oe(e){if(e=bi(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Se(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Ee(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function je(e,t){return e(t)}function Ae(){}var Te=!1;function Re(e,t,n){if(Te)return e(t,n);Te=!0;try{return je(e,t,n)}finally{Te=!1,(null!==xe||null!==Ce)&&(Ae(),Ee())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Ie=!1}function Pe(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ze=!1,ze=null,Fe={onError:function(e){Me=!0,Le=e}};function Ve(e,t,n,r,i,o,a,s,u){Me=!1,Le=null,Pe.apply(Fe,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(Be(e)!==e)throw Error(o(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,We=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2,lt=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,xt,Ct,Ot,St=!1,Et=[],jt=null,At=null,Tt=null,Rt=new Map,Dt=new Map,It=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Zt(e)&&n.delete(t)}function Ft(){St=!1,null!==jt&&Zt(jt)&&(jt=null),null!==At&&Zt(At)&&(At=null),null!==Tt&&Zt(Tt)&&(Tt=null),Rt.forEach(zt),Dt.forEach(zt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return Vt(t,e)}if(0<Et.length){Vt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Vt(jt,e),null!==At&&Vt(At,e),null!==Tt&&Vt(Tt,e),Rt.forEach(t),Dt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Lt(n),null===n.blockedOn&&It.shift()}var Ht=_.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=i,Ht.transition=o}}function qt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=i,Ht.transition=o}}function $t(e,t,n,r){if(Ut){var i=Wt(e,t,n,r);if(null===i)Ur(e,t,r,Yt,n),Pt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return jt=Mt(jt,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return Tt=Mt(Tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Rt.set(o,Mt(Rt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Wt(e,t,n,r))&&Ur(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function Wt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),dn=L({},ln,{view:0,detail:0}),fn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),vn=on(L({},hn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),mn=on(L({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(L({},ln,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return Cn}var Sn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=on(Sn),jn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Tn=on(L({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(Rn),In=[9,13,27,32],Nn=c&&"CompositionEvent"in window,Pn=null;c&&"documentMode"in document&&(Pn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Pn,Ln=c&&(!Nn||Pn&&8<Pn&&11>=Pn),Zn=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Kn(e,t,n,r){Se(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){Zr(e,0)}function Wn(e){if($(_i(e)))return e}function Gn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Wn($n)){var t=[];Kn(t,$n,e,we(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn($n)}function or(e,t){if("click"===e)return Wn(t)}function ar(e,t){if("input"===e||"change"===e)return Wn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=qr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Cr={};function Or(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Sr=Or("animationend"),Er=Or("animationiteration"),jr=Or("animationstart"),Ar=Or("transitionend"),Tr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Tr.set(e,t),u(t,[e])}for(var Ir=0;Ir<Rr.length;Ir++){var Nr=Rr[Ir];Dr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Dr(Sr,"onAnimationEnd"),Dr(Er,"onAnimationIteration"),Dr(jr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ar,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Ve.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Le;Me=!1,Le=null,Ze||(Ze=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}}}if(Ze)throw e=ze,Ze=!1,ze=null,e}function zr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Fr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Gt(t)){case 1:var i=Kt;break;case 4:i=qt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Re((function(){var r=o,i=we(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=En;break;case"focusin":l="focus",u=gn;break;case"focusout":l="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Sr:case Er:case jr:u=mn;break;case Ar:u=Tn;break;case"scroll":u=fn;break;case"wheel":u=Dn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&null!=(v=De(p,f))&&c.push(Kr(p,v,h))),d)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(l=n.relatedTarget||n.fromElement)||!yi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?yi(l):null)&&(l!==(d=Be(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==u?s:_i(u),h=null==l?s:_i(l),(s=new c(v,p+"leave",u,n,i)).target=d,s.relatedTarget=h,v=null,yi(i)===r&&((c=new c(f,p+"enter",l,n,i)).target=h,c.relatedTarget=d,v=c),d=v,u&&l)e:{for(f=l,p=0,h=c=u;h;h=$r(h))p++;for(h=0,v=f;v;v=$r(v))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==u&&Yr(a,s,u,c,!1),null!==l&&null!==d&&Yr(a,d,l,c,!0)}if("select"===(u=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Gn;else if(Un(s))if(Jn)g=ar;else{g=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Kn(a,g,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?_i(r):window,e){case"focusin":(Un(m)||"true"===m.contentEditable)&&(gr=m,mr=r,yr=null);break;case"focusout":yr=mr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Bn=!0)),0<(m=qr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:m}),(y||null!==(y=Vn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(zn=!0,Zn);case"textInput":return(e=t.data)===Zn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),Xt=Qt=Jt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Zr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Kr(e,o,i)),null!=(o=De(e,t))&&r.push(Kr(e,o,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=De(n,o))&&a.unshift(Kr(n,u,s)):i||null!=(u=De(n,o))&&a.push(Kr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Gr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Bt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,gi="__reactListeners$"+di,mi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var ki=[],xi=-1;function Ci(e){return{current:e}}function Oi(e){0>xi||(e.current=ki[xi],ki[xi]=null,xi--)}function Si(e,t){xi++,ki[xi]=e.current,e.current=t}var Ei={},ji=Ci(Ei),Ai=Ci(!1),Ti=Ei;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Di(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Oi(Ai),Oi(ji)}function Ni(e,t,n){if(ji.current!==Ei)throw Error(o(168));Si(ji,t),Si(Ai,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ti=ji.current,Si(ji,e),Si(Ai,Ai.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Pi(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,Oi(Ai),Oi(ji),Si(ji,e)):Oi(Ai),Si(Ai,n)}var Zi=null,zi=!1,Fi=!1;function Vi(e){null===Zi?Zi=[e]:Zi.push(e)}function Bi(){if(!Fi&&null!==Zi){Fi=!0;var e=0,t=bt;try{var n=Zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Zi=null,zi=!1}catch(t){throw null!==Zi&&(Zi=Zi.slice(e+1)),$e(Xe,Bi),t}finally{bt=t,Fi=!1}}return null}var Hi=[],Ui=0,Ki=null,qi=0,$i=[],Yi=0,Wi=null,Gi=1,Ji="";function Qi(e,t){Hi[Ui++]=qi,Hi[Ui++]=Ki,Ki=e,qi=t}function Xi(e,t,n){$i[Yi++]=Gi,$i[Yi++]=Ji,$i[Yi++]=Wi,Wi=e;var r=Gi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Gi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),Xi(e,1,0))}function to(e){for(;e===Ki;)Ki=Hi[--Ui],Hi[Ui]=null,qi=Hi[--Ui],Hi[Ui]=null;for(;e===Wi;)Wi=$i[--Yi],$i[Yi]=null,Ji=$i[--Yi],$i[Yi]=null,Gi=$i[--Yi],$i[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Rl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Wi?{id:Gi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=li(e.nextSibling)}function po(){ro=no=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function mo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,_o=null,wo=null;function ko(){wo=_o=bo=null}function xo(e){var t=yo.current;Oi(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t){bo=e,wo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_s=!0),e.firstContext=null)}function So(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===bo)throw Error(o(308));_o=e,bo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Eo=null;function jo(e){null===Eo?Eo=[e]:Eo.push(e)}function Ao(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,jo(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Do(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function No(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&ju)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,To(e,n)}return null===(i=r.interleaved)?(t.next=t,jo(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u)}if(null!==o){var d=i.baseState;for(a=0,c=l=u=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(f=t,h=n,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"==typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=L({},d,f);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Mu|=a,e.lanes=a,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Fo=(new r.Component).refs;function Vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bo={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=No(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(nl(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=No(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(nl(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),i=No(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Po(e,i,r))&&(nl(t,e,r,n),Mo(t,e,r))}};function Ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(i,o))}function Uo(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=So(o):(i=Di(t)?Ti:ji.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ri(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fo,Do(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=So(o):(o=Di(t)?Ti:ji.current,i.context=Ri(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Vo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Bo.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function $o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Fo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wo(e){return(0,e._init)(e._payload)}function Go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Il(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ll(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===D&&Wo(o)===t.type)?((r=i(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Pl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ll(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case k:return(t=Zl(t,e.mode,n)).return=e,t;case D:return f(e,(0,t._init)(t._payload),n)}if(te(t)||P(t))return(t=Pl(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case D:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||P(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||P(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function v(i,o,s,u){for(var l=null,c=null,d=o,v=o=0,g=null;null!==d&&v<s.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=h(i,d,s[v],u);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(i,d),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m,d=g}if(v===s.length)return n(i,d),io&&Qi(i,v),l;if(null===d){for(;v<s.length;v++)null!==(d=f(i,s[v],u))&&(o=a(d,o,v),null===c?l=d:c.sibling=d,c=d);return io&&Qi(i,v),l}for(d=r(i,d);v<s.length;v++)null!==(g=p(d,i,v,s[v],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,v),l}function g(i,s,u,l){var c=P(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,v=s,g=s=0,m=null,y=u.next();null!==v&&!y.done;g++,y=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(i,v,y.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,v=m}if(y.done)return n(i,v),io&&Qi(i,g),c;if(null===v){for(;!y.done;g++,y=u.next())null!==(y=f(i,y.value,l))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(v=r(i,v);!y.done;g++,y=u.next())null!==(y=p(v,i,g,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Qi(i,g),c}return function e(r,o,a,u){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===D&&Wo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=$o(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Pl(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Nl(a.type,a.key,a.props,null,r.mode,u)).ref=$o(r,o,a),u.return=r,r=u)}return s(r);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Zl(a,r.mode,u)).return=r,r=o}return s(r);case D:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return v(r,o,a,u);if(P(a))return g(r,o,a,u);Yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Ll(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var Jo=Go(!0),Qo=Go(!1),Xo={},ea=Ci(Xo),ta=Ci(Xo),na=Ci(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(Si(na,t),Si(ta,e),Si(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oi(ea),Si(ea,t)}function oa(){Oi(ea),Oi(ta),Oi(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(Si(ta,e),Si(ea,n))}function sa(e){ta.current===e&&(Oi(ea),Oi(ta))}var ua=Ci(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=_.ReactCurrentDispatcher,ha=_.ReactCurrentBatchConfig,pa=0,va=null,ga=null,ma=null,ya=!1,ba=!1,_a=0,wa=0;function ka(){throw Error(o(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),ba){a=0;do{if(ba=!1,_a=0,25<=a)throw Error(o(301));a+=1,ma=ga=null,t.updateQueue=null,fa.current=ls,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==ga&&null!==ga.next,pa=0,ma=ga=va=null,ya=!1,t)throw Error(o(300));return e}function Oa(){var e=0!==_a;return _a=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function Ea(){if(null===ga){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function ja(e,t){return"function"==typeof t?t(e):t}function Aa(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=f,s=r):l=l.next=f,va.lanes|=d,Mu|=d}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,va.lanes|=a,Mu|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(){}function Da(e,t){var n=va,r=Ea(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,_s=!0),r=r.queue,Ua(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,za(9,Na.bind(null,n,r,i,t),void 0,null),null===Au)throw Error(o(349));0!=(30&pa)||Ia(n,t,i)}return i}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Pa(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=To(e,1);null!==t&&nl(t,e,1,-1)}function Za(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,va,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return Ea().memoizedState}function Va(e,t,n,r){var i=Sa();va.flags|=e,i.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Ba(e,t,n,r){var i=Ea();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&xa(r,a.deps))return void(i.memoizedState=za(t,n,o,r))}va.flags|=e,i.memoizedState=za(1|t,n,o,r)}function Ha(e,t){return Va(8390656,8,e,t)}function Ua(e,t){return Ba(2048,8,e,t)}function Ka(e,t){return Ba(4,2,e,t)}function qa(e,t){return Ba(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4,4,$a.bind(null,t,e),n)}function Wa(){}function Ga(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),va.lanes|=n,Mu|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Ea().memoizedState}function ts(e,t,n){var r=tl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=Ao(e,t,n,r))&&(nl(n,e,r,el()),os(n,t,r))}function ns(e,t,n){var r=tl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,jo(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ao(e,t,i,r))&&(nl(n,e,r,i=el()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:So,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:So,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Va(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Za,useDebugValue:Wa,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xa.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=Sa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Au)throw Error(o(349));0!=(30&pa)||Ia(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(Pa.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Na.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Sa(),t=Au.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Gi&~(1<<32-at(Gi)-1)).toString(32)+n),0<(n=_a++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ja,useReducer:Aa,useRef:Fa,useState:function(){return Aa(ja)},useDebugValue:Wa,useDeferredValue:function(e){return Qa(Ea(),ga.memoizedState,e)},useTransition:function(){return[Aa(ja)[0],Ea().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Da,useId:es,unstable_isNewReconciler:!1},ls={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ja,useReducer:Ta,useRef:Fa,useState:function(){return Ta(ja)},useDebugValue:Wa,useDeferredValue:function(e){var t=Ea();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Ta(ja)[0],Ea().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Da,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=No(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Ku=r),fs(0,t)},n}function vs(e,t,n){(n=No(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=No(-1,1)).tag=2,Po(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=_.ReactCurrentOwner,_s=!1;function ws(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Jo(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Oo(t,i),r=Ca(e,t,n,r,o,i),n=Oa(),null===e||_s?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function xs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Dl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Us(e,t,i)}return t.flags|=1,(e=Il(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Us(e,t,i);0!=(131072&e.flags)&&(_s=!0)}}return Es(e,t,n,r,i)}function Os(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Iu,Du),Du|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Iu,Du),Du|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Iu,Du),Du|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Iu,Du),Du|=r;return ws(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=Di(n)?Ti:ji.current;return o=Ri(t,o),Oo(t,i),n=Ca(e,t,n,r,o,i),r=Oa(),null===e||_s?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function js(e,t,n,r,i){if(Di(n)){var o=!0;Mi(t)}else o=!1;if(Oo(t,i),null===t.stateNode)Hs(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;l="object"==typeof l&&null!==l?So(l):Ri(t,l=Di(n)?Ti:ji.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Ko(t,a,r,l),Ro=!1;var f=t.memoizedState;a.state=f,Zo(t,r,a,i),u=t.memoizedState,s!==r||f!==u||Ai.current||Ro?("function"==typeof c&&(Vo(t,n,c,r),u=t.memoizedState),(s=Ro||Ho(t,n,s,r,f,u,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:mo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u="object"==typeof(u=n.contextType)&&null!==u?So(u):Ri(t,u=Di(n)?Ti:ji.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==u)&&Ko(t,a,r,u),Ro=!1,f=t.memoizedState,a.state=f,Zo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ai.current||Ro?("function"==typeof h&&(Vo(t,n,h,r),p=t.memoizedState),(l=Ro||Ho(t,n,l,r,f,p,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,o,i)}function As(e,t,n,r,i,o){Ss(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Us(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Ni(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ni(0,t.context,!1),ia(e,t.containerInfo)}function Rs(e,t,n,r,i){return po(),vo(i),t.flags|=256,ws(e,t,n,r),t.child}var Ds,Is,Ns,Ps={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ua.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(ua,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Ml(u,i,0,null),e=Pl(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Ps,e):Zs(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Ml({mode:"visible",children:r.children},i,0,null),(a=Pl(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Jo(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ps,a);if(0==(1&t.mode))return zs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,zs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(u=0!=(s&e.childLanes),_s||u){if(null!==(r=Au)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),nl(r,e,i,-1))}return vl(),zs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=El.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&($i[Yi++]=Gi,$i[Yi++]=Ji,$i[Yi++]=Wi,Gi=e.id,Ji=e.overflow,Wi=t),(t=Zs(t,r.children)).flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Il(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Il(r,s):(s=Pl(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ms(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Ps,i}return e=(s=e.child).sibling,i=Il(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Zs(e,t){return(t=Ml({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&vo(r),Jo(t,e.child,null,n),(e=Zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Vs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Vs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Il(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Il(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Di(t.type)&&Ii(),qs(t),null;case 3:return r=t.stateNode,oa(),Oi(Ai),Oi(ji),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(al(oo),oo=null))),qs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)zr(Pr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":G(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var u in ye(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":q(r),X(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[fi]=t,e[hi]=r,Ds(e,t),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)zr(Pr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":G(e,r),i=W(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":q(e),X(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return qs(t),null;case 13:if(Oi(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(al(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Nu&&(Nu=3):vl())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return oa(),null===e&&Br(t.stateNode.containerInfo),qs(t),null;case 10:return xo(t.type._context),qs(t),null;case 19:if(Oi(ua),null===(a=t.memoizedState))return qs(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)Ks(a,!1);else{if(0!==Nu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=la(e))){for(t.flags|=128,Ks(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Bu&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=la(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return qs(t),null}else 2*Je()-a.renderingStartTime>Bu&&1073741824!==n&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ua.current,Si(ua,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return dl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Du)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Di(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Oi(Ai),Oi(ji),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oi(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oi(ua),null;case 4:return oa(),null;case 10:return xo(t.type._context),null;case 22:case 23:return dl(),null;default:return null}}Ds=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=W(e,i),r=W(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zr("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ws=!1,Gs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cl(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){Cl(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&eu(t,n,o)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[gi],delete t[mi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=cu,i=du;cu=null,fu(e,t,n),du=i,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Bt(e)):ui(cu,n.stateNode));break;case 4:r=cu,i=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&eu(n,t,a),i=i.next}while(i!==r)}fu(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cl(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,fu(e,t,n),Gs=r):fu(e,t,n);break;default:fu(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=jl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(o(160));hu(a,s,i),cu=null,du=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Cl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),mu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(t){Cl(e,e.return,t)}try{nu(5,e,e.return)}catch(t){Cl(e,e.return,t)}}break;case 1:vu(t,e),mu(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(vu(t,e),mu(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Cl(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&J(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(u){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Cl(e,e.return,t)}}break;case 6:if(vu(t,e),mu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cl(e,e.return,t)}}break;case 3:if(vu(t,e),mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cl(e,e.return,t)}break;case 4:default:vu(t,e),mu(e);break;case 13:vu(t,e),mu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Vu=Je())),4&r&&pu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,vu(t,e),Gs=c):vu(t,e),mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(p=(h=Qs).child,h.tag){case 0:case 11:case 14:case 15:nu(4,h,h.return);break;case 1:Xs(h,h.return);var v=h.stateNode;if("function"==typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Cl(r,n,e)}}break;case 5:Xs(h,h.return);break;case 22:if(null!==h.memoizedState){wu(f);continue}}null!==p?(p.return=h,Qs=p):wu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,s=void 0!==(l=f.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ve("display",s))}catch(t){Cl(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Cl(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vu(t,e),mu(e),4&r&&pu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),lu(e,su(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,su(e),a);break;default:throw Error(o(161))}}catch(t){Cl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Qs=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!=(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ws;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Gs;s=Ws;var l=Gs;if(Ws=a,(Gs=u)&&!l)for(Qs=i;null!==Qs;)u=(a=Qs).child,22===a.tag&&null!==a.memoizedState?ku(i):null!==u?(u.return=a,Qs=u):ku(i);for(;null!==o;)Qs=o,bu(o,t,n),o=o.sibling;Qs=i,Ws=s,Gs=l}_u(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):_u(e)}}function _u(e){for(;null!==Qs;){var t=Qs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gs||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&iu(t)}catch(e){Cl(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function wu(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function ku(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){Cl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Cl(t,i,e)}}var o=t.return;try{iu(t)}catch(e){Cl(t,o,e)}break;case 5:var a=t.return;try{iu(t)}catch(e){Cl(t,a,e)}}}catch(e){Cl(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var xu,Cu=Math.ceil,Ou=_.ReactCurrentDispatcher,Su=_.ReactCurrentOwner,Eu=_.ReactCurrentBatchConfig,ju=0,Au=null,Tu=null,Ru=0,Du=0,Iu=Ci(0),Nu=0,Pu=null,Mu=0,Lu=0,Zu=0,zu=null,Fu=null,Vu=0,Bu=1/0,Hu=null,Uu=!1,Ku=null,qu=null,$u=!1,Yu=null,Wu=0,Gu=0,Ju=null,Qu=-1,Xu=0;function el(){return 0!=(6&ju)?Je():-1!==Qu?Qu:Qu=Je()}function tl(e){return 0==(1&e.mode)?1:0!=(2&ju)&&0!==Ru?Ru&-Ru:null!==go.transition?(0===Xu&&(Xu=vt()),Xu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function nl(e,t,n,r){if(50<Gu)throw Gu=0,Ju=null,Error(o(185));mt(e,n,r),0!=(2&ju)&&e===Au||(e===Au&&(0==(2&ju)&&(Lu|=n),4===Nu&&sl(e,Ru)),rl(e,r),1===n&&0===ju&&0==(1&t.mode)&&(Bu=Je()+500,zi&&Bi()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Au?Ru:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Vi(e)}(ul.bind(null,e)):Vi(ul.bind(null,e)),ai((function(){0==(6&ju)&&Bi()})),n=null;else{switch(_t(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Al(n,il.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function il(e,t){if(Qu=-1,Xu=0,0!=(6&ju))throw Error(o(327));var n=e.callbackNode;if(kl()&&e.callbackNode!==n)return null;var r=ft(e,e===Au?Ru:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gl(e,r);else{t=r;var i=ju;ju|=2;var a=pl();for(Au===e&&Ru===t||(Hu=null,Bu=Je()+500,fl(e,t));;)try{yl();break}catch(t){hl(e,t)}ko(),Ou.current=a,ju=i,null!==Tu?t=0:(Au=null,Ru=0,t=Nu)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=ol(e,i)),1===t)throw n=Pu,fl(e,0),sl(e,r),rl(e,Je()),n;if(6===t)sl(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gl(e,r))&&0!==(a=pt(e))&&(r=a,t=ol(e,a)),1===t))throw n=Pu,fl(e,0),sl(e,r),rl(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wl(e,Fu,Hu);break;case 3:if(sl(e,r),(130023424&r)===r&&10<(t=Vu+500-Je())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wl.bind(null,e,Fu,Hu),t);break}wl(e,Fu,Hu);break;case 4:if(sl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ri(wl.bind(null,e,Fu,Hu),r);break}wl(e,Fu,Hu);break;default:throw Error(o(329))}}}return rl(e,Je()),e.callbackNode===n?il.bind(null,e):null}function ol(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=gl(e,t))&&(t=Fu,Fu=n,null!==t&&al(t)),e}function al(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function sl(e,t){for(t&=~Zu,t&=~Lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(0!=(6&ju))throw Error(o(327));kl();var t=ft(e,0);if(0==(1&t))return rl(e,Je()),null;var n=gl(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ol(e,r))}if(1===n)throw n=Pu,fl(e,0),sl(e,t),rl(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wl(e,Fu,Hu),rl(e,Je()),null}function ll(e,t){var n=ju;ju|=1;try{return e(t)}finally{0===(ju=n)&&(Bu=Je()+500,zi&&Bi())}}function cl(e){null!==Yu&&0===Yu.tag&&0==(6&ju)&&kl();var t=ju;ju|=1;var n=Eu.transition,r=bt;try{if(Eu.transition=null,bt=1,e)return e()}finally{bt=r,Eu.transition=n,0==(6&(ju=t))&&Bi()}}function dl(){Du=Iu.current,Oi(Iu)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tu)for(n=Tu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:oa(),Oi(Ai),Oi(ji),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Oi(ua);break;case 10:xo(r.type._context);break;case 22:case 23:dl()}n=n.return}if(Au=e,Tu=e=Il(e.current,null),Ru=Du=t,Nu=0,Pu=null,Zu=Lu=Mu=0,Fu=zu=null,null!==Eo){for(t=0;t<Eo.length;t++)if(null!==(r=(n=Eo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Eo=null}return e}function hl(e,t){for(;;){var n=Tu;try{if(ko(),fa.current=as,ya){for(var r=va.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,ma=ga=va=null,ba=!1,_a=0,Su.current=null,null===n||null===n.return){Nu=1,Pu=t,Tu=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Ru,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=u,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&gs(a,c,t),l=c;var v=(t=p).updateQueue;if(null===v){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}if(0==(1&t)){gs(a,c,t),vl();break e}l=Error(o(426))}else if(io&&1&u.mode){var m=ms(s);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),ys(m,s,u,0,t),vo(cs(l,u));break e}}a=l=cs(l,u),4!==Nu&&(Nu=2),null===zu?zu=[a]:zu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ps(0,l,t));break e;case 1:u=l;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===qu||!qu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,vs(a,u,t));break e}}a=a.return}while(null!==a)}_l(n)}catch(e){t=e,Tu===n&&null!==n&&(Tu=n=n.return);continue}break}}function pl(){var e=Ou.current;return Ou.current=as,null===e?as:e}function vl(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Au||0==(268435455&Mu)&&0==(268435455&Lu)||sl(Au,Ru)}function gl(e,t){var n=ju;ju|=2;var r=pl();for(Au===e&&Ru===t||(Hu=null,fl(e,t));;)try{ml();break}catch(t){hl(e,t)}if(ko(),ju=n,Ou.current=r,null!==Tu)throw Error(o(261));return Au=null,Ru=0,Nu}function ml(){for(;null!==Tu;)bl(Tu)}function yl(){for(;null!==Tu&&!We();)bl(Tu)}function bl(e){var t=xu(e.alternate,e,Du);e.memoizedProps=e.pendingProps,null===t?_l(e):Tu=t,Su.current=null}function _l(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$s(n,t,Du)))return void(Tu=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Tu=n);if(null===e)return Nu=6,void(Tu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tu=t);Tu=t=e}while(null!==t);0===Nu&&(Nu=5)}function wl(e,t,n){var r=bt,i=Eu.transition;try{Eu.transition=null,bt=1,function(e,t,n,r){do{kl()}while(null!==Yu);if(0!=(6&ju))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Au&&(Tu=Au=null,Ru=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$u||($u=!0,Al(tt,(function(){return kl(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Eu.transition,Eu.transition=null;var s=bt;bt=1;var u=ju;ju|=4,Su.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,u=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(u=s+i),f!==a||0!==r&&3!==f.nodeType||(l=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(u=s),h===a&&++d===r&&(l=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:mo(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Cl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}v=tu,tu=!1}(e,n),gu(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,yu(n,e,i),Ge(),ju=u,bt=s,Eu.transition=a}else e.current=n;if($u&&($u=!1,Yu=e,Wu=i),0===(a=e.pendingLanes)&&(qu=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),rl(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Uu)throw Uu=!1,e=Ku,Ku=null,e;0!=(1&Wu)&&0!==e.tag&&kl(),0!=(1&(a=e.pendingLanes))?e===Ju?Gu++:(Gu=0,Ju=e):Gu=0,Bi()}(e,t,n,r)}finally{Eu.transition=i,bt=r}return null}function kl(){if(null!==Yu){var e=_t(Wu),t=Eu.transition,n=bt;try{if(Eu.transition=null,bt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,Wu=0,0!=(6&ju))throw Error(o(331));var i=ju;for(ju|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!=(16&Qs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var h=(d=Qs).sibling,p=d.return;if(ou(d),d===c){Qs=null;break}if(null!==h){h.return=p,Qs=h;break}Qs=p}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Qs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!=(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var _=(s=Qs).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,Qs=_;else e:for(s=b;null!==Qs;){if(0!=(2048&(u=Qs).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){Cl(u,u.return,e)}if(u===s){Qs=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Qs=w;break e}Qs=u.return}}if(ju=i,Bi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Eu.transition=t}}return!1}function xl(e,t,n){e=Po(e,t=ps(0,t=cs(n,t),1),1),t=el(),null!==e&&(mt(e,1,t),rl(e,t))}function Cl(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qu||!qu.has(r))){t=Po(t,e=vs(t,e=cs(n,e),1),1),e=el(),null!==t&&(mt(t,1,e),rl(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Ru&n)===n&&(4===Nu||3===Nu&&(130023424&Ru)===Ru&&500>Je()-Vu?fl(e,0):Zu|=n),rl(e,t)}function Sl(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=el();null!==(e=To(e,t))&&(mt(e,t,n),rl(e,n))}function El(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sl(e,n)}function jl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Sl(e,n)}function Al(e,t){return $e(e,t)}function Tl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,n,r){return new Tl(e,t,n,r)}function Dl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Il(e,t){var n=e.alternate;return null===n?((n=Rl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Dl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Pl(n.children,i,a,t);case C:s=8,i|=8;break;case O:return(e=Rl(12,n,t,2|i)).elementType=O,e.lanes=a,e;case A:return(e=Rl(13,n,t,i)).elementType=A,e.lanes=a,e;case T:return(e=Rl(19,n,t,i)).elementType=T,e.lanes=a,e;case I:return Ml(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case j:s=11;break e;case R:s=14;break e;case D:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Pl(e,t,n,r){return(e=Rl(7,e,r,t)).lanes=n,e}function Ml(e,t,n,r){return(e=Rl(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return(e=Rl(6,e,null,t)).lanes=n,e}function Zl(e,t,n){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fl(e,t,n,r,i,o,a,s,u){return e=new zl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Do(o),e}function Vl(e){if(!e)return Ei;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Di(n))return Pi(e,n,t)}return t}function Bl(e,t,n,r,i,o,a,s,u){return(e=Fl(n,r,!0,e,0,o,0,s,u)).context=Vl(null),n=e.current,(o=No(r=el(),i=tl(n))).callback=null!=t?t:null,Po(n,o,i),e.current.lanes=i,mt(e,i,r),rl(e,r),e}function Hl(e,t,n,r){var i=t.current,o=el(),a=tl(i);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=No(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Po(i,t,a))&&(nl(e,i,a,o),Mo(e,i,a)),a}function Ul(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ql(e,t){Kl(e,t),(e=e.alternate)&&Kl(e,t)}xu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)_s=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:aa(t);break;case 1:Di(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ls(e,t,n):(Si(ua,1&ua.current),null!==(e=Us(e,t,n))?e.sibling:null);Si(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Os(e,t,n)}return Us(e,t,n)}(e,t,n);_s=0!=(131072&e.flags)}else _s=!1,io&&0!=(1048576&t.flags)&&Xi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Ri(t,ji.current);Oo(t,n),i=Ca(null,t,r,e,i,n);var a=Oa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Do(t),i.updater=Bo,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Dl(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===R)return 14}return 2}(r),e=mo(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=js(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=xs(null,t,r,mo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 1:return r=t.type,i=t.pendingProps,js(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Io(e,t),Zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rs(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Rs(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Us(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Ls(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Jo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Si(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=Us(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=No(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Co(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Co(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oo(t,n),r=r(i=So(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=mo(r=t.type,t.pendingProps),xs(e,t,r,i=mo(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mo(r,i),Hs(e,t),t.tag=1,Di(r)?(e=!0,Mi(t)):e=!1,Oo(t,n),Uo(t,r,i),qo(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Os(e,t,n)}throw Error(o(156,t.tag))};var $l="function"==typeof reportError?reportError:function(e){console.error(e)};function Yl(e){this._internalRoot=e}function Wl(e){this._internalRoot=e}function Gl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ql(){}function Xl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Ul(a);s.call(e)}}Hl(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Ul(a);o.call(e)}}var a=Bl(t,r,e,0,null,!1,0,"",Ql);return e._reactRootContainer=a,e[pi]=a.current,Br(8===e.nodeType?e.parentNode:e),cl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Ul(u);s.call(e)}}var u=Fl(e,0,!1,null,0,!1,0,"",Ql);return e._reactRootContainer=u,e[pi]=u.current,Br(8===e.nodeType?e.parentNode:e),cl((function(){Hl(t,u,n,r)})),u}(n,t,e,i,r);return Ul(a)}Wl.prototype.render=Yl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hl(e,t,null,null)},Wl.prototype.unmount=Yl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Hl(null,e,null,null)})),t[pi]=null}},Wl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rl(t,Je()),0==(6&ju)&&(Bu=Je()+500,Bi()))}break;case 13:cl((function(){var t=To(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),ql(e,1)}},kt=function(e){if(13===e.tag){var t=To(e,134217728);null!==t&&nl(t,e,134217728,el()),ql(e,134217728)}},xt=function(e){if(13===e.tag){var t=tl(e),n=To(e,t);null!==n&&nl(n,e,t,el()),ql(e,t)}},Ct=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));$(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=ll,Ae=cl;var ec={usingClientEntryPoint:!1,Events:[bi,_i,wi,Se,Ee,ll]},tc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gl(e))throw Error(o(299));var n=!1,r="",i=$l;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Br(8===e.nodeType?e.parentNode:e),new Yl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Jl(t))throw Error(o(200));return Xl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=$l;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bl(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Wl(t)},t.render=function(e,t,n){if(!Jl(t))throw Error(o(200));return Xl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jl(e))throw Error(o(40));return!!e._reactRootContainer&&(cl((function(){Xl(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xl(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var _=b.prototype=new y;_.constructor=b,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,w(a)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",w(e))for(var l=0;l<e.length;l++){var c=o+j(s=e[l],l);u+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,c=o+j(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function T(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},I={transition:null},N={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:I,ReactCurrentOwner:x};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)k.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(A([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return m.prototype=y,u(k,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);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}},e.values=A,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],d=1,f=null,h=3,p=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function w(e){if(g=!1,_(e),!v)if(null!==r(l))v=!0,I(k);else{var t=r(c);null!==t&&N(w,t.startTime-e)}}function k(e,n){v=!1,g&&(g=!1,y(S),S=-1),p=!0;var o=h;try{for(_(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(l)&&i(l),_(n)}else i(l);f=r(l)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&N(w,d.startTime-n),u=!1}return u}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,O=null,S=-1,E=5,j=-1;function A(){return!(t.unstable_now()-j<E)}function T(){if(null!==O){var e=t.unstable_now();j=e;var n=!0;try{n=O(!0,e)}finally{n?x():(C=!1,O=null)}}else C=!1}if("function"==typeof b)x=function(){b(T)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,D=R.port2;R.port1.onmessage=T,x=function(){D.postMessage(null)}}else x=function(){m(T,0)};function I(e){O=e,C||(C=!0,x())}function N(e,n){S=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(g?(y(S),S=-1):g=!0,N(w,o-a))):(e.sortIndex=s,n(l,e),v||p||(v=!0,I(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},4847:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.comparisonIsAgainstHead=t.labelForComparison=t.revsetArgsForComparison=t.ComparisonType=void 0,function(e){e.UncommittedChanges="UNCOMMITTED",e.HeadChanges="HEAD",e.StackChanges="STACK",e.Committed="InCommit"}(n=t.ComparisonType||(t.ComparisonType={})),t.revsetArgsForComparison=function(e){switch(e.type){case n.UncommittedChanges:return["uncommitted"];case n.HeadChanges:return["head"];case n.StackChanges:return["stack"];case n.Committed:return["stack","--ref",e.hash]}},t.labelForComparison=function(e){switch(e.type){case n.UncommittedChanges:return"Uncommitted Changes";case n.HeadChanges:return"Head Changes";case n.StackChanges:return"Stack Changes";case n.Committed:return"In ".concat(e.hash)}},t.comparisonIsAgainstHead=function(e){switch(e.type){case n.UncommittedChanges:case n.HeadChanges:case n.StackChanges:return!0;case n.Committed:return!1}}},9085:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8254:function(e,t,n){"use strict";var r=n(319).default,i=n(3038).default,o=n(3269).default,a=n(4575).default,s=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cached=t.LRU=void 0;var u=n(8466),l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;a(this,e),this.maxItems=t,this.maxHashCollision=n,this.cache=new Map}return s(e,[{key:"get",value:function(e){var t=void 0,n=c(e),r=this.cache.get(n);if(void 0!==r){var a=r.get(e);if(void 0!==a)t=a;else{var s,l=o(r);try{for(l.s();!(s=l.n()).done;){var d=i(s.value,2),f=d[0],h=d[1];if((0,u.is)(e,f)){t=h;break}}}catch(e){l.e(e)}finally{l.f()}}this.cache.delete(n),this.cache.set(n,r)}return t}},{key:"set",value:function(e,t){var n=c(e),r=this.cache.get(n);if(void 0===r||r.size>=this.maxHashCollision?r=new Map([[e,t]]):r.set(e,t),this.cache.delete(n),void 0!==t&&(this.cache.set(n,r),this.cache.size>this.maxItems)){var i=this.cache.keys().next();i.done||this.cache.delete(i.value)}}},{key:"delete",value:function(e){var t=c(e);this.cache.delete(t)}},{key:"clear",value:function(){this.cache.clear()}}]),e}();function c(e){var t=null==e?void 0:e.hashCode;return void 0!==t?t.apply(e):e}function d(e,t){var n,i,o=null!==(n=null==t?void 0:t.cache)&&void 0!==n?n:new l(null!==(i=null==t?void 0:t.cacheSize)&&void 0!==i?i:10),a=null==t?void 0:t.getExtraKeys,s=function(){for(var t,n,i,s=o.stats,l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];if(!c.every(h))return null!=s&&(s.skip=(null!==(t=s.skip)&&void 0!==t?t:0)+1),e.apply(this,c);var f=(0,u.List)(a?[].concat(r(a.apply(this)),c):c),p=o.get(f);if(void 0!==p)return null!=s&&(s.hit=(null!==(n=s.hit)&&void 0!==n?n:0)+1),p;null!=s&&(s.miss=(null!==(i=s.miss)&&void 0!==i?i:0)+1);var v=e.apply(this,c);return o.set(f,v),v};return s.cache=o,s}t.LRU=l,t.cached=function(e,t){return"function"==typeof e?d(e,t):function(e){var t,n=null!==(t=null==e?void 0:e.getExtraKeys)&&void 0!==t?t:function(){return(0,u.isValueObject)(this)?[this]:null!=this&&"object"==typeof this?Object.values(this).filter(h):[]};return function(t,r,i){var o=i.value;i.value=d(o,Object.assign(Object.assign({},e),{getExtraKeys:n}))}}(e)};var f=new Set(["number","string","boolean","symbol","bigint","undefined","null"]);function h(e){if(null==e)return!0;var t=typeof e;return!!f.has(t)||!("object"!==t||!(0,u.isValueObject)(e))}},9671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6606:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9671),t),i(n(7800),t),i(n(2428),t),i(n(8284),t)},7800:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2428:function(e,t,n){"use strict";var r=n(4575).default,i=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var o=n(4393),a=function(){function e(t,n){r(this,e),this.sendData=t,this.context=n}return i(e,[{key:"error",value:function(e,t,n,r){var i=n instanceof Error?n.message||String(n):n;return this.track(e,Object.assign(Object.assign({},null!=r?r:{}),{errorMessage:i,errorName:t}))}},{key:"operation",value:function(e,t,n,r){var i,a=this,s=Date.now(),u=null!==(i=null==n?void 0:n.id)&&void 0!==i?i:(0,o.randomId)();try{var l=r({parentId:u});if((0,o.isPromise)(l))return l.then((function(t){var r=Date.now()-s;return a.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:r,id:u})),t})).catch((function(r){var i=Date.now()-s;return a.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:i,id:u})),Promise.reject(r)}));var c=Date.now()-s;return this.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:c,id:u})),l}catch(r){var d=Date.now()-s;throw this.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:d,id:u})),r}}},{key:"trackAsParent",value:function(t,n){var r,i=this,a=null!==(r=null==n?void 0:n.id)&&void 0!==r?r:(0,o.randomId)();return this.trackData(Object.assign(Object.assign({},n),{eventName:t,id:a})),new e((function(e,t){return i.trackData(Object.assign(Object.assign({},e),t))}),{parentId:a})}},{key:"track",value:function(e,t){return this.trackData(Object.assign(Object.assign({},t),{eventName:e}))}},{key:"trackData",value:function(e){var t,n,r=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:(0,o.randomId)(),i=null!==(n=null==e?void 0:e.timestamp)&&void 0!==n?n:Date.now(),a=Object.assign({timestamp:i,id:r},null!=e?e:{});this.sendData(a,this.context)}}]),e}();t.Tracker=a},8284:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newAbortController=void 0;var r=n(4704);t.newAbortController=function(){return"function"==typeof AbortController?new AbortController:new r.AbortController}},5785:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!0;function a(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var c;if(i){if(c=function(){o=!0,n=void 0},!o)return clearTimeout(n),void(n=setTimeout(c,t));o=!1,e.apply(r,u)}else a.reset(),c=function(){n=void 0,e.apply(r,u)};n=setTimeout(c,t)}return a.reset=function(){clearTimeout(n),n=void 0,o=!0},a.isPending=function(){return null!=n},a}},7823:function(e,t,n){"use strict";var r=n(4575).default,i=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SelfUpdate=void 0;var o=function(){function e(t){r(this,e),this.inner=t}return i(e,[{key:"hashCode",value:function(){return this.inner.hashCode()+1}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;if(this===t)return!0;var n=t.inner,r=this.inner.equals(n);return r&&this.inner!==n&&(this.inner=n),r}}]),e}();t.SelfUpdate=o},5281:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6606),t),i(n(4847),t),i(n(9001),t),i(n(5402),t),i(n(5797),t),i(n(4393),t),i(n(2149),t),i(n(8254),t),i(n(9852),t),i(n(7823),t),i(n(9085),t),i(n(5785),t),i(n(6316),t),i(n(1320),t)},9852:function(e,t,n){"use strict";var r=n(3269).default,i=n(319).default;Object.defineProperty(t,"__esModule",{value:!0}),t.minimalDisambiguousPaths=void 0,t.minimalDisambiguousPaths=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.map((function(e){var t=function(e){return e.replace(/[^\\]/g,"").length>e.replace(/[^/]/g,"").length?"\\":"/"}(e),n=/^(\w:).*/.exec(e),r=null!=n?n[1]:"";return{depth:null,parts:e.split(t).reverse().filter((function(e){return""!==e&&e!==r})),rootPrefix:r,separator:t,hadLeadingSeparator:e.startsWith(t)||r.length>0&&e.startsWith(r)}})),o=null==t.maxDepth?Math.max.apply(Math,i(n.map((function(e){return e.parts.length})))):t.maxDepth,a=new Set(n),s=new Map,u=1;u<=o;u++){s.clear();var l,c=r(a);try{for(c.s();!(l=c.n()).done;){var d=l.value,f=d.parts.slice(0,u).join(d.separator);s.has(f)||s.set(f,new Set),s.get(f).add(d)}}catch(e){c.e(e)}finally{c.f()}var h,p=r(s.values());try{for(p.s();!(h=p.n()).done;){var v=h.value;if(1===v.size){var g=Array.from(v)[0];g.depth=u,a.delete(g)}}}catch(e){p.e(e)}finally{p.f()}}return n.map((function(e){var n,r=e.depth,a=e.parts,s=e.rootPrefix,u=e.separator,l=e.hadLeadingSeparator,c=a.slice(0,null==r?o:r).reverse();return 0===c.length?"".concat(s).concat(u):((1===c.length&&""===c[0]||c.length>1&&""!==c[0])&&(c=c.length===a.length?l?[s].concat(i(c)):c:(null!==(n=t.alwaysShowLeadingSeparator)&&void 0!==n?n:l)?[""].concat(i(c)):c),c.join(u))}))}},1320:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=t.DiffType=void 0,function(e){e.Modified="Modified",e.Added="Added",e.Removed="Removed",e.Renamed="Renamed",e.Copied="Copied"}(n=t.DiffType||(t.DiffType={}));var r=/^diff --git (.*) (.*)$/,i=/^rename from (.*)$/,o=/^rename to (.*)$/,a=/^copy from (.*)$/,s=/^copy to (.*)$/,u=/^new file mode (\d{6})$/,l=/^deleted file mode (\d{6})$/,c=/^old mode (\d{6})$/,d=/^new mode (\d{6})$/,f=/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,h=/^--- (.*)$/,p=/^\+\+\+ (.*)$/,v=/\r\n|[\n\v\f\r\x85]/g;function g(e,t){if(!1===e)throw new Error(t)}t.parsePatch=function(e){var t=e.split(v),m=e.match(v)||[],y=[],b=0;function _(){var e={hunks:[]};for(y.push(e),function(e){for(;b<t.length;){var n=t[b],i=r.exec(n);if(i){e.oldFileName=i[1],e.newFileName=i[2],b++;break}b++}}(e);b<t.length;){var n=t[b];if(/^old mode/.test(n))w(e);else if(/^new mode/.test(n))k(e);else if(/^deleted file mode/.test(n))x(e);else if(/^new file mode/.test(n))C(e);else if(/^copy /.test(n))O(e);else if(/^rename /.test(n))S(e);else{if(/^--- /.test(n)){E(e);break}if(/^diff --git/.test(n))break;b++}}!function(e){for(;b<t.length;){var n=t[b];if(r.test(n))break;/^@@/.test(n)?e.hunks.push(j()):b++}}(e)}function w(e){var r=c.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.oldMode=r[1],e.type=n.Modified,b++}function k(e){var r=d.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Modified,b++}function x(e){var r=l.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Removed,b++}function C(e){var r=u.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Added,b++}function O(e){g(a.test(t[b]),"invalid format '".concat(t[b],"'")),g(s.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Copied,b+=2}function S(e){g(i.test(t[b]),"invalid format '".concat(t[b],"'")),g(o.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Renamed,b+=2}function E(e){g(h.test(t[b]),"invalid format '".concat(t[b],"'")),g(p.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),void 0===e.type&&(e.type=n.Modified),b+=2}function j(){var e=t[b++].split(f),n={oldStart:+e[1],oldLines:void 0===e[2]?1:+e[2],newStart:+e[3],newLines:void 0===e[4]?1:+e[4],lines:[],linedelimiters:[]};0===n.oldLines&&(n.oldStart+=1),0===n.newLines&&(n.newStart+=1);for(var r=0,i=0;b<t.length&&!(0===t[b].indexOf("--- ")&&b+2<t.length&&0===t[b+1].indexOf("+++ ")&&0===t[b+2].indexOf("@@"));b++){var o=0==t[b].length&&b!=t.length-1?" ":t[b][0];if("+"!==o&&"-"!==o&&" "!==o&&"\\"!==o)break;n.lines.push(t[b]),n.linedelimiters.push(m[b]||"\n"),"+"===o?r++:"-"===o?i++:" "===o&&(r++,i++)}return r||1!==n.newLines||(n.newLines=0),i||1!==n.oldLines||(n.oldLines=0),n}for(;b<t.length;)_();return y}},5797:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeFromString=t.deserialize=t.serializeToString=t.serialize=void 0;var i={__rpcType:"undefined"};function o(e){if(void 0===e)return i;if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null===e)return e;if(e instanceof Map)return{__rpcType:"Map",data:Array.from(e.entries()).map((function(e){var t=r(e,2),n=t[0],i=t[1];return[o(n),o(i)]}))};if(e instanceof Set)return{__rpcType:"Set",data:Array.from(e.values()).map(o)};if(e instanceof Error)return{__rpcType:"Error",data:{message:e.message,stack:e.stack}};if(e instanceof Date)return{__rpcType:"Date",data:e.valueOf()};if(Array.isArray(e))return e.map((function(e){return o(e)}));if("object"==typeof e){for(var t={__rpcType:"object"},n=0,a=Object.entries(e);n<a.length;n++){var s=r(a[n],2),u=s[0],l=s[1];t[u]=o(l)}return t}throw new Error("cannot serialize argument ".concat(e))}function a(e){if("object"!=typeof e||null==e)return e;if(Array.isArray(e))return e.map((function(e){return a(e)}));var t=e;switch(t.__rpcType){case"undefined":return;case"Map":return new Map(t.data.map((function(e){var t=r(e,2),n=t[0],i=t[1];return[a(n),a(i)]})));case"Set":return new Set(t.data.map(a));case"Error":var n=new Error;return n.stack=t.data.stack,n.message=t.data.message,n;case"Date":return new Date(t.data);case"object":for(var i=e,o={},s=0,u=Object.entries(i);s<u.length;s++){var l=r(u[s],2),c=l[0],d=l[1];"__rpcType"!==c&&(o[c]=a(d))}return o;default:throw new Error("cannot deserialize unknown type ".concat(t))}}t.serialize=o,t.serializeToString=function(e){return JSON.stringify(o(e))},t.deserialize=a,t.deserializeFromString=function(e){return a(JSON.parse(e))}},5402:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2149:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedableRevset=t.CommandRunner=void 0,function(e){e.Graphite="gt",e.CodeReviewProvider="codeReviewProvider"}(t.CommandRunner||(t.CommandRunner={})),t.SucceedableRevset=function(e){return{type:"succeedable-revset",revset:e}}},5724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},329:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2388:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorShortMessages=t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=t.ONE_MINUTE_MS=t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=void 0,t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=4100,t.ONE_MINUTE_MS=6e4,t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=void 0,function(e){e.NoCommitsFetched="No commits found"}(t.ErrorShortMessages||(t.ErrorShortMessages={}))},8305:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9001:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(140),t),i(n(1402),t),i(n(329),t),i(n(5724),t),i(n(2388),t),i(n(8305),t)},1402:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4393:function(e,t,n){"use strict";var r=n(7757),i=n(3269).default,o=r.mark(a);function a(e,t){var n,i,a,s;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=e[Symbol.iterator](),i=t[Symbol.iterator]();case 2:if(a=n.next(),s=i.next(),!a.done&&!s.done){r.next=7;break}return r.abrupt("break",11);case 7:return r.next=9,[a.value,s.value];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),o)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=t.truncate=t.zip=t.generatorContains=t.mapObject=t.findParentWithClassName=t.basename=t.defer=t.randomId=t.unwrap=t.notEmpty=void 0,t.notEmpty=function(e){return null!=e},t.unwrap=function(e){if(null==e)throw new Error("expected value not to be ".concat(e));return e},t.randomId=function(){return Date.now().toString(36)+Math.random().toString(36)},t.defer=function(){var e={promise:void 0,resolve:void 0,reject:void 0};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.basename=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.lastIndexOf(t);return-1===n?e:e.slice(n+1)},t.findParentWithClassName=function(e,t){for(var n,r=e;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains(t))return r;r=r.parentElement}},t.mapObject=function(e,t){return Object.fromEntries(Object.entries(e).map(t))},t.generatorContains=function(e,t){var n,r="function"==typeof t?t:function(e){return e===t},o=i(e);try{for(o.s();!(n=o.n()).done;)if(r(n.value))return!0}catch(e){o.e(e)}finally{o.f()}return!1},t.zip=a,t.truncate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.substring(0,Math.max(0,t-1))+"…":e},t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},8466:function(e,t,n){"use strict";n.r(t),n.d(t,{Collection:function(){return x},Iterable:function(){return xr},List:function(){return nn},Map:function(){return Dt},OrderedMap:function(){return mn},OrderedSet:function(){return ir},PairSorting:function(){return lr},Range:function(){return Vn},Record:function(){return cr},Repeat:function(){return mr},Seq:function(){return K},Set:function(){return Nn},Stack:function(){return xn},fromJS:function(){return yr},get:function(){return nt},getIn:function(){return Bn},has:function(){return tt},hasIn:function(){return Un},hash:function(){return de},is:function(){return se},isAssociative:function(){return k},isCollection:function(){return m},isImmutable:function(){return R},isIndexed:function(){return w},isKeyed:function(){return b},isList:function(){return tn},isMap:function(){return ie},isOrdered:function(){return I},isOrderedMap:function(){return oe},isOrderedSet:function(){return Tn},isPlainObject:function(){return Qe},isRecord:function(){return T},isSeq:function(){return j},isSet:function(){return An},isStack:function(){return kn},isValueObject:function(){return ae},merge:function(){return yt},mergeDeep:function(){return _t},mergeDeepWith:function(){return wt},mergeWith:function(){return bt},remove:function(){return it},removeIn:function(){return ct},set:function(){return ot},setIn:function(){return ut},update:function(){return ft},updateIn:function(){return at},version:function(){return wr}});var r=32,i=31,o={};function a(e){e&&(e.value=!0)}function s(){}function u(e){return void 0===e.size&&(e.size=e.__iterate(c)),e.size}function l(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?u(e)+t:t}function c(){return!0}function d(e,t,n){return(0===e&&!v(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return p(e,t,0)}function h(e,t){return p(e,t,t)}function p(e,t,n){return void 0===e?n:v(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function v(e){return e<0||0===e&&1/e==-1/0}var g="@@__IMMUTABLE_ITERABLE__@@";function m(e){return Boolean(e&&e[g])}var y="@@__IMMUTABLE_KEYED__@@";function b(e){return Boolean(e&&e[y])}var _="@@__IMMUTABLE_INDEXED__@@";function w(e){return Boolean(e&&e[_])}function k(e){return b(e)||w(e)}var x=function(e){return m(e)?e:K(e)},C=function(e){function t(e){return b(e)?e:q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),O=function(e){function t(e){return w(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),S=function(e){function t(e){return m(e)&&!k(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x);x.Keyed=C,x.Indexed=O,x.Set=S;var E="@@__IMMUTABLE_SEQ__@@";function j(e){return Boolean(e&&e[E])}var A="@@__IMMUTABLE_RECORD__@@";function T(e){return Boolean(e&&e[A])}function R(e){return m(e)||T(e)}var D="@@__IMMUTABLE_ORDERED__@@";function I(e){return Boolean(e&&e[D])}var N="function"==typeof Symbol&&Symbol.iterator,P=N||"@@iterator",M=function(e){this.next=e};function L(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Z(){return{value:void 0,done:!0}}function z(e){return!!Array.isArray(e)||!!B(e)}function F(e){return e&&"function"==typeof e.next}function V(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(N&&e[N]||e["@@iterator"]);if("function"==typeof t)return t}M.prototype.toString=function(){return"[Iterator]"},M.KEYS=0,M.VALUES=1,M.ENTRIES=2,M.prototype.inspect=M.prototype.toSource=function(){return this.toString()},M.prototype[P]=function(){return this};var H=Object.prototype.hasOwnProperty;function U(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var K=function(e){function t(e){return null==e?X():R(e)?e.toSeq():function(e){var t=ne(e);if(t)return function(e){var t=B(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=B(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"==typeof e)return new G(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new M((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return L(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(x),q=function(e){function t(e){return null==e?X().toKeyedSeq():m(e)?b(e)?e.toSeq():e.fromEntrySeq():T(e)?e.toSeq():ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(K),$=function(e){function t(e){return null==e?X():m(e)?b(e)?e.entrySeq():e.toIndexedSeq():T(e)?e.toSeq().entrySeq():te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(K),Y=function(e){function t(e){return(m(e)&&!k(e)?e:$(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(K);K.isSeq=j,K.Keyed=q,K.Set=Y,K.Indexed=$,K.prototype[E]=!0;var W=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[l(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new M((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return L(e,o,n[o])}))},t}($),G=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return H.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new M((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return L(e,a,n[a])}))},t}(q);G.prototype[D]=!0;var J,Q=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._collection),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._collection);if(!F(n))return new M(Z);var r=0;return new M((function(){var t=n.next();return t.done?t:L(e,r++,t.value)}))},t}($);function X(){return J||(J=new W([]))}function ee(e){var t=ne(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new G(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function te(e){var t=ne(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ne(e){return U(e)?new W(e):z(e)?new Q(e):void 0}var re="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[re])}function oe(e){return ie(e)&&I(e)}function ae(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function se(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ae(e)&&ae(t)&&e.equals(t))}var ue="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function le(e){return e>>>1&1073741824|3221225471&e}var ce=Object.prototype.valueOf;function de(e){if(null==e)return fe(e);if("function"==typeof e.hashCode)return le(e.hashCode(e));var t,n=(t=e).valueOf!==ce&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return fe(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return le(t)}(n);case"string":return n.length>ke?function(e){var t=Oe[e];return void 0===t&&(t=he(e),Ce===xe&&(Ce=0,Oe={}),Ce++,Oe[e]=t),t}(n):he(n);case"object":case"function":return function(e){var t;if(ye&&void 0!==(t=me.get(e)))return t;if(void 0!==(t=e[we]))return t;if(!ve){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[we]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ge(),ye)me.set(e,t);else{if(void 0!==pe&&!1===pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ve)Object.defineProperty(e,we,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[we]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[we]=t}}return t}(n);case"symbol":return function(e){var t=be[e];return void 0!==t||(t=ge(),be[e]=t),t}(n);default:if("function"==typeof n.toString)return he(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function fe(e){return null===e?1108378658:1108378659}function he(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return le(t)}var pe=Object.isExtensible,ve=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ge(){var e=++_e;return 1073741824&_e&&(_e=0),e}var me,ye="function"==typeof WeakMap;ye&&(me=new WeakMap);var be=Object.create(null),_e=0,we="__immutablehash__";"function"==typeof Symbol&&(we=Symbol(we));var ke=16,xe=255,Ce=0,Oe={},Se=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=De(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Re(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(q);Se.prototype[D]=!0;var Ee=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&u(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&u(this),new M((function(){var o=r.next();return o.done?o:L(e,t?n.size-++i:i++,o.value,o)}))},t}($),je=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){var t=n.next();return t.done?t:L(e,t.value,t.value,t)}))},t}(Y),Ae=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Be(t);var r=m(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Be(r);var i=m(r);return L(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(q);function Te(e){var t=Ue(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Ke,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new M((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Re(e,t,n){var r=Ue(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,o);return a===o?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new M((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return L(r,s,t.call(n,a[1],s,e),i)}))},r}function De(e,t){var n=this,r=Ue(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Te(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Ke,r.__iterate=function(n,r){var i=this,o=0;return r&&u(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&u(e);var a=e.__iterator(2,!i);return new M((function(){var e=a.next();if(e.done)return e;var s=e.value;return L(r,t?s[0]:i?n.size-++o:o++,s[1],e)}))},r}function Ie(e,t,n,r){var i=Ue(e);return r&&(i.has=function(r){var i=e.get(r,o);return i!==o&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,o);return a!==o&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new M((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return L(i,r?l:s++,c,o)}}))},i}function Ne(e,t,n,r){var i=e.size;if(d(t,n,i))return e;var o=f(t,i),a=h(n,i);if(o!=o||a!=a)return Ne(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=Ue(e);return c.size=0===s?s:e.size&&s||void 0,!r&&j(e)&&s>=0&&(c.get=function(t,n){return(t=l(this,t))>=0&&t<s?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<o))return l++,!1!==t(e,r?n:l-1,i)&&l!==s})),l},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new M(Z);var i=e.__iterator(t,n),a=0,u=0;return new M((function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:L(t,u-1,0===t?void 0:e.value[1],e)}))},c}function Pe(e,t,n,r){var i=Ue(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),u=!0,l=0;return new M((function(){var e,o,c;do{if((e=s.next()).done)return r||1===i?e:L(i,l++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],u&&(u=t.call(n,c,o,a))}while(u);return 2===i?e:L(i,o,c,e)}))},i}function Me(e,t,n){var r=Ue(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,l){u.__iterate((function(o,u){return(!t||l<t)&&m(o)?e(o,l+1):(a++,!1===i(o,n?u:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new M((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(a.length<t)||!m(u))return n?e:L(r,s++,u,e);a.push(o),o=u.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function Le(e,t,n){t||(t=qe);var r=b(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?q(o):w(e)?$(o):Y(o)}function Ze(e,t,n){if(t||(t=qe),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return ze(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return ze(t,e,n)?n:e}))}function ze(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Fe(e,t,n,r){var i=Ue(e),o=new W(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=x(e),V(i?e.reverse():e)})),a=0,s=!1;return new M((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:L(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Ve(e,t){return e===t?e:j(e)?t:e.constructor(t)}function Be(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function He(e){return b(e)?C:w(e)?O:S}function Ue(e){return Object.create((b(e)?q:w(e)?$:Y).prototype)}function Ke(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function qe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function $e(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Ye(e,t){if(!e)throw new Error(t)}function We(e){Ye(e!==1/0,"Cannot perform this action with an infinite size.")}function Ge(e){if(U(e)&&"string"!=typeof e)return e;if(I(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ee.prototype.cacheResult=Se.prototype.cacheResult=je.prototype.cacheResult=Ae.prototype.cacheResult=Ke;var Je=Object.prototype.toString;function Qe(e){if(!e||"object"!=typeof e||"[object Object]"!==Je.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function Xe(e){return"object"==typeof e&&(R(e)||Array.isArray(e)||Qe(e))}function et(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function tt(e,t){return R(e)?e.has(t):Xe(e)&&H.call(e,t)}function nt(e,t,n){return R(e)?e.get(t,n):tt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function rt(e){if(Array.isArray(e))return $e(e);var t={};for(var n in e)H.call(e,n)&&(t[n]=e[n]);return t}function it(e,t){if(!Xe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(R(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!H.call(e,t))return e;var n=rt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ot(e,t,n){if(!Xe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(R(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(H.call(e,t)&&n===e[t])return e;var r=rt(e);return r[t]=n,r}function at(e,t,n,r){r||(r=n,n=void 0);var i=st(R(e),e,Ge(t),0,n,r);return i===o?n:i}function st(e,t,n,r,i,a){var s=t===o;if(r===n.length){var u=s?i:t,l=a(u);return l===u?t:l}if(!s&&!Xe(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(et)+"]: "+t);var c=n[r],d=s?o:nt(t,c,o),f=st(d===o?e:R(d),d,n,r+1,i,a);return f===d?t:f===o?it(t,c):ot(s?e?Ut():{}:t,c,f)}function ut(e,t,n){return at(e,t,o,(function(){return n}))}function lt(e,t){return ut(this,e,t)}function ct(e,t){return at(e,t,(function(){return o}))}function dt(e){return ct(this,e)}function ft(e,t,n,r){return at(e,[t],n,r)}function ht(e,t,n){return 1===arguments.length?e(this):ft(this,e,t,n)}function pt(e,t,n){return at(this,e,t,n)}function vt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mt(this,e)}function gt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return mt(this,t,e)}function mt(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=C(t[i]);0!==a.size&&r.push(a)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ft(e,r,o,(function(e){return e===o?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xt(e,t)}function bt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return xt(t,n,e)}function _t(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function kt(e,t,n){return xt(e,t,function(e){return function t(n,r,i){return Xe(n)&&Xe(r)&&function(e,t){var n=K(e),r=K(t);return w(n)===w(r)&&b(n)===b(r)}(n,r)?xt(n,[r],t):e?e(n,r,i):r}}(n))}function xt(e,t,n){if(!Xe(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(R(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?O:C,a=r?function(t){i===e&&(i=rt(i)),i.push(t)}:function(t,r){var o=H.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=rt(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function Ct(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return kt(this,e)}function Ot(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(this,t,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return at(this,e,Ut(),(function(e){return xt(e,t)}))}function Et(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return at(this,e,Ut(),(function(e){return kt(e,t)}))}function jt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function At(){return this.__ownerID?this:this.__ensureOwner(new s)}function Tt(){return this.__ensureOwner()}function Rt(){return this.__altered}var Dt=function(e){function t(t){return null==t?Ut():ie(t)&&!I(t)?t:Ut().withMutations((function(n){var r=e(t);We(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ut().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Kt(this,e,t)},t.prototype.remove=function(e){return Kt(this,e,o)},t.prototype.deleteAll=function(e){var t=x(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ut()},t.prototype.sort=function(e){return mn(Le(this,e))},t.prototype.sortBy=function(e,t){return mn(Le(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new Ft(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ht(this.size,this._root,e,this.__hash):0===this.size?Ut():(this.__ownerID=e,this.__altered=!1,this)},t}(C);Dt.isMap=ie;var It=Dt.prototype;It[re]=!0,It.delete=It.remove,It.removeAll=It.deleteAll,It.setIn=lt,It.removeIn=It.deleteIn=dt,It.update=ht,It.updateIn=pt,It.merge=It.concat=vt,It.mergeWith=gt,It.mergeDeep=Ct,It.mergeDeepWith=Ot,It.mergeIn=St,It.mergeDeepIn=Et,It.withMutations=jt,It.wasAltered=Rt,It.asImmutable=Tt,It["@@transducer/init"]=It.asMutable=At,It["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},It["@@transducer/result"]=function(e){return e.asImmutable()};var Nt=function(e,t){this.ownerID=e,this.entries=t};Nt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(se(n,i[o][0]))return i[o][1];return r},Nt.prototype.update=function(e,t,n,r,i,u,l){for(var c=i===o,d=this.entries,f=0,h=d.length;f<h&&!se(r,d[f][0]);f++);var p=f<h;if(p?d[f][1]===i:c)return this;if(a(l),(c||!p)&&a(u),!c||1!==d.length){if(!p&&!c&&d.length>=Jt)return function(e,t,n,r){e||(e=new s);for(var i=new Zt(e,de(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,d,r,i);var v=e&&e===this.ownerID,g=v?d:$e(d);return p?c?f===h-1?g.pop():g[f]=g.pop():g[f]=[r,i]:g.push([r,i]),v?(this.entries=g,this):new Nt(e,g)}};var Pt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Pt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var o=1<<((0===e?t:t>>>e)&i),a=this.bitmap;return 0==(a&o)?r:this.nodes[Wt(a&o-1)].get(e+5,t,n,r)},Pt.prototype.update=function(e,t,n,a,s,u,l){void 0===n&&(n=de(a));var c=(0===t?n:n>>>t)&i,d=1<<c,f=this.bitmap,h=0!=(f&d);if(!h&&s===o)return this;var p=Wt(f&d-1),v=this.nodes,g=h?v[p]:void 0,m=qt(g,e,t+5,n,a,s,u,l);if(m===g)return this;if(!h&&m&&v.length>=Qt)return function(e,t,n,i,o){for(var a=0,s=new Array(r),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[i]=o,new Mt(e,a+1,s)}(e,v,f,c,m);if(h&&!m&&2===v.length&&$t(v[1^p]))return v[1^p];if(h&&m&&1===v.length&&$t(m))return m;var y=e&&e===this.ownerID,b=h?m?f:f^d:f|d,_=h?m?Gt(v,p,m,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(v,p,y):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(v,p,m,y);return y?(this.bitmap=b,this.nodes=_,this):new Pt(e,b,_)};var Mt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Mt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var o=(0===e?t:t>>>e)&i,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Mt.prototype.update=function(e,t,n,r,a,s,u){void 0===n&&(n=de(r));var l=(0===t?n:n>>>t)&i,c=a===o,d=this.nodes,f=d[l];if(c&&!f)return this;var h=qt(f,e,t+5,n,r,a,s,u);if(h===f)return this;var p=this.count;if(f){if(!h&&--p<Xt)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new Pt(e,i,a)}(e,d,p,l)}else p++;var v=e&&e===this.ownerID,g=Gt(d,l,h,v);return v?(this.count=p,this.nodes=g,this):new Mt(e,p,g)};var Lt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Lt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(se(n,i[o][0]))return i[o][1];return r},Lt.prototype.update=function(e,t,n,r,i,s,u){void 0===n&&(n=de(r));var l=i===o;if(n!==this.keyHash)return l?this:(a(u),a(s),Yt(this,e,t,n,[r,i]));for(var c=this.entries,d=0,f=c.length;d<f&&!se(r,c[d][0]);d++);var h=d<f;if(h?c[d][1]===i:l)return this;if(a(u),(l||!h)&&a(s),l&&2===f)return new Zt(e,this.keyHash,c[1^d]);var p=e&&e===this.ownerID,v=p?c:$e(c);return h?l?d===f-1?v.pop():v[d]=v.pop():v[d]=[r,i]:v.push([r,i]),p?(this.entries=v,this):new Lt(e,this.keyHash,v)};var Zt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Zt.prototype.get=function(e,t,n,r){return se(n,this.entry[0])?this.entry[1]:r},Zt.prototype.update=function(e,t,n,r,i,s,u){var l=i===o,c=se(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(a(u),l?void a(s):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Zt(e,this.keyHash,[r,i]):(a(s),Yt(this,e,t,de(r),[r,i])))},Nt.prototype.iterate=Lt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Pt.prototype.iterate=Mt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Zt.prototype.iterate=function(e,t){return e(this.entry)};var zt,Ft=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Bt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return Vt(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Vt(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return Vt(e,o.entry);t=this._stack=Bt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(M);function Vt(e,t){return L(e,t[0],t[1])}function Bt(e,t){return{node:e,index:0,__prev:t}}function Ht(e,t,n,r){var i=Object.create(It);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ut(){return zt||(zt=Ht(0))}function Kt(e,t,n){var r,i;if(e._root){var a={value:!1},s={value:!1};if(r=qt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;i=e.size+(a.value?n===o?-1:1:0)}else{if(n===o)return e;i=1,r=new Nt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ht(i,r):Ut()}function qt(e,t,n,r,i,s,u,l){return e?e.update(t,n,r,i,s,u,l):s===o?e:(a(l),a(u),new Zt(t,r,[i,s]))}function $t(e){return e.constructor===Zt||e.constructor===Lt}function Yt(e,t,n,r,o){if(e.keyHash===r)return new Lt(t,r,[e.entry,o]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&i,u=(0===n?r:r>>>n)&i,l=s===u?[Yt(e,t,n+5,r,o)]:(a=new Zt(t,r,o),s<u?[e,a]:[a,e]);return new Pt(t,1<<s|1<<u,l)}function Wt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Gt(e,t,n,r){var i=r?e:$e(e);return i[t]=n,i}var Jt=8,Qt=16,Xt=8,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=cn();if(null==t)return n;if(tn(t))return t;var i=e(t),o=i.size;return 0===o?n:(We(o),o>0&&o<r?ln(0,o,5,null,new on(i.toArray())):n.withMutations((function(e){e.setSize(o),i.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=l(this,e))>=0&&e<this.size){var n=hn(this,e+=this._origin);return n&&n.array[e&i]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=l(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?pn(e,t).set(0,n):pn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=vn(e._capacity)?r=dn(r,e.__ownerID,0,t,n,o):i=dn(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ln(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):cn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){pn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return pn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){pn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return pn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&z(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return pn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))}))},t.prototype.slice=function(e,t){var n=this.size;return d(e,t,n)?this:pn(this,f(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=un(this,t);return new M((function(){var i=r();return i===sn?{value:void 0,done:!0}:L(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=un(this,t);(n=i())!==sn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ln(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?cn():(this.__ownerID=e,this.__altered=!1,this)},t}(O);nn.isList=tn;var rn=nn.prototype;rn[en]=!0,rn.delete=rn.remove,rn.merge=rn.concat,rn.setIn=lt,rn.deleteIn=rn.removeIn=dt,rn.update=ht,rn.updateIn=pt,rn.mergeIn=St,rn.mergeDeepIn=Et,rn.withMutations=jt,rn.wasAltered=Rt,rn.asImmutable=Tt,rn["@@transducer/init"]=rn.asMutable=At,rn["@@transducer/step"]=function(e,t){return e.push(t)},rn["@@transducer/result"]=function(e){return e.asImmutable()};var on=function(e,t){this.array=e,this.ownerID=t};on.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&i;if(r>=this.array.length)return new on([],e);var o,a=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!o)return this;var u=fn(this,e);if(!a)for(var l=0;l<r;l++)u.array[l]=void 0;return o&&(u.array[r]=o),u},on.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&i;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var s=fn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var an,sn={};function un(e,t){var n=e._origin,i=e._capacity,o=vn(i),a=e._tail;return function e(s,u,l){return 0===u?function(e,s){var u=s===o?a&&a.array:e&&e.array,l=s>n?0:n-s,c=i-s;return c>r&&(c=r),function(){if(l===c)return sn;var e=t?--c:l++;return u&&u[e]}}(s,l):function(o,a,s){var u,l=o&&o.array,c=s>n?0:n-s>>a,d=1+(i-s>>a);return d>r&&(d=r),function(){for(;;){if(u){var n=u();if(n!==sn)return n;u=null}if(c===d)return sn;var r=t?--d:c++;u=e(l&&l[r],a-5,s+(r<<a))}}}(s,u,l)}(e._root,e._level,0)}function ln(e,t,n,r,i,o,a){var s=Object.create(rn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function cn(){return an||(an=ln(0,0,5))}function dn(e,t,n,r,o,s){var u,l=r>>>n&i,c=e&&l<e.array.length;if(!c&&void 0===o)return e;if(n>0){var d=e&&e.array[l],f=dn(d,t,n-5,r,o,s);return f===d?e:((u=fn(e,t)).array[l]=f,u)}return c&&e.array[l]===o?e:(s&&a(s),u=fn(e,t),void 0===o&&l===u.array.length-1?u.array.pop():u.array[l]=o,u)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function hn(e,t){if(t>=vn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&i],r-=5;return n}}function pn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new s,o=e._origin,a=e._capacity,u=o+t,l=void 0===n?a:n<0?a+n:o+n;if(u===o&&l===a)return e;if(u>=l)return e.clear();for(var c=e._level,d=e._root,f=0;u+f<0;)d=new on(d&&d.array.length?[void 0,d]:[],r),f+=1<<(c+=5);f&&(u+=f,o+=f,l+=f,a+=f);for(var h=vn(a),p=vn(l);p>=1<<c+5;)d=new on(d&&d.array.length?[d]:[],r),c+=5;var v=e._tail,g=p<h?hn(e,l-1):p>h?new on([],r):v;if(v&&p>h&&u<a&&v.array.length){for(var m=d=fn(d,r),y=c;y>5;y-=5){var b=h>>>y&i;m=m.array[b]=fn(m.array[b],r)}m.array[h>>>5&i]=v}if(l<a&&(g=g&&g.removeAfter(r,0,l)),u>=p)u-=p,l-=p,c=5,d=null,g=g&&g.removeBefore(r,0,u);else if(u>o||p<h){for(f=0;d;){var _=u>>>c&i;if(_!==p>>>c&i)break;_&&(f+=(1<<c)*_),c-=5,d=d.array[_]}d&&u>o&&(d=d.removeBefore(r,c,u-f)),d&&p<h&&(d=d.removeAfter(r,c,p-f)),f&&(u-=f,l-=f)}return e.__ownerID?(e.size=l-u,e._origin=u,e._capacity=l,e._level=c,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):ln(u,l,c,d,g)}function vn(e){return e<r?0:e-1>>>5<<5}var gn,mn=function(e){function t(e){return null==e?bn():oe(e)?e:bn().withMutations((function(t){var n=C(e);We(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):bn()},t.prototype.set=function(e,t){return _n(this,e,t)},t.prototype.remove=function(e){return _n(this,e,o)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?yn(t,n,e,this.__hash):0===this.size?bn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Dt);function yn(e,t,n,r){var i=Object.create(mn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function bn(){return gn||(gn=yn(Ut(),cn()))}function _n(e,t,n){var i,a,s=e._map,u=e._list,l=s.get(t),c=void 0!==l;if(n===o){if(!c)return e;u.size>=r&&u.size>=2*s.size?(i=(a=u.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=a.__ownerID=e.__ownerID)):(i=s.remove(t),a=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;i=s,a=u.set(l,[t,n])}else i=s.set(t,u.size),a=u.set(u.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=a,e.__hash=void 0,e.__altered=!0,e):yn(i,a)}mn.isOrderedMap=oe,mn.prototype[D]=!0,mn.prototype.delete=mn.prototype.remove;var wn="@@__IMMUTABLE_STACK__@@";function kn(e){return Boolean(e&&e[wn])}var xn=function(e){function t(e){return null==e?En():kn(e)?e:En().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=l(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Sn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&kn(t))return t;We(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Sn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):En()},t.prototype.slice=function(t,n){if(d(t,n,this.size))return this;var r=f(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Sn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Sn(this.size,this._head,e,this.__hash):0===this.size?En():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new W(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new W(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new M((function(){if(r){var t=r.value;return r=r.next,L(e,n++,t)}return{value:void 0,done:!0}}))},t}(O);xn.isStack=kn;var Cn,On=xn.prototype;function Sn(e,t,n,r){var i=Object.create(On);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function En(){return Cn||(Cn=Sn(0))}On[wn]=!0,On.shift=On.pop,On.unshift=On.push,On.unshiftAll=On.pushAll,On.withMutations=jt,On.wasAltered=Rt,On.asImmutable=Tt,On["@@transducer/init"]=On.asMutable=At,On["@@transducer/step"]=function(e,t){return e.unshift(t)},On["@@transducer/result"]=function(e){return e.asImmutable()};var jn="@@__IMMUTABLE_SET__@@";function An(e){return Boolean(e&&e[jn])}function Tn(e){return An(e)&&I(e)}function Rn(e,t){if(e===t)return!0;if(!m(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||b(e)!==b(t)||w(e)!==w(t)||I(e)!==I(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!k(e);if(I(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&se(i[1],e)&&(n||se(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var s=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):i?!se(t,e.get(r,o)):!se(e.get(r,o),t))return s=!1,!1}));return s&&e.size===u}function Dn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function In(e){if(!e||"object"!=typeof e)return e;if(!m(e)){if(!Xe(e))return e;e=K(e)}if(b(e)){var t={};return e.__iterate((function(e,n){t[n]=In(e)})),t}var n=[];return e.__iterate((function(e){n.push(In(e))})),n}var Nn=function(e){function t(t){return null==t?zn():An(t)&&!I(t)?t:zn().withMutations((function(n){var r=e(t);We(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(C(e).keySeq())},t.intersect=function(e){return(e=x(e).toArray()).length?Mn.intersect.apply(t(e.pop()),e):zn()},t.union=function(e){return(e=x(e).toArray()).length?Mn.union.apply(t(e.pop()),e):zn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Ln(this,this._map.set(e,e))},t.prototype.remove=function(e){return Ln(this,this._map.remove(e))},t.prototype.clear=function(){return Ln(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Ln(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return ir(Le(this,e))},t.prototype.sortBy=function(e,t){return ir(Le(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(S);Nn.isSet=An;var Pn,Mn=Nn.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Zn(e,t){var n=Object.create(Mn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function zn(){return Pn||(Pn=Zn(Ut()))}Mn[jn]=!0,Mn.delete=Mn.remove,Mn.merge=Mn.concat=Mn.union,Mn.withMutations=jt,Mn.asImmutable=Tt,Mn["@@transducer/init"]=Mn.asMutable=At,Mn["@@transducer/step"]=function(e,t){return e.add(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()},Mn.__empty=zn,Mn.__make=Zn;var Fn,Vn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ye(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Fn)return Fn;Fn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+l(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return d(e,n,this.size)?this:(e=f(e,this.size),(n=h(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new M((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,L(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Rn(this,e)},t}($);function Bn(e,t,n){for(var r=Ge(t),i=0;i!==r.length;)if((e=nt(e,r[i++],o))===o)return n;return e}function Hn(e,t){return Bn(this,e,t)}function Un(e,t){return Bn(e,t,o)!==o}function Kn(){We(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}x.isIterable=m,x.isKeyed=b,x.isIndexed=w,x.isAssociative=k,x.isOrdered=I,x.Iterator=M,Dn(x,{toArray:function(){We(this.size);var e=new Array(this.size||0),t=b(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Ee(this)},toJS:function(){return In(this)},toKeyedSeq:function(){return new Se(this,!0)},toMap:function(){return Dt(this.toKeyedSeq())},toObject:Kn,toOrderedMap:function(){return mn(this.toKeyedSeq())},toOrderedSet:function(){return ir(b(this)?this.valueSeq():this)},toSet:function(){return Nn(b(this)?this.valueSeq():this)},toSetSeq:function(){return new je(this)},toSeq:function(){return w(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xn(b(this)?this.valueSeq():this)},toList:function(){return nn(b(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ve(this,function(e,t){var n=b(e),r=[e].concat(t).map((function(e){return m(e)?n&&(e=C(e)):e=n?ee(e):te(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&b(i)||w(e)&&w(i))return i}var o=new W(r);return n?o=o.toKeyedSeq():w(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}(this,e))},includes:function(e){return this.some((function(t){return se(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){We(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Ve(this,Ie(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=b(e),i=[[],[]];e.__iterate((function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)}));var o=He(e);return i.map((function(t){return Ve(e,o(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return We(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){We(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ve(this,Re(this,e,t))},reduce:function(e,t,n){return Gn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Gn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Ve(this,De(this,!0))},slice:function(e,t){return Ve(this,Ne(this,e,t,!0))},some:function(e,t){We(this.size);var n=!1;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1})),n},sort:function(e){return Ve(this,Le(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return u(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Dt().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Rn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new W(e._cache);var t=e.toSeq().map(Qn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Xn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(c,null,e)},flatMap:function(e,t){return Ve(this,function(e,t,n){var r=He(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ve(this,Me(this,e,!0))},fromEntrySeq:function(){return new Ae(this)},get:function(e,t){return this.find((function(t,n){return se(n,e)}),void 0,t)},getIn:Hn,groupBy:function(e,t){return function(e,t,n){var r=b(e),i=(I(e)?mn():Dt()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=He(e);return i.map((function(t){return Ve(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,o)!==o},hasIn:function(e){return Un(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:x(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:x(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return se(t,e)}))},keySeq:function(){return this.toSeq().map(Jn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ze(this,e)},maxBy:function(e,t){return Ze(this,t,e)},min:function(e){return Ze(this,e?er(e):nr)},minBy:function(e,t){return Ze(this,t?er(t):nr,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Ve(this,Pe(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Xn(e),t)},sortBy:function(e,t){return Ve(this,Le(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Ve(this,function(e,t,n){var r=Ue(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new M((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?2===r?e:L(r,u,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Xn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=I(e),n=b(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=ue((t=(t+3864292196|0)^e)^t>>>16,2246822507),le((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+rr(de(e),de(t))|0}:function(e,t){r=r+rr(de(e),de(t))|0}:t?function(e){r=31*r+de(e)|0}:function(e){r=r+de(e)|0}),r)}(this))}});var qn=x.prototype;qn[g]=!0,qn[P]=qn.values,qn.toJSON=qn.toArray,qn.__toStringMapper=et,qn.inspect=qn.toSource=function(){return this.toString()},qn.chain=qn.flatMap,qn.contains=qn.includes,Dn(C,{flip:function(){return Ve(this,Te(this))},mapEntries:function(e,t){var n=this,r=0;return Ve(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ve(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var $n=C.prototype;$n[y]=!0,$n[P]=qn.entries,$n.toJSON=Kn,$n.__toStringMapper=function(e,t){return et(t)+": "+et(e)},Dn(O,{toKeyedSeq:function(){return new Se(this,!1)},filter:function(e,t){return Ve(this,Ie(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ve(this,De(this,!1))},slice:function(e,t){return Ve(this,Ne(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ve(this,1===n?r:r.concat($e(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ve(this,Me(this,e,!1))},get:function(e,t){return(e=l(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=l(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ve(this,function(e,t){var n=Ue(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new M((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?L(n,a++,t):L(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat($e(arguments)),t=Fe(this.toSeq(),$.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ve(this,n)},keySeq:function(){return Vn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Ve(this,Pe(this,e,t,!1))},zip:function(){return Ve(this,Fe(this,tr,[this].concat($e(arguments))))},zipAll:function(){return Ve(this,Fe(this,tr,[this].concat($e(arguments)),!0))},zipWith:function(e){var t=$e(arguments);return t[0]=this,Ve(this,Fe(this,e,t))}});var Yn=O.prototype;Yn[_]=!0,Yn[D]=!0,Dn(S,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Wn=S.prototype;function Gn(e,t,n,r,i,o){return We(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function Jn(e,t){return t}function Qn(e,t){return[t,e]}function Xn(e){return function(){return!e.apply(this,arguments)}}function er(e){return function(){return-e.apply(this,arguments)}}function tr(){return $e(arguments)}function nr(e,t){return e<t?1:e>t?-1:0}function rr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Wn.has=qn.includes,Wn.contains=Wn.includes,Wn.keys=Wn.values,Dn(q,$n),Dn($,Yn),Dn(Y,Wn);var ir=function(e){function t(e){return null==e?ur():Tn(e)?e:ur().withMutations((function(t){var n=S(e);We(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(C(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Nn);ir.isOrderedSet=Tn;var or,ar=ir.prototype;function sr(e,t){var n=Object.create(ar);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ur(){return or||(or=sr(bn()))}ar[D]=!0,ar.zip=Yn.zip,ar.zipWith=Yn.zipWith,ar.zipAll=Yn.zipAll,ar.__empty=ur,ar.__make=sr;var lr={LeftThenRight:-1,RightThenLeft:1},cr=function(e,t){var n;!function(e){if(T(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(R(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var c=s[l];u[c]=l,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+hr(this)+' with property "'+c+'" since that property name is part of the Record API.'):vr(i,c)}}return this.__ownerID=void 0,this._values=nn().withMutations((function(e){e.setSize(a._keys.length),C(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(dr);return i.constructor=r,t&&(r.displayName=t),r};cr.prototype.toString=function(){for(var e,t=hr(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+et(this.get(e));return t+" }"},cr.prototype.equals=function(e){return this===e||T(e)&&pr(this).equals(pr(e))},cr.prototype.hashCode=function(){return pr(this).hashCode()},cr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},cr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},cr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return fr(this,n)}return this},cr.prototype.remove=function(e){return this.set(e)},cr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fr(this,e)},cr.prototype.wasAltered=function(){return this._values.wasAltered()},cr.prototype.toSeq=function(){return pr(this)},cr.prototype.toJS=function(){return In(this)},cr.prototype.entries=function(){return this.__iterator(2)},cr.prototype.__iterator=function(e,t){return pr(this).__iterator(e,t)},cr.prototype.__iterate=function(e,t){return pr(this).__iterate(e,t)},cr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?fr(this,t,e):(this.__ownerID=e,this._values=t,this)},cr.isRecord=T,cr.getDescriptiveName=hr;var dr=cr.prototype;function fr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function hr(e){return e.constructor.displayName||e.constructor.name||"Record"}function pr(e){return ee(e._keys.map((function(t){return[t,e.get(t)]})))}function vr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}dr[A]=!0,dr.delete=dr.remove,dr.deleteIn=dr.removeIn=dt,dr.getIn=Hn,dr.hasIn=qn.hasIn,dr.merge=vt,dr.mergeWith=gt,dr.mergeIn=St,dr.mergeDeep=Ct,dr.mergeDeepWith=Ot,dr.mergeDeepIn=Et,dr.setIn=lt,dr.update=ht,dr.updateIn=pt,dr.withMutations=jt,dr.asMutable=At,dr.asImmutable=Tt,dr[P]=dr.entries,dr.toJSON=dr.toObject=qn.toObject,dr.inspect=dr.toSource=function(){return this.toString()};var gr,mr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(gr)return gr;gr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return se(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,h(n,r)-f(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return se(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return se(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new M((function(){return i===r?{value:void 0,done:!0}:L(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?se(this._value,e._value):Rn(e)},t}($);function yr(e,t){return br([],t||_r,e,"",t&&t.length>2?[]:void 0,{"":e})}function br(e,t,n,r,i,o){if("string"!=typeof n&&!R(n)&&(U(n)||z(n)||Qe(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,K(n).map((function(r,o){return br(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function _r(e,t){return w(t)?t.toList():b(t)?t.toMap():t.toSet()}var wr="4.3.1",kr={version:wr,Collection:x,Iterable:x,Seq:K,Map:Dt,OrderedMap:mn,List:nn,Stack:xn,Set:Nn,OrderedSet:ir,PairSorting:lr,Record:cr,Range:Vn,Repeat:mr,is:se,fromJS:yr,hash:de,isImmutable:R,isCollection:m,isKeyed:b,isIndexed:w,isAssociative:k,isOrdered:I,isValueObject:ae,isPlainObject:Qe,isSeq:j,isList:tn,isMap:ie,isOrderedMap:oe,isStack:kn,isSet:An,isOrderedSet:Tn,isRecord:T,get:nt,getIn:Bn,has:tt,hasIn:Un,merge:yt,mergeDeep:_t,mergeWith:bt,mergeDeepWith:wt,remove:it,removeIn:ct,set:ot,setIn:ut,update:ft,updateIn:at},xr=x;t.default=kr},4704:function(e){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;if(!t)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!t.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');e.exports.AbortController=t.AbortController},5297:function(){},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},3668:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1120),i=n(8814);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=n(7326);function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function u(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var o=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(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.")}()}},168:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907),i=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},1072:function(e,t,n){"use strict";n.d(t,{vD:function(){return os},QJ:function(){return as},y9:function(){return ss},Yb:function(){return us},Np:function(){return ls},nH:function(){return cs},VK:function(){return ds},dm:function(){return fs},OG:function(){return hs}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(7762),u=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===u.trustedTypes&&(u.trustedTypes={createPolicy:function(e,t){return t}});var l={configurable:!1,enumerable:!1,writable:!1};void 0===u.FAST&&Reflect.defineProperty(u,"FAST",Object.assign({value:Object.create(null)},l));var c=u.FAST;if(void 0===c.getById){var d=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value:function(e,t){var n=d[e];return void 0===n&&(n=t?d[e]=t():null),n}},l))}var f=Object.freeze([]);function h(){var e=new WeakMap;return function(t){var n=e.get(t);if(void 0===n){for(var r=Reflect.getPrototypeOf(t);void 0===n&&null!==r;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}var p=n(4942),v=n(7326),g=u.FAST.getById(1,(function(){var e=[],t=[];function n(){if(t.length)throw t.shift()}function r(e){try{e.call()}catch(e){t.push(e),setTimeout(n,0)}}function i(){for(var t=0;t<e.length;)if(r(e[t]),++t>1024){for(var n=0,i=e.length-t;n<i;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&u.requestAnimationFrame(i),e.push(t)},process:i})})),m=u.trustedTypes.createPolicy("fast-html",{createHTML:function(e){return e}}),y=m,b="fast-".concat(Math.random().toString(36).substring(2,8)),_="".concat(b,"{"),w="}".concat(b),k=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy:function(e){if(y!==m)throw new Error("The HTML policy can only be set once.");y=e},createHTML:function(e){return y.createHTML(e)},isMarker:function(e){return e&&8===e.nodeType&&e.data.startsWith(b)},extractDirectiveIndexFromMarker:function(e){return parseInt(e.data.replace("".concat(b,":"),""))},createInterpolationPlaceholder:function(e){return"".concat(_).concat(e).concat(w)},createCustomAttributePlaceholder:function(e,t){return"".concat(e,'="').concat(this.createInterpolationPlaceholder(t),'"')},createBlockPlaceholder:function(e){return"\x3c!--".concat(b,":").concat(e,"--\x3e")},queueUpdate:g.enqueue,processUpdates:g.process,nextUpdate:function(){return new Promise(g.enqueue)},setAttribute:function(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute:function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes:function(e){for(var t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:function(e){return document.createTreeWalker(e,133,null,!1)}}),x=function(){function e(t,n){(0,r.Z)(this,e),this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}return(0,i.Z)(e,[{key:"has",value:function(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}},{key:"subscribe",value:function(e){var t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}},{key:"unsubscribe",value:function(e){var t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},{key:"notify",value:function(e){var t=this.spillover,n=this.source;if(void 0===t){var r=this.sub1,i=this.sub2;void 0!==r&&r.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(var o=0,a=t.length;o<a;++o)t[o].handleChange(n,e)}}]),e}(),C=function(){function e(t){(0,r.Z)(this,e),this.subscribers={},this.sourceSubscribers=null,this.source=t}return(0,i.Z)(e,[{key:"notify",value:function(e){var t,n=this.subscribers[e];void 0!==n&&n.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}},{key:"subscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0===r&&(this.subscribers[t]=r=new x(this.source)),r.subscribe(e)}else this.sourceSubscribers=null!==(n=this.sourceSubscribers)&&void 0!==n?n:new x(this.source),this.sourceSubscribers.subscribe(e)}},{key:"unsubscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0!==r&&r.unsubscribe(e)}else null===(n=this.sourceSubscribers)||void 0===n||n.unsubscribe(e)}}]),e}(),O=c.getById(2,(function(){var e=/(:|&&|\|\||if)/,t=new WeakMap,n=k.queueUpdate,s=void 0,u=function(e){throw new Error("Must call enableArrayObservation before observing arrays.")};function l(e){var n=e.$fastController||t.get(e);return void 0===n&&(Array.isArray(e)?n=u(e):t.set(e,n=new C(e))),n}var c=h(),d=function(){function e(t){(0,r.Z)(this,e),this.name=t,this.field="_".concat(t),this.callback="".concat(t,"Changed")}return(0,i.Z)(e,[{key:"getValue",value:function(e){return void 0!==s&&s.watch(e,this.name),e[this.field]}},{key:"setValue",value:function(e,t){var n=this.field,r=e[n];if(r!==t){e[n]=t;var i=e[this.callback];"function"==typeof i&&i.call(e,r,t),l(e).notify(this.name)}}}]),e}(),f=function(e){(0,o.Z)(u,e);var t=(0,a.Z)(u);function u(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.Z)(this,u),(i=t.call(this,e,n)).binding=e,i.isVolatileBinding=o,i.needsRefresh=!0,i.needsQueue=!0,i.first=(0,v.Z)(i),i.last=null,i.propertySource=void 0,i.propertyName=void 0,i.notifier=void 0,i.next=void 0,i}return(0,i.Z)(u,[{key:"observe",value:function(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();var n=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;var r=this.binding(e,t);return s=n,r}},{key:"disconnect",value:function(){if(null!==this.last){for(var e=this.first;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}},{key:"watch",value:function(e,t){var n,r=this.last,i=l(e),o=null===r?this.first:{};o.propertySource=e,o.propertyName=t,o.notifier=i,i.subscribe(this,t),null!==r&&(this.needsRefresh||(s=void 0,n=r.propertySource[r.propertyName],s=this,e===n&&(this.needsRefresh=!0)),r.next=o),this.last=o}},{key:"handleChange",value:function(){this.needsQueue&&(this.needsQueue=!1,n(this))}},{key:"call",value:function(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}},{key:"records",value:function(){var e=this.first;return(0,p.Z)({next:function(){var t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})}},Symbol.iterator,(function(){return this}))}}]),u}(x);return Object.freeze({setArrayObserverFactory:function(e){u=e},getNotifier:l,track:function(e,t){void 0!==s&&s.watch(e,t)},trackVolatile:function(){void 0!==s&&(s.needsRefresh=!0)},notify:function(e,t){l(e).notify(t)},defineProperty:function(e,t){"string"==typeof t&&(t=new d(t)),c(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:c,binding:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.isVolatileBinding(e);return new f(e,t,n)},isVolatileBinding:function(t){return e.test(t.toString())}})}));function S(e,t){O.defineProperty(e,t)}var E=c.getById(3,(function(){var e=null;return{get:function(){return e},set:function(t){e=t}}})),j=function(){function e(){(0,r.Z)(this,e),this.index=0,this.length=0,this.parent=null,this.parentContext=null}return(0,i.Z)(e,[{key:"event",get:function(){return E.get()}},{key:"isEven",get:function(){return this.index%2==0}},{key:"isOdd",get:function(){return this.index%2!=0}},{key:"isFirst",get:function(){return 0===this.index}},{key:"isInMiddle",get:function(){return!this.isFirst&&!this.isLast}},{key:"isLast",get:function(){return this.index===this.length-1}}],[{key:"setEvent",value:function(e){E.set(e)}}]),e}();O.defineProperty(j.prototype,"index"),O.defineProperty(j.prototype,"length");var A=Object.seal(new j),T=n(1120);function R(){return R="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,T.Z)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},R.apply(this,arguments)}var D=n(2982),I=function(){function e(){(0,r.Z)(this,e),this.targets=new WeakSet}return(0,i.Z)(e,[{key:"addStylesTo",value:function(e){this.targets.add(e)}},{key:"removeStylesFrom",value:function(e){this.targets.delete(e)}},{key:"isAttachedTo",value:function(e){return this.targets.has(e)}},{key:"withBehaviors",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}]),e}();function N(e){return e.map((function(e){return e instanceof I?N(e.styles):[e]})).reduce((function(e,t){return e.concat(t)}),[])}function P(e){return e.map((function(e){return e instanceof I?e.behaviors:null})).reduce((function(e,t){return null===t?e:(null===e&&(e=[]),e.concat(t))}),null)}I.create=function(){if(k.supportsAdoptedStyleSheets){var e=new Map;return function(t){return new Z(t,e)}}return function(e){return new F(e)}}();var M=function(e,t){e.adoptedStyleSheets=[].concat((0,D.Z)(e.adoptedStyleSheets),(0,D.Z)(t))},L=function(e,t){e.adoptedStyleSheets=e.adoptedStyleSheets.filter((function(e){return-1===t.indexOf(e)}))};if(k.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),M=function(e,t){var n;(n=e.adoptedStyleSheets).push.apply(n,(0,D.Z)(t))},L=function(e,t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.adoptedStyleSheets.indexOf(i);-1!==o&&e.adoptedStyleSheets.splice(o,1)}}catch(e){r.e(e)}finally{r.f()}}}catch(e){}var Z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).styles=e,o.styleSheetCache=i,o._styleSheets=void 0,o.behaviors=P(e),o}return(0,i.Z)(n,[{key:"styleSheets",get:function(){if(void 0===this._styleSheets){var e=this.styles,t=this.styleSheetCache;this._styleSheets=N(e).map((function(e){if(e instanceof CSSStyleSheet)return e;var n=t.get(e);return void 0===n&&((n=new CSSStyleSheet).replaceSync(e),t.set(e,n)),n}))}return this._styleSheets}},{key:"addStylesTo",value:function(e){M(e,this.styleSheets),R((0,T.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){L(e,this.styleSheets),R((0,T.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}}]),n}(I),z=0,F=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).styles=e,i.behaviors=null,i.behaviors=P(e),i.styleSheets=N(e),i.styleClass="fast-style-class-".concat(++z),i}return(0,i.Z)(n,[{key:"addStylesTo",value:function(e){var t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(var i=0;i<t.length;i++){var o=document.createElement("style");o.innerHTML=t[i],o.className=r,e.append(o)}R((0,T.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){for(var t=(e=this.normalizeTarget(e)).querySelectorAll(".".concat(this.styleClass)),r=0,i=t.length;r<i;++r)e.removeChild(t[r]);R((0,T.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}},{key:"isAttachedTo",value:function(e){return R((0,T.Z)(n.prototype),"isAttachedTo",this).call(this,this.normalizeTarget(e))}},{key:"normalizeTarget",value:function(e){return e===document?document.body:e}}]),n}(I),V=Object.freeze({locate:h()}),B={toView:function(e){return e?"true":"false"},fromView:function(e){return null!=e&&"false"!==e&&!1!==e&&0!==e}},H={toView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t.toString()},fromView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t}},U=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.toLowerCase(),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"reflect",a=arguments.length>4?arguments[4]:void 0;(0,r.Z)(this,e),this.guards=new Set,this.Owner=t,this.name=n,this.attribute=i,this.mode=o,this.converter=a,this.fieldName="_".concat(n),this.callbackName="".concat(n,"Changed"),this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===a&&(this.converter=B)}return(0,i.Z)(e,[{key:"setValue",value:function(e,t){var n=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}},{key:"getValue",value:function(e){return O.track(e,this.name),e[this.fieldName]}},{key:"onAttributeChangedCallback",value:function(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}},{key:"tryReflectToAttribute",value:function(e){var t=this,n=this.mode,r=this.guards;r.has(e)||"fromView"===n||k.queueUpdate((function(){r.add(e);var i=e[t.fieldName];switch(n){case"reflect":var o=t.converter;k.setAttribute(e,t.attribute,void 0!==o?o.toView(i):i);break;case"boolean":k.setBooleanAttribute(e,t.attribute,i)}r.delete(e)}))}}],[{key:"collect",value:function(t){for(var n=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];i.push(V.locate(t));for(var a=0,s=i.length;a<s;++a){var u=i[a];if(void 0!==u)for(var l=0,c=u.length;l<c;++l){var d=u[l];"string"==typeof d?n.push(new e(t,d)):n.push(new e(t,d.property,d.attribute,d.mode,d.converter))}}return n}}]),e}();function K(e,t){var n;function r(e,t){arguments.length>1&&(n.property=t),V.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}var q={mode:"open"},$={},Y=c.getById(4,(function(){var e=new Map;return Object.freeze({register:function(t){return!e.has(t.type)&&(e.set(t.type,t),!0)},getByType:function(t){return e.get(t)}})})),W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.definition;(0,r.Z)(this,e),"string"==typeof n&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;for(var i=U.collect(t,n.attributes),o=new Array(i.length),a={},s={},u=0,l=i.length;u<l;++u){var c=i[u];o[u]=c.attribute,a[c.name]=c,s[c.attribute]=c}this.attributes=i,this.observedAttributes=o,this.propertyLookup=a,this.attributeLookup=s,this.shadowOptions=void 0===n.shadowOptions?q:null===n.shadowOptions?void 0:Object.assign(Object.assign({},q),n.shadowOptions),this.elementOptions=void 0===n.elementOptions?$:Object.assign(Object.assign({},$),n.elementOptions),this.styles=void 0===n.styles?void 0:Array.isArray(n.styles)?I.create(n.styles):n.styles instanceof I?n.styles:I.create([n.styles])}return(0,i.Z)(e,[{key:"isDefined",get:function(){return!!Y.getByType(this.type)}},{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements,t=this.type;if(Y.register(this)){for(var n=this.attributes,r=t.prototype,i=0,o=n.length;i<o;++i)O.defineProperty(r,n[i]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}]),e}();function G(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}W.forType=Y.getByType;var J=n(885),Q=new WeakMap,X={bubbles:!0,composed:!0,cancelable:!0};function ee(e){return e.shadowRoot||Q.get(e)||null}var te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;(0,r.Z)(this,n),(o=t.call(this,e)).boundObservables=null,o.behaviors=null,o.needsInitialization=!0,o._template=null,o._styles=null,o._isConnected=!1,o.$fastController=(0,v.Z)(o),o.view=null,o.element=e,o.definition=i;var a=i.shadowOptions;if(void 0!==a){var s=e.attachShadow(a);"closed"===a.mode&&Q.set(e,s)}var u=O.getAccessors(e);if(u.length>0)for(var l=o.boundObservables=Object.create(null),c=0,d=u.length;c<d;++c){var f=u[c].name,h=e[f];void 0!==h&&(delete e[f],l[f]=h)}return o}return(0,i.Z)(n,[{key:"isConnected",get:function(){return O.track(this,"isConnected"),this._isConnected}},{key:"setIsConnected",value:function(e){this._isConnected=e,O.notify(this,"isConnected")}},{key:"template",get:function(){return this._template},set:function(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}},{key:"styles",get:function(){return this._styles},set:function(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}},{key:"addStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){var n=e.behaviors;e.addStylesTo(t),null!==n&&this.addBehaviors(n)}}},{key:"removeStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){var n=e.behaviors;e.removeStylesFrom(t),null!==n&&this.removeBehaviors(n)}}},{key:"addBehaviors",value:function(e){for(var t=this.behaviors||(this.behaviors=new Map),n=e.length,r=[],i=0;i<n;++i){var o=e[i];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),r.push(o))}if(this._isConnected)for(var a=this.element,s=0;s<r.length;++s)r[s].bind(a,A)}},{key:"removeBehaviors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.behaviors;if(null!==n){for(var r=e.length,i=[],o=0;o<r;++o){var a=e[o];if(n.has(a)){var s=n.get(a)-1;0===s||t?n.delete(a)&&i.push(a):n.set(a,s)}}if(this._isConnected)for(var u=this.element,l=0;l<i.length;++l)i[l].unbind(u)}}},{key:"onConnectedCallback",value:function(){if(!this._isConnected){var e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,A);var t=this.behaviors;if(null!==t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;)(0,J.Z)(n.value,1)[0].bind(e,A)}catch(e){r.e(e)}finally{r.f()}}this.setIsConnected(!0)}}},{key:"onDisconnectedCallback",value:function(){if(this._isConnected){this.setIsConnected(!1);var e=this.view;null!==e&&e.unbind();var t=this.behaviors;if(null!==t){var n,r=this.element,i=(0,s.Z)(t);try{for(i.s();!(n=i.n()).done;)(0,J.Z)(n.value,1)[0].unbind(r)}catch(e){i.e(e)}finally{i.f()}}}}},{key:"onAttributeChangedCallback",value:function(e,t,n){var r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}},{key:"emit",value:function(e,t,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},X),n)))}},{key:"finishInitialization",value:function(){var e=this.element,t=this.boundObservables;if(null!==t){for(var n=Object.keys(t),r=0,i=n.length;r<i;++r){var o=n[r];e[o]=t[o]}this.boundObservables=null}var a=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():a.template&&(this._template=a.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():a.styles&&(this._styles=a.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}},{key:"renderTemplate",value:function(e){var t=this.element,n=ee(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||k.removeChildNodes(n),e&&(this.view=e.render(t,n,t))}}],[{key:"forCustomElement",value:function(e){var t=e.$fastController;if(void 0!==t)return t;var r=W.forType(e.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return e.$fastController=new n(e,r)}}]),n}(C);function ne(e){return function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),e=t.call(this),te.forCustomElement((0,v.Z)(e)),e}return(0,i.Z)(n,[{key:"$emit",value:function(e,t,n){return this.$fastController.emit(e,t,n)}},{key:"connectedCallback",value:function(){this.$fastController.onConnectedCallback()}},{key:"disconnectedCallback",value:function(){this.$fastController.onDisconnectedCallback()}},{key:"attributeChangedCallback",value:function(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}}]),n}(e)}var re=Object.assign(ne(HTMLElement),{from:function(e){return ne(e)},define:function(e,t){return new W(e,t).define().type}}),ie=n(9611),oe=n(8814);function ae(e,t,n){return ae=(0,oe.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,ie.Z)(i,n.prototype),i},ae.apply(null,arguments)}var se=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){var r=se.get(n);void 0===r&&se.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){var n=se.get(t);if(void 0!==n)return n.get(e)});var ue=function(){function e(t,n){(0,r.Z)(this,e),this.container=t,this.key=n}return(0,i.Z)(e,[{key:"instance",value:function(e){return this.registerResolver(0,e)}},{key:"singleton",value:function(e){return this.registerResolver(1,e)}},{key:"transient",value:function(e){return this.registerResolver(2,e)}},{key:"callback",value:function(e){return this.registerResolver(3,e)}},{key:"cachedCallback",value:function(e){return this.registerResolver(3,Ne(e))}},{key:"aliasTo",value:function(e){return this.registerResolver(5,e)}},{key:"registerResolver",value:function(e,t){var n=this.container,r=this.key;return this.container=this.key=void 0,n.registerResolver(r,new we(r,e,t))}}]),e}();function le(e){for(var t,n=e.slice(),r=Object.keys(e),i=r.length,o=0;o<i;++o)Be(t=r[o])||(n[t]=e[t]);return n}var ce=Object.freeze({none:function(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:function(e){return new we(e,1,e)},transient:function(e){return new we(e,2,e)}}),de=Object.freeze({default:Object.freeze({parentLocator:function(){return null},responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),fe=new Map;function he(e){return function(t){return Reflect.getOwnMetadata(e,t)}}var pe=null,ve=Object.freeze({createContainer:function(e){return new De(null,Object.assign({},de.default,e))},findResponsibleContainer:function(e){var t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ve.findParentContainer(e)},findParentContainer:function(e){var t=new CustomEvent(Te,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ve.getOrCreateDOMContainer()},getOrCreateDOMContainer:function(e,t){return e?e.$$container$$||new De(e,Object.assign({},de.default,t,{parentLocator:ve.findParentContainer})):pe||(pe=new De(null,Object.assign({},de.default,t,{parentLocator:function(){return null}})))},getDesignParamtypes:he("design:paramtypes"),getAnnotationParamtypes:he("di:paramtypes"),getOrCreateAnnotationParamTypes:function(e){var t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies:function(e){var t=fe.get(e);if(void 0===t){var n=e.inject;if(void 0===n){var r=ve.getDesignParamtypes(e),i=ve.getAnnotationParamtypes(e);if(void 0===r)if(void 0===i){var o=Object.getPrototypeOf(e);t="function"==typeof o&&o!==Function.prototype?le(ve.getDependencies(o)):[]}else t=le(i);else if(void 0===i)t=le(r);else{t=le(r);for(var a,s=i.length,u=0;u<s;++u)void 0!==(a=i[u])&&(t[u]=a);var l,c=Object.keys(i);s=c.length;for(var d=0;d<s;++d)Be(l=c[d])||(t[l]=i[l])}}else t=le(n);fe.set(e,t)}return t},defineProperty:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="$di_".concat(t);Reflect.defineProperty(e,t,{get:function(){var e=this,o=this[i];if(void 0===o){var a=this instanceof HTMLElement?ve.findResponsibleContainer(this):ve.getOrCreateDOMContainer();if(o=a.get(n),this[i]=o,r&&this instanceof re){var s=this.$fastController;s.subscribe({handleChange:function(){ve.findResponsibleContainer(e).get(n)!==e[i]&&(e[i]=o,s.notify(t))}},"isConnected")}}return o}})},createInterface:function(e,t){var n="function"==typeof e?e:t,r="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Ze,i="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),o=function e(t,n,r){if(null==t||void 0!==(this instanceof e?this.constructor:void 0))throw new Error("No registration for interface: '".concat(o.friendlyName,"'"));n?ve.defineProperty(t,n,o,i):ve.getOrCreateAnnotationParamTypes(t)[r]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new ue(e,null!=t?t:o))}),o.toString=function(){return"InterfaceSymbol<".concat(o.friendlyName,">")},o},inject:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){if("number"==typeof r){var i=ve.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[r]=o)}else if(n)ve.defineProperty(e,n,t[0]);else for(var a,s=r?ve.getOrCreateAnnotationParamTypes(r.value):ve.getOrCreateAnnotationParamTypes(e),u=0;u<t.length;++u)void 0!==(a=t[u])&&(s[u]=a)}},transient:function(e){return e.register=function(t){return Pe.transient(e,e).register(t)},e.registerInRequestor=!1,e},singleton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye;return e.register=function(t){return Pe.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),ge=ve.createInterface("Container");function me(e){return function(t){var n=function e(t,n,r){ve.inject(e)(t,n,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ve.inject;var ye={scoped:!1};function be(e,t,n){ve.inject(be)(e,t,n)}function _e(e,t){return t.getFactory(e).construct(t)}me((function(e,t,n){return function(){return n.get(e)}})),me((function(e,t,n){return n.has(e,!0)?n.get(e):void 0})),be.$isResolver=!0,be.resolve=function(){},me((function(e,t,n){var r=_e(e,t),i=new we(e,0,r);return n.registerResolver(e,i),r})),me((function(e,t,n){return _e(e,t)}));var we=function(){function e(t,n,i){(0,r.Z)(this,e),this.key=t,this.strategy=n,this.state=i,this.resolving=!1}return(0,i.Z)(e,[{key:"$isResolver",get:function(){return!0}},{key:"register",value:function(e){return e.registerResolver(this.key,this)}},{key:"resolve",value:function(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: ".concat(this.state.name));return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:var n=e.getFactory(this.state);if(null===n)throw new Error("Resolver for ".concat(String(this.key)," returned a null factory"));return n.construct(t);case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error("Invalid resolver strategy specified: ".concat(this.strategy,"."))}}},{key:"getFactory",value:function(e){var t,n,r;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(r=null===(n=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:null;default:return null}}}]),e}();function ke(e){return this.get(e)}function xe(e,t){return t(e)}var Ce=function(){function e(t,n){(0,r.Z)(this,e),this.Type=t,this.dependencies=n,this.transformers=null}return(0,i.Z)(e,[{key:"construct",value:function(e,t){var n;return n=ae(this.Type,void 0===t?(0,D.Z)(this.dependencies.map(ke,e)):(0,D.Z)(this.dependencies.map(ke,e)).concat((0,D.Z)(t))),null==this.transformers?n:this.transformers.reduce(xe,n)}},{key:"registerTransformer",value:function(e){(this.transformers||(this.transformers=[])).push(e)}}]),e}(),Oe={$isResolver:!0,resolve:function(e,t){return t}};function Se(e){return"function"==typeof e.register}function Ee(e){return function(e){return Se(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}function je(e){return void 0!==e.prototype}var Ae=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Te="__DI_LOCATE_PARENT__",Re=new Map,De=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this.owner=t,this.config=n,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(ge,Oe),t instanceof Node&&t.addEventListener(Te,(function(e){e.composedPath()[0]!==i.owner&&(e.detail.container=i,e.stopImmediatePropagation())}))}return(0,i.Z)(e,[{key:"parent",get:function(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}},{key:"depth",get:function(){return null===this.parent?0:this.parent.depth+1}},{key:"responsibleForOwnerRequests",get:function(){return this.config.responsibleForOwnerRequests}},{key:"registerWithContext",value:function(e){this.context=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.register.apply(this,n),this.context=null,this}},{key:"register",value:function(){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");for(var e,t,n,r,i,o=this.context,a=0,s=arguments.length;a<s;++a)if(ze(e=a<0||arguments.length<=a?void 0:arguments[a]))if(Se(e))e.register(this,o);else if(je(e))Pe.singleton(e,e).register(this);else for(r=0,i=(t=Object.keys(e)).length;r<i;++r)ze(n=e[t[r]])&&(Se(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}},{key:"registerResolver",value:function(e,t){Me(e);var n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof we&&4===r.strategy?r.state.push(t):n.set(e,new we(e,4,[r,t])),t}},{key:"registerTransformer",value:function(e,t){var n=this.getResolver(e);if(null==n)return!1;if(n.getFactory){var r=n.getFactory(this);return null!=r&&(r.registerTransformer(t),!0)}return!1}},{key:"getResolver",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Me(e),void 0!==e.resolve)return e;for(var n,r=this;null!=r;){if(null!=(n=r.resolvers.get(e)))return n;if(null==r.parent){var i=Ee(e)?this:r;return t?this.jitRegister(e,i):null}r=r.parent}return null}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}},{key:"get",value:function(e){if(Me(e),e.$isResolver)return e.resolve(this,this);for(var t,n=this;null!=n;){if(null!=(t=n.resolvers.get(e)))return t.resolve(n,this);if(null==n.parent){var r=Ee(e)?this:n;return(t=this.jitRegister(e,r)).resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(e))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Me(e);var n,r=this,i=r;if(t){for(var o=f;null!=i;)null!=(n=i.resolvers.get(e))&&(o=o.concat(Le(n,i,r))),i=i.parent;return o}for(;null!=i;){if(null!=(n=i.resolvers.get(e)))return Le(n,i,r);if(null==(i=i.parent))return f}return f}},{key:"getFactory",value:function(e){var t=Re.get(e);if(void 0===t){if(Fe(e))throw new Error("".concat(e.name," is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver."));Re.set(e,t=new Ce(e,ve.getDependencies(e)))}return t}},{key:"registerFactory",value:function(e,t){Re.set(e,t)}},{key:"createChild",value:function(t){var n=this;return new e(null,Object.assign({},this.config,t,{parentLocator:function(){return n}}))}},{key:"jitRegister",value:function(e,t){if("function"!=typeof e)throw new Error("Attempted to jitRegister something that is not a constructor: '".concat(e,"'. Did you forget to register this dependency?"));if(Ae.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(Se(e)){var n=e.register(t);if(!(n instanceof Object)||null==n.resolve){var r=t.resolvers.get(e);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return n}if(e.$isInterface)throw new Error("Attempted to jitRegister an interface: ".concat(e.friendlyName));var i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}]),e}(),Ie=new WeakMap;function Ne(e){return function(t,n,r){if(Ie.has(r))return Ie.get(r);var i=e(t,n,r);return Ie.set(r,i),i}}var Pe=Object.freeze({instance:function(e,t){return new we(e,0,t)},singleton:function(e,t){return new we(e,1,t)},transient:function(e,t){return new we(e,2,t)},callback:function(e,t){return new we(e,3,t)},cachedCallback:function(e,t){return new we(e,3,Ne(t))},aliasTo:function(e,t){return new we(t,5,e)}});function Me(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Le(e,t,n){if(e instanceof we&&4===e.strategy){for(var r=e.state,i=r.length,o=new Array(i);i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}var Ze="(anonymous)";function ze(e){return"object"==typeof e&&null!==e||"function"==typeof e}var Fe=function(){var e=new WeakMap,t=!1,n="",r=0;return function(i){return void 0===(t=e.get(i))&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&125===n.charCodeAt(r-1)&&n.charCodeAt(r-2)<=32&&93===n.charCodeAt(r-3)&&101===n.charCodeAt(r-4)&&100===n.charCodeAt(r-5)&&111===n.charCodeAt(r-6)&&99===n.charCodeAt(r-7)&&32===n.charCodeAt(r-8)&&101===n.charCodeAt(r-9)&&118===n.charCodeAt(r-10)&&105===n.charCodeAt(r-11)&&116===n.charCodeAt(r-12)&&97===n.charCodeAt(r-13)&&110===n.charCodeAt(r-14)&&88===n.charCodeAt(r-15),e.set(i,t)),t}}(),Ve={};function Be(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":var t=Ve[e];if(void 0!==t)return t;var n=e.length;if(0===n)return Ve[e]=!1;for(var r=0,i=0;i<n;++i)if(r=e.charCodeAt(i),0===i&&48===r&&n>1||r<48||r>57)return Ve[e]=!1;return Ve[e]=!0;default:return!1}}function He(e){return"".concat(e.toLowerCase(),":presentation")}var Ue=new Map,Ke=Object.freeze({define:function(e,t,n){var r=He(e);void 0===Ue.get(r)?Ue.set(r,t):Ue.set(r,!1),n.register(Pe.instance(r,t))},forTag:function(e,t){var n=He(e),r=Ue.get(n);return!1===r?ve.findResponsibleContainer(t).get(n):r||null}}),qe=function(){function e(t,n){(0,r.Z)(this,e),this.template=t||null,this.styles=void 0===n?null:Array.isArray(n)?I.create(n):n instanceof I?n:I.create([n])}return(0,i.Z)(e,[{key:"applyTo",value:function(e){var t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}]),e}(),$e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._presentation=void 0,e}return(0,i.Z)(n,[{key:"$presentation",get:function(){return void 0===this._presentation&&(this._presentation=Ke.forTag(this.tagName,this)),this._presentation}},{key:"templateChanged",value:function(){void 0!==this.template&&(this.$fastController.template=this.template)}},{key:"stylesChanged",value:function(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}},{key:"connectedCallback",value:function(){null!==this.$presentation&&this.$presentation.applyTo(this),R((0,T.Z)(n.prototype),"connectedCallback",this).call(this)}}],[{key:"compose",value:function(e){var t=this;return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new We(t===n?function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(n):t,e,s)}}}]),n}(re);function Ye(e,t,n){return"function"==typeof e?e(t,n):e}G([S],$e.prototype,"template",void 0),G([S],$e.prototype,"styles",void 0);var We=function(){function e(t,n,i){(0,r.Z)(this,e),this.type=t,this.elementDefinition=n,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}return(0,i.Z)(e,[{key:"register",value:function(e,t){var n=this.definition,r=this.overrideDefinition,i=n.prefix||t.elementPrefix,o="".concat(i,"-").concat(n.baseName);t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:function(e){var t=new qe(Ye(n.template,e,n),Ye(n.styles,e,n));e.definePresentation(t);var i=Ye(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:Ye(n.elementOptions,e,n),shadowOptions:i,attributes:Ye(n.attributes,e,n)})}})}}]),e}(),Ge=new Set(["children","localName","ref","style","className"]),Je=Object.freeze(Object.create(null)),Qe="_default",Xe=new Map;function et(e,t){if(!t.name){var n=W.forType(e);if(!n)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=n.name}return t.name}function tt(e){return e.events||(e.events={})}function nt(e,t,n){return!Ge.has(n)||(console.warn("".concat(et(e,t)," contains property ").concat(n," which is a React ")+"reserved property. It will be used by React and not set on the element."),!1)}function rt(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(tt(t))));else{var n=new Set(Object.keys(tt(t))),r=O.getAccessors(e.prototype);if(r.length>0){var i,o=(0,s.Z)(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;nt(e,t,a.name)&&n.add(a.name)}}catch(e){o.e(e)}finally{o.f()}}else for(var u in e.prototype)!(u in HTMLElement.prototype)&&nt(e,t,u)&&n.add(u);t.keys=n}return t.keys}var it=n(2791),ot=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).generateBadgeStyle=function(){if(e.fill||e.color){var t="background-color: var(--badge-fill-".concat(e.fill,");"),n="color: var(--badge-color-".concat(e.color,");");return e.fill&&!e.color?t:e.color&&!e.fill?n:"".concat(n," ").concat(t)}},e}return(0,i.Z)(n)}($e);G([K({attribute:"fill"})],ot.prototype,"fill",void 0),G([K({attribute:"color"})],ot.prototype,"color",void 0),G([K({mode:"boolean"})],ot.prototype,"circular",void 0);var at=n(168),st=(0,i.Z)((function e(){(0,r.Z)(this,e),this.targetIndex=0})),ut=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).createPlaceholder=k.createInterpolationPlaceholder,e}return(0,i.Z)(n)}(st),lt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).name=e,a.behavior=i,a.options=o,a}return(0,i.Z)(n,[{key:"createPlaceholder",value:function(e){return k.createCustomAttributePlaceholder(this.name,e)}},{key:"createBehavior",value:function(e){return new this.behavior(e,this.options)}}]),n}(st);function ct(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=O.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function dt(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function ft(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function ht(){this.bindingObserver.disconnect(),this.source=null,this.context=null;var e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function pt(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function vt(e){k.setAttribute(this.target,this.targetName,e)}function gt(e){k.setBooleanAttribute(this.target,this.targetName,e)}function mt(e){if(null!=e||(e=""),e.create){this.target.textContent="";var t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{var n=this.target.$fastView;void 0!==n&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),this.target.textContent=e}}function yt(e){this.target[this.targetName]=e}function bt(e){var t=this.classVersions||Object.create(null),n=this.target,r=this.version||0;if(null!=e&&e.length)for(var i=e.split(/\s+/),o=0,a=i.length;o<a;++o){var s=i[o];""!==s&&(t[s]=r,n.classList.add(s))}if(this.classVersions=t,this.version=r+1,0!==r)for(var u in r-=1,t)t[u]===r&&n.classList.remove(u)}var _t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).binding=e,i.bind=ct,i.unbind=ft,i.updateTarget=vt,i.isBindingVolatile=O.isVolatileBinding(i.binding),i}return(0,i.Z)(n,[{key:"targetName",get:function(){return this.originalTargetName},set:function(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=yt,"innerHTML"===this.cleanedTargetName){var t=this.binding;this.binding=function(e,n){return k.createHTML(t(e,n))}}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=gt;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=dt,this.unbind=pt;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=bt)}}},{key:"targetAtContent",value:function(){this.updateTarget=mt,this.unbind=ht}},{key:"createBehavior",value:function(e){return new wt(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}]),n}(ut),wt=function(){function e(t,n,i,o,a,s,u){(0,r.Z)(this,e),this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=i,this.bind=o,this.unbind=a,this.updateTarget=s,this.targetName=u}return(0,i.Z)(e,[{key:"handleChange",value:function(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}},{key:"handleEvent",value:function(e){j.setEvent(e);var t=this.binding(this.source,this.context);j.setEvent(null),!0!==t&&e.preventDefault()}}]),e}(),kt=null,xt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"addFactory",value:function(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}},{key:"captureContentBinding",value:function(e){e.targetAtContent(),this.addFactory(e)}},{key:"reset",value:function(){this.behaviorFactories=[],this.targetIndex=-1}},{key:"release",value:function(){kt=this}}],[{key:"borrow",value:function(t){var n=kt||new e;return n.directives=t,n.reset(),kt=null,n}}]),e}(),Ct=w.length;function Ot(e,t){var n=t.split(_);if(1===n.length)return null;for(var r=[],i=0,o=n.length;i<o;++i){var a=n[i],s=a.indexOf(w),u=void 0;if(-1===s)u=a;else{var l=parseInt(a.substring(0,s));r.push(e.directives[l]),u=a.substring(s+Ct)}""!==u&&r.push(u)}return r}function St(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.attributes,i=function(i,s){var u=r[i],l=u.value,c=Ot(e,l),d=null;null===c?n&&((d=new _t((function(){return l}))).targetName=u.name):d=function(e){if(1===e.length)return e[0];var t,n=e.length,r=e.map((function(e){return"string"==typeof e?function(){return e}:(t=e.targetName||t,e.binding)})),i=new _t((function(e,t){for(var i="",o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}(c),null!==d&&(t.removeAttributeNode(u),i--,s--,e.addFactory(d)),o=i,a=s},o=0,a=r.length;o<a;++o)i(o,a)}function Et(e,t,n){var r=Ot(e,t.textContent);if(null!==r){for(var i=t,o=0,a=r.length;o<a;++o){var s=r[o],u=0===o?t:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?u.textContent=s:(u.textContent=" ",e.captureContentBinding(s)),i=u,e.targetIndex++,u!==t&&n.nextNode()}e.targetIndex--}}var jt,At=document.createRange(),Tt=function(){function e(t,n){(0,r.Z)(this,e),this.fragment=t,this.behaviors=n,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}return(0,i.Z)(e,[{key:"appendTo",value:function(e){e.appendChild(this.fragment)}},{key:"insertBefore",value:function(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{var t=this.lastChild;if(e.previousSibling===t)return;for(var n,r=e.parentNode,i=this.firstChild;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}},{key:"remove",value:function(){for(var e,t=this.fragment,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.appendChild(r),r=e;t.appendChild(n)}},{key:"dispose",value:function(){for(var e,t=this.firstChild.parentNode,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.removeChild(r),r=e;t.removeChild(n);for(var i=this.behaviors,o=this.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}},{key:"bind",value:function(e,t){var n=this.behaviors;if(this.source!==e)if(null!==this.source){var r=this.source;this.source=e,this.context=t;for(var i=0,o=n.length;i<o;++i){var a=n[i];a.unbind(r),a.bind(e,t)}}else{this.source=e,this.context=t;for(var s=0,u=n.length;s<u;++s)n[s].bind(e,t)}}},{key:"unbind",value:function(){if(null!==this.source){for(var e=this.behaviors,t=this.source,n=0,r=e.length;n<r;++n)e[n].unbind(t);this.source=null}}}],[{key:"disposeContiguousBatch",value:function(e){if(0!==e.length){At.setStartBefore(e[0].firstChild),At.setEndAfter(e[e.length-1].lastChild),At.deleteContents();for(var t=0,n=e.length;t<n;++t)for(var r=e[t],i=r.behaviors,o=r.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}}}]),e}(),Rt=function(){function e(t,n){(0,r.Z)(this,e),this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=n}return(0,i.Z)(e,[{key:"create",value:function(e){if(null===this.fragment){var t,n=this.html;if("string"==typeof n){(t=document.createElement("template")).innerHTML=k.createHTML(n);var r=t.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(t=r)}else t=n;var i=function(e,t){var n=e.content;document.adoptNode(n);var r=xt.borrow(t);St(r,e,!0);var i=r.behaviorFactories;r.reset();for(var o,a=k.createTemplateWalker(n);o=a.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:St(r,o);break;case 3:Et(r,o,a);break;case 8:k.isMarker(o)&&r.addFactory(t[k.extractDirectiveIndexFromMarker(o)])}var s=0;(k.isMarker(n.firstChild)||1===n.childNodes.length&&t.length)&&(n.insertBefore(document.createComment(""),n.firstChild),s=-1);var u=r.behaviorFactories;return r.release(),{fragment:n,viewBehaviorFactories:u,hostBehaviorFactories:i,targetOffset:s}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}for(var o=this.fragment.cloneNode(!0),a=this.viewBehaviorFactories,s=new Array(this.behaviorCount),u=k.createTemplateWalker(o),l=0,c=this.targetOffset,d=u.nextNode(),f=a.length;l<f;++l)for(var h=a[l],p=h.targetIndex;null!==d;){if(c===p){s[l]=h.createBehavior(d);break}d=u.nextNode(),c++}if(this.hasHostBehaviors)for(var v=this.hostBehaviorFactories,g=0,m=v.length;g<m;++g,++l)s[l]=v[g].createBehavior(e);return new Tt(o,s)}},{key:"render",value:function(e,t,n){"string"==typeof t&&(t=document.getElementById(t)),void 0===n&&(n=t);var r=this.create(n);return r.bind(e,A),r.appendTo(t),r}}]),e}(),Dt=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function It(e){for(var t=[],n="",r=0,i=e.length-1;r<i;++r){var o=e[r],a=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];if(n+=o,a instanceof Rt&&function(){var e=a;a=function(){return e}}(),"function"==typeof a&&(a=new _t(a)),a instanceof ut){var s=Dt.exec(o);null!==s&&(a.targetName=s[2])}a instanceof st?(n+=a.createPlaceholder(t.length),t.push(a)):n+=a}return n+=e[e.length-1],new Rt(n,t)}var Nt=function(e,t){return It(jt||(jt=(0,at.Z)(['\n <template class="','">\n <div class="control" part="control" style="','">\n <slot></slot>\n </div>\n </template>\n'])),(function(e){return e.circular?"circular":""}),(function(e){return e.generateBadgeStyle()}))},Pt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"createCSS",value:function(){return""}},{key:"createBehavior",value:function(){}}]),e}();function Mt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(e,t){for(var n=[],r="",i=[],o=0,a=e.length-1;o<a;++o){r+=e[o];var s=t[o];if(s instanceof Pt){var u=s.createBehavior();s=s.createCSS(),u&&i.push(u)}s instanceof I||s instanceof CSSStyleSheet?(""!==r.trim()&&(n.push(r),r=""),n.push(s)):r+=s}return""!==(r+=e[e.length-1]).trim()&&n.push(r),{styles:n,behaviors:i}}(e,n),o=i.styles,a=i.behaviors,s=I.create(o);return a.length&&s.withBehaviors.apply(s,(0,D.Z)(a)),s}function Lt(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function Zt(e){var t=e.parentElement;if(t)return t;var n=e.getRootNode();return n.host instanceof HTMLElement?n.host:null}var zt=document.createElement("div"),Ft=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),Vt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;(0,r.Z)(this,n),i=t.call(this);var o=new CSSStyleSheet;return i.target=o.cssRules[o.insertRule(":host{}")].style,e.$fastController.addStyles(I.create([o])),i}return(0,i.Z)(n)}(Ft),Bt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),e=t.call(this);var i=new CSSStyleSheet;return e.target=i.cssRules[i.insertRule(":root{}")].style,document.adoptedStyleSheets=[].concat((0,D.Z)(document.adoptedStyleSheets),[i]),e}return(0,i.Z)(n)}(Ft),Ht=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),(e=t.call(this)).style=document.createElement("style"),document.head.appendChild(e.style);var i=e.style.sheet;if(i){var o=i.insertRule(":root{}",i.cssRules.length);e.target=i.cssRules[o].style}return e}return(0,i.Z)(n)}(Ft),Ut=function(){function e(t){(0,r.Z)(this,e),this.store=new Map,this.target=null;var n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),O.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}return(0,i.Z)(e,[{key:"targetChanged",value:function(){if(null!==this.target){var e,t=(0,s.Z)(this.store.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,J.Z)(e.value,2),r=n[0],i=n[1];this.target.setProperty(r,i)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"setProperty",value:function(e,t){var n=this;this.store.set(e,t),k.queueUpdate((function(){null!==n.target&&n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;this.store.delete(e),k.queueUpdate((function(){null!==t.target&&t.target.removeProperty(e)}))}},{key:"handleChange",value:function(e,t){var n=this.style.sheet;if(n){var r=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[r].style}else this.target=null}}]),e}();G([S],Ut.prototype,"target",void 0);var Kt=function(){function e(t){(0,r.Z)(this,e),this.target=t.style}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),qt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(t,n){e.properties[t]=n;var r,i=(0,s.Z)(e.roots.values());try{for(i.s();!(r=i.n()).done;){var o=r.value;Wt.getOrCreate(e.normalizeRoot(o)).setProperty(t,n)}}catch(e){i.e(e)}finally{i.f()}}},{key:"removeProperty",value:function(t){delete e.properties[t];var n,r=(0,s.Z)(e.roots.values());try{for(r.s();!(n=r.n()).done;){var i=n.value;Wt.getOrCreate(e.normalizeRoot(i)).removeProperty(t)}}catch(e){r.e(e)}finally{r.f()}}}],[{key:"registerRoot",value:function(t){var n=e.roots;if(!n.has(t)){n.add(t);var r=Wt.getOrCreate(this.normalizeRoot(t));for(var i in e.properties)r.setProperty(i,e.properties[i])}}},{key:"unregisterRoot",value:function(t){var n=e.roots;if(n.has(t)){n.delete(t);var r=Wt.getOrCreate(e.normalizeRoot(t));for(var i in e.properties)r.removeProperty(i)}}},{key:"normalizeRoot",value:function(e){return e===zt?document:e}}]),e}();qt.roots=new Set,qt.properties={};var $t=new WeakMap,Yt=k.supportsAdoptedStyleSheets?Vt:Ut,Wt=Object.freeze({getOrCreate:function(e){return $t.has(e)?$t.get(e):(t=e===zt?new qt:e instanceof Document?k.supportsAdoptedStyleSheets?new Bt:new Ht:e instanceof re?new Yt(e):new Kt(e),$t.set(e,t),t);var t}}),Gt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).subscribers=new WeakMap,i._appliedTo=new Set,i.name=e.name,null!==e.cssCustomPropertyName&&(i.cssCustomProperty="--".concat(e.cssCustomPropertyName),i.cssVar="var(".concat(i.cssCustomProperty,")")),i.id=n.uniqueId(),n.tokensById.set(i.id,(0,v.Z)(i)),i}return(0,i.Z)(n,[{key:"appliedTo",get:function(){return(0,D.Z)(this._appliedTo)}},{key:"getOrCreateSubscriberSet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}},{key:"createCSS",value:function(){return this.cssVar||""}},{key:"getValueFor",value:function(e){var t=nn.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error('Value could not be retrieved for token named "'.concat(this.name,'". Ensure the value is set for ').concat(e," or an ancestor of ").concat(e,"."))}},{key:"setValueFor",value:function(e,t){return this._appliedTo.add(e),t instanceof n&&(t=this.alias(t)),nn.getOrCreate(e).set(this,t),this}},{key:"deleteValueFor",value:function(e){return this._appliedTo.delete(e),nn.existsFor(e)&&nn.getOrCreate(e).delete(this),this}},{key:"withDefault",value:function(e){return this.setValueFor(zt,e),this}},{key:"subscribe",value:function(e,t){var n=this.getOrCreateSubscriberSet(t);t&&!nn.existsFor(t)&&nn.getOrCreate(t),n.has(e)||n.add(e)}},{key:"unsubscribe",value:function(e,t){var n=this.subscribers.get(t||this);n&&n.has(e)&&n.delete(e)}},{key:"notify",value:function(e){var t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((function(e){return e.handleChange(t)})),this.subscribers.has(e)&&this.subscribers.get(e).forEach((function(e){return e.handleChange(t)}))}},{key:"alias",value:function(e){return function(t){return e.getValueFor(t)}}}],[{key:"from",value:function(e){return new n({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}},{key:"isCSSDesignToken",value:function(e){return"string"==typeof e.cssCustomProperty}},{key:"isDerivedDesignTokenValue",value:function(e){return"function"==typeof e}},{key:"getTokenById",value:function(e){return n.tokensById.get(e)}}]),n}(Pt);Gt.uniqueId=function(){var e=0;return function(){return(++e).toString(16)}}(),Gt.tokensById=new Map;var Jt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"startReflection",value:function(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}},{key:"stopReflection",value:function(e,t){e.unsubscribe(this,t),this.remove(e,t)}},{key:"handleChange",value:function(e){var t=e.token,n=e.target;this.add(t,n)}},{key:"add",value:function(e,t){Wt.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(nn.getOrCreate(t).get(e)))}},{key:"remove",value:function(e,t){Wt.getOrCreate(t).removeProperty(e.cssCustomProperty)}},{key:"resolveCSSValue",value:function(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}}]),e}(),Qt=function(){function e(t,n,i){(0,r.Z)(this,e),this.source=t,this.token=n,this.node=i,this.dependencies=new Set,this.observer=O.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}return(0,i.Z)(e,[{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"handleChange",value:function(){this.node.store.set(this.token,this.observer.observe(this.node.target,A))}}]),e}(),Xt=function(){function e(){(0,r.Z)(this,e),this.values=new Map}return(0,i.Z)(e,[{key:"set",value:function(e,t){this.values.get(e)!==t&&(this.values.set(e,t),O.getNotifier(this).notify(e.id))}},{key:"get",value:function(e){return O.track(this,e.id),this.values.get(e)}},{key:"delete",value:function(e){this.values.delete(e)}},{key:"all",value:function(){return this.values.entries()}}]),e}(),en=new WeakMap,tn=new WeakMap,nn=function(){function e(t){var n=this;(0,r.Z)(this,e),this.target=t,this.store=new Xt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:function(e,t){var r=Gt.getTokenById(t);if(r&&(r.notify(n.target),Gt.isCSSDesignToken(r))){var i=n.parent,o=n.isReflecting(r);if(i){var a=i.get(r),s=e.get(r);a===s||o?a===s&&o&&n.stopReflectToCSS(r):n.reflectToCSS(r)}else o||n.reflectToCSS(r)}}},en.set(t,this),O.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof re?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}return(0,i.Z)(e,[{key:"parent",get:function(){return tn.get(this)||null}},{key:"has",value:function(e){return this.assignedValues.has(e)}},{key:"get",value:function(e){var t=this.store.get(e);if(void 0!==t)return t;var n=this.getRaw(e);return void 0!==n?(this.hydrate(e,n),this.get(e)):void 0}},{key:"getRaw",value:function(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(n=e.findClosestAssignedNode(t,this))||void 0===n?void 0:n.getRaw(t)}},{key:"set",value:function(e,t){Gt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Gt.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}},{key:"delete",value:function(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);var t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}},{key:"bind",value:function(){var t=e.findParent(this);t&&t.appendChild(this);var n,r=(0,s.Z)(this.assignedValues.keys());try{for(r.s();!(n=r.n()).done;)n.value.notify(this.target)}catch(e){r.e(e)}finally{r.f()}}},{key:"unbind",value:function(){this.parent&&tn.get(this).removeChild(this)}},{key:"appendChild",value:function(e){e.parent&&tn.get(e).removeChild(e);var t=this.children.filter((function(t){return e.contains(t)}));tn.set(e,this),this.children.push(e),t.forEach((function(t){return e.appendChild(t)})),O.getNotifier(this.store).subscribe(e);var n,r=(0,s.Z)(this.store.all());try{for(r.s();!(n=r.n()).done;){var i=(0,J.Z)(n.value,2),o=i[0],a=i[1];e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),O.getNotifier(this.store).unsubscribe(e),e.parent===this&&tn.delete(e)}},{key:"contains",value:function(e){return function(e,t){for(var n=t;null!==n;){if(n===e)return!0;n=Zt(n)}return!1}(this.target,e.target)}},{key:"reflectToCSS",value:function(t){this.isReflecting(t)||(this.reflecting.add(t),e.cssCustomPropertyReflector.startReflection(t,this.target))}},{key:"stopReflectToCSS",value:function(t){this.isReflecting(t)&&(this.reflecting.delete(t),e.cssCustomPropertyReflector.stopReflection(t,this.target))}},{key:"isReflecting",value:function(e){return this.reflecting.has(e)}},{key:"handleChange",value:function(e,t){var n=Gt.getTokenById(t);n&&this.hydrate(n,this.getRaw(n))}},{key:"hydrate",value:function(e,t){if(!this.has(e)){var n=this.bindingObservers.get(e);Gt.isDerivedDesignTokenValue(t)?n?n.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(n&&this.tearDownBindingObserver(e),this.store.set(e,t))}}},{key:"setupBindingObserver",value:function(e,t){var n=new Qt(t,e,this);return this.bindingObservers.set(e,n),n}},{key:"tearDownBindingObserver",value:function(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}],[{key:"getOrCreate",value:function(t){return en.get(t)||new e(t)}},{key:"existsFor",value:function(e){return en.has(e)}},{key:"findParent",value:function(t){if(zt!==t.target){for(var n=Zt(t.target);null!==n;){if(en.has(n))return en.get(n);n=Zt(n)}return e.getOrCreate(zt)}return null}},{key:"findClosestAssignedNode",value:function(t,n){var r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==zt?e.getOrCreate(zt):null}while(null!==r);return null}}]),e}();nn.cssCustomPropertyReflector=new Jt,G([S],nn.prototype,"children",void 0);var rn=Object.freeze({create:function(e){return Gt.from(e)},notifyConnection:function(e){return!(!e.isConnected||!nn.existsFor(e)||(nn.getOrCreate(e).bind(),0))},notifyDisconnection:function(e){return!(e.isConnected||!nn.existsFor(e)||(nn.getOrCreate(e).unbind(),0))},registerRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt;qt.registerRoot(e)},unregisterRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt;qt.unregisterRoot(e)}});function on(e){var t=getComputedStyle(document.body),n=document.querySelector("body");if(n){var r,i=n.getAttribute("data-vscode-theme-kind"),o=(0,s.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=(0,J.Z)(r.value,2),u=a[0],l=a[1],c=t.getPropertyValue(u).toString();if("vscode-high-contrast"===i)0===c.length&&l.name.includes("background")&&(c="transparent"),"button-icon-hover-background"===l.name&&(c="transparent");else if("vscode-high-contrast-light"===i){if(0===c.length&&l.name.includes("background"))switch(l.name){case"button-primary-hover-background":c="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":c="transparent"}}else"contrast-active-border"===l.name&&(c="transparent");l.setValueFor(n,c)}}catch(e){o.e(e)}finally{o.f()}}}var an=new Map,sn=!1;function un(e,t){var n=rn.create(e);if(t){if(t.includes("--fake-vscode-token")){var r="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(r)}an.set(t,n)}return sn||(function(e){window.addEventListener("load",(function(){new MutationObserver((function(){on(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),on(e)}))}(an),sn=!0),n}var ln,cn=un("background","--vscode-editor-background").withDefault("#1e1e1e"),dn=un("border-width").withDefault(1),fn=un("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),hn=(un("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),un("corner-radius").withDefault(0)),pn=un("design-unit").withDefault(4),vn=un("disabled-opacity").withDefault(.4),gn=un("focus-border","--vscode-focusBorder").withDefault("#007fd4"),mn=un("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),yn=(un("font-weight","--vscode-font-weight").withDefault("400"),un("foreground","--vscode-foreground").withDefault("#cccccc")),bn=un("input-height").withDefault("26"),_n=un("input-min-width").withDefault("100px"),wn=un("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),kn=un("type-ramp-base-line-height").withDefault("normal"),xn=un("type-ramp-minus1-font-size").withDefault("11px"),Cn=un("type-ramp-minus1-line-height").withDefault("16px"),On=(un("type-ramp-minus2-font-size").withDefault("9px"),un("type-ramp-minus2-line-height").withDefault("16px"),un("type-ramp-plus1-font-size").withDefault("16px"),un("type-ramp-plus1-line-height").withDefault("24px"),un("scrollbarWidth").withDefault("10px")),Sn=un("scrollbarHeight").withDefault("10px"),En=un("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),jn=un("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),An=un("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Tn=un("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Rn=un("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Dn=un("button-border","--vscode-button-border").withDefault("transparent"),In=un("button-icon-background").withDefault("transparent"),Nn=un("button-icon-corner-radius").withDefault("5px"),Pn=un("button-icon-outline-offset").withDefault(0),Mn=un("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Ln=un("button-icon-padding").withDefault("3px"),Zn=un("button-primary-background","--vscode-button-background").withDefault("#0e639c"),zn=un("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Fn=un("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Vn=un("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Bn=un("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Hn=un("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Un=un("button-padding-horizontal").withDefault("11px"),Kn=un("button-padding-vertical").withDefault("4px"),qn=un("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),$n=un("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Yn=un("checkbox-corner-radius").withDefault(3),Wn=(un("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),un("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),Gn=un("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Jn=un("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Qn=un("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Xn=un("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),er=un("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),tr=(un("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),un("dropdown-list-max-height").withDefault("200px")),nr=un("input-background","--vscode-input-background").withDefault("#3c3c3c"),rr=un("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),ir=(un("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),un("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),or=un("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ar=un("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),sr=un("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),ur=un("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),lr=un("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),cr=(un("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),un("panel-view-border","--vscode-panel-border").withDefault("#80808059"),un("tag-corner-radius").withDefault("2px")),dr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.circular||(this.circular=!0)}}]),n}(ot),fr=dr.compose({baseName:"badge",template:Nt,styles:function(e,t){return Mt(ln||(ln=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\ttext-align: center;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: 11px;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tdisplay: flex;\n\t\theight: calc("," * 4px);\n\t\tjustify-content: center;\n\t\tmin-width: calc("," * 4px + 2px);\n\t\tmin-height: calc("," * 4px + 2px);\n\t\tpadding: 3px 6px;\n\t}\n"])),Lt("inline-block"),mn,xn,Cn,Tn,dn,Dn,Rn,pn,pn,pn)}});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var hr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-atomic"})],hr.prototype,"ariaAtomic",void 0),G([K({attribute:"aria-busy"})],hr.prototype,"ariaBusy",void 0),G([K({attribute:"aria-controls"})],hr.prototype,"ariaControls",void 0),G([K({attribute:"aria-current"})],hr.prototype,"ariaCurrent",void 0),G([K({attribute:"aria-describedby"})],hr.prototype,"ariaDescribedby",void 0),G([K({attribute:"aria-details"})],hr.prototype,"ariaDetails",void 0),G([K({attribute:"aria-disabled"})],hr.prototype,"ariaDisabled",void 0),G([K({attribute:"aria-errormessage"})],hr.prototype,"ariaErrormessage",void 0),G([K({attribute:"aria-flowto"})],hr.prototype,"ariaFlowto",void 0),G([K({attribute:"aria-haspopup"})],hr.prototype,"ariaHaspopup",void 0),G([K({attribute:"aria-hidden"})],hr.prototype,"ariaHidden",void 0),G([K({attribute:"aria-invalid"})],hr.prototype,"ariaInvalid",void 0),G([K({attribute:"aria-keyshortcuts"})],hr.prototype,"ariaKeyshortcuts",void 0),G([K({attribute:"aria-label"})],hr.prototype,"ariaLabel",void 0),G([K({attribute:"aria-labelledby"})],hr.prototype,"ariaLabelledby",void 0),G([K({attribute:"aria-live"})],hr.prototype,"ariaLive",void 0),G([K({attribute:"aria-owns"})],hr.prototype,"ariaOwns",void 0),G([K({attribute:"aria-relevant"})],hr.prototype,"ariaRelevant",void 0),G([K({attribute:"aria-roledescription"})],hr.prototype,"ariaRoledescription",void 0);var pr,vr,gr,mr,yr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.propertyName=n}return(0,i.Z)(e,[{key:"bind",value:function(e){e[this.propertyName]=this.target}},{key:"unbind",value:function(){}}]),e}();function br(e){return new lt("fast-ref",yr,e)}var _r,wr=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"handleStartContentChange",value:function(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}},{key:"handleEndContentChange",value:function(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}]),e}(),kr=function(e,t){return It(pr||(pr=(0,at.Z)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),br("endContainer"),(function(e){return t.end?"end":void 0}),br("end"),(function(e){return e.handleEndContentChange()}),t.end||"")},xr=function(e,t){return It(vr||(vr=(0,at.Z)(['\n <span\n part="start"\n ','\n class="','"\n >\n <slot\n name="start"\n ','\n @slotchange="','"\n >\n ',"\n </slot>\n </span>\n"])),br("startContainer"),(function(e){return t.start?"start":void 0}),br("start"),(function(e){return e.handleStartContentChange()}),t.start||"")};function Cr(e){for(var t=V.locate(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(n){Object.getOwnPropertyNames(n.prototype).forEach((function(t){"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t))})),V.locate(n).forEach((function(e){return t.push(e)}))}))}It(gr||(gr=(0,at.Z)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),br("endContainer"),br("end"),(function(e){return e.handleEndContentChange()})),It(mr||(mr=(0,at.Z)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),br("startContainer"),br("start"),(function(e){return e.handleStartContentChange()})),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(_r||(_r={}));var Or="ArrowDown",Sr="ArrowLeft",Er="ArrowRight",jr="ArrowUp",Ar="Enter",Tr="Escape",Rr="Home",Dr="End",Ir=" ",Nr="Tab",Pr={ArrowDown:Or,ArrowLeft:Sr,ArrowRight:Er,ArrowUp:jr},Mr="form-associated-proxy",Lr="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,Zr=new WeakMap;function zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).dirtyValue=!1,e.disabled=!1,e.proxyEventsToBlock=["change","click"],e.proxyInitialized=!1,e.required=!1,e.initialValue=e.initialValue||"",e.elementInternals||(e.formResetCallback=e.formResetCallback.bind((0,v.Z)(e))),e}return(0,i.Z)(n,[{key:"validity",get:function(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}},{key:"form",get:function(){return this.elementInternals?this.elementInternals.form:this.proxy.form}},{key:"validationMessage",get:function(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}},{key:"willValidate",get:function(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}},{key:"labels",get:function(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){var e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll("[for='".concat(this.id,"']"))),n=e?t.concat(Array.from(e)):t;return Object.freeze(n)}return f}},{key:"valueChanged",value:function(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}},{key:"currentValueChanged",value:function(){this.value=this.currentValue}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"disabledChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),k.queueUpdate((function(){return n.classList.toggle("disabled",n.disabled)}))}},{key:"nameChanged",value:function(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}},{key:"requiredChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),k.queueUpdate((function(){return n.classList.toggle("required",n.required)})),this.validate()}},{key:"elementInternals",get:function(){if(!Lr)return null;var e=Zr.get(this);return e||(e=this.attachInternals(),Zr.set(this,e)),e}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}},{key:"disconnectedCallback",value:function(){var e=this;this.proxyEventsToBlock.forEach((function(t){return e.proxy.removeEventListener(t,e.stopPropagation)})),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}},{key:"checkValidity",value:function(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}},{key:"reportValidity",value:function(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}},{key:"setValidity",value:function(e,t,n){this.elementInternals?this.elementInternals.setValidity(e,t,n):"string"==typeof t&&this.proxy.setCustomValidity(t)}},{key:"formDisabledCallback",value:function(e){this.disabled=e}},{key:"formResetCallback",value:function(){this.value=this.initialValue,this.dirtyValue=!1}},{key:"attachProxy",value:function(){var e,t=this;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((function(e){return t.proxy.addEventListener(e,t.stopPropagation)})),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Mr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Mr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}},{key:"detachProxy",value:function(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}},{key:"validate",value:function(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}},{key:"setFormValue",value:function(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}},{key:"_keypressHandler",value:function(e){if(e.key===Ar&&this.form instanceof HTMLFormElement){var t=this.form.querySelector("[type=submit]");null==t||t.click()}}},{key:"stopPropagation",value:function(e){e.stopPropagation()}}],[{key:"formAssociated",get:function(){return Lr}}]),n}(e);return K({mode:"boolean"})(t.prototype,"disabled"),K({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),K({attribute:"current-value"})(t.prototype,"currentValue"),K(t.prototype,"name"),K({mode:"boolean"})(t.prototype,"required"),S(t.prototype,"value"),t}function Fr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(zr(e)),n=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call(this,o)).dirtyChecked=!1,e.checkedAttribute=!1,e.checked=!1,e.dirtyChecked=!1,e}return(0,i.Z)(n,[{key:"checkedAttributeChanged",value:function(){this.defaultChecked=this.checkedAttribute}},{key:"defaultCheckedChanged",value:function(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}},{key:"checkedChanged",value:function(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}},{key:"currentCheckedChanged",value:function(e,t){this.checked=this.currentChecked}},{key:"updateForm",value:function(){var e=this.checked?this.value:null;this.setFormValue(e,e)}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.updateForm()}},{key:"formResetCallback",value:function(){R((0,T.Z)(n.prototype),"formResetCallback",this).call(this),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}]),n}(t);return K({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),K({attribute:"current-checked",converter:B})(n.prototype,"currentChecked"),S(n.prototype,"defaultChecked"),S(n.prototype,"checked"),n}var Vr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Br=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(Vr)),Hr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n;e.disabled&&(null===(n=e.defaultSlottedContent)||void 0===n?void 0:n.length)<=1&&t.stopPropagation()},e.handleSubmission=function(){if(e.form){var t=e.proxy.isConnected;t||e.attachProxy(),"function"==typeof e.form.requestSubmit?e.form.requestSubmit(e.proxy):e.proxy.click(),t||e.detachProxy()}},e.handleFormReset=function(){var t;null===(t=e.form)||void 0===t||t.reset()},e.handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){e.control.focus()})},e}return(0,i.Z)(n,[{key:"formactionChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}},{key:"formenctypeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}},{key:"formmethodChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}},{key:"formnovalidateChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}},{key:"formtargetChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}},{key:"typeChanged",value:function(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}},{key:"validate",value:function(){R((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}},{key:"connectedCallback",value:function(){var e,t=this;R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.addEventListener("click",t.handleClick)}))}},{key:"disconnectedCallback",value:function(){var e,t=this;R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this);var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.removeEventListener("click",t.handleClick)}))}}]),n}(Br);G([K({mode:"boolean"})],Hr.prototype,"autofocus",void 0),G([K({attribute:"form"})],Hr.prototype,"formId",void 0),G([K],Hr.prototype,"formaction",void 0),G([K],Hr.prototype,"formenctype",void 0),G([K],Hr.prototype,"formmethod",void 0),G([K({mode:"boolean"})],Hr.prototype,"formnovalidate",void 0),G([K],Hr.prototype,"formtarget",void 0),G([K],Hr.prototype,"type",void 0),G([S],Hr.prototype,"defaultSlottedContent",void 0);var Ur=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function Kr(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}G([K({attribute:"aria-expanded"})],Ur.prototype,"ariaExpanded",void 0),G([K({attribute:"aria-pressed"})],Ur.prototype,"ariaPressed",void 0),Cr(Ur,hr),Cr(Hr,wr,Ur);var qr,$r,Yr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.options=n,this.source=null}return(0,i.Z)(e,[{key:"bind",value:function(e){var t=this.options.property;this.shouldUpdate=O.getAccessors(e).some((function(e){return e.name===t})),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}},{key:"unbind",value:function(){this.updateTarget(f),this.source=null,this.shouldUpdate&&this.disconnect()}},{key:"handleEvent",value:function(){this.updateTarget(this.computeNodes())}},{key:"computeNodes",value:function(){var e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}},{key:"updateTarget",value:function(e){this.source[this.options.property]=e}}]),e}(),Wr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,e,i)}return(0,i.Z)(n,[{key:"observe",value:function(){this.target.addEventListener("slotchange",this)}},{key:"disconnect",value:function(){this.target.removeEventListener("slotchange",this)}},{key:"getNodes",value:function(){return this.target.assignedNodes(this.options)}}]),n}(Yr);function Gr(e){return"string"==typeof e&&(e={property:e}),new lt("fast-slotted",Wr,e)}var Jr,Qr,Xr,ei,ti,ni=function(){if("boolean"==typeof $r)return $r;if("undefined"==typeof window||!window.document||!window.document.createElement)return $r=!1;var e=document.createElement("style"),t=function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),$r=!0}catch(e){$r=!1}finally{document.head.removeChild(e)}return $r}()?"focus-visible":"focus",ri="not-allowed",ii=Mt(Jr||(Jr=(0,at.Z)(["\n\t"," :host {\n\t\toutline: none;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tfill: currentColor;\n\t\tcursor: pointer;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\theight: inherit;\n\t\tflex-grow: 1;\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: "," ",";\n\t\twhite-space: wrap;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: inherit;\n\t\tborder-radius: inherit;\n\t\tfill: inherit;\n\t\tcursor: inherit;\n\t\tfont-family: inherit;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t}\n\t.control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t\tbackground: ",";\n\t\tcursor: ",";\n\t}\n\t.content {\n\t\tdisplay: flex;\n\t}\n\t.start {\n\t\tdisplay: flex;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-end: 8px;\n\t}\n"])),Lt("inline-flex"),mn,wn,kn,zn,Zn,Kn,Un,dn,Dn,Fn,Zn,ni,dn,gn,dn,vn,Zn,ri,pn,pn),oi=Mt(Qr||(Qr=(0,at.Z)(["\n\t:host([appearance='primary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='primary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='primary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Zn,zn,Fn,Zn,ni,dn,gn,dn,Zn),ai=Mt(Xr||(Xr=(0,at.Z)(["\n\t:host([appearance='secondary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='secondary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='secondary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Vn,Bn,Hn,Vn,ni,dn,gn,dn,Vn),si=Mt(ei||(ei=(0,at.Z)(["\n\t:host([appearance='icon']) {\n\t\tbackground: ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='icon']:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n\t:host([appearance='icon']) .control {\n\t\tpadding: ",";\n\t\tborder: none;\n\t}\n\t:host([appearance='icon']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='icon']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: ",";\n\t}\n\t:host([appearance='icon'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),In,Nn,yn,Mn,fn,Ln,Mn,ni,dn,gn,Pn,In),ui=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){if(R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),!this.appearance){var e=this.getAttribute("appearance");this.appearance=e}}},{key:"attributeChangedCallback",value:function(e,t,n){"appearance"===e&&"icon"===n&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),"aria-label"===e&&(this.ariaLabel=n),"disabled"===e&&(this.disabled=null!==n)}}]),n}(Hr);!function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([K],ui.prototype,"appearance",void 0);var li,ci=ui.compose({baseName:"button",template:function(e,t){return It(qr||(qr=(0,at.Z)(['\n <button\n class="control"\n part="control"\n ?autofocus="','"\n ?disabled="','"\n form="','"\n formaction="','"\n formenctype="','"\n formmethod="','"\n formnovalidate="','"\n formtarget="','"\n name="','"\n type="','"\n value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-pressed="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </button>\n"])),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.formId}),(function(e){return e.formaction}),(function(e){return e.formenctype}),(function(e){return e.formmethod}),(function(e){return e.formnovalidate}),(function(e){return e.formtarget}),(function(e){return e.name}),(function(e){return e.type}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaPressed}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),xr(0,t),Gr("defaultSlottedContent"),kr(0,t))},styles:function(e,t){return Mt(ti||(ti=(0,at.Z)(["\n\t","\n\t","\n\t","\n\t","\n"])),ii,oi,ai,si)},shadowOptions:{delegatesFocus:!0}}),di=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Fr(di)),hi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.indeterminate=!1,e.keypressHandler=function(t){e.readOnly||t.key!==Ir||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.clickHandler=function(t){e.disabled||e.readOnly||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.proxy.setAttribute("type","checkbox"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}]),n}(fi);G([K({attribute:"readonly",mode:"boolean"})],hi.prototype,"readOnly",void 0),G([S],hi.prototype,"defaultSlottedNodes",void 0),G([S],hi.prototype,"indeterminate",void 0);var pi,vi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}]),n}(hi),gi=vi.compose({baseName:"checkbox",template:function(e,t){return It(li||(li=(0,at.Z)(['\n <template\n role="checkbox"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n tabindex="','"\n @keypress="','"\n @click="','"\n class="'," "," ",'"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n <slot name="indeterminate-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e){return e.disabled?null:0}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked?"checked":""}),(function(e){return e.indeterminate?"indeterminate":""}),t.checkedIndicator||"",t.indeterminateIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Gr("defaultSlottedNodes"))},styles:function(e,t){return Mt(pi||(pi=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\tmargin: calc("," * 1px) 0;\n\t\tuser-select: none;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tposition: relative;\n\t\twidth: calc("," * 4px + 2px);\n\t\theight: calc("," * 4px + 2px);\n\t\tbox-sizing: border-box;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbackground: ",";\n\t\toutline: none;\n\t\tcursor: pointer;\n\t}\n\t.label {\n\t\tfont-family: ",";\n\t\tcolor: ",";\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tcursor: pointer;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.checked-indicator {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tfill: ",";\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\t.indeterminate-indicator {\n\t\tborder-radius: 2px;\n\t\tbackground: ",";\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: 50%;\n\t\theight: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\topacity: 0;\n\t}\n\t:host(:enabled) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:enabled) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host(.disabled) .label,\n\t:host(.readonly) .label,\n\t:host(.readonly) .control,\n\t:host(.disabled) .control {\n\t\tcursor: ",";\n\t}\n\t:host(.checked:not(.indeterminate)) .checked-indicator,\n\t:host(.indeterminate) .indeterminate-indicator {\n\t\topacity: 1;\n\t}\n\t:host(.disabled) {\n\t\topacity: ",";\n\t}\n"])),Lt("inline-flex"),pn,wn,kn,pn,pn,Yn,dn,$n,qn,mn,yn,pn,pn,yn,yn,qn,$n,qn,gn,ni,dn,gn,ri,vn)},checkedIndicator:'\n\t\t<svg \n\t\t\tpart="checked-indicator"\n\t\t\tclass="checked-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"\n\t\t\t/>\n\t\t</svg>\n\t',indeterminateIndicator:'\n\t\t<div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n\t'});function mi(e,t,n){return{index:e,removed:t,addedCount:n}}function yi(e,t,n,r,i,o){var a=0,s=0,u=Math.min(n-t,o-i);if(0===t&&0===i&&(a=function(e,t,n){for(var r=0;r<n;++r)if(e[r]!==t[r])return r;return n}(e,r,u)),n===e.length&&o===r.length&&(s=function(e,t,n){for(var r=e.length,i=t.length,o=0;o<n&&e[--r]===t[--i];)o++;return o}(e,r,u-a)),i+=a,o-=s,(n-=s)-(t+=a)==0&&o-i==0)return f;if(t===n){for(var l=mi(t,[],0);i<o;)l.removed.push(r[i++]);return[l]}if(i===o)return[mi(t,[],n-t)];for(var c=function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!==t)if(0!==n){var o,a=e[t-1][n-1],s=e[t-1][n],u=e[t][n-1];(o=s<u?s<a?s:a:u<a?u:a)===a?(a===r?i.push(0):(i.push(1),r=a),t--,n--):o===s?(i.push(3),t--,r=s):(i.push(2),n--,r=u)}else i.push(3),t--;else i.push(2),n--;return i.reverse(),i}(function(e,t,n,r,i,o){for(var a,s,u=o-i+1,l=n-t+1,c=new Array(u),d=0;d<u;++d)c[d]=new Array(l),c[d][0]=d;for(var f=0;f<l;++f)c[0][f]=f;for(var h=1;h<u;++h)for(var p=1;p<l;++p)e[t+p-1]===r[i+h-1]?c[h][p]=c[h-1][p-1]:(a=c[h-1][p]+1,s=c[h][p-1]+1,c[h][p]=a<s?a:s);return c}(e,t,n,r,i,o)),d=[],h=void 0,p=t,v=i,g=0;g<c.length;++g)switch(c[g]){case 0:void 0!==h&&(d.push(h),h=void 0),p++,v++;break;case 1:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++,h.removed.push(r[v]),v++;break;case 2:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++;break;case 3:void 0===h&&(h=mi(p,[],0)),h.removed.push(r[v]),v++}return void 0!==h&&d.push(h),d}var bi=Array.prototype.push;function _i(e,t,n,r){for(var i,o,a,s,u=mi(t,n,r),l=!1,c=0,d=0;d<e.length;d++){var f=e[d];if(f.index+=c,!l){var h=(i=u.index,o=u.index+u.removed.length,a=f.index,s=f.index+f.addedCount,o<a||s<i?-1:o===a||s===i?0:i<a?o<s?o-a:s-a:s<o?s-i:o-i);if(h>=0){e.splice(d,1),d--,c-=f.addedCount-f.removed.length,u.addedCount+=f.addedCount-h;var p=u.removed.length+f.removed.length-h;if(u.addedCount||p){var v=f.removed;if(u.index<f.index){var g=u.removed.slice(0,f.index-u.index);bi.apply(g,v),v=g}if(u.index+u.removed.length>f.index+f.addedCount){var m=u.removed.slice(f.index+f.addedCount-u.index);bi.apply(v,m)}u.removed=v,f.index<u.index&&(u.index=f.index)}else l=!0}else if(u.index<f.index){l=!0,e.splice(d,0,u),d++;var y=u.addedCount-u.removed.length;f.index+=y,c+=y}}}l||e.push(u)}var wi=!1;function ki(e,t){var n=e.index,r=t.length;return n>r?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var xi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).oldCollection=void 0,i.splices=void 0,i.needsQueue=!0,i.call=i.flush,Reflect.defineProperty(e,"$fastController",{value:(0,v.Z)(i),enumerable:!1}),i}return(0,i.Z)(n,[{key:"subscribe",value:function(e){this.flush(),R((0,T.Z)(n.prototype),"subscribe",this).call(this,e)}},{key:"addSplice",value:function(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"reset",value:function(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"flush",value:function(){var e=this.splices,t=this.oldCollection;if(void 0!==e||void 0!==t){this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;var n=void 0===t?function(e,t){for(var n=[],r=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];_i(t,i.index,i.removed,i.addedCount)}return t}(t),i=0,o=r.length;i<o;++i){var a=r[i];1!==a.addedCount||1!==a.removed.length?n=n.concat(yi(e,a.index,a.index+a.addedCount,a.removed,0,a.removed.length)):a.removed[0]!==e[a.index]&&n.push(a)}return n}(this.source,e):yi(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}}]),n}(x);function Ci(e,t,n,r){e.bind(t[n],r)}function Oi(e,t,n,r){var i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}Object.freeze({positioning:!1,recycle:!0});var Si=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.location=t,this.itemsBinding=n,this.templateBinding=o,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ci,this.itemsBindingObserver=O.binding(n,this,i),this.templateBindingObserver=O.binding(o,this,a),s.positioning&&(this.bindView=Oi)}return(0,i.Z)(e,[{key:"bind",value:function(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}},{key:"unbind",value:function(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}},{key:"handleChange",value:function(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}},{key:"observeItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.items){var t=this.itemsObserver,n=this.itemsObserver=O.getNotifier(this.items),r=t!==n;r&&null!==t&&t.unsubscribe(this),(r||e)&&n.subscribe(this)}else this.items=f}},{key:"updateViews",value:function(e){for(var t=this.childContext,n=this.views,r=this.bindView,i=this.items,o=this.template,a=this.options.recycle,s=[],u=0,l=0,c=0,d=e.length;c<d;++c){for(var f=e[c],h=f.removed,p=0,v=f.index,g=v+f.addedCount,m=n.splice(f.index,h.length),y=l=s.length+m.length;v<g;++v){var b=n[v],_=b?b.firstChild:this.location,w=void 0;a&&l>0?(p<=y&&m.length>0?(w=m[p],p++):(w=s[u],u++),l--):w=o.create(),n.splice(v,0,w),r(w,i,v,t),w.insertBefore(_)}m[p]&&s.push.apply(s,(0,D.Z)(m.slice(p)))}for(var k=u,x=s.length;k<x;++k)s[k].dispose();if(this.options.positioning)for(var C=0,O=n.length;C<O;++C){var S=n[C].context;S.length=O,S.index=C}}},{key:"refreshAllViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView,a=t.length,s=this.views,u=s.length;if(0!==a&&!e&&this.options.recycle||(Tt.disposeContiguousBatch(s),u=0),0===u){this.views=s=new Array(a);for(var l=0;l<a;++l){var c=r.create();o(c,t,l,n),s[l]=c,c.insertBefore(i)}}else{for(var d=0;d<a;++d)if(d<u)o(s[d],t,d,n);else{var f=r.create();o(f,t,d,n),s.push(f),f.insertBefore(i)}var h=s.splice(d,u-d);for(d=0,a=h.length;d<a;++d)h[d].dispose()}}},{key:"unbindAllViews",value:function(){for(var e=this.views,t=0,n=e.length;t<n;++t)e[t].unbind()}}]),e}(),Ei=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).itemsBinding=e,a.templateBinding=i,a.options=o,a.createPlaceholder=k.createBlockPlaceholder,function(){if(!wi){wi=!0,O.setArrayObserverFactory((function(e){return new xi(e)}));var e=Array.prototype;if(!e.$fastPatch){Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});var t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,a=e.splice,s=e.unshift;e.pop=function(){var e=this.length>0,n=t.apply(this,arguments),r=this.$fastController;return void 0!==r&&e&&r.addSplice(mi(this.length,[n],0)),n},e.push=function(){var e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ki(mi(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=r.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.shift=function(){var e=this.length>0,t=i.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(mi(0,[t],0)),t},e.sort=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=o.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.splice=function(){var e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ki(mi(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){var e=s.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ki(mi(0,[],arguments.length),this)),e}}}}(),a.isItemsBindingVolatile=O.isVolatileBinding(e),a.isTemplateBindingVolatile=O.isVolatileBinding(i),a}return(0,i.Z)(n,[{key:"createBehavior",value:function(e){return new Si(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}]),n}(st),ji="focus",Ai="focusin",Ti="focusout",Ri="keydown",Di="sticky",Ii="default",Ni="columnheader",Pi="default",Mi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).noTabbing=!1,e.generateHeader="default",e.rowsData=[],e.columnDefinitions=null,e.focusRowIndex=0,e.focusColumnIndex=0,e.rowsPlaceholder=null,e.generatedHeader=null,e.isUpdatingFocus=!1,e.pendingFocusUpdate=!1,e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!0,e.generatedGridTemplateColumns="",e.focusOnCell=function(t,n,r){if(0===e.rowElements.length)return e.focusRowIndex=0,void(e.focusColumnIndex=0);var i=Math.max(0,Math.min(e.rowElements.length-1,t)),o=e.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=o[Math.max(0,Math.min(o.length-1,n))];r&&e.scrollHeight!==e.clientHeight&&(i<e.focusRowIndex&&e.scrollTop>0||i>e.focusRowIndex&&e.scrollTop<e.scrollHeight-e.clientHeight)&&a.scrollIntoView({block:"center",inline:"center"}),a.focus()},e.onChildListChange=function(t,n){t&&t.length&&(t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=e.columnDefinitions)}))})),e.queueRowIndexUpdate())},e.queueRowIndexUpdate=function(){e.rowindexUpdateQueued||(e.rowindexUpdateQueued=!0,k.queueUpdate(e.updateRowIndexes))},e.updateRowIndexes=function(){var t=e.gridTemplateColumns;if(void 0===t){if(""===e.generatedGridTemplateColumns&&e.rowElements.length>0){var n=e.rowElements[0];e.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=e.generatedGridTemplateColumns}e.rowElements.forEach((function(n,r){var i=n;i.rowIndex=r,i.gridTemplateColumns=t,e.columnDefinitionsStale&&(i.columnDefinitions=e.columnDefinitions)})),e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!1},e}return(0,i.Z)(n,[{key:"noTabbingChanged",value:function(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}},{key:"generateHeaderChanged",value:function(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowIndexes()}},{key:"rowsDataChanged",value:function(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=n.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"columnDefinitionsChanged",value:function(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=n.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}},{key:"headerCellItemTemplateChanged",value:function(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}},{key:"focusRowIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"focusColumnIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ei((function(e){return e.rowsData}),(function(e){return e.rowItemTemplate}),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(ji,this.handleFocus),this.addEventListener(Ri,this.handleKeydown),this.addEventListener(Ti,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),k.queueUpdate(this.queueRowIndexUpdate)}},{key:"disconnectedCallback",value:function(){R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(ji,this.handleFocus),this.removeEventListener(Ri,this.handleKeydown),this.removeEventListener(Ti,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}},{key:"handleRowFocus",value:function(e){this.isUpdatingFocus=!0;var t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}},{key:"handleFocus",value:function(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"handleFocusOut",value:function(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case jr:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case Or:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){var o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r)return void this.focusOnCell(n,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=n;t++){var a=this.rowElements[t];if(a.offsetTop+a.offsetHeight>r){var s=0;this.generateHeader===Di&&null!==this.generatedHeader&&(s=this.generatedHeader.clientHeight),this.scrollTop=a.offsetTop-s;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Rr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Dr:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}}},{key:"queueFocusUpdate",value:function(){var e=this;this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,k.queueUpdate((function(){return e.updateFocus()})))}},{key:"updateFocus",value:function(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"toggleGeneratedHeader",value:function(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),"none"!==this.generateHeader&&this.rowsData.length>0){var e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Di?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}],[{key:"generateTemplateColumns",value:function(e){var t="";return e.forEach((function(e){t="".concat(t).concat(""===t?"":" ","1fr")})),t}}]),n}($e);Mi.generateColumns=function(e){return Object.getOwnPropertyNames(e).map((function(e,t){return{columnDataKey:e,gridColumn:"".concat(t)}}))},G([K({attribute:"no-tabbing",mode:"boolean"})],Mi.prototype,"noTabbing",void 0),G([K({attribute:"generate-header"})],Mi.prototype,"generateHeader",void 0),G([K({attribute:"grid-template-columns"})],Mi.prototype,"gridTemplateColumns",void 0),G([S],Mi.prototype,"rowsData",void 0),G([S],Mi.prototype,"columnDefinitions",void 0),G([S],Mi.prototype,"rowItemTemplate",void 0),G([S],Mi.prototype,"cellItemTemplate",void 0),G([S],Mi.prototype,"headerCellItemTemplate",void 0),G([S],Mi.prototype,"focusRowIndex",void 0),G([S],Mi.prototype,"focusColumnIndex",void 0),G([S],Mi.prototype,"defaultRowItemTemplate",void 0),G([S],Mi.prototype,"rowElementTag",void 0),G([S],Mi.prototype,"rowElements",void 0);var Li=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e,i)).observer=null,i.childList=!0,o}return(0,i.Z)(n,[{key:"observe",value:function(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"getNodes",value:function(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}]),n}(Yr);function Zi(e){return"string"==typeof e&&(e={property:e}),new lt("fast-children",Li,e)}var zi,Fi,Vi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).rowType=Pi,e.rowData=null,e.columnDefinitions=null,e.isActiveRow=!1,e.cellsRepeatBehavior=null,e.cellsPlaceholder=null,e.focusColumnIndex=0,e.refocusOnLoad=!1,e.updateRowStyle=function(){e.style.gridTemplateColumns=e.gridTemplateColumns},e}return(0,i.Z)(n,[{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowStyle()}},{key:"rowTypeChanged",value:function(){this.$fastController.isConnected&&this.updateItemTemplate()}},{key:"rowDataChanged",value:function(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}},{key:"cellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"headerCellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ei((function(e){return e.columnDefinitions}),(function(e){return e.activeCellItemTemplate}),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Ri,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}},{key:"disconnectedCallback",value:function(){R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Ri,this.handleKeydown)}},{key:"handleFocusout",value:function(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}},{key:"handleCellFocus",value:function(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t=0;switch(e.key){case Sr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case Er:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Rr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Dr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}}},{key:"updateItemTemplate",value:function(){this.activeCellItemTemplate=this.rowType===Pi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Pi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}]),n}($e);G([K({attribute:"grid-template-columns"})],Vi.prototype,"gridTemplateColumns",void 0),G([K({attribute:"row-type"})],Vi.prototype,"rowType",void 0),G([S],Vi.prototype,"rowData",void 0),G([S],Vi.prototype,"columnDefinitions",void 0),G([S],Vi.prototype,"cellItemTemplate",void 0),G([S],Vi.prototype,"headerCellItemTemplate",void 0),G([S],Vi.prototype,"rowIndex",void 0),G([S],Vi.prototype,"isActiveRow",void 0),G([S],Vi.prototype,"activeCellItemTemplate",void 0),G([S],Vi.prototype,"defaultCellItemTemplate",void 0),G([S],Vi.prototype,"defaultHeaderCellItemTemplate",void 0),G([S],Vi.prototype,"cellElements",void 0);var Bi,Hi,Ui,Ki,qi,$i=It(Bi||(Bi=(0,at.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]})),Yi=It(Hi||(Hi=(0,at.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title})),Wi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).cellType=Ii,e.rowData=null,e.columnDefinition=null,e.isActiveCell=!1,e.customCellView=null,e.updateCellStyle=function(){e.style.gridColumn=e.gridColumn},e}return(0,i.Z)(n,[{key:"cellTypeChanged",value:function(){this.$fastController.isConnected&&this.updateCellView()}},{key:"gridColumnChanged",value:function(){this.$fastController.isConnected&&this.updateCellStyle()}},{key:"columnDefinitionChanged",value:function(e,t){this.$fastController.isConnected&&this.updateCellView()}},{key:"connectedCallback",value:function(){var e;R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener(Ai,this.handleFocusin),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Ri,this.handleKeydown),this.style.gridColumn="".concat(void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}},{key:"disconnectedCallback",value:function(){R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener(Ai,this.handleFocusin),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Ri,this.handleKeydown),this.disconnectCellView()}},{key:"handleFocusin",value:function(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===Ni){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus()}this.$emit("cell-focused",this)}}},{key:"handleFocusout",value:function(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}},{key:"handleKeydown",value:function(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===Ii&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ni&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case Ar:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===Ni){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus(),e.preventDefault()}break;case Tr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}},{key:"updateCellView",value:function(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ni:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Yi.render(this,this);break;case void 0:case"rowheader":case Ii:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=$i.render(this,this)}}},{key:"disconnectCellView",value:function(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}]),n}($e);G([K({attribute:"cell-type"})],Wi.prototype,"cellType",void 0),G([K({attribute:"grid-column"})],Wi.prototype,"gridColumn",void 0),G([S],Wi.prototype,"rowData",void 0),G([S],Wi.prototype,"columnDefinition",void 0);var Gi,Ji,Qi,Xi,eo,to=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}]),n}(Mi),no=to.compose({baseName:"data-grid",baseClass:Mi,template:function(e,t){var n=function(e){var t=e.tagFor(Vi);return It(zi||(zi=(0,at.Z)(["\n <",'\n :rowData="','"\n :cellItemTemplate="','"\n :headerCellItemTemplate="','"\n ></',">\n"])),t,(function(e){return e}),(function(e,t){return t.parent.cellItemTemplate}),(function(e,t){return t.parent.headerCellItemTemplate}),t)}(e),r=e.tagFor(Vi);return It(Fi||(Fi=(0,at.Z)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(function(){return r}),n,Zi({property:"rowElements",filter:Kr("[role=row]")}))},styles:function(e,t){return Mt(Ji||(Ji=(0,at.Z)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}}),ro=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Vi),io=ro.compose({baseName:"data-grid-row",baseClass:Vi,template:function(e,t){var n=function(e){var t=e.tagFor(Wi);return It(Ui||(Ui=(0,at.Z)(["\n <",'\n cell-type="','"\n grid-column="','"\n :rowData="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e){return e.isRowHeader?"rowheader":void 0}),(function(e,t){return t.index+1}),(function(e,t){return t.parent.rowData}),(function(e){return e}),t)}(e),r=function(e){var t=e.tagFor(Wi);return It(Ki||(Ki=(0,at.Z)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e,t){return t.index+1}),(function(e){return e}),t)}(e);return It(qi||(qi=(0,at.Z)(['\n <template\n role="row"\n class="','"\n :defaultCellItemTemplate="','"\n :defaultHeaderCellItemTemplate="','"\n ',"\n >\n <slot ","></slot>\n </template>\n "])),(function(e){return"default"!==e.rowType?e.rowType:""}),n,r,Zi({property:"cellElements",filter:Kr('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Gr("slottedCellElements"))},styles:function(e,t){return Mt(Qi||(Qi=(0,at.Z)(["\n\t:host {\n\t\tdisplay: grid;\n\t\tpadding: calc(("," / 4) * 1px) 0;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tbackground: transparent;\n\t}\n\t:host(.header) {\n\t}\n\t:host(.sticky-header) {\n\t\tbackground: ",";\n\t\tposition: sticky;\n\t\ttop: 0;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n"])),pn,cn,Jn,fn)}}),oo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Wi),ao=oo.compose({baseName:"data-grid-cell",baseClass:Wi,template:function(e,t){return It(Gi||(Gi=(0,at.Z)(['\n <template\n tabindex="-1"\n role="','"\n class="\n ','\n "\n >\n <slot></slot>\n </template>\n '])),(function(e){return e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}),(function(e){return"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":""}))},styles:function(e,t){return Mt(Xi||(Xi=(0,at.Z)(["\n\t:host {\n\t\tpadding: calc("," * 1px) calc("," * 3px);\n\t\tcolor: ",";\n\t\topacity: 1;\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tfont-weight: 400;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\twhite-space: wrap;\n\t\toverflow-wrap: anywhere;\n\t}\n\t:host(.column-header) {\n\t\tfont-weight: 600;\n\t}\n\t:host(:","),\n\t:host(:focus),\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tborder: solid calc("," * 1px) ",";\n\t\tcolor: ",";\n\t\toutline: none;\n\t}\n\t:host(:",") ::slotted(*),\n\t:host(:focus) ::slotted(*),\n\t:host(:active) ::slotted(*) {\n\t\tcolor: "," !important;\n\t}\n"])),pn,pn,yn,mn,wn,kn,dn,hn,ni,Wn,dn,gn,Gn,ni,Gn)}}),so="horizontal",uo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).role="separator",e.orientation=so,e}return(0,i.Z)(n)}($e);G([K],uo.prototype,"role",void 0),G([K],uo.prototype,"orientation",void 0);var lo,co=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(uo),fo=co.compose({baseName:"divider",template:function(e,t){return It(eo||(eo=(0,at.Z)(['\n <template role="','" aria-orientation="','"></template>\n'])),(function(e){return e.role}),(function(e){return e.orientation}))},styles:function(e,t){return Mt(lo||(lo=(0,at.Z)(["\n\t"," :host {\n\t\tborder: none;\n\t\tborder-top: calc("," * 1px) solid ",";\n\t\tbox-sizing: content-box;\n\t\theight: 0;\n\t\tmargin: calc("," * 1px) 0;\n\t\twidth: 100%;\n\t}\n"])),Lt("block"),dn,Qn,pn)}}),ho=0;function po(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(ho++)}function vo(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e instanceof HTMLElement}))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}var go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this)).defaultSelected=!1,s.dirtySelected=!1,s.selected=s.defaultSelected,s.dirtyValue=!1,e&&(s.textContent=e),i&&(s.initialValue=i),o&&(s.defaultSelected=o),a&&(s.selected=a),s.proxy=new Option("".concat(s.textContent),s.initialValue,s.defaultSelected,s.selected),s.proxy.disabled=s.disabled,s}return(0,i.Z)(n,[{key:"checkedChanged",value:function(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}},{key:"contentChanged",value:function(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}},{key:"defaultSelectedChanged",value:function(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}},{key:"disabledChanged",value:function(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}},{key:"selectedAttributeChanged",value:function(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}},{key:"selectedChanged",value:function(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"label",get:function(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}},{key:"text",get:function(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}},{key:"value",get:function(){var e;return O.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text},set:function(e){var t="".concat(null!=e?e:"");this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),O.notify(this,"value")}},{key:"form",get:function(){return this.proxy?this.proxy.form:null}}]),n}($e);G([S],go.prototype,"checked",void 0),G([S],go.prototype,"content",void 0),G([S],go.prototype,"defaultSelected",void 0),G([K({mode:"boolean"})],go.prototype,"disabled",void 0),G([K({attribute:"selected",mode:"boolean"})],go.prototype,"selectedAttribute",void 0),G([S],go.prototype,"selected",void 0),G([K({attribute:"value",mode:"fromView"})],go.prototype,"initialValue",void 0);var mo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],mo.prototype,"ariaChecked",void 0),G([S],mo.prototype,"ariaPosInSet",void 0),G([S],mo.prototype,"ariaSelected",void 0),G([S],mo.prototype,"ariaSetSize",void 0),Cr(mo,hr),Cr(go,wr,mo);var yo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._options=[],e.selectedIndex=-1,e.selectedOptions=[],e.shouldSkipFocus=!1,e.typeaheadBuffer="",e.typeaheadExpired=!0,e.typeaheadTimeout=-1,e}return(0,i.Z)(n,[{key:"firstSelectedOption",get:function(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}},{key:"hasSelectableOptions",get:function(){return this.options.length>0&&!this.options.every((function(e){return e.disabled}))}},{key:"length",get:function(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},{key:"options",get:function(){return O.track(this,"options"),this._options},set:function(e){this._options=e,O.notify(this,"options")}},{key:"typeAheadExpired",get:function(){return this.typeaheadExpired},set:function(e){this.typeaheadExpired=e}},{key:"clickHandler",value:function(e){var t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}},{key:"focusAndScrollOptionIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstSelectedOption;this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((function(){e.scrollIntoView({block:"nearest"})})))}},{key:"focusinHandler",value:function(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"getTypeaheadMatches",value:function(){var e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp("^".concat(e),"gi");return this.options.filter((function(e){return e.text.trim().match(t)}))}},{key:"getSelectableIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedIndex,t=arguments.length>1?arguments[1]:void 0,n=e>t?-1:e<t?1:0,r=e+n,i=null;switch(n){case-1:i=this.options.reduceRight((function(e,t,n){return!e&&!t.disabled&&n<r?t:e}),i);break;case 1:i=this.options.reduce((function(e,t,n){return!e&&!t.disabled&&n>r?t:e}),i)}return this.options.indexOf(i)}},{key:"handleChange",value:function(e,t){"selected"===t&&(n.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}},{key:"handleTypeAhead",value:function(e){var t=this;this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((function(){return t.typeaheadExpired=!0}),n.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer="".concat(this.typeaheadExpired?"":this.typeaheadBuffer).concat(e))}},{key:"keydownHandler",value:function(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;var t=e.key;switch(t){case Rr:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case Or:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case jr:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case Dr:e.preventDefault(),this.selectLastOption();break;case Nr:return this.focusAndScrollOptionIntoView(),!0;case Ar:case Tr:return!0;case Ir:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}},{key:"multipleChanged",value:function(e,t){this.ariaMultiSelectable=t?"true":null}},{key:"selectedIndexChanged",value:function(e,t){var n;if(this.hasSelectableOptions){if((null===(n=this.options[this.selectedIndex])||void 0===n?void 0:n.disabled)&&"number"==typeof e){var r=this.getSelectableIndex(e,t),i=r>-1?r:e;return this.selectedIndex=i,void(t===i&&this.selectedIndexChanged(t,i))}this.setSelectedOptions()}else this.selectedIndex=-1}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this,o=t.filter(n.slottedOptionFilter);null===(r=this.options)||void 0===r||r.forEach((function(e){var t=O.getNotifier(e);t.unsubscribe(i,"selected"),e.selected=o.includes(e),t.subscribe(i,"selected")}))}},{key:"selectFirstOption",value:function(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return!e.disabled})))&&void 0!==t?t:-1)}},{key:"selectLastOption",value:function(){this.disabled||(this.selectedIndex=function(e,t){for(var n=e.length;n--;)if(t(e[n]))return n;return-1}(this.options,(function(e){return!e.disabled})))}},{key:"selectNextOption",value:function(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}},{key:"selectPreviousOption",value:function(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}},{key:"setDefaultSelectedOption",value:function(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return e.defaultSelected})))&&void 0!==t?t:-1}},{key:"setSelectedOptions",value:function(){var e,t,n;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==n?n:"",this.focusAndScrollOptionIntoView())}},{key:"slottedOptionsChanged",value:function(e,t){this.options=t.reduce((function(e,t){return vo(t)&&e.push(t),e}),[]);var n="".concat(this.options.length);this.options.forEach((function(e,t){e.id||(e.id=po("option-")),e.ariaPosInSet="".concat(t+1),e.ariaSetSize=n})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.$fastController.isConnected){var n=this.getTypeaheadMatches();if(n.length){var r=this.options.indexOf(n[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}}]),n}($e);yo.slottedOptionFilter=function(e){return vo(e)&&!e.hidden},yo.TYPE_AHEAD_TIMEOUT_MS=1e3,G([K({mode:"boolean"})],yo.prototype,"disabled",void 0),G([S],yo.prototype,"selectedIndex",void 0),G([S],yo.prototype,"selectedOptions",void 0),G([S],yo.prototype,"slottedOptions",void 0),G([S],yo.prototype,"typeaheadBuffer",void 0);var bo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function _o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[t,n].sort((function(e,t){return e-t})),i=(0,J.Z)(r,2);return t=i[0],n=i[1],t<=e&&e<n}G([S],bo.prototype,"ariaActiveDescendant",void 0),G([S],bo.prototype,"ariaDisabled",void 0),G([S],bo.prototype,"ariaExpanded",void 0),G([S],bo.prototype,"ariaMultiSelectable",void 0),Cr(bo,hr),Cr(yo,bo);var wo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).activeIndex=-1,e.rangeStartIndex=-1,e}return(0,i.Z)(n,[{key:"activeOption",get:function(){return this.options[this.activeIndex]}},{key:"checkedOptions",get:function(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((function(e){return e.checked}))}},{key:"firstSelectedOptionIndex",get:function(){return this.options.indexOf(this.firstSelectedOption)}},{key:"activeIndexChanged",value:function(e,t){var n,r;this.ariaActiveDescendant=null!==(r=null===(n=this.options[t])||void 0===n?void 0:n.id)&&void 0!==r?r:"",this.focusAndScrollOptionIntoView()}},{key:"checkActiveIndex",value:function(){if(this.multiple){var e=this.activeOption;e&&(e.checked=!0)}}},{key:"checkFirstOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((function(t,n){t.checked=_o(n,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}},{key:"checkLastOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=_o(n,e.rangeStartIndex,e.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("focusout",this.focusoutHandler)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("focusout",this.focusoutHandler),R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"checkNextOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=_o(n,e.rangeStartIndex,e.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}},{key:"checkPreviousOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((function(t,n){t.checked=_o(n,e.activeIndex,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}},{key:"clickHandler",value:function(e){var t;if(!this.multiple)return R((0,T.Z)(n.prototype),"clickHandler",this).call(this,e);var r=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return r&&!r.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}},{key:"focusAndScrollOptionIntoView",value:function(){R((0,T.Z)(n.prototype),"focusAndScrollOptionIntoView",this).call(this,this.activeOption)}},{key:"focusinHandler",value:function(e){if(!this.multiple)return R((0,T.Z)(n.prototype),"focusinHandler",this).call(this,e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"focusoutHandler",value:function(e){this.multiple&&this.uncheckAllOptions()}},{key:"keydownHandler",value:function(e){if(!this.multiple)return R((0,T.Z)(n.prototype),"keydownHandler",this).call(this,e);if(this.disabled)return!0;var t=e.key,r=e.shiftKey;switch(this.shouldSkipFocus=!1,t){case Rr:return void this.checkFirstOption(r);case Or:return void this.checkNextOption(r);case jr:return void this.checkPreviousOption(r);case Dr:return void this.checkLastOption(r);case Nr:return this.focusAndScrollOptionIntoView(),!0;case Tr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Ir:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return R((0,T.Z)(n.prototype),"mousedownHandler",this).call(this,e)}},{key:"multipleChanged",value:function(e,t){var n;this.ariaMultiSelectable=t?"true":null,null===(n=this.options)||void 0===n||n.forEach((function(e){e.checked=!t&&void 0})),this.setSelectedOptions()}},{key:"setSelectedOptions",value:function(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((function(e){return e.selected})),this.focusAndScrollOptionIntoView()):R((0,T.Z)(n.prototype),"setSelectedOptions",this).call(this)}},{key:"sizeChanged",value:function(e,t){var n,r=this,i=Math.max(0,parseInt(null!==(n=null==t?void 0:t.toFixed())&&void 0!==n?n:"",10));i!==t&&k.queueUpdate((function(){r.size=i}))}},{key:"toggleSelectedForAllCheckedOptions",value:function(){var e=this.checkedOptions.filter((function(e){return!e.disabled})),t=!e.every((function(e){return e.selected}));e.forEach((function(e){return e.selected=t})),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.multiple){if(this.$fastController.isConnected){var r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else R((0,T.Z)(n.prototype),"typeaheadBufferChanged",this).call(this,e,t)}},{key:"uncheckAllOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.options.forEach((function(t){return t.checked=!e.multiple&&void 0})),t||(this.rangeStartIndex=-1)}}]),n}(yo);G([S],wo.prototype,"activeIndex",void 0),G([K({mode:"boolean"})],wo.prototype,"multiple",void 0),G([K({converter:H})],wo.prototype,"size",void 0);var ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(wo),xo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("select"),e}return(0,i.Z)(n)}(zr(ko)),Co="above",Oo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).open=!1,e.forcedPosition=!1,e.listboxId=po("listbox-"),e.maxHeight=0,e}return(0,i.Z)(n,[{key:"openChanged",value:function(e,t){var n=this;if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void k.queueUpdate((function(){return n.focus()}));this.ariaControls="",this.ariaExpanded="false"}}},{key:"collapsible",get:function(){return!(this.multiple||"number"==typeof this.size)}},{key:"value",get:function(){return O.track(this,"value"),this._value},set:function(e){var t,r,i,o,a,s,u,l="".concat(this._value);if(null===(t=this._options)||void 0===t?void 0:t.length){var c=this._options.findIndex((function(t){return t.value===e})),d=null!==(i=null===(r=this._options[this.selectedIndex])||void 0===r?void 0:r.value)&&void 0!==i?i:null,f=null!==(a=null===(o=this._options[c])||void 0===o?void 0:o.value)&&void 0!==a?a:null;-1!==c&&d===f||(e="",this.selectedIndex=c),e=null!==(u=null===(s=this.firstSelectedOption)||void 0===s?void 0:s.value)&&void 0!==u?u:e}l!==e&&(this._value=e,R((0,T.Z)(n.prototype),"valueChanged",this).call(this,l,e),O.notify(this,"value"),this.updateDisplayValue())}},{key:"updateValue",value:function(e){var t,n;this.$fastController.isConnected&&(this.value=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==n?n:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}},{key:"selectedIndexChanged",value:function(e,t){R((0,T.Z)(n.prototype),"selectedIndexChanged",this).call(this,e,t),this.updateValue()}},{key:"positionChanged",value:function(e,t){this.positionAttribute=t,this.setPositioning()}},{key:"setPositioning",value:function(){var e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Co:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Co?~~e.top:~~t}},{key:"displayValue",get:function(){var e,t;return O.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}},{key:"disabledChanged",value:function(e,t){R((0,T.Z)(n.prototype),"disabledChanged",this)&&R((0,T.Z)(n.prototype),"disabledChanged",this).call(this,e,t),this.ariaDisabled=this.disabled?"true":"false"}},{key:"formResetCallback",value:function(){this.setProxyOptions(),R((0,T.Z)(n.prototype),"setDefaultSelectedOption",this).call(this),-1===this.selectedIndex&&(this.selectedIndex=0)}},{key:"clickHandler",value:function(e){if(!this.disabled){if(this.open){var t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return R((0,T.Z)(n.prototype),"clickHandler",this).call(this,e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}},{key:"focusoutHandler",value:function(e){var t;if(R((0,T.Z)(n.prototype),"focusoutHandler",this).call(this,e),!this.open)return!0;var r=e.relatedTarget;this.isSameNode(r)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(r))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}},{key:"handleChange",value:function(e,t){R((0,T.Z)(n.prototype),"handleChange",this).call(this,e,t),"value"===t&&this.updateValue()}},{key:"slottedOptionsChanged",value:function(e,t){var r=this;this.options.forEach((function(e){O.getNotifier(e).unsubscribe(r,"value")})),R((0,T.Z)(n.prototype),"slottedOptionsChanged",this).call(this,e,t),this.options.forEach((function(e){O.getNotifier(e).subscribe(r,"value")})),this.setProxyOptions(),this.updateValue()}},{key:"mousedownHandler",value:function(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?R((0,T.Z)(n.prototype),"mousedownHandler",this).call(this,e):this.collapsible}},{key:"multipleChanged",value:function(e,t){R((0,T.Z)(n.prototype),"multipleChanged",this).call(this,e,t),this.proxy&&(this.proxy.multiple=t)}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this;R((0,T.Z)(n.prototype),"selectedOptionsChanged",this).call(this,e,t),null===(r=this.options)||void 0===r||r.forEach((function(e,t){var n,r=null===(n=i.proxy)||void 0===n?void 0:n.options.item(t);r&&(r.selected=e.selected)}))}},{key:"setDefaultSelectedOption",value:function(){var e,t=this,n=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(yo.slottedOptionFilter),r=null==n?void 0:n.findIndex((function(e){return e.hasAttribute("selected")||e.selected||e.value===t.value}));this.selectedIndex=-1===r?0:r}},{key:"setProxyOptions",value:function(){var e=this;this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((function(t){var n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&e.proxy.options.add(n)})))}},{key:"keydownHandler",value:function(e){R((0,T.Z)(n.prototype),"keydownHandler",this).call(this,e);var t=e.key||e.key.charCodeAt(0);switch(t){case Ir:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Rr:case Dr:e.preventDefault();break;case Ar:e.preventDefault(),this.open=!this.open;break;case Tr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case Nr:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===Or||t===jr)}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("contentchange",this.updateDisplayValue),R((0,T.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"sizeChanged",value:function(e,t){R((0,T.Z)(n.prototype),"sizeChanged",this).call(this,e,t),this.proxy&&(this.proxy.size=t)}},{key:"updateDisplayValue",value:function(){this.collapsible&&O.notify(this,"displayValue")}}]),n}(xo);G([K({attribute:"open",mode:"boolean"})],Oo.prototype,"open",void 0),G([function(e,t,n){return Object.assign({},n,{get:function(){return O.trackVolatile(),n.get.apply(this)}})}],Oo.prototype,"collapsible",null),G([S],Oo.prototype,"control",void 0),G([K({attribute:"position"})],Oo.prototype,"positionAttribute",void 0),G([S],Oo.prototype,"position",void 0),G([S],Oo.prototype,"maxHeight",void 0);var So=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],So.prototype,"ariaControls",void 0),Cr(So,bo),Cr(Oo,wr,So);var Eo,jo,Ao=function(e){return"function"==typeof e},To=function(){return null};function Ro(e){return void 0===e?To:Ao(e)?e:function(){return e}}function Do(e,t,n){var r=Ao(e)?e:function(){return e},i=Ro(t),o=Ro(n);return function(e,t){return r(e,t)?i(e,t):o(e,t)}}var Io,No=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Oo),Po=No.compose({baseName:"dropdown",template:function(e,t){return It(Eo||(Eo=(0,at.Z)(['\n <template\n class="','"\n aria-activedescendant="','"\n aria-controls="','"\n aria-disabled="','"\n aria-expanded="','"\n aria-haspopup="','"\n aria-multiselectable="','"\n ?open="','"\n role="combobox"\n tabindex="','"\n @click="','"\n @focusin="','"\n @focusout="','"\n @keydown="','"\n @mousedown="','"\n >\n ','\n <div\n class="listbox"\n id="','"\n part="listbox"\n role="listbox"\n ?disabled="','"\n ?hidden="','"\n ',"\n >\n <slot\n ","\n ></slot>\n </div>\n </template>\n"])),(function(e){return[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}),(function(e){return e.ariaActiveDescendant}),(function(e){return e.ariaControls}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaExpanded}),(function(e){return e.collapsible?"listbox":null}),(function(e){return e.ariaMultiSelectable}),(function(e){return e.open}),(function(e){return e.disabled?null:"0"}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.focusinHandler(t.event)}),(function(e,t){return e.focusoutHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.mousedownHandler(t.event)}),Do((function(e){return e.collapsible}),It(jo||(jo=(0,at.Z)(['\n <div\n class="control"\n part="control"\n ?disabled="','"\n ',"\n >\n ",'\n <slot name="button-container">\n <div class="selected-value" part="selected-value">\n <slot name="selected-value">','</slot>\n </div>\n <div aria-hidden="true" class="indicator" part="indicator">\n <slot name="indicator">\n ',"\n </slot>\n </div>\n </slot>\n ","\n </div>\n "])),(function(e){return e.disabled}),br("control"),xr(0,t),(function(e){return e.displayValue}),t.indicator||"",kr(0,t))),(function(e){return e.listboxId}),(function(e){return e.disabled}),(function(e){return!!e.collapsible&&!e.open}),br("listbox"),Gr({filter:yo.slottedOptionFilter,flatten:!0,property:"slottedOptions"}))},styles:function(e,t){return Mt(Io||(Io=(0,at.Z)(["\n\t"," :host {\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcontain: contents;\n\t\tfont-family: ",";\n\t\theight: calc("," * 1px);\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmin-width: ",";\n\t\toutline: none;\n\t\tvertical-align: top;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbox-sizing: border-box;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tfont-family: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmin-height: 100%;\n\t\tpadding: 2px 6px 2px 8px;\n\t\twidth: 100%;\n\t}\n\t.listbox {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\tleft: 0;\n\t\tmax-height: ",";\n\t\tpadding: 0 0 calc("," * 1px) 0;\n\t\toverflow-y: auto;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\t}\n\t.listbox[hidden] {\n\t\tdisplay: none;\n\t}\n\t:host(:",") .control {\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled]):hover) {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",') ::slotted([aria-selected="true"][role="option"]:not([disabled])) {\n\t\tbackground: ',";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t\tuser-select: none;\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tborder-color: ",";\n\t}\n\t:host(:empty) .listbox {\n\t\tdisplay: none;\n\t}\n\t:host([open]) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([open][position='above']) .listbox,\n\t:host([open][position='below']) .control {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\t}\n\t:host([open][position='above']) .control,\n\t:host([open][position='below']) .listbox {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\t:host([open][position='above']) .listbox {\n\t\tbottom: calc("," * 1px);\n\t}\n\t:host([open][position='below']) .listbox {\n\t\ttop: calc("," * 1px);\n\t}\n\t.selected-value {\n\t\tflex: 1 1 auto;\n\t\tfont-family: inherit;\n\t\toverflow: hidden;\n\t\ttext-align: start;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\t.indicator {\n\t\tflex: 0 0 auto;\n\t\tmargin-inline-start: 1em;\n\t}\n\tslot[name='listbox'] {\n\t\tdisplay: none;\n\t\twidth: 100%;\n\t}\n\t:host([open]) slot[name='listbox'] {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t}\n\t.end {\n\t\tmargin-inline-start: auto;\n\t}\n\t.start,\n\t.end,\n\t.indicator,\n\t.select-indicator,\n\t::slotted(svg),\n\t::slotted(span) {\n\t\tfill: currentcolor;\n\t\theight: 1em;\n\t\tmin-height: calc("," * 4px);\n\t\tmin-width: calc("," * 4px);\n\t\twidth: 1em;\n\t}\n\t::slotted([role='option']),\n\t::slotted(option) {\n\t\tflex: 0 0 auto;\n\t}\n"])),Lt("inline-flex"),Xn,yn,mn,bn,_n,dn,er,hn,wn,kn,Xn,dn,gn,hn,tr,pn,ni,gn,Xn,er,ni,Wn,dn,gn,Gn,ri,vn,ri,Xn,yn,gn,gn,bn,bn,pn,pn)},indicator:'\n\t\t<svg \n\t\t\tclass="select-indicator"\n\t\t\tpart="select-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"\n\t\t\t/>\n\t\t</svg>\n\t'}),Mo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){var t;null===(t=e.control)||void 0===t||t.focus()})},e}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.handleUnsupportedDelegatesFocus()}}]),n}($e);G([K],Mo.prototype,"download",void 0),G([K],Mo.prototype,"href",void 0),G([K],Mo.prototype,"hreflang",void 0),G([K],Mo.prototype,"ping",void 0),G([K],Mo.prototype,"referrerpolicy",void 0),G([K],Mo.prototype,"rel",void 0),G([K],Mo.prototype,"target",void 0),G([K],Mo.prototype,"type",void 0),G([S],Mo.prototype,"defaultSlottedContent",void 0);var Lo,Zo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-expanded"})],Zo.prototype,"ariaExpanded",void 0),Cr(Zo,hr),Cr(Mo,wr,Zo);var zo,Fo,Vo,Bo,Ho,Uo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Mo),Ko=Uo.compose({baseName:"link",template:function(e,t){return It(Lo||(Lo=(0,at.Z)(['\n <a\n class="control"\n part="control"\n download="','"\n href="','"\n hreflang="','"\n ping="','"\n referrerpolicy="','"\n rel="','"\n target="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </a>\n"])),(function(e){return e.download}),(function(e){return e.href}),(function(e){return e.hreflang}),(function(e){return e.ping}),(function(e){return e.referrerpolicy}),(function(e){return e.rel}),(function(e){return e.target}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),xr(0,t),Gr("defaultSlottedContent"),kr(0,t))},styles:function(e,t){return Mt(zo||(zo=(0,at.Z)(["\n\t"," :host {\n\t\tbackground: transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\toutline: none;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\t\tfill: inherit;\n\t\tfont-family: inherit;\n\t\theight: inherit;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tword-break: break-word;\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t}\n\t:host(:hover) .content {\n\t\ttext-decoration: underline;\n\t}\n\t:host(:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t}\n\t:host(:",") .control,\n\t:host(:focus) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n"])),Lt("inline-flex"),or,mn,wn,kn,dn,hn,ir,ir,ni,dn,gn)},shadowOptions:{delegatesFocus:!0}}),qo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}]),n}(go),$o=qo.compose({baseName:"option",template:function(e,t){return It(Fo||(Fo=(0,at.Z)(['\n <template\n aria-checked="','"\n aria-disabled="','"\n aria-posinset="','"\n aria-selected="','"\n aria-setsize="','"\n class="','"\n role="option"\n >\n ','\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </template>\n"])),(function(e){return e.ariaChecked}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaPosInSet}),(function(e){return e.ariaSelected}),(function(e){return e.ariaSetSize}),(function(e){return[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}),xr(0,t),Gr("content"),kr(0,t))},styles:function(e,t){return Mt(Vo||(Vo=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: var(--body-font);\n\t\tborder-radius: ",";\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: 0;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tpadding: 0 calc(("," / 2) * 1px)\n\t\t\tcalc(("," / 4) * 1px);\n\t\tuser-select: none;\n\t\twhite-space: nowrap;\n\t}\n\t:host(:",") {\n\t\tborder-color: ",";\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):hover) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground-color: inherit;\n\t}\n\t.content {\n\t\tgrid-column-start: 2;\n\t\tjustify-self: start;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"])),Lt("inline-flex"),hn,dn,yn,wn,kn,pn,pn,ni,gn,Wn,yn,Wn,dn,gn,Gn,Wn,Gn,Wn,dn,gn,Gn,Wn,yn,ri,vn)}}),Yo="horizontal",Wo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=Yo,e.activeindicator=!0,e.showActiveIndicator=!0,e.prevActiveTabIndex=0,e.activeTabIndex=0,e.ticking=!1,e.change=function(){e.$emit("change",e.activetab)},e.isDisabledElement=function(e){return"true"===e.getAttribute("aria-disabled")},e.isFocusableElement=function(t){return!e.isDisabledElement(t)},e.setTabs=function(){var t=e.isHorizontal()?"gridColumn":"gridRow";e.activeTabIndex=e.getActiveIndex(),e.showActiveIndicator=!1,e.tabs.forEach((function(n,r){if("tab"===n.slot){var i=e.activeTabIndex===r&&e.isFocusableElement(n);e.activeindicator&&e.isFocusableElement(n)&&(e.showActiveIndicator=!0);var o=e.tabIds[r],a=e.tabpanelIds[r];n.setAttribute("id",o),n.setAttribute("aria-selected",i?"true":"false"),n.setAttribute("aria-controls",a),n.addEventListener("click",e.handleTabClick),n.addEventListener("keydown",e.handleTabKeyDown),n.setAttribute("tabindex",i?"0":"-1"),i&&(e.activetab=n)}n.style.gridColumn="",n.style.gridRow="",n.style[t]="".concat(r+1),e.isHorizontal()?n.classList.remove("vertical"):n.classList.add("vertical")}))},e.setTabPanels=function(){e.tabpanels.forEach((function(t,n){var r=e.tabIds[n],i=e.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),e.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},e.handleTabClick=function(t){var n=t.currentTarget;1===n.nodeType&&e.isFocusableElement(n)&&(e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=e.tabs.indexOf(n),e.setComponent())},e.handleTabKeyDown=function(t){if(e.isHorizontal())switch(t.key){case Sr:t.preventDefault(),e.adjustBackward(t);break;case Er:t.preventDefault(),e.adjustForward(t)}else switch(t.key){case jr:t.preventDefault(),e.adjustBackward(t);break;case Or:t.preventDefault(),e.adjustForward(t)}switch(t.key){case Rr:t.preventDefault(),e.adjust(-e.activeTabIndex);break;case Dr:t.preventDefault(),e.adjust(e.tabs.length-e.activeTabIndex-1)}},e.adjustForward=function(t){var n=e.tabs,r=0;for((r=e.activetab?n.indexOf(e.activetab)+1:1)===n.length&&(r=0);r<n.length&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}if(e.activetab&&r===n.indexOf(e.activetab))break;r+1>=n.length?r=0:r+=1}},e.adjustBackward=function(t){var n=e.tabs,r=0;for(r=(r=e.activetab?n.indexOf(e.activetab)-1:0)<0?n.length-1:r;r>=0&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}r-1<0?r=n.length-1:r-=1}},e.moveToTabByIndex=function(t,n){var r=t[n];e.activetab=r,e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=n,r.focus(),e.setComponent()},e}return(0,i.Z)(n,[{key:"orientationChanged",value:function(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"activeidChanged",value:function(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((function(t){return t.id===e})),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabsChanged",value:function(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabpanelsChanged",value:function(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"getActiveIndex",value:function(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}},{key:"getTabIds",value:function(){return this.tabs.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"tab-".concat(po())}))}},{key:"getTabPanelIds",value:function(){return this.tabpanels.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat(po())}))}},{key:"setComponent",value:function(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}},{key:"isHorizontal",value:function(){return this.orientation===Yo}},{key:"handleActiveIndicatorPosition",value:function(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}},{key:"animateActiveIndicator",value:function(){var e=this;this.ticking=!0;var t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.activeTabIndex+1);var o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.prevActiveTabIndex+1);var a=o-i;this.activeIndicatorRef.style.transform="".concat(n,"(").concat(a,"px)"),this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(function(){e.ticking=!1,e.activeIndicatorRef.style[t]="".concat(e.activeTabIndex+1),e.activeIndicatorRef.style.transform="".concat(n,"(0px)"),e.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}},{key:"adjust",value:function(e){var t,n;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=this.tabs.length-1,(n=this.activeTabIndex+e)<0?t:n>t?0:n),this.setComponent()}},{key:"focusTab",value:function(){this.tabs[this.activeTabIndex].focus()}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}]),n}($e);G([K],Wo.prototype,"orientation",void 0),G([K],Wo.prototype,"activeid",void 0),G([S],Wo.prototype,"tabs",void 0),G([S],Wo.prototype,"tabpanels",void 0),G([K({mode:"boolean"})],Wo.prototype,"activeindicator",void 0),G([S],Wo.prototype,"activeIndicatorRef",void 0),G([S],Wo.prototype,"showActiveIndicator",void 0),Cr(Wo,wr);var Go,Jo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e);G([K({mode:"boolean"})],Jo.prototype,"disabled",void 0);var Qo,Xo,ea,ta,na,ra,ia,oa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),aa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.orientation&&(this.orientation=Yo),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}]),n}(Wo),sa=aa.compose({baseName:"panels",template:function(e,t){return It(Bo||(Bo=(0,at.Z)(['\n <template class="','">\n ','\n <div class="tablist" part="tablist" role="tablist">\n <slot class="tab" name="tab" part="tab" ',"></slot>\n\n ","\n </div>\n ",'\n <div class="tabpanel" part="tabpanel">\n <slot name="tabpanel" ',"></slot>\n </div>\n </template>\n"])),(function(e){return e.orientation}),xr(0,t),Gr("tabs"),Do((function(e){return e.showActiveIndicator}),It(Ho||(Ho=(0,at.Z)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),br("activeIndicatorRef"))),kr(0,t),Gr("tabpanels"))},styles:function(e,t){return Mt(Xo||(Xo=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tgrid-template-columns: auto 1fr auto;\n\t\tgrid-template-rows: auto 1fr;\n\t\toverflow-x: auto;\n\t}\n\t.tablist {\n\t\tdisplay: grid;\n\t\tgrid-template-rows: auto auto;\n\t\tgrid-template-columns: auto;\n\t\tcolumn-gap: calc("," * 8px);\n\t\tposition: relative;\n\t\twidth: max-content;\n\t\talign-self: end;\n\t\tpadding: calc("," * 1px) calc("," * 1px) 0;\n\t\tbox-sizing: border-box;\n\t}\n\t.start,\n\t.end {\n\t\talign-self: center;\n\t}\n\t.activeIndicator {\n\t\tgrid-row: 2;\n\t\tgrid-column: 1;\n\t\twidth: 100%;\n\t\theight: calc(("," / 4) * 1px);\n\t\tjustify-self: center;\n\t\tbackground: ",";\n\t\tmargin: 0;\n\t\tborder-radius: calc("," * 1px);\n\t}\n\t.activeIndicatorTransition {\n\t\ttransition: transform 0.01s linear;\n\t}\n\t.tabpanel {\n\t\tgrid-row: 2;\n\t\tgrid-column-start: 1;\n\t\tgrid-column-end: 4;\n\t\tposition: relative;\n\t}\n"])),Lt("grid"),mn,wn,kn,yn,pn,pn,pn,pn,ur,hn)}}),ua=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}]),n}(Jo),la=ua.compose({baseName:"panel-tab",template:function(e,t){return It(Go||(Go=(0,at.Z)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(function(e){return e.disabled}))},styles:function(e,t){return Mt(ea||(ea=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\theight: calc("," * 7px);\n\t\tpadding: calc("," * 1px) 0;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: solid calc("," * 1px) transparent;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgrid-row: 1;\n\t\tcursor: pointer;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:active) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:hover) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:",") {\n\t\toutline: none;\n\t\tborder: solid calc("," * 1px) ",";\n\t}\n\t:host(:focus) {\n\t\toutline: none;\n\t}\n\t::slotted(vscode-badge) {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n"])),Lt("inline-flex"),mn,wn,kn,pn,pn,lr,hn,dn,ur,ur,ur,ur,ur,ni,dn,sr,pn)}}),ca=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(oa),da=ca.compose({baseName:"panel-view",template:function(e,t){return It(Qo||(Qo=(0,at.Z)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n'])))},styles:function(e,t){return Mt(ta||(ta=(0,at.Z)(["\n\t"," :host {\n\t\tcolor: inherit;\n\t\tbackground-color: transparent;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tbox-sizing: border-box;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: 10px calc(("," + 2) * 1px);\n\t}\n"])),Lt("flex"),dn,wn,kn,pn)}}),fa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).percentComplete=0,e}return(0,i.Z)(n,[{key:"valueChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"minChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"maxChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.updatePercentComplete()}},{key:"updatePercentComplete",value:function(){var e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,n="number"==typeof this.value?this.value:0,r=t-e;this.percentComplete=0===r?0:Math.fround((n-e)/r*100)}}]),n}($e);G([K({converter:H})],fa.prototype,"value",void 0),G([K({converter:H})],fa.prototype,"min",void 0),G([K({converter:H})],fa.prototype,"max",void 0),G([K({mode:"boolean"})],fa.prototype,"paused",void 0),G([S],fa.prototype,"percentComplete",void 0);var ha,pa,va=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}},{key:"attributeChangedCallback",value:function(e,t,n){"value"===e&&this.removeAttribute("value")}}]),n}(fa),ga=va.compose({baseName:"progress-ring",template:function(e,t){return It(na||(na=(0,at.Z)(['\n <template\n role="progressbar"\n aria-valuenow="','"\n aria-valuemin="','"\n aria-valuemax="','"\n class="','"\n >\n ',"\n </template>\n"])),(function(e){return e.value}),(function(e){return e.min}),(function(e){return e.max}),(function(e){return e.paused?"paused":""}),Do((function(e){return"number"==typeof e.value}),It(ra||(ra=(0,at.Z)(['\n <svg\n class="progress"\n part="progress"\n viewBox="0 0 16 16"\n slot="determinate"\n >\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="determinate"\n part="determinate"\n style="stroke-dasharray: ',"px ",'px"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '])),(function(e){return 44*e.percentComplete/100}),44),It(ia||(ia=(0,at.Z)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||"")))},styles:function(e,t){return Mt(ha||(ha=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\theight: calc("," * 7px);\n\t\twidth: calc("," * 7px);\n\t\tmargin: 0;\n\t}\n\t.progress {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.background {\n\t\tfill: none;\n\t\tstroke: transparent;\n\t\tstroke-width: calc("," / 2 * 1px);\n\t}\n\t.indeterminate-indicator-1 {\n\t\tfill: none;\n\t\tstroke: ",";\n\t\tstroke-width: calc("," / 2 * 1px);\n\t\tstroke-linecap: square;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: all 0.2s ease-in-out;\n\t\tanimation: spin-infinite 2s linear infinite;\n\t}\n\t@keyframes spin-infinite {\n\t\t0% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t50% {\n\t\t\tstroke-dasharray: 21.99px 21.99px;\n\t\t\ttransform: rotate(450deg);\n\t\t}\n\t\t100% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(1080deg);\n\t\t}\n\t}\n"])),Lt("flex"),pn,pn,pn,ar,pn)},indeterminateIndicator:'\n\t\t<svg class="progress" part="progress" viewBox="0 0 16 16">\n\t\t\t<circle\n\t\t\t\tclass="background"\n\t\t\t\tpart="background"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t\t<circle\n\t\t\t\tclass="indeterminate-indicator-1"\n\t\t\t\tpart="indeterminate-indicator-1"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t</svg>\n\t'}),ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),ya=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Fr(ma)),ba=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.keypressHandler=function(t){if(t.key!==Ir)return!0;e.checked||e.readOnly||(e.checked=!0)},e.proxy.setAttribute("type","radio"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}},{key:"defaultCheckedChanged",value:function(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}},{key:"connectedCallback",value:function(){var e,t;R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}},{key:"isInsideRadioGroup",value:function(){return null!==this.closest("[role=radiogroup]")}},{key:"clickHandler",value:function(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}]),n}(ya);G([K({attribute:"readonly",mode:"boolean"})],ba.prototype,"readOnly",void 0),G([S],ba.prototype,"name",void 0),G([S],ba.prototype,"defaultSlottedNodes",void 0);var _a,wa,ka=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}]),n}(ba),xa=ka.compose({baseName:"radio",template:function(e,t){return It(pa||(pa=(0,at.Z)(['\n <template\n role="radio"\n class="'," ",'"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n @keypress="','"\n @click="','"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked?"checked":""}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),t.checkedIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Gr("defaultSlottedNodes"))},styles:function(e,t){return Mt(_a||(_a=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\tflex-direction: row;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t\toutline: none;\n\t\tposition: relative;\n\t\ttransition: all 0.2s ease-in-out;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbox-sizing: border-box;\n\t\tcursor: pointer;\n\t\theight: calc("," * 4px);\n\t\tposition: relative;\n\t\toutline: none;\n\t\twidth: calc("," * 4px);\n\t}\n\t.label {\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-family: ",";\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.control,\n\t.checked-indicator {\n\t\tflex-shrink: 0;\n\t}\n\t.checked-indicator {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tdisplay: inline-block;\n\t\tinset: calc("," * 1px);\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t}\n\t:host(:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']) .control {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",';\n\t}\n\t:host([aria-checked="true"]:',":not([disabled])) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([aria-checked='true']) .checked-indicator {\n\t\topacity: 1;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n"])),Lt("inline-flex"),wn,kn,pn,qn,dn,$n,pn,pn,yn,mn,pn,pn,yn,pn,qn,$n,qn,gn,ni,dn,gn,qn,dn,$n,qn,dn,$n,qn,dn,gn,ni,dn,gn,ri,vn)},checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});!function(e){e.ltr="ltr",e.rtl="rtl"}(wa||(wa={}));var Ca,Oa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=so,e.radioChangeHandler=function(t){var n=t.target;n.checked&&(e.slottedRadioButtons.forEach((function(t){t!==n&&(t.checked=!1,e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),e.selectedRadio=n,e.value=n.value,n.setAttribute("tabindex","0"),e.focusedRadio=n),t.stopPropagation()},e.moveToRadioByIndex=function(t,n){var r=t[n];e.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?e.slottedRadioButtons.forEach((function(e){e!==r&&e.setAttribute("tabindex","-1")})):(r.checked=!0,e.selectedRadio=r)),e.focusedRadio=r,r.focus()},e.moveRightOffGroup=function(){var t;null===(t=e.nextElementSibling)||void 0===t||t.focus()},e.moveLeftOffGroup=function(){var t;null===(t=e.previousElementSibling)||void 0===t||t.focus()},e.focusOutHandler=function(t){var n=e.slottedRadioButtons,r=t.target,i=null!==r?n.indexOf(r):0,o=e.focusedRadio?n.indexOf(e.focusedRadio):-1;return(0===o&&i===o||o===n.length-1&&o===i)&&(e.selectedRadio?(e.focusedRadio=e.selectedRadio,e.isInsideFoundationToolbar||(e.selectedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.selectedRadio&&t.setAttribute("tabindex","-1")})))):(e.focusedRadio=n[0],e.focusedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},e.clickHandler=function(t){var n=t.target;if(n){var r=e.slottedRadioButtons;n.checked||0===r.indexOf(n)?(n.setAttribute("tabindex","0"),e.selectedRadio=n):(n.setAttribute("tabindex","-1"),e.selectedRadio=null),e.focusedRadio=n}t.preventDefault()},e.shouldMoveOffGroupToTheRight=function(t,n,r){return t===n.length&&e.isInsideToolbar&&r===Er},e.shouldMoveOffGroupToTheLeft=function(t,n){return(e.focusedRadio?t.indexOf(e.focusedRadio)-1:0)<0&&e.isInsideToolbar&&n===Sr},e.checkFocusedRadio=function(){null===e.focusedRadio||e.focusedRadio.readOnly||e.focusedRadio.checked||(e.focusedRadio.checked=!0,e.focusedRadio.setAttribute("tabindex","0"),e.focusedRadio.focus(),e.selectedRadio=e.focusedRadio)},e.moveRight=function(t){var n=e.slottedRadioButtons,r=0;if(r=e.focusedRadio?n.indexOf(e.focusedRadio)+1:1,e.shouldMoveOffGroupToTheRight(r,n,t.key))e.moveRightOffGroup();else for(r===n.length&&(r=0);r<n.length&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;if(r+1>=n.length){if(e.isInsideToolbar)break;r=0}else r+=1}},e.moveLeft=function(t){var n=e.slottedRadioButtons,r=0;if(r=(r=e.focusedRadio?n.indexOf(e.focusedRadio)-1:0)<0?n.length-1:r,e.shouldMoveOffGroupToTheLeft(n,t.key))e.moveLeftOffGroup();else for(;r>=0&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;r-1<0?r=n.length-1:r-=1}},e.keydownHandler=function(t){var n=t.key;if(n in Pr&&e.isInsideFoundationToolbar)return!0;switch(n){case Ar:e.checkFocusedRadio();break;case Er:case Or:e.direction===wa.ltr?e.moveRight(t):e.moveLeft(t);break;case Sr:case jr:e.direction===wa.ltr?e.moveLeft(t):e.moveRight(t);break;default:return!0}},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.readOnly?t.readOnly=!0:t.readOnly=!1}))}},{key:"disabledChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.disabled?t.disabled=!0:t.disabled=!1}))}},{key:"nameChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.setAttribute("name",e.name)}))}},{key:"valueChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.value===e.value&&(t.checked=!0,e.selectedRadio=t)})),this.$emit("change")}},{key:"slottedRadioButtonsChanged",value:function(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}},{key:"parentToolbar",get:function(){return this.closest('[role="toolbar"]')}},{key:"isInsideToolbar",get:function(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}},{key:"isInsideFoundationToolbar",get:function(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}},{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.direction=function(e){var t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?wa.rtl:wa.ltr}(this),this.setupRadioButtons()}},{key:"disconnectedCallback",value:function(){var e=this;this.slottedRadioButtons.forEach((function(t){t.removeEventListener("change",e.radioChangeHandler)}))}},{key:"setupRadioButtons",value:function(){var e=this,t=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),n=t?t.length:0;n>1&&(t[n-1].checked=!0);var r=!1;if(this.slottedRadioButtons.forEach((function(t){void 0!==e.name&&t.setAttribute("name",e.name),e.disabled&&(t.disabled=!0),e.readOnly&&(t.readOnly=!0),e.value&&e.value===t.value?(e.selectedRadio=t,e.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),r=!0):(e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",e.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){var i=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),o=null!==i?i.length:0;if(o>0&&!r){var a=i[o-1];a.checked=!0,this.focusedRadio=a,a.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}]),n}($e);G([K({attribute:"readonly",mode:"boolean"})],Oa.prototype,"readOnly",void 0),G([K({attribute:"disabled",mode:"boolean"})],Oa.prototype,"disabled",void 0),G([K],Oa.prototype,"name",void 0),G([K],Oa.prototype,"value",void 0),G([K],Oa.prototype,"orientation",void 0),G([S],Oa.prototype,"childItems",void 0),G([S],Oa.prototype,"slottedRadioButtons",void 0);var Sa,Ea,ja=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("label");if(e){var t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}]),n}(Oa),Aa=ja.compose({baseName:"radio-group",template:function(e,t){return It(Ca||(Ca=(0,at.Z)(['\n <template\n role="radiogroup"\n aria-disabled="','"\n aria-readonly="','"\n @click="','"\n @keydown="','"\n @focusout="','"\n >\n <slot name="label"></slot>\n <div\n class="positioning-region ','"\n part="positioning-region"\n >\n <slot\n ',"\n ></slot>\n </div>\n </template>\n"])),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.focusOutHandler(t.event)}),(function(e){return e.orientation===so?"horizontal":"vertical"}),Gr({property:"slottedRadioButtons",filter:Kr("[role=radio]")}))},styles:function(e,t){return Mt(Sa||(Sa=(0,at.Z)(["\n\t"," :host {\n\t\talign-items: flex-start;\n\t\tmargin: calc("," * 1px) 0;\n\t\tflex-direction: column;\n\t}\n\t.positioning-region {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\t:host([orientation='vertical']) .positioning-region {\n\t\tflex-direction: column;\n\t}\n\t:host([orientation='horizontal']) .positioning-region {\n\t\tflex-direction: row;\n\t}\n\t::slotted([slot='label']) {\n\t\tcolor: ",";\n\t\tfont-size: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t}\n"])),Lt("flex"),pn,yn,wn,pn)}}),Ta=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.circular&&(this.circular=!1)}}]),n}(ot),Ra=Ta.compose({baseName:"tag",template:Nt,styles:function(e,t){return Mt(Ea||(Ea=(0,at.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t\tpadding: calc("," * 0.5px) calc("," * 1px);\n\t\ttext-transform: uppercase;\n\t}\n"])),Lt("inline-block"),mn,xn,Cn,Tn,dn,Dn,cr,Rn,pn,pn)}}),Da=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(Da)),Na=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).type="text",e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}},{key:"placeholderChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}},{key:"typeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}},{key:"listChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}},{key:"patternChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}},{key:"sizeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"connectedCallback",value:function(){var e=this;R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&k.queueUpdate((function(){e.focus()}))}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleTextInput",value:function(){this.value=this.control.value}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){R((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(Ia);G([K({attribute:"readonly",mode:"boolean"})],Na.prototype,"readOnly",void 0),G([K({mode:"boolean"})],Na.prototype,"autofocus",void 0),G([K],Na.prototype,"placeholder",void 0),G([K],Na.prototype,"type",void 0),G([K],Na.prototype,"list",void 0),G([K({converter:H})],Na.prototype,"maxlength",void 0),G([K({converter:H})],Na.prototype,"minlength",void 0),G([K],Na.prototype,"pattern",void 0),G([K({converter:H})],Na.prototype,"size",void 0),G([K({mode:"boolean"})],Na.prototype,"spellcheck",void 0),G([S],Na.prototype,"defaultSlottedNodes",void 0);var Pa=(0,i.Z)((function e(){(0,r.Z)(this,e)}));Cr(Pa,hr),Cr(Na,wr,Pa);var Ma,La=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}($e),Za=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("textarea"),e}return(0,i.Z)(n)}(zr(La)),za="none",Fa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resize=za,e.cols=20,e.handleTextInput=function(){e.value=e.control.value},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}},{key:"listChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){R((0,T.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(Za);G([K({mode:"boolean"})],Fa.prototype,"readOnly",void 0),G([K],Fa.prototype,"resize",void 0),G([K({mode:"boolean"})],Fa.prototype,"autofocus",void 0),G([K({attribute:"form"})],Fa.prototype,"formId",void 0),G([K],Fa.prototype,"list",void 0),G([K({converter:H})],Fa.prototype,"maxlength",void 0),G([K({converter:H})],Fa.prototype,"minlength",void 0),G([K],Fa.prototype,"name",void 0),G([K],Fa.prototype,"placeholder",void 0),G([K({converter:H,mode:"fromView"})],Fa.prototype,"cols",void 0),G([K({converter:H,mode:"fromView"})],Fa.prototype,"rows",void 0),G([K({mode:"boolean"})],Fa.prototype,"spellcheck",void 0),G([S],Fa.prototype,"defaultSlottedNodes",void 0),Cr(Fa,Pa);var Va,Ba,Ha=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}]),n}(Fa),Ua=Ha.compose({baseName:"text-area",template:function(e,t){return It(Ma||(Ma=(0,at.Z)(['\n <template\n class="\n ',"\n ",'"\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot ','></slot>\n </label>\n <textarea\n part="control"\n class="control"\n id="control"\n ?autofocus="','"\n cols="','"\n ?disabled="','"\n form="','"\n list="','"\n maxlength="','"\n minlength="','"\n name="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n rows="','"\n ?spellcheck="','"\n :value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n @input="','"\n @change="','"\n ',"\n ></textarea>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.resize!==za?"resize-".concat(e.resize):""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Gr("defaultSlottedNodes"),(function(e){return e.autofocus}),(function(e){return e.cols}),(function(e){return e.disabled}),(function(e){return e.form}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.name}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.rows}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),(function(e,t){return e.handleTextInput()}),(function(e){return e.handleChange()}),br("control"))},styles:function(e,t){return Mt(Va||(Va=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tfont: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: calc("," * 2px + 1px);\n\t\twidth: 100%;\n\t\tmin-width: ",";\n\t\tresize: none;\n\t}\n\t.control:hover:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:active:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.control::-webkit-scrollbar {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n\t.control::-webkit-scrollbar-corner {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:hover {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:active {\n\t\tbackground: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([resize='both']) .control {\n\t\tresize: both;\n\t}\n\t:host([resize='horizontal']) .control {\n\t\tresize: horizontal;\n\t}\n\t:host([resize='vertical']) .control {\n\t\tresize: vertical;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Lt("inline-block"),mn,rr,nr,hn,dn,er,wn,kn,pn,_n,nr,er,nr,gn,ni,On,Sn,nr,En,jn,An,gn,yn,wn,kn,ri,vn,er)},shadowOptions:{delegatesFocus:!0}});function Ka(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var qa,$a=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,T.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}]),n}(Na),Ya=$a.compose({baseName:"text-field",template:function(e,t){return It(Ba||(Ba=(0,at.Z)(['\n <template\n class="\n ','\n "\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot\n ','\n ></slot>\n </label>\n <div class="root" part="root">\n ','\n <input\n class="control"\n part="control"\n id="control"\n @input="','"\n @change="','"\n ?autofocus="','"\n ?disabled="','"\n list="','"\n maxlength="','"\n minlength="','"\n pattern="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n size="','"\n ?spellcheck="','"\n :value="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n />\n ","\n </div>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Gr({property:"defaultSlottedNodes",filter:Ka}),xr(0,t),(function(e){return e.handleTextInput()}),(function(e){return e.handleChange()}),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.pattern}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.size}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),br("control"),kr(0,t))},styles:function(e,t){return Mt(qa||(qa=(0,at.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.root {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\theight: calc("," * 1px);\n\t\tmin-width: ",";\n\t}\n\t.control {\n\t\t-webkit-appearance: none;\n\t\tfont: inherit;\n\t\tbackground: transparent;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\theight: calc(100% - ("," * 1px));\n\t\twidth: 100%;\n\t\tmargin-top: auto;\n\t\tmargin-bottom: auto;\n\t\tborder: none;\n\t\tpadding: 0 calc("," * 2px + 1px);\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.start,\n\t.end {\n\t\tdisplay: flex;\n\t\tmargin: auto;\n\t\tfill: currentcolor;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n\t.end {\n\t\tmargin-inline-end: calc("," * 2px);\n\t}\n\t:host(:hover:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:active:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .root {\n\t\tborder-color: ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Lt("inline-block"),mn,rr,nr,hn,dn,er,bn,_n,pn,pn,wn,kn,ni,yn,wn,kn,pn,pn,pn,pn,nr,er,nr,gn,gn,ri,vn,er)},shadowOptions:{delegatesFocus:!0}}),Wa=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Ga=new Map,Ja=new Map,Qa=null,Xa=ve.createInterface((function(e){return e.cachedCallback((function(e){return null===Qa&&(Qa=new ts(null,e)),Qa}))})),es=Object.freeze({tagFor:function(e){return Ja.get(e)},responsibleFor:function(e){return e.$$designSystem$$||ve.findResponsibleContainer(e).get(Xa)},getOrCreate:function(e){if(!e)return null===Qa&&(Qa=ve.getOrCreateDOMContainer().get(Xa)),Qa;var t=e.$$designSystem$$;if(t)return t;var n=ve.getOrCreateDOMContainer(e);if(n.has(Xa,!1))return n.get(Xa);var r=new ts(e,n);return n.register(Pe.instance(Xa,r)),r}}),ts=function(){function e(t,n){(0,r.Z)(this,e),this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=function(){return Wa.definitionCallbackOnly},null!==t&&(t.$$designSystem$$=this)}return(0,i.Z)(e,[{key:"withPrefix",value:function(e){return this.prefix=e,this}},{key:"withShadowRootMode",value:function(e){return this.shadowRootMode=e,this}},{key:"withElementDisambiguation",value:function(e){return this.disambiguate=e,this}},{key:"withDesignTokenRoot",value:function(e){return this.designTokenRoot=e,this}},{key:"register",value:function(){var e=this.container,t=[],n=this.disambiguate,s=this.shadowRootMode,u={elementPrefix:this.prefix,tryDefineElement:function(u,l,c){for(var d=function(e,t,n){return"string"==typeof e?{name:e,type:t,callback:n}:e}(u,l,c),f=d.name,h=d.callback,p=d.baseClass,v=d.type,g=f,m=Ga.get(g),y=!0;m;){var b=n(g,v,m);switch(b){case Wa.ignoreDuplicate:return;case Wa.definitionCallbackOnly:y=!1,m=void 0;break;default:g=b,m=Ga.get(g)}}y&&((Ja.has(v)||v===$e)&&(v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(v)),Ga.set(g,v),Ja.set(v,g),p&&Ja.set(p,g)),t.push(new ns(e,g,v,s,h,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&rn.registerRoot(this.designTokenRoot));for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];e.registerWithContext.apply(e,[u].concat(c));for(var f=0,h=t;f<h.length;f++){var p=h[f];p.callback(p),p.willDefine&&null!==p.definition&&p.definition.define()}return this}}]),e}(),ns=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.container=t,this.name=n,this.type=i,this.shadowRootMode=o,this.callback=a,this.willDefine=s,this.definition=null}return(0,i.Z)(e,[{key:"definePresentation",value:function(e){Ke.define(this.name,e,this.container)}},{key:"defineElement",value:function(e){this.definition=new W(this.type,Object.assign(Object.assign({},e),{name:this.name}))}},{key:"tagFor",value:function(e){return es.tagFor(e)}}]),e}(),rs=function(e,t){var n=[],s={register:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.forEach((function(t){return t.register.apply(t,[e].concat(r))})),n=[]}};return{wrap:function(s){var u,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s instanceof We&&(t?t.register(s):n.push(s),s=s.type);var d=Xe.get(s);if(d){var f=d.get(null!==(u=c.name)&&void 0!==u?u:Qe);if(f)return f}var h=function(t){(0,o.Z)(u,t);var n=(0,a.Z)(u);function u(){var e;return(0,r.Z)(this,u),(e=n.apply(this,arguments))._element=null,e}return(0,i.Z)(u,[{key:"_updateElement",value:function(e){var t=this._element;if(null!==t){var n=this.props,r=e||Je,i=tt(c);for(var o in this._elementProps){var a=n[o],s=i[o];if(void 0===s)t[o]=a;else{var u=r[o];if(a===u)continue;void 0!==u&&t.removeEventListener(s,u),void 0!==a&&t.addEventListener(s,a)}}}}},{key:"componentDidMount",value:function(){this._updateElement()}},{key:"componentDidUpdate",value:function(e){this._updateElement(e)}},{key:"render",value:function(){var t=this,n=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===n||(this._ref=function(e){null===t._element&&(t._element=e),null!==n&&function(e,t){"function"==typeof e?e(t):e.current=t}(n,e),t._userRef=n});var r={ref:this._ref},i=this._elementProps={},o=rt(s,c),a=this.props;for(var u in a){var l=a[u];o.has(u)?i[u]=l:r["className"===u?"class":u]=l}return e.createElement(et(s,c),r)}}]),u}(e.Component),p=e.forwardRef((function(t,n){return e.createElement(h,Object.assign(Object.assign({},t),{__forwardedRef:n}),null==t?void 0:t.children)}));return Xe.has(s)||Xe.set(s,new Map),Xe.get(s).set(null!==(l=c.name)&&void 0!==l?l:Qe,p),p},registry:s}}(it,es.getOrCreate(void 0).withPrefix("vscode")),is=rs.wrap,os=(is(fr(),{name:"vscode-badge"}),is(ci(),{name:"vscode-button"})),as=is(gi(),{name:"vscode-checkbox",events:{onChange:"change"}}),ss=(is(no(),{name:"vscode-data-grid"}),is(ao(),{name:"vscode-data-grid-cell"}),is(io(),{name:"vscode-data-grid-row"}),is(fo(),{name:"vscode-divider"})),us=is(Po(),{name:"vscode-dropdown",events:{onChange:"change"}}),ls=is(Ko(),{name:"vscode-link"}),cs=is($o(),{name:"vscode-option"}),ds=(is(sa(),{name:"vscode-panels",events:{onChange:"change"}}),is(la(),{name:"vscode-panel-tab"}),is(da(),{name:"vscode-panel-view"}),is(ga(),{name:"vscode-progress-ring"}),is(xa(),{name:"vscode-radio",events:{onChange:"change"}})),fs=is(Aa(),{name:"vscode-radio-group",events:{onChange:"change"}}),hs=(is(Ra(),{name:"vscode-tag"}),is(Ua(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),is(Ya(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{521:"9e4e25a2",697:"d1225ee9"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+".ea7bdcfc.chunk.css"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="GraphiteInteractive:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e=function(e){return new Promise((function(t,r){var i=n.miniCssF(e),o=n.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}}(i,o))return t();!function(e,t,n,r){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=function(o){if(i.onerror=i.onload=null,"load"===o.type)n();else{var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=a,u.request=s,i.parentNode.removeChild(i),r(u)}},i.href=t,document.head.appendChild(i)}(e,o,t,r)}))},t={179:0};n.f.miniCss=function(n,r){t[n]?r.push(t[n]):0!==t[n]&&{521:1}[n]&&r.push(t[n]=e(n).then((function(){t[n]=0}),(function(e){throw delete t[n],e})))}}(),function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);u&&u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkGraphiteInteractive=self.webpackChunkGraphiteInteractive||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0;var r={};return function(){"use strict";n.r(r);var e=n(184),t=n(2791),i=n(1250),o=n(1072),a=n(32),s=n(5281),u=n(1828),l=new s.Tracker((function(e){u.H.postMessage({type:"track",data:e})}),{});function c(t){var n=t.title,r=t.description,i=t.buttons;return(0,e.jsxs)("div",Object.assign({className:"banner-notice"},{children:[(0,e.jsx)("div",Object.assign({className:"banner-notice-left"},{children:(0,e.jsxs)("div",Object.assign({className:"banner-notice-content"},{children:[(0,e.jsx)("span",Object.assign({className:"banner-notice-title"},{children:n})),(0,e.jsx)("span",Object.assign({className:"banner-notice-byline"},{children:r}))]}))})),i?(0,e.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:i})):null]}))}window.globalGtiClientTracker=l;var d=n(885),f=n(4098);function h(e){return function(t){g.set({x:t.clientX,y:t.clientY,items:e()}),t.preventDefault(),t.stopPropagation()}}var p,v,g=f.LO.box(null,{deep:!1}),m=(0,a.Pi)((function(){var n=g.get(),r=(0,t.useState)(null),i=(0,d.Z)(r,2),o=i[0],a=i[1],u=(0,t.useRef)(null);if((0,t.useEffect)((function(){if(null!=n){var e=function(e){"keyup"!==e.type?"click"===e.type&&(0,s.findParentWithClassName)(e.target,"context-menu-container")||g.set(null):"Escape"===e.key&&g.set(null)};return window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[n]),null==n)return null;var l,c=n.y>window.innerHeight/2?"bottom":"top",f=n.x>window.innerWidth/2?"right":"left";return l="top"===c?"left"===f?{top:n.y+10,left:n.x+-5}:{top:n.y+10,right:window.innerWidth-(n.x+-5)}:"left"===f?{bottom:window.innerHeight-(n.y-10),left:n.x+-5}:{bottom:window.innerHeight-(n.y-10),right:window.innerWidth-(n.x+-5)},(0,e.jsxs)("div",Object.assign({ref:u,className:"context-menu-container"+(null!=o?" context-menu-fadeout":""),"data-testid":"context-menu-container",style:l},{children:["top"===c?(0,e.jsx)("div",{className:"context-menu-arrow-top context-menu-arrow-".concat(f)}):null,(0,e.jsx)("div",Object.assign({className:"context-menu"},{children:n.items.map((function(t,n){return"divider"===t.type?(0,e.jsx)("div",{className:"context-menu-divider"},n):(0,e.jsx)("div",Object.assign({onClick:null!=o?void 0:function(){var e;null===(e=t.onClick)||void 0===e||e.call(t),a(n),setTimeout((function(){g.set(null),a(null)}),300)},className:"context-menu-item"+(null!=o&&o===n?" context-menu-item-selected":"")},{children:t.label}),n)}))})),"bottom"===c?(0,e.jsx)("div",{className:"context-menu-arrow-bottom context-menu-arrow-".concat(f)}):null]}))})),y=n(2474),b=n(6815),_=f.LO.box(500),w=n(8122),k=n(3144),x=n(5671),C=n(136),O=n(3668);!function(e){e[e.NONE=0]="NONE",e[e.SHIFT=1]="SHIFT",e[e.CTRL=2]="CTRL",e[e.ALT=4]="ALT",e[e.CMD=8]="CMD"}(p||(p={})),function(e){e[e.Escape=27]="Escape",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.A=65]="A",e[e.C=67]="C",e[e.D=68]="D",e[e.N=78]="N",e[e.P=80]="P",e[e.R=82]="R",e[e.Period=190]="Period",e[e.SingleQuote=222]="SingleQuote",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow"}(v||(v={}));var S=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;(0,x.Z)(this,n),r=t.call(this);for(var i=new Set,o=0,a=Object.values(e);o<a.length;o++){var s=a[o],u=(0,d.Z)(s,2)[1];i.add(u)}return r.keydownListener=function(t){if(i.has(t.keyCode)&&!function(e){return null!=e.target&&/(vscode-text-area|vscode-text-field|textarea|input)/i.test(e.target.tagName)}(t))for(var n=(t.shiftKey?p.SHIFT:0)|(t.ctrlKey?p.CTRL:0)|(t.altKey?p.ALT:0)|(t.metaKey?p.CMD:0),o=0,a=Object.entries(e);o<a.length;o++){var s=(0,d.Z)(a[o],2),u=s[0],l=s[1],c=(0,d.Z)(l,2),f=c[0];if(c[1]===t.keyCode&&f===n){r.dispatchEvent(new Event(u));break}}},document.body.addEventListener("keydown",r.keydownListener),r}return(0,k.Z)(n)}(window.EventTarget),E=function(n){var r=new S(n),i=(0,t.createContext)(r);return[function(t){var n=t.children;return(0,e.jsx)(i.Provider,Object.assign({value:r},{children:n}))},function(e,n){var r=(0,t.useContext)(i);(0,t.useEffect)((function(){return r.addEventListener(e,n),function(){return r.removeEventListener(e,n)}}),[e,n,r])},function(e){return r.dispatchEvent(new Event(e))}]}({ToggleSidebar:[p.CMD,v.Period],OpenUncommittedChangesComparisonView:[p.CMD,v.SingleQuote],OpenHeadChangesComparisonView:[p.CMD|p.SHIFT,v.SingleQuote],Escape:[p.NONE,v.Escape],SelectUpwards:[p.NONE,v.UpArrow],SelectDownwards:[p.NONE,v.DownArrow],ContinueSelectionUpwards:[p.SHIFT,v.UpArrow],ContinueSelectionDownwards:[p.SHIFT,v.DownArrow]}),j=(0,d.Z)(E,3),A=j[0],T=j[1],R=(j[2],n(51));function D(t){var n=t.className,r=t.children,i=t.width,a=t.height,s=t["aria-labelledby"],u=t["aria-describedby"],l=t.dismiss;return(0,e.jsx)("div",Object.assign({className:"modal",role:"dialog","aria-modal":!0,"aria-labelledby":s,"aria-describedby":u},{children:(0,e.jsxs)("div",Object.assign({className:"modal-contents ".concat(null!=n?n:""),style:{width:i,height:a}},{children:[null!=l?(0,e.jsx)("div",Object.assign({className:"dismiss-modal"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:l},{children:(0,e.jsx)(R.J,{icon:"x"})}))})):null,r]}))}))}var I=f.LO.box(null,{deep:!1}),N=(0,a.Pi)((function(){var n,r=I.get(),i=(0,t.useRef)(null),a=function(){(null==r?void 0:r.visible)&&(r.deferred.resolve(void 0),I.set(Object.assign(Object.assign({},r),{visible:!1})))};if(T("Escape",a),(0,t.useEffect)((function(){(null==r?void 0:r.visible)&&null!=i.current&&i.current.focus()}),[i,null==r?void 0:r.visible]),!0!==(null==r?void 0:r.visible))return null;if("confirm"===r.config.type){var s=r.config;n=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Object.assign({id:"use-modal-message"},{children:s.message})),(0,e.jsx)("div",Object.assign({className:"use-modal-buttons"},{children:s.buttons.map((function(t,n){var a="object"==typeof t?t.label:t,s="object"==typeof t&&null!=t.primary;return(0,e.jsx)(o.vD,Object.assign({appearance:s?"primary":"secondary",onClick:function(){r.deferred.resolve(t),I.set(Object.assign(Object.assign({},r),{visible:!1}))},ref:s?i:void 0},{children:a}),n)}))}))]})}else if("custom"===r.config.type){var u=r.config.component;n=(0,e.jsx)(u,{returnResultAndDismiss:function(e){r.deferred.resolve(e),I.set(Object.assign(Object.assign({},r),{visible:!1}))}})}return(0,e.jsxs)(D,Object.assign({height:"fit-content",className:"use-modal","aria-labelledby":"use-modal-title","aria-describedby":"use-modal-message",dismiss:a},{children:[(0,e.jsxs)("div",Object.assign({id:"use-modal-title"},{children:[null!=r.config.icon?(0,e.jsx)(R.J,{icon:r.config.icon,size:"M"}):null,"string"==typeof r.config.title?(0,e.jsx)("span",{children:r.config.title}):r.config.title]})),n]}))})),P=n(8262),M=n.n(P);function L(e,n,r){var i=(0,t.useCallback)((0,s.debounce)(e,n,void 0,!0),[n]);return(0,t.useEffect)((function(){return i.apply(void 0,arguments)}),r)}function Z(e,n){var r=(0,t.useRef)([]);M()(n,r.current)||(r.current=n);var i=r.current;return(0,t.useMemo)(e,i)}var z=n(4447),F=n(6287),V=n(2104);function B(e){var n=e.children,r=e.hideUntil,i=(0,t.useState)(!1),o=(0,d.Z)(i,2),a=o[0],s=o[1];return(0,t.useEffect)((function(){var e=r.getTime()-Date.now();if(e>0){s(!1);var t=setTimeout((function(){s(!0)}),e);return function(){return clearTimeout(t)}}s(!0)}),[r,s]),a?n:null}function H(t){var n=t.operation,r=t.className,i=n.getDescriptionForDisplay();return(null==i?void 0:i.description)?(0,e.jsx)("span",Object.assign({className:r},{children:i.description})):(0,e.jsx)("code",Object.assign({className:r},{children:"gt "+n.getArgs().map((function(e){if("object"==typeof e)switch(e.type){case"repo-relative-file":return e.path;case"succeedable-revset":return e.revset}return/\s/.test(e)?'"'.concat(t.long?e:(0,s.truncate)(e,30),'"'):e})).join(" ")}))}var U=(0,a.Pi)((function(){var t,n,r=V.il.get(),i=V.zV.get(),a=(0,V.xn)(),s=V.ip.get();if("success"!==(null==s?void 0:s.type))return null;var u=r.currentOperation;if(null==u)return null;var l,c,d=u.operation.getDescriptionForDisplay(),f=(0,e.jsx)(H,{operation:u.operation,className:"progress-container-command"}),h=null,p=!1;if(null==u.exitCode){l=(null==d?void 0:d.description)?f:(0,e.jsxs)(e.Fragment,{children:["Running ",f]}),c=(0,e.jsx)(R.J,{icon:"loading"}),p=null==(null==d?void 0:d.tooltip);var v=new Date(((null===(t=u.startTime)||void 0===t?void 0:t.getTime())||0)+1e4);h=(0,e.jsx)(B,Object.assign({hideUntil:v},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary","data-testid":"abort-button",disabled:u.aborting,onClick:function(){a(u.operation.id)}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:u.aborting?"loading":"stop-circle"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]}))}))}else 0===u.exitCode?(l=(0,e.jsx)("span",{children:f}),c=(0,e.jsx)(R.J,{icon:"pass","aria-label":"Command exited successfully"})):u.aborting?(l=(0,e.jsxs)(e.Fragment,{children:["Aborted ",f]}),c=(0,e.jsx)(R.J,{icon:"stop-circle","aria-label":"Command aborted"})):(l=(0,e.jsx)("span",{children:f}),c=(0,e.jsx)(R.J,{icon:"error","aria-label":"Command exited unsuccessfully"}),p=!0);return(0,e.jsx)("div",Object.assign({className:"progress-container","data-testid":"progress-container"},{children:(0,e.jsxs)(F.u,Object.assign({component:function(){var t;return(0,e.jsx)("div",Object.assign({className:"progress-command-tooltip"},{children:(null==d?void 0:d.tooltip)||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"progress-command-tooltip-command"},{children:[(0,e.jsx)("strong",{children:"Command: "}),(0,e.jsx)(H,{operation:u.operation,long:!0})]})),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Command output:"}),(0,e.jsx)("br",{}),(0,e.jsx)("pre",{children:(null===(t=u.commandOutput)||void 0===t?void 0:t.join(""))||"No output"})]})}))}},{children:[i.length>0?(0,e.jsxs)("div",Object.assign({className:"queued-operations-container","data-testid":"queued-commands"},{children:[(0,e.jsx)("strong",{children:"Next to run"}),i.map((function(t){return(0,e.jsx)("div",Object.assign({id:t.id,className:"queued-operation"},{children:(0,e.jsx)(H,{operation:t})}),t.id)}))]})):null,(0,e.jsxs)("div",Object.assign({className:"progress-container-row"},{children:[c,l]})),p?(0,e.jsx)("div",Object.assign({className:"progress-container-row"},{children:(0,e.jsx)("div",{children:null===(n=u.commandOutput)||void 0===n?void 0:n.slice(-1).map((function(t,n){return(0,e.jsx)("code",{children:t},n)}))})})):null,h]}))}))})),K=n(2982);function q(){return(0,e.jsx)("div",Object.assign({"data-testid":"loading-spinner"},{children:(0,e.jsx)(R.J,{icon:"loading",size:"L"})}))}function $(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"center-container"},{children:n}))}function Y(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"flex-row"},{children:n}))}var W=function(){function e(t){(0,x.Z)(this,e),this.trackEventName=t,this.id=(0,s.randomId)(),this.runner=s.CommandRunner.Graphite}return(0,k.Z)(e,[{key:"getStdin",value:function(){}},{key:"getDescriptionForDisplay",value:function(){}}]),e}(),G=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"CreateEmptyInitialCommit")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["internal-only","init"]}}]),n}(W);G.opName="CreateEmptyInitialCommit";var J=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"RestackOperation")).branch=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["restack","--branch",this.branch]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n){return e.info.branch===t.branch?{info:Object.assign(Object.assign({},e.info),{needsRestack:!1}),children:e.children}:{info:e.info,children:e.children}}}}]),n}(W);J.opName="restack";var Q,X=n(7762);function ee(){return window.globalGtiClientTracker}!function(e){e.REBASE_ROOT="rebase-root",e.REBASE_DESCENDANT="rebase-descendant",e.REBASE_OLD="rebase-old",e.REBASE_OPTIMISTIC_ROOT="rebase-optimistic-root",e.REBASE_OPTIMISTIC_DESCENDANT="rebase-optimistic-descendant",e.GOTO_DESTINATION="goto-destination",e.GOTO_PREVIOUS_LOCATION="goto-previous-location",e.HIDDEN_ROOT="hidden-root",e.HIDDEN_DESCENDANT="hidden-descendant",e.STACK_EDIT_ROOT="stack-edit-root",e.STACK_EDIT_DESCENDANT="stack-edit-descendant",e.NON_ACTIONABLE_COMMIT="non-actionable-commit"}(Q||(Q={}));var te=(0,f.Fl)((function(){var e=V.il.get(),t=V.zV.get();return function(e,t,n){var r,i=t.currentOperation,o=[],a=(0,X.Z)(t.operationHistory);try{for(a.s();!(r=a.n()).done;){var s=r.value;null==s||s.hasCompletedUncommittedChangesOptimisticState||null!=s.operation.makeOptimisticUncommittedChangesApplier&&o.push(s.operation.makeOptimisticUncommittedChangesApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==i||i.hasCompletedUncommittedChangesOptimisticState||null!=i.exitCode&&0!==i.exitCode||null!=i.operation.makeOptimisticUncommittedChangesApplier&&o.push(i.operation.makeOptimisticUncommittedChangesApplier.bind(i.operation));var u,l=(0,X.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticUncommittedChangesApplier&&o.push(c.makeOptimisticUncommittedChangesApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,X.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({uncommittedChanges:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(V.OR.get(),e,t)})),ne=(0,f.Fl)((function(){var e=V.il.get(),t=V.zV.get(),n=V.SC.get();return null==(null==n?void 0:n.files)?n:function(e,t,n){var r=t.currentOperation;if("loaded"!==e.state)return e;var i,o=[],a=(0,X.Z)(t.operationHistory);try{for(a.s();!(i=a.n()).done;){var s=i.value;null==s||s.hasCompletedMergeConflictsOptimisticState||null!=s.operation.makeOptimisticMergeConflictsApplier&&o.push(s.operation.makeOptimisticMergeConflictsApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==r||r.hasCompletedMergeConflictsOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticMergeConflictsApplier&&o.push(r.operation.makeOptimisticMergeConflictsApplier.bind(r.operation));var u,l=(0,X.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticMergeConflictsApplier&&o.push(c.makeOptimisticMergeConflictsApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,X.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({conflicts:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(n,e,t)})),re=(0,f.Fl)((function(){var e,t=V.lp.get(),n=[],r=V.wf.get(),i=V.il.get(),o=V.zV.get(),a=i.currentOperation,u=(0,X.Z)(i.operationHistory);try{for(u.s();!(e=u.n()).done;){var l=e.value;null==l||l.hasCompletedOptimisticState||null!=l.operation.makeOptimisticApplier&&n.push(l.operation.makeOptimisticApplier.bind(l.operation))}}catch(e){u.e(e)}finally{u.f()}null==a||a.hasCompletedOptimisticState||null!=a.exitCode&&0!==a.exitCode||null!=a.operation.makeOptimisticApplier&&n.push(a.operation.makeOptimisticApplier.bind(a.operation));var c,d=(0,X.Z)(o);try{for(d.s();!(c=d.n()).done;){var f=c.value;null!=f&&null!=f.makeOptimisticApplier&&n.push(f.makeOptimisticApplier.bind(f))}}catch(e){d.e(e)}finally{d.f()}null!=(null==r?void 0:r.makePreviewApplier)&&n.push(r.makePreviewApplier.bind(r));var h=V.ql.get(),p=V.uB.get();if(n.length){var v,g=t,m=(0,X.Z)(n);try{var y=function(){var e=v.value,t={trees:g,headCommit:h,treeMap:p},n=h,r=new Map,i=e(t);if(null==i)return"continue";var o=function e(t,o){var a=i(t,o);if(null!=(null==a?void 0:a.info)){a.info.isHead&&(n=a.info);var s=a.info,u=a.children,l=a.previewType,c=a.childPreviewType,d={info:s,previewType:l,children:u.map((function(t){return e(t,c)})).filter((function(e){return null!=e}))};return r.set(d.info.branch,a),d}};g=g.map((function(e){return o(e)})).filter(s.notEmpty),h=n,p=r};for(m.s();!(v=m.n()).done;)y()}catch(e){m.e(e)}finally{m.f()}return{trees:g,treeMap:p,headCommit:h}}return{trees:t,treeMap:p,headCommit:h}}));function ie(e){var t,n,r=V.il.get(),i=V.zV.get();return(null===(t=r.currentOperation)||void 0===t?void 0:t.operation)instanceof e&&null==(null===(n=r.currentOperation)||void 0===n?void 0:n.exitCode)?"running":i.some((function(t){return t instanceof e}))?"queued":void 0}var oe=f.LO.set([],{deep:!1}),ae=f.LO.box(void 0);(0,f.Fl)((function(){var e=oe,t=re.get().treeMap;return(0,K.Z)(e).map((function(e){var n=t.get(e);return null==n?null:n.info})).filter(s.notEmpty)}));var se=(0,f.Fl)((function(){for(var e=re.get().trees,t=(0,K.Z)(e),n=[];t.length>0;){var r=t.pop();if(!r)break;n.push(r.info),t.push.apply(t,(0,K.Z)(r.children))}return n})),ue=n(1485),le=(0,ue.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedRepoMessage",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchRepoMessage"})}))},function(e){var t=e.setSelf;return u.H.onCwdChanged((function(){return t("")}))}]}),ce=function(t){var n=t.dashed,r="M".concat(11," ").concat(-2)+"C ".concat(11," ").concat(7,", ").concat(0," ").concat(4.5,", ").concat(0," ").concat(13.5);return(0,e.jsx)("svg",Object.assign({className:"branch-indicator",width:12,height:30,xmlns:"http://www.w3.org/2000/svg"},{children:(0,e.jsx)("path",{d:r,strokeWidth:"2px",fill:"transparent","stroke-dasharray":n?"0 4 0":void 0})}))};function de(t){var n=t.children,r=t.kind;return(0,e.jsx)("div",Object.assign({className:"inline-badge badge-".concat(null!=r?r:"secondary")},{children:n}))}var fe=6e4,he=36e5,pe=24*he,ve=7*pe,ge=365*pe,me=ge/12,ye=[[42e3,"now"],[9e4,"1m"],[36e5,"m",fe],[54e5,"1h"],[pe,"h",he],[2*pe,"1d"],[7*pe,"d",pe],[1.5*ve,"1w"],[me,"w",ve],[1.5*me,"1mo"],[ge,"mo",me],[1.5*ge,"1y"],[Number.MAX_VALUE,"y",ge]],be=[[42e3,"less than a minute"],[9e4,"one minute"],[36e5,"minutes",fe],[54e5,"one hour"],[pe,"hours",he],[2*pe,"one day"],[7*pe,"days",pe],[1.5*ve,"one week"],[me,"weeks",ve],[1.5*me,"one month"],[ge,"months",me],[1.5*ge,"one year"],[Number.MAX_VALUE,"years",ge]],_e=[[42e3,"just now"],[9e4,"a minute ago"],[36e5,"minutes ago",fe],[54e5,"an hour ago"],[pe,"hours ago",he],[2*pe,"yesterday"],[7*pe,"days ago",pe],[1.5*ve,"a week ago"],[me,"weeks ago",ve],[1.5*me,"a month ago"],[ge,"months ago",me],[1.5*ge,"a year ago"],[Number.MAX_VALUE,"years ago",ge]],we=[[42e3,"just now"],[9e4,"1 minute ago"],[36e5,"minutes ago",fe],[54e5,"1 hour ago"],[pe,"hours ago",he],[2*pe,"yesterday"],[7*pe,"days ago",pe],[1.5*ve,"1 week ago"],[me,"weeks ago",ve],[1.5*me,"1 month ago"],[ge,"months ago",me],[1.5*ge,"1 year ago"],[Number.MAX_VALUE,"years ago",ge]];function ke(e,t){var n=e,r=t.reference;n instanceof Date&&(n=n.getTime()),r||(r=(new Date).getTime()),r instanceof Date&&(r=r.getTime());var i,o=r-n,a=t.useRelativeForm?be:t.useShortVariant?ye:t.useNumbersOnly?we:_e,s=(0,X.Z)(a);try{for(s.s();!(i=s.n()).done;){var u=(0,d.Z)(i.value,3),l=u[0],c=u[1],f=u[2];if(o<l)return"number"==typeof f?Math.round(o/f)+(t.useShortVariant?"":" ")+c:c}}catch(e){s.e(e)}finally{s.f()}throw new Error("This should never be reached.")}function xe(t){var n=t.date,r=t.reference,i=t.useShortVariant,o=t.useNumbersOnly,a=t.useRelativeForm;return(0,e.jsx)(e.Fragment,{children:ke(n,{reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:a})})}var Ce=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"DeleteBranchOperation")).branch=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["delete",this.branch,"--force"]}},{key:"makePreviewApplier",value:function(e){var t=this;return function(e,n){return e.info.branch===t.branch?{info:e.info,children:e.children,previewType:Q.HIDDEN_ROOT,childPreviewType:Q.HIDDEN_DESCENDANT}:{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n,r){return e.info.branch===t.branch?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(W);Ce.opName="DeleteBranch";var Oe=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"DownstackSubmitOperation")).branch=e,i.options=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){var e,t,n=["submit","--branch",this.branch];return(null===(e=this.options)||void 0===e?void 0:e.draft)&&n.push("--draft"),(null===(t=this.options)||void 0===t?void 0:t.publish)&&n.push("--publish"),n}}]),n}(W);Oe.opName="downstack submit";var Se=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"GotoOperation")).destination=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["checkout",this.destination]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this,r=null===(t=e.headCommit)||void 0===t?void 0:t.branch;if(r!==this.destination)return function(e,t){return e.info.branch===n.destination?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children,previewType:Q.GOTO_DESTINATION}:e.info.branch===r?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:e.children,previewType:Q.GOTO_PREVIOUS_LOCATION}:{info:e.info,children:e.children}}}}]),n}(W);Se.opName="Goto";var Ee=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"HideOperation")).source=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["untrack","--force",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this;return function(e,n){return e.info.branch===t.source?{info:e.info,children:e.children,previewType:Q.HIDDEN_ROOT,childPreviewType:Q.HIDDEN_DESCENDANT}:{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.source))return function(e,n,r){return e.info.branch===t.source?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(W);Ee.opName="Hide";var je=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"PopOperation")).originalHeadCommit=e,i.files=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["pop"]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this;if((null===(t=e.headCommit)||void 0===t?void 0:t.branch)===this.originalHeadCommit.branch)return function(e,t){return e.info.branch===n.originalHeadCommit.branch?{info:null}:n.originalHeadCommit.parents[0]===e.info.branch?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children}:{info:e.info,children:e.children,previewType:t}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this.files,n=new Set(e.uncommittedChanges.map((function(e){return e.path})));if(!t.every((function(e){return n.has(e.path)})))return function(e){var r=t.filter((function(e){return!n.has(e.path)}));return[].concat((0,K.Z)(e),(0,K.Z)(r))}}}]),n}(W);je.opName="Pop";var Ae=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"RebaseOperation")).source=e,i.destination=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["move","--onto",this.destination,"--source",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:Q.REBASE_ROOT,childPreviewType:Q.REBASE_DESCENDANT}:{info:e.info,children:e.children,previewType:Q.REBASE_OLD,childPreviewType:Q.REBASE_OLD}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,K.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n,o){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:Q.REBASE_OPTIMISTIC_ROOT,childPreviewType:Q.REBASE_OPTIMISTIC_DESCENDANT}:{info:null}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,K.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:o}}}}}]),n}(W);Ae.opName="Rebase";var Te=n(5729);function Re(t){var n=t.href,r=t.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["href","children"]),a=function(e){"keyup"===e.type&&"Enter"!==e.key||(n&&z.J.openExternalLink(n),e.preventDefault(),e.stopPropagation())};return(0,e.jsx)(o.Np,Object.assign({href:n,tabIndex:0,onKeyUp:a,onClick:a},i,{children:r}))}var De=n(7338),Ie=function(){function t(n){var r=this;(0,x.Z)(this,t),this.system=n,this.RepoInfo=function(){return(0,e.jsxs)("span",{children:["github.com"!==r.system.hostname?r.system.hostname:""," ",r.system.owner,"/",r.system.repo]})}}return(0,k.Z)(t,[{key:"DiffBadgeContent",value:function(t){var n=t.diff,r=t.children;return(0,e.jsx)("div",Object.assign({className:"github-diff-status"+((null==n?void 0:n.state)?" github-diff-status-".concat(n.state):"")},{children:(0,e.jsxs)(F.u,Object.assign({title:"Open #".concat(null==n?void 0:n.number," in Graphite"),delayMs:500},{children:[n&&(0,e.jsx)(R.J,{icon:Ne(n.state)}),r]}))}))}},{key:"formatDiffNumber",value:function(e){return"#".concat(e)}},{key:"isDiffClosed",value:function(e){return"CLOSED"===e.state}}]),t}();function Ne(e){switch(e){case"ERROR":return"error";case"OPEN":case"DRAFT":default:return"git-pull-request";case"MERGED":return"git-merge";case"CLOSED":return"git-pull-request-closed"}}var Pe=(0,f.Fl)((function(){var e=V.ip.get();return"success"!==(null==e?void 0:e.type)?null:"github"===e.codeReviewSystem.type?new Ie(e.codeReviewSystem):null})),Me=(0,De.N)({genKey:function(e){return e||"__UNDEFINED__"},genValue:function(e){return(0,f.Fl)((function(){var t,n=Ze.get();return null==n?{value:void 0}:n.error?{error:n.error}:null==e?{value:void 0}:{value:null===(t=n.value)||void 0===t?void 0:t.get(e)}}))}}),Le=(0,ue.u)({default:{value:null},effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedDiffSummaries",(function(e){t(e.summaries)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchDiffSummaries"})}))}]}),Ze=((0,f.Fl)((function(){var e=Le.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.branchName,e]})))}})),(0,f.Fl)((function(){var e=Le.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.number,e]})))}}))),ze=((0,ue.u)({default:document.hasFocus()?"focused":document.visibilityState,setter:(0,s.debounce)((function(e){u.H.postMessage({type:"pageVisibility",state:e})}),50),effects:[function(e){var t=e.setSelf,n=function(){t(document.hasFocus()?"focused":document.visibilityState)};return window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),window.removeEventListener("blur",n)}}]}),(0,a.Pi)((function(n){var r=n.diffId,i=Pe.get();return null==i?null:(0,e.jsx)(He,Object.assign({provider:i,diffId:r},{children:(0,e.jsx)(t.Suspense,Object.assign({fallback:(0,e.jsx)(Ve,{provider:i})},{children:(0,e.jsx)(Be,{diffId:r,provider:i})}))}))}))),Fe=(0,a.Pi)((function(t){var n=t.diff,r=t.children,i=t.url,o=t.provider,a=h((function(){return[{label:(0,e.jsxs)(e.Fragment,{children:['Copy PR number "',null==n?void 0:n.number,'"']}),onClick:function(){var e;return z.J.clipboardCopy(null!==(e=null==n?void 0:n.number)&&void 0!==e?e:"")}}]}));return(0,e.jsx)(Re,Object.assign({href:i,className:"diff-badge github-diff-badge",onContextMenu:n?a:void 0},{children:(0,e.jsx)(o.DiffBadgeContent,{diff:n,children:r})}))}));function Ve(t){var n=t.provider;return(0,e.jsx)("span",Object.assign({className:"diff-spinner","data-testid":"diff-spinner"},{children:(0,e.jsx)(Fe,Object.assign({provider:n},{children:(0,e.jsx)(R.J,{icon:"loading"})}))}))}var Be=(0,a.Pi)((function(t){var n=t.diffId,r=t.provider,i=V.ip.get(),o=Me(n).get();if(o.error||null!=i&&"success"!==(null==i?void 0:i.type))return(0,e.jsx)(Ue,{number:r.formatDiffNumber(n),provider:r});if(null==(null==o?void 0:o.value)||null==i)return(0,e.jsx)(Ve,{provider:r});if("none"===i.codeReviewSystem.type)return null;var a=o.value;return(0,e.jsx)("div",Object.assign({className:"diff-info github-diff-info","data-testid":"github-diff-info"},{children:(0,e.jsx)(Fe,{provider:r,diff:a,url:"".concat(i.profile.appUrl,"/github/pr/").concat(i.codeReviewSystem.owner,"/").concat(i.codeReviewSystem.repo,"/").concat(a.number)})}))})),He=function(t){(0,C.Z)(r,t);var n=(0,O.Z)(r);function r(){var e;return(0,x.Z)(this,r),(e=n.apply(this,arguments)).state={error:null},e}return(0,k.Z)(r,[{key:"render",value:function(){return null!=this.state.error?(0,e.jsx)(Ue,{provider:this.props.provider,number:this.props.provider.formatDiffNumber(this.props.diffId)}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),r}(t.Component);function Ue(t){var n=t.number,r=t.provider;return(0,e.jsxs)("span",Object.assign({className:"diff-error diff-info","data-testid":"github-error"},{children:[(0,e.jsx)(Fe,Object.assign({provider:r},{children:(0,e.jsx)(R.J,{icon:"error"})}))," ",n]}))}var Ke=(0,De.N)({genKey:function(e){return e},genValue:function(e){return(0,ue.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFiles",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFiles",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFiles",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),qe=n(5288),$e=n(7757),Ye=n.n($e),We=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"AbortMergeOperation")).conflicts=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["rebase","--abort"]}}]),n}(W);We.opName="Abort";var Ge=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"AddAllOperation")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["add","--all"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:Je(e.status)}}))}}}]),n}(W);function Je(e){return["UNTRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"TRACKED_ADD":["UNTRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"TRACKED_REMOVE":["UNTRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"TRACKED_MODIFY":["UNTRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"TRACKED_COPY":["UNTRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"TRACKED_RENAME":e}Ge.opName="AddAll";var Qe=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"AddOperation")).filePath=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["add",{type:"repo-relative-file",path:this.filePath}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:Je(e.status)}:e}))}}}]),n}(W);Qe.opName="Add";var Xe,et=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"AmendOperation")).method=e,i.message=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){var e,t;if("commit"===this.method)return["modify","--commit","--message",(null===(e=this.message)||void 0===e?void 0:e.title)||"Untitled commit"];var n=null===(t=this.message)||void 0===t?void 0:t.title;return["modify"].concat((0,K.Z)(n?["--message",n]:[]))}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.headCommit;if(null!=this.message){var r=this.message,i=r.title,o=r.description;if((null==n?void 0:n.title)!==i||(null==n?void 0:n.description)!==o)return function(e,n){if(e.info.isHead){if(!t.message)throw new Error("Missing message");return{info:Object.assign(Object.assign({},e.info),{title:i,description:null!=o?o:""}),children:e.children}}return{info:e.info,children:e.children}}}}}]),n}(W);et.opName="Amend",function(e){e.theirs="theirs",e.ours="ours"}(Xe||(Xe={}));var tt=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"AutoResolveOperation")).filePath=e,i.tool=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case Xe.theirs:return["restore","--theirs","--",{type:"repo-relative-file",path:this.filePath}];case Xe.ours:return["restore","--ours","--",{type:"repo-relative-file",path:this.filePath}]}}}]),n}(W);tt.opName="AutoResolve";var nt=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"CommitOperation")).message=e,i.originalHeadHash=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["create","--message","".concat(this.message.title.split(/\n+/,1))]}},{key:"makeOptimisticApplier",value:function(e){var t,n,r=this,i=e.headCommit;if((null==i?void 0:i.branch)===this.originalHeadHash){var o=this.message.title,a=this.message.description,s=o.toLocaleLowerCase(),u={children:[],info:{author:null!==(t=null==i?void 0:i.author)&&void 0!==t?t:"",description:a,title:o,isHead:!0,parents:[null!==(n=null==i?void 0:i.branch)&&void 0!==n?n:""],branch:s,partOfTrunk:!1,date:(new Date).toISOString(),needsRestack:!1,needsSubmit:!0}};return function(e,t){return e.info.branch===r.originalHeadHash?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:[].concat((0,K.Z)(e.children),[u])}:{info:e.info,children:e.children}}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}}]),n}(W);nt.opName="Commit";var rt=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"ContinueMergeOperation")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["continue"]}}]),n}(W);rt.opName="Continue";var it=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"DiscardOperation")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["reset","-q","--hard"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["TRACKED_MODIFY","TRACKED_ADD","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME","UNTRACKED_REMOVE"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(W);it.opName="Discard";var ot,at=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"PurgeOperation")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["clean","--force"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["UNTRACKED_ADD"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(W);at.opName="Purge",function(e){e.mark="mark",e.unmark="unmark"}(ot||(ot={}));var st=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r){var i;return(0,x.Z)(this,n),(i=t.call(this,"ResolveOperation")).filePath=e,i.tool=r,i}return(0,k.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case ot.mark:return["add",{type:"repo-relative-file",path:this.filePath}];case ot.unmark:return["restore","--merge","--",{type:"repo-relative-file",path:this.filePath}]}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&"UNRESOLVED"!==e.status})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:"RESOLVED"}:e}))}}},{key:"makeOptimisticMergeConflictsApplier",value:function(e){var t,n,r=this;if(!0!==(null===(n=null===(t=e.conflicts)||void 0===t?void 0:t.files)||void 0===n?void 0:n.some((function(e){return e.path===r.filePath&&"UNRESOLVED"!==e.status}))))return function(e){var t,n;return"loaded"!==(null==e?void 0:e.state)?e:Object.assign(Object.assign({},e),{files:null!==(n=null===(t=null==e?void 0:e.files)||void 0===t?void 0:t.map((function(e){return e.path===r.filePath?{path:e.path,status:"RESOLVED"}:e})))&&void 0!==n?n:[]})}}}]),n}(W);st.opName="Resolve";var ut=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"RevertOperation")).file=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["restore","-SW",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=new Set(this.file);if(!e.uncommittedChanges.every((function(e){return!t.has(e.path)})))return function(e){return e.filter((function(e){return!t.has(e.path)}))}}}]),n}(W);ut.opName="Revert";var lt=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"SoftResetAllOperation")}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["reset","-q"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:ct(e.status)}}))}}}]),n}(W);function ct(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}lt.opName="SoftResetAll";var dt=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"SoftResetOperation")).file=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["reset","--",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.file&&!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.file?{path:e.path,status:ft(e.status)}:e}))}}}]),n}(W);function ft(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}dt.opName="SoftReset";var ht=n(8194),pt=(0,ht.X)({config:"gti.changedFilesDisplayType",default:"short"}),vt={short:{icon:"list-selection",label:(0,e.jsx)(e.Fragment,{children:"Short file names"})},fullPaths:{icon:"menu",label:(0,e.jsx)(e.Fragment,{children:"Full file paths"})},tree:{icon:"list-tree",label:(0,e.jsx)(e.Fragment,{children:"Tree"})},fish:{icon:"whole-word",label:(0,e.jsx)(e.Fragment,{children:"One-letter directories"})}},gt=Object.entries(vt),mt=(0,a.Pi)((function(){var t=pt.get(),n=gt.map((function(n){var r=(0,d.Z)(n,2),i=r[0],o=r[1];return{label:(0,e.jsxs)(Y,{children:[(0,e.jsx)(R.J,{icon:t===i?"check":"blank",slot:"start"}),(0,e.jsx)(R.J,{icon:o.icon,slot:"start"}),o.label]}),onClick:function(){return pt.set(i)}}})),r=h((function(){return n}));return(0,e.jsx)(F.u,Object.assign({title:"Change how file paths are displayed"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",className:"changed-file-display-type-picker","data-testid":"changed-file-display-type-picker",onClick:r},{children:(0,e.jsx)(R.J,{icon:vt[t].icon})}))}))}));function yt(t){var n=t.comparison;return(0,e.jsxs)(o.vD,Object.assign({"data-testid":"open-comparison-view-button-".concat(n.type),appearance:"icon",onClick:function(){qe._.set({comparison:n,visible:!0})}},{children:[(0,e.jsx)(R.J,{icon:"files",slot:"start"}),bt(n)]}))}function bt(e){switch(e.type){case s.ComparisonType.UncommittedChanges:return"View Changes";case s.ComparisonType.HeadChanges:return"View Head Changes";case s.ComparisonType.StackChanges:return"View Stack Changes";case s.ComparisonType.Committed:return"View Changes in ".concat(e.hash)}}var _t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},wt={TRACKED_MODIFY:0,PARTIALLY_TRACKED_MODIFY:1,TRACKED_RENAME:2,PARTIALLY_TRACKED_RENAME:3,TRACKED_ADD:4,PARTIALLY_TRACKED_ADD:5,TRACKED_COPY:6,PARTIALLY_TRACKED_COPY:7,TRACKED_REMOVE:8,PARTIALLY_TRACKED_REMOVE:9,UNTRACKED_MODIFY:10,UNTRACKED_REMOVE:11,UNTRACKED_ADD:11,UNTRACKED_RENAME:12,UNTRACKED_COPY:13,UNRESOLVED:14,RESOLVED:15},kt=(0,a.Pi)((function(t){var n=pt.get(),r=t.files,i=_t(t,["files"]),o=Z((function(){return function(e){var t=(0,s.minimalDisambiguousPaths)(e.map((function(e){return e.path}))),n=new Set(e.map((function(e){return e.copy})).filter(s.notEmpty));return e.map((function(e,n){var r,i,o=t[n],a="".concat(e.path,"\n\n").concat(Rt[e.status]),u=e.status;if(null!=e.copy){var l=(0,s.minimalDisambiguousPaths)([e.copy,e.path]),c=(0,d.Z)(l,2),f=c[0],h=c[1];o="".concat(f," → ").concat(h),["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME","UNTRACKED_RENAME"].includes(e.status)?(i=e.copy,a="".concat(a,"\n\nThis file was renamed from ").concat(e.copy),u=e.status):["TRACKED_COPY","PARTIALLY_TRACKED_COPY","UNTRACKED_COPY"].includes(e.status)&&(r=e.copy,a="".concat(a,"\n\nThis file was copied from ").concat(e.copy),u=e.status)}return{path:e.path,label:o,status:e.status,visualStatus:u,copiedFrom:r,renamedFrom:i,tooltip:a}})).filter((function(e){return!("TRACKED_REMOVE"===e.status&&n.has(e.path))})).sort((function(e,t){return e.visualStatus===t.visualStatus?e.path.localeCompare(t.path):wt[e.visualStatus]-wt[t.visualStatus]}))}(r)}),[r]);return(0,e.jsx)("div",Object.assign({className:"changed-files"},{children:"tree"===n?(0,e.jsx)(Ct,Object.assign({},i,{files:o,displayType:n})):(0,e.jsx)(xt,Object.assign({},i,{files:o,displayType:n}))}))}));function xt(t){var n=t.files,r=_t(t,["files"]);return(0,e.jsx)(e.Fragment,{children:n.map((function(t){return(0,e.jsx)(Ot,Object.assign({},r,{file:t}),t.path)}))})}var Ct=(0,a.Pi)((function(n){var r=n.files,i=_t(n,["files"]),a=Z((function(){return e=Object.fromEntries(r.map((function(e){return[e.path,e]}))),function e(t){var n,r=new Map,i=new Map,o=(0,X.Z)(t.entries());try{for(o.s();!(n=o.n()).done;){var a=(0,d.Z)(n.value,2),s=a[0],u=a[1],l=s.split("/",1),c=(0,d.Z)(l,1)[0],f=s.slice(c.length+1);if(""===f)i.set(c,u);else if(r.has(c)){var h=r.get(c);null==h||h.set(f,u)}else r.set(c,new Map([[f,u]]))}}catch(e){o.e(e)}finally{o.f()}var p,v=new Map,g=(0,X.Z)(r.entries());try{for(g.s();!(p=g.n()).done;){var m=(0,d.Z)(p.value,2),y=m[0],b=e(m[1]);if(1===b.size){var _=(0,d.Z)(b.entries().next().value,2),w=_[0],k=_[1];k instanceof Map?v.set(y+"/"+w,k):v.set(y,b)}else v.set(y,b)}}catch(e){g.e(e)}finally{g.f()}var x,C=(0,X.Z)(i.entries());try{for(C.s();!(x=C.n()).done;){var O=(0,d.Z)(x.value,2),S=O[0],E=O[1];v.set(S,E)}}catch(e){C.e(e)}finally{C.f()}return v}(new Map(Object.entries(e)));var e}),[r]),s=(0,t.useState)(new Set),u=(0,d.Z)(s,2),l=u[0],c=u[1];return function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,e.jsx)(e.Fragment,{children:(0,K.Z)(n.entries()).map((function(n){var a=(0,d.Z)(n,2),s=a[0],u=a[1],f="".concat(r,"/").concat(s),h=l.has(f);return(0,e.jsx)("div",Object.assign({className:"file-tree-level"},{children:u instanceof Map?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"file-tree-folder-path"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){c((function(e){return h?new Set((0,K.Z)(e).filter((function(e){return e!==f}))):new Set([].concat((0,K.Z)(e),[f]))}))}},{children:[(0,e.jsx)(R.J,{icon:h?"chevron-right":"chevron-down",slot:"start"}),s]}))})),h?null:t(u,f)]}):(0,e.jsx)(Ot,Object.assign({},i,{file:u}),u.path)}),f)}))})}(a)})),Ot=(0,a.Pi)((function(t){var n=t.file,r=t.displayType,i=t.comparison,a=(0,d.Z)(Dt[n.visualStatus],3),s=a[0],u=a[1],l=a[2],c=function(e){switch(e.status){case"UNTRACKED_ADD":case"UNTRACKED_MODIFY":case"UNTRACKED_REMOVE":case"UNTRACKED_COPY":case"UNTRACKED_RENAME":return{tooltip:"Stage changes",operation:function(){return new Qe(e.path)}};case"PARTIALLY_TRACKED_ADD":case"PARTIALLY_TRACKED_MODIFY":case"PARTIALLY_TRACKED_REMOVE":case"PARTIALLY_TRACKED_COPY":case"PARTIALLY_TRACKED_RENAME":return{tooltip:"Stage all changes",operation:function(){return new Qe(e.path)}};case"TRACKED_MODIFY":case"TRACKED_COPY":case"TRACKED_RENAME":return{tooltip:"Unstage changes",operation:function(){return new dt(e.path)}};case"TRACKED_ADD":return{tooltip:"Unstage addition",operation:function(){return new dt(e.path)}};case"TRACKED_REMOVE":return{tooltip:"Unstage removal",operation:function(){return new dt(e.path)}};case"RESOLVED":return{tooltip:"Mark as unresolved",operation:function(){return new st(e.path,ot.unmark)}};case"UNRESOLVED":return{tooltip:"This file needs to be resolved",operation:null}}}(n),f=c.operation,h=c.tooltip,p=(0,V.Qz)();return(0,e.jsxs)("div",Object.assign({className:"changed-file file-".concat(s),"data-testid":"changed-file-".concat(n.path),tabIndex:0,onKeyPress:function(e){"Enter"===e.key&&z.J.openFile(n.path)}},{children:[(0,e.jsx)(F.u,Object.assign({delayMs:F.cf,title:h},{children:(0,e.jsx)(o.QJ,{className:f?"changed-file-checkbox-clickable":"",checked:"full"===l||"partial"===l,indeterminate:"partial"===l,readOnly:!0,onClick:function(){var e=null==f?void 0:f();e&&p(e)}})})),(0,e.jsxs)("span",Object.assign({className:"changed-file-path",onClick:function(){z.J.openFile(n.path)}},{children:[(0,e.jsx)(R.J,{icon:u}),(0,e.jsx)(F.u,Object.assign({title:n.tooltip,delayMs:2e3,placement:"right"},{children:(0,e.jsx)("span",Object.assign({className:"changed-file-path-text"},{children:"fish"===r?n.path.split("/").map((function(e,t,n){return t===n.length-1?e:e[0]})).join("/"):"fullPaths"===r?n.path:"tree"===r?n.path.slice(n.path.lastIndexOf("/")+1):n.label}))}))]})),(0,e.jsx)(Tt,{file:n,comparison:i})]}),n.path)})),St=(0,a.Pi)((function(n){var r,i,a,u=n.place,l=te.get(),c=V.p7.get(),d=V.ql.get(),f=V.ip.get(),h=ne.get(),p=(0,t.useRef)(null),v=(0,V.Qz)(),g=(0,t.useRef)(null);if(c)return(0,e.jsx)(b.Wq,{title:"Failed to fetch uncommitted changes",error:c});if(0===l.length)return null;var m=null!==(i=null===(r=null==h?void 0:h.files)||void 0===r?void 0:r.every((function(e){return"RESOLVED"===e.status})))&&void 0!==i&&i,y=["UNTRACKED_ADD","UNTRACKED_REMOVE","UNTRACKED_MODIFY","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],_=l.some((function(e){return y.includes(e.status)}))?(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){v(new Ge)}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:"expand-all"}),(0,e.jsx)(e.Fragment,{children:"Stage all file changes"})]}),"allall"):null,w=["TRACKED_ADD","TRACKED_REMOVE","TRACKED_MODIFY","TRACKED_COPY","TRACKED_RENAME"],k=l.some((function(e){return w.includes(e.status)})),x=k?(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){v(new lt)}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:"close-all"}),(0,e.jsx)(e.Fragment,{children:"Unstage all file changes"})]}),"reset"):null,C=null!=h||"main"!==u||!k;return(0,e.jsxs)("div",Object.assign({className:"uncommitted-changes"},{children:[null!=h?(0,e.jsxs)("div",Object.assign({className:"conflicts-header"},{children:[(0,e.jsx)("strong",{children:m?(0,e.jsx)(e.Fragment,{children:"All conflicts resolved"}):(0,e.jsx)(e.Fragment,{children:"Unresolved merge conflicts"})}),"loading"===h.state?(0,e.jsx)("div",Object.assign({"data-testid":"merge-conflicts-spinner"},{children:(0,e.jsx)(R.J,{icon:"loading"})})):null,m?null:(0,e.jsx)(e.Fragment,{children:"Resolve conflicts to continue"})]})):null,(0,e.jsx)("div",Object.assign({className:"button-row"},{children:null!=h?(0,e.jsx)(Et,{allConflictsResolved:m,conflicts:h}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(mt,{}),(0,e.jsx)(yt,{comparison:{type:"amend sidebar"===u?s.ComparisonType.HeadChanges:s.ComparisonType.UncommittedChanges}}),_,x,(0,e.jsx)(F.u,Object.assign({delayMs:F.cf,title:"Discard ".concat(l.length," uncommitted change").concat(1===l.length?"":"s",", including untracked files.\n\nNote: Changes will be irreversably lost.")},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",onClick:function(){var e=l.map((function(e){return e.path}));z.J.confirm("Are you sure you want to discard your ".concat(e.length," selected change").concat(1===e.length?"":"s","? Discarded changes cannot be recovered.")).then((function(e){e&&(v(new it),v(new at))}))}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:"trashcan"}),(0,e.jsx)(e.Fragment,{children:"Discard"})]}))}))]})})),null!=h?(0,e.jsx)(kt,{files:null!==(a=h.files)&&void 0!==a?a:[],comparison:{type:s.ComparisonType.UncommittedChanges}}):(0,e.jsx)(kt,{files:l,comparison:{type:s.ComparisonType.UncommittedChanges}}),C?null:(0,e.jsxs)("div",Object.assign({className:"button-rows"},{children:[(0,e.jsx)("div",Object.assign({className:"button-row"},{children:(0,e.jsxs)("span",Object.assign({className:"quick-commit-inputs"},{children:[(0,e.jsxs)(o.vD,Object.assign({ref:g,appearance:"icon","data-testid":"quick-commit-button",onClick:function(){var e,t,n=(null===(e=p.current)||void 0===e?void 0:e.value)||"Temporary Commit";v(new nt(Object.assign(Object.assign({},{title:"",description:""}),{title:n}),null!==(t=null==d?void 0:d.branch)&&void 0!==t?t:""))}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:"plus"}),(0,e.jsx)(e.Fragment,{children:"Create a new branch"})]})),(0,e.jsx)(o.OG,{"data-testid":"quick-commit-title",placeholder:"Title",ref:p,onKeyDown:function(e){var t;return"Enter"===e.key&&(null===(t=g.current)||void 0===t?void 0:t.click())}})]}))})),(null==d?void 0:d.partOfTrunk)?null:(0,e.jsx)("div",Object.assign({className:"button-row"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"uncommitted-changes-quick-amend-button",onClick:function(){v(new et("success"===(null==f?void 0:f.type)?f.preferredBranchEdit:"amend"))}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:"debug-step-into"}),(0,e.jsx)(e.Fragment,{children:"Modify the current branch"})]}))}))]}))]}))})),Et=(0,a.Pi)((function(t){var n=t.conflicts,r=t.allConflictsResolved,i=(0,V.Qz)(),a=V.il.get().currentOperation,s=(null==a?void 0:a.operation)instanceof rt&&0===a.exitCode,u=(null==a?void 0:a.operation)instanceof We&&0===a.exitCode,l=!!ie(rt),c=!!ie(We),d=l||c||s||u;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:r?"primary":"icon",disabled:!r||d,"data-testid":"conflict-continue-button",onClick:function(){i(new rt)}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:l?"loading":"debug-continue"}),(0,e.jsx)(e.Fragment,{children:"Continue"})]}),"continue"),(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",disabled:d,onClick:function(){i(new We(n))}},{children:[(0,e.jsx)(R.J,{slot:"start",icon:c?"loading":"circle-slash"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]}),"abort")]})})),jt=new Set(["TRACKED_MODIFY","UNTRACKED_MODIFY","TRACKED_REMOVE","UNTRACKED_REMOVE"]),At=new Set(["UNRESOLVED","RESOLVED"]),Tt=(0,a.Pi)((function(t){var n=this,r=t.comparison,i=t.file,a=(0,V.Qz)(),l=[];return null==z.J.openDiff||At.has(i.status)||l.push((0,e.jsx)(F.u,Object.assign({title:"Open diff view",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(){var e;null===(e=z.J.openDiff)||void 0===e||e.call(z.J,i.path,r)}},{children:(0,e.jsx)(R.J,{icon:"git-pull-request-go-to-changes"})}))}),"diff")),jt.has(i.status)&&r.type===s.ComparisonType.UncommittedChanges&&l.push((0,e.jsx)(F.u,Object.assign({title:"Revert back to last commit",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(){z.J.confirm("Are you sure you want to revert ".concat(i.path,"?")).then((function(e){e&&a(new ut(i.path))}))}},{children:(0,e.jsx)(R.J,{icon:"discard"})}),i.path)}),"revert")),r.type===s.ComparisonType.UncommittedChanges&&("UNTRACKED_ADD"===i.status?l.push((0,e.jsx)(F.u,Object.assign({title:"Remove this file from the filesystem",delayMs:1e3},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(n,0,void 0,Ye().mark((function e(){return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z.J.confirm("Are you sure you want to delete ".concat(i.path,"?"));case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:u.H.postMessage({type:"deleteFile",filePath:i.path});case 6:case"end":return e.stop()}}),e)})))}},{children:(0,e.jsx)(R.J,{icon:"trash"})}),i.path)}),"remove")):"RESOLVED"===i.status?l.push((0,e.jsx)(F.u,Object.assign({title:"Mark as unresolved"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return a(new st(i.path,ot.unmark))}},{children:(0,e.jsx)(R.J,{icon:"circle-slash"})}),i.path)}),"unresolve-mark")):"UNRESOLVED"===i.status&&l.push((0,e.jsx)(F.u,Object.assign({title:"Mark as resolved"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover","data-testid":"file-action-resolve",appearance:"icon",onClick:function(){return a(new st(i.path,ot.mark))}},{children:(0,e.jsx)(R.J,{icon:"check"})}),i.path)}),"resolve-mark"),(0,e.jsx)(F.u,Object.assign({title:"Take local version"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return a(new tt(i.path,Xe.ours))}},{children:(0,e.jsx)(R.J,{icon:"fold-up"})}),i.path)}),"resolve-local"),(0,e.jsx)(F.u,Object.assign({title:"Take incoming version"},{children:(0,e.jsx)(o.vD,Object.assign({className:"file-show-on-hover",appearance:"icon",onClick:function(){return a(new tt(i.path,Xe.theirs))}},{children:(0,e.jsx)(R.J,{icon:"fold-down"})}),i.path)}),"resolve-other"))),(0,e.jsx)("div",Object.assign({className:"file-actions","data-testid":"file-actions"},{children:l}))})),Rt={TRACKED_ADD:"Added (tracked)",TRACKED_MODIFY:"Modified (staged)",TRACKED_REMOVE:"Removed (staged)",PARTIALLY_TRACKED_ADD:"Added (partially tracked)",PARTIALLY_TRACKED_MODIFY:"Modified (partially staged)",PARTIALLY_TRACKED_REMOVE:"Removed (partially staged)",UNTRACKED_MODIFY:"Modified (unstaged)",UNTRACKED_ADD:"Added (untracked)",UNTRACKED_REMOVE:"Removed (unstaged)",UNRESOLVED:"Unresolved",RESOLVED:"Resolved",TRACKED_RENAME:"Renamed (staged)",PARTIALLY_TRACKED_RENAME:"Renamed and modified (partially staged)",UNTRACKED_RENAME:"Renamed (unstaged)",TRACKED_COPY:"Copied (tracked)",PARTIALLY_TRACKED_COPY:"Copied and modified (tracked and partially staged)",UNTRACKED_COPY:"Copied (untracked)"},Dt={TRACKED_ADD:["added","diff-added","full"],TRACKED_MODIFY:["modified","diff-modified","full"],TRACKED_REMOVE:["removed","diff-removed","full"],PARTIALLY_TRACKED_ADD:["added","diff-added","partial"],PARTIALLY_TRACKED_MODIFY:["modified","diff-modified","partial"],PARTIALLY_TRACKED_REMOVE:["removed","diff-removed","partial"],UNTRACKED_MODIFY:["modified","diff-modified","empty"],UNTRACKED_ADD:["ignored","question","empty"],UNTRACKED_REMOVE:["ignored","warning","empty"],UNRESOLVED:["unresolved","diff-ignored","empty"],RESOLVED:["resolved","pass","full"],TRACKED_RENAME:["modified","diff-renamed","full"],PARTIALLY_TRACKED_RENAME:["modified","diff-renamed","partial"],UNTRACKED_RENAME:["modified","diff-renamed","empty"],TRACKED_COPY:["added","diff-added","full"],PARTIALLY_TRACKED_COPY:["added","diff-added","partial"],UNTRACKED_COPY:["added","diff-added","empty"]},It=f.LO.set();function Nt(n){var r=n.toHighlight,i=n.children,o=n.isSpan,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["toHighlight","children","isSpan"]),s=(0,t.useRef)(null),u=(0,t.useState)(!1),l=(0,d.Z)(u,2),c=l[0],h=l[1];return(0,t.useLayoutEffect)((function(){var e=function(){(0,f.z)((function(){It.clear(),r.map((function(e){return It.add(e.branch)}))})),h(!0)},t=function(){It.clear(),h(!1)},n=s.current;return null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t),function(){null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)}}),[r]),(0,t.useEffect)((function(){return function(){c&&It.clear()}}),[c]),o?(0,e.jsx)("span",Object.assign({},a,{ref:s},{children:i})):(0,e.jsx)("div",Object.assign({},a,{ref:s},{children:i}))}function Pt(e){switch(e){case Q.REBASE_DESCENDANT:case Q.REBASE_OLD:case Q.HIDDEN_ROOT:case Q.HIDDEN_DESCENDANT:return!1;case Q.REBASE_ROOT:case Q.REBASE_OPTIMISTIC_DESCENDANT:case Q.REBASE_OPTIMISTIC_ROOT:default:return!0}}function Mt(e){if(!e)return[];var t=V.uB.get().get(e);if(!t)return[];var n=t.info;return n.partOfTrunk||!n.needsSubmit&&n.pr?[]:[].concat((0,K.Z)(Mt(t.info.parents[0])),[t.info])}var Lt=(0,t.memo)((0,a.Pi)((function(n){var r=n.commit,i=n.previewType,a=n.hasChildren,u=r.partOfTrunk,l=ne.get(),c=(0,V.wH)(),f=(0,V.Qz)(),p=It.has(r.branch),v=function(e){var n=oe,r=(0,t.useCallback)((function(t){var r;if(!(null===(r=V.uB.get().get(e))||void 0===r?void 0:r.info.partOfTrunk)){if(t.shiftKey){var i=ae.get(),o=se.get();if(null!=o&&null!=i){for(var a=o.findIndex((function(e){return e.branch===i})),s=o.findIndex((function(t){return t.branch===e})),u=a>s?[s,a]:[a,s],l=(0,d.Z)(u,2),c=l[0],f=l[1],h=o.slice(c,f+1),p=0,v=(0,K.Z)(h.filter((function(e){return e.partOfTrunk})).map((function(e){return e.branch})));p<v.length;p++){var g=v[p];n.add(g)}return void ae.set(e)}}n.has(e)?!t.metaKey&&n.size>1?(n.clear(),n.add(e)):(n.delete(e),ae.set(void 0)):(t.metaKey||n.clear(),n.add(e)),ae.set(e)}}),[e]);return{isSelected:n.has(e),onClickToSelect:r}}(r.branch),g=v.isSelected,m=v.onClickToSelect,y=function(e){switch(e){case Q.REBASE_OLD:case Q.REBASE_DESCENDANT:case Q.REBASE_ROOT:case Q.HIDDEN_ROOT:case Q.HIDDEN_DESCENDANT:case Q.NON_ACTIONABLE_COMMIT:return!0;default:return!1}}(i),b=i===Q.NON_ACTIONABLE_COMMIT,_=(0,t.useCallback)((function(){qe._.set({comparison:{type:s.ComparisonType.Committed,hash:r.branch},visible:!0})}),[r,qe._]),w=(0,t.useCallback)((function(){f(new Se(r.branch))}),[]),k=h((function(){var t=[{label:(0,e.jsxs)(e.Fragment,{children:['Copy branch name "',null==r?void 0:r.branch,'"']}),onClick:function(){return z.J.clipboardCopy(r.branch)}}];if(y||r.isHead||t.push({label:(0,e.jsx)(e.Fragment,{children:"Checkout branch"}),onClick:w}),!u&&r.isHead&&!a&&!r.pr){var n=Ke(r.branch).get();t.push({label:(0,e.jsx)(e.Fragment,{children:"Pop branch"}),onClick:function(){var e;return f(new je(r,(null===(e=n.data)||void 0===e?void 0:e.files)||[]))}})}return u||t.push({label:(0,e.jsx)(e.Fragment,{children:"View changes in branch"}),onClick:_}),u||y||t.push({label:(0,e.jsx)(e.Fragment,{children:"Untrack"}),onClick:function(){return V.wf.set(new Ee(r.branch))}}),u||y||t.push({label:(0,e.jsx)(e.Fragment,{children:"Delete branch"}),onClick:function(){z.J.confirm("Are you sure you want to delete ".concat(r.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&f(new Ce(r.branch))}))}}),t})),x=[];i===Q.REBASE_ROOT?x.push((0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return c(!0)}},{children:(0,e.jsx)(e.Fragment,{children:"Cancel"})})),(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return c(!1)}},{children:(0,e.jsx)(e.Fragment,{children:"Run Rebase"})}))]},"rebase")):i===Q.HIDDEN_ROOT&&x.push((0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return c(!0)}},{children:(0,e.jsx)(e.Fragment,{children:"Cancel"})})),(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return c(!1)}},{children:(0,e.jsx)(e.Fragment,{children:"Hide"})}))]},"hide"));var C=Mt(r.branch),O=!y&&C.length>0;return(0,e.jsxs)("div",Object.assign({className:"commit"+(r.isHead?" head-commit":"")+(p?" highlighted":"")+(u||a?"":" topmost"),"data-testid":"commit-".concat(r.branch)},{children:[b||!r.isHead&&(null==l?void 0:l.branchName)!==r.branch&&i!==Q.GOTO_PREVIOUS_LOCATION?null:(0,e.jsx)(Ft,{commit:r,previewType:i,hasChildren:a}),(0,e.jsxs)("div",Object.assign({className:"tree-row branch"},{children:[g?(0,e.jsx)("div",{className:"selected-commit-background","data-testid":"selected-commit"}):null,(0,e.jsxs)(Kt,Object.assign({className:"commit-details"+(null!=i?" commit-preview-".concat(i):""),commit:r,draggable:!u&&Pt(i),onClick:m,onDoubleClick:w,onContextMenu:k},{children:[(0,e.jsx)("div",{className:"commit-avatar"}),(0,e.jsxs)("div",Object.assign({className:"commit-title"},{children:[(0,e.jsx)("div",Object.assign({className:"branch-name-box"},{children:r.title?(0,e.jsx)(F.u,Object.assign({title:r.title},{children:(0,e.jsx)("span",Object.assign({className:"branch-name"},{children:r.branch}))})):(0,e.jsx)("span",Object.assign({className:"branch-name"},{children:r.branch}))})),(0,e.jsxs)("div",Object.assign({className:"commit-end"},{children:[O&&(0,e.jsx)(Nt,Object.assign({isSpan:!0,toHighlight:C},{children:(0,e.jsx)(o.vD,Object.assign({className:"commit-submit",appearance:"primary",onClick:function(e){f(new Oe(r.branch)),e.stopPropagation()}},{children:"Submit"}))})),(0,e.jsx)("div",Object.assign({className:"pr-badge-container"},{children:r.pr&&(0,e.jsx)(ze,{diffId:r.pr.number})})),(0,e.jsx)(Zt,{date:new Date(r.date)})]}))]})),i===Q.REBASE_OPTIMISTIC_ROOT?(0,e.jsxs)("span",Object.assign({className:"commit-inline-operation-progress"},{children:[(0,e.jsx)(R.J,{icon:"loading"})," ",(0,e.jsx)(e.Fragment,{children:"rebasing..."})]})):null]}))]})),(0,e.jsx)(zt,Object.assign({className:"commit-actions"},{children:x}))]}))})));function Zt(t){var n=t.date;return(0,e.jsx)("span",Object.assign({className:"commit-date"},{children:(0,e.jsx)(xe,{date:n,useShortVariant:!0})}))}function zt(t){var n=t.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["children"]);return!n||Array.isArray(n)&&0===n.filter(s.notEmpty).length?null:(0,e.jsx)("div",Object.assign({},r,{children:n}))}var Ft=(0,a.Pi)((function(t){var n=t.commit,r=t.previewType,i=t.hasChildren,o=V.OR.get(),a=ne.get(),s=o.length>0&&(n.partOfTrunk||i);return(0,e.jsxs)("div",Object.assign({className:"head-commit-info-container".concat(s?" head-commit-info-indented":"")},{children:[(0,e.jsx)(Vt,{previewType:r}),n.isHead||(null==a?void 0:a.branchName)===n.branch?(0,e.jsx)("div",Object.assign({className:"head-commit-info"},{children:(0,e.jsx)(St,{place:"main"})})):null,s?(0,e.jsx)(ce,{}):null]}))})),Vt=(0,a.Pi)((function(t){var n,r=t.previewType,i=t.hideSpinner,o=V.JC.get()&&!i,a=!1;switch(r){case Q.GOTO_DESTINATION:n=(0,e.jsx)(e.Fragment,{children:"You're moving here..."}),a=!0;break;case Q.GOTO_PREVIOUS_LOCATION:n=(0,e.jsx)(e.Fragment,{children:"You were here..."});break;default:n=(0,e.jsx)(e.Fragment,{children:"You are here"})}return(0,e.jsxs)("div",Object.assign({className:"you-are-here-container"},{children:[(0,e.jsxs)(de,Object.assign({kind:"primary"},{children:[a?(0,e.jsx)(R.J,{icon:"loading"}):null,n]})),o&&r!==Q.GOTO_PREVIOUS_LOCATION?(0,e.jsx)(R.J,{icon:"loading"}):null]}))})),Bt=void 0;function Ht(e){e.preventDefault()}function Ut(e){e.preventDefault(),Bt=void 0;var t=e.target;null==t||t.removeEventListener("dragend",Ut),document.removeEventListener("drop",Ht),document.removeEventListener("dragover",Ht)}function Kt(n){var r=n.commit,i=n.children,o=n.className,a=n.draggable,s=n.onClick,u=n.onDoubleClick,l=n.onContextMenu,c=(0,t.useCallback)((function(){var e=V.uB.get();if(null!=Bt&&r.branch!==Bt.branch){var t=e.get(Bt.branch);if(t&&!(0,Te.SG)(r.branch,t)&&!Bt.parents.includes(r.branch)){var n=r.branch;V.wf.set(new Ae(Bt.branch,n))}}}),[r]),d=(0,t.useCallback)((function(e){V.OR.get().length>0&&e.preventDefault(),Bt=r,e.dataTransfer.dropEffect="none",e.target.addEventListener("dragend",Ut),document.addEventListener("drop",Ht),document.addEventListener("dragover",Ht)}),[r]);return(0,e.jsx)("div",Object.assign({className:o,onDragStart:d,onDragEnter:c,draggable:a,onClick:s,onDoubleClick:u,onKeyPress:function(e){"Enter"===e.key&&(null==s||s(e))},onContextMenu:l,tabIndex:0,"data-testid":"draggable-commit"},{children:i}))}var qt=(0,a.Pi)((function(){!function(){var e=V.gi.get(),n=V.lp.get(),r=V.ql.get(),i=V.uB.get(),o=V.cC.get(),a=V.SC.get(),u=V.il.get();(0,t.useEffect)((function(){for(var t,l,c,d,f=[],h={trees:n,headCommit:r,treeMap:i},p={uncommittedChanges:null!==(t=o.files)&&void 0!==t?t:[]},v={conflicts:a},g=u.currentOperation,m=0,y=[].concat((0,K.Z)(u.operationHistory),[g]);m<y.length;m++){var b=y[m];b&&f.push(C(b,h,p,v))}if(f.some(s.notEmpty)){for(var _=(0,K.Z)(u.operationHistory),w=null==u.currentOperation?void 0:Object.assign({},u.currentOperation),k=0;k<f.length-1;k++)(null===(l=f[k])||void 0===l?void 0:l.commits)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedOptimisticState:!0})),(null===(c=f[k])||void 0===c?void 0:c.files)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedUncommittedChangesOptimisticState:!0})),(null===(d=f[k])||void 0===d?void 0:d.conflicts)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedMergeConflictsOptimisticState:!0}));var x=f[f.length-1];x&&null!=w&&(x.commits&&(w.hasCompletedOptimisticState=!0),x.files&&(w.hasCompletedUncommittedChangesOptimisticState=!0),x.conflicts&&(w.hasCompletedMergeConflictsOptimisticState=!0)),V.il.set({operationHistory:_,currentOperation:w})}function C(t,n,r,i){var a,u,l,c,d,f,h=!1,p=!1,v=!1;if(null!=t&&!t.hasCompletedUncommittedChangesOptimisticState)if(null!=t.operation.makeOptimisticUncommittedChangesApplier){var g=t.operation.makeOptimisticUncommittedChangesApplier(r);null!=t.exitCode&&(null==g||0!==t.exitCode?h=!0:o.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(a=ee())||void 0===a||a.track("OptimisticFilesStateForceResolved",{extras:{}}),h=!0))}else null!=t.exitCode&&(h=!0);if(null!=t&&!t.hasCompletedMergeConflictsOptimisticState)if(null!=t.operation.makeOptimisticMergeConflictsApplier){var m=t.operation.makeOptimisticMergeConflictsApplier(i);null!=t.exitCode&&(null==m||0!==t.exitCode?v=!0:(null!==(l=null===(u=i.conflicts)||void 0===u?void 0:u.fetchStartTimestamp)&&void 0!==l?l:0)>(0,s.unwrap)(t.endTime).valueOf()&&(null===(c=ee())||void 0===c||c.track("OptimisticConflictsStateForceResolved",{extras:{operation:(f=t.operation,f.constructor.opName)}}),v=!0))}else null!=t.exitCode&&(v=!0);if(null!=t&&!t.hasCompletedOptimisticState)if(null!=t.operation.makeOptimisticApplier){var y=t.operation.makeOptimisticApplier(n);null!=t.exitCode&&(null==y||0!==t.exitCode?p=!0:e.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(d=ee())||void 0===d||d.track("OptimisticCommitsStateForceResolved",{extras:{}}),p=!0))}else null!=t.exitCode&&(p=!0);if(p||h||v)return{commits:p,files:h,conflicts:v}}}),[u,r,n,i,o,a,e])}(),function(){var e=(0,t.useCallback)((function(e){var t=ae.get(),n=se.get();if(null!=t&&null!=n){var r=n.filter((function(e){return!e.partOfTrunk})),i=r.findIndex((function(e){return e.branch===t}));if(-1!==i){var o=!1;switch(e){case"SelectUpwards":i<r.length-1&&i++;break;case"SelectDownwards":i>0&&i--;break;case"ContinueSelectionUpwards":i<r.length-1&&i++,o=!0;break;case"ContinueSelectionDownwards":i>0&&i--,o=!0}var a=r[i];o||oe.clear(),oe.add(a.branch),ae.set(a.branch)}}}),[]);T("SelectUpwards",(function(){return e("SelectUpwards")})),T("SelectDownwards",(function(){return e("SelectDownwards")})),T("ContinueSelectionUpwards",(function(){return e("ContinueSelectionUpwards")})),T("ContinueSelectionDownwards",(function(){return e("ContinueSelectionDownwards")}))}();var n=re.get().trees,r=V.ZB.get(),i=le.get();return null==r&&0===n.length?(0,e.jsx)($,{children:(0,e.jsx)(q,{})}):(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(c,{title:i}):null,r?(0,e.jsx)($t,{error:r}):null,(0,e.jsxs)("div",Object.assign({className:"commit-tree-root commit-group with-vertical-line","data-testid":"commit-tree-root"},{children:[n.map((function(t){return(0,e.jsx)(Yt,{tree:t,depth:0},t.info.branch)})),(0,e.jsx)(Jt,{}),(0,e.jsx)(Gt,{})]}))]})})),$t=(0,a.Pi)((function(t){var n=t.error,r=(0,V.Qz)();return n.message===s.ErrorShortMessages.NoCommitsFetched?(0,e.jsx)(b.Wq,{title:"No commits found",description:"If this is a new repository, try adding an initial commit first.",error:n,buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){r(new G)}},{children:"Create empty initial commit"}))]}):(0,e.jsx)(b.Wq,{title:"Failed to fetch commits",error:n})}));function Yt(t){var n,r,i=t.tree,o=t.depth,a=i.info,u=i.children,l=i.previewType,c=null!==(r=null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.info.needsRestack)&&void 0!==r&&r,d=(null!=u?u:[]).map((function(t,n){var r=(0,e.jsx)(Yt,{tree:t,depth:o+1},"tree-".concat(t.info.branch));return 0===n?(0,e.jsxs)(e.Fragment,{children:[r,(0,e.jsx)(Xt,{tree:t})]}):(0,e.jsxs)(e.Fragment,{children:[0===o&&(0,e.jsx)(Qt,{}),(0,e.jsxs)(Wt,Object.assign({dashed:t.info.needsRestack,firstSiblingDashed:c},{children:[r,(0,e.jsx)(Xt,{renderEmptyRowIfNoRestackNeeded:!0,tree:t})]}),"branch-".concat(a.branch,"-").concat(n))]})})).flat().filter(s.notEmpty);return(0,e.jsxs)(e.Fragment,{children:[d,(0,e.jsx)(Lt,{commit:a,previewType:l,hasChildren:d.length>0},a.branch)]})}function Wt(t){var n=t.children,r=t.dashed,i=t.firstSiblingDashed;return(0,e.jsxs)("div",Object.assign({className:"commit-group with-vertical-line"},{children:[i?(0,e.jsx)("div",{className:"dashed-first-sibling"}):null,n,(0,e.jsx)(ce,{dashed:r})]}))}var Gt=(0,a.Pi)((function(){return V.c$.get()?(0,e.jsx)(R.J,{icon:"loading"}):null})),Jt=(0,a.Pi)((function(){var t=V.Es.get(),n=V.c$.get();if(void 0===t)return null;var r="Showing comits from the last ".concat(t.toString()," days");return(0,e.jsx)(F.u,Object.assign({placement:"bottom",delayMs:F.cf,title:r},{children:(0,e.jsxs)(o.vD,Object.assign({disabled:n,onClick:function(){u.H.postMessage({type:"loadMoreCommits"})},appearance:"icon"},{children:[(0,e.jsx)(R.J,{icon:"unfold",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"Load more commits"})]}),"load-more-commit-button")}))})),Qt=function(){return(0,e.jsx)("div",{className:"tree-row"})},Xt=(0,a.Pi)((function(t){var n=t.tree,r=t.renderEmptyRowIfNoRestackNeeded,i=(0,V.Qz)();if(!n.info.needsRestack)return r?(0,e.jsx)(Qt,{}):null;var a=V.OR.get().length>0;return(0,e.jsx)("div",Object.assign({className:"tree-row with-dashed-line"},{children:(0,e.jsx)(F.u,Object.assign({placement:"bottom",title:a?"Cannot restack while you have uncommited changes.":"The parent branch has been updated, and children branches need to be restacked to incorporate those changes."},{children:(0,e.jsx)(Nt,Object.assign({toHighlight:en(n)},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){i(new J(n.info.branch))},disabled:a},{children:"Restack"}))}),"restack-stack")}))}))}));function en(e){return[e.info].concat((0,K.Z)(e.children.flatMap((function(e){return en(e)}))))}n(5297);var tn=(0,t.lazy)((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,Ye().mark((function e(){return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([n.e(697),n.e(521)]).then(n.bind(n,5521)).then((function(e){return{default:e.ComparisonView}})));case 1:case"end":return e.stop()}}),e)})))})),nn=(0,a.Pi)((function(){var n=qe._.get();function r(e){(0,f.z)((function(){var t=qe._.get();qe._.set(t.comparison===e?{visible:!n.visible,comparison:e}:{visible:!0,comparison:e})}))}return T("Escape",(function(){(0,f.z)((function(){var e=qe._.get();qe._.set(Object.assign(Object.assign({},e),{visible:!1}))}))})),T("OpenUncommittedChangesComparisonView",(function(){r({type:s.ComparisonType.UncommittedChanges})})),T("OpenHeadChangesComparisonView",(function(){r({type:s.ComparisonType.HeadChanges})})),n.visible?(0,e.jsx)(D,Object.assign({className:"comparison-view-modal"},{children:(0,e.jsx)(t.Suspense,Object.assign({fallback:(0,e.jsx)(R.J,{icon:"loading"})},{children:(0,e.jsx)(tn,{comparison:n.comparison})}))})):null}));function rn(n){var r,i=n.children,o=n.className,a=(0,t.useState)(!1),s=(0,d.Z)(a,2),u=s[0],l=s[1];return(0,t.useEffect)((function(){if(u){var e=setTimeout((function(){return l(!1)}),1500);return function(){return clearTimeout(e)}}}),[u,l]),(0,e.jsx)(F.u,Object.assign({trigger:"manual",shouldShow:u,component:(r=i,function(){return(0,e.jsxs)("span",Object.assign({className:"copyable-success-tooltip"},{children:["Copied '",(0,e.jsx)("span",Object.assign({className:"copyable-success-overflow"},{children:r})),"'."]}))})},{children:(0,e.jsxs)("div",Object.assign({className:"copyable"+(o?" ".concat(o):""),tabIndex:0,onClick:function(){z.J.clipboardCopy(i),l(!0)}},{children:[i,(0,e.jsx)(R.J,{icon:"copy"})]}))}))}var on=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function an(t){var n=t.title,r=t.icon,i=t.children,a=t.className,s=on(t,["title","icon","children","className"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-fields"+(null!=a?" ".concat(a):"")},s,{children:[(0,e.jsxs)("div",Object.assign({className:"dropdown-fields-header"},{children:[(0,e.jsx)(R.J,{icon:r,size:"M"}),(0,e.jsx)("strong",Object.assign({role:"heading"},{children:n}))]})),(0,e.jsx)(o.y9,{}),(0,e.jsx)("div",Object.assign({className:"dropdown-fields-content"},{children:i}))]}))}function sn(t){var n=t.title,r=t.children,i=on(t,["title","children"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-field"},{children:[(0,e.jsx)("strong",{children:n}),(0,e.jsx)("div",Object.assign({},i,{children:r}))]}))}function un(){return(0,e.jsx)(fn,{children:(0,e.jsx)(F.u,Object.assign({trigger:"click",component:function(t){return(0,e.jsx)(hn,{dismiss:t})},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"bug-button"},{children:(0,e.jsx)(R.J,{icon:"bug"})}))}))})}var ln,cn=f.LO.box(null),dn=null;function fn(t){var n=t.children,r=cn.get();return null==r?n:(0,e.jsx)(F.u,Object.assign({trigger:"manual",shouldShow:!0,component:function(){return(0,e.jsxs)("div",Object.assign({className:"bug-button-nux"},{children:[r,(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){return cn.set(null)}},{children:(0,e.jsx)(R.J,{icon:"x"})}))]}))},placement:"bottom"},{children:n}))}(0,f.EH)((function(){null!=cn.get()?(ln=Date.now(),dn=cn.get()):l.track("ShowBugButtonNux",{extras:{nux:dn},duration:null==ln?void 0:Date.now()-ln})}));var hn=(0,a.Pi)((function(n){var r=n.dismiss,i=V.cM.get();(0,t.useEffect)((function(){cn.set(null)}),[cn]);var a=z.J.AdditionalDebugContent;return(0,e.jsxs)(an,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Help"}),icon:"bug","data-testid":"bug-dropdown",className:"bug-dropdown"},{children:[null==i?(0,e.jsx)(R.J,{icon:"loading"}):(0,e.jsx)("div",Object.assign({className:"bug-dropdown-version"},{children:(0,e.jsx)(rn,{children:"GTI version ".concat(i.version," (").concat(i.platformName,")")})})),(0,e.jsxs)("div",Object.assign({className:"bug-dropdown-actions"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary",onClick:function(){z.J.openExternalLink("https://graphite.dev/docs/gti")}},{children:[(0,e.jsx)(R.J,{icon:"book",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"View Documentation"})]})),(0,e.jsx)(pn,{dismissBugDropdown:r}),a&&(0,e.jsxs)("div",Object.assign({className:"additional-debug-content"},{children:[(0,e.jsx)(o.y9,{}),(0,e.jsx)(b.SV,{children:(0,e.jsx)(t.Suspense,{children:(0,e.jsx)(a,{})})})]}))]}))]}))}));function pn(t){return(0,e.jsx)(vn,{})}function vn(){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary",onClick:function(){z.J.openExternalLink("https://join.slack.com/t/graphite-community/shared_invite/zt-v828g9dz-TIRvlutxTCqgZmxnsO9Knw")}},{children:[(0,e.jsx)(R.J,{icon:"comment-discussion",slot:"start"}),(0,e.jsx)(e.Fragment,{children:"Help and Feedback on Slack"})]}))})}var gn=(0,ue.u)({default:[],effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("platform/availableCwds",(function(e){t(e.options)}));return function(){return n.dispose()}},function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"platform/subscribeToAvailableCwds"})}))}]}),mn=(0,a.Pi)((function(){var t=V.ip.get();if("success"!==(null==t?void 0:t.type))return null;var n=(0,s.basename)(t.repoRoot);return(0,e.jsx)(F.u,Object.assign({trigger:"click",component:function(){return(0,e.jsx)(yn,{})},placement:"bottom"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"cwd-dropdown-button"},{children:[(0,e.jsx)(R.J,{icon:"folder",slot:"start"}),n]}))}))})),yn=(0,a.Pi)((function(){var t=V.ip.get(),n="success"===(null==t?void 0:t.type)?t.repoRoot:null,r=Pe.get(),i=V.ui.get();return(0,e.jsxs)(an,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Info"}),icon:"folder","data-testid":"cwd-details-dropdown"},{children:[(0,e.jsx)(bn,{}),(0,e.jsx)(sn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Active repository"})},{children:(0,e.jsx)("code",{children:i})})),(0,e.jsx)(sn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Root"})},{children:(0,e.jsx)("code",{children:n})})),null!=r?(0,e.jsx)(sn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Remote"})},{children:(0,e.jsxs)("div",Object.assign({style:{display:"flex",alignItems:"center"}},{children:[(0,e.jsx)(R.J,{style:{marginRight:"4px"},icon:"github"})," ",(0,e.jsx)(r.RepoInfo,{})]}))})):null]}))})),bn=(0,a.Pi)((function(){var t=V.ui.get(),n=gn.get();if(n.length<2)return null;var r=(0,s.minimalDisambiguousPaths)(n);return(0,e.jsxs)(sn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Change active repository"})},{children:[(0,e.jsx)(o.dm,Object.assign({orientation:"vertical",value:t,onChange:function(e){var n=e.target.value;n!==t&&(u.H.postMessage({type:"changeCwd",cwd:n}),u.H.cwdChanged())}},{children:r.map((function(r,i){var a=n[i];return(0,e.jsx)(o.VK,Object.assign({value:a,checked:a===t,tabIndex:0},{children:(0,e.jsx)(F.u,Object.assign({title:a,placement:"right"},{children:r}),r)}),r)}))})),(0,e.jsx)(o.y9,{})]}))})),_n=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"DownstackGetOperation")).branchName=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["get",this.branchName]}}]),n}(W);_n.opName="DownstackGet";var wn=(0,a.Pi)((function(){var t=V.OR.get().length>0;return(0,e.jsx)(F.u,Object.assign({trigger:"click",component:function(t){return(0,e.jsx)(kn,{dismiss:t})},placement:"bottom",title:"Get branch"},{children:(0,e.jsx)(o.vD,Object.assign({disabled:t,appearance:"icon","data-testid":"download-commits-tooltip-button"},{children:(0,e.jsx)(R.J,{icon:"cloud-download"})}))}))})),kn=(0,a.Pi)((function(n){var r=n.dismiss,i=V.OR.get().length>0,a=(0,t.useState)(""),s=(0,d.Z)(a,2),u=s[0],l=s[1],c=(0,V.Qz)(),f=(0,t.useRef)(null);return(0,t.useEffect)((function(){f.current&&f.current.focus()}),[f]),(0,e.jsx)(an,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Get a branch and its ancestors"}),icon:"cloud-download","data-testid":"settings-dropdown"},{children:(0,e.jsxs)("div",Object.assign({className:"download-commits-input-row"},{children:[(0,e.jsx)(o.OG,{placeholder:"Branch name...",value:u,onKeyUp:function(e){var t,n;"Enter"!==e.key?l(null!==(n=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:""):u.trim().length>0&&(c(new _n(u)),r())},ref:f}),(0,e.jsx)(F.u,Object.assign({title:i?"Cannot downstack get with uncommited changes":""},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"secondary","data-testid":"download-commit-button",onClick:function(){c(new _n(u))}},{children:(0,e.jsx)(e.Fragment,{children:"Pull"})}))}))]}))}))}));function xn(t){var n,r=t.options,i=t.appearance,a=t.onClick,s=t.selected,u=t.onChangeSelected,l=t.buttonDisabled,c=t.pickerDisabled,d=t.icon,f=null!==(n=r.find((function(e){return e.id===s.id})))&&void 0!==n?n:r[0];return(0,e.jsxs)("div",Object.assign({className:"vscode-button-dropdown"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:i,onClick:l?void 0:function(){return a(s)},disabled:l},{children:[null!=d?d:null," ",f.label]})),(0,e.jsx)("select",Object.assign({disabled:c,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=r.find((function(t){return t.id===e.target.value}));null!=t&&u(t)}},{children:r.map((function(t){return(0,e.jsx)("option",Object.assign({value:t.id,selected:t.id===s.id},{children:t.label}),t.id)}))}))]}))}var Cn=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,"PullOperation")).options=e,r}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["sync",this.options.deleteBranches?"-f":"--no-delete"]}}]),n}(W);Cn.opName="Pull";var On=[{id:"pull",label:(0,e.jsx)(e.Fragment,{children:"Sync"}),getOperation:function(){return new Cn({deleteBranches:!0})},isRunning:function(e){return e instanceof Cn},tooltip:"Pull trunk, cleanup merged branches, and restack."},{id:"pnd",label:(0,e.jsx)(e.Fragment,{children:"Sync (skip cleanup)"}),getOperation:function(){return new Cn({deleteBranches:!1})},isRunning:function(e){return e instanceof Cn},tooltip:"Pull trunk, cleanup merged branches, and restack."}],Sn=(0,ht.X)({config:"gti.pull-button-choice",default:On[0].id}),En=(0,a.Pi)((function(){var t,n=(0,V.Qz)(),r=V.lp.get(),i=0===r.length?null:Math.max.apply(Math,(0,K.Z)(r.map((function(e){return new Date(e.info.date).valueOf()})))),o=V.OR.get().length>0,a=null!==(t=On.find((function(e){return e.id===Sn.get()})))&&void 0!==t?t:On[0],s=a.tooltip+"\n\n"+(null==i?"":"Latest fetched commit is ".concat(ke(i,{})," old")),u=function(){var e,t,n=V.il.get(),r=V.zV.get();return r.length>0?r.at(-1):null==(null===(e=n.currentOperation)||void 0===e?void 0:e.exitCode)?null===(t=n.currentOperation)||void 0===t?void 0:t.operation:void 0}(),l=null!=u&&a.isRunning(u);return l&&(s+="\n\nPull is already running."),(0,e.jsx)(F.u,Object.assign({placement:"bottom",delayMs:F.cf,title:s},{children:(0,e.jsxs)("div",Object.assign({className:"pull-info"},{children:[(0,e.jsx)(xn,{appearance:"secondary",buttonDisabled:!!l||o,options:On,onClick:function(){return n(a.getOperation())},onChangeSelected:function(e){return Sn.set(e.id)},selected:a,icon:(0,e.jsx)(R.J,{slot:"start",icon:l?"loading":"repo"})}),i&&(0,e.jsx)(xe,{date:i,useShortVariant:!0})]}))}))})),jn=function(e){(0,C.Z)(n,e);var t=(0,O.Z)(n);function n(e,r,i){var o;return(0,x.Z)(this,n),(o=t.call(this,"SetConfigOperation")).scope=e,o.configName=r,o.value=i,o}return(0,k.Z)(n,[{key:"getArgs",value:function(){return["internal-only","set-config","--level",this.scope,this.configName,this.value]}}]),n}(W);function An(){return(0,e.jsx)(F.u,Object.assign({trigger:"click",component:function(){return(0,e.jsx)(Tn,{})},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"settings-gear-button"},{children:(0,e.jsx)(R.J,{icon:"gear"})}))}))}jn.opName="SetConfig";var Tn=(0,a.Pi)((function(){var t=w.X.get(),n=V.ip.get(),r=(0,V.Qz)();return(0,e.jsxs)(an,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Settings"}),icon:"gear","data-testid":"settings-dropdown"},{children:[null!=z.J.theme?null:(0,e.jsx)(Rn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Theme"})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:t,onChange:function(e){return w.X.set(e.currentTarget.value)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"dark"},{children:(0,e.jsx)(e.Fragment,{children:"Dark"})})),(0,e.jsx)(o.nH,Object.assign({value:"light"},{children:(0,e.jsx)(e.Fragment,{children:"Light"})}))]}))})),"success"!==(null==n?void 0:n.type)?(0,e.jsx)(R.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Rn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Preferred modify behavior"}),description:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(e.Fragment,{children:"Whether to amend the commit or create one."})," ",(0,e.jsx)(o.Np,Object.assign({href:"https://graphite.dev/docs/updating-mid-stack-branches",target:"_blank"},{children:(0,e.jsx)(e.Fragment,{children:"Learn More."})}))]})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:n.preferredBranchEdit,onChange:function(e){var t=e.currentTarget.value;r(new jn("user","graphite.branch_edit",t));var n=V.ip.get();"success"===(null==n?void 0:n.type)&&V.ip.set(Object.assign(Object.assign({},(0,s.unwrap)(n)),{preferredBranchEdit:t}))}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"commit"},{children:"commit"})),(0,e.jsx)(o.nH,Object.assign({value:"amend"},{children:"amend"}))]}))})),(0,e.jsx)(Rn,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Preferred submit state"}),description:(0,e.jsxs)(e.Fragment,{children:["How new PRs should be submitted. Note that GitHub",(0,e.jsx)("br",{}),"does not allow draft PRs in all repositories."]})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:n.createPrsAs,onChange:function(e){var t=e.currentTarget.value;r(new jn("user","graphite.create_prs_as",t));var n=V.ip.get();"success"===(null==n?void 0:n.type)&&V.ip.set(Object.assign(Object.assign({},(0,s.unwrap)(n)),{createPrsAs:t}))}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"draft"},{children:"draft"})),(0,e.jsx)(o.nH,Object.assign({value:"published"},{children:"published"}))]}))}))]})]}))}));function Rn(t){var n=t.children,r=t.title,i=t.description;return(0,e.jsxs)(sn,Object.assign({title:r},{children:[i&&(0,e.jsx)("div",Object.assign({className:"setting-description"},{children:i})),n]}))}var Dn=(0,a.Pi)((function(){var t=V.R0.get(),n=V.WK.get();return t?(0,e.jsxs)("div",Object.assign({className:"top-bar"},{children:[(0,e.jsxs)("span",Object.assign({className:"button-group"},{children:[n&&(0,e.jsx)(En,{}),(0,e.jsx)(mn,{}),(0,e.jsx)(wn,{}),(0,e.jsx)(In,{})]})),(0,e.jsxs)("span",Object.assign({className:"button-group"},{children:[(0,e.jsx)(un,{}),(0,e.jsx)(An,{}),(0,e.jsx)(Nn,{})]}))]})):null})),In=(0,a.Pi)((function(){return V.YI.get()?(0,e.jsx)(R.J,{icon:"loading"}):null}));function Nn(){var t=(0,V.b8)();return(0,e.jsx)(F.u,Object.assign({delayMs:F.cf,placement:"bottom",title:"Refresh"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){l.track("ClickedRefresh"),t(),u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},"data-testid":"refresh-button"},{children:(0,e.jsx)(R.J,{icon:"refresh"})}))}))}var Pn=(0,ue.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedUpgradePrompt",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchUpgradePrompt"})}))}]}),Mn=(0,a.Pi)((function(){var t=V.Mh.get(),n=function(t,n,r){if("reconnecting"===n.type)return{title:(0,e.jsx)(e.Fragment,{children:"Connection to server was lost"}),error:new Error("Attempting to reconnect...")};if("error"===n.type)return"Invalid token"===n.error?{title:(0,e.jsx)(e.Fragment,{children:"Unable to connect to server. Try closing this window and accessing GTI with a fresh link."}),error:new Error("Invalid connection token. For security, you need to open a new GTI window when the server is restarted.")}:{title:(0,e.jsx)(e.Fragment,{children:"Error connecting to server"}),error:new Error(n.error)};if(r){if("success"===(null==t?void 0:t.type)&&"github"===t.codeReviewSystem.type){var i=(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){z.J.openExternalLink("https://graphite.dev/docs/graphite-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Learn more"})}));if(r.message.startsWith("NotAuthenticatedError")){var a=new Error("Log in to gh CLI with `gh auth login` to allow requests to GitHub");return a.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Not Authenticated to GitHub with `gh` CLI"}),error:a,buttons:[i],trackErrorName:"GhCliNotAuthenticated"}}if(r.message.startsWith("GhNotInstalledError")){var s=new Error("Install the `gh` CLI to make requests to GitHub");return s.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Unable to fetch data from GitHub"}),error:s,buttons:[i],trackErrorName:"GhCliNotInstalled"}}}return{title:(0,e.jsx)(e.Fragment,{children:"Failed to fetch Diffs"}),error:r,trackErrorName:"DiffFetchFailed"}}}(V.ip.get(),t,Ze.get().error);return null==n?null:(0,e.jsx)(Ln,{info:n})})),Ln=(0,a.Pi)((function(t){var n=t.info;return L((function(){null!=n.trackErrorName&&l.error("TopLevelErrorShown",n.trackErrorName,n.error)}),1e3,[n.trackErrorName,n.error]),(0,e.jsx)(b.Wq,{title:n.title,error:n.error,buttons:n.buttons})})),Zn=(0,a.Pi)((function(){var n=V.ip.get(),r=Pn.get(),i=r.indexOf(":")+1,a=function(){var e=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=e.current;if(null!=t){var n=new ResizeObserver((function(e){var t=(0,d.Z)(e,1)[0];_.set(t.contentRect.width)}));return n.observe(t),function(){return n.unobserve(t)}}}),[e]),e}();return(0,e.jsxs)("div",Object.assign({className:"main-content-area",ref:a},{children:[(0,e.jsx)(Mn,{}),r?(0,e.jsx)(c,{title:r.substring(0,i||void 0),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){z.J.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Upgrade docs"})}),"help-button")]}):null,null!=n&&"success"!==n.type?(0,e.jsx)(zn,{repoError:n}):(0,e.jsx)(qt,{})]}))})),zn=(0,a.Pi)((function(t){var n,r=t.repoError;return L((function(){switch(r.type){case"cwdNotARepository":l.track("UIEmptyState",{extras:{cwd:r.cwd},errorName:"InvalidCwd"});break;case"invalidCommand":l.track("UIEmptyState",{extras:{command:r.command},errorName:"InvalidCommand"});break;case"unknownError":l.error("UIEmptyState","RepositoryError",r.error)}}),1e3,[r]),null!=r&&(n="cwdNotARepository"===r.type?(0,e.jsxs)(y.u,{children:[(0,e.jsx)("div",{children:(0,e.jsx)(e.Fragment,{children:"Not a Graphite repository"})}),(0,e.jsxs)("p",{children:[(0,e.jsx)("code",{children:r.cwd})," is not a valid Graphite repository.",(0,e.jsx)("br",{}),"Please ensure you are in a Git repository and have run"," ",(0,e.jsx)("code",{children:"gt init"}),"."]})," ",(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()}},{children:(0,e.jsx)(e.Fragment,{children:"Reload"})}),"reload-button")]}):"invalidCommand"===r.type?(0,e.jsx)(b.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Could not find Graphite CLI"}),hideExpand:!0,buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()}},{children:(0,e.jsx)(e.Fragment,{children:"Reload"})}),"reload-button"),(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){z.J.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"See installation docs"})}),"help-button")]}):"invalidVersion"===r.type?(0,e.jsx)(b.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Graphite CLI update required"}),error:new Error("While Graphite CLI was found, it is installed at version ".concat(r.versionFound,", and version ").concat(r.versionRequired," is required.")),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()}},{children:(0,e.jsx)(e.Fragment,{children:"Reload"})}),"reload-button"),(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){z.J.openExternalLink("https://graphite.dev/docs/updating-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"See upgrade docs"})}),"help-button")],hideExpand:!0}):(0,e.jsx)(b.Wq,{title:(0,e.jsx)(e.Fragment,{children:"Something went wrong"}),error:r.error})),(0,e.jsx)("div",Object.assign({className:"empty-app-state"},{children:n}))}));i.createRoot(document.getElementById("root")).render((0,e.jsx)((function(){return(0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(w.s,{children:(0,e.jsx)(A,{children:(0,e.jsxs)(b.SV,{children:[(0,e.jsx)(Dn,{}),(0,e.jsx)(Zn,{}),(0,e.jsx)(U,{}),(0,e.jsx)("div",{className:"tooltip-root-container","data-testid":"tooltip-root-container"}),(0,e.jsx)(nn,{}),(0,e.jsx)(N,{}),(0,e.jsx)(m,{})]})})})})}),{}))}(),r}()}));
|