!function(){function e(e,n){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)return;var a,u,l=[],r=!0,c=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(l.push(a.value),!t||l.length!==t);r=!0);}catch(o){c=!0,u=o}finally{try{r||null==n.return||n.return()}finally{if(c)throw u}}return l}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.b746a8e2.js"],(function(t){"use strict";var a;return{setters:[function(e){a=e.b}],execute:function(){var u,l;t("d",(function(e,t){return o[e].some((function(e){return t.toLowerCase().endsWith(e)}))}));var r=t("C",function(e){return e.Cpp="cpp",e.C="c",e.Java="java",e.Kotlin="kotlin",e.Pascal="pascal",e.Python="python",e.Rust="rust",e.Swift="swift",e.Go="go",e.Haskell="haskell",e.CSharp="csharp",e.FSharp="fsharp",e}(r||{})),c=t("b",function(e){return e.Select="Select",e}(c||{})),o=(n(u={},"cpp",[".cpp",".cc",".cxx"]),n(u,"c",[".c"]),n(u,"java",[".java"]),n(u,"kotlin",[".kt"]),n(u,"pascal",[".pas"]),n(u,"python",[".py"]),n(u,"rust",[".rs"]),n(u,"swift",[".swift"]),n(u,"go",[".go"]),n(u,"haskell",[".hs"]),n(u,"csharp",[".cs"]),n(u,"fsharp",[".fs"]),u);var i=t("c",(n(l={},"cpp",[{name:"compiler",type:"Select",values:["g++","clang++"],defaultValue:"g++"},{name:"std",type:"Select",values:["c++03","c++11","c++14","c++17","c++20","gnu++03","gnu++11","gnu++14","gnu++17","gnu++20"],defaultValue:"c++11"},{name:"O",type:"Select",values:["0","1","2","3","fast"],defaultValue:"2"},{name:"m",type:"Select",values:["64","32","x32"],defaultValue:"64"}]),n(l,"c",[{name:"compiler",type:"Select",values:["gcc","clang"],defaultValue:"gcc"},{name:"std",type:"Select",values:["c89","c99","c11","c17","gnu89","gnu99","gnu11","gnu17"],defaultValue:"c11"},{name:"O",type:"Select",values:["0","1","2","3","fast"],defaultValue:"2"},{name:"m",type:"Select",values:["64","32","x32"],defaultValue:"64"}]),n(l,"java",[]),n(l,"kotlin",[{name:"version",type:"Select",values:["1.3","1.4","1.5"],defaultValue:"1.4"},{name:"platform",type:"Select",values:["jvm"],defaultValue:"jvm"}]),n(l,"pascal",[{name:"optimize",type:"Select",values:["-","1","2","3","4"],defaultValue:"2"}]),n(l,"python",[{name:"version",type:"Select",values:["2.7","3.6","3.9"],defaultValue:"3.9"}]),n(l,"rust",[{name:"version",type:"Select",values:["2015","2018","2021"],defaultValue:"2021"},{name:"optimize",type:"Select",values:["0","1","2","3"],defaultValue:"3"}]),n(l,"swift",[{name:"version",type:"Select",values:["4.2","5"],defaultValue:"5"},{name:"optimize",type:"Select",values:["Onone","O","Ounchecked"],defaultValue:"O"}]),n(l,"go",[{name:"version",type:"Select",values:["1.x"],defaultValue:"1.x"}]),n(l,"haskell",[{name:"version",type:"Select",values:["98","2010"],defaultValue:"2010"}]),n(l,"csharp",[{name:"version",type:"Select",values:["7.3","8"],defaultValue:"8"}]),n(l,"fsharp",[]),l)),s=function(e){return Object.fromEntries(i[e].map((function(e){return[e.name,e.defaultValue]})))},f=t("f",(function(t,n){return Object.assign({},s(t),Object.fromEntries(Object.entries(n||{}).filter((function(n){var a=e(n,2),u=a[0],l=a[1],r=i[t].find((function(e){return e.name===u}));return!!r&&("Select"===r.type?r.values.includes(l):void 0)}))))}));t("g",(function(){var e;return(null===(e=a.userPreference.code)||void 0===e?void 0:e.defaultLanguage)||Object.values(r)[0]})),t("a",(function(e){var t,n;return e===(null===(t=a.userPreference.code)||void 0===t?void 0:t.defaultLanguage)?f(e,null===(n=a.userPreference.code)||void 0===n?void 0:n.defaultCompileAndRunOptions):s(e)}))}}}))}();
