commit 465bcb3eebd7bbecdf6f2db3656dfdc3679b6398 Author: yaha <1143990204@qq.com> Date: Wed Jan 11 19:06:20 2023 +0800 add dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f8fd9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:latest + +WORKDIR /work + +COPY . /work + +RUN npm install + +EXPOSE 3000 + +ENTRYPOINT ["npm", "run"] +CMD ["start-local"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..623a0e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Jonathan Shobrook + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f85243 --- /dev/null +++ b/README.md @@ -0,0 +1,49 @@ +# Adrenaline + +Adrenaline is a debugger powered by the OpenAI Codex. It not only fixes your code, but teaches you along the way. + +![Demo](demo.gif) + +## Usage + +Adrenaline can be used [here.](https://useadrenaline.com/playground) Simply plug in your broken code and an error message (e.g. a stack trace or natural language description of the error) and click "Debug." + +> Note that you will have to supply your own OpenAI API key. This is to prevent API misuse. + +### Running Locally + +To run locally, clone the repository and run the following: + +```bash +$ npm install +$ npm run start-local +``` + +## Features + +### Debugging + +Adrenaline sends your code and error message to the OpenAI Edit & Insert API (`code-davinci-edit-001`), which returns code changes that might fix your error (or at least give you a starting point). The proposed fixes are displayed in-line like a diff, with the option to accept, reject, or modify each code change. + +### Error Explanation + +Not only does Adrenaline propose fixes for your errors, but it also explains errors in plain English using GPT-3 (`text-davinci-003`). + +### Linting + +If your code isn't throwing an exception, it may still contain bugs. Adrenaline can scan your code for potential issues and propose fixes for them, if any exist. + +## Roadmap + +Right now, Adrenaline is just a simple wrapper around GPT-3, meant to demonstrate what's possible with AI-driven debugging. There's many ways it can be improved: + +1. Client-side intelligence (e.g. static code analysis) could be used to build a better prompt for GPT-3. +2. Instead of simply _explaining_ your error, Adrenaline should provide chain-of-thought reasoning for how it fixed the error. +3. In addition to chain-of-thought reasoning, Adrenaline could provide a ChatGPT-style assistant to answer questions about your error. I can even see Adrenaline being repurposed as a "coding tutor" for beginners. +4. Creating a VSCode extension that does this would eliminate the friction of copy-pasting your code and error message into the site. + +Ultimately, while the OpenAI Codex is surprisingly good at debugging code, I believe [a more specialized model](https://ai.stanford.edu/blog/DrRepair/) trained on all publicly available code could yield better results. There are interesting research questions here, such as how to generate synthetic training data (i.e. how can you systematically break code in a random but non-trivial way?). + +## Acknowledgements + +Malik Drabla for helping build the initial PoC during [AI Hack Week](https://www.aihackweek.com/). Ramsey Lehman for design feedback. Paul Bogdan, Michael Usachenko, and Samarth Makhija for various other feedback. diff --git a/build/asset-manifest.json b/build/asset-manifest.json new file mode 100644 index 0000000..3f25540 --- /dev/null +++ b/build/asset-manifest.json @@ -0,0 +1,14 @@ +{ + "files": { + "main.css": "/static/css/main.b7f9d58b.css", + "main.js": "/static/js/main.1a8f135d.js", + "static/media/Gilroy-ExtraBold.otf": "/static/media/Gilroy-ExtraBold.0094146a0505298ed06a.otf", + "index.html": "/index.html", + "main.b7f9d58b.css.map": "/static/css/main.b7f9d58b.css.map", + "main.1a8f135d.js.map": "/static/js/main.1a8f135d.js.map" + }, + "entrypoints": [ + "static/css/main.b7f9d58b.css", + "static/js/main.1a8f135d.js" + ] +} \ No newline at end of file diff --git a/build/demo.png b/build/demo.png new file mode 100644 index 0000000..e592243 Binary files /dev/null and b/build/demo.png differ diff --git a/build/favicon.png b/build/favicon.png new file mode 100644 index 0000000..2fe1891 Binary files /dev/null and b/build/favicon.png differ diff --git a/build/github.png b/build/github.png new file mode 100644 index 0000000..4f26e5c Binary files /dev/null and b/build/github.png differ diff --git a/build/index.html b/build/index.html new file mode 100644 index 0000000..c2b7397 --- /dev/null +++ b/build/index.html @@ -0,0 +1 @@ +Adrenaline
\ No newline at end of file diff --git a/build/key.png b/build/key.png new file mode 100644 index 0000000..c478c38 Binary files /dev/null and b/build/key.png differ diff --git a/build/logo.png b/build/logo.png new file mode 100644 index 0000000..8dc8d8c Binary files /dev/null and b/build/logo.png differ diff --git a/build/manifest.json b/build/manifest.json new file mode 100644 index 0000000..d31b7ae --- /dev/null +++ b/build/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "Adrenaline", + "name": "A debugger powered by GPT-3", + "icons": [ + { + "src": "favicon.png", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/build/robots.txt b/build/robots.txt new file mode 100644 index 0000000..e9e57dc --- /dev/null +++ b/build/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/build/static/css/main.b7f9d58b.css b/build/static/css/main.b7f9d58b.css new file mode 100644 index 0000000..b61f0e3 --- /dev/null +++ b/build/static/css/main.b7f9d58b.css @@ -0,0 +1,2 @@ +body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.spinner{font-size:10px;height:15px;margin:100px auto;text-align:center}.spinner>div{-webkit-animation:sk-bouncedelay 1.4s ease-in-out infinite both;animation:sk-bouncedelay 1.4s ease-in-out infinite both;background-color:#fff;display:inline-block;height:100%;width:6px}.spinner .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s;margin-right:3px}.spinner .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s;margin-right:3px}.spinner .bounce3{margin-right:3px}@-webkit-keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.primaryButton{align-items:center;background-color:#d93cff;border-radius:5px;cursor:pointer;display:flex;font-weight:500;height:35px;justify-content:center;padding-left:15px;padding-right:15px}.primaryButton:hover{opacity:.75}.secondaryButton{align-items:center;background-color:initial;border:2px solid hsla(0,0%,100%,.25);border-radius:5px;box-sizing:border-box;color:#fff;cursor:pointer;display:flex;flex-direction:row;height:35px;justify-content:center;padding-left:15px;padding-right:15px}.secondaryButton:hover{border:2px solid #fff}@media (max-width:1130px){.popup{width:75%!important}}.popup{align-items:center;background-color:#373751;border-radius:10px;box-shadow:0 2px 8px 2px rgba(32,32,48,.5);color:#fff;display:flex;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;justify-content:center;max-width:600px;width:50%;z-index:3}.popupInner{height:72%;justify-content:space-between;padding-bottom:40px;padding-top:40px;width:85%}.popupHeader,.popupInner{display:flex;flex-direction:column}.popupHeading{font-size:26px;font-weight:900;letter-spacing:1.25px}.popupSubheading{color:hsla(0,0%,100%,.65);font-size:16px;font-weight:400;letter-spacing:.5px;padding-top:15px;width:75%}.popupForm{display:flex;flex-direction:column;padding-top:40px}.inputField{align-items:center;display:flex;flex-direction:row;height:45px}.inputText{background-color:initial;border:2px solid hsla(0,0%,100%,.65);border-radius:5px;box-sizing:border-box;color:#fff;font-family:Helvetica Neue;font-size:18px;height:45px;margin-right:15px;outline:none;overflow:hidden;padding-left:15px;padding-top:9px;resize:none;white-space:nowrap;width:100%}.inputText:placeholder{color:hsla(0,0%,100%,.35)}.popupSubmit{height:45px}.instructions{color:hsla(0,0%,100%,.65);display:flex;flex-direction:column;font-size:12px;padding-top:10px}.instructions a{color:#279af1;font-weight:600;text-decoration:none}.instructions a:hover{text-decoration:underline}.lastStep{padding-top:3px}.header{align-items:center;background-color:#202030;border-bottom:2px solid #54546a;border-top:4px solid #d93cff;color:#fff;display:flex;flex-direction:row;font-family:Helvetica Neue;font-size:16px;height:55px;justify-content:space-between;min-height:55px;padding-left:30px;padding-right:30px;padding-top:2px}.header .compactButtons{display:none;position:absolute}@media (max-width:700px){.header .compactButtons{align-items:center;display:flex;flex-direction:row;position:relative}.githubIcon img{height:24px}.githubIcon:hover{opacity:.75}.keyIcon{cursor:pointer;height:16px;margin-left:15px}.keyIcon:hover{opacity:.75}.header .buttons{display:none!important;position:absolute!important}}.header .buttons{align-items:center;display:flex;flex-direction:row;font-weight:600}.header .buttons>a{cursor:pointer;font-weight:400;padding-right:25px}.header .buttons .headerGithubButton a,.header .buttons>a{color:#fff;font-family:Helvetica Neue;font-size:16px;text-decoration:none}.header .buttons .headerGithubButton a{font-weight:500;padding-right:0!important}.apiKeyButton{margin-left:15px}.header .buttons>a:hover{opacity:.75}.logo img{height:20px}@font-face{font-family:Gilroy;src:url(/static/media/Gilroy-ExtraBold.0094146a0505298ed06a.otf) format("opentype")}.landing{background-color:#373751;height:100%;overflow:scroll;position:absolute;width:100%}.landingLHS{margin-top:-80px;padding-left:5%}.landingBody{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding-top:125px}@media (max-width:1130px){.landingLHS{align-items:center;display:flex;padding:0!important;width:65%}.landingBody,.landingHeading,.landingLHS{flex-direction:column}.landingHeading{align-items:center;display:flex;text-align:center}.landingTitle{font-size:42px!important}.landingSubtitle{font-size:18px!important}.demoImage{padding-top:60px!important;width:50%!important}}@media (max-width:700px){.landingLHS{width:85%}.landingHeading{width:100%!important}.landingTitle{font-size:32px!important}.landingSubtitle{font-size:16px!important}.ctaButtons{flex-direction:column!important}.githubButton{margin-left:0!important;margin-top:15px}.demoImage{padding-top:40px!important;width:85%!important}}.landingHeading{width:85%}.landingTitle{color:#fff;font-family:Gilroy;font-size:3.25vw;font-weight:900}.landingSubtitle{color:hsla(0,0%,100%,.65);font-family:Helvetica Neue;font-size:1.375vw;font-weight:400;width:85%}.ctaButtons{display:flex;flex-direction:row;font-weight:600;padding-top:15px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.ctaButtons a{text-decoration:none}.getStartedButton{color:#fff;height:45px}.githubButton{height:45px!important;margin-left:15px}.githubButton a{color:#fff;text-decoration:none}.demoImage{padding-right:5%;width:62.5%}.codeEditorContainer{border-bottom:2px solid #54546a;display:flex;flex-direction:column;font-family:Monaco!important;font-size:14px;height:66%;overflow:auto;padding-left:11px;padding-right:24px}.codeEditorHeader{align-items:center;display:flex;flex-direction:row;height:35px;justify-content:space-between;padding-left:18px;padding-top:20px}.languageDropdown__control{background-color:initial!important;border-color:#9b9ba8!important;border-radius:5px!important;border-width:2px!important;height:35px!important;min-height:35px!important}.languageDropdown__single-value{color:#fff!important;font-family:Helvetica Neue;font-size:16px;font-weight:500;margin-top:-5px!important}.languageDropdown__indicators{margin-top:-2px!important}.languageDropdown__indicator-separator{background-color:#9b9ba8!important;margin-bottom:11px!important;margin-top:11px!important;width:2px!important}.languageDropdown__dropdown-indicator{color:#9b9ba8!important}.lintButton{background-color:#279af1;font-family:Helvetica Neue!important;font-size:16px;font-weight:500;margin-right:6px;width:45px!important}.codeEditor{padding-top:20px}.CodeMirror{height:100%!important}.CodeMirror-lines{padding-left:20px!important}.CodeMirror-line{padding-left:5px!important}.CodeMirror-linenumber{margin-left:-20px}.CodeMirror-code>div{padding-bottom:2px}.oldLine{background-color:rgba(39,154,241,.25)}.last{border-radius:0 0 7px 7px}.newLine{background-color:rgba(217,60,255,.25)}.first{border-radius:7px 7px 0 0}.both{border-radius:7px}.mergeLine{background-color:hsla(0,0%,100%,.15)}.useMeHeader{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;font-family:Helvetica Neue;font-size:12px;font-weight:900;height:40px;padding:0 5px}.oldCodeHeader{background-color:#2f68a1!important;border-radius:7px 7px 0 0!important}.newCodeHeader{background-color:#8839a8!important;border-radius:0 0 7px 7px;position:relative;top:2px}.useMeButton{align-items:center;border-radius:5px;cursor:pointer;display:flex;flex-direction:row;height:30px;justify-content:center;width:65px}.newCodeButton{background-color:#d93cff}.oldCodeButton{background-color:#279af1}.useMeLabel{font-weight:500!important;margin-left:auto;padding-right:5px}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-webkit-keyframes blink{50%{background-color:initial}}@keyframes blink{50%{background-color:initial}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:initial}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:initial}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:initial}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-dracula .CodeMirror-gutters,.cm-s-dracula.CodeMirror{background-color:#373751!important;border:none;color:#e5fcff!important}.cm-s-dracula .CodeMirror-gutters{color:#140c58}.cm-s-dracula .CodeMirror-cursor{border-left:thin solid #e5fcff}.cm-s-dracula .CodeMirror-linenumber{color:#8985ab}.cm-s-dracula .CodeMirror-selected{background:hsla(0,0%,100%,.1)}.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection{background:hsla(0,0%,100%,.1)}.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection{background:hsla(0,0%,100%,.1)}.cm-s-dracula span.cm-comment{color:#6272a4}.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2{color:#f1fa8c}.cm-s-dracula span.cm-number{color:#bd93f9}.cm-s-dracula span.cm-variable,.cm-s-dracula span.cm-variable-2{color:#fff}.cm-s-dracula span.cm-def{color:#279af1}.cm-s-dracula span.cm-keyword,.cm-s-dracula span.cm-operator{color:#d93cff}.cm-s-dracula span.cm-atom{color:#bd93f9}.cm-s-dracula span.cm-meta{color:#f8f8f2}.cm-s-dracula span.cm-tag{color:#d93cff}.cm-s-dracula span.cm-attribute,.cm-s-dracula span.cm-qualifier{color:#50fa7b}.cm-s-dracula span.cm-property{color:#66d9ef}.cm-s-dracula span.cm-builtin{color:#45f0df}.cm-s-dracula span.cm-type,.cm-s-dracula span.cm-variable-3{color:#fff}.cm-s-dracula .CodeMirror-activeline-background{background:hsla(0,0%,100%,.1)}.cm-s-dracula .CodeMirror-matchingbracket{color:#fff!important;text-decoration:underline}@media (max-width:700px){.errorMessage{height:50%!important}}.errorMessage{display:flex;flex-direction:column;height:33%;overflow:scroll}.errorMessageHeader{align-items:center;display:flex;flex-direction:row;font-weight:500;justify-content:space-between;padding-left:30px;padding-right:30px;padding-top:20px}.debugButton{background-color:#d93cff;width:45px}.errorMessageInput{background-color:#54546a;border:0;border-radius:10px;box-sizing:border-box;color:#fff;font-family:Monaco;font-size:14px;height:100%;margin-bottom:15px;margin-left:30px;margin-top:20px;outline:none;padding:15px 15px 15px 20px;resize:none;width:calc(100% - 60px)}.errorMessageInput:placeholder{color:#d4d4d9}.errorExplanation{border-left:2px solid #54546a;font-weight:500;padding-left:30px;padding-right:30px;padding-top:20px;width:33%}.errorExplanationHeader{padding-top:8px}.errorExplanationHeader p{color:hsla(0,0%,100%,.75);font-family:Monaco;font-size:14px;font-weight:400;line-height:22px;overflow:auto;padding-top:6px}.popupLayer{align-items:center;background-color:rgba(32,32,48,.8);justify-content:center;z-index:2}.app,.popupLayer{display:flex;height:100%;position:absolute;width:100%}.app{background-color:#373751;color:#fff;flex-direction:column;font-family:Helvetica Neue;font-size:16px}.app .body{display:flex;flex-direction:row;height:calc(100% - 55px);overflow:auto}.app .body .lhs{display:flex;flex-direction:column;height:100%;width:66%}@media (max-width:700px){.app .body{flex-direction:column;width:100%}.app .body .lhs{height:66%;width:100%}.errorExplanation{border-left:0!important;border-top:2px solid #54546a;height:34%!important;padding-left:0!important;padding-right:0!important;width:100%}.errorExplanationHeader{padding-left:30px}.errorExplanationHeader p{padding-right:30px}} +/*# sourceMappingURL=main.b7f9d58b.css.map*/ \ No newline at end of file diff --git a/build/static/css/main.b7f9d58b.css.map b/build/static/css/main.b7f9d58b.css.map new file mode 100644 index 0000000..ba6474d --- /dev/null +++ b/build/static/css/main.b7f9d58b.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.b7f9d58b.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCZA,SAIE,cAAe,CAFf,WAAY,CADZ,iBAAkB,CAElB,iBAGF,CAEA,aAME,+DAAgE,CAChE,uDAAwD,CANxD,qBAAuB,CAGvB,oBAAqB,CAFrB,WAAY,CACZ,SAKF,CAEA,kBACE,6BAA+B,CAC/B,qBAAuB,CACvB,gBACF,CAEA,kBACE,6BAA+B,CAC/B,qBAAuB,CACvB,gBACF,CAEA,kBACE,gBACF,CAEA,kCACE,UAAgB,0BAA4B,CAC5C,IAAM,0BAA8B,CACtC,CAEA,0BACE,UACE,0BAA2B,CAC3B,kBACF,CAAE,IACA,0BAA6B,CAC7B,kBACF,CACF,CC/CA,eAEE,kBAAmB,CAEnB,wBAAyB,CACzB,iBAAkB,CAClB,cAAe,CALf,YAAa,CAMb,eAAgB,CAEhB,WAAY,CANZ,sBAAuB,CAOvB,iBAAkB,CAClB,kBACF,CAEA,qBACE,WACF,CAEA,iBAGE,kBAAmB,CAEnB,wBAA6B,CAC7B,oCAA2C,CAC3C,iBAAkB,CAMlB,qBAAsB,CADtB,UAAY,CAJZ,cAAe,CAPf,YAAa,CACb,kBAAmB,CASnB,WAAY,CAPZ,sBAAuB,CAKvB,iBAAkB,CAClB,kBAIF,CAEA,uBACE,qBACF,CCpCA,0BACE,OACE,mBACF,CACF,CAEA,OASE,kBAAmB,CALnB,wBAAyB,CAEzB,kBAAmB,CADnB,0CAAiD,CAEjD,UAAY,CACZ,YAAa,CALb,0BAAmB,CAAnB,uBAAmB,CAAnB,kBAAmB,CAOnB,sBAAuB,CARvB,eAAgB,CADhB,SAAU,CAUV,SACF,CAEA,YAIE,UAAW,CACX,6BAA8B,CAE9B,mBAAoB,CADpB,gBAAiB,CAHjB,SAKF,CAEA,yBATE,YAAa,CACb,qBAWF,CAEA,cACE,cAAe,CACf,eAAgB,CAChB,qBACF,CAEA,iBAGE,yBAA6B,CAF7B,cAAe,CACf,eAAgB,CAGhB,mBAAqB,CACrB,gBAAiB,CAFjB,SAGF,CAEA,WACE,YAAa,CACb,qBAAsB,CACtB,gBACF,CAEA,YAIE,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,WAEF,CAEA,WAKE,wBAA6B,CAJ7B,oCAA2C,CAK3C,iBAAkB,CAJlB,qBAAsB,CAEtB,UAAY,CAQZ,0BAA6B,CAD7B,cAAe,CAHf,WAAY,CAQZ,iBAAkB,CAblB,YAAa,CAYb,eAAgB,CAFhB,iBAAkB,CAHlB,eAAgB,CAHhB,WAAY,CAOZ,kBAAmB,CALnB,UAQF,CAEA,uBACE,yBACF,CAEA,aACE,WACF,CAEA,cAKE,yBAAgC,CAJhC,YAAa,CACb,qBAAsB,CACtB,cAAe,CACf,gBAEF,CAEA,gBACE,aAAc,CACd,eAAgB,CAChB,oBACF,CAEA,sBACE,yBACF,CAEA,UACE,eACF,CC9GA,QAGE,kBAAmB,CAMnB,wBAAyB,CADzB,+BAAgC,CAEhC,4BAA6B,CAK7B,UAAY,CAdZ,YAAa,CACb,kBAAmB,CAWnB,0BAA6B,CAC7B,cAAe,CAVf,WAAY,CAGZ,6BAA8B,CAK9B,eAAgB,CAPhB,iBAAkB,CAClB,kBAAmB,CAKnB,eAKF,CAEA,wBACE,YAAa,CACb,iBACF,CAEA,yBACE,wBAIE,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAFnB,iBAIF,CAEA,gBACE,WACF,CAEA,kBACE,WACF,CAEA,SAGE,cAAe,CADf,WAAY,CADZ,gBAGF,CAEA,eACE,WACF,CAEA,iBACE,sBAAwB,CACxB,2BACF,CACF,CAEA,iBAGE,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,eACF,CAEA,mBAOE,cAAe,CAFf,eAAgB,CAChB,kBAEF,CAEA,0DARE,UAAY,CACZ,0BAA6B,CAC7B,cAAe,CAHf,oBAgBF,CAPA,uCAME,eAAgB,CALhB,yBAMF,CAEA,cACE,gBACF,CAEA,yBACE,WACF,CAEA,UACE,WACF,CC3FA,WACE,kBAAqB,CACrB,mFACF,CAEA,SAEE,wBAAyB,CACzB,WAAY,CAEZ,eAAgB,CAJhB,iBAAkB,CAGlB,UAEF,CAEA,YAGE,gBAAiB,CADjB,eAEF,CAEA,aAIE,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,6BAA8B,CAE9B,iBACF,CAEA,0BACE,YAKE,kBAAmB,CAJnB,YAAa,CAGb,mBAAqB,CADrB,SAGF,CAMA,yCAVE,qBAeF,CALA,gBAIE,kBAAmB,CAFnB,YAAa,CADb,iBAIF,CAEA,cACE,wBACF,CAEA,iBACE,wBACF,CAEA,WACE,0BAA4B,CAC5B,mBACF,CACF,CAEA,yBACE,YACE,SACF,CAEA,gBACE,oBACF,CAEA,cACE,wBACF,CAEA,iBACE,wBACF,CAEA,YACE,+BACF,CAEA,cACE,uBAA2B,CAC3B,eACF,CAEA,WACE,0BAA4B,CAC5B,mBACF,CACF,CAEA,gBAEE,SACF,CAEA,cACE,UAAY,CAGZ,kBAAqB,CAFrB,gBAAiB,CACjB,eAEF,CAEA,iBACE,yBAAgC,CAChC,0BAA6B,CAE7B,iBAAkB,CAClB,eAAgB,CAChB,SACF,CAEA,YACE,YAAa,CACb,kBAAmB,CAGnB,eAAgB,CADhB,gBAAiB,CADjB,yBAAkB,CAAlB,sBAAkB,CAAlB,iBAIF,CAEA,cACE,oBACF,CAEA,kBACE,UAAY,CACZ,WACF,CAEA,cACE,qBAAuB,CAEvB,gBACF,CAEA,gBAEE,UAAY,CADZ,oBAEF,CAEA,WAIE,gBAAiB,CAFjB,WAGF,CCpJA,qBASE,+BAAgC,CARhC,YAAa,CACb,qBAAsB,CAKtB,4BAAgC,CAChC,cAAe,CALf,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,kBAIF,CAEA,kBAGE,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAKnB,WAAY,CADZ,6BAA8B,CAF9B,iBAAkB,CAClB,gBAGF,CAEA,2BACE,kCAAwC,CACxC,8BAAgC,CAChC,2BAA6B,CAC7B,0BAA4B,CAE5B,qBAAuB,CADvB,yBAEF,CAEA,gCACE,oBAAuB,CACvB,0BAA6B,CAC7B,cAAe,CACf,eAAgB,CAChB,yBACF,CAEA,8BACE,yBACF,CAEA,uCACE,kCAAoC,CAGpC,4BAA8B,CAD9B,yBAA2B,CAD3B,mBAGF,CAEA,sCACE,uBACF,CAUA,YAIE,wBAAyB,CAFzB,oCAAwC,CACxC,cAAe,CAFf,eAAgB,CAKhB,gBAAiB,CADjB,oBAEF,CAEA,YACE,gBACF,CAEA,YACE,qBACF,CAEA,kBACE,2BACF,CAEA,iBACE,0BACF,CAEA,uBACE,iBACF,CAEA,qBACE,kBACF,CAEA,SACE,qCACF,CAEA,MACE,yBACF,CAEA,SACE,qCACF,CAEA,OACE,yBACF,CAEA,MACE,iBACF,CAEA,WACE,oCACF,CAEA,aAME,kBAAmB,CAHnB,YAAa,CAFb,kBAAmB,CACnB,cAAe,CAKf,0BAA6B,CAC7B,cAAe,CACf,eAAgB,CALhB,WAAY,CACZ,aAMF,CAEA,eAEE,kCAAoC,CACpC,mCACF,CAEA,eAEE,kCAAoC,CACpC,yBAA8B,CAC9B,iBAAkB,CAClB,OACF,CAEA,aAGE,kBAAmB,CAInB,iBAAkB,CAClB,cAAe,CAPf,YAAa,CACb,kBAAmB,CAGnB,WAAY,CADZ,sBAAuB,CAEvB,UAGF,CAEA,eACE,wBACF,CAEA,eACE,wBACF,CAEA,YACE,yBAA2B,CAE3B,gBAAiB,CADjB,iBAEF,CCvKA,YAIE,UAAY,CACZ,aAAc,CAHd,qBAAsB,CACtB,YAGF,CAIA,kBACE,aACF,CACA,qEAEE,aACF,CAEA,uDACE,qBACF,CAIA,oBAEE,wBAAyB,CADzB,2BAA4B,CAE5B,kBACF,CAEA,uBAIE,UAAW,CAFX,cAAe,CADf,mBAAoB,CAEpB,gBAAiB,CAEjB,kBACF,CAEA,yBAA2B,UAAc,CACzC,gCAAkC,UAAa,CAI/C,mBACE,0BAA4B,CAC5B,iBAAkB,CAClB,OACF,CAEA,2CACE,4BACF,CACA,kCAGE,eAAgB,CADhB,kBAAoB,CADpB,UAGF,CACA,sCACE,SACF,CACA,gJAE2D,sBAAyB,CACpF,+JAEgE,sBAAyB,CACzF,eAAiB,uBAA0B,CAM3C,yBAEE,IAAM,wBAA+B,CAEvC,CACA,iBAEE,IAAM,wBAA+B,CAEvC,CAKA,QAAU,oBAAqB,CAAE,uBAA0B,CAE3D,mBAEiC,QAAS,CAAxC,MAAO,CACP,eAAgB,CAFhB,iBAAkB,CACT,OAAQ,CAAE,SAErB,CACA,kBACE,0BAA2B,CACnB,QAAS,CACjB,iBAAkB,CADlB,KAEF,CAIA,yBAA0B,UAAY,CACtC,wBAAyB,UAAY,CACrC,aAAc,UAAY,CAC1B,aAAc,UAAY,CAC1B,sBAAwB,eAAkB,CAC1C,OAAQ,iBAAmB,CAC3B,SAAU,yBAA2B,CACrC,kBAAmB,4BAA8B,CAEjD,0BAA2B,UAAY,CACvC,uBAAwB,UAAY,CACpC,yBAA0B,UAAY,CACtC,sBAAuB,UAAY,CAKnC,6BAA8B,UAAY,CAC1C,oDAAsD,UAAY,CAClE,0BAA2B,UAAY,CACvC,yBAA0B,UAAY,CACtC,2BAA4B,UAAY,CAExC,mDAA6B,UAAY,CACzC,0BAA2B,UAAY,CACvC,0BAA2B,UAAY,CACvC,sBAAuB,UAAY,CACnC,4BAA6B,UAAY,CACzC,qBAAsB,UAAY,CAClC,uBAAwB,UAAY,CAGpC,wCAAiB,SAAY,CAE7B,sBAAwB,uBAA0B,CAIlD,+CAAgD,UAAY,CAC5D,kDAAmD,UAAY,CAC/D,wBAA0B,6BAAmC,CAC7D,kCAAmC,kBAAoB,CAOvD,YAGE,eAAiB,CADjB,eAAgB,CADhB,iBAGF,CAEA,mBAME,WAAY,CAFZ,mBAAoB,CAAE,kBAAmB,CAGzC,YAAa,CANb,yBAA2B,CAI3B,mBAAoB,CAGpB,iBAAkB,CAClB,SACF,CACA,kBAEE,mCAAoC,CADpC,iBAEF,CAKA,qGAGE,YAAa,CACb,YAAa,CAHb,iBAAkB,CAClB,SAGF,CACA,uBAEE,iBAAkB,CAClB,iBAAkB,CAFlB,OAAQ,CAAE,KAGZ,CACA,uBACE,QAAS,CAAE,MAAO,CAElB,iBAAkB,CADlB,iBAEF,CACA,6BACY,QAAS,CAAnB,OACF,CACA,0BACW,QAAS,CAAlB,MACF,CAEA,oBACsB,MAAO,CAC3B,eAAgB,CADhB,iBAAkB,CAAW,KAAM,CAEnC,SACF,CACA,mBAGE,oBAAqB,CADrB,WAAY,CAGZ,mBAAoB,CADpB,kBAAmB,CAHnB,kBAKF,CACA,2BAGE,yBAA2B,CAC3B,qBAAuB,CAHvB,iBAAkB,CAClB,SAGF,CACA,8BAEU,QAAS,CADjB,iBAAkB,CAClB,KAAM,CACN,SACF,CACA,uBAEE,cAAe,CADf,iBAAkB,CAElB,SACF,CACA,uCAAyC,wBAA8B,CACvE,4CAA8C,wBAA8B,CAE5E,kBACE,WAAY,CACZ,cACF,CACA,qEAUE,gBAAiB,CAMjB,uCAAwC,CAExC,oCAAkC,CAAlC,4BAAkC,CAblC,sBAAuB,CAF0B,eAAgB,CACjE,cAAe,CAQf,aAAc,CANd,mBAAoB,CACpB,iBAAkB,CAUlB,yCAA0C,CAC1C,iCAAkC,CAPlC,mBAAoB,CAHpB,QAAS,CAOT,gBAAiB,CADjB,iBAAkB,CALlB,eAAgB,CAIhB,SAMF,CACA,+EAEE,oBAAqB,CACrB,oBAAqB,CACrB,iBACF,CAEA,2BAE6B,QAAS,CAApC,MAAO,CADP,iBAAkB,CACT,OAAQ,CAAE,KAAM,CACzB,SACF,CAEA,uBAGE,YAAc,CAFd,iBAAkB,CAClB,SAEF,CAIA,oBAAsB,aAAgB,CAEtC,iBACE,YACF,CAGA,mGAME,kBACF,CAEA,oBAGE,QAAS,CACT,eAAgB,CAHhB,iBAAkB,CAIlB,iBAAkB,CAHlB,UAIF,CAEA,mBAEE,mBAAoB,CADpB,iBAEF,CACA,wBAA0B,eAAkB,CAE5C,uBAEE,iBAAkB,CADlB,iBAAkB,CAElB,SACF,CAKA,sEACE,kBACF,CAEA,qBAAuB,kBAAqB,CAC5C,yCAA2C,kBAAqB,CAChE,sBAAwB,gBAAmB,CAC3C,mGAA6G,kBAAqB,CAClI,kHAA4H,kBAAqB,CAEjJ,cACE,qBAAsB,CACtB,mCACF,CAGA,iBAAmB,kBAAqB,CAExC,aAEE,mCACE,iBACF,CACF,CAGA,wBAA0B,UAAa,CAGvC,6BAA+B,eAAkB,CCvVjD,2DACE,kCAAoC,CAEpC,WAAY,CADZ,uBAEF,CACA,kCAAoC,aAAgB,CACpD,iCAAmC,8BAAiC,CACpE,qCAAuC,aAAgB,CACvD,mCAAqC,6BAAuC,CAC5E,6IAAuJ,6BAAuC,CAC9L,4JAAsK,6BAAuC,CAC7M,8BAAgC,aAAgB,CAChD,4DAA+D,aAAgB,CAC/E,6BAA+B,aAAgB,CAE/C,gEAAmC,UAAa,CAChD,0BAA4B,aAAgB,CAE5C,6DAAgC,aAAgB,CAChD,2BAA6B,aAAgB,CAC7C,2BAA6B,aAAgB,CAC7C,0BAA4B,aAAgB,CAE5C,gEAAkC,aAAgB,CAClD,+BAAiC,aAAgB,CACjD,8BAAgC,aAAgB,CAChD,4DAA+D,UAAa,CAE5E,gDAAkD,6BAAmC,CACrF,0CAAwE,oBAAuB,CAAnD,yBAAqD,CC7BjG,yBACE,cACE,oBACF,CACF,CAEA,cAEE,YAAa,CACb,qBAAsB,CAFtB,UAAW,CAGX,eACF,CAEA,oBAGE,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAMnB,eAAgB,CAJhB,6BAA8B,CAC9B,iBAAkB,CAClB,kBAAmB,CACnB,gBAEF,CAEA,aACE,wBAAyB,CACzB,UACF,CAEA,mBAKE,wBAAyB,CAJzB,QAAS,CAWT,kBAAmB,CAVnB,qBAAsB,CAEtB,UAAY,CAaZ,kBAAmB,CACnB,cAAe,CAPf,WAAY,CAKZ,kBAAmB,CAFnB,gBAAiB,CACjB,eAAgB,CAZhB,YAAa,CAMb,2BAAmB,CAInB,WAAY,CAHZ,uBASF,CAEA,+BACE,aACF,CCpDA,kBACE,6BAA8B,CAG9B,eAAgB,CADhB,iBAAkB,CAGlB,kBAAmB,CAJnB,gBAAiB,CAGjB,SAEF,CAEA,wBACE,eACF,CAEA,0BACE,yBAAgC,CAEhC,kBAAmB,CACnB,cAAe,CAFf,eAAgB,CAIhB,gBAAiB,CADjB,aAAc,CAEd,eACF,CCrBA,YAOE,kBAAmB,CAHnB,kCAAuC,CAIvC,sBAAuB,CAHvB,SAIF,CAEA,iBALE,YAAa,CAJb,WAAY,CACZ,iBAAkB,CAFlB,UAqBF,CAXA,KAME,wBAAyB,CAIzB,UAAc,CAPd,qBAAsB,CAKtB,0BAA6B,CAC7B,cAEF,CAEA,WACE,YAAa,CACb,kBAAmB,CACnB,wBAAyB,CACzB,aACF,CAEA,gBACE,YAAa,CACb,qBAAsB,CAEtB,WAAY,CADZ,SAEF,CAEA,yBACE,WACE,qBAAsB,CACtB,UACF,CAEA,gBAEE,UAAW,CADX,UAEF,CAEA,kBAEE,uBAAyB,CADzB,4BAA6B,CAI7B,oBAAsB,CAFtB,wBAA0B,CAC1B,yBAA2B,CAE3B,UACF,CAEA,wBACE,iBACF,CAEA,0BACE,kBACF,CACF","sources":["index.css","components/Spinner.css","components/Button.css","components/Popup.css","containers/Header.css","routes/Landing.css","containers/CodeEditor.css","../node_modules/codemirror/lib/codemirror.css","containers/theme.css","containers/ErrorMessage.css","containers/ErrorExplanation.css","routes/App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n",".spinner {\n margin: 100px auto;\n height: 15px;\n text-align: center;\n font-size: 10px;\n /* padding-right: 5px; */\n}\n\n.spinner > div {\n background-color: white;\n height: 100%;\n width: 6px;\n display: inline-block;\n\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n\n.spinner .bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n margin-right: 3px;\n}\n\n.spinner .bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n margin-right: 3px;\n}\n\n.spinner .bounce3 {\n margin-right: 3px;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% { -webkit-transform: scale(0) }\n 40% { -webkit-transform: scale(1.0) }\n}\n\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1.0);\n transform: scale(1.0);\n }\n}\n",".primaryButton {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #D93CFF;\n border-radius: 5px;\n cursor: pointer;\n font-weight: 500;\n /* height: 40px; */\n height: 35px;\n padding-left: 15px;\n padding-right: 15px;\n}\n\n.primaryButton:hover {\n opacity: 0.75;\n}\n\n.secondaryButton {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n background-color: transparent;\n border: solid 2px rgba(255, 255, 255, 0.25);\n border-radius: 5px;\n cursor: pointer;\n padding-left: 15px;\n padding-right: 15px;\n height: 35px;\n color: white;\n box-sizing: border-box;\n}\n\n.secondaryButton:hover {\n border: solid 2px rgba(255, 255, 255, 1.0);\n}\n","@media (max-width: 1130px) {\n .popup {\n width: 75% !important;\n }\n}\n\n.popup {\n width: 50%;\n max-width: 600px;\n height: fit-content;\n background-color: #373751;\n box-shadow: 0px 2px 8px 2px rgba(32, 32, 48, 0.5);\n border-radius: 10px;\n color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 3;\n}\n\n.popupInner {\n display: flex;\n flex-direction: column;\n width: 85%;\n height: 72%;\n justify-content: space-between;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n\n.popupHeader {\n display: flex;\n flex-direction: column;\n}\n\n.popupHeading {\n font-size: 26px;\n font-weight: 900;\n letter-spacing: 1.25px;\n}\n\n.popupSubheading {\n font-size: 16px;\n font-weight: 400;\n color: rgba(255,255,255,0.65);\n width: 75%;\n letter-spacing: 0.5px;\n padding-top: 15px;\n}\n\n.popupForm {\n display: flex;\n flex-direction: column;\n padding-top: 40px;\n}\n\n.inputField {\n display: flex;\n flex-direction: row;\n height: 45px;\n align-items: center;\n}\n\n.inputText {\n border: 2px solid rgba(255, 255, 255, 0.65);\n box-sizing: border-box;\n outline: none;\n color: white;\n background-color: transparent;\n border-radius: 5px;\n resize: none;\n height: 45px;\n width: 100%;\n padding-top: 9px;\n font-size: 18px;\n font-family: \"Helvetica Neue\";\n padding-left: 15px;\n white-space: nowrap;\n overflow: hidden;\n margin-right: 15px;\n}\n\n.inputText:placeholder {\n color: rgba(255, 255, 255, 0.35);\n}\n\n.popupSubmit {\n height: 45px;\n}\n\n.instructions {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n padding-top: 10px;\n color: rgba(255, 255, 255, 0.65);\n}\n\n.instructions a {\n color: #279AF1;\n font-weight: 600;\n text-decoration: none;\n}\n\n.instructions a:hover {\n text-decoration: underline;\n}\n\n.lastStep {\n padding-top: 3px;\n}\n",".header {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 55px;\n padding-left: 30px;\n padding-right: 30px;\n justify-content: space-between;\n border-bottom: 2px solid #54546A; /* #4E4881 */\n background-color: #202030;\n border-top: 4px solid #D93CFF;\n padding-top: 2px;\n min-height: 55px;\n font-family: \"Helvetica Neue\";\n font-size: 16px;\n color: white;\n}\n\n.header .compactButtons {\n display: none;\n position: absolute;\n}\n\n@media (max-width: 700px) {\n .header .compactButtons {\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n\n .githubIcon img {\n height: 24px;\n }\n\n .githubIcon:hover {\n opacity: 0.75;\n }\n\n .keyIcon {\n margin-left: 15px;\n height: 16px;\n cursor: pointer;\n }\n\n .keyIcon:hover {\n opacity: 0.75;\n }\n\n .header .buttons {\n display: none !important;\n position: absolute !important;\n }\n}\n\n.header .buttons {\n display: flex;\n flex-direction: row;\n align-items: center;\n font-weight: 600;\n}\n\n.header .buttons > a {\n text-decoration: none;\n color: white;\n font-family: \"Helvetica Neue\";\n font-size: 16px;\n font-weight: 400;\n padding-right: 25px;\n cursor: pointer;\n}\n\n.header .buttons .headerGithubButton a {\n padding-right: 0px !important;\n text-decoration: none;\n color: white;\n font-family: \"Helvetica Neue\";\n font-size: 16px;\n font-weight: 500;\n}\n\n.apiKeyButton {\n margin-left: 15px;\n}\n\n.header .buttons > a:hover {\n opacity: 0.75;\n}\n\n.logo img {\n height: 20px;\n}\n","@font-face {\n font-family: \"Gilroy\";\n src: url(\"../styles/fonts/Gilroy-ExtraBold.otf\") format(\"opentype\");\n}\n\n.landing {\n position: absolute;\n background-color: #373751;\n height: 100%;\n width: 100%;\n overflow: scroll;\n}\n\n.landingLHS {\n /* padding-left: 60px; */\n padding-left: 5%;\n margin-top: -80px;\n}\n\n.landingBody {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-top: 125px;\n}\n\n@media (max-width: 1130px) {\n .landingLHS {\n display: flex;\n flex-direction: column;\n width: 65%;\n padding: 0 !important;\n align-items: center;\n }\n\n .landingBody {\n flex-direction: column;\n }\n\n .landingHeading {\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .landingTitle {\n font-size: 42px !important;\n }\n\n .landingSubtitle {\n font-size: 18px !important;\n }\n\n .demoImage {\n padding-top: 60px !important;\n width: 50% !important;\n }\n}\n\n@media (max-width: 700px) {\n .landingLHS {\n width: 85%;\n }\n\n .landingHeading {\n width: 100% !important;\n }\n\n .landingTitle {\n font-size: 32px !important;\n }\n\n .landingSubtitle {\n font-size: 16px !important;\n }\n\n .ctaButtons {\n flex-direction: column !important;\n }\n\n .githubButton {\n margin-left: 0px !important;\n margin-top: 15px;\n }\n\n .demoImage {\n padding-top: 40px !important;\n width: 85% !important;\n }\n}\n\n.landingHeading {\n /* width: 650px; */\n width: 85%;\n}\n\n.landingTitle {\n color: white;\n font-size: 3.25vw;\n font-weight: 900;\n font-family: \"Gilroy\";\n}\n\n.landingSubtitle {\n color: rgba(255, 255, 255, 0.65);\n font-family: \"Helvetica Neue\";\n /* font-size: 22px; */\n font-size: 1.375vw;\n font-weight: 400;\n width: 85%;\n}\n\n.ctaButtons {\n display: flex;\n flex-direction: row;\n width: fit-content;\n padding-top: 15px;\n font-weight: 600;\n /* font-size: 1.125vw !important; */\n}\n\n.ctaButtons a {\n text-decoration: none;\n}\n\n.getStartedButton {\n color: white;\n height: 45px;\n}\n\n.githubButton {\n height: 45px !important;\n /* background-color: white; */\n margin-left: 15px;\n}\n\n.githubButton a {\n text-decoration: none;\n color: white;\n}\n\n.demoImage {\n /* width: 600px; */\n width: 62.5%;\n /* padding-right: 60px; */\n padding-right: 5%;\n}\n",".codeEditorContainer {\n display: flex;\n flex-direction: column;\n height: 66%;\n overflow: auto;\n padding-left: 11px;\n padding-right: 24px;\n font-family: \"Monaco\" !important;\n font-size: 14px;\n border-bottom: 2px solid #54546A; /* #4E4881 */\n}\n\n.codeEditorHeader {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-left: 18px;\n padding-top: 20px;\n justify-content: space-between;\n height: 35px;\n}\n\n.languageDropdown__control {\n background-color: transparent !important;\n border-color: #9B9BA8 !important;\n border-radius: 5px !important;\n border-width: 2px !important;\n min-height: 35px !important;\n height: 35px !important;\n}\n\n.languageDropdown__single-value {\n color: white !important;\n font-family: \"Helvetica Neue\";\n font-size: 16px;\n font-weight: 500;\n margin-top: -5px !important;\n}\n\n.languageDropdown__indicators {\n margin-top: -2px !important;\n}\n\n.languageDropdown__indicator-separator {\n background-color: #9B9BA8 !important;\n width: 2px !important;\n margin-top: 11px !important;\n margin-bottom: 11px !important;\n}\n\n.languageDropdown__dropdown-indicator {\n color: #9B9BA8 !important;\n}\n\n/* .languageDropdown {\n font-weight: 500 !important;\n font-family: \"Helvetica Neue\" !important;\n font-size: 16px !important;\n color: white !important;\n background: none !important;\n} */\n\n.lintButton {\n font-weight: 500;\n font-family: \"Helvetica Neue\" !important;\n font-size: 16px;\n background-color: #279AF1;\n width: 45px !important;\n margin-right: 6px;\n}\n\n.codeEditor {\n padding-top: 20px;\n}\n\n.CodeMirror {\n height: 100% !important;\n}\n\n.CodeMirror-lines {\n padding-left: 20px !important;\n}\n\n.CodeMirror-line {\n padding-left: 5px !important;\n}\n\n.CodeMirror-linenumber {\n margin-left: -20px;\n}\n\n.CodeMirror-code > div {\n padding-bottom: 2px; /* Line spacing */\n}\n\n.oldLine {\n background-color: rgba(39, 154, 241, 0.25);\n}\n\n.last {\n border-radius: 0px 0px 7px 7px;\n}\n\n.newLine {\n background-color: rgb(217, 60, 255, 0.25);\n}\n\n.first {\n border-radius: 7px 7px 0px 0px;\n}\n\n.both {\n border-radius: 7px;\n}\n\n.mergeLine {\n background-color: rgba(255, 255, 255, 0.15);\n}\n\n.useMeHeader {\n flex-direction: row;\n flex-wrap: wrap;\n display: flex;\n height: 40px;\n padding: 0px 5px 0px 5px;\n align-items: center;\n font-family: \"Helvetica Neue\";\n font-size: 12px;\n font-weight: 900;\n /* letter-spacing: 0.75px; */\n}\n\n.oldCodeHeader {\n /* background-color: rgba(39, 154, 241, 0.33) !important; */\n background-color: #2F68A1 !important;\n border-radius: 7px 7px 0px 0px !important;\n}\n\n.newCodeHeader {\n /* background-color: rgb(217, 60, 255, 0.325); */\n background-color: #8839A8 !important;\n border-radius: 0px 0px 7px 7px;\n position: relative;\n top: 2px; /* Equal to line spacing */\n}\n\n.useMeButton {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 30px;\n width: 65px;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.newCodeButton {\n background-color: rgb(217, 60, 255, 1.0);\n}\n\n.oldCodeButton {\n background-color: #279AF1;\n}\n\n.useMeLabel {\n font-weight: 500 !important;\n padding-right: 5px;\n margin-left: auto;\n}\n","/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",".cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters {\n background-color: #373751 !important; /* #140C58 !important; */\n color: #E5FCFF !important;\n border: none;\n}\n.cm-s-dracula .CodeMirror-gutters { color: #140C58; }\n.cm-s-dracula .CodeMirror-cursor { border-left: solid thin #E5FCFF; }\n.cm-s-dracula .CodeMirror-linenumber { color: #8985AB; }\n.cm-s-dracula .CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }\n.cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-dracula span.cm-comment { color: #6272a4; } /* OLD */\n.cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; }\n.cm-s-dracula span.cm-number { color: #bd93f9; }\n.cm-s-dracula span.cm-variable { color: #FFF; }\n.cm-s-dracula span.cm-variable-2 { color: #FFF; }\n.cm-s-dracula span.cm-def { color: #279AF1; }\n.cm-s-dracula span.cm-operator { color: #D93CFF; }\n.cm-s-dracula span.cm-keyword { color: #D93CFF; }\n.cm-s-dracula span.cm-atom { color: #bd93f9; }\n.cm-s-dracula span.cm-meta { color: #f8f8f2; }\n.cm-s-dracula span.cm-tag { color: #D93CFF; }\n.cm-s-dracula span.cm-attribute { color: #50fa7b; }\n.cm-s-dracula span.cm-qualifier { color: #50fa7b; }\n.cm-s-dracula span.cm-property { color: #66d9ef; }\n.cm-s-dracula span.cm-builtin { color: #45F0DF; }\n.cm-s-dracula span.cm-variable-3, .cm-s-dracula span.cm-type { color: #FFF; }\n\n.cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); }\n.cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }\n","@media (max-width: 700px) {\n .errorMessage {\n height: 50% !important;\n }\n}\n\n.errorMessage {\n height: 33%;\n display: flex;\n flex-direction: column;\n overflow: scroll;\n}\n\n.errorMessageHeader {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-left: 30px;\n padding-right: 30px;\n padding-top: 20px;\n font-weight: 500;\n}\n\n.debugButton {\n background-color: #D93CFF;\n width: 45px;\n}\n\n.errorMessageInput {\n border: 0;\n box-sizing: border-box;\n outline: none;\n color: white;\n background-color: #54546A; /* #373171 */\n padding-left: 20px;\n padding-top: 15px;\n padding-bottom: 15px;\n padding-right: 15px;\n width: calc(100% - 60px);\n height: 100%;\n border-radius: 10px;\n resize: none;\n margin-left: 30px;\n margin-top: 20px;\n margin-bottom: 15px;\n font-family: Monaco;\n font-size: 14px;\n}\n\n.errorMessageInput:placeholder {\n color: #D4D4D9;\n}\n",".errorExplanation {\n border-left: 2px solid #54546A; /* #4E4881 */\n padding-top: 20px;\n padding-left: 30px;\n font-weight: 500;\n width: 33%;\n padding-right: 30px;\n}\n\n.errorExplanationHeader {\n padding-top: 8px;\n}\n\n.errorExplanationHeader p {\n color: rgba(255, 255, 255, 0.75);\n font-weight: 400;\n font-family: Monaco;\n font-size: 14px;\n overflow: auto;\n line-height: 22px;\n padding-top: 6px;\n}\n",".popupLayer {\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: rgba(32, 32, 48, 0.8);\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.app {\n position: absolute;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: #373751; /* #140C58 */\n\n font-family: \"Helvetica Neue\";\n font-size: 16px;\n color: #FFFFFF;\n}\n\n.app .body {\n display: flex;\n flex-direction: row;\n height: calc(100% - 55px);\n overflow: auto;\n}\n\n.app .body .lhs {\n display: flex;\n flex-direction: column;\n width: 66%;\n height: 100%;\n}\n\n@media (max-width: 700px) {\n .app .body {\n flex-direction: column;\n width: 100%;\n }\n\n .app .body .lhs {\n width: 100%;\n height: 66%;\n }\n\n .errorExplanation {\n border-top: 2px solid #54546A;\n border-left: 0 !important;\n padding-left: 0 !important;\n padding-right: 0 !important;\n height: 34% !important;\n width: 100%;\n }\n\n .errorExplanationHeader {\n padding-left: 30px;\n }\n\n .errorExplanationHeader p {\n padding-right: 30px;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build/static/js/main.1a8f135d.js b/build/static/js/main.1a8f135d.js new file mode 100644 index 0000000..90c3fb1 --- /dev/null +++ b/build/static/js/main.1a8f135d.js @@ -0,0 +1,3 @@ +/*! For license information please see main.1a8f135d.js.LICENSE.txt */ +!function(){var e={4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var r=n(3589),i=n(7297),o=n(9301),a=n(9774),s=n(1804),l=n(9145),u=n(5411),c=n(6467),f=n(6789),d=n(9346);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var x=s(e.baseURL,e.url);function k(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),g()}),(function(e){n(e),g()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(k)},y.onabort=function(){y&&(n(c("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(c("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||u(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),y.send(h)}))}},8036:function(e,t,n){"use strict";var r=n(3589),i=n(4049),o=n(3773),a=n(777);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(1709));s.Axios=o,s.Cancel=n(9346),s.CancelToken=n(6857),s.isCancel=n(5517),s.VERSION=n(7600).version,s.all=function(e){return Promise.all(e)},s.spread=n(8089),s.isAxiosError=n(9580),e.exports=s,e.exports.default=s},9346:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},6857:function(e,t,n){"use strict";var r=n(9346);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.26.1"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7835:function(e,t,n){"use strict";var r=n(7600).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},3589:function(e,t,n){"use strict";var r=n(4049),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n2),g=/Android/.test(e),y=v||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),k=d&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(d=!1,l=!0);var S=b&&(u||d&&(null==k||k<12.11)),C=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,O=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function P(e,t){return L(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}v?I=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(I=function(e){try{e.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function Q(e){for(;X.length<=e;)X.push(J(X)+" ");return X[e]}function J(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function fe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var de=null;function pe(e,t,n){var r;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ce(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Le(e){Ee(e),Te(e)}function Pe(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var _e,Ae,De=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Re(e){if(null==_e){var t=M("span","\u200b");P(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_e=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=_e?M("span","\u200b"):M("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Ae)return Ae;var t=P(e,document.createTextNode("A\u062eA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return L(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}var Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},je=function(){var e=M("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),ze=null;function Ue(e){if(null!=ze)return ze;var t=P(e,M("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return ze=Math.abs(n.left-r.left)>1}var He={},Be={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),He[e]=t}function Ve(e,t){Be[e]=t}function $e(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=$e(t);var n=He[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(Ke.hasOwnProperty(t.name)){var i=Ke[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ke={};function Ge(e,t){U(t,Ke.hasOwnProperty(e)?Ke[e]:Ke[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?st(n,Ze(e,n).text.length):mt(t,Ze(e,t.line).text.length)}function mt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function vt(e,t){for(var n=[],r=0;r=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function bt(e,t,n,r){var i=[e.state.modeGen],o={};Lt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Lt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,r.state),o=bt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function xt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new yt(r,!0,t);var o=Pt(e,t,n),a=o>r.first&&Ze(r,o-1).stateAfter,s=a?yt.fromSaved(r,a,o):new yt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){kt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof gt?new yt(e,Ye(e.mode,t.state),n,t.lookAhead):new yt(e,Ye(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Et=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Tt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ze(a,(t=ht(a,t)).line),u=xt(e,t.line,n),c=new Je(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&kt(e,t,r,f.pos),f.pos=t.length,l=null):l=Ot(Ct(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;ua;--s){if(s<=o.first)return o.first;var l=Ze(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof gt?u.lookAhead:0)<=o.modeFrontier))return s;var c=H(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ze(e,r).stateAfter;if(i&&(!(i instanceof gt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Nt(a,o.from,s?null:o.to))}}return r}function Ut(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var c=[l,1],f=lt(u.from,s.from),d=lt(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Vt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Gt(n,o.marker)<0)&&(n=o.marker)}return n}function Zt(e,t,n,r,i){var o=Ze(e,t),a=At&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(u.to,n)>=0:lt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(u.from,r)<=0:lt(u.from,r)<0)))return!0}}}function en(e){for(var t;t=Xt(e);)e=t.find(-1,!0).line;return e}function tn(e){for(var t;t=Qt(e);)e=t.find(1,!0).line;return e}function nn(e){for(var t,n;t=Qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function rn(e,t){var n=Ze(e,t),r=en(n);return n==r?t:rt(r)}function on(e,t){if(t>e.lastLine())return t;var n,r=Ze(e,t);if(!an(e,r))return t;for(;n=Qt(r);)r=n.find(1,!0).line;return rt(r)+1}function an(e,t){var n=At&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var fn=function(e,t,n){this.text=e,$t(this,t),this.height=n?n(this):1};function dn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),$t(e,n);var i=r?r(e):1;i!=e.height&&nt(e,i)}function pn(e){e.parent=null,Vt(e)}fn.prototype.lineNo=function(){return rt(this)},Ce(fn);var hn={},mn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?mn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=_("span",null,null,l?"padding-right: .1px":null),r={pre:_("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=bn,Ne(e.display.measure)&&(a=me(o,e.doc.direction))&&(r.addToken=xn(r.addToken,a)),r.map=[],Sn(o,r,wt(e,o,t!=e.display.externalMeasured&&rt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Re(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function yn(e){var t=M("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?wn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var v=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(M("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=u.appendChild(M("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=u.appendChild(M("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(M("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var x=M("span",[u],w,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&x.setAttribute(k,l[k]);return e.content.appendChild(x)}e.content.appendChild(u)}}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&f.from<=u);d++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function kn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,p=i.length,h=0,m=1,v="",g=0;;){if(g==h){l=u=c=s="",d=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wh||k.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&g>x.to&&(g=x.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&x.from==h&&(c+=" "+k.startStyle),k.endStyle&&x.to==g&&(b||(b=[])).push(k.endStyle,x.to),k.title&&((d||(d={})).title=k.title),k.attributes)for(var S in k.attributes)(d||(d={}))[S]=k.attributes[S];k.collapsed&&(!f||Gt(f.marker,k)<0)&&(f=x)}else x.from>h&&g>x.from&&(g=x.from)}if(b)for(var C=0;C=p)break;for(var T=Math.min(p,g);;){if(v){var O=h+v.length;if(!f){var L=O>T?v.slice(0,T-h):v;t.addToken(t,L,a?a+l:l,c,h+L.length==g?u:"",s,d)}if(O>=T){v=v.slice(T-h),h=T;break}h=O,c=""}v=i.slice(o,o=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var P=1;P2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function er(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function tr(e,t){var n=rt(t=en(t)),r=e.display.externalMeasured=new Cn(e.doc,t,n);r.lineN=n;var i=r.built=gn(e,r);return r.text=i.pre,P(e.display.lineMeasure,i.pre),r}function nr(e,t,n,r){return or(e,ir(e,t),n,r)}function rr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function cr(e,t,n,r){var i,o=lr(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(f=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Ar(e.display),top:h.top,bottom:h.bottom}:sr}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=pe(s,l,u),d=de,p=c(l,f,"before"==u);return null!=d&&(p.other=c(l,d,"before"!=u)),p}function kr(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Ar(e.display)*t.ch);var r=Ze(e.doc,t.line),i=ln(r)+Kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Sr(e,t,n,r,i){var o=st(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Cr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Sr(r.first,0,null,-1,-1);var i=it(r,n),o=r.first+r.size-1;if(i>o)return Sr(r.first+r.size-1,Ze(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ze(r,i);;){var s=Lr(e,a,i,t,n),l=Jt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ze(r,i=u.line)}}function Er(e,t,n,r){r-=gr(t);var i=t.text.length,o=ce((function(t){return or(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ce((function(t){return or(e,n,t).top>r}),o,i)}}function Tr(e,t,n,r){return n||(n=ir(e,t)),Er(e,t,n,yr(e,t,or(e,n,r),"line").top)}function Or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Lr(e,t,n,r,i){i-=ln(t);var o=ir(e,t),a=gr(t),s=0,l=t.text.length,u=!0,c=me(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Mr:Pr)(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,p,h=null,m=null,v=ce((function(t){var n=or(e,o,t);return n.top+=a,n.bottom+=a,!!Or(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left=w.bottom?1:0}return Sr(n,v=ue(t.text,v,1),p,g,r-d)}function Pr(e,t,n,r,i,o,a){var s=ce((function(s){var l=i[s],u=1!=l.level;return Or(xr(e,st(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=xr(e,st(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Or(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function Mr(e,t,n,r,i,o,a){var s=Er(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||p.to<=l)){var h=or(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(c=p,f=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function _r(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ar){ar=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ar.appendChild(document.createTextNode("x")),ar.appendChild(M("br"));ar.appendChild(document.createTextNode("x"))}P(e.measure,ar);var n=ar.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function Ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");P(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Dr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Rr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Rr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Nr(e){var t=_r(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ar(e.display)-3);return function(i){if(an(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Ze(e.doc,u.line).text).length==u.ch){var c=H(l,l.length,e.options.tabSize)-l.length;u=st(u.line,Math.max(0,Math.round((o-Yn(e.display).left)/Ar(e.display))-c))}return u}function jr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)At&&rn(e.doc,t)i.viewFrom?Hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Hr(e);else if(t<=i.viewFrom){var o=Br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Hr(e)}else if(n>=i.viewTo){var a=Br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Hr(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(En(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Hr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[jr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function Hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var i,o=jr(e,t),a=e.display.view;if(!At||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;rn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=En(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=En(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,jr(e,n)))),r.viewTo=n}function Vr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(M("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Gr(e,t){return e.top-t.top||e.left-t.left}function Yr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Yn(e.display),s=a.left,l=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=Ze(i,t),d=f.text.length;function p(n,r){return wr(e,st(t,n),"div",f,r)}function h(t,n,r){var i=Tr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=me(f,i.direction);return fe(m,n||0,null==r?d:r,(function(e,t,i,f){var v="ltr"==i,g=p(e,v?"left":"right"),y=p(t-1,v?"right":"left"),b=null==n&&0==e,w=null==r&&t==d,x=0==f,k=!m||f==m.length-1;if(y.top-g.top<=3){var S=(u?w:b)&&k,C=(u?b:w)&&x?s:(v?g:y).left,E=S?l:(v?y:g).right;c(C,g.top,E-C,g.bottom)}else{var T,O,L,P;v?(T=u&&b&&x?s:g.left,O=u?l:h(e,i,"before"),L=u?s:h(t,i,"after"),P=u&&w&&k?l:y.right):(T=u?h(e,i,"before"):s,O=!u&&b&&x?l:g.right,L=!u&&w&&k?s:y.left,P=u?h(t,i,"after"):l),c(T,g.top,O-T,g.bottom),g.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ei(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Zr(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ei(e))}),100)}function Zr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Xr(e))}function ei(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ti(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var g=Math.ceil(d/Ar(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ni(e){if(e.widgets)for(var t=0;t=a&&(o=it(t,ln(Ze(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ii(e,t){if(!xe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=M("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Kn(e.display))+"px;\n height: "+(t.bottom-t.top+Xn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function oi(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=xr(e,t),l=n&&n!=t?xr(e,n):s,u=si(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(hi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(vi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ai(e,t){var n=si(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&vi(e,n.scrollLeft)}function si(e,t){var n=e.display,r=_r(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Jn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Gn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=Qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function li(e,t){null!=t&&(di(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ui(e){di(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ci(e,t,n){null==t&&null==n||di(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function fi(e,t){di(e),e.curOp.scrollToPos=t}function di(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pi(e,kr(e,t.from),kr(e,t.to),t.margin))}function pi(e,t,n,r){var i=si(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ci(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$i(e,{top:t}),mi(e,t,!0),n&&$i(e),Fi(e,100))}function mi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var yi=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},yi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},yi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},yi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bi=function(){};function wi(e,t){t||(t=gi(e));var n=e.display.barWidth,r=e.display.barHeight;xi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ti(e),xi(e,gi(e)),n=e.display.barWidth,r=e.display.barHeight}function xi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}bi.prototype.update=function(){return{bottom:0,right:0}},bi.prototype.setScrollLeft=function(){},bi.prototype.setScrollTop=function(){},bi.prototype.clear=function(){};var ki={native:yi,null:bi};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ki[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vi(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ci=0;function Ei(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ci,markArrays:null},On(e.curOp)}function Ti(e){var t=e.curOp;t&&Pn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new zi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Pi(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function Mi(e){var t=e.cm,n=t.display;e.updatedDisplay&&ti(t),e.barMeasure=gi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=nr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function _i(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=xt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,l=bt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dn)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Di(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Vr(e))return!1;Xi(e)&&(Hr(e),t.dims=Dr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),At&&(o=rn(e.doc,o),a=on(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,o,a),n.viewOffset=ln(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Hi(e);return l>4&&(n.lineDiv.style.display="none"),qi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Bi(u),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function Vi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=ri(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-Jn(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Wi(e,t))break;ti(e);var i=gi(e);$r(e),wi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $i(e,t){var n=new zi(e,t);if(Wi(e,n)){ti(e),Vi(e,n);var r=gi(e);$r(e),wi(e,r),Gi(e,r),n.finish()}}function qi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(p=!1),Dn(e,d,c,n)),p&&(L(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(at(e.options,c)))),a=d.node.nextSibling}else{var h=Hn(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}function Ki(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",_n(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Xn(e)+"px"}function Yi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Rr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),Ji(o),r.init(o)}zi.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},zi.prototype.finish=function(){for(var e=0;eu.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,v=s.view;m!=u;m=m.parentNode)for(var g=0;g=0&<(e,r.to())<=0)return n}return-1};var so=function(e,t){this.anchor=e,this.head=t};function lo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return lt(e.from(),t.from())})),n=W(t,i);for(var o=1;o0:l>=0){var u=dt(s.from(),a.from()),c=ft(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new so(f?c:u,f?u:c))}}return new ao(t,n)}function uo(e,t){return new ao([new so(e,t||e)],0)}function co(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return co(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=co(t).ch-t.to.ch),st(n,r)}function po(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}_n(e,"change",e,t)}function wo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Lo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(i,i.lastOp==r)))a=J(o.changes),0==lt(t.from,t.to)&&0==lt(t.from,a.to)?a.to=co(t):o.changes.push(Eo(e,t));else{var l=J(i.done);for(l&&l.ranges||_o(e.sel,i.done),o={changes:[Eo(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||we(e,"historyAdded")}function Po(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Po(e,o,J(i.done),t))?i.done[i.done.length-1]=t:_o(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function _o(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ao(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Do(e){if(!e)return null;for(var t,n=0;n-1&&(J(s)[f]=u[f],delete u[f])}}}return r}function Fo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=lt(t,i)<0;o!=lt(n,i)<0?(i=t,t=n):o!=lt(t,n)<0&&(t=n)}return new so(i,t)}return new so(n||t,t)}function jo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new ao([Fo(e.sel.primary(),t,n,i)],0),r)}function zo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(we(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(f=Qo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=lt(f,n))&&(r<0?d<0:d>0))return Yo(e,f,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=Qo(e,p,r,p.line==t.line?o:null)),p?Yo(e,p,t,r,i):null}}return t}function Xo(e,t,n,r,i){var o=r||1,a=Yo(e,t,n,o,i)||!i&&Yo(e,t,n,o,!0)||Yo(e,t,n,-o,i)||!i&&Yo(e,t,n,-o,!0);return a||(e.cantEdit=!0,st(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,st(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line=0;--i)ta(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ta(e,t)}}function ta(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var n=po(e,t);Lo(e,t,n,e.cm?e.cm.curOp.id:NaN),ia(e,t,n,Ht(e,t));var r=[];wo(e,(function(e,n){n||-1!=W(r,e.history)||(ua(e.history,t),r.push(e.history)),ia(e,t,null,Ht(e,t))}))}}function na(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--p){var h=d(p);if(h)return h.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new ao(Z(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){zr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:st(o,Ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),n||(n=po(e,t)),e.cm?oa(e.cm,t,r):bo(e,t,r),$o(e,n,q),e.cantEdit&&Xo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function oa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=rt(en(Ze(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ke(e),bo(r,t,n,Nr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=un(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Mt(r,o.line),Fi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?zr(e):o.line!=a.line||1!=t.text.length||yo(e.doc,t)?zr(e,o.line,a.line+1,u):Ur(e,o.line,"text");var c=Se(e,"changes"),f=Se(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&_n(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function aa(e,t,n,r,i){var o;r||(r=n),lt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ea(e,{from:n,to:r,text:t,origin:i})}function sa(e,t,n,r){n1||!(this.children[0]instanceof fa))){var s=[];this.collapse(s),this.children=[new fa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=_("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Zt(e,t.line,t,n,o)||t.line!=n.line&&Zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rt()}o.addToHistory&&Lo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&en(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&nt(r,0),jt(r,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){an(e,t)&&nt(t,0)})),o.clearOnEnter&&ge(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Dt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)zr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Ur(u,c,"text");o.atomic&&Ko(u.doc),_n(u,"markerAdded",u,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ei(e),Se(this,"clear")){var n=this.find();n&&_n(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&zr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ko(e.doc)),e&&_n(e,"markerCleared",e,this,r,i),t&&Ti(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)ea(this,r[l]);s?Wo(this,s):this.cm&&ui(this.cm)})),undo:Ii((function(){na(this,"undo")})),redo:Ii((function(){na(this,"redo")})),undoSelection:Ii((function(){na(this,"undo",!0)})),redoSelection:Ii((function(){na(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),ht(this,st(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),$o(t.doc,uo(n,n)),d)for(var p=0;p=0;t--)aa(e.doc,"",r[t].from,r[t].to,"+delete");ui(e)}))}function Ya(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xa(e,t,n){var r=Ya(e,t.ch,n);return null==r?null:new st(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=ir(t,n);a=i<0?n.text.length-1:0;var c=or(t,u,a).top;a=ce((function(e){return or(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=i<0?s.to:s.from;return new st(r,a,l)}}return new st(r,i<0?n.text.length:0,i<0?"before":"after")}function Ja(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return Xa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=pe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var p=f?"before":"after";return new st(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new st(n.line,l(e,1),"before"):new st(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,u(v)))?null:m}Ua.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ua.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ua.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ua.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ua.default=b?Ua.macDefault:Ua.pcDefault;var Za={selectAll:Jo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Ga(e,(function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new st(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ze(e.doc,i.line-1).text;a&&(i=new st(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),st(i.line-1,a.length-1),i,"+transpose"))}n.push(new so(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Di(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(lt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?Cs(e,r,t,o):Ts(e,r,t,o)}function Cs(e,t,n,r){var i=e.display,o=!1,u=Ri(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Jr(e)),be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),o||(Ee(t),r.addNew||jo(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",f),ge(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Es(e,t,n){if("char"==n)return new so(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new so(st(t.line,0),ht(e.doc,st(t.line+1,0)));var r=n(e,t);return new so(r.from,r.to)}function Ts(e,t,n,r){a&&Jr(e);var i=e.display,o=e.doc;Ee(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new so(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new so(n,n)),n=Fr(e,t,!0,!0),l=-1;else{var f=Es(e,n,r.unit);s=r.extend?Fo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,Vo(o,lo(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Vo(o,lo(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Uo(o,l,s,K):(l=0,Vo(o,new ao([s],0),K),u=o.sel);var d=n;function p(t){if(0!=lt(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=H(Ze(o,n.line).text,n.ch,a),f=H(Ze(o,t.line).text,t.ch,a),p=Math.min(c,f),h=Math.max(c,f),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Ze(o,m).text,y=Y(g,p,a);p==h?i.push(new so(st(m,y),st(m,y))):g.length>y&&i.push(new so(st(m,y),st(m,Y(g,h,a))))}i.length||i.push(new so(n,n)),Vo(o,lo(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=Es(e,t,r.unit),k=w.anchor;lt(x.anchor,k)>0?(b=x.head,k=dt(w.from(),x.anchor)):(b=x.anchor,k=ft(w.to(),x.head));var S=u.ranges.slice(0);S[l]=Os(e,new so(ht(o,k),b)),Vo(o,lo(e,S,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=Fr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=lt(a,d)){e.curOp.focus=D(F(e)),p(a);var s=ri(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(Ri(e,(function(){m==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(Ee(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ri(e,(function(e){0!==e.buttons&&Me(e)?v(e):g(e)})),b=Ri(e,g);e.state.selectingText=b,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b)}function Os(e,t){var n=t.anchor,r=t.head,i=Ze(e.doc,n.line);if(0==lt(n,r)&&n.sticky==r.sticky)return t;var o=me(i);if(!o)return t;var a=pe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=pe(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=o[u+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new so(new st(n.line,h,m),r)}function Ls(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ee(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,n))return Oe(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return we(e,n,e,it(e.doc,o),e.display.gutterSpecs[l].className,t),Oe(t)}}function Ps(e,t){return Ls(e,t,"gutterClick",!0)}function Ms(e,t){qn(e.display,t)||_s(e,t)||xe(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function _s(e,t){return!!Se(e,"gutterContextMenu")&&Ls(e,t,"gutterContextMenu",!1)}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}ys.prototype.compare=function(e,t,n){return this.time+gs>e&&0==lt(t,this.pos)&&n==this.button};var Ds={toString:function(){return"CodeMirror.Init"}},Rs={},Ns={};function Is(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ds&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ds,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,vo(e)}),!0),n("indentUnit",2,vo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){go(e),hr(e),zr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(st(r,o))}r++}));for(var i=n.length-1;i>=0;i--)aa(e.doc,t,n[i],st(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ds&&e.refresh()})),n("specialCharPlaceholder",yn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){As(e),Zi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ka(t),i=n!=Ds&&Ka(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,js,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),Zi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Rr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return wi(e)}),!0),n("scrollbarStyle","native",(function(e){Si(e),wi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),Zi(e)}),!0),n("firstLineNumber",1,Zi,!0),n("lineNumberFormatter",(function(e){return e}),Zi,!0),n("showCursorWhenSelecting",!1,$r,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ei(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,$r,!0),n("singleCursorHeightPerLine",!0,$r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,go,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fs(e,t,n){if(!t!=!(n&&n!=Ds)){var r=e.display.dragFunctions,i=t?ge:be;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function js(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),cn(e)),Ir(e),zr(e),hr(e),setTimeout((function(){return wi(e)}),100)}function zs(e,t){var n=this;if(!(this instanceof zs))return new zs(e,t);this.options=t=t?U(t):{},U(Rs,t,!1);var r=t.value;"string"==typeof r?r=new Ea(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new zs.inputStyles[t.inputStyle](this),o=this.display=new eo(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Us(this),Da(),Ei(this),this.curOp.forceUpdate=!0,xo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Zr(n)}),20):ei(this),Ns)Ns.hasOwnProperty(u)&&Ns[u](this,t[u],Ds);Xi(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}ge(t.scroller,"touchstart",(function(i){if(!xe(e,i)&&!o(i)&&!Ps(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new so(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new so(st(a.line,0),ht(e.doc,st(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ee(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return oo(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return oo(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){xe(e,t)||Le(t)},over:function(t){xe(e,t)||(Pa(e,t),Le(t))},start:function(t){return La(e,t)},drop:Ri(e,Oa),leave:function(t){xe(e,t)||Ma(e)}};var u=t.input.getField();ge(u,"keyup",(function(t){return ps.call(e,t)})),ge(u,"keydown",Ri(e,fs)),ge(u,"keypress",Ri(e,hs)),ge(u,"focus",(function(t){return Zr(e,t)})),ge(u,"blur",(function(t){return ei(e,t)}))}zs.defaults=Rs,zs.optionHandlers=Ns;var Hs=[];function Bs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=xt(e,t).state:n="prev");var a=e.options.tabSize,s=Ze(o,t),l=H(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==$||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?H(Ze(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(da,l=Ie(t),u=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(r.ranges.length%Ws.text.length==0){u=[];for(var c=0;c=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=st(h.line,h.ch-n):e.state.overwrite&&!s?m=st(m.line,Math.min(Ze(o,m.line).text.length,m.ch+J(l).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==l.join("\n")&&(h=m=st(h.line,0)));var v={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ea(e.doc,v),_n(e,"inputRead",e,v)}t&&!s&&Ks(e,t),ui(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Di(t,(function(){return $s(t,n,0,null,"paste")})),!0}function Ks(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Bs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Bs(e,i.head.line,"smart"));a&&_n(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],n=[],r=0;rn&&(Bs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ui(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Uo(this.doc,r,new so(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,st(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=wt(this,Ze(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ze(this.doc,e)}else r=e;return yr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ln(r):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return Ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=xr(this,ht(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ai(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ni(fs),triggerOnKeyPress:Ni(hs),triggerOnKeyUp:ps,triggerOnMouseDown:Ni(ws),execCommand:function(e){if(Za.hasOwnProperty(e))return Za[e].call(null,this)},triggerElectric:Ni((function(e){Ks(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Ir(this),we(this,"refresh",this)})),swapDoc:Ni((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xo(this,e),hr(this),this.display.input.reset(),ci(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,_n(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Js(e,t,n,r,i){var o=t,a=n,s=Ze(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),s=Ze(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?Ja(e.cm,s,t,n):Xa(s,t,n);if(null==a){if(o||!u())return!1;t=Qa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",v=oe(m,p)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||v||(v="s"),f&&f!=v){n<0&&(n=1,c(),t.sticky="after");break}if(v&&(f=v),n>0&&!c(!h))break}var g=Xo(e,t,o,a,!0);return ut(o,g)&&(g.hitSide=!0),g}function Zs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,j(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*_r(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Cr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var n=rr(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),i=er(n,r,t.line),o=me(r,e.doc.direction),a="left";o&&(a=pe(o,t.ch)%2?"right":"left");var s=lr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function nl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rl(e,t){return t&&(e.bad=!0),e}function il(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function f(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(st(r,0),st(i+1,0),u(+p));return void(h.length&&(o=h[0].find(0))&&f(et(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var v=0;v=t.display.viewTo||o.line=t.display.viewFrom&&tl(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=st(a.line-1,Ze(r.doc,a.line-1).length)),s.ch==Ze(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=jr(r,a.line))?(t=rt(i.view[0].line),n=i.view[0].node):(t=rt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=jr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=rt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(il(r,n,u,t,l)),d=et(r.doc,st(t,0),st(l,Ze(r.doc,l).text.length));f.length>1&&d.length>1;)if(J(f)==J(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=st(t,p),k=st(l,d.length?J(d).length-h:0);return f.length>1||f[0]||lt(x,k)?(aa(r.doc,f,x,k,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Di(this.cm,(function(){return zr(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ri(this.cm,$s)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if((t=t?U(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=zs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function ul(e){e.off=be,e.on=ge,e.wheelEventPixels=io,e.Doc=Ea,e.splitLines=Ie,e.countColumn=H,e.findColumn=Y,e.isWordChar=ie,e.Pass=$,e.signal=we,e.Line=fn,e.changeEnd=co,e.scrollbarModel=ki,e.Pos=st,e.cmpPos=lt,e.modes=He,e.mimeModes=Be,e.resolveMode=$e,e.getMode=qe,e.modeExtensions=Ke,e.extendMode=Ge,e.copyState=Ye,e.startState=Qe,e.innerMode=Xe,e.commands=Za,e.keyMap=Ua,e.keyName=qa,e.isModifierKey=Va,e.lookupKey=Wa,e.normalizeKeyMap=Ba,e.StringStream=Je,e.SharedTextMarker=ba,e.TextMarker=ga,e.LineWidget=pa,e.e_preventDefault=Ee,e.e_stopPropagation=Te,e.e_stop=Le,e.addClass=R,e.contains=A,e.rmClass=O,e.keyNames=Ia}sl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Gs(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),I(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),ge(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){xe(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",(function(t){if(!qn(e,t)&&!xe(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ge(e.lineSpace,"selectstart",(function(t){qn(e,t)||Ee(t)})),ge(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Xs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ys(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=qr(e);if(e.options.moveInputWithCursor){var i=xr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},sl.prototype.showSelection=function(e){var t=this.cm.display;P(t.cursorDiv,e.cursors),P(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&I(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},sl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Fr(n,e),u=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Ri(n,Vo)(n.doc,uo(o),q);var c,f=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),C?(Le(e),ge(window,"mouseup",(function e(){be(window,"mouseup",e),setTimeout(v,20)}))):setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Ri(n,Jo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Is(zs),Qs(zs);var cl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Ea.prototype)Ea.prototype.hasOwnProperty(fl)&&W(cl,fl)<0&&(zs.prototype[fl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ea.prototype[fl]));return Ce(Ea),zs.inputStyles={textarea:sl,contenteditable:el},zs.defineMode=function(e){zs.defaults.mode||"null"==e||(zs.defaults.mode=e),We.apply(this,arguments)},zs.defineMIME=Ve,zs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),zs.defineMIME("text/plain","null"),zs.defineExtension=function(e,t){zs.prototype[e]=t},zs.defineDocExtension=function(e,t){Ea.prototype[e]=t},zs.fromTextArea=ll,ul(zs),zs.version="5.65.11",zs}()},8376:function(e,t,n){!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/,P=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,M=l.isReservedIdentifier||!1;function _(e,t){var n=e.next();if(w[n]){var r=w[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n)return t.tokenize=A(n),t.tokenize(e,t);if(T.test(n)){if(e.backUp(1),e.match(O))return"number";e.next()}if(E.test(n))return u=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=D,D(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(L.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(L););return"operator"}if(e.eatWhile(P),C)for(;e.match(C);)e.eatWhile(P);var i=e.current();return s(h,i)?(s(g,i)&&(u="newstatement"),s(y,i)&&(c=!0),"keyword"):s(m,i)?"type":s(v,i)||M&&M(i)?(s(g,i)&&(u="newstatement"),"builtin"):s(b,i)?"atom":"variable"}function A(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!x)&&(n.tokenize=null),"string"}}function D(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function R(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-f,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return R(e,t),null;u=c=null;var s=(t.tokenize||_)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==u)n(t,e.column(),"}");else if("["==u)n(t,e.column(),"]");else if("("==u)n(t,e.column(),")");else if("}"==u){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else u==a.type?r(t):k&&(("}"==a.type||"top"==a.type)&&";"!=u||"statement"==a.type&&"newstatement"==u)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var f=w.token(e,t,s);void 0!==f&&(s=f)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,R(e,t),s},indent:function(t,n){if(t.tokenize!=_&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(w.indent){var a=w.indent(t,r,n,f);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:d):!r.align||p&&")"==r.type?")"!=r.type||o?r.indented+(o?0:f)+(o||!s||/^(?:case|default)\b/.test(n)?0:f):r.indented+d:r.column+(o?0:1)},electricInput:S?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",f="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",d=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(d,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var v="case do else for if switch while struct enum union",g="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2)&&"_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase())}function x(e){return e.eatWhile(/[\w\.']/),"number"}function k(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=E,E(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function S(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function C(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function E(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function T(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=O,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=L(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),T("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=P(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=L(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),T(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),T("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(v),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),T("text/x-objectivec",{name:"clike",keywords:a(l+" "+c),types:m,builtin:a(f),blockKeywords:a(v+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(g+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),T("text/x-objectivec++",{name:"clike",keywords:a(l+" "+c+" "+u),types:m,builtin:a(f),blockKeywords:a(v+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(g+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b,u:k,U:k,L:k,R:k,0:x,1:x,2:x,3:x,4:x,5:x,6:x,7:x,8:x,9:x,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&S(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),T("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var M=null;function _(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){M=_(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}T("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=_(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!M||!e.match("`"))&&(t.tokenize=M,M=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(3668))},5683:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(p.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=g,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),v("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return v("comment","comment")}function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}var x="([{}])";function k(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var S={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function C(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function T(e,t,n,r,i){var o=e.cc;for(O.state=e,O.stream=i,O.marked=null,O.cc=o,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?$:W)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return O.marked?O.marked:"variable"==n&&E(e,r)?"variable-2":t}}var O={state:null,column:null,marked:null,cc:null};function L(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function P(){return L.apply(null,arguments),!0}function M(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=O.state;if(O.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=A(e,t.context);if(null!=r)return void(t.context=r)}else if(!M(e,t.localVars))return void(t.localVars=new N(e,t.localVars));n.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new R(n,t.vars,!0):null}return M(e,t.vars)?t:new R(t.prev,new N(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function R(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var I=new N("this",new N("arguments",null));function F(){O.state.context=new R(O.state.context,O.state.localVars,!1),O.state.localVars=I}function j(){O.state.context=new R(O.state.context,O.state.localVars,!0),O.state.localVars=null}function z(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}function U(e,t){var n=function(){var n=O.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new C(r,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function H(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(n){return n==e?P():";"==e||"}"==n||")"==n||"]"==n?L():P(t)}return t}function W(e,t){return"var"==e?P(U("vardef",t),Le,B(";"),H):"keyword a"==e?P(U("form"),K,W,H):"keyword b"==e?P(U("form"),W,H):"keyword d"==e?O.stream.match(/^\s*$/,!1)?P():P(U("stat"),Y,B(";"),H):"debugger"==e?P(B(";")):"{"==e?P(U("}"),j,de,H,z):";"==e?P():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==H&&O.state.cc.pop()(),P(U("form"),K,W,H,Re)):"function"==e?P(je):"for"==e?P(U("form"),j,Ne,W,z,H):"class"==e||c&&"interface"==t?(O.marked="keyword",P(U("form","class"==e?e:t),We,H)):"variable"==e?c&&"declare"==t?(O.marked="keyword",P(W)):c&&("module"==t||"enum"==t||"type"==t)&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword","enum"==t?P(tt):"type"==t?P(Ue,B("operator"),ge,B(";")):P(U("form"),Pe,B("{"),U("}"),de,H,H)):c&&"namespace"==t?(O.marked="keyword",P(U("form"),$,W,H)):c&&"abstract"==t?(O.marked="keyword",P(W)):P(U("stat"),oe):"switch"==e?P(U("form"),K,B("{"),U("}","switch"),j,de,H,H,z):"case"==e?P($,B(":")):"default"==e?P(B(":")):"catch"==e?P(U("form"),F,V,W,H,z):"export"==e?P(U("stat"),Ke,H):"import"==e?P(U("stat"),Ye,H):"async"==e?P(W):"@"==t?P($,W):L(U("stat"),$,B(";"),H)}function V(e){if("("==e)return P(He,B(")"))}function $(e,t){return G(e,t,!1)}function q(e,t){return G(e,t,!0)}function K(e){return"("!=e?L():P(U(")"),Y,B(")"),H)}function G(e,t,n){if(O.state.fatArrowAt==O.stream.start){var r=n?te:ee;if("("==e)return P(F,U(")"),ce(He,")"),H,B("=>"),r,z);if("variable"==e)return L(F,Pe,B("=>"),r,z)}var i=n?Q:X;return S.hasOwnProperty(e)?P(i):"function"==e?P(je,i):"class"==e||c&&"interface"==t?(O.marked="keyword",P(U("form"),Be,H)):"keyword c"==e||"async"==e?P(n?q:$):"("==e?P(U(")"),Y,B(")"),H,i):"operator"==e||"spread"==e?P(n?q:$):"["==e?P(U("]"),et,H,i):"{"==e?fe(se,"}",null,i):"quasi"==e?L(J,i):"new"==e?P(ne(n)):P()}function Y(e){return e.match(/[;\}\)\],]/)?L():L($)}function X(e,t){return","==e?P(Y):Q(e,t,!1)}function Q(e,t,n){var r=0==n?X:Q,i=0==n?$:q;return"=>"==e?P(F,n?te:ee,z):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?P(r):c&&"<"==t&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(U(">"),ce(ge,">"),H,r):"?"==t?P($,B(":"),i):P(i):"quasi"==e?L(J,r):";"!=e?"("==e?fe(q,")","call",r):"."==e?P(ae,r):"["==e?P(U("]"),Y,B("]"),H,r):c&&"as"==t?(O.marked="keyword",P(ge,r)):"regexp"==e?(O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),P(i)):void 0:void 0}function J(e,t){return"quasi"!=e?L():"${"!=t.slice(t.length-2)?P(J):P(Y,Z)}function Z(e){if("}"==e)return O.marked="string-2",O.state.tokenize=w,P(J)}function ee(e){return k(O.stream,O.state),L("{"==e?W:$)}function te(e){return k(O.stream,O.state),L("{"==e?W:q)}function ne(e){return function(t){return"."==t?P(e?ie:re):"variable"==t&&c?P(Ee,e?Q:X):L(e?q:$)}}function re(e,t){if("target"==t)return O.marked="keyword",P(X)}function ie(e,t){if("target"==t)return O.marked="keyword",P(Q)}function oe(e){return":"==e?P(H,W):L(X,B(";"),H)}function ae(e){if("variable"==e)return O.marked="property",P()}function se(e,t){return"async"==e?(O.marked="property",P(se)):"variable"==e||"keyword"==O.style?(O.marked="property","get"==t||"set"==t?P(le):(c&&O.state.fatArrowAt==O.stream.start&&(n=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+n[0].length),P(ue))):"number"==e||"string"==e?(O.marked=s?"property":O.style+" property",P(ue)):"jsonld-keyword"==e?P(ue):c&&D(t)?(O.marked="keyword",P(se)):"["==e?P($,pe,B("]"),ue):"spread"==e?P(q,ue):"*"==t?(O.marked="keyword",P(se)):":"==e?L(ue):void 0;var n}function le(e){return"variable"!=e?L(ue):(O.marked="property",P(je))}function ue(e){return":"==e?P(q):"("==e?L(je):void 0}function ce(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=O.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),P((function(n,r){return n==t||r==t?L():L(e)}),r)}return i==t||o==t?P():n&&n.indexOf(";")>-1?L(e):P(B(t))}return function(n,i){return n==t||i==t?P():L(e,r)}}function fe(e,t,n){for(var r=3;r"),ge):"quasi"==e?L(xe,Ce):void 0}function ye(e){if("=>"==e)return P(ge)}function be(e){return e.match(/[\}\)\]]/)?P():","==e||";"==e?P(be):L(we,be)}function we(e,t){return"variable"==e||"keyword"==O.style?(O.marked="property",P(we)):"?"==t||"number"==e||"string"==e?P(we):":"==e?P(ge):"["==e?P(B("variable"),he,B("]"),we):"("==e?L(ze,we):e.match(/[;\}\)\],]/)?void 0:P()}function xe(e,t){return"quasi"!=e?L():"${"!=t.slice(t.length-2)?P(xe):P(ge,ke)}function ke(e){if("}"==e)return O.marked="string-2",O.state.tokenize=w,P(xe)}function Se(e,t){return"variable"==e&&O.stream.match(/^\s*[?:]/,!1)||"?"==t?P(Se):":"==e?P(ge):"spread"==e?P(Se):L(ge)}function Ce(e,t){return"<"==t?P(U(">"),ce(ge,">"),H,Ce):"|"==t||"."==e||"&"==t?P(ge):"["==e?P(ge,B("]"),Ce):"extends"==t||"implements"==t?(O.marked="keyword",P(ge)):"?"==t?P(ge,B(":"),ge):void 0}function Ee(e,t){if("<"==t)return P(U(">"),ce(ge,">"),H,Ce)}function Te(){return L(ge,Oe)}function Oe(e,t){if("="==t)return P(ge)}function Le(e,t){return"enum"==t?(O.marked="keyword",P(tt)):L(Pe,pe,Ae,De)}function Pe(e,t){return c&&D(t)?(O.marked="keyword",P(Pe)):"variable"==e?(_(t),P()):"spread"==e?P(Pe):"["==e?fe(_e,"]"):"{"==e?fe(Me,"}"):void 0}function Me(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?P(Pe):"}"==e?L():"["==e?P($,B("]"),B(":"),Me):P(B(":"),Pe,Ae)):(_(t),P(Ae))}function _e(){return L(Pe,Ae)}function Ae(e,t){if("="==t)return P(q)}function De(e){if(","==e)return P(Le)}function Re(e,t){if("keyword b"==e&&"else"==t)return P(U("form","else"),W,H)}function Ne(e,t){return"await"==t?P(Ne):"("==e?P(U(")"),Ie,H):void 0}function Ie(e){return"var"==e?P(Le,Fe):"variable"==e?P(Fe):L(Fe)}function Fe(e,t){return")"==e?P():";"==e?P(Fe):"in"==t||"of"==t?(O.marked="keyword",P($,Fe)):L($,Fe)}function je(e,t){return"*"==t?(O.marked="keyword",P(je)):"variable"==e?(_(t),P(je)):"("==e?P(F,U(")"),ce(He,")"),H,me,W,z):c&&"<"==t?P(U(">"),ce(Te,">"),H,je):void 0}function ze(e,t){return"*"==t?(O.marked="keyword",P(ze)):"variable"==e?(_(t),P(ze)):"("==e?P(F,U(")"),ce(He,")"),H,me,z):c&&"<"==t?P(U(">"),ce(Te,">"),H,ze):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(O.marked="type",P(Ue)):"<"==t?P(U(">"),ce(Te,">"),H):void 0}function He(e,t){return"@"==t&&P($,He),"spread"==e?P(He):c&&D(t)?(O.marked="keyword",P(He)):c&&"this"==e?P(pe,Ae):L(Pe,pe,Ae)}function Be(e,t){return"variable"==e?We(e,t):Ve(e,t)}function We(e,t){if("variable"==e)return _(t),P(Ve)}function Ve(e,t){return"<"==t?P(U(">"),ce(Te,">"),H,Ve):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(O.marked="keyword"),P(c?ge:$,Ve)):"{"==e?P(U("}"),$e,H):void 0}function $e(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&D(t))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(O.marked="keyword",P($e)):"variable"==e||"keyword"==O.style?(O.marked="property",P(qe,$e)):"number"==e||"string"==e?P(qe,$e):"["==e?P($,pe,B("]"),qe,$e):"*"==t?(O.marked="keyword",P($e)):c&&"("==e?L(ze,$e):";"==e||","==e?P($e):"}"==e?P():"@"==t?P($,$e):void 0}function qe(e,t){if("!"==t)return P(qe);if("?"==t)return P(qe);if(":"==e)return P(ge,Ae);if("="==t)return P(q);var n=O.state.lexical.prev;return L(n&&"interface"==n.info?ze:je)}function Ke(e,t){return"*"==t?(O.marked="keyword",P(Ze,B(";"))):"default"==t?(O.marked="keyword",P($,B(";"))):"{"==e?P(ce(Ge,"}"),Ze,B(";")):L(W)}function Ge(e,t){return"as"==t?(O.marked="keyword",P(B("variable"))):"variable"==e?L(q,Ge):void 0}function Ye(e){return"string"==e?P():"("==e?L($):"."==e?L(X):L(Xe,Qe,Ze)}function Xe(e,t){return"{"==e?fe(Xe,"}"):("variable"==e&&_(t),"*"==t&&(O.marked="keyword"),P(Je))}function Qe(e){if(","==e)return P(Xe,Qe)}function Je(e,t){if("as"==t)return O.marked="keyword",P(Xe)}function Ze(e,t){if("from"==t)return O.marked="keyword",P($)}function et(e){return"]"==e?P():L(ce(q,"]"))}function tt(){return L(U("form"),Pe,B("{"),U("}"),ce(nt,"}"),H,H)}function nt(){return L(Pe,Ae)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return F.lex=j.lex=!0,z.lex=!0,H.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new C((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new R(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),k(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",T(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==H)l=l.prev;else if(c!=Re&&c!=z)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==X||i==Q)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(rt(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:it,skipExpression:function(t){T(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(3668))},3225:function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function o(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i).concat(["exec","print"])),e.defineMode("python",(function(a,s){for(var l="error",u=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,c=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],f=0;fr?C(t):i0&&T(e,t)&&(a+=" "+l),a}return x(e,t)}function x(e,t,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(g))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=k(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=S(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a=0;)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=x(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):o)),r}}function o(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return a.tokenize=t,r;if(o.match("{{"))return r;if(o.match("{",!1))return a.tokenize=i(0),o.current()?r:a.tokenize(o,a);if(o.match("}}"))return r;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;a.tokenize=t}return r}return o.isString=!0,o}function S(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=t,r;i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;o.tokenize=t}return r}return i.isString=!0,i}function C(e){for(;"py"!=o(e).type;)e.scopes.pop();e.scopes.push({offset:o(e).offset+a.indentUnit,type:"py",align:null})}function E(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+d,type:n,align:r})}function T(e,t){for(var n=e.indentation();t.scopes.length>1&&o(t).offset>n;){if("py"!=o(t).type)return!0;t.scopes.pop()}return o(t).offset!=n}function O(e,t){e.sol()&&(t.beginningOfLine=!0,t.dedent=!1);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(v,!1)?"meta":m?"operator":l;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent=!0),"lambda"==r&&(t.lambda=!0),":"==r&&!t.lambda&&"py"==o(t).type&&e.match(/^\s*(?:#|$)/,!1)&&C(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&E(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(o(t).type!=r)return l;t.indent=t.scopes.pop().offset-d}}return t.dedent&&e.eol()&&"py"==o(t).type&&t.scopes.length>1&&t.scopes.pop(),n}return{startState:function(e){return{tokenize:w,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=O(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+l:r},indent:function(t,n){if(t.tokenize!=w)return t.tokenize.isString?e.Pass:0;var r=o(t),i=r.type==n.charAt(0)||"py"==r.type&&!t.dedent&&/^(else:|elif |except |finally:)/.test(n);return null!=r.align?r.align-(i?1:0):r.offset-(i?d:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python");var a=function(e){return e.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})}(n(3668))},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),v=0;v1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("cancelFineTune","fineTuneId",n),i="/fine-tunes/{fine_tune_id}/cancel".replace("{".concat("fine_tune_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"POST"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},createAnswer:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createAnswer","createAnswerRequest",n),"/answers",i=new URL("/answers",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createClassification:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createClassification","createClassificationRequest",n),"/classifications",i=new URL("/classifications",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createCompletion:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createCompletion","createCompletionRequest",n),"/completions",i=new URL("/completions",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createEdit:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createEdit","createEditRequest",n),"/edits",i=new URL("/edits",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createEmbedding:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createEmbedding","createEmbeddingRequest",n),"/embeddings",i=new URL("/embeddings",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createFile:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(t,void 0,void 0,s().mark((function t(){var o,a,l,u,f,d,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createFile","file",n),c.assertParamExists("createFile","purpose",r),"/files",o=new URL("/files",c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"POST"},a),i),u={},f={},d=new(e&&e.formDataCtor||FormData),void 0!==n&&d.append("file",n),void 0!==r&&d.append("purpose",r),u["Content-Type"]="multipart/form-data",c.setSearchParams(o,f),p=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign(Object.assign({},u),d.getHeaders()),p),i.headers),l.data=d,t.abrupt("return",{url:c.toPathString(o),options:l});case 17:case"end":return t.stop()}}),t)})))},createFineTune:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createFineTune","createFineTuneRequest",n),"/fine-tunes",i=new URL("/fine-tunes",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createImage:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createImage","createImageRequest",n),"/images/generations",i=new URL("/images/generations",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createImageEdit:function(n,r,i,o,a,u,f){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};return l(t,void 0,void 0,s().mark((function t(){var l,p,h,m,v,g,y;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createImageEdit","image",n),c.assertParamExists("createImageEdit","mask",r),c.assertParamExists("createImageEdit","prompt",i),"/images/edits",l=new URL("/images/edits",c.DUMMY_BASE_URL),e&&(p=e.baseOptions),h=Object.assign(Object.assign({method:"POST"},p),d),m={},v={},g=new(e&&e.formDataCtor||FormData),void 0!==n&&g.append("image",n),void 0!==r&&g.append("mask",r),void 0!==i&&g.append("prompt",i),void 0!==o&&g.append("n",o),void 0!==a&&g.append("size",a),void 0!==u&&g.append("response_format",u),void 0!==f&&g.append("user",f),m["Content-Type"]="multipart/form-data",c.setSearchParams(l,v),y=p&&p.headers?p.headers:{},h.headers=Object.assign(Object.assign(Object.assign(Object.assign({},m),g.getHeaders()),y),d.headers),h.data=g,t.abrupt("return",{url:c.toPathString(l),options:h});case 23:case"end":return t.stop()}}),t)})))},createImageVariation:function(n,r,i,o,a){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return l(t,void 0,void 0,s().mark((function t(){var l,f,d,p,h,m,v;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createImageVariation","image",n),"/images/variations",l=new URL("/images/variations",c.DUMMY_BASE_URL),e&&(f=e.baseOptions),d=Object.assign(Object.assign({method:"POST"},f),u),p={},h={},m=new(e&&e.formDataCtor||FormData),void 0!==n&&m.append("image",n),void 0!==r&&m.append("n",r),void 0!==i&&m.append("size",i),void 0!==o&&m.append("response_format",o),void 0!==a&&m.append("user",a),p["Content-Type"]="multipart/form-data",c.setSearchParams(l,h),v=f&&f.headers?f.headers:{},d.headers=Object.assign(Object.assign(Object.assign(Object.assign({},p),m.getHeaders()),v),u.headers),d.data=m,t.abrupt("return",{url:c.toPathString(l),options:d});case 19:case"end":return t.stop()}}),t)})))},createModeration:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createModeration","createModerationRequest",n),"/moderations",i=new URL("/moderations",c.DUMMY_BASE_URL),e&&(o=e.baseOptions),a=Object.assign(Object.assign({method:"POST"},o),r),u={},(l={})["Content-Type"]="application/json",c.setSearchParams(i,u),f=o&&o.headers?o.headers:{},a.headers=Object.assign(Object.assign(Object.assign({},l),f),r.headers),a.data=c.serializeDataIfNeeded(n,a,e),t.abrupt("return",{url:c.toPathString(i),options:a});case 13:case"end":return t.stop()}}),t)})))},createSearch:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(t,void 0,void 0,s().mark((function t(){var o,a,l,u,f,d,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("createSearch","engineId",n),c.assertParamExists("createSearch","createSearchRequest",r),o="/engines/{engine_id}/search".replace("{".concat("engine_id","}"),encodeURIComponent(String(n))),a=new URL(o,c.DUMMY_BASE_URL),e&&(l=e.baseOptions),u=Object.assign(Object.assign({method:"POST"},l),i),d={},(f={})["Content-Type"]="application/json",c.setSearchParams(a,d),p=l&&l.headers?l.headers:{},u.headers=Object.assign(Object.assign(Object.assign({},f),p),i.headers),u.data=c.serializeDataIfNeeded(r,u,e),t.abrupt("return",{url:c.toPathString(a),options:u});case 14:case"end":return t.stop()}}),t)})))},deleteFile:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("deleteFile","fileId",n),i="/files/{file_id}".replace("{".concat("file_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"DELETE"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},deleteModel:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("deleteModel","model",n),i="/models/{model}".replace("{".concat("model","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"DELETE"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},downloadFile:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("downloadFile","fileId",n),i="/files/{file_id}/content".replace("{".concat("file_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"GET"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},listEngines:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(t,void 0,void 0,s().mark((function t(){var r,i,o,a,l,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/engines",r=new URL("/engines",c.DUMMY_BASE_URL),e&&(i=e.baseOptions),o=Object.assign(Object.assign({method:"GET"},i),n),a={},l={},c.setSearchParams(r,l),u=i&&i.headers?i.headers:{},o.headers=Object.assign(Object.assign(Object.assign({},a),u),n.headers),t.abrupt("return",{url:c.toPathString(r),options:o});case 10:case"end":return t.stop()}}),t)})))},listFiles:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(t,void 0,void 0,s().mark((function t(){var r,i,o,a,l,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/files",r=new URL("/files",c.DUMMY_BASE_URL),e&&(i=e.baseOptions),o=Object.assign(Object.assign({method:"GET"},i),n),a={},l={},c.setSearchParams(r,l),u=i&&i.headers?i.headers:{},o.headers=Object.assign(Object.assign(Object.assign({},a),u),n.headers),t.abrupt("return",{url:c.toPathString(r),options:o});case 10:case"end":return t.stop()}}),t)})))},listFineTuneEvents:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(t,void 0,void 0,s().mark((function t(){var o,a,l,u,f,d,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("listFineTuneEvents","fineTuneId",n),o="/fine-tunes/{fine_tune_id}/events".replace("{".concat("fine_tune_id","}"),encodeURIComponent(String(n))),a=new URL(o,c.DUMMY_BASE_URL),e&&(l=e.baseOptions),u=Object.assign(Object.assign({method:"GET"},l),i),f={},d={},void 0!==r&&(d.stream=r),c.setSearchParams(a,d),p=l&&l.headers?l.headers:{},u.headers=Object.assign(Object.assign(Object.assign({},f),p),i.headers),t.abrupt("return",{url:c.toPathString(a),options:u});case 12:case"end":return t.stop()}}),t)})))},listFineTunes:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(t,void 0,void 0,s().mark((function t(){var r,i,o,a,l,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/fine-tunes",r=new URL("/fine-tunes",c.DUMMY_BASE_URL),e&&(i=e.baseOptions),o=Object.assign(Object.assign({method:"GET"},i),n),a={},l={},c.setSearchParams(r,l),u=i&&i.headers?i.headers:{},o.headers=Object.assign(Object.assign(Object.assign({},a),u),n.headers),t.abrupt("return",{url:c.toPathString(r),options:o});case 10:case"end":return t.stop()}}),t)})))},listModels:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(t,void 0,void 0,s().mark((function t(){var r,i,o,a,l,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/models",r=new URL("/models",c.DUMMY_BASE_URL),e&&(i=e.baseOptions),o=Object.assign(Object.assign({method:"GET"},i),n),a={},l={},c.setSearchParams(r,l),u=i&&i.headers?i.headers:{},o.headers=Object.assign(Object.assign(Object.assign({},a),u),n.headers),t.abrupt("return",{url:c.toPathString(r),options:o});case 10:case"end":return t.stop()}}),t)})))},retrieveEngine:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("retrieveEngine","engineId",n),i="/engines/{engine_id}".replace("{".concat("engine_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"GET"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},retrieveFile:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("retrieveFile","fileId",n),i="/files/{file_id}".replace("{".concat("file_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"GET"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},retrieveFineTune:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("retrieveFineTune","fineTuneId",n),i="/fine-tunes/{fine_tune_id}".replace("{".concat("fine_tune_id","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"GET"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))},retrieveModel:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t,void 0,void 0,s().mark((function t(){var i,o,a,l,u,f,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.assertParamExists("retrieveModel","model",n),i="/models/{model}".replace("{".concat("model","}"),encodeURIComponent(String(n))),o=new URL(i,c.DUMMY_BASE_URL),e&&(a=e.baseOptions),l=Object.assign(Object.assign({method:"GET"},a),r),u={},f={},c.setSearchParams(o,f),d=a&&a.headers?a.headers:{},l.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers),t.abrupt("return",{url:c.toPathString(o),options:l});case 11:case"end":return t.stop()}}),t)})))}}},t.OpenAIApiFp=function(e){var n=t.OpenAIApiAxiosParamCreator(e);return{cancelFineTune:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.cancelFineTune(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createAnswer:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createAnswer(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createClassification:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createClassification(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createCompletion:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createCompletion(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createEdit:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createEdit(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createEmbedding:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createEmbedding(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createFile:function(t,r,i){return l(this,void 0,void 0,s().mark((function o(){var a;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.createFile(t,r,i);case 2:return a=o.sent,o.abrupt("return",c.createRequestFunction(a,u.default,f.BASE_PATH,e));case 4:case"end":return o.stop()}}),o)})))},createFineTune:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createFineTune(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createImage:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createImage(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createImageEdit:function(t,r,i,o,a,d,p,h){return l(this,void 0,void 0,s().mark((function l(){var m;return s().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,n.createImageEdit(t,r,i,o,a,d,p,h);case 2:return m=s.sent,s.abrupt("return",c.createRequestFunction(m,u.default,f.BASE_PATH,e));case 4:case"end":return s.stop()}}),l)})))},createImageVariation:function(t,r,i,o,a,d){return l(this,void 0,void 0,s().mark((function l(){var p;return s().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,n.createImageVariation(t,r,i,o,a,d);case 2:return p=s.sent,s.abrupt("return",c.createRequestFunction(p,u.default,f.BASE_PATH,e));case 4:case"end":return s.stop()}}),l)})))},createModeration:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.createModeration(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},createSearch:function(t,r,i){return l(this,void 0,void 0,s().mark((function o(){var a;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.createSearch(t,r,i);case 2:return a=o.sent,o.abrupt("return",c.createRequestFunction(a,u.default,f.BASE_PATH,e));case 4:case"end":return o.stop()}}),o)})))},deleteFile:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.deleteFile(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},deleteModel:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.deleteModel(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},downloadFile:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.downloadFile(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},listEngines:function(t){return l(this,void 0,void 0,s().mark((function r(){var i;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.listEngines(t);case 2:return i=r.sent,r.abrupt("return",c.createRequestFunction(i,u.default,f.BASE_PATH,e));case 4:case"end":return r.stop()}}),r)})))},listFiles:function(t){return l(this,void 0,void 0,s().mark((function r(){var i;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.listFiles(t);case 2:return i=r.sent,r.abrupt("return",c.createRequestFunction(i,u.default,f.BASE_PATH,e));case 4:case"end":return r.stop()}}),r)})))},listFineTuneEvents:function(t,r,i){return l(this,void 0,void 0,s().mark((function o(){var a;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.listFineTuneEvents(t,r,i);case 2:return a=o.sent,o.abrupt("return",c.createRequestFunction(a,u.default,f.BASE_PATH,e));case 4:case"end":return o.stop()}}),o)})))},listFineTunes:function(t){return l(this,void 0,void 0,s().mark((function r(){var i;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.listFineTunes(t);case 2:return i=r.sent,r.abrupt("return",c.createRequestFunction(i,u.default,f.BASE_PATH,e));case 4:case"end":return r.stop()}}),r)})))},listModels:function(t){return l(this,void 0,void 0,s().mark((function r(){var i;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.listModels(t);case 2:return i=r.sent,r.abrupt("return",c.createRequestFunction(i,u.default,f.BASE_PATH,e));case 4:case"end":return r.stop()}}),r)})))},retrieveEngine:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.retrieveEngine(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},retrieveFile:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.retrieveFile(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},retrieveFineTune:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.retrieveFineTune(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))},retrieveModel:function(t,r){return l(this,void 0,void 0,s().mark((function i(){var o;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.retrieveModel(t,r);case 2:return o=i.sent,i.abrupt("return",c.createRequestFunction(o,u.default,f.BASE_PATH,e));case 4:case"end":return i.stop()}}),i)})))}}},t.OpenAIApiFactory=function(e,n,r){var i=t.OpenAIApiFp(e);return{cancelFineTune:function(e,t){return i.cancelFineTune(e,t).then((function(e){return e(r,n)}))},createAnswer:function(e,t){return i.createAnswer(e,t).then((function(e){return e(r,n)}))},createClassification:function(e,t){return i.createClassification(e,t).then((function(e){return e(r,n)}))},createCompletion:function(e,t){return i.createCompletion(e,t).then((function(e){return e(r,n)}))},createEdit:function(e,t){return i.createEdit(e,t).then((function(e){return e(r,n)}))},createEmbedding:function(e,t){return i.createEmbedding(e,t).then((function(e){return e(r,n)}))},createFile:function(e,t,o){return i.createFile(e,t,o).then((function(e){return e(r,n)}))},createFineTune:function(e,t){return i.createFineTune(e,t).then((function(e){return e(r,n)}))},createImage:function(e,t){return i.createImage(e,t).then((function(e){return e(r,n)}))},createImageEdit:function(e,t,o,a,s,l,u,c){return i.createImageEdit(e,t,o,a,s,l,u,c).then((function(e){return e(r,n)}))},createImageVariation:function(e,t,o,a,s,l){return i.createImageVariation(e,t,o,a,s,l).then((function(e){return e(r,n)}))},createModeration:function(e,t){return i.createModeration(e,t).then((function(e){return e(r,n)}))},createSearch:function(e,t,o){return i.createSearch(e,t,o).then((function(e){return e(r,n)}))},deleteFile:function(e,t){return i.deleteFile(e,t).then((function(e){return e(r,n)}))},deleteModel:function(e,t){return i.deleteModel(e,t).then((function(e){return e(r,n)}))},downloadFile:function(e,t){return i.downloadFile(e,t).then((function(e){return e(r,n)}))},listEngines:function(e){return i.listEngines(e).then((function(e){return e(r,n)}))},listFiles:function(e){return i.listFiles(e).then((function(e){return e(r,n)}))},listFineTuneEvents:function(e,t,o){return i.listFineTuneEvents(e,t,o).then((function(e){return e(r,n)}))},listFineTunes:function(e){return i.listFineTunes(e).then((function(e){return e(r,n)}))},listModels:function(e){return i.listModels(e).then((function(e){return e(r,n)}))},retrieveEngine:function(e,t){return i.retrieveEngine(e,t).then((function(e){return e(r,n)}))},retrieveFile:function(e,t){return i.retrieveFile(e,t).then((function(e){return e(r,n)}))},retrieveFineTune:function(e,t){return i.retrieveFineTune(e,t).then((function(e){return e(r,n)}))},retrieveModel:function(e,t){return i.retrieveModel(e,t).then((function(e){return e(r,n)}))}}};var d=function(e){o(s,e);var n=a(s);function s(){return r(this,s),n.apply(this,arguments)}return i(s,[{key:"cancelFineTune",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).cancelFineTune(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createAnswer",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createAnswer(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createClassification",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createClassification(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createCompletion",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createCompletion(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createEdit",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createEdit(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createEmbedding",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createEmbedding(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createFile",value:function(e,n,r){var i=this;return t.OpenAIApiFp(this.configuration).createFile(e,n,r).then((function(e){return e(i.axios,i.basePath)}))}},{key:"createFineTune",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createFineTune(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createImage",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createImage(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createImageEdit",value:function(e,n,r,i,o,a,s,l){var u=this;return t.OpenAIApiFp(this.configuration).createImageEdit(e,n,r,i,o,a,s,l).then((function(e){return e(u.axios,u.basePath)}))}},{key:"createImageVariation",value:function(e,n,r,i,o,a){var s=this;return t.OpenAIApiFp(this.configuration).createImageVariation(e,n,r,i,o,a).then((function(e){return e(s.axios,s.basePath)}))}},{key:"createModeration",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).createModeration(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"createSearch",value:function(e,n,r){var i=this;return t.OpenAIApiFp(this.configuration).createSearch(e,n,r).then((function(e){return e(i.axios,i.basePath)}))}},{key:"deleteFile",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).deleteFile(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"deleteModel",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).deleteModel(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"downloadFile",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).downloadFile(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"listEngines",value:function(e){var n=this;return t.OpenAIApiFp(this.configuration).listEngines(e).then((function(e){return e(n.axios,n.basePath)}))}},{key:"listFiles",value:function(e){var n=this;return t.OpenAIApiFp(this.configuration).listFiles(e).then((function(e){return e(n.axios,n.basePath)}))}},{key:"listFineTuneEvents",value:function(e,n,r){var i=this;return t.OpenAIApiFp(this.configuration).listFineTuneEvents(e,n,r).then((function(e){return e(i.axios,i.basePath)}))}},{key:"listFineTunes",value:function(e){var n=this;return t.OpenAIApiFp(this.configuration).listFineTunes(e).then((function(e){return e(n.axios,n.basePath)}))}},{key:"listModels",value:function(e){var n=this;return t.OpenAIApiFp(this.configuration).listModels(e).then((function(e){return e(n.axios,n.basePath)}))}},{key:"retrieveEngine",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).retrieveEngine(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"retrieveFile",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).retrieveFile(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"retrieveFineTune",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).retrieveFineTune(e,n).then((function(e){return e(r.axios,r.basePath)}))}},{key:"retrieveModel",value:function(e,n){var r=this;return t.OpenAIApiFp(this.configuration).retrieveModel(e,n).then((function(e){return e(r.axios,r.basePath)}))}}]),s}(f.BaseAPI);t.OpenAIApi=d},1751:function(e,t,n){"use strict";var r=n(1655).default,i=n(6389).default,o=n(3496).default,a=n(9728).default,s=n(6690).default;Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;var l=n(4569);t.BASE_PATH="https://api.openai.com/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};var u=a((function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.BASE_PATH,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default;s(this,e),this.basePath=r,this.axios=i,n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}));t.BaseAPI=u;var c=function(e){r(n,e);var t=i(n);function n(e,r){var i;return s(this,n),(i=t.call(this,r)).field=e,i.name="RequiredError",i}return a(n)}(o(Error));t.RequiredError=c},3215:function(e,t,n){"use strict";var r=n(7061).default,i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}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())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.createRequestFunction=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setOAuthToObject=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;var o=n(1751);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"object"===typeof t?Array.isArray(t)?t.forEach((function(t){return a(e,t,n)})):Object.keys(t).forEach((function(r){return a(e,t[r],"".concat(n).concat(""!==n?".":"").concat(r))})):e.has(n)?e.append(n,t):e.set(n,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,n){if(null===n||void 0===n)throw new o.RequiredError(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},t.setApiKeyToObject=function(e,t,n){return i(this,void 0,void 0,r().mark((function i(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n||!n.apiKey){r.next=12;break}if("function"!==typeof n.apiKey){r.next=7;break}return r.next=4,n.apiKey(t);case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,n.apiKey;case 9:r.t0=r.sent;case 10:o=r.t0,e[t]=o;case 12:case"end":return r.stop()}}),i)})))},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return i(this,void 0,void 0,r().mark((function n(){var i;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t||!t.accessToken){n.next=12;break}if("function"!==typeof t.accessToken){n.next=7;break}return n.next=4,t.accessToken();case 4:n.t0=n.sent,n.next=10;break;case 7:return n.next=9,t.accessToken;case 9:n.t0=n.sent;case 10:i=n.t0,e.Authorization="Bearer "+i;case 12:case"end":return n.stop()}}),n)})))},t.setOAuthToObject=function(e,t,n,o){return i(this,void 0,void 0,r().mark((function i(){var a;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o||!o.accessToken){r.next=12;break}if("function"!==typeof o.accessToken){r.next=7;break}return r.next=4,o.accessToken(t,n);case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,o.accessToken;case 9:r.t0=r.sent;case 10:a=r.t0,e.Authorization="Bearer "+a;case 12:case"end":return r.stop()}}),i)})))},t.setSearchParams=function(e){for(var t=new URLSearchParams(e.search),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,a=Object.assign(Object.assign({},e.options),{url:((null===r||void 0===r?void 0:r.basePath)||o)+e.url});return i.request(a)}}},9245:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;var o=n(2811),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.apiKey=t.apiKey,this.organization=t.organization,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor,this.baseOptions||(this.baseOptions={}),this.baseOptions.headers=Object.assign({"User-Agent":"OpenAI/NodeJS/".concat(o.version),Authorization:"Bearer ".concat(this.apiKey)},this.baseOptions.headers),this.organization&&(this.baseOptions.headers["OpenAI-Organization"]=this.organization),this.formDataCtor||(this.formDataCtor=n(964))}return i(e,[{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}();t.Configuration=a},1115:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}: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||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(3540),t),i(n(9245),t)},964:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},1193:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t