-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.616fe36f.bundle.js
1 lines (1 loc) · 59.1 KB
/
main.616fe36f.bundle.js
1
!function(){var e,t,r,n,o={53015:function(e,t,r){"use strict";var n=r("94695");r("19865"),r("22759");var o=r("39252"),i=r("45643"),a=r("10791"),c=r("41958"),u=r.n(c),s=r("90046"),l=r("65699"),f=r("12133"),d=r("77832"),p=r("41399"),h=r("62937"),y=r("12622"),b=r("5322"),m=r("62135"),v=r("751"),g=r("78184");function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r("11277");function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})}return e}function w(){return document.getElementById("root")||document.body}t.Z=function(){var e,t,r=(e=(0,a.useState)((0,d.f)()),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=r[0],x=r[1];(0,a.useEffect)(function(){(0,v.eb)().then(function(e){return x(function(t){var r,n;return r=O({},t),n=(n={questions:e},n),Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r})})},[]),(0,a.useEffect)(function(){var e,t,r,n;null===(e=(t=p.Z.theme).onChange)||void 0===e||e.call(t,c.setting.theme),null===(r=(n=p.Z.language).onChange)||void 0===r||r.call(n,c.setting.language)},[]);var S=(0,a.useCallback)(u()(function(e){y.ZP.setQuestionCache("currentQuestion",e)},200),[]),P=(0,a.useMemo)(function(){return[c,function(e){e.currentQuestion&&(null==c?void 0:c.currentQuestion)!==e.currentQuestion&&(S(e.currentQuestion),(0,m.K)(e.currentQuestion)),x(O({},c,e))}]},[c,x]);return(0,n.jsx)(i.ZP,{componentConfig:{Modal:{getPopupContainer:w},Drawer:{getPopupContainer:w}},getPopupContainer:w,children:(0,n.jsx)(d.Z.Provider,{value:P,children:(0,n.jsxs)(o.Z,{className:g.container,children:[(0,n.jsx)(o.Z.Header,{className:g.header,children:(0,n.jsx)(f.Z,{})}),(0,n.jsxs)(o.Z,{hasSider:!0,className:g.content,children:[(0,n.jsx)(o.Z.Sider,{width:"40%",className:g.left,resizeDirections:["right"],children:(0,n.jsx)(h.Z,{})}),(0,n.jsx)(o.Z.Content,{className:g.right,children:(0,n.jsxs)(o.Z,{hasSider:!0,className:g["right-layout"],children:[(0,n.jsx)(o.Z.Content,{className:g["right-layout-top"],children:(0,n.jsx)(s.Z,{})}),(0,n.jsx)(o.Z.Sider,{resizeDirections:["top"],className:g["right-layout-bottom"],children:(0,n.jsx)(b.Z,{})})]})})]}),(0,n.jsx)(o.Z.Footer,{className:g.footer,children:(0,n.jsx)(l.Z,{})})]})})})}},95309:function(e,t,r){"use strict";r.d(t,{Y:function(){return c}});var n=r("94695");r("62656");var o=r("53537"),i=r("92076");function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=function(e){var t,r,c,u=e.className,s=[i.tabs];if("string"==typeof u)s.push(u);else if(Array.isArray(u)){;s.push.apply(s,function(e){if(Array.isArray(e))return a(e)}(t=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return(0,n.jsx)(o.Z,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})}return e}({},e),c=(c={type:"card",className:s},c),Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(c)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(c,e))}),r))};c.TabPane=o.Z.TabPane},26240:function(e,t,r){"use strict";var n=r("94695"),o=r("61657"),i=r("69259"),a=r("14951"),c=r("49754"),u=r("39269"),s=r("79693"),l=r("18345"),f=r("86300"),d=r("63233"),p=r("69437");r("92844");function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o.Z.registerLanguage("ts",c.Z),o.Z.registerLanguage("typescript",c.Z);t.Z=function(e){var t=e.content,r=e.theme;return(0,n.jsx)(u.D,{className:p["markdown-wrapper"],remarkPlugins:[s.Z,d.Z],rehypePlugins:[l.Z,f.Z],components:{code:function(e){var t=e.children,c=e.className,u=e.inline,s=e.node,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){if(r=i[n],!(t.indexOf(r)>=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}(e,["children","className","inline","node"]),f=/language-(typescript|ts)/.exec(c||"");return u?(0,n.jsx)("code",y(h({},l),{className:c,children:t})):(0,n.jsx)(o.Z,y(h({},l),{node:s,inline:u,className:p["markdown-code"],style:"light"===r?i.Z:a.Z,language:null==f?void 0:f[1],showLineNumbers:!0,wrapLines:!0,children:String(t).replace(/\n$/,"")}))}},children:t})}},64553:function(e,t,r){"use strict";var n=r("94695"),o=r("99431"),i=r("74692"),a=r("12622");t.Z=function(e){var t=e.status;return t===a.Lo.accepted?(0,n.jsx)(o.Z,{style:{color:"rgb(var(--green-6))"}}):t===a.Lo.unAccepted?(0,n.jsx)(i.Z,{style:{color:"rgb(var(--red-6))"}}):null}},12342:function(e,t,r){"use strict";var n=r("94695"),o=r("83579"),i=r("53015");o.render((0,n.jsx)(i.Z,{}),document.getElementById("root"))},12863:function(e,t,r){"use strict";var n=r("94695");r("13013");var o=r("47647"),i=r("41958"),a=r.n(i),c=r("10791"),u=r("77392"),s=r("81748"),l=r("54019"),f=r("751"),d=r("87196"),p=r("63898"),h=r("7391");function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}u._m.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor/min/vs"}});var w=(0,p.Z)(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(w,e);var t,r,i,c,p,y=(t=w,r=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n,o,i=g(t);return o=r?Reflect.construct(i,arguments,g(this).constructor):i.apply(this,arguments),e=this,(n=o)&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(n)||"function"==typeof n)?n:b(e)});function w(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,w),e=y.apply(this,arguments),v(b(e),"instance",void 0),v(b(e),"models",{}),v(b(e),"viewStates",{}),v(b(e),"lastUpdates",{}),v(b(e),"updateTabSize",function(t,r){var n=e.models[f.gS.template];null==n||n.setValue((0,d.V)((null==n?void 0:n.getValue())||"",t,r))}),v(b(e),"beforeMount",function(t){t.editor.defineTheme("light",{base:"vs",colors:{},inherit:!0,rules:[]}),t.editor.defineTheme("dark",{base:"vs-dark",colors:{},inherit:!0,rules:[]}),t.languages.typescript.typescriptDefaults.setCompilerOptions({target:t.languages.typescript.ScriptTarget.ES2017,module:t.languages.typescript.ModuleKind.ESNext,moduleResolution:t.languages.typescript.ModuleResolutionKind.NodeJs,allowJs:!0,strict:!0,noImplicitReturns:!0,noUnusedLocals:!1,noUnusedParameters:!0,esModuleInterop:!0,skipLibCheck:!0}),t.editor.setTheme(e.props.setting.theme),(0,l.wf)(t);var r=!0,n=!1,o=void 0;try{for(var i,c=Object.entries(e.props.raw)[Symbol.iterator]();!(r=(i=c.next()).done);r=!0)!function(){var r=O(i.value,2),n=r[0],o=r[1].content;e.lastUpdates[n]=o;var c=t.editor.createModel(o,void 0,t.Uri.file("".concat(e.props.namespace,"/").concat(n)));n===f.gS.template&&c.onDidChangeContent(a()(function(){var t,r,o=c.getValue();e.lastUpdates[n]=o,null===(t=(r=e.props).onChange)||void 0===t||t.call(r,n,o)},200)),e.models[n]=c}()}catch(e){n=!0,o=e}finally{try{!r&&null!=c.return&&c.return()}finally{if(n)throw o}}}),v(b(e),"onMount",function(t){e.instance=t,e.instance.layout(),e.instance.updateOptions(e.props.setting),(0,l.MK)(!0),s.Z.emit("monacoEditorLoaded"),s.Z.on("tabSizeChange",e.updateTabSize)}),e}return i=w,c=[{key:"componentWillUnmount",value:function(){(0,l.MK)(!1),s.Z.off("tabSizeChange",this.updateTabSize);var e=!0,t=!1,r=void 0;try{for(var n,o=Object.keys(this.models)[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i,a=n.value;null===(i=this.models[a])||void 0===i||i.dispose()}}catch(e){t=!0,r=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(t)throw r}}this.instance&&this.instance.dispose(),this.models={},this.viewStates={},this.lastUpdates={},this.instance=void 0}},{key:"componentDidUpdate",value:function(e){if(this.instance){(this.props.width!==e.width||this.props.height!==e.height)&&this.instance.layout(),this.instance.updateOptions(this.props.setting);var t=this.props.selectedFilename;if(t!==e.selectedFilename){var r=this.models[t];this.viewStates[e.selectedFilename]=this.instance.saveViewState(),r&&this.instance.setModel(r),this.instance.updateOptions({readOnly:!!this.props.raw[t].readOnly});var n=this.viewStates[t];n&&this.instance.restoreViewState(n),this.instance.focus()}if(this.props.raw!==e.raw){var o=!0,i=!1,a=void 0;try{for(var c,u=Object.entries(this.props.raw)[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var f,d=O(c.value,2),p=d[0],h=d[1];h.content!==this.lastUpdates[p]&&(this.lastUpdates[p]=h.content,null===(f=this.models[p])||void 0===f||f.setValue(h.content))}}catch(e){i=!0,a=e}finally{try{!o&&null!=u.return&&u.return()}finally{if(i)throw a}}}var y=!0,b=!1,m=void 0;try{for(var v,g=Object.keys(this.props.raw)[Symbol.iterator]();!(y=(v=g.next()).done);y=!0){var j,w=v.value;null===(j=this.models[w])||void 0===j||j.updateOptions(this.props.setting),!w.includes("node_modules")&&(0,l.jg)(this.models[w]).then(function(){return s.Z.emit("validate")})}}catch(e){b=!0,m=e}finally{try{!y&&null!=g.return&&g.return()}finally{if(b)throw m}}}}},{key:"render",value:function(){var e,t,r=this.props,i=r.width,a=r.height,c=r.setting,s=r.namespace,l=r.selectedFilename;return(0,n.jsx)(u.ML,{width:i,height:a,defaultPath:"".concat(s,"/").concat(l),loading:(0,n.jsx)(o.Z,{className:h.skeleton,text:{rows:3},animation:!0}),beforeMount:this.beforeMount,onMount:this.onMount,theme:"light"===c.theme?"vs":"vs-dark",options:(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){v(e,t,r[t])})}return e}({},c),t=(t={renderValidationDecorations:"on",minimap:{enabled:!1},autoIndent:"advanced",formatOnPaste:!0,formatOnType:!0,automaticLayout:!1},t),Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)})}}],m(i.prototype,c),w}(c.Component));t.Z=w},63898:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r("94695"),o=r("41958"),i=r.n(o),a=r("10791");function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return function(t){var r,o,u=(r=(0,a.useState)({width:"100%",height:"100%"}),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(r,2)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(r,o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],l=u[1],f=(0,a.useRef)(null);return(0,a.useEffect)(function(){var e=i()(function(){l(function(e){if(!f.current)return e;var t="".concat(f.current.offsetWidth,"px"),r="".concat(f.current.offsetHeight,"px");return e.width===t&&e.height===r?e:{width:t,height:r}})},100);window.addEventListener("resize",e,{passive:!0});var t=setInterval(e,200);return function(){window.removeEventListener("resize",e),clearInterval(t)}},[f]),(0,n.jsx)("div",{ref:f,style:{width:"100%",height:"100%",position:"absolute",overflow:"hidden"},children:(0,n.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})}return e}({},t,s))})}}},90046:function(e,t,r){"use strict";var n=r("94695");r("97180"),r("13013"),r("75767");var o=r("67763"),i=r("47647"),a=r("80243"),c=r("64909"),u=r("27976"),s=r("41958"),l=r.n(s),f=r("10791"),d=r("77832"),p=r("12622"),h=r("63513"),y=r("751"),b=r("12863"),m=r("7391");function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function j(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,c,"next",e)}function c(e){g(i,n,o,a,c,"throw",e)}a(void 0)})}}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}t.Z=function(){var e,t=w((0,f.useState)(y.NA),2),r=t[0],s=t[1],v=w((0,f.useState)(!0),2),g=v[0],S=v[1],P=w((0,f.useContext)(d.Z),1)[0],C=P.setting,Z=P.currentQuestion,A=C.language;var _=(0,f.useCallback)(l()((e=j(function(e){return x(this,function(t){switch(t.label){case 0:return[4,(0,y.LH)(e)];case 1:return s(t.sent()),S(!1),[2]}})}),function(t){return e.apply(this,arguments)}),500),[]);return(0,f.useEffect)(function(){S(!0),_(Z)},[Z]),(0,n.jsxs)("div",{className:m.container,children:[(0,n.jsxs)("div",{className:m.header,children:[(0,n.jsx)(c.Z,{}),(0,n.jsx)("span",{style:{marginLeft:5},children:h.code[A]}),(0,n.jsx)("a",{onClick:function(){var e=a.Z.confirm({title:h.confirm_title[A],content:h.confirm_reset_code[A],okText:h.confirm_btn[A],cancelText:h.cancel_btn[A],onOk:j(function(){return x(this,function(t){switch(t.label){case 0:return S(!0),p.ZP.setQuestionCache(Z,{lastUpdated:null}),[4,_(Z)];case 1:return t.sent(),e.close(),[2]}})})})},className:m.reset,children:(0,n.jsx)(o.Z,{mini:!0,content:"reset",children:(0,n.jsx)(u.Z,{})})})]}),(0,n.jsx)(i.Z,{className:m.skeleton,text:{rows:3},animation:!0,loading:g,children:(0,n.jsx)("div",{className:m["monaco-wrapper"],children:(0,n.jsx)(b.Z,{namespace:Z,selectedFilename:y.gS.template,raw:r,onChange:function(e,t){if(r&&e===y.gS.template){var n,o;p.ZP.setQuestionCache(Z,{lastUpdated:t}),s((n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){O(e,t,r[t])})}return e}({},r),o=null!=(o=O({},e,{content:t,readOnly:r[e].readOnly}))?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}},setting:C})})})]})}},65699:function(e,t,r){"use strict";var n=r("94695"),o=r("45871"),i=r.n(o),a=r("13173"),c=r("39187");t.Z=function(){return(0,n.jsx)("div",{className:c.container,children:(0,n.jsxs)("a",{href:a._,target:"_blank",rel:"noreferrer",children:["copyright \xa9 2023-",i()().year()," typescript-tutorial-exercises"]})})}},63891:function(e,t,r){"use strict";var n=r("94695");r("61373"),r("33350"),r("30438"),r("73093");var o=r("45166"),i=r("9002"),a=r("10469"),c=r("90919"),u=r("45033"),s=r("10791"),l=r("77832"),f=r("12622"),d=r("81748"),p=r("64553"),h=r("63513"),y=r("21370");function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(){var e=m((0,s.useState)(!1),2),t=e[0],r=e[1],b=m((0,s.useState)(!1),2),v=b[0],g=b[1],j=m((0,s.useState)(""),2),O=j[0],w=j[1],x=m((0,s.useContext)(l.Z),2),S=x[0],P=S.setting,C=S.questions,Z=S.currentQuestion,A=x[1],_=P.language,k=(0,s.useMemo)(f.ZP.getQuestionCacheJson,[t]),E=(0,s.useMemo)(function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=C[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a,c,u=o.value;if(u.includes(O.toLowerCase())){var s=(null===(a=u.match(RegExp("(?<=-)[a-zA-Z0-9]*(?=-)")))||void 0===a?void 0:a[0])||"extreme",l=s[0].toUpperCase()+s.substring(1,s.length);null===(c=e[l])||void 0===c||c.push(u),e[l]||(e[l]=[u])}}}catch(e){r=!0,n=e}finally{try{!t&&null!=i.return&&i.return()}finally{if(r)throw n}}return e},[C,O]),N=(0,s.useMemo)(function(){return Object.keys(E).map(T)},[E,t]);function I(e){var t,r=null===(t=k[e])||void 0===t?void 0:t.status;return(0,n.jsx)(o.Z.Item,{title:e,onClick:function(){return A({currentQuestion:e})},children:(0,n.jsxs)("div",{className:y["drawer-problem-title"],children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(p.Z,{status:r})]})},e)}function T(e){var t=E[e];return(0,n.jsx)(o.Z.SubMenu,{title:(0,n.jsx)("div",{style:{fontWeight:600},children:e}),children:null==t?void 0:t.map(I)},e)}return(0,s.useEffect)(function(){function e(){r(function(e){return!e})}return d.Z.on("submitCode",e),function(){d.Z.off("submitCode",e)}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:y.icon,onClick:function(){return g(!0)},children:(0,n.jsx)(u.Z,{})}),(0,n.jsx)(c.Z,{width:450,footer:null,visible:v,placement:"left",title:(0,n.jsxs)("div",{className:y["drawer-header"],children:[(0,n.jsx)("div",{className:y["drawer-header-text"],children:h.question_list[_]}),(0,n.jsx)(i.Z.Search,{value:O,className:y["drawer-header-search"],placeholder:h.type_to_search[_],onChange:function(e){return w(e.toLowerCase())}})]}),onCancel:function(){return g(!1)},children:(0,n.jsx)(o.Z,{autoOpen:!0,selectedKeys:[Z],className:y["drawer-menu"],style:N.length>0?void 0:{display:"flex",alignItems:"center",justifyContent:"center"},children:N.length>0?N:(0,n.jsx)(a.Z,{description:h.no_question[_]})})})]})}},35209:function(e,t,r){"use strict";var n=r("94695");r("2404"),r("75767");var o=r("51583"),i=r("80243"),a=r("62754"),c=r("10791"),u=r("77832"),s=r("12622"),l=r("41399"),f=r("63513"),d=r("21370");function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(){var e=y((0,c.useState)(!1),2),t=e[0],r=e[1],p=y((0,c.useContext)(u.Z),2),b=p[0].setting,m=p[1];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:d.icon,onClick:function(){return r(!0)},children:(0,n.jsx)(a.Z,{})}),(0,n.jsx)(i.Z,{simple:!0,title:(0,n.jsxs)("div",{className:d["modal-header"],children:[(0,n.jsx)(a.Z,{}),(0,n.jsx)("div",{children:f.setting[b.language]})]}),footer:null,visible:t,onCancel:function(){return r(!1)},children:(0,n.jsx)("div",{className:d["modal-content"],children:Object.keys(l.Z).map(function(e){var t=b[e],r=l.Z[e],i=r.languageKey,a=r.options,c=r.onChange;return(0,n.jsxs)("div",{className:d["modal-setting-item"],children:[(0,n.jsx)("div",{className:d["modal-setting-item-text"],children:f[i][b.language]}),(0,n.jsx)("div",{className:d["modal-setting-item-option"],children:(0,n.jsx)(o.Z,{className:d["modal-setting-item-select"],defaultValue:t,onChange:function(t){null==c||c(t,b[e]);var r,n,o=(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){h(e,t,r[t])})}return e}({},b),n=null!=(n=h({},e,t))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r);m({setting:o}),s.ZP.setSettingCache(o)},children:a.map(function(e){return(0,n.jsx)(o.Z.Option,{value:e.value,children:e.text},e.value)})})})]},e)})})})]})}},12133:function(e,t,r){"use strict";var n=r("94695"),o=r("88325"),i=r("34642"),a=r("48503"),c=r("10791"),u=r("13173"),s=r("63891"),l=r("35209"),f=r("77832"),d=r("21370");function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}t.Z=function(){var e,t,r=(e=(0,c.useContext)(f.Z),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=r[0],y=h.questions,b=h.currentQuestion,m=r[1];function v(e){var t=y.indexOf(b)||0;m({currentQuestion:y[(t+e+y.length)%y.length]})}return(0,n.jsxs)("div",{className:d.container,children:[(0,n.jsx)(s.Z,{}),(0,n.jsx)("div",{className:d.icon,onClick:function(){return v(-1)},children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)("div",{className:d.icon,onClick:function(){return v(1)},children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("div",{style:{marginLeft:"auto"}}),(0,n.jsx)(l.Z,{}),(0,n.jsx)("a",{style:{color:"inherit"},className:d.icon,href:u._,target:"_blank",rel:"noreferrer",children:(0,n.jsx)(a.Z,{})})]})}},65883:function(e,t,r){"use strict";var n=r("94695");r("13013");var o=r("47647"),i=r("10791"),a=r("41958"),c=r.n(a),u=r("26240"),s=r("77832"),l=r("751"),f=r("68785");function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(){var e,t,r=h((0,i.useContext)(s.Z),1)[0],a=r.currentQuestion,d=r.setting,y=d.theme,b=d.language,m=h((0,i.useState)({}),2),v=m[0],g=m[1],j=h((0,i.useState)(""),2),O=j[0],w=j[1],x=h((0,i.useState)(!0),2),S=x[0],P=x[1],C=v.author;var Z=(0,i.useCallback)(c()((t=(e=function(e,t){var r,n,o;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,function(i){switch(i.label){case 0:return[4,(r=(0,l.ZP)(e)).getInfo()];case 1:return n=i.sent(),[4,r.getReadme({language:t})];case 2:return o=i.sent(),g(n),w(o),P(!1),[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,c,"next",e)}function c(e){p(i,n,o,a,c,"throw",e)}a(void 0)})}),function(e,r){return t.apply(this,arguments)}),500),[]);return(0,i.useEffect)(function(){g({}),P(!0),Z(a,b)},[a,b]),(0,n.jsxs)("div",{className:f["desc-container"],children:[(0,n.jsx)("div",{className:f["desc-container-inner"],children:(0,n.jsx)(o.Z,{className:f["desc-skeleton"],loading:S,text:{rows:3},animation:!0,children:(0,n.jsx)("div",{className:f["desc-content"],children:(0,n.jsx)(u.Z,{content:O,theme:y})})})}),(0,n.jsx)("div",{className:f["desc-footer"],children:(0,n.jsxs)("a",{href:(null==C?void 0:C.github)?"https://github.com/".concat(C.github):void 0,target:"_blank",rel:"noreferrer",className:f["desc-contributor"],children:["Provided By ",(null==C?void 0:C.name)||(null==C?void 0:C.github)?"@".concat(C.name||(null==C?void 0:C.github)):"--"]})})]})}},77263:function(e,t,r){"use strict";var n=r("94695");r("13013");var o=r("47647"),i=r("10791"),a=r("77832"),c=r("751"),u=r("26240"),s=r("68785");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(){var e=f((0,i.useContext)(a.Z),1)[0],t=e.currentQuestion,r=e.setting.theme,l=f((0,i.useState)(!0),2),d=l[0],p=l[1],h=f((0,i.useState)(""),2),y=h[0],b=h[1];return(0,i.useEffect)(function(){p(!0),(0,c.ZP)(t).getSolution().then(b).then(function(){return p(!1)})},[t]),(0,n.jsx)("div",{className:s["solution-container"],children:(0,n.jsx)(o.Z,{loading:d,style:{marginTop:20},children:(0,n.jsx)(u.Z,{content:y,theme:r})})})}},62937:function(e,t,r){"use strict";var n=r("94695"),o=r("10791"),i=r("95309"),a=r("65883"),c=r("77263"),u=r("63513"),s=r("77832"),l=r("68785");function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}t.Z=function(){var e,t,r=(e=(0,o.useContext)(s.Z),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,1)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].setting.language;return(0,n.jsx)("div",{className:l.container,children:(0,n.jsxs)(i.Y,{type:"card",children:[(0,n.jsx)(i.Y.TabPane,{title:u.description[r],children:(0,n.jsx)(a.Z,{})},"description"),(0,n.jsx)(i.Y.TabPane,{title:u.solution[r],children:(0,n.jsx)(c.Z,{})},"solution")]})})}},5322:function(e,t,r){"use strict";var n=r("94695");r("13013");var o=r("47647"),i=r("10791"),a=r("12622"),c=r("81748"),u=r("77832"),s=r("54019"),l=r("751"),f=r("64553"),d=r("43852");function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(c)throw n}}return i}}(e,t)||b(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}t.Z=function(){var e=h((0,i.useContext)(u.Z),1)[0].currentQuestion,t=h((0,i.useState)(!0),2),r=t[0],p=t[1],b=h((0,i.useState)([]),2),m=b[0],v=b[1],g=(0,i.useMemo)(function(){var e;if(0===m.length)return(0,n.jsxs)("div",{className:d["result-accept"],children:[(0,n.jsxs)("div",{className:d["result-accept-title"],children:[(0,n.jsx)(f.Z,{status:a.Lo.accepted}),(0,n.jsx)("span",{style:{marginLeft:8},children:"Compilation Successful"})]}),(0,n.jsx)("div",{className:d["result-accept-info"],children:"\uD83C\uDF89 Yay! You have finished this challenge."})]});return e=m,(0,n.jsxs)("div",{className:d["result-errors"],children:[(0,n.jsxs)("div",{className:d["result-error-title"],children:[(0,n.jsx)(f.Z,{status:a.Lo.unAccepted}),(0,n.jsx)("span",{style:{marginLeft:8},children:"Compilation Error"})]}),(0,n.jsx)("div",{className:d["result-error-info"],children:e.map(function(e){return(0,n.jsx)("div",{className:d["result-error-item"],children:e},e)})})]})},[m]),j=(0,i.useCallback)(function(){if(p(!0),!!s.Mz&&!!s.bf){var t=s.Mz.editor.getModel(s.Mz.Uri.file("".concat(e,"/").concat(l.gS.template)));if(t){var r=y(s.Mz.editor.getModelMarkers({resource:s.Mz.Uri.file("".concat(e,"/").concat(l.gS.template))})).concat(y(s.Mz.editor.getModelMarkers({resource:s.Mz.Uri.file("".concat(e,"/").concat(l.gS.check))}))).map(function(e){return"".concat(e.resource.path,":").concat(e.startLineNumber,":").concat(e.startColumn,": error: ").concat(e.code?"TS".concat(e.code,": "):"").concat(e.message)});v(r);var n=r.length>0?a.Lo.unAccepted:a.Lo.accepted;a.ZP.setQuestionCache(e,{status:n,lastUpdated:t.getValue()}),c.Z.emit("submitCode"),p(!1)}}},[e]);return(0,i.useEffect)(function(){return j(),c.Z.on("validate",j),function(){c.Z.off("validate",j)}},[e]),(0,n.jsx)(o.Z,{loading:r,text:{rows:3},animation:!0,className:d.skeleton,children:(0,n.jsx)("div",{className:d.container,children:g})})}},77832:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r("10791"),o=r("12622"),i=r("62135");function a(){var e=(0,i.h)(),t=o.ZP.getQuestionCacheJson().currentQuestion,r=e||t||"00013-warm-hello-world";return(0,i.K)(r),{setting:o.ZP.getSettingCache(),questions:[],currentQuestion:r}}var c=n.createContext([{},function(){}]);t.Z=c},81748:function(e,t,r){"use strict";var n=r("7170"),o=r.n(n)()();t.Z=o},12622:function(e,t,r){"use strict";r.d(t,{Lo:function(){return o}});var n,o,i=r("41958"),a=r.n(i);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){c(e,t,r[t])})}return e}(n=o||(o={}))[n.unAccepted=0]="unAccepted",n[n.accepted=1]="accepted";var s={theme:"light",fontSize:14,tabSize:2,language:"en"},l={__QUESTION_CACHE_KEY__:"__question_cache__",__SETTING_CACHE_KEY__:"__setting_cache__",getQuestionCacheJson:function(){var e={},t=localStorage.getItem(l.__QUESTION_CACHE_KEY__);if(!t)return e;try{e=JSON.parse(t)}catch(e){localStorage.removeItem(l.__QUESTION_CACHE_KEY__)}return e},setQuestionCache:function(e,t){var r,n,o=l.getQuestionCacheJson();if("currentQuestion"===e)i=t;else{var i,a,s=t.status,f=t.lastUpdated,d=o[e]||{lastUpdated:void 0},p=d.status,h=d.lastUpdated,y=p;void 0===p?y=s:1===p?y=p:1===s&&(y=s),i={status:y,lastUpdated:null===f?void 0:null!==(a=null!=f?f:h)&&void 0!==a?a:""}}localStorage.setItem(l.__QUESTION_CACHE_KEY__,JSON.stringify((r=u({},o),n=null!=(n=c({},e,i))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)))},getSettingCache:function(){var e=u({},s),t=localStorage.getItem(l.__SETTING_CACHE_KEY__);if(!t)return e;try{e=JSON.parse(t)}catch(e){localStorage.removeItem(l.__SETTING_CACHE_KEY__)}return u({},s,e)},setSettingCache:a()(function(e){localStorage.setItem(l.__SETTING_CACHE_KEY__,JSON.stringify(e))})};t.ZP=l},54019:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}r.d(t,{MK:function(){return c},Mz:function(){return o},bf:function(){return i},jg:function(){return u},wf:function(){return a}});var o,i=!1;function a(e){o=e}function c(e){i=e}function u(e){return s.apply(this,arguments)}function s(){var e;return e=function(e){var t,r,n;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,function(i){switch(i.label){case 0:if(!o||!e||e.isDisposed())return[2];return[4,o.languages.typescript.getTypeScriptWorker()];case 1:return[4,i.sent()(e.uri)];case 2:if(t=i.sent(),e.isDisposed())return[2];return[4,Promise.all([t.getSyntacticDiagnostics(e.uri.toString()),t.getSemanticDiagnostics(e.uri.toString())])];case 3:if(r=i.sent().reduce(function(e,t){return e.concat(t)}),e.isDisposed())return[2];return n=r.map(function(t){var r=e.getPositionAt(t.start),n=e.getPositionAt(t.start+t.length);return{severity:o.MarkerSeverity.Error,startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:n.lineNumber,endColumn:n.column,message:function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if("string"==typeof t)return t;if(void 0===t)return"";var o="";if(n){o+=r;for(var i=0;i<n;i++)o+=" "}if(o+=t.messageText,n++,t.next){var a=!0,c=!1,u=void 0;try{for(var s,l=t.next[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var f=s.value;o+=e(f,r,n)}}catch(e){c=!0,u=e}finally{try{!a&&null!=l.return&&l.return()}finally{if(c)throw u}}}return o}(t.messageText,"\n")}}),o.editor.setModelMarkers(e,"typescript",n),[2]}})},(s=function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)})}).apply(this,arguments)}},41399:function(e,t,r){"use strict";var n=r("81748"),o={theme:{languageKey:"theme",options:[{text:"Light",value:"light"},{text:"Dark",value:"dark"}],onChange:function(e){"dark"===e?document.body.setAttribute("arco-theme","dark"):"light"===e&&document.body.removeAttribute("arco-theme")}},fontSize:{languageKey:"font_size",options:Array(7).fill(0).map(function(e,t){var r=t+12;return{text:"".concat(r,"px"),value:r}})},tabSize:{languageKey:"tab_size",options:[{text:"2",value:2},{text:"4",value:4}],onChange:function(e,t){n.Z.emit("tabSizeChange",t,e)}},language:{languageKey:"language",options:[{text:"English",value:"en"},{text:"简体中文",value:"zh-CN"}],onChange:function(e){var t=e;"zh-CN"===e&&(t="zh-cmn-Hans"),document.documentElement.setAttribute("lang",t)}}};t.Z=o},751:function(e,t,r){"use strict";r.d(t,{LH:function(){return w},NA:function(){return b},ZP:function(){return g},eb:function(){return j},gS:function(){return o}});var n,o,i,a,c=r("95570"),u=r("69930"),s=r("12622"),l=r("88745");function f(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)})}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(n=o||(o={})).check="test-cases.ts",n.template="template.ts";var b=(h(i={},"test-cases.ts",{content:"",readOnly:!0}),h(i,"template.ts",{content:""}),h(i,"node_modules/@type-challenges/utils/index.d.ts",{content:l,readOnly:!0}),h(i,"node_modules/@type-challenges/utils/index.js",{content:"export {}",readOnly:!0}),i),m=function(){var e,t,r;function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),h(this,"id",void 0),h(this,"readme",{}),h(this,"template",void 0),h(this,"testCases",void 0),h(this,"solution",void 0),h(this,"info",void 0),this.id=e}return e=n,t=[{key:"getFile",value:function(e){var t=this;return d(function(){return y(this,function(r){switch(r.label){case 0:return[4,fetch("".concat(n.FETCH_PREFIX,"/").concat(t.id,"/").concat(e)).then(function(e){return e.text()})];case 1:return[2,r.sent()]}})})()}},{key:"getReadme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;return d(function(){var r,n,o,i,a,c,u,s,l,f,d,p,h,b,m,v,g,j,O,w,x,S,P,C;return y(this,function(y){switch(y.label){case 0:if(n=void 0===(r=e.language)?"en":r,t.readme[n])return[2,t.readme[n]];return o="README".concat("en"===n?"":".".concat(n),".md"),[4,t.getFile(o)];case 1:if(i=y.sent(),!("en"!==n&&i.includes("Couldn't find the requested file")))return[3,3];return[4,t.getReadme()];case 2:return[2,y.sent()];case 3:a=i,c=i.match(new RegExp("https:\\/\\/github\\.com\\/type-challenges\\/type-challenges\\/blob\\/main\\/questions\\/.*\\/".concat(o)))||[],u=!0,s=!1,l=void 0;try{for(f=c[Symbol.iterator]();!(u=(d=f.next()).done);u=!0)p=d.value,(b=null===(h=p.match(RegExp("(?<=\\/)[0-9]+-([a-zA-Z0-9-])+(?=\\/)","g")))||void 0===h?void 0:h[0])&&((m=new URL(window.location.href)).searchParams.set("question",b),a=a.replace(p,m.toString()))}catch(e){s=!0,l=e}finally{try{!u&&null!=f.return&&f.return()}finally{if(s)throw l}}v=i.match(RegExp('(?<=<a.*)href="\\.\\/README\\.[a-zA-Z-]+\\.md"(?=(\\s|>))',"g"))||[],g=!0,j=!1,O=void 0;try{for(w=v[Symbol.iterator]();!(g=(x=w.next()).done);g=!0)S=x.value,C=null===(P=S.match(RegExp('(?<=href="\\.\\/)README\\.[a-zA-Z-]+\\.md(?=")')))||void 0===P?void 0:P[0],a=a.replace(S,'<a href="https://github.com/type-challenges/type-challenges/tree/main/questions/'.concat(t.id,"/").concat(C,'"'))}catch(e){j=!0,O=e}finally{try{!g&&null!=w.return&&w.return()}finally{if(j)throw O}}return a=a.replace("../../".concat(o),"https://github.com/type-challenges/type-challenges/tree/main/".concat(o)),t.readme[n]=a,[2,t.readme[n]]}})})()}},{key:"getTemplate",value:function(){var e=this;return d(function(){return y(this,function(t){switch(t.label){case 0:if(e.template)return[2,e.template];return[4,e.getFile("template.ts")];case 1:return e.template=t.sent(),[2,e.template]}})})()}},{key:"getTestCases",value:function(){var e=this;return d(function(){return y(this,function(t){switch(t.label){case 0:if(e.testCases)return[2,e.testCases];return[4,e.getFile("test-cases.ts")];case 1:return e.testCases=t.sent(),[2,e.testCases]}})})()}},{key:"getInfo",value:function(){var e=this;return d(function(){var t;return y(this,function(r){switch(r.label){case 0:if(e.info)return[2,e.info];return[4,e.getFile("info.yml")];case 1:t=r.sent();try{e.info=c.ZP.load(t)}catch(e){console.error(e)}return[2,e.info||{}]}})})()}},{key:"getSolution",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this;return d(function(){var r,n,o,i,a,c,u,s;return y(this,function(s){switch(s.label){case 0:if(t.solution)return[2,t.solution];if(3===e)return[2,"Get solution failed!"];if(e+=1,!(n=null===(r=t.id.match(/[0-9]+(?=-)/))||void 0===r?void 0:r[0]))return[2,"Get solution failed!"];return[4,fetch("https://api.github.com/repos/type-challenges/type-challenges/issues?&sort=reactions-+1-desc&per_page=1&labels=answer,"+String(Number(n)))];case 1:o=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,6]),[4,o.json()];case 3:return c=(a=null==(i=s.sent())?void 0:i[0]).body,u=a.html_url,t.solution="<a href='".concat(u,"' target='_blank'>").concat(u,"</a>\n").concat(c),[2,t.solution];case 4:return s.sent(),[4,t.getSolution(e)];case 5:return[2,s.sent()];case 6:return[2]}})})()}}],p(e.prototype,t),n}();h(m,"FETCH_PREFIX","https://cdn.jsdelivr.net/gh/type-challenges/type-challenges/questions");var v=new Map;function g(e){var t=v.get(e);if(t)return t;var r=new m(e);return v.set(e,r),r}function j(){return O.apply(this,arguments)}function O(){return(O=d(function(){return y(this,function(e){switch(e.label){case 0:if(a)return[2,a];return[4,fetch("https://cdn.jsdelivr.net/gh/type-challenges/type-challenges/README.md").then(function(e){return e.text()})];case 1:return[2,Array.from(new Set(a=e.sent().match(RegExp('(?<=<a.*href="\\.\\/questions\\/)([0-9A-Za-z-]+)',"g"))))||[]]}})})).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=d(function(e){var t,r,n,o,i;return y(this,function(a){switch(a.label){case 0:return[4,(t=g(e)).getTemplate()];case 1:return r=a.sent(),[4,t.getTestCases()];case 2:return n=a.sent(),o=(s.ZP.getQuestionCacheJson()[e]||{}).lastUpdated,[2,(0,u.T)(b,(h(i={},"test-cases.ts",{content:n}),h(i,"template.ts",{content:null!=o?o:r}),i))]}})})).apply(this,arguments)}},62135:function(e,t,r){"use strict";function n(){return new URL(window.location.href).searchParams.get("question")}function o(e){if(n()!==e){var t=new URL(window.location.href);t.searchParams.set("question",e),window.history.pushState({},"",t)}}r.d(t,{K:function(){return o},h:function(){return n}})},87196:function(e,t,r){"use strict";function n(e,t,r){return e.split("\n").map(function(e){for(var n=0;" "===e[n];)++n;if(0===n)return e;var o=e.slice(n);(n-=1)%2==1&&(n+=1);var i=" ".repeat(n*r/t);return"".concat(i).concat(o)}).join("\n")}r.d(t,{V:function(){return n}})},92844:function(e,t,r){"use strict";r.r(e.exports={})},92076:function(e,t,r){"use strict";r.r(e.exports={tabs:"tabs-e6ac1cc194fbb3714a42"})},69437:function(e,t,r){"use strict";r.r(e.exports={"markdown-code":"markdown-code-eb54495a109800d19e1","markdown-wrapper":"markdown-wrapper-eb54495a109800d19e1"})},78184:function(e,t,r){"use strict";r.r(e.exports={container:"container-d60660a8b6f5a784",content:"content-d60660a8b6f5a784",footer:"footer-d60660a8b6f5a784",header:"header-d60660a8b6f5a784",left:"left-d60660a8b6f5a784",right:"right-d60660a8b6f5a784","right-layout":"right-layout-d60660a8b6f5a784","right-layout-bottom":"right-layout-bottom-d60660a8b6f5a784","right-layout-top":"right-layout-top-d60660a8b6f5a784"})},7391:function(e,t,r){"use strict";r.r(e.exports={container:"container-d8b967644ab7b3a21f66",header:"header-d8b967644ab7b3a21f66","monaco-wrapper":"monaco-wrapper-d8b967644ab7b3a21f66",reset:"reset-d8b967644ab7b3a21f66",skeleton:"skeleton-d8b967644ab7b3a21f66"})},39187:function(e,t,r){"use strict";r.r(e.exports={container:"container-b616610f0a16e6ba081f"})},21370:function(e,t,r){"use strict";r.r(e.exports={container:"container-d4a53e558b99400f24","drawer-header":"drawer-header-d4a53e558b99400f24","drawer-header-search":"drawer-header-search-d4a53e558b99400f24","drawer-header-text":"drawer-header-text-d4a53e558b99400f24","drawer-menu":"drawer-menu-d4a53e558b99400f24","drawer-problem-title":"drawer-problem-title-d4a53e558b99400f24",icon:"icon-d4a53e558b99400f24","modal-content":"modal-content-d4a53e558b99400f24","modal-header":"modal-header-d4a53e558b99400f24","modal-setting-item":"modal-setting-item-d4a53e558b99400f24","modal-setting-item-select":"modal-setting-item-select-d4a53e558b99400f24"})},68785:function(e,t,r){"use strict";r.r(e.exports={container:"container-d12ddf7a6782141d80a","desc-container":"desc-container-d12ddf7a6782141d80a","desc-container-inner":"desc-container-inner-d12ddf7a6782141d80a","desc-content":"desc-content-d12ddf7a6782141d80a","desc-footer":"desc-footer-d12ddf7a6782141d80a","desc-skeleton":"desc-skeleton-d12ddf7a6782141d80a","solution-container":"solution-container-d12ddf7a6782141d80a"})},43852:function(e,t,r){"use strict";r.r(e.exports={container:"container-a78ed1616a02e22db97","result-accept":"result-accept-a78ed1616a02e22db97","result-accept-info":"result-accept-info-a78ed1616a02e22db97","result-accept-title":"result-accept-title-a78ed1616a02e22db97","result-error-info":"result-error-info-a78ed1616a02e22db97","result-error-item":"result-error-item-a78ed1616a02e22db97","result-error-title":"result-error-title-a78ed1616a02e22db97","result-errors":"result-errors-a78ed1616a02e22db97",skeleton:"skeleton-a78ed1616a02e22db97"})},11277:function(e,t,r){"use strict";r.r(e.exports={})},63513:function(e){"use strict";e.exports=JSON.parse('{"code":{"en":"Code","zh-CN":"代码"},"question_list":{"en":"Question List","zh-CN":"题目列表"},"type_to_search":{"en":"Type to search...","zh-CN":"请输入关键词搜索"},"setting":{"en":"setting","zh-CN":"设置"},"description":{"en":"Description","zh-CN":"题目描述"},"solution":{"en":"Solution","zh-CN":"解答"},"theme":{"en":"theme","zh-CN":"主题"},"font_size":{"en":"font size","zh-CN":"字体大小"},"tab_size":{"en":"tab size","zh-CN":"缩进大小"},"language":{"en":"language","zh-CN":"语言"},"confirm_title":{"en":"Confirm","zh-CN":"确认"},"confirm_btn":{"en":"confirm","zh-CN":"确认"},"cancel_btn":{"en":"cancel","zh-CN":"取消"},"confirm_reset_code":{"en":"Are you sure to reset code?","zh-CN":"确认重置代码?"},"no_question":{"en":"No Result","zh-CN":"暂无数据"}}')},13173:function(e){"use strict";e.exports=JSON.parse('{"_":"https://github.com/typescript-tutorial-exercises"}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.k=function(e){return""+e+".css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},e=[],a.O=function(t,r,n,o){if(r){o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,n,o];return}for(var c=1/0,i=0;i<e.length;i++){for(var r=e[i][0],n=e[i][1],o=e[i][2],u=!0,s=0;s<r.length;s++)c>=o&&Object.keys(a.O).every(function(e){return a.O[e](r[s])})?r.splice(s--,1):(u=!1,o<c&&(c=o));if(u){e.splice(i--,1);var l=n();void 0!==l&&(t=l)}}return t},!function(){a.g.importScripts&&(e=a.g.location+"");var e,t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length){for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e}(),t={909:0},a.O.j=function(e){return 0===t[e]},r=function(e,r){var n=r[0],o=r[1],i=r[2],c,u,s=0;if(n.some(function(e){return 0!==t[e]})){for(c in o)a.o(o,c)&&(a.m[c]=o[c]);if(i)var l=i(a)}for(e&&e(r);s<n.length;s++)u=n[s],a.o(t,u)&&t[u]&&t[u][0](),t[u]=0;return a.O(l)},(n=self.webpackChunktypescript_tutorial_exercises=self.webpackChunktypescript_tutorial_exercises||[]).forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n));var c=a.O(void 0,["901","458","516","883","768","671","178","944","267","880","955","226","143","917","53","906","840","76","484","655"],function(){return a("12342")});a.O(c)}();