(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[30],{701:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c})),a.d(t,"c",(function(){return f})),a.d(t,"d",(function(){return p})),a.d(t,"e",(function(){return v})),a.d(t,"f",(function(){return O})),a.d(t,"g",(function(){return m}));var u,n,l,c,r=a(19),s=a(80),i=a(9);!function(e){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"}(l||(l={})),function(e){e.Select="Select"}(c||(c={}));var o=(u={},Object(s.a)(u,l.Cpp,[".cpp",".cc",".cxx"]),Object(s.a)(u,l.C,[".c"]),Object(s.a)(u,l.Java,[".java"]),Object(s.a)(u,l.Kotlin,[".kt"]),Object(s.a)(u,l.Pascal,[".pas"]),Object(s.a)(u,l.Python,[".py"]),Object(s.a)(u,l.Rust,[".rs"]),Object(s.a)(u,l.Swift,[".swift"]),Object(s.a)(u,l.Go,[".go"]),Object(s.a)(u,l.Haskell,[".hs"]),Object(s.a)(u,l.CSharp,[".cs"]),Object(s.a)(u,l.FSharp,[".fs"]),u);function f(e,t){return o[e].some((function(e){return t.toLowerCase().endsWith(e)}))}var p=(n={},Object(s.a)(n,l.Cpp,[{name:"compiler",type:c.Select,values:["g++","clang++"],defaultValue:"g++"},{name:"std",type:c.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:c.Select,values:["0","1","2","3","fast"],defaultValue:"2"},{name:"m",type:c.Select,values:["64","32","x32"],defaultValue:"64"}]),Object(s.a)(n,l.C,[{name:"compiler",type:c.Select,values:["gcc","clang"],defaultValue:"gcc"},{name:"std",type:c.Select,values:["c89","c99","c11","c17","gnu89","gnu99","gnu11","gnu17"],defaultValue:"c11"},{name:"O",type:c.Select,values:["0","1","2","3","fast"],defaultValue:"2"},{name:"m",type:c.Select,values:["64","32","x32"],defaultValue:"64"}]),Object(s.a)(n,l.Java,[]),Object(s.a)(n,l.Kotlin,[{name:"version",type:c.Select,values:["1.3","1.4","1.5"],defaultValue:"1.4"},{name:"platform",type:c.Select,values:["jvm"],defaultValue:"jvm"}]),Object(s.a)(n,l.Pascal,[{name:"optimize",type:c.Select,values:["-","1","2","3","4"],defaultValue:"2"}]),Object(s.a)(n,l.Python,[{name:"version",type:c.Select,values:["2.7","3.6","3.9"],defaultValue:"3.9"}]),Object(s.a)(n,l.Rust,[{name:"version",type:c.Select,values:["2015","2018","2021"],defaultValue:"2021"},{name:"optimize",type:c.Select,values:["0","1","2","3"],defaultValue:"3"}]),Object(s.a)(n,l.Swift,[{name:"version",type:c.Select,values:["4.2","5"],defaultValue:"5"},{name:"optimize",type:c.Select,values:["Onone","O","Ounchecked"],defaultValue:"O"}]),Object(s.a)(n,l.Go,[{name:"version",type:c.Select,values:["1.x"],defaultValue:"1.x"}]),Object(s.a)(n,l.Haskell,[{name:"version",type:c.Select,values:["98","2010"],defaultValue:"2010"}]),Object(s.a)(n,l.CSharp,[{name:"version",type:c.Select,values:["7.3","8"],defaultValue:"8"}]),Object(s.a)(n,l.FSharp,[]),n),d=function(e){return Object.fromEntries(p[e].map((function(e){return[e.name,e.defaultValue]})))},v=function(e,t){return Object.assign({},d(e),Object.fromEntries(Object.entries(t||{}).filter((function(t){var a=Object(r.a)(t,2),u=a[0],n=a[1],l=p[e].find((function(e){return e.name===u}));if(!l)return!1;switch(l.type){case c.Select:return l.values.includes(n)}}))))},O=function(){var e;return(null===(e=i.a.userPreference.code)||void 0===e?void 0:e.defaultLanguage)||Object.values(l)[0]},m=function(e){var t,a;return e===(null===(t=i.a.userPreference.code)||void 0===t?void 0:t.defaultLanguage)?v(e,null===(a=i.a.userPreference.code)||void 0===a?void 0:a.defaultCompileAndRunOptions):d(e)}}}]);
//# sourceMappingURL=30.51e4c7c9.chunk.js.map