Showing preview only (6,483K chars total). Download the full file or copy to clipboard to get everything.
Repository: krasimir/demoit
Branch: master
Commit: 0933633a421f
Files: 107
Total size: 6.2 MB
Directory structure:
gitextract_1mnwgimr/
├── .eslintrc
├── .gitignore
├── .npmignore
├── LICENSE
├── README.md
├── _assets/
│ ├── demoit.app.psd
│ ├── demoit.psd
│ └── layouts.psd
├── dist/
│ ├── demoit.js
│ ├── index.html
│ ├── resources/
│ │ ├── editor.js
│ │ ├── lodash@4.16.0.js
│ │ ├── marked@0.3.6.js
│ │ ├── react-16.7.0-alpha.0.js
│ │ ├── react-dom.16.7.0-alpha.0.js
│ │ ├── regenerator-runtime.js
│ │ ├── state-example.json
│ │ ├── state-example2.json
│ │ └── vue@2.5.17.js
│ ├── sandbox.html
│ └── styles.css
├── package.json
├── samples/
│ ├── Canvas.json
│ ├── HTML+CSS.json
│ ├── React.json
│ ├── Vue.json
│ └── index.html
├── scripts/
│ └── zipit.js
├── src/
│ ├── css/
│ │ ├── codemirror.css
│ │ ├── dark_theme.css
│ │ ├── la.css
│ │ ├── light_theme.css
│ │ └── styles.css
│ ├── index.html
│ ├── js/
│ │ ├── __tests__/
│ │ │ └── commitDiff.spec.js
│ │ ├── annotate.js
│ │ ├── console.js
│ │ ├── constants.js
│ │ ├── dependencies.js
│ │ ├── download.js
│ │ ├── editor.js
│ │ ├── execute.js
│ │ ├── index.js
│ │ ├── layout.js
│ │ ├── output.js
│ │ ├── popups/
│ │ │ ├── confirmPopUp.js
│ │ │ ├── editFilePopUp.js
│ │ │ ├── editNamePopUp.js
│ │ │ ├── newFilePopUp.js
│ │ │ ├── popup.js
│ │ │ └── settingsPopUp.js
│ │ ├── providers/
│ │ │ └── api.js
│ │ ├── settings.js
│ │ ├── state.js
│ │ ├── statusBar.js
│ │ ├── story/
│ │ │ ├── codeMirror.js
│ │ │ ├── getTitleFromCommitMessage.js
│ │ │ ├── index.js
│ │ │ ├── renderCommits.js
│ │ │ ├── renderDiffs.js
│ │ │ ├── renderGraph.js
│ │ │ └── setAnnotationLink.js
│ │ ├── storyPreview.js
│ │ ├── storyReadOnly.js
│ │ └── utils/
│ │ ├── cleanUpMarkdown.js
│ │ ├── codeMirrorCommands.js
│ │ ├── commitDiff.js
│ │ ├── element.js
│ │ ├── executeCSS.js
│ │ ├── icons.js
│ │ ├── index.js
│ │ ├── localStorage.js
│ │ ├── setTheme.js
│ │ ├── svg.js
│ │ └── transpile.js
│ ├── js-vendor/
│ │ ├── babel-plugin-transform-es2015-modules-commonjs@6.26.2.js
│ │ ├── babel-polyfill@6.26.0.js
│ │ ├── closebrackets.js
│ │ ├── codemirror.js
│ │ ├── colorize.js
│ │ ├── comment.js
│ │ ├── css.js
│ │ ├── deep-diff.js
│ │ ├── gfm.js
│ │ ├── htmlmixed.js
│ │ ├── javascript.js
│ │ ├── jsx.js
│ │ ├── mark-selection.js
│ │ ├── markdown.js
│ │ ├── match-highlighter.js
│ │ ├── matchbrackets.js
│ │ ├── overlay.js
│ │ ├── runmode.js
│ │ ├── search_cursor.js
│ │ ├── split.js
│ │ └── xml.js
│ ├── resources/
│ │ ├── lodash@4.16.0.js
│ │ ├── marked@0.3.6.js
│ │ ├── react-16.7.0-alpha.0.js
│ │ ├── react-dom.16.7.0-alpha.0.js
│ │ ├── regenerator-runtime.js
│ │ ├── state-example.json
│ │ ├── state-example2.json
│ │ └── vue@2.5.17.js
│ └── sandbox.html
├── webpack.config.js
└── webpack.config.prod.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .eslintrc
================================================
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"document": false,
"escape": false,
"navigator": false,
"unescape": false,
"window": false,
"describe": true,
"before": true,
"it": true,
"expect": true,
"sinon": true,
"chrome": true,
"browser": true,
"Mousetrap": true,
"io": true,
"jest": true,
"beforeEach": true,
"afterEach": true,
"CodeMirror": true
},
"parser": "babel-eslint",
"plugins": [
],
"extends": [
],
"rules": {
"block-scoped-var": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, { "properties": "always" }],
"comma-dangle": [2, "never"],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"complexity": 0,
"consistent-return": 2,
"consistent-this": 0,
"curly": [2, "multi-line"],
"default-case": 0,
"dot-location": [2, "property"],
"dot-notation": 0,
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"func-names": 0,
"func-style": 0,
"generator-star-spacing": [2, "both"],
"guard-for-in": 0,
"handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
"indent": "off",
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, {"before": true, "after": true}],
"linebreak-style": 0,
"max-depth": 0,
"max-len": [2, 120, 4],
"max-nested-callbacks": 0,
"max-params": 0,
"max-statements": 0,
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
"newline-after-var": [2, "always"],
"new-parens": 2,
"no-alert": 0,
"no-array-constructor": 2,
"no-bitwise": 0,
"no-caller": 2,
"no-catch-shadow": 0,
"no-cond-assign": 2,
"no-console": 0,
"no-constant-condition": 0,
"no-continue": 0,
"no-control-regex": 2,
"no-debugger": 2,
"no-delete-var": 2,
"no-div-regex": 0,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-else-return": 2,
"no-empty": 0,
"no-empty-character-class": 2,
"no-eq-null": 0,
"no-eval": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 0,
"no-extra-semi": 0,
"no-extra-strict": 0,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-func-assign": 2,
"no-implied-eval": 2,
"no-inline-comments": 0,
"no-inner-declarations": [2, "functions"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 0,
"no-lonely-if": 0,
"no-loop-func": 0,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-native-reassign": 2,
"no-negated-in-lhs": 2,
"no-nested-ternary": 0,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-require": 2,
"no-new-wrappers": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-path-concat": 0,
"no-plusplus": 0,
"no-process-env": 0,
"no-process-exit": 0,
"no-proto": 2,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-reserved-keys": 0,
"no-restricted-modules": 0,
"no-return-assign": 2,
"no-script-url": 0,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-sparse-arrays": 2,
"no-sync": 0,
"no-ternary": 0,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 0,
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"no-unreachable": 2,
"no-unused-expressions": 0,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-use-before-define": 2,
"no-var": 0,
"no-void": 0,
"no-warning-comments": 0,
"no-with": 2,
"one-var": 0,
"operator-assignment": 0,
"operator-linebreak": [2, "after"],
"padded-blocks": 0,
"quote-props": 0,
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": [2, "always"],
"semi-spacing": 0,
"sort-vars": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-brackets": 0,
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always"],
"strict": 0,
"use-isnan": 2,
"valid-jsdoc": 0,
"valid-typeof": 2,
"vars-on-top": 2,
"wrap-iife": [2, "any"],
"wrap-regex": 0,
"yoda": [2, "never"]
}
}
================================================
FILE: .gitignore
================================================
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# next.js build output
.next
NOTES
*.log
.vscode
.tmp
================================================
FILE: .npmignore
================================================
demoit.png
src
webpack.config.js
webpack.config.prod.js
*.log
yarn.lock
scripts
NOTES
_assets
.tmp
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2018 Krasimir Tsonev
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.
================================================
FILE: README.md
================================================


# **Demoit** is the front-end app behind [Poet](https://poet.krasimir.now.sh)
* No installation.
* No server needed. It works offline.
* No building process needed. Built-in Babel support. It translates your code at runtime.
* Supports external libraries and styles. Like React for example.
* Export your work to an external file
* Supports `import` statement (between the files of app)
* Supports `import`ing of CSS and HTML files
* Supports dependencies via HTTP (everything from [unpkg](https://unpkg.com/#/) or [cdnjs](https://cdnjs.com))
## Demo :rocket:
[https://poet.krasimir.now.sh/new](https://poet.krasimir.now.sh/new)
---
## Usage
* Online at [poet.krasimir.now.sh](https://poet.krasimir.now.sh)
* Offline by downloading [Demoit.zip](https://github.com/krasimir/demoit/raw/master/demoit.zip)
## Configuration
When you open the app and start writing code you progress gets saved to an internal state. You can grab it by opening the bar at the top and clicking on the gear icon (check the "Export" section). The JSON there contains all the configuration that Demoit needs. You can save this configuration to an external file and let Demoit knows the path to it via the `state` GET parameter (for example `http://localhost/demoit?state=./mycode.json`).
## GET Params
* `?state=<path to json file>` - relative path to a JSON file
* `?mode=preview` - it loads the editor just in a preview mode. The code is visible but not compiled, not editable and not executed. This significantly reduces the file size and it is useful for showing your code in a blog post for example.
* `?mode=readonly` - it loads the editor in a readonly mode. It means that the code is transpiled and executed but you can't make changes. This also reduces the page's size because it is not loading Babel and CodeMirror (which is roughly 1.5MB)
## Continuing your work offline
* You have to download [Demoit.zip](https://github.com/krasimir/demoit/raw/master/demoit.zip)
* You need to transfer your progress to a JSON file and pass it to the app via `state` GET param
* If you use external dependencies make sure that they are also saved locally and the path to the files is properly set (check the gear icon in the status bar at the top of the app)
## Keyboard shortcuts when the focus is on the editor
* `Ctrl + S` / `Cmd + S` - essential for seeing the result of your code. This keys combination triggers transpilation and execution.
* `Ctrl + <0-9>` / `Cmd + <0-9>` - switch between files
## Editing filenames and deleting files
Right mouse click on the file's tab.
## Troubleshooting
### Error `URL scheme must be "http" or "https" for CORS request.`
It means that the browser doesn't load the files that the tool needs because the protocol is `file://`. That's a problem in Chrome at the moment. Everything works fine in Firefox. To fix the problem in Chrome you have to run it like so:
```
open /Applications/Google\ Chrome.app/ --args --disable-web-security
```
or under Windows:
```
chrome.exe --disable-web-security
```
Of course Demoit works just fine if you open `index.html` via `http` protocol but to do that you need a server.
================================================
FILE: dist/demoit.js
================================================
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Split=e()}(this,function(){"use strict";var N=window,L=N.document,z="addEventListener",D="removeEventListener",F="getBoundingClientRect",B="horizontal",P=function(){return!1},R=N.attachEvent&&!N[z],o=["","-webkit-","-moz-","-o-"].filter(function(t){var e=L.createElement("div");return e.style.cssText="width:"+t+"calc(9px)",!!e.style.length}).shift()+"calc",i=function(t){return"string"==typeof t||t instanceof String},H=function(t){if(i(t)){var e=L.querySelector(t);if(!e)throw new Error("Selector "+t+" did not match a DOM element");return e}return t},U=function(t,e,n){var r=t[e];return void 0!==r?r:n},G=function(t,e,n,r){if(e){if("end"===r)return 0;if("center"===r)return t/2}else if(n){if("start"===r)return 0;if("center"===r)return t/2}return t},J=function(t,e){var n=L.createElement("div");return n.className="gutter gutter-"+e,n},V=function(t,e,n){var r={};return i(e)?r[t]=e:r[t]=R?e+"%":o+"("+e+"% - "+n+"px)",r},$=function(t,e){var n;return(n={})[t]=e+"px",n};return function(t,c){void 0===c&&(c={});var u,e,o,i,n,l,f=t;Array.from&&(f=Array.from(f));var h=H(f[0]).parentNode,d=getComputedStyle?getComputedStyle(h).flexDirection:null,p=U(c,"sizes")||f.map(function(){return 100/f.length}),r=U(c,"minSize",100),g=Array.isArray(r)?r:f.map(function(){return r}),a=U(c,"expandToMin",!1),m=U(c,"gutterSize",10),v=U(c,"gutterAlign","center"),y=U(c,"snapOffset",30),b=U(c,"dragInterval",1),w=U(c,"direction",B),x=U(c,"cursor",w===B?"col-resize":"row-resize"),k=U(c,"gutter",J),s=U(c,"elementStyle",V),_=U(c,"gutterStyle",$);function C(e,t,n,r){var o=s(u,t,n,r);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function E(){return l.map(function(t){return t.size})}function j(t){return"touches"in t?t.touches[0][e]:t[e]}function S(t){var e=l[this.a],n=l[this.b],r=e.size+n.size;e.size=t/this.size*r,n.size=r-t/this.size*r,C(e.element,e.size,this._b,e.i),C(n.element,n.size,this._c,n.i)}function q(){var t=l[this.a].element,e=l[this.b].element,n=t[F](),r=e[F]();this.size=n[u]+r[u]+this._b+this._c,this.start=n[o],this.end=n[i]}function O(i){var a=function(t){if(!getComputedStyle)return null;var e=getComputedStyle(t);return t[n]-(w===B?parseFloat(e.paddingLeft)+parseFloat(e.paddingRight):parseFloat(e.paddingTop)+parseFloat(e.paddingBottom))}(h);if(null===a)return i;var s=0,c=[],t=i.map(function(t,e){var n=a*t/100,r=G(m,0===e,e===i.length-1,v),o=g[e]+r;return n<o?(s+=o-n,c.push(0),o):(c.push(n-o),n)});return 0===s?i:t.map(function(t,e){var n=t;if(0<s&&0<c[e]-s){var r=Math.min(s,c[e]-s);s-=r,n=t-r}return n/a*100})}w===B?(u="width",e="clientX",o="left",i="right",n="clientWidth"):"vertical"===w&&(u="height",e="clientY",o="top",i="bottom",n="clientHeight"),p=O(p);var M=[];function A(t){var e=t.i===M.length,n=e?M[t.i-1]:M[t.i];q.call(n);var r=e?n.size-t.minSize-n._c:t.minSize+n._b;S.call(n,r)}function T(t){var i=O(t);i.forEach(function(t,e){if(0<e){var n=M[e-1],r=l[n.a],o=l[n.b];r.size=i[e-1],o.size=t,C(r.element,r.size,n._b),C(o.element,o.size,n._c)}})}function I(n,r){M.forEach(function(e){if(!0!==r?e.parent.removeChild(e.gutter):(e.gutter[D]("mousedown",e._a),e.gutter[D]("touchstart",e._a)),!0!==n){var t=s(u,e.a.size,e._b);Object.keys(t).forEach(function(t){l[e.a].element.style[t]="",l[e.b].element.style[t]=""})}})}return(l=f.map(function(t,e){var n,r,o,i={element:H(t),size:p[e],minSize:g[e],i:e};if(0<e&&((n={a:e-1,b:e,dragging:!1,direction:w,parent:h})._b=G(m,e-1==0,!1,v),n._c=G(m,!1,e===f.length-1,v),"row-reverse"===d||"column-reverse"===d)){var a=n.a;n.a=n.b,n.b=a}if(!R&&0<e){var s=k(e,w,i.element);r=s,o=_(u,m,e),Object.keys(o).forEach(function(t){r.style[t]=o[t]}),n._a=function(t){if(!("button"in t&&0!==t.button)){var e=this,n=l[e.a].element,r=l[e.b].element;e.dragging||U(c,"onDragStart",P)(E()),t.preventDefault(),e.dragging=!0,e.move=function(t){var e,n=l[this.a],r=l[this.b];this.dragging&&(e=j(t)-this.start+(this._b-this.dragOffset),1<b&&(e=Math.round(e/b)*b),e<=n.minSize+y+this._b?e=n.minSize+this._b:e>=this.size-(r.minSize+y+this._c)&&(e=this.size-(r.minSize+this._c)),S.call(this,e),U(c,"onDrag",P)())}.bind(e),e.stop=function(){var t=this,e=l[t.a].element,n=l[t.b].element;t.dragging&&U(c,"onDragEnd",P)(E()),t.dragging=!1,N[D]("mouseup",t.stop),N[D]("touchend",t.stop),N[D]("touchcancel",t.stop),N[D]("mousemove",t.move),N[D]("touchmove",t.move),t.stop=null,t.move=null,e[D]("selectstart",P),e[D]("dragstart",P),n[D]("selectstart",P),n[D]("dragstart",P),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",t.gutter.style.cursor="",t.parent.style.cursor="",L.body.style.cursor=""}.bind(e),N[z]("mouseup",e.stop),N[z]("touchend",e.stop),N[z]("touchcancel",e.stop),N[z]("mousemove",e.move),N[z]("touchmove",e.move),n[z]("selectstart",P),n[z]("dragstart",P),r[z]("selectstart",P),r[z]("dragstart",P),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",e.gutter.style.cursor=x,e.parent.style.cursor=x,L.body.style.cursor=x,q.call(e),e.dragOffset=j(t)-e.end}}.bind(n),s[z]("mousedown",n._a),s[z]("touchstart",n._a),h.insertBefore(s,i.element),n.gutter=s}return C(i.element,i.size,G(m,0===e,e===f.length-1,v)),0<e&&M.push(n),i})).forEach(function(t){var e=t.element[F]()[u];e<t.minSize&&(a?A(t):t.minSize=e)}),R?{setSizes:T,destroy:I}:{setSizes:T,getSizes:E,collapse:function(t){A(l[t])},destroy:I,parent:h,pairs:M}}}),function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=9)}([function(t,e,n){t.exports=n(10)},function(t,e){function c(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function o(t){c(r,e,n,o,i,"next",t)}function i(t){c(r,e,n,o,i,"throw",t)}o(void 0)})}}},function(t,e,n){var r=n(12),o=n(13),i=n(14);t.exports=function(t,e){return r(t)||o(t,e)||i()}},function(t,e,n){var o=n(15);t.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}},function(t,e,n){var i=n(5)(),a=function(t){return t.reduce(function(t,e){return t[e[0]]=e[1].c,t},{})};t.exports=function(t,e){var n=[],r=a(t),o=a(e);return Object.keys(r).forEach(function(e){if(o.hasOwnProperty(e)){var t=i.calcStrDiff(r[e],o[e]);null!==t&&n.push(["E",e,t])}else n.push(["D",e,r[e]]),Object.keys(o).forEach(function(t){r[e]===o[t]&&(n.push(["R",e,t]),delete o[t])})}),Object.keys(o).forEach(function(t){r.hasOwnProperty(t)||n.push(["N",t,o[t]])}),n}},function(t,e,n){var r,o;function x(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}x.prototype.diff_main=function(t,e,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=r;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===n&&(n=!0);var i=n,a=this.diff_commonPrefix(t,e),s=t.substring(0,a);t=t.substring(a),e=e.substring(a),a=this.diff_commonSuffix(t,e);var c=t.substring(t.length-a);t=t.substring(0,t.length-a),e=e.substring(0,e.length-a);var u=this.diff_compute_(t,e,i,o);return s&&u.unshift([0,s]),c&&u.push([0,c]),this.diff_cleanupMerge(u),u},x.prototype.diff_compute_=function(t,e,n,r){var o;if(!t)return[[1,e]];if(!e)return[[-1,t]];var i=t.length>e.length?t:e,a=t.length>e.length?e:t,s=i.indexOf(a);if(-1!=s)return o=[[1,i.substring(0,s)],[0,a],[1,i.substring(s+a.length)]],t.length>e.length&&(o[0][0]=o[2][0]=-1),o;if(1==a.length)return[[-1,t],[1,e]];var c=this.diff_halfMatch_(t,e);if(c){var u=c[0],l=c[1],f=c[2],h=c[3],d=c[4],p=this.diff_main(u,f,n,r),g=this.diff_main(l,h,n,r);return p.concat([[0,d]],g)}return n&&100<t.length&&100<e.length?this.diff_lineMode_(t,e,r):this.diff_bisect_(t,e,r)},x.prototype.diff_lineMode_=function(t,e,n){t=(l=this.diff_linesToChars_(t,e)).chars1,e=l.chars2;var r=l.lineArray,o=this.diff_main(t,e,!1,n);this.diff_charsToLines_(o,r),this.diff_cleanupSemantic(o),o.push([0,""]);for(var i=0,a=0,s=0,c="",u="";i<o.length;){switch(o[i][0]){case 1:s++,u+=o[i][1];break;case-1:a++,c+=o[i][1];break;case 0:if(1<=a&&1<=s){o.splice(i-a-s,a+s),i=i-a-s;for(var l,f=(l=this.diff_main(c,u,!1,n)).length-1;0<=f;f--)o.splice(i,0,l[f]);i+=l.length}a=s=0,u=c=""}i++}return o.pop(),o},x.prototype.diff_bisect_=function(t,e,n){for(var r=t.length,o=e.length,i=Math.ceil((r+o)/2),a=i,s=2*i,c=new Array(s),u=new Array(s),l=0;l<s;l++)c[l]=-1,u[l]=-1;c[a+1]=0;for(var f=r-o,h=f%2!=(u[a+1]=0),d=0,p=0,g=0,m=0,v=0;v<i&&!((new Date).getTime()>n);v++){for(var y=-v+d;y<=v-p;y+=2){for(var b=a+y,w=(E=y==-v||y!=v&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-y;E<r&&w<o&&t.charAt(E)==e.charAt(w);)E++,w++;if(r<(c[b]=E))p+=2;else if(o<w)d+=2;else if(h&&0<=(_=a+f-y)&&_<s&&-1!=u[_]&&(k=r-u[_])<=E)return this.diff_bisectSplit_(t,e,E,w,n)}for(var x=-v+g;x<=v-m;x+=2){for(var k,_=a+x,C=(k=x==-v||x!=v&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-x;k<r&&C<o&&t.charAt(r-k-1)==e.charAt(o-C-1);)k++,C++;if(r<(u[_]=k))m+=2;else if(o<C)g+=2;else if(!h){var E;if(0<=(b=a+f-x)&&b<s&&-1!=c[b]&&(w=a+(E=c[b])-b,(k=r-k)<=E))return this.diff_bisectSplit_(t,e,E,w,n)}}}return[[-1,t],[1,e]]},x.prototype.diff_bisectSplit_=function(t,e,n,r,o){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),c=e.substring(r),u=this.diff_main(i,a,!1,o),l=this.diff_main(s,c,!1,o);return u.concat(l)},x.prototype.diff_linesToChars_=function(t,e){var a=[],s={};function n(t){for(var e="",n=0,r=-1,o=a.length;r<t.length-1;){-1==(r=t.indexOf("\n",n))&&(r=t.length-1);var i=t.substring(n,r+1);n=r+1,(s.hasOwnProperty?s.hasOwnProperty(i):void 0!==s[i])?e+=String.fromCharCode(s[i]):(e+=String.fromCharCode(o),s[i]=o,a[o++]=i)}return e}return a[0]="",{chars1:n(t),chars2:n(e),lineArray:a}},x.prototype.diff_charsToLines_=function(t,e){for(var n=0;n<t.length;n++){for(var r=t[n][1],o=[],i=0;i<r.length;i++)o[i]=e[r.charCodeAt(i)];t[n][1]=o.join("")}},x.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},x.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},x.prototype.diff_commonOverlap_=function(t,e){var n=t.length,r=e.length;if(0==n||0==r)return 0;r<n?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var o=Math.min(n,r);if(t==e)return o;for(var i=0,a=1;;){var s=t.substring(o-a),c=e.indexOf(s);if(-1==c)return i;a+=c,0!=c&&t.substring(o-a)!=e.substring(0,a)||(i=a,a++)}},x.prototype.diff_halfMatch_=function(t,e){if(this.Diff_Timeout<=0)return null;var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;var h=this;function o(t,e,n){for(var r,o,i,a,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,u="";-1!=(c=e.indexOf(s,c+1));){var l=h.diff_commonPrefix(t.substring(n),e.substring(c)),f=h.diff_commonSuffix(t.substring(0,n),e.substring(0,c));u.length<f+l&&(u=e.substring(c-f,c)+e.substring(c,c+l),r=t.substring(0,n-f),o=t.substring(n+l),i=e.substring(0,c-f),a=e.substring(c+l))}return 2*u.length>=t.length?[r,o,i,a,u]:null}var i,a,s,c,u,l=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));return l||f?(i=f?l&&l[4].length>f[4].length?l:f:l,t.length>e.length?(a=i[0],s=i[1],c=i[2],u=i[3]):(c=i[0],u=i[1],a=i[2],s=i[3]),[a,s,c,u,i[4]]):null},x.prototype.diff_cleanupSemantic=function(t){for(var e=!1,n=[],r=0,o=null,i=0,a=0,s=0,c=0,u=0;i<t.length;)0==t[i][0]?(a=c,s=u,u=c=0,o=t[n[r++]=i][1]):(1==t[i][0]?c+=t[i][1].length:u+=t[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[-1,o]),t[n[r-1]+1][0]=1,r--,i=0<--r?n[r-1]:-1,u=c=s=a=0,e=!(o=null))),i++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),i=1;i<t.length;){if(-1==t[i-1][0]&&1==t[i][0]){var l=t[i-1][1],f=t[i][1],h=this.diff_commonOverlap_(l,f),d=this.diff_commonOverlap_(f,l);d<=h?(h>=l.length/2||h>=f.length/2)&&(t.splice(i,0,[0,f.substring(0,h)]),t[i-1][1]=l.substring(0,l.length-h),t[i+1][1]=f.substring(h),i++):(d>=l.length/2||d>=f.length/2)&&(t.splice(i,0,[0,l.substring(0,d)]),t[i-1][0]=1,t[i-1][1]=f.substring(0,f.length-d),t[i+1][0]=-1,t[i+1][1]=l.substring(d),i++),i++}i++}},x.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt(0),o=n.match(x.nonAlphaNumericRegex_),i=r.match(x.nonAlphaNumericRegex_),a=o&&n.match(x.whitespaceRegex_),s=i&&r.match(x.whitespaceRegex_),c=a&&n.match(x.linebreakRegex_),u=s&&r.match(x.linebreakRegex_),l=c&&t.match(x.blanklineEndRegex_),f=u&&e.match(x.blanklineStartRegex_);return l||f?5:c||u?4:o&&!a&&s?3:a||s?2:o||i?1:0}for(var n=1;n<t.length-1;){if(0==t[n-1][0]&&0==t[n+1][0]){var r=t[n-1][1],o=t[n][1],i=t[n+1][1],a=this.diff_commonSuffix(r,o);if(a){var s=o.substring(o.length-a);r=r.substring(0,r.length-a),o=s+o.substring(0,o.length-a),i=s+i}for(var c=r,u=o,l=i,f=e(r,o)+e(o,i);o.charAt(0)===i.charAt(0);){r+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);var h=e(r,o)+e(o,i);f<=h&&(f=h,c=r,u=o,l=i)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=u,l?t[n+1][1]=l:(t.splice(n+1,1),n--))}n++}},x.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,x.whitespaceRegex_=/\s/,x.linebreakRegex_=/[\r\n]/,x.blanklineEndRegex_=/\n\r?\n$/,x.blanklineStartRegex_=/^\r?\n\r?\n/,x.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],r=0,o=null,i=0,a=!1,s=!1,c=!1,u=!1;i<t.length;)0==t[i][0]?(o=t[i][1].length<this.Diff_EditCost&&(c||u)?(a=c,s=u,t[n[r++]=i][1]):(r=0,null),c=u=!1):(-1==t[i][0]?u=!0:c=!0,o&&(a&&s&&c&&u||o.length<this.Diff_EditCost/2&&a+s+c+u==3)&&(t.splice(n[r-1],0,[-1,o]),t[n[r-1]+1][0]=1,r--,o=null,a&&s?(c=u=!0,r=0):(i=0<--r?n[r-1]:-1,c=u=!1),e=!0)),i++;e&&this.diff_cleanupMerge(t)},x.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,n=0,r=0,o=0,i="",a="";n<t.length;)switch(t[n][0]){case 1:o++,a+=t[n][1],n++;break;case-1:r++,i+=t[n][1],n++;break;case 0:1<r+o?(0!==r&&0!==o&&(0!==(e=this.diff_commonPrefix(a,i))&&(0<n-r-o&&0==t[n-r-o-1][0]?t[n-r-o-1][1]+=a.substring(0,e):(t.splice(0,0,[0,a.substring(0,e)]),n++),a=a.substring(e),i=i.substring(e)),0!==(e=this.diff_commonSuffix(a,i))&&(t[n][1]=a.substring(a.length-e)+t[n][1],a=a.substring(0,a.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[1,a]):0===o?t.splice(n-r,r+o,[-1,i]):t.splice(n-r-o,r+o,[-1,i],[1,a]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&0==t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,r=o=0,a=i=""}""===t[t.length-1][1]&&t.pop();var s=!1;for(n=1;n<t.length-1;)0==t[n-1][0]&&0==t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),s=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),s=!0)),n++;s&&this.diff_cleanupMerge(t)},x.prototype.diff_xIndex=function(t,e){var n,r=0,o=0,i=0,a=0;for(n=0;n<t.length&&(1!==t[n][0]&&(r+=t[n][1].length),-1!==t[n][0]&&(o+=t[n][1].length),!(e<r));n++)i=r,a=o;return t.length!=n&&-1===t[n][0]?a:a+(e-i)},x.prototype.diff_prettyHtml=function(t){for(var e=[],n=/&/g,r=/</g,o=/>/g,i=/\n/g,a=0;a<t.length;a++){var s=t[a][0],c=t[a][1].replace(n,"&").replace(r,"<").replace(o,">").replace(i,"¶<br>");switch(s){case 1:e[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:e[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:e[a]="<span>"+c+"</span>"}}return e.join("")},x.prototype.diff_text1=function(t){for(var e=[],n=0;n<t.length;n++)1!==t[n][0]&&(e[n]=t[n][1]);return e.join("")},x.prototype.diff_text2=function(t){for(var e=[],n=0;n<t.length;n++)-1!==t[n][0]&&(e[n]=t[n][1]);return e.join("")},x.prototype.diff_levenshtein=function(t){for(var e=0,n=0,r=0,o=0;o<t.length;o++){var i=t[o][0],a=t[o][1];switch(i){case 1:n+=a.length;break;case-1:r+=a.length;break;case 0:e+=Math.max(n,r),r=n=0}}return e+Math.max(n,r)},x.prototype.diff_toDelta=function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n][0]){case 1:e[n]="+"+encodeURI(t[n][1]);break;case-1:e[n]="-"+t[n][1].length;break;case 0:e[n]="="+t[n][1].length}return e.join("\t").replace(/%20/g," ")},x.prototype.diff_fromDelta=function(t,e){for(var n=[],r=0,o=0,i=e.split(/\t/g),a=0;a<i.length;a++){var s=i[a].substring(1);switch(i[a].charAt(0)){case"+":try{n[r++]=[1,decodeURI(s)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var c=parseInt(s,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+s);var u=t.substring(o,o+=c);"="==i[a].charAt(0)?n[r++]=[0,u]:n[r++]=[-1,u];break;default:if(i[a])throw new Error("Invalid diff operation in diff_fromDelta: "+i[a])}}if(o!=t.length)throw new Error("Delta length ("+o+") does not equal source text length ("+t.length+").");return n},x.prototype.match_main=function(t,e,n){if(null==t||null==e||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==e?0:t.length?t.substring(n,n+e.length)==e?n:this.match_bitap_(t,e,n):-1},x.prototype.match_bitap_=function(t,o,i){if(o.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var e=this.match_alphabet_(o),a=this;function n(t,e){var n=t/o.length,r=Math.abs(i-e);return a.Match_Distance?n+r/a.Match_Distance:r?1:n}var r=this.Match_Threshold,s=t.indexOf(o,i);-1!=s&&(r=Math.min(n(0,s),r),-1!=(s=t.lastIndexOf(o,i+o.length))&&(r=Math.min(n(0,s),r)));var c,u,l=1<<o.length-1;s=-1;for(var f,h=o.length+t.length,d=0;d<o.length;d++){for(c=0,u=h;c<u;)n(d,i+u)<=r?c=u:h=u,u=Math.floor((h-c)/2+c);h=u;var p=Math.max(1,i-u+1),g=Math.min(i+u,t.length)+o.length,m=Array(g+2);m[g+1]=(1<<d)-1;for(var v=g;p<=v;v--){var y=e[t.charAt(v-1)];if(m[v]=0===d?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(f[v+1]|f[v])<<1|1|f[v+1],m[v]&l){var b=n(d,v-1);if(b<=r){if(r=b,!(i<(s=v-1)))break;p=Math.max(1,2*i-s)}}}if(n(d+1,i)>r)break;f=m}return s},x.prototype.match_alphabet_=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=0;for(n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e},x.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var n=e.substring(t.start2,t.start2+t.length1),r=0;e.indexOf(n)!=e.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=e.substring(t.start2-r,t.start2+t.length1+r);r+=this.Patch_Margin;var o=e.substring(t.start2-r,t.start2);o&&t.diffs.unshift([0,o]);var i=e.substring(t.start2+t.length1,t.start2+t.length1+r);i&&t.diffs.push([0,i]),t.start1-=o.length,t.start2-=o.length,t.length1+=o.length+i.length,t.length2+=o.length+i.length}},x.prototype.patch_make=function(t,e,n){var r,o;if("string"==typeof t&&"string"==typeof e&&void 0===n)r=t,2<(o=this.diff_main(r,e,!0)).length&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(t&&"object"==typeof t&&void 0===e&&void 0===n)o=t,r=this.diff_text1(o);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===n)r=t,o=e;else{if("string"!=typeof t||"string"!=typeof e||!n||"object"!=typeof n)throw new Error("Unknown call format to patch_make.");r=t,o=n}if(0===o.length)return[];for(var i=[],a=new x.patch_obj,s=0,c=0,u=0,l=r,f=r,h=0;h<o.length;h++){var d=o[h][0],p=o[h][1];switch(s||0===d||(a.start1=c,a.start2=u),d){case 1:a.diffs[s++]=o[h],a.length2+=p.length,f=f.substring(0,u)+p+f.substring(u);break;case-1:a.length1+=p.length,a.diffs[s++]=o[h],f=f.substring(0,u)+f.substring(u+p.length);break;case 0:p.length<=2*this.Patch_Margin&&s&&o.length!=h+1?(a.diffs[s++]=o[h],a.length1+=p.length,a.length2+=p.length):p.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(a,l),i.push(a),a=new x.patch_obj,s=0,l=f,c=u)}1!==d&&(c+=p.length),-1!==d&&(u+=p.length)}return s&&(this.patch_addContext_(a,l),i.push(a)),i},x.prototype.patch_deepCopy=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=new x.patch_obj;o.diffs=[];for(var i=0;i<r.diffs.length;i++)o.diffs[i]=r.diffs[i].slice();o.start1=r.start1,o.start2=r.start2,o.length1=r.length1,o.length2=r.length2,e[n]=o}return e},x.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var n=this.patch_addPadding(t);e=n+e+n,this.patch_splitMax(t);for(var r=0,o=[],i=0;i<t.length;i++){var a,s,c=t[i].start2+r,u=this.diff_text1(t[i].diffs),l=-1;if(u.length>this.Match_MaxBits?-1!=(a=this.match_main(e,u.substring(0,this.Match_MaxBits),c))&&(-1==(l=this.match_main(e,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||l<=a)&&(a=-1):a=this.match_main(e,u,c),-1==a)o[i]=!1,r-=t[i].length2-t[i].length1;else if(o[i]=!0,r=a-c,u==(s=-1==l?e.substring(a,a+u.length):e.substring(a,l+this.Match_MaxBits)))e=e.substring(0,a)+this.diff_text2(t[i].diffs)+e.substring(a+u.length);else{var f=this.diff_main(u,s,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(f)/u.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(f);for(var h,d=0,p=0;p<t[i].diffs.length;p++){var g=t[i].diffs[p];0!==g[0]&&(h=this.diff_xIndex(f,d)),1===g[0]?e=e.substring(0,a+h)+g[1]+e.substring(a+h):-1===g[0]&&(e=e.substring(0,a+h)+e.substring(a+this.diff_xIndex(f,d+g[1].length))),-1!==g[0]&&(d+=g[1].length)}}}}return[e=e.substring(n.length,e.length-n.length),o]},x.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,n="",r=1;r<=e;r++)n+=String.fromCharCode(r);for(r=0;r<t.length;r++)t[r].start1+=e,t[r].start2+=e;var o=t[0],i=o.diffs;if(0==i.length||0!=i[0][0])i.unshift([0,n]),o.start1-=e,o.start2-=e,o.length1+=e,o.length2+=e;else if(e>i[0][1].length){var a=e-i[0][1].length;i[0][1]=n.substring(i[0][1].length)+i[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}return 0==(i=(o=t[t.length-1]).diffs).length||0!=i[i.length-1][0]?(i.push([0,n]),o.length1+=e,o.length2+=e):e>i[i.length-1][1].length&&(a=e-i[i.length-1][1].length,i[i.length-1][1]+=n.substring(0,a),o.length1+=a,o.length2+=a),n},x.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,n=0;n<t.length;n++)if(!(t[n].length1<=e)){var r=t[n];t.splice(n--,1);for(var o=r.start1,i=r.start2,a="";0!==r.diffs.length;){var s=new x.patch_obj,c=!0;for(s.start1=o-a.length,s.start2=i-a.length,""!==a&&(s.length1=s.length2=a.length,s.diffs.push([0,a]));0!==r.diffs.length&&s.length1<e-this.Patch_Margin;){var u=r.diffs[0][0],l=r.diffs[0][1];1===u?(s.length2+=l.length,i+=l.length,s.diffs.push(r.diffs.shift()),c=!1):-1===u&&1==s.diffs.length&&0==s.diffs[0][0]&&l.length>2*e?(s.length1+=l.length,o+=l.length,c=!1,s.diffs.push([u,l]),r.diffs.shift()):(l=l.substring(0,e-s.length1-this.Patch_Margin),s.length1+=l.length,o+=l.length,0===u?(s.length2+=l.length,i+=l.length):c=!1,s.diffs.push([u,l]),l==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(l.length))}a=(a=this.diff_text2(s.diffs)).substring(a.length-this.Patch_Margin);var f=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==f&&(s.length1+=f.length,s.length2+=f.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=f:s.diffs.push([0,f])),c||t.splice(++n,0,s)}}},x.prototype.patch_toText=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n];return e.join("")},x.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var n=t.split("\n"),r=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<n.length;){var i=n[r].match(o);if(!i)throw new Error("Invalid patch string: "+n[r]);var a=new x.patch_obj;for(e.push(a),a.start1=parseInt(i[1],10),""===i[2]?(a.start1--,a.length1=1):"0"==i[2]?a.length1=0:(a.start1--,a.length1=parseInt(i[2],10)),a.start2=parseInt(i[3],10),""===i[4]?(a.start2--,a.length2=1):"0"==i[4]?a.length2=0:(a.start2--,a.length2=parseInt(i[4],10)),r++;r<n.length;){var s=n[r].charAt(0);try{var c=n[r].substring(1)}catch(t){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==s)a.diffs.push([-1,c]);else if("+"==s)a.diffs.push([1,c]);else if(" "==s)a.diffs.push([0,c]);else{if("@"==s)break;if(""!==s)throw new Error('Invalid patch mode "'+s+'" in: '+c)}r++}}return e},(x.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var t,e=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:t="+";break;case-1:t="-";break;case 0:t=" "}e[n+1]=t+encodeURI(this.diffs[n][1])+"\n"}return e.join("").replace(/%20/g," ")},t.exports=x,t.exports.diff_match_patch=x,t.exports.DIFF_DELETE=-1,t.exports.DIFF_INSERT=1,t.exports.DIFF_EQUAL=0,"undefined"!=typeof self&&self,void 0===(o="function"==typeof(r=function(){return function(){var t,n=[],u={ON_CHANGE:"s",ON_ADD:"a",ON_COMMIT:"c",ON_CHECKOUT:"co"},c={i:0,commits:{},stage:[],working:[],head:null},l=function(){return t||(t=new x)},f=function(t){return JSON.parse(JSON.stringify(t))},h=function(t){return JSON.stringify(t)},d=function(t){return JSON.parse(t)},o=function(){var e=u.log(),t=Object.keys(e),n=t.find(function(t){return null===e[t].parent&&e[t].files.match(/^\[/)});return n||(n=t.shift()),n},p=function(){var t,e,a=u.log(),s={},c=(t=u.log(),(e=o())?t[e]:null);return Object.keys(a).forEach(function t(e){if(s[e])return s[e];if(!a[e])return s[e]=c.files;if(null!==a[e].parent){var n=t(a[e].parent);return void 0===k(n)&&(function(t){throw new Error('"source" is read-only')}(),n=c.files),s[e]=(r=n,o=a[e].files,(i=l()).patch_apply(i.patch_fromText(o),r).shift())}var r,o,i;s[e]=a[e].files}),s},r=function(t){var e=p();if(!e[t])throw new Error("There is no commit with hash "+t);return e[t]},i=function(t,e){var n=l(),r=n.diff_main(t,e,!0);return 2<r.length&&n.diff_cleanupSemantic(r),n.patch_toText(n.patch_make(t,e,r))},a=function(t,e){return decodeURI(i(r(e),t))},g=function(e){return n.forEach(function(t){return t(e)})},e=function(o){return{length:function(){return o.length},save:function(t,e){!function(t,e){if(!t)throw new Error("`filepath` is required.");if(!e)throw new Error("`file` object is required.");if("string"!=typeof t)throw new Error("`filepath` must be a string.");if("object"!==k(e))throw new Error("`file` must be an object.")}(t,e);for(var n=0,r=this.length();n<r;){if(o[n][0]===t)return o[n][1]=Object.assign({},o[n][1],e);n++}o.push([t,e])},saveAll:function(t){for(var e=0,n=this.length();e<n;)o[e][1]=Object.assign({},o[e][1],t),e++},get:function(t){for(var e=0,n=this.length();e<n;){if(o[e][0]===t)return o[e][1];e++}},del:function(t){for(var e=0,n=this.length();e<n;){if(o[e][0]===t||o[e][1]===t)return void o.splice(e,1);e++}throw new Error("There is no file with path ".concat(t,"."))},getKey:function(t){for(var e=0,n=this.length();e<n;){if(o[e][1]===t)return o[e][0];e++}},rename:function(t,e){for(var n=0,r=this.length();n<r;){if(o[n][0]===t)return o[n][0]=e;n++}throw new Error("There is no file with path ".concat(key,"."))},clone:function(){return f(o)},replaceStorage:function(t){o=t},toObject:function(){return o.reduce(function(t,e){return t[e[0]]=e[1],t},{})}}},s=function(t){var r=l().patch_fromText(t);return r.reduce(function(t,e,n){return e.diffs&&(t+=e.diffs.reduce(function(t,e){var n=y(decodeURI(e[1])).replace(/\n/g,"<br />");return 1===e[0]&&(t+="<ins>"+n+"</ins>"),-1===e[0]&&(t+="<del>"+n+"</del>"),0===e[0]&&(t+="<span>"+n+"</span>"),t},""),n<r.length-1&&(t+="<hr />")),t},"")},m=function(){var n=c.commits,t=Object.keys(n),r=o();r&&t.forEach(function(t){var e=n[t];null===e.parent&&t!==r&&(e.parent=r),null!==e.parent&&void 0===n[e.parent]&&(e.parent=r)})},v=function(t,e){return decodeURI(i(h(t),h(e)))},y=function(t){var e={"&":"&","<":"<",">":">"};return t.replace(/[&<>]/g,function(t){return e[t]||t})},b=e(c.working),w=e(c.stage);return u.save=function(e,t){return"object"===k(e)&&void 0===t?(Object.keys(e).forEach(function(t){return b.save(t,e[t])}),g(u.ON_CHANGE),u):(b.save(e,t),g(u.ON_CHANGE),t)},u.saveAll=function(t){return b.saveAll(t),g(u.ON_CHANGE),u},u.discard=function(){return this.checkout(void 0,!0),u},u.del=function(t){return b.del(t),g(u.ON_CHANGE),u},u.rename=function(t,e){return b.rename(t,e),g(u.ON_CHANGE),c.working},u.get=function(t){return b.get(t)},u.exists=function(t){return!!b.get(t)},u.getAll=function(){return c.working},u.getFilepath=function(t){return b.getKey(t)},u.add=function(t){if(void 0===t)w.replaceStorage(c.stage=b.clone());else{var e=b.get(t);if(!e)throw new Error("There is no '".concat(t,"' in the working directory."));w.save(t,f(e))}return g(u.ON_ADD),u},u.commit=function(t,e){if(0===w.length())throw new Error("NOTHING_TO_COMMIT");var n="_"+ ++c.i,r=this.head(),o=null!==r?a(h(c.stage),r):h(c.stage);return c.commits[n]={message:t,parent:r,files:o},e&&(c.commits[n].meta=e),c.head=n,w.replaceStorage(c.stage=[]),g(u.ON_COMMIT),n},u.amend=function(n,r){if(void 0===n&&void 0===r&&null!==this.head)return this.amend(this.head(),{files:b.toObject()});var o=f(this.log()),t=Object.keys(o);if(0!==t.length){var e=p();return t.forEach(function(t){return o[t].files=d(e[t])}),t.forEach(function(t){var e=o[t];n===t&&(e.message=r.message?r.message:e.message,e.meta=r.meta?r.meta:e.meta,r.files&&(e.files=Object.keys(r.files).reduce(function(t,e){return t.push([e,r.files[e]]),t},[])))}),Object.keys(o).forEach(function(t){var e=o[t];null===e.parent?e._files=h(e.files):e._files=v(o[e.parent].files,e.files)}),Object.keys(o).forEach(function(t){o[t].files=o[t]._files,delete o[t]._files}),c.commits=o,g(u.ON_COMMIT),o[n]}},u.show=function(t){t=t||this.head();var e=u.log()[t];if(!e)throw new Error('There is no commit with hash "'.concat(t,'".'));var n=f(e);return n.files=d(r(t)),n},u.checkout=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!e&&0<w.length())throw new Error("UNCOMMITED_CHANGES");if(!e&&""!==a(h(c.working),this.head()))throw new Error("UNSTAGED_FILES");return void 0===t&&(t=this.head()),c.head=t,b.replaceStorage(c.working=d(r(t))),g(u.ON_CHECKOUT),u},u.staged=function(){return w},u.head=function(){return c.head},u.log=function(){return c.commits},u.logAsTree=function(){var r=f(c.commits);return function t(e){if(!e)return null;var n=r[e];return delete r[e],n.hash=e,n.derivatives=Object.keys(r).filter(function(t){return r[t].parent===e}).map(t),n}(Object.keys(r).find(function(t){return null===r[t].parent}))},u.rollOut=function(){var n=this.log(),r=p();return Object.keys(n).reduce(function(t,e){return t[e]={},t[e].message=n[e].message,t[e].parent=n[e].parent,n[e].meta&&(t[e].meta=n[e].meta),t[e].files=r[e]?d(r[e]):"",t},{})},u.adios=function(n){var r=f(this.log()),t=r[n],e=Object.keys(r);if(0!==e.length){var o,i,a=r[n].parent,s=p();return e.forEach(function(t){return r[t].files=d(s[t])}),delete r[n],(e=Object.keys(r)).forEach(function(t){var e=r[t];e.parent===n&&null===(e.parent=a)&&(o?e.parent=o:o=t),null===e.parent?e._files=h(e.files):e._files=v(r[e.parent].files,e.files)}),e.forEach(function(t){r[t].files=r[t]._files,delete r[t]._files}),this.head()===n&&(i=r,0===Object.keys(i).length&&i.constructor===Object?c.head=null:this.checkout(null===a?Object.keys(r).shift():a)),c.commits=r,g(u.ON_COMMIT),m(),t}},u.diff=function(){var t=a(h(c.working),this.head());return""===t?null:{text:t,html:s(t)}},u.export=function(){return f(c)},u.listen=function(t){n.push(t)},u.import=function(t){return(c=t).head||(c.head=null),c.i||(c.i=c.head?parseInt(c.head.replace("_","")):0),c.stage||(c.stage=[]),c.working||(c.working=[],this.checkout(this.head(),!0)),c.commits||(c.commits={}),b.replaceStorage(c.working),w.replaceStorage(c.stage),m(),u},u.commitDiffToHTML=function(t){if(!c.commits[t])throw new Error("There is no commit with hash ".concat(t,"."));return-1===c.commits[t].files.indexOf("@@")?"":s(c.commits[t].files)},u.calcStrDiff=function(t,e){var n=i(t,e);return""===n?null:{text:n,html:s(n)}},u}})?r.apply(e,[]):r)||(t.exports=o)},function(t,e){function l(){return document.getElementById("svg-canvas")}function f(t,e,n,r){var o=l(),i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttributeNS(null,"cx",t),i.setAttributeNS(null,"cy",e),i.setAttributeNS(null,"r",n),i.setAttributeNS(null,"fill",r),o.appendChild(i)}t.exports={connectCommits:function(t,e,n){var r,o,i,a,s,c,u;f(t,e,3,"#999"),f(t,n,3,"#999"),o=e,i=r=t,a=n,s=l(),c=document.createElementNS("http://www.w3.org/2000/svg","path"),u="M "+r+" "+o+" C 40 "+(o+15)+" "+(i+15)+" "+a+" "+i+" "+a,c.setAttributeNS(null,"d",u),c.setAttributeNS(null,"fill","none"),c.setAttributeNS(null,"stroke","#999"),s.appendChild(c)},empty:function(){for(var t=l();t.firstChild;)t.removeChild(t.firstChild)}}},function(t){t.exports={name:"demoit",version:"7.10.0",description:"A live coding tool",main:"index.js",repository:{type:"git",url:"git+https://github.com/krasimir/demoit.git"},scripts:{"clean-demoit":"shx rm -rf ./dist/*","copy-static":"shx cp ./src/index.html ./dist/index.html && shx cp ./src/sandbox.html ./dist/sandbox.html && shx cp -r ./src/resources ./dist && shx cp -r ./src/img ./dist","produce-minified-js":"uglifyjs ./src/js-vendor/split.js ./.tmp/demoit.js -c -m -o ./dist/demoit.js","produce-js":"shx cat ./src/js-vendor/split.js ./.tmp/demoit.js > ./dist/demoit.js","produce-css":"shx cat ./src/css/codemirror.css ./src/css/la.css ./src/css/styles.css ./src/css/light_theme.css ./src/css/dark_theme.css | uglifycss > ./dist/styles.css","produce-editor-js":"uglifyjs ./src/js-vendor/codemirror.js ./src/js-vendor/javascript.js ./src/js-vendor/xml.js ./src/js-vendor/jsx.js ./src/js-vendor/mark-selection.js ./src/js-vendor/matchbrackets.js ./src/js-vendor/comment.js ./src/js-vendor/search_cursor.js ./src/js-vendor/overlay.js ./src/js-vendor/markdown.js ./src/js-vendor/gfm.js ./src/js-vendor/runmode.js ./src/js-vendor/colorize.js ./src/js-vendor/closebrackets.js ./src/js-vendor/match-highlighter.js ./src/js-vendor/css.js ./src/js-vendor/htmlmixed.js ./src/js-vendor/deep-diff.js ./src/js-vendor/babel-6.26.0.min.js ./src/js-vendor/babel-polyfill@6.26.0.js ./src/js-vendor/babel-plugin-transform-es2015-modules-commonjs@6.26.2.js -c -m -o ./dist/resources/editor.js",dev:'yarn build && concurrently "webpack" "onchange ./src/css/*.css -- yarn produce-css" "onchange ./.tmp/*.js -- yarn produce-js" "cpx ./src/index.html ./dist/ -w" "cpx ./src/sandbox.html ./dist/ -w"',build:"yarn clean-demoit && yarn copy-static && yarn produce-css && yarn produce-editor-js && webpack --config ./webpack.config.prod.js && yarn produce-minified-js",zip:"node ./scripts/zipit.js",release:"yarn test && yarn build && yarn zip",test:"jest","test-watch":"jest --watch --verbose false",lint:"./node_modules/.bin/eslint --ext .js src/js"},keywords:["demo","code","live","coding"],author:"Krasimir Tsonev",license:"MIT",bugs:{url:"https://github.com/krasimir/demoit/issues"},homepage:"https://github.com/krasimir/demoit#readme",devDependencies:{"@babel/core":"7.1.5","@babel/plugin-transform-runtime":"7.1.0","@babel/preset-env":"7.1.5","@babel/runtime":"7.1.5","babel-core":"^7.0.0-bridge.0","babel-eslint":"8.0.3","babel-jest":"23.6.0","babel-loader":"8.0.4","clean-css-cli":"4.2.1",concurrently:"4.0.1",cpx:"1.5.0",eslint:"4.12.1",jest:"23.6.0",onchange:"5.1.3","regenerator-runtime":"0.13.1",shx:"^0.3.2","uglify-js":"3.4.9",uglifycss:"0.0.29",webpack:"4.25.1","webpack-cli":"3.1.2","zip-folder":"1.0.0"},dependencies:{gitfred:"7.2.4",hashids:"1.2.2",jszip:"3.1.5","layout-architect":"3.0.0"}}},function(t,e,n){"use strict";var r,o;"undefined"!=typeof self&&self,void 0===(o="function"==typeof(r=function(){return function(t,n,r){if(!t)throw new Error("Please provide a HTML element as first argument!");if(!n)throw new Error("Please provide a list of strings as a second argument!");var s,o=function(t){return document.createElement(t)},i=function(t,e,n){return t.setAttribute(e,n)},c=function(){var t=n.slice();if(!r)return t;var e=function e(n,t){return 0===t.elements.length?n.push(t.name):t.elements.forEach(function(t){return e(n,t)}),n}([],r);return t.filter(function(t){return-1===e.indexOf(t)})}(),e=o("DIV"),a=[],u=r||null;function l(t){return{name:t,elements:[]}}function f(e,t,n,r){return t.map(function(t){var e=o("A");return i(e,"data-op",t[0]),i(e,"href","javascript:void(0);"),i(e,"class",t[2]),e.innerHTML=t[1],e.item=n,e.parent=r,e}).forEach(function(t){return e.appendChild(t)})}function h(){var n;return d((n=o("DIV"),c.forEach(function(t){var e=o("A");i(e,"href","javascript:void(0);"),i(e,"data-op","select"),e.item=t,e.innerHTML='<svg width="10" height="10" viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '+t,n.appendChild(e)}),i(n,"class","la-selector"),n)),new Promise(function(n){s=function(t){var e=c.indexOf(t);-1<e&&c.splice(e,1),n(t)}})}function d(t){for(t=t||function e(n,t){var r=o("DIV");return i(r,"class","la-block"),0===n.elements.length?(r.innerHTML='<div class="la-name">'+n.name+"</div>",f(r,[["remove",'<svg width="14" height="14" viewBox="0 0 1792 1792"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>',"la-remove"]],n,t)):(r.innerHTML='<div class="la-children" style="grid-template-'+("vertical"===n.direction?"rows":"columns")+": repeat("+n.elements.length+', 1fr);"></div>',n.elements.forEach(function(t){return r.querySelector(".la-children").appendChild(e(t,n))})),f(r,[["horizontal:left","","la-left"],["vertical:top","","la-top"],["vertical:bottom","","la-bottom"],["horizontal:right","","la-right"]],n,t),r}(u);e.firstChild;)e.removeChild(e.firstChild);e.appendChild(t)}function p(){a.forEach(function(t){return t(u)})}function g(){h().then(function(t){u=l(t),d(),p()})}return i(e,"class","la"),e.addEventListener("click",function(t){var n,r,o,e=t.target.getAttribute("data-op"),i=t.target.item,a=t.target.parent;if(e&&i)if("remove"===e)!function(t,e){if(!t)return u=null,-1===c.indexOf(e.name)&&c.push(e.name);var n=t.elements.findIndex(function(t){return t===e});-1<n&&(t.elements.splice(n,1),1===t.elements.length&&(0<t.elements[0].elements.length?(t.direction=t.elements[0].direction,t.elements=t.elements[0].elements):(t.name=t.elements[0].name,t.elements=[],delete t.direction)),c.push(e.name))}(a,i),u?d():g(),p();else if("select"===e)s(i);else{if(0===c.length)return;e=e.split(":"),(n=i,r=e[0],o="right"===e[1]||"bottom"===e[1]?"after":"before",h().then(function(t){return l(t)}).then(function(t){if(0===n.elements.length)n.direction=r,n.elements="after"===o?[l(n.name),t]:[t,l(n.name)],delete n.name;else{if(n.direction!==r){var e={direction:n.direction,elements:n.elements};n.elements="after"===o?[e,t]:[t,e]}else"after"===o?n.elements.push(t):n.elements=[t].concat(n.elements);n.direction=r}})).then(function(){d(),p()})}}),u?d():g(),t.appendChild(e),{onChange:function(t){a.push(t)},change:function(t){u=t,d()},get:function(){return u}}}})?r.apply(e,[]):r)||(t.exports=o)},function(t,e,n){t.exports=n(16)},function(t,e,n){var r=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&0<=Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime"),i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(11),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(T,t){!function(t){"use strict";var c,e=Object.prototype,u=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag",a="object"==typeof T,s=t.regeneratorRuntime;if(s)a&&(T.exports=s);else{(s=t.regeneratorRuntime=a?T.exports:{}).wrap=b;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},l={};l[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(M([])));v&&v!==e&&u.call(v,o)&&(l=v);var y=_.prototype=x.prototype=Object.create(l);k.prototype=y.constructor=_,_.constructor=k,_[i]=k.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(y),t},s.awrap=function(t){return{__await:t}},C(E.prototype),E.prototype[r]=function(){return this},s.AsyncIterator=E,s.async=function(t,e,n,r){var o=new E(b(t,e,n,r));return s.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},C(y),y[i]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},s.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},s.values=M,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(q),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),s=u.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&u.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),q(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;q(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),g}}}function b(t,e,n,r){var i,a,s,c,o=e&&e.prototype instanceof x?e:x,u=Object.create(o.prototype),l=new O(r||[]);return u._invoke=(i=t,a=n,s=l,c=f,function(t,e){if(c===d)throw new Error("Generator is already running");if(c===p){if("throw"===t)throw e;return A()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=j(n,s);if(r){if(r===g)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(c===f)throw c=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);c=d;var o=w(i,a,s);if("normal"===o.type){if(c=s.done?p:h,o.arg===g)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(c=p,s.method="throw",s.arg=o.arg)}}),u}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function k(){}function _(){}function C(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(c){var e;this._invoke=function(n,r){function t(){return new Promise(function(t,e){!function e(t,n,r,o){var i=w(c[t],c,n);if("throw"!==i.type){var a=i.arg,s=a.value;return s&&"object"==typeof s&&u.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):Promise.resolve(s).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function j(t,e){var n=t.iterator[e.method];if(n===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,j(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=w(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(u.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:c,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";n.r(e);var r=n(0),v=n.n(r),o=n(1),y=n.n(o),i=n(7),u=[];function q(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length&&void 0!==arguments[3]&&arguments[3],o=[],i="string"==typeof t?e.querySelector(t):t,a=!0;if(!i){if(a=!1,!n)throw new Error('Ops! There is no DOM element matching "'.concat(t,'" selector.'));i=document.createElement("div")}var s=function(t,e){i.addEventListener(t,e);var n=function(){return i.removeEventListener(t,e)};return o.push(n),n},c={e:i,found:function(){return a},content:function(t){return t?(o.forEach(function(t){return t()}),i.innerHTML=t,this.exports()):i.innerHTML},text:function(t){return t?i.innerText=t:i.innerText},appendChild:function(t){return i.appendChild(t),this},appendChildren:function(t){return t.forEach(function(t){return i.appendChild(t.e)}),this},css:function(t,e){return void 0!==e?(i.style[t]=e,this):i.style[t]},clearCSS:function(){return i.style={},this},prop:function(t,e){return void 0!==e?(i[t]=e,this):i[t]},attr:function(t,e){return void 0!==e?(i.setAttribute(t,e),this):i.getAttribute(t)},onClick:function(t){return s("click",t)},onKeyUp:function(t){return s("keyup",t)},onKeyDown:function(t){return s("keydown",t)},onMouseOver:function(t){return s("mouseover",t)},onMouseOut:function(t){return s("mouseout",t)},onMouseUp:function(t){return s("mouseup",t)},onRightClick:function(e){var t=function(t){t.preventDefault(),e()};i.addEventListener("contextmenu",t);var n=function(){return i.removeEventListener("oncontextmenu",t)};return o.push(n),n},onChange:function(t){i.addEventListener("change",function(){return t(i.value)});var e=function(){return i.removeEventListener("change",t)};return o.push(e),e},find:function(t){return q(t,i)},appendTo:function(t){t.e.appendChild(i)},exports:function(){return Array.prototype.slice.call(i.querySelectorAll("[data-export]")).map(function(t){return q(t,i)})},namedExports:function(){return this.exports().reduce(function(t,e){return t[e.attr("data-export")]=e,t},{})},detach:function(){i.parentNode&&i.parentNode.contains(i)&&i.parentNode.removeChild(i)},empty:function(){for(;i.firstChild;)i.removeChild(i.firstChild);return this},destroy:function(){o.forEach(function(t){return t()}),r||(this.empty(),this.detach())},scrollToBottom:function(){i.scrollTop=i.scrollHeight},selectOnClick:function(){var t=this.onClick(function(){i.select(),t()})}};return u.push(c),c}function a(t){return window.location.href.match(t)}q.fromString=function(t){var e=document.createElement("div");e.innerHTML=t;var n=Array.prototype.slice.call(e.childNodes).filter(function(t){return 1===t.nodeType});if(0<n.length)return q(n[0]);throw new Error("fromString accepts HTMl with a single parent.")},q.wrap=function(t){return q(document.createElement("div")).appendChildren(t)},q.fromTemplate=function(t){return q.fromString(document.querySelector(t).innerHTML)},q.withFallback=function(t){return q(t,document,!0)},q.withRelaxedCleanup=function(t){return q(t,document,!1,!0)},q.destroy=function(){u.forEach(function(t){return t.destroy()}),u=[]};var O=!(q.exists=function(t){return!!document.querySelector(t)}),j=a(/^https:\/\/poet.krasimir.now.sh/)||a(/^http:\/\/localhost:8004/),s=a(/^http:\/\/localhost:8004/),c=s?"http://localhost:8004/api/demo":"https://poet.krasimir.now.sh/api/demo",l=s?"http://localhost:8004/api/profile":"https://poet.krasimir.now.sh/api/profile",b=["editor","HTML","console","story"];j&&(b.push("story-preview"),b.push("story-read-only"),b.push("annotate"));var w={elements:[{name:"editor",elements:[]},{elements:[{name:"HTML",elements:[]},{name:"console",elements:[]}],direction:"horizontal"}],direction:"vertical"},f=function(a){var t,e=q.withRelaxedCleanup(".app .layout"),n=q.withRelaxedCleanup("body");t=a.getEditorSettings().theme,q.withRelaxedCleanup(".app").attr("class","app "+t);var s,c=function n(r){return"string"==typeof r?("output"===r&&(r="HTML"),"log"===r&&(r="console"),{name:r,elements:[]}):(0<r.elements.length&&r.elements.forEach(function(t,e){return r.elements[e]=n(t)}),r)}(a.getEditorSettings().layout||w),r=q.fromTemplate("#template-html"),o=q.fromTemplate("#template-console"),i=q.fromTemplate("#template-editor"),u=q.fromTemplate("#template-story"),l=q.fromTemplate("#template-story-preview"),f=q.fromTemplate("#template-story-read-only"),h=q.fromTemplate("#template-annotate"),d=q.withFallback(".does-not-exists"),p={HTML:r,console:o,editor:i,story:u,"story-preview":l,"story-read-only":f,annotate:h},g=[],m=[];e.empty().appendChildren(function n(e){var r=e.direction,t=e.elements,o=e.sizes,i=t.map(function(t){if(0<t.elements.length){var e=q.wrap(n(t));return e.attr("class","editor-section"),e}return g.push(t.name),p[t.name]?p[t.name]:d});return o&&o.length!==t.length&&(o=t.map(function(){return 100/t.length})),m.push(function(){return{b:e,split:Split(i.map(function(t){return t.e}),{sizes:o||(t=i,t.map(function(){return 100/t.length})),gutterSize:2,direction:r,onDragEnd:function(){s.forEach(function(t){var e=t.b,n=t.split;e.sizes=n.getSizes()}),a.updateThemeAndLayout(c)}})};var t}),"horizontal"===r&&i.map(function(t){return t.css("float","left")}),i}({elements:[c]})),-1===g.indexOf("HTML")&&(r.css("position","absolute"),r.css("width","10px"),r.css("height","10px"),r.css("overflow","hidden"),r.css("top","-100px"),r.css("left","-100px"),r.css("visibility","hidden"),r.css("display","none"),r.appendTo(n)),setTimeout(function(){return s=m.map(function(t){return t()})},1)},h=n(2),S=n.n(h),d={presets:["react",["es2015",{modules:!1}],"es2016","es2017","stage-0","stage-1","stage-2","stage-3"],plugins:["transform-es2015-modules-commonjs"]};function p(t){return Babel.transform(t,d).code}var g=function(t,e){var n=(t||"").split(/\./).pop().toLowerCase();return"css"===n||"scss"===n?e='window.executeCSS("'.concat(t,'", ').concat(JSON.stringify(e),");"):"html"===n?e='window.executeHTML("'.concat(t,'", ').concat(JSON.stringify(e),");"):"md"===n&&(e="window.executeMarkdown(".concat(JSON.stringify(e),");")),{filename:t,content:e}},m=function(t){var e=t.filename,n=t.content;return'\n {\n filename: "'.concat(e,'",\n func: function (require, exports) {\n ').concat(p(n),"\n },\n exports: {}\n }\n")};function x(e,t){var o=[],i=0;try{var a=t.findIndex(function(t){return S()(t,1)[0]===e});return t.forEach(function(t){var e=S()(t,2),n=e[0],r=e[1];o.push(m(g(n,r.c))),!0===r.en&&(a=i),i+=1}),{code:p("\n const imported = [];\n const modules = [".concat(o.join(","),"];\n const require = function(file) {\n const module = modules.find(({ filename }) => filename === file);\n\n if (!module) {\n throw new Error('Can not find \"' + file + '\" file.');\n }\n imported.push(file);\n module.func(require, module.exports);\n return module.exports;\n };\n\n modules[index].func(require, modules[index].exports);\n ")),entryPoint:a}}catch(e){return console.error(e),null}}function k(){var e,r,o,i,a,s=q.withFallback(".console"),c=!0,u=function(t){var e,n=document.createElement("div"),r=String(t);try{e=String(JSON.parse(r))}catch(t){e=r}n.innerHTML="<p>"+("string"!=typeof e?e:e.replace(/[&<>"']/g,function(t){return"&"+{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}[t]+";"})).replace(/\\n/,"<br />")+"</p>",c&&(s.empty(),c=!1),s.appendChild(n),s.scrollToBottom()};return s.css("opacity",1),e=console.error,r=console.log,o=console.warn,i=console.info,a=console.clear,console.error=function(t){u(t.stack),e.apply(console,arguments)},console.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(u),r.apply(console,e)},console.warn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(u),o.apply(console,e)},console.info=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(u),i.apply(console,e)},console.clear=function(){s.content("");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];a.apply(console,e)},{clearConsole:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";c=!0,s.empty().content(t)},addToConsole:u}}var _=0,C={},E='<div class="centered"><div id="output" /></div>',M=function(i,e,n){return window.addEventListener("message",function(t){t.data.marker?(O&&console.log("<-- "+t.data.marker),C[t.data.marker]&&(C[t.data.marker].done(),delete C[t.data.marker])):t.data.log?e(t.data.log):t.data.op&&(O&&console.log("<-- "+t.data.op),n())}),function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,o=++_;return O&&console.log("Demoit -> op="+e+" markerId="+o),new Promise(function(t){C[r||o]={done:t,op:e,value:n},i.e.contentWindow&&i.e.contentWindow.postMessage({op:e,value:n,marker:o},"*")})}};function A(t,e,n){return T.apply(this,arguments)}function T(){return(T=y()(v.a.mark(function t(e,n,r){var o,i,a;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=q.withFallback(".output"),i=o.find("#sandbox"),a=M(i,n,r),t.abrupt("return",{setOutputHTML:function(){var t=y()(v.a.mark(function t(){var e,n=arguments;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<n.length&&void 0!==n[0]?n[0]:E,t.abrupt("return",a("html",e));case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),resetOutput:function(){var t=y()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a("reload",null,"loaded");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),loadDependenciesInOutput:function(){var t=y()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a("dependencies",e.getDependencies()));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),executeInOut:function(){var e=y()(v.a.mark(function t(e){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a("code",e));case 1:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}()});case 4:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var I,N={},L=function(t,e){if(N[t])return e();N[t]=!1;var n=document.createElement("script");return n.src=t,n.addEventListener("load",function(){N[t]=!0,e()}),document.body.appendChild(n),!0},z=function(t,e){if(N[t])return e();N[t]=!1;var n=document.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",t),n.addEventListener("load",function(){N[t]=!0,e()}),document.body.appendChild(n),!0},D=(I=y()(v.a.mark(function t(i){var a,e=arguments;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=1<e.length&&void 0!==e[1]?e[1]:function(){},t.abrupt("return",new Promise(function(o){!function t(e){if(e!==i.length){a(Math.ceil(e/i.length*100),i[e].split(/\//).pop());var n=i[e],r=n.split(".").pop().toLowerCase();"js"===r?L(n,function(){return t(e+1)}):"css"===r?z(n,function(){return t(e+1)}):t(e+1)}else o()}(0)}));case 2:case"end":return t.stop()}},t,this)})),function(t){return I.apply(this,arguments)});function F(t){return B.apply(this,arguments)}function B(){return(B=y()(v.a.mark(function t(e){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=["./resources/editor.js"],t.next=3,D(n,e);case 3:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var P,R=function(u){var t=u.commands,l=u.Pos;t.selectNextOccurrence=function(t){var e=t.getCursor("from"),n=t.getCursor("to"),r=t.state.sublimeFindFullWord==t.doc.sel;if(0==u.cmpPos(e,n)){var o=wordAt(t,e);if(!o.word)return;t.setSelection(o.from,o.to),r=!0}else{var i=t.getRange(e,n),a=r?new RegExp("\\b"+i+"\\b"):i,s=t.getSearchCursor(a,n),c=s.findNext();if(c||(c=(s=t.getSearchCursor(a,l(t.firstLine(),0))).findNext()),!c||function(t,e,n){for(var r=0;r<t.length;r++)if(t[r].from()==e&&t[r].to()==n)return!0;return!1}(t.listSelections(),s.from(),s.to()))return u.Pass;t.addSelection(s.from(),s.to())}r&&(t.state.sublimeFindFullWord=t.doc.sel)},t.toggleCommentIndented=function(t){t.toggleComment({indent:!0})}},H=function(e,t){var n=t,r=[];return location.search.substr(1).split("&").forEach(function(t){(r=t.split("="))[0]===e&&(n=decodeURIComponent(r[1]))}),n},U=(P=y()(v.a.mark(function t(e){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return n=t.sent,t.next=5,n.json();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,this)})),function(t){return P.apply(this,arguments)}),G=function(t){var e=window.location.href.split("#")[1];history.pushState(null,null,"/e/".concat(t).concat(e?"#"+e:""))},J=function(t){var e=t.split(".");if(1===e.length)return e[0]+".1";if(2===e.length)return"".concat(e[0],".1.").concat(e[1]);var n=e.pop(),r=e.pop();return isNaN(parseInt(r,10))?"".concat(e.join("."),".").concat(r,".1.").concat(n):"".concat(e.join("."),".").concat(parseInt(r,10)+1,".").concat(n)},V=function(t,e){return t.length>e?t.substr(0,e)+"...":t};function $(t){var e="";t=t.toString();for(var n=0;n<t.length;n++){var r=3^t.charCodeAt(n);e+=String.fromCharCode(r)}return e}var K=function(t){return JSON.parse(JSON.stringify(t))},W=function(){try{return window.self!==window.top}catch(t){return!0}},Y=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Date,e=t.getDate(),n=t.getMonth(),r=t.getFullYear().toString().substr(-2);return e+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n]+" "+r+" "+t.getHours()+":"+t.getMinutes()},X="e_ON_SELECT",Z="e_ON_FILE_CHANGE",Q="e_ON_FILE_SAVE";function tt(t,e){return et.apply(this,arguments)}function et(){return(et=y()(v.a.mark(function t(n,r){var e,o,i,a,s,c,u,l,f,h,d,p,g;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return g=function(){return(g=y()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o(),d.setValue(n.getActiveFileContent()),W()||d.focus(),t.t0=n.getActiveFile().split(".").pop().toLowerCase(),t.next="css"===t.t0?6:"scss"===t.t0?8:"html"===t.t0?10:"md"===t.t0?12:14;break;case 6:case 8:return d.setOption("mode","css"),t.abrupt("break",16);case 10:return d.setOption("mode","htmlmixed"),t.abrupt("break",16);case 12:return d.setOption("mode",{name:"gfm",highlightFormatting:!0,emoji:!0,xml:!0}),t.abrupt("break",16);case 14:return d.setOption("mode","jsx"),t.abrupt("break",16);case 16:l();case 17:case"end":return t.stop()}},t,this)}))).apply(this,arguments)},p=function(){return g.apply(this,arguments)},e=k(),o=e.clearConsole,i=e.addToConsole,t.next=5,A(n,i,o);case 5:return a=t.sent,s=a.resetOutput,c=a.loadDependenciesInOutput,u=a.executeInOut,l=function(){var t=y()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s();case 2:return t.next=4,c();case 4:return o(),t.next=7,u(x(n.getActiveFile(),n.getFiles()));case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),f=function(){var e=y()(v.a.mark(function t(e){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o(),n.editFile(n.getActiveFile(),{c:e}),r(Q,e,d),l();case 4:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),h=q.withFallback(".js-code-editor"),o('<div class="centered"><div class="spinner"></div></div>'),t.next=15,F();case 15:return d=nt(h.empty(),n.getEditorSettings(),n.getActiveFileContent(),f,function(){r(Z)},function(t){n.setActiveFileByIndex(t),p()},function(t,e){r(X,{code:t,list:e},d)}),t.abrupt("return",{loadFileInEditor:p,save:function(){f(d.getValue()),d.focus()}});case 17:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function nt(t,e,n,r,o,i,a){R(CodeMirror);var s=CodeMirror(t.e,{value:n||"",mode:"jsx",tabSize:2,lineNumbers:!1,autofocus:!1,foldGutter:!1,gutters:[],styleSelectedText:!0,matchBrackets:!0,autoCloseBrackets:!0,lineWrapping:!0,theme:e.theme,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0}}),c=function(){return r(s.getValue())};return s.on("change",function(t,e){"setValue"!==e.origin&&o(s.getValue())}),s.setOption("extraKeys",{"Ctrl-S":c,"Cmd-S":c,"Cmd-1":function(){return i(0)},"Cmd-2":function(){return i(1)},"Cmd-3":function(){return i(2)},"Cmd-4":function(){return i(3)},"Cmd-5":function(){return i(4)},"Cmd-6":function(){return i(5)},"Cmd-7":function(){return i(6)},"Cmd-8":function(){return i(7)},"Cmd-9":function(){return i(8)},"Ctrl-1":function(){return i(0)},"Ctrl-2":function(){return i(1)},"Ctrl-3":function(){return i(2)},"Ctrl-4":function(){return i(3)},"Ctrl-5":function(){return i(4)},"Ctrl-6":function(){return i(5)},"Ctrl-7":function(){return i(6)},"Ctrl-8":function(){return i(7)},"Ctrl-9":function(){return i(8)},"Cmd-D":"selectNextOccurrence","Ctrl-D":"selectNextOccurrence","Cmd-/":"toggleCommentIndented","Ctrl-/":"toggleCommentIndented"}),CodeMirror.normalizeKeyMap(),t.onMouseUp(function(){var t=s.getSelection(),e=s.listSelections();""!==t&&a(t,e)}),s}var rt,ot,it=n(5),at=n.n(it),st=!1,ct=[],ut=function(){if(0<ct.length){var t=ct.shift(),e=t.state,n=t.token,r=t.diff;lt(e,n,r)}},lt=(ot=y()(v.a.mark(function t(e,n,r){var o,i;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(st)return ct.push({state:e,token:n,diff:r}),t.abrupt("return");t.next=3;break;case 3:return t.prev=3,st=!0,t.next=7,fetch(c,{method:"POST",body:JSON.stringify({state:e,a:r}),headers:{token:n}});case 7:return o=t.sent,t.next=10,o.json();case 10:if(i=t.sent,st=!1,ut(),!i.error){t.next=17;break}console.error(i.error),t.next=19;break;case 17:if(i.demoId)return t.abrupt("return",i.demoId);t.next=19;break;case 19:console.log(i),t.next=26;break;case 22:t.prev=22,t.t0=t.catch(3),ut(),console.error(t.t0);case 26:case"end":return t.stop()}},t,this,[[3,22]])})),function(t,e,n){return ot.apply(this,arguments)}),ft={saveDemo:lt,getDemos:(rt=y()(v.a.mark(function t(e,n){var r,o;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(l+"/"+e,{headers:{token:n}});case 3:return r=t.sent,t.next=6,r.json();case 6:if(!(o=t.sent).error){t.next=11;break}console.error(o.error),t.next=16;break;case 11:if(o)return t.abrupt("return",o);t.next=15;break;case 15:console.log(o);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),console.error(t.t0);case 21:case"end":return t.stop()}},t,this,[[0,18]])})),function(t,e){return rt.apply(this,arguments)})},ht=function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(t){return!1}}(),dt=function(t,e){if(!ht)return null;void 0!==e&&localStorage.setItem(t,JSON.stringify(e));var n=localStorage.getItem(t);try{if(n)return JSON.parse(n)}catch(e){console.error("There is some data in the local storage under the ".concat(t," key. However, it is not a valid JSON."))}return null},pt=at()(),gt="DEMOIT_PROFILE",mt={editor:{theme:"light",statusBar:!0,layout:w},dependencies:[],files:{working:[["code.js",{c:"document.querySelector('#output').innerHTML = 'Hello world';\n\nconsole.log('Hello world');"}]],head:null,i:0,stage:[],commits:{}}},vt=function(){return 0===pt.getAll().length?"untitled.js":pt.getAll()[0][0]},yt=function(){var t=location.hash.replace(/^#/,"");return""!==t&&pt.get(t)?t:vt()},bt="FILE_CHANGED";function wt(){return(wt=y()(v.a.mark(function t(e){var n,s,i,c,a,r,o,u,l;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],s=function(e){O&&console.log("state:onChange event="+e),n.forEach(function(t){return t(e)})},i=dt(gt),c=window.state){t.next=19;break}if(r=H("state"))return t.prev=7,t.next=10,U(r);t.next=18;break;case 10:c=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(7),console.error("Error reading ".concat(r));case 16:t.next=19;break;case 18:c=mt;case 19:return c.v=e,a=K(c),pt.import(c.files),pt.listen(function(t){t===pt.ON_COMMIT?(O&&console.log("state:git:commit event="+t),u("git.listen"),O&&console.log("state:git:checkout event="+t)):t===pt.ON_CHECKOUT&&(l.setActiveFileByIndex(0),u("git.listen")),s(t)}),o=yt(),u=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){};if(O&&console.log("state:persist reason="+t),l.isForkable()){if(!e&&!l.isDemoOwner())return;var r,o=DeepDiff.diff(a,c);if(a=K(c),e)o="",delete c.owner,r=c;else{if(void 0===o||!o)return;o=$(JSON.stringify(o)),r={demoId:c.demoId,owner:c.owner}}ft.saveDemo(r,i.token,o).then(function(t){t&&t!==c.demoId&&(c.demoId=t,c.owner=i.id,G(t)),n()})}},l={getDemoId:function(){return c.demoId},getActiveFile:function(){return o},getActiveFileContent:function(){return pt.get(o).c},setActiveFile:function(t){return o=t,location.hash=t,s("setActiveFile"),t},setActiveFileByIndex:function(t){var e=pt.getAll()[t][0];e&&(this.setActiveFile(e),s(bt))},isCurrentFile:function(t){return o===t},isDemoOwner:function(){return c.owner&&i&&c.owner===i.id},getFiles:function(){return pt.getAll()},getNumOfFiles:function(){return pt.getAll().length},meta:function(t){if(t){var e=t.name,n=t.description,r=t.published,o=t.storyWithCode,i=t.comments;return c.name=e,c.desc=n,c.published=!!r,c.storyWithCode=!!o,c.comments=!!i,s("meta"),u("meta"),null}var a={name:c.name,description:c.desc,published:!!c.published,storyWithCode:!!c.storyWithCode,comments:!!c.comments};return c.demoId&&(a.id=c.demoId),a},getDependencies:function(){return c.dependencies},setDependencies:function(t){c.dependencies=t,u("setDependencies")},getEditorSettings:function(){return c.editor},editFile:function(t,e){pt.save(t,e),u("editFile")},renameFile:function(t,e){o===t&&this.setActiveFile(e),pt.rename(t,e),u("renameFile")},addNewFile:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"untitled.js";t=pt.get(t)?J(t):t,pt.save(t,{c:""}),this.setActiveFile(t),u("addNewFile")},deleteFile:function(t){pt.del(t),t===o&&this.setActiveFile(vt()),u("deleteFile")},listen:function(t){n.push(t)},removeListeners:function(){n=[]},updateThemeAndLayout:function(t,e){t&&(c.editor.layout=t),e&&(c.editor.theme=e),u("updateThemeAndLayout")},updateStatusBarVisibility:function(t){c.editor.statusBar!==t&&(c.editor.statusBar=t,u("updateStatusBarVisibility"))},setEntryPoint:function(t){var e=!pt.get(t).en;pt.saveAll({en:!1}),pt.save(t,{en:e}),u()},dump:function(){return c},isForkable:function(){return j&&l.loggedIn()},fork:function(){u("fork",!0,function(){return s("fork")})},loggedIn:function(){return null!==i},getProfile:function(){return i},getDemos:function(){return ft.getDemos(i.id,i.token)},version:function(){return c.v},git:function(){return pt},export:function(){return c},getStoryURL:function(){var t=this.meta(),e="story";return t&&t.name&&(e=t.name.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")),"/s/".concat(this.getDemoId(),"/").concat(e)}},window.__state=l,t.abrupt("return",l);case 28:case"end":return t.stop()}},t,this,[[7,13]])}))).apply(this,arguments)}var xt=n(3),kt=n.n(xt),_t=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:20;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/></svg>')},Ct=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:20;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"/></svg>')},Et=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:24;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>')},jt=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:24;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>')},St=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:24;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M1152 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zm512-109v222q0 12-8 23t-20 13l-185 28q-19 54-39 91 35 50 107 138 10 12 10 25t-9 23q-27 37-99 108t-94 71q-12 0-26-9l-138-108q-44 23-91 38-16 136-29 186-7 28-36 28h-222q-14 0-24.5-8.5t-11.5-21.5l-28-184q-49-16-90-37l-141 107q-10 9-25 9-14 0-25-11-126-114-165-168-7-10-7-23 0-12 8-23 15-21 51-66.5t54-70.5q-27-50-41-99l-183-27q-13-2-21-12.5t-8-23.5v-222q0-12 8-23t19-13l186-28q14-46 39-92-40-57-107-138-10-12-10-24 0-10 9-23 26-36 98.5-107.5t94.5-71.5q13 0 26 10l138 107q44-23 91-38 16-136 29-186 7-28 36-28h222q14 0 24.5 8.5t11.5 21.5l28 184q49 16 90 37l142-107q9-9 24-9 13 0 25 10 129 119 165 170 7 8 7 22 0 12-8 23-15 21-51 66.5t-54 70.5q26 50 41 98l183 28q13 2 21 12.5t8 23.5z"/></svg>')},qt=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:24;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1152 896q0 106-75 181t-181 75-181-75-75-181 75-181 181-75 181 75 75 181zm-256-544q-148 0-273 73t-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273-73-273-198-198-273-73zm768 544q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>')},Ot=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:16,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:14;return'<svg width="'.concat(t,'" height="').concat(e,'" viewBox="0 0 2048 1792"><path d="M704 896q-159 0-271.5-112.5t-112.5-271.5 112.5-271.5 271.5-112.5 271.5 112.5 112.5 271.5-112.5 271.5-271.5 112.5zm1077 320l249 249q9 9 9 23 0 13-9 22l-136 136q-9 9-22 9-14 0-23-9l-249-249-249 249q-9 9-23 9-13 0-22-9l-136-136q-9-9-9-22 0-14 9-23l249-249-249-249q-9-9-9-23 0-13 9-22l136-136q9-9 22-9 14 0 23 9l249 249 249-249q9-9 23-9 13 0 22 9l136 136q9 9 9 22 0 14-9 23zm-498 0l-181 181q-37 37-37 91 0 53 37 90l83 83q-21 3-44 3h-874q-121 0-194-69t-73-190q0-53 3.5-103.5t14-109 26.5-108.5 43-97.5 62-81 85.5-53.5 111.5-20q19 0 39 17 154 122 319 122t319-122q20-17 39-17 28 0 57 6-28 27-41 50t-13 56q0 54 37 91z"/></svg>')},Mt=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:14;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M672 1472q0-40-28-68t-68-28-68 28-28 68 28 68 68 28 68-28 28-68zm0-1152q0-40-28-68t-68-28-68 28-28 68 28 68 68 28 68-28 28-68zm640 128q0-40-28-68t-68-28-68 28-28 68 28 68 68 28 68-28 28-68zm96 0q0 52-26 96.5t-70 69.5q-2 287-226 414-67 38-203 81-128 40-169.5 71t-41.5 100v26q44 25 70 69.5t26 96.5q0 80-56 136t-136 56-136-56-56-136q0-52 26-96.5t70-69.5v-820q-44-25-70-69.5t-26-96.5q0-80 56-136t136-56 136 56 56 136q0 52-26 96.5t-70 69.5v497q54-26 154-57 55-17 87.5-29.5t70.5-31 59-39.5 40.5-51 28-69.5 8.5-91.5q-44-25-70-69.5t-26-96.5q0-80 56-136t136-56 136 56 56 136z"/></svg>')},At=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:14;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792" ><path d="M1472 989v259q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h255q13 0 22.5 9.5t9.5 22.5q0 27-26 32-77 26-133 60-10 4-16 4h-112q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-214q0-19 18-29 28-13 54-37 16-16 35-8 21 9 21 29zm237-496l-384 384q-18 19-45 19-12 0-25-5-39-17-39-59v-192h-160q-323 0-438 131-119 137-74 473 3 23-20 34-8 2-12 2-16 0-26-13-10-14-21-31t-39.5-68.5-49.5-99.5-38.5-114-17.5-122q0-49 3.5-91t14-90 28-88 47-81.5 68.5-74 94.5-61.5 124.5-48.5 159.5-30.5 196.5-11h160v-192q0-42 39-59 13-5 25-5 26 0 45 19l384 384q19 19 19 45t-19 45z"/></svg>')},Tt=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:14;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>')},It=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:14;return'<svg width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 1792 1792" ><path d="M1703 478q40 57 18 129l-275 906q-19 64-76.5 107.5t-122.5 43.5h-923q-77 0-148.5-53.5t-99.5-131.5q-24-67-2-127 0-4 3-27t4-37q1-8-3-21.5t-3-19.5q2-11 8-21t16.5-23.5 16.5-23.5q23-38 45-91.5t30-91.5q3-10 .5-30t-.5-28q3-11 17-28t17-23q21-36 42-92t25-90q1-9-2.5-32t.5-28q4-13 22-30.5t22-22.5q19-26 42.5-84.5t27.5-96.5q1-8-3-25.5t-2-26.5q2-8 9-18t18-23 17-21q8-12 16.5-30.5t15-35 16-36 19.5-32 26.5-23.5 36-11.5 47.5 5.5l-1 3q38-9 51-9h761q74 0 114 56t18 130l-274 906q-36 119-71.5 153.5t-128.5 34.5h-869q-27 0-38 15-11 16-1 43 24 70 144 70h923q29 0 56-15.5t35-41.5l300-987q7-22 5-57 38 15 59 43zm-1064 2q-4 13 2 22.5t20 9.5h608q13 0 25.5-9.5t16.5-22.5l21-64q4-13-2-22.5t-20-9.5h-608q-13 0-25.5 9.5t-16.5 22.5zm-83 256q-4 13 2 22.5t20 9.5h608q13 0 25.5-9.5t16.5-22.5l21-64q4-13-2-22.5t-20-9.5h-608q-13 0-25.5 9.5t-16.5 22.5z"/></svg>')},Nt=27,Lt=function(t){var e=t.title,n=t.content;return"<section>\n <h2>".concat(e,'</h2>\n <button class="close" data-export="close"><svg width="20" height="20" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg></button>\n ').concat(n,"\n</section>")},zt=function(t,n){var e=t.buttons,r=t.content;return'<section class="multiple-pages">\n <ul class="sub-nav">\n '.concat(e.map(function(t,e){return'<li class="'.concat(e===n?"active":"",'"><a href="javascript:void(0);" data-export="page:').concat(e,'">').concat(t,"</a></li>")}).join(""),'\n </ul>\n <button class="close" data-export="close">').concat(Et(24),'</button>\n <div class="content">').concat(r[n],"</div>\n</section>")};function Dt(r){var e=q.fromString('<div class="popup"></div>'),t=q.withRelaxedCleanup("body"),n=q.withRelaxedCleanup(".layout"),o=t.onKeyUp(function(t){return t.keyCode===Nt&&i()}),i=function(){o(),e.css("opacity",0),r.cleanUp&&r.cleanUp(),setTimeout(function(){return e.destroy()},200),n.css("filter","none")};n.css("filter","blur(2px)"),e.appendTo(t),function n(t){e.content(t).forEach(function(t){var e=t.attr("data-export");"close"===e?t.onClick(i):e.match(/^page/)&&t.onClick(function(){return n(zt(r,Number(e.split(":").pop())))})}),r.onRender&&r.onRender(kt()({closePopup:i},e.namedExports()))}("buttons"in r?zt(r,r.defaultTab):Lt(r)),setTimeout(function(){return e.css("opacity",1)},1)}var Ft=13;function Bt(s,c,u,l,f){Dt({title:"Edit",content:'\n <input name="filename" data-export="filenameInput" value="'.concat(s,'"/>\n <button class="save secondary" data-export="saveButton">').concat(Ct(),'<span>Update</span></button>\n <button class="save secondary" data-export="setAsEntryPointButton">').concat(qt(20),'<span>Entry point</span></button>\n <button class="delete secondary right" data-export="deleteButton">').concat(_t(),"<span>Delete</span></button>\n "),onRender:function(t){var e=t.filenameInput,n=t.saveButton,r=t.closePopup,o=t.deleteButton,i=t.setAsEntryPointButton,a=function(){""!==e.e.value&&l(e.e.value),r()};e.e.focus(),e.e.setSelectionRange(0,s.lastIndexOf(".")),e.onKeyUp(function(t){t.keyCode===Ft&&a()}),n.onClick(a),1<c?o.css("display","block"):o.css("display","none"),o.onClick(function(){return u(),r()}),i.onClick(function(){return f(),r()})}})}var Pt=13;var Rt=n(8),Ht=n.n(Rt),Ut=function(t){return'<iframe src="'.concat(t,'" style="display: block; width:100%; height: 400px; border:0; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin allow-top-navigation-by-user-activation"></iframe>')},Gt="/poet.krasimir.now.sh.zip";function Jt(t){return Vt.apply(this,arguments)}function Vt(){return(Vt=y()(v.a.mark(function t(e){var n,r=arguments;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=1<r.length&&void 0!==r[1]&&r[1],t.next=3,fetch(e);case 3:return t.t0=n?"blob":"text",t.next=6,t.sent[t.t0]();case 6:return t.t1=t.sent,t.t2=e,t.abrupt("return",{content:t.t1,url:t.t2});case 9:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function $t(t){return Kt.apply(this,arguments)}function Kt(){return(Kt=y()(v.a.mark(function t(e){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.filter(function(t){return t.match(/^(http|https)/)}).map(Jt));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var Wt=function(t){return t.filter(function(t){return""!==t&&"\n"!==t})};function Yt(p,g,m){return function(t){return i=p,o=y()(v.a.mark(function t(e){var r,o;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.prop("disabled","disabled").prop("innerHTML","Please wait. Preparing the zip file."),t.prev=1,t.next=4,$t(i.getDependencies());case 4:return r=t.sent,t.next=7,D(["./resources/jszip.min.js","./resources/FileSaver.min.js"]);case 7:return t.t0=JSZip,t.next=10,Jt(Gt,!0);case 10:return t.t1=t.sent.content,t.next=13,t.t0.loadAsync.call(t.t0,t.t1);case 13:o=t.sent,e.prop("disabled",!1).prop("innerHTML","Download poet.krasimir.now.sh.zip"),e.onClick(y()(v.a.mark(function t(){var e,n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.file("index.html").async("string");case 2:return e=t.sent,(n=K(i.dump())).dependencies=r.map(function(t){var e=t.content,n="./resources/"+t.url.split("/").pop();return o.file(n,e),n}),o.file("index.html",e.replace("var state = null;","var state = ".concat(JSON.stringify(n,null,2),";"))),t.t0=saveAs,t.next=9,o.generateAsync({type:"blob"});case 9:t.t1=t.sent,(0,t.t0)(t.t1,"poet.krasimir.now.sh.zip");case 11:case"end":return t.stop()}},t,this)}))),t.next=22;break;case 18:t.prev=18,t.t2=t.catch(1),console.error(t.t2),e.prop("innerHTML","There is an error creating the zip file.");case 22:case"end":return t.stop()}},t,this,[[1,18]])})),l=function(t){return o.apply(this,arguments)},e=p.getEditorSettings(),f=Wt(p.getDependencies()).join("\n"),n=t,r=p.version(),h=e.layout,d=e.theme,new Promise(function(t){return Dt({defaultTab:n||0,buttons:["General","Dependencies","Export/Share","About"],content:['\n <p>\n Theme:\n <select data-export="themePicker">\n <option value="light">light</option>\n <option value="dark">dark</option>\n </select>\n </p>\n <p class="mt1">Layout:</p>\n <div class="mb1" data-export="layoutArchitectContainer"></div>\n <button class="save" data-export="saveGeneral">Save</button>\n ','\n <textarea class="dependencies-list" data-export="dependenciesTextarea"></textarea>\n <p><small>(Separate your dependencies by a new line)</small></p>\n <button class="save" data-export="saveDependenciesButton">Save</button>\n ','\n <h2>Embed</h2>\n <textarea data-export="iframeTextarea">'.concat(Ut(window.location.href),"</textarea>\n ").concat(j?'\n <h2 class="mt1">Download/Offline mode</h2>\n <p>The archive contains all the files that you need to run the app locally. Including your dependencies.</p>\n <button class="save" data-export="downloadButton">Download zip file</button>':"","\n "),"\n <p>\n v".concat(r,'<br />\n On the web: <a href="https://poet.krasimir.now.sh" target="_blank">poet.krasimir.now.sh</a><br />\n GitHub repo: <a href="https://github.com/krasimir/poet.krasimir.now.sh.feedback/issues" target="_blank">github.com/krasimir/poet.krasimir.now.sh.feedback</a>\n </p>\n ')],cleanUp:function(){t()},onRender:function(t){var n=t.closePopup,e=t.saveGeneral,r=t.dependenciesTextarea,o=t.saveDependenciesButton,i=t.themePicker,a=t.iframeTextarea,s=t.layoutArchitectContainer,c=t.downloadButton;if(s&&i){var u=Ht()(s.e,b,h);i.e.value=d||"light",e.onClick(function(){var t,e;t=i.e.value,e=u.get()||w,p.updateThemeAndLayout(e,t),g(),n()})}a&&a.selectOnClick(),c&&l(c),r&&o&&(r.prop("value",f),o.onClick(function(){var t;(t=r.prop("value").split(/\r?\n/))&&(p.setDependencies(t),m()),n()}))}})});var l,e,f,n,r,h,d,i,o}}var Xt="6px",Zt="36px",Qt=function(t){return'<img src="'.concat(t.avatar,'"/>')},te=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"javascript:void(0)";return'<a data-export="'.concat(t,'" class="').concat(n,'" href="').concat(r,'">').concat(e,"</a>")},ee=function(t,e){return Array(e).join(t)};function ne(d,p,g,m,v,y,b){var w=q.withRelaxedCleanup(".status-bar"),x=q.withRelaxedCleanup(".app .layout"),k=q.withRelaxedCleanup(".status-bar-menu"),_=!!d.getEditorSettings().statusBar,t=!1,C=!1,E=function(){k.css("display",(t=!t)?"block":"none")},e=function(){var i=[],t=[],e=d.getFiles();i.push('<div data-export="buttons">'),e.forEach(function(t){var e=S()(t,2),n=e[0],r=e[1],o=d.isCurrentFile(n);i.push(te("file:"+n,"<span>".concat(n).concat(o&&C?"*":"","</span>"),"file".concat(o?" active":"").concat(r.en?" entry":"")))}),i.push(te("newFileButton",jt(14),"new-file")),i.push('\n <div class="meta-and-status">\n '.concat(d.meta().published?"✔ ":"","\n ").concat(d.meta().name?d.meta().name:"unnamed","\n ").concat(d.loggedIn()&&!d.isDemoOwner()?'<span class="badge warning">not yours</span>':"","\n ").concat(j?'<a href="'.concat(d.getStoryURL(),'" class="badge" target="blank">view Story</a>'):"","\n </div>\n ")),i.push(te("menuButton",Tt(14))),i.push(te("closeButton",Et(14))),i.push("</div>"),j&&t.push(te("profileButton",d.loggedIn()?Qt(d.getProfile())+" Profile":Ot()+" Log in","profile",d.loggedIn()?"/u/"+d.getProfile().id:"/login?did=".concat(d.getDemoId()))),j&&t.push(te("",jt(14)+" New story","","/new")),d.isForkable()&&t.push(te("forkButton",Mt(14)+" Fork")),j&&t.push(te("shareButton",At(14)+" Share/Embed")),d.isDemoOwner()&&t.push(te("nameButton",St(14)+" Story")),t.push(te("settingsButton",St(14)+" Editor")),d.isForkable()&&t.push(te("",Ot()+" Log out","","/logout?r=e/".concat(d.getDemoId()))),w.content(i.join("")).forEach(function(t){if(0===t.attr("data-export").indexOf("file")){var e=t.attr("data-export").split(":").pop();t.onClick(function(){d.isCurrentFile(e)?C&&y():p(e)}),t.onRightClick(function(){return m(e)})}}),k.content(t.join(""));var n=w.namedExports(),r=n.newFileButton,o=n.closeButton,a=n.menuButton,s=k.namedExports(),c=s.forkButton,u=s.shareButton,l=s.nameButton,f=s.settingsButton,h=function(){var t=w.namedExports().buttons;t.css("display",_?"grid":"none"),t.css("gridTemplateColumns",[ee("minmax(auto, 135px) ",d.getNumOfFiles()+1),"30px","1fr","30px","30px"].filter(function(t){return t}).join(" ")),w.css("height",_?Zt:Xt),x.css("height","calc(100% - ".concat(_?Zt:Xt,")")),d.updateStatusBarVisibility(_)};r&&r.onClick(g),u&&u.onClick(function(){return v(2),E()}),f&&f.onClick(function(){return v(),E()}),d.isDemoOwner()&&l&&l.onClick(function(){return b(),E()}),c&&c.onClick(function(){return d.fork(),E()}),a&&a.onClick(E),o.onClick(function(t){t.stopPropagation(),_=!1,h()}),w.onClick(function(){_||(_=!0,h())}),h()};return e(),d.listen(e),function(t){C=t,e()}}var re=n(4),oe=n.n(re);function ie(t,e,i){Dt({title:t,content:'\n <p class="mb3">'.concat(e,'</p>\n <button class="save secondary" data-export="yesButton">').concat(Ct(),'<span>Yes</span></button>\n <button class="save secondary right" data-export="noButton">').concat(Et(),"<span>No</span></button>\n "),onRender:function(t){var e=t.yesButton,n=t.noButton,r=t.closePopup,o=function(t){i(t),r()};e.onClick(function(){return o(!0)}),n.onClick(function(){return o(!1)})}})}function ae(t){return function(t,e){(e=e||{}).listUnicodeChar=!!e.hasOwnProperty("listUnicodeChar")&&e.listUnicodeChar,e.stripListLeaders=!e.hasOwnProperty("stripListLeaders")||e.stripListLeaders,e.gfm=!e.hasOwnProperty("gfm")||e.gfm,e.useImgAltText=!e.hasOwnProperty("useImgAltText")||e.useImgAltText;var n=t||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{e.stripListLeaders&&(n=e.listUnicodeChar?n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(n=n.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),n=n.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,"\n\n")}catch(e){return console.error(e),t}return n}(V(t.split("\n").shift(),36))}function se(t){var e="",n="";switch(t[0]){case"E":e="edit",n=t[2].html;break;case"N":e="new";break;case"D":e="deleted";break;case"R":e="renamed",n=t[2]}return'\n <div class="diff">\n <div><span class="label label-'.concat(t[0],'">').concat(e,'</span></div>\n <div class="diffA">').concat(t[1],'</div>\n <div class="diffB">').concat(n,"</div>\n </div>\n ")}var ce=n(6),ue=4,le=25;function fe(n,r){setTimeout(function(){Object(ce.empty)(),O&&console.log(JSON.stringify(n.map(function(t){return{hash:t.hash,position:t.position}}),null,2));var t=function e(n,t){var r=t.parent,o=t.hash,i=t.derivatives,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{commitsYs:{},connections:[]};return a.commitsYs[o]=he(o)-n,null!==r&&a.connections.push([r,o]),0<i.length&&i.forEach(function(t){return e(n,t,a)}),a}(he(n[0].hash),r),e=t.connections,o=t.commitsYs;e.forEach(function(t){var e=S()(t,2),n=e[0],r=e[1];return Object(ce.connectCommits)(ue,le+o[n],le+o[r])})},30)}function he(t){return q.exists("#c"+t)?q("#c"+t).e.getBoundingClientRect().top+.3:0}function de(b,w){var x,k=q.withFallback(".story"),_=b.git(),C=null,E=!1,j=function(t){return _.amend(x,{message:t})},S=function(t){E=!1,C=null,""===t&&_.amend(x,{message:Y()}),e()};if(!k.found())return function(){};var e=function r(){O&&console.log("story:render");var l,t,f,h,e,n,o=_.log(),c=Object.keys(o).map(function(t){return{hash:t,message:o[t].message,position:o[t].meta&&parseInt(o[t].meta.position,10)||null}}).sort(function(t,e){return null!==t.position&&null!==e.position?t.position-e.position:null!==t.position&&null===e.position?-1:null===t.position&&null!==e.position?1:t.hash-e.hash}),u=c.length,i=oe()(0<u?_.show().files:[],_.getAll()),a=(l=_,f=E,h=x,0===(t=c).length?"":t.map(function(t){var e,n=t.hash,r=t.message,o=t.position,i=h===n&&f,a=o&&0<o?'<span class="current-position">'.concat(o,"</span>"):"",s=ae(r),c=l.head()===n,u="";return u+='<div class="commit '.concat(c?"commit-head":"",'" id="c').concat(n,'">'),u+=i?"":'\n <a href="javascript:void(0);" data-export="checkoutLink" data-hash="'.concat(n,'" class="checkout">\n ').concat(a,'<span class="commit-message-text">').concat(s||"...","</span>\n </a>\n "),u+=i?'\n <a href="javascript:void(0);" data-export="confirmButton">'.concat(Ct(12)," save</a>\n ").concat(l.head()!==n?'<a href="javascript:void(0);" data-export="checkoutLink" data-hash="'.concat(n,'">').concat(qt(12)," checkout</a>"):"",'\n <a href="javascript:void(0);" data-export="deleteCommit" data-hash="').concat(n,'" data-commit-message="').concat(s,'">').concat(_t(12),' delete</a>\n <a href="javascript:void(0);" data-export="editMessage" data-hash="').concat(n,'" class="edit right">\n ').concat(Et(12),'\n </a>\n <hr />\n <select data-export="publishStatus" data-hash="').concat(n,'">\n ').concat(function(t,e){var n=l.log(),r=n[e].meta,o=r?parseInt(r.position,10):0,i=[];i.push('<option value="0"'.concat(0===o?'selected="selected"':"",">not in story</option>"));for(var a=1;a<Object.keys(n).length+1;a++)i.push('<option value="'.concat(a,'" ').concat(o===a?'selected="selected"':"",">position #").concat(a,"</option>"));return i.join("")}(0,n),'\n </select>\n <select data-export="injector">\n <option value="">inject</option>\n <option value="{inject:all}">All files</option>\n ').concat((e=n,l.show(e).files.map(function(t){return'<option value="{inject:'.concat(t[0],'}">').concat(t[0],"</option>")})),"\n </select>\n "):'\n <a href="javascript:void(0);" data-export="editMessage" data-hash="'.concat(n,'" class="edit ').concat(i?"":"right",'">\n ').concat(It(12)+" edit","\n </a>\n "),u+="</div>",i&&(u+='\n <div class="commit commit-edit '.concat(c?"commit-head":"",'" id="c').concat(n,'">\n <div data-export="messageArea" class="message-area" spellcheck="true"></div>\n </div>\n ')),u}).join(""));k.attr("class",u<=1||E?"editor-section story no-graph":"editor-section story"),k.content("\n ".concat(""!==a?'<div data-export="list">'+a+"</div>":"","\n ").concat(E?"":(e=_,n=i,0===n.length?'\n <div class="working-directory">\n <div class="clear commit-buttons-nav">\n <a href="javascript:void(0)" data-export="addButton" class="commit-button left">\n ✔ New commit\n </a>\n </div>\n </div>\n ':'\n <div class="working-directory">\n <div class="diffs">\n '.concat(n.map(se).join(""),'\n </div>\n <div class="clear commit-buttons-nav">\n ').concat(null!==e.head()?'<a href="javascript:void(0)" data-export="editButton" class="commit-button left">\n ✔ Save\n </a>':"",'\n <a href="javascript:void(0)" data-export="addButton" class="commit-button left">\n ✔ New commit\n </a>\n ').concat(0<e.getAll().length&&null!==e.head()?'<a href="javascript:void(0)" data-export="discardButton" class="commit-button right">\n ✖ Discard changes\n </a>':"","\n </div>\n </div>\n ")),'\n <div class="story-arrows"><svg id="svg-canvas" width="32px" height="100%"></svg></div>\n ')).forEach(function(n){"checkoutLink"===n.attr("data-export")&&n.onClick(function(){var e=n.attr("data-hash");0<i.length?ie("Checkout","You are about to checkout another commit. You have an unstaged changes. Are you sure?",function(t){t&&o[e]&&(_.checkout(e,!0),w(),r())}):o[e]&&(_.checkout(e),w(),r())}),"editMessage"===n.attr("data-export")&&n.onClick(function(){var t=n.attr("data-hash");E&&x===t?(E=!1,S()):(E=!0,x=n.attr("data-hash"),r())}),"deleteCommit"===n.attr("data-export")&&n.onClick(function(){ie("Deleting a commit",'Deleting "'.concat(n.attr("data-commit-message"),'" commit. Are you sure?'),function(t){t&&(E=!1,_.adios(n.attr("data-hash")),w())})}),"publishStatus"===n.attr("data-export")&&n.onChange(function(t){var e=n.attr("data-hash");_.amend(e,{message:_.show(e).message,meta:{position:t}}),r()})});var s=k.namedExports(),d=s.editButton,p=s.addButton,g=s.discardButton,m=s.messageArea,v=s.confirmButton,y=s.injector;d&&d.onClick(function(){_.amend(),r()}),p&&p.onClick(function(){E=!0,_.add(),x=_.commit(""),r()}),g&&g.onClick(function(){ie("Discard changes","You are about to discard your current changes. Are you sure?",function(t){t&&(_.discard(),w())})}),m&&(C=function(t,e,n,r,o,i){R(CodeMirror);var a=CodeMirror(t.e,kt()({value:n||"",mode:"gfm",tabSize:2,lineNumbers:!1,autofocus:!0,foldGutter:!1,gutters:[],styleSelectedText:!0,lineWrapping:!0,highlightFormatting:!0},e)),s=function(){return t=a.getValue(),v.css("opacity","0.3"),j(t),void q.withFallback('[data-hash="'.concat(x,'"] > .commit-message-text')).text(ae(t));var t};return a.on("change",function(){return a.getValue(),v.css("opacity","1"),void(1<u&&fe(c,_.logAsTree()))}),a.setOption("extraKeys",{"Ctrl-S":s,"Cmd-S":s,Esc:function(){return i(a.getValue())},"Ctrl-Enter":function(){return s(),i(a.getValue())},"Cmd-Enter":function(){return s(),i(a.getValue())}}),CodeMirror.normalizeKeyMap(),setTimeout(function(){a.focus(),console.log(a.defaultTextHeight())},50),a}(m,b.getEditorSettings(),_.show(x).message,0,0,S),v.css("opacity","0.3"),v.onClick(function(){j(C.getValue()),E=!1,C=null,r()}),y.onChange(function(t){setTimeout(function(){C.focus(),C.refresh(),C.replaceSelection(t),y.e.value=""},1)})),1<u&&fe(c,_.logAsTree())};return b.listen(function(t){E||e()}),e(),function(t,e){var n=t.code,r=t.list;E&&C&&(e.setCursor({line:0,ch:0}),setTimeout(function(){C.focus(),C.refresh(),function(t,e,n,r){var o="";try{var i=t.getCursor(),a=i.line,s=i.ch,c=t.getValue().split("\n")[a];if(")"===c.charAt(s)&&"("===c.charAt(s-1)&&"]"===c.charAt(s-2)){var u=n.shift(),l=u.anchor,f=u.head;o=["a",r,l.line,l.ch,f.line,f.ch].join(":")}else""===c.charAt(s-1)&&""===c.charAt(s+1)&&(o=e)}catch(t){console.log("Error while setting annotation.")}t.replaceSelection(o)}(C,n,r,b.getActiveFile())},1))}}function pe(t,s){var u=q.withFallback(".read-only"),l=t.git();if(u.found()){var e=function n(){O&&console.log("story:render");var c,t,r=l.log(),e=Object.keys(r).map(function(t){return{hash:t,message:r[t].message,position:r[t].meta&&parseInt(r[t].meta.position,10)||null}}).sort(function(t,e){return null!==t.position&&null!==e.position?t.position-e.position:null!==t.position&&null===e.position?-1:null===t.position&&null!==e.position?1:t.hash-e.hash}),o=e.length,i=oe()(0<o?l.show().files:[],l.getAll()),a=(c=l,0===(t=e).length?"":t.map(function(t){var e=t.hash,n=t.message,r=t.position,o=r&&0<r?'<span class="current-position">'.concat(r,"</span>"):"",i=ae(n),a=c.head()===e,s="";return s+='<div class="commit '.concat(a?"commit-head":"",'" id="c').concat(e,'">'),(s+='\n <a href="javascript:void(0);" data-export="checkoutLink" data-hash="'.concat(e,'" class="checkout">\n ').concat(o,'<span class="commit-message-text">').concat(i||"...","</span>\n </a>\n "))+"</div>"}).join(""));u.attr("class","editor-section story"),u.content("\n ".concat(""!==a?'<div data-export="list">'+a+"</div>":"","\n ")).forEach(function(t){"checkoutLink"===t.attr("data-export")&&t.onClick(function(){var e=t.attr("data-hash");0<i.length?ie("Checkout","You are about to checkout another commit. You have an unstaged changes. Are you sure?",function(t){t&&r[e]&&(l.checkout(e,!0),s(),n())}):r[e]&&(l.checkout(e),s(),n())})})};t.listen(function(t){e()}),e()}}var ge=function(t){if(q.exists("#preview")){var r=t.git();window.addEventListener("message",function(t){t.data.checkoutTo&&r.checkout(t.data.checkoutTo)});var e=q.withFallback("#preview"),n=t.getDemoId(),o=function(t,e,n){null!==r.head()&&(t.prop("value",JSON.stringify(r.export())),e.prop("value",r.head()),n.e.submit())};e.content('\n <form data-export="form" action="/e/'.concat(t.getDemoId(),'/story.local" target="frame').concat(n,'" method="post">\n <input type="hidden" data-export="input" name="git"/>\n <input type="hidden" data-export="hash" name="hash"/>\n </form>\n <iframe name="frame').concat(n,'" src="" style="display: block; width:100%; height: 100%; border:0; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin allow-top-navigation-by-user-activation"/>\n '));var i=e.namedExports(),a=i.form,s=i.input,c=i.hash;t.listen(function(t){o(s,c,a)}),o(s,c,a)}},me=function(t){if(q.exists("#annotate")){var r=t.git();window.addEventListener("message",function(t){t.data.checkoutTo&&r.checkout(t.data.checkoutTo)});var e=q.withFallback("#annotate"),n=t.getDemoId(),o=function(t,e,n){null!==r.head()&&(t.prop("value",JSON.stringify(r.export())),e.prop("value",r.head()),n.e.submit())};e.content('\n <form data-export="form" action="/e/'.concat(t.getDemoId(),'/story.annotate" target="frame').concat(n,'" method="post">\n <input type="hidden" data-export="input" name="git"/>\n <input type="hidden" data-export="hash" name="hash"/>\n </form>\n <iframe name="frame').concat(n,'" src="" style="display: block; width:100%; height: 100%; border:0; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin allow-top-navigation-by-user-activation"/>\n '));var i=e.namedExports(),a=i.form,s=i.input,c=i.hash;t.listen(function(t){o(s,c,a)}),o(s,c,a)}};(function(t){return wt.apply(this,arguments)})(i.version).then(function(s){function c(){return t.apply(this,arguments)}function t(){return(t=y()(v.a.mark(function t(){var r,o,e,n,i,a;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return f(s),r=function(){},o=de(s,function(){return n()}),t.next=5,tt(s,function(t,e,n){switch(O&&console.log("editor event="+t),t){case X:o(e,n);break;case Z:r(!0);break;case Q:r(!1)}});case 5:e=t.sent,n=e.loadFileInEditor,i=e.save,pe(s,function(){return n()}),ge(s),me(s),n(),a=Yt(s,function(){s.removeListeners(),q.destroy(),c()},function(){return n()}),r=ne(s,function(t){s.setActiveFile(t),n()},function(){var t=y()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(i){return Dt({title:"New file",content:'\n <input name="filename" data-export="filenameInput" placeholder="untitled.js"/>\n <button class="save secondary" data-export="saveButton">'.concat(Ct(),"<span>Create</span></button>\n "),cleanUp:function(){i()},onRender:function(t){var e=t.filenameInput,n=t.saveButton,r=t.closePopup,o=function(){""!==e.e.value&&i(e.e.value),r()};e.e.focus(),e.onKeyUp(function(t){13===t.keyCode&&o()}),n.onClick(o)}})});case 2:(e=t.sent)&&(s.addNewFile(e),n());case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),function(){var e=y()(v.a.mark(function t(e){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:Bt(e,s.getNumOfFiles(),function(){s.deleteFile(e),n()},function(t){s.renameFile(e,t),n()},function(){s.setEntryPoint(e),n()});case 1:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),a,i,function(){var t,u,l,e,n,r,o,i;t=s.meta(),u=function(t){return s.meta(t)},l=t.name,e=t.id,n=t.description,r=t.published,o=t.storyWithCode,i=t.comments,Dt({title:"Edit story name",content:'\n <input data-export="nameInput" value="'.concat(l=l||"",'" placeholder="Name"/>\n <textarea placeholder="Description" data-export="descriptionInput">').concat(n||"",'</textarea>\n <label>\n <input type="checkbox" data-export="publishCheckbox" ').concat(r?'checked="checked"':"",'/> Publish as a story at <a href="/e/').concat(e,'/story" target="_blank">/e/').concat(e,'/story</a>\n </label>\n <label>\n <input type="checkbox" data-export="withCode" ').concat(o?'checked="checked"':"",'/> Add the editor at the end of the story\n </label>\n <label>\n <input type="checkbox" data-export="withComments" ').concat(i?'checked="checked"':"",'/> Add a comments section at the end of the story\n </label>\n <button class="save secondary" data-export="saveButton">').concat(Ct(),"<span>Update</span></button>\n "),onRender:function(t){var e=t.nameInput,n=t.descriptionInput,r=t.publishCheckbox,o=t.saveButton,i=t.closePopup,a=t.withCode,s=t.withComments,c=function(){""!==e.e.value&&u({name:e.e.value,description:n.e.value,published:r.e.checked,storyWithCode:a.e.checked,comments:s.e.checked}),i()};e.e.focus(),e.e.setSelectionRange(0,l.lastIndexOf(".")),e.onKeyUp(function(t){t.keyCode===Pt&&c()}),o.onClick(c)}})});case 14:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}c()})}]);
================================================
FILE: dist/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demoit</title>
<link rel="stylesheet" href="./styles.css">
<link rel="shortcut icon" type="image/png" href="./img/demoit_64x64.png"/>
<link href="https://fonts.googleapis.com/css?family=Fira+Mono|Roboto:400,700&subset=cyrillic" rel="stylesheet">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
</head>
<body>
<script type="text/template" id="template-html">
<div class="editor-section output" id="output">
<iframe src="./sandbox.html" id="sandbox" style="display: block; width:100%; height: 100%; border:0; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin allow-top-navigation-by-user-activation"></iframe>
</div>
</script>
<script type="text/template" id="template-story-preview">
<div class="editor-section" id="preview"></div>
</script>
<script type="text/template" id="template-story-read-only">
<div class="editor-section read-only">
<div></div>
<div class="centered"><div class="spinner"></div></div>
</div>
</script>
<script type="text/template" id="template-annotate">
<div class="editor-section" id="annotate"></div>
</script>
<script type="text/template" id="template-console">
<div class="editor-section console">
<div class="centered">console.log</div>
</div>
</script>
<script type="text/template" id="template-editor">
<div class="editor-section editor">
<div class="js-code-editor"><div class="centered"><div class="spinner"></div></div></div>
</div>
</script>
<script type="text/template" id="template-story">
<div class="editor-section story">
<div></div>
<div class="centered"><div class="spinner"></div></div>
</div>
</script>
<div class="app">
<div class="status-bar"></div>
<div class="layout"></div>
<div class="status-bar-menu"></div>
</div>
<script>var state = null;</script>
<script src="./demoit.js"></script>
<script id="ga"></script>
</body>
</html>
================================================
FILE: dist/resources/editor.js
================================================
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,m=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),E=r||n||i,_=E&&(r?document.documentMode||6:+(i||n)[1]),b=!i&&/WebKit\//.test(e),o=b&&/Qt\/\d+\.\d+/.test(e),s=!i&&/Chrome\//.test(e),v=/Opera\//.test(e),u=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),l=/PhantomJS/.test(e),c=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),f=/Android/.test(e),p=c||f||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=c||/Mac/.test(t),d=/\bCrOS\b/.test(e),h=/win/i.test(t),y=v&&e.match(/Version\/(\d*\.\d*)/);y&&(y=Number(y[1])),y&&15<=y&&(b=!(v=!1));var g=x&&(o||v&&(null==y||y<12.11)),A=m||E&&9<=_;function D(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var r=e.className,n=D(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function w(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firstChild);return e}function k(e,t){return w(e).appendChild(t)}function T(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function F(e,t,r,n){var i=T(e,t,r,n);return i.setAttribute("role","presentation"),i}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function O(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function B(e,t){var r=e.className;D(t).test(r)||(e.className+=(r?" ":"")+t)}function j(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!D(r[n]).test(t)&&(t+=" "+r[n]);return t}S=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var M=function(e){e.select()};function N(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function I(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function L(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=n||0,s=i||0;;){var a=e.indexOf("\t",o);if(a<0||t<=a)return s+(t-o);s+=a-o,s+=r-s%r,o=a+1}}c?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:E&&(M=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null};function V(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}R.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var U=30,W={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},H={origin:"*mouse"},q={origin:"+move"};function K(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var s=o-n;if(o==e.length||t<=i+s)return n+Math.min(s,t-i);if(i+=o-n,n=o+1,t<=(i+=r-i%r))return n}}var Y=[""];function z(e){for(;Y.length<=e;)Y.push(X(Y)+" ");return Y[e]}function X(e){return e[e.length-1]}function J(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function $(){}function Q(e,t){var r;return r=Object.create?Object.create(e):($.prototype=e,new $),t&&I(t,r),r}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||""<e&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function te(e,t){return t?!!(-1<t.source.indexOf("\\w")&&ee(e))||t.test(e):ee(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\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 ie(e){return 768<=e.charCodeAt(0)&&ne.test(e)}function oe(e,t,r){for(;(r<0?0<t:t<e.length)&&ie(e.charAt(t));)t+=r;return t}function se(e,t,r){for(var n=r<t?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function ae(e,t,r){var n=this;this.input=r,n.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),n.scrollbarFiller.setAttribute("cm-not-content","true"),n.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),n.gutterFiller.setAttribute("cm-not-content","true"),n.lineDiv=F("div",null,"CodeMirror-code"),n.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),n.cursorDiv=T("div",null,"CodeMirror-cursors"),n.measure=T("div",null,"CodeMirror-measure"),n.lineMeasure=T("div",null,"CodeMirror-measure"),n.lineSpace=F("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none");var i=F("div",[n.lineSpace],"CodeMirror-lines");n.mover=T("div",[i],null,"position: relative"),n.sizer=T("div",[n.mover],"CodeMirror-sizer"),n.sizerWidth=null,n.heightForcer=T("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),n.gutters=T("div",null,"CodeMirror-gutters"),n.lineGutter=null,n.scroller=T("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll"),n.scroller.setAttribute("tabIndex","-1"),n.wrapper=T("div",[n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror"),E&&_<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),b||m&&p||(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,r.init(n)}function ue(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 r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function le(e,r,n){var i=[],o=r.line;return e.iter(r.line,n.line+1,function(e){var t=e.text;o==n.line&&(t=t.slice(0,n.ch)),o==r.line&&(t=t.slice(r.ch)),i.push(t),++o}),i}function ce(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function fe(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function pe(e){if(null==e.parent)return null;for(var t=e.parent,r=V(t.lines,e),n=t.parent;n;n=(t=n).parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function de(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var s=0;s<e.lines.length;++s){var a=e.lines[s].height;if(t<a)break;t-=a}return r+s}function he(e,t){return t>=e.first&&t<e.first+e.size}function me(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ve(e,t,r){if(void 0===r&&(r=null),!(this instanceof ve))return new ve(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ye(e,t){return e.line-t.line||e.ch-t.ch}function ge(e,t){return e.sticky==t.sticky&&0==ye(e,t)}function be(e){return ve(e.line,e.ch)}function xe(e,t){return ye(e,t)<0?t:e}function Ee(e,t){return ye(e,t)<0?e:t}function _e(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ae(e,t){if(t.line<e.first)return ve(e.first,0);var r,n,i,o=e.first+e.size-1;return t.line>o?ve(o,ue(e,o).text.length):(n=ue(e,(r=t).line).text.length,null==(i=r.ch)||n<i?ve(r.line,n):i<0?ve(r.line,0):r)}function De(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=Ae(e,t[n]);return r}var Se=!1,Ce=!1;function we(e,t,r){this.marker=e,this.from=t,this.to=r}function ke(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Fe(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Te(e,t){if(t.full)return null;var r=he(e,t.from.line)&&ue(e,t.from.line).markedSpans,n=he(e,t.to.line)&&ue(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,s=0==ye(t.from,t.to),a=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==s.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new we(s,o.from,a?null:o.to))}}return n}(r,i,s),u=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==s.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new we(s,a?null:o.from-t,null==o.to?null:o.to-t))}}return n}(n,o,s),l=1==t.text.length,c=X(t.text).length+(l?i:0);if(a)for(var f=0;f<a.length;++f){var p=a[f];if(null==p.to){var d=ke(u,p.marker);d?l&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(u)for(var h=0;h<u.length;++h){var m=u[h];if(null!=m.to&&(m.to+=c),null==m.from)ke(a,m.marker)||(m.from=c,l&&(a||(a=[])).push(m));else m.from+=c,l&&(a||(a=[])).push(m)}a&&(a=Pe(a)),u&&u!=a&&(u=Pe(u));var v=[a];if(!l){var y,g=t.text.length-2;if(0<g&&a)for(var b=0;b<a.length;++b)null==a[b].to&&(y||(y=[])).push(new we(a[b].marker,null,null));for(var x=0;x<g;++x)v.push(y);v.push(u)}return v}function Pe(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Oe(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Be(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function je(e){return e.inclusiveLeft?-1:0}function Me(e){return e.inclusiveRight?1:0}function Ne(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=ye(n.from,i.from)||je(e)-je(t);if(o)return-o;var s=ye(n.to,i.to)||Me(e)-Me(t);return s||t.id-e.id}function Ie(e,t){var r,n=Ce&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)(i=n[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!r||Ne(r,i.marker)<0)&&(r=i.marker);return r}function Le(e){return Ie(e,!0)}function Re(e){return Ie(e,!1)}function Ve(e,t){var r,n=Ce&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Ne(r,o.marker)<0)&&(r=o.marker)}return r}function Ue(e,t,r,n,i){var o=ue(e,t),s=Ce&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];if(u.marker.collapsed){var l=u.marker.find(0),c=ye(l.from,r)||je(u.marker)-je(i),f=ye(l.to,n)||Me(u.marker)-Me(i);if(!(0<=c&&f<=0||c<=0&&0<=f)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?0<=ye(l.to,r):0<ye(l.to,r))||0<=c&&(u.marker.inclusiveRight&&i.inclusiveLeft?ye(l.from,n)<=0:ye(l.from,n)<0)))return!0}}}function We(e){for(var t;t=Le(e);)e=t.find(-1,!0).line;return e}function Ge(e,t){var r=ue(e,t),n=We(r);return r==n?t:pe(n)}function He(e,t){if(t>e.lastLine())return t;var r,n=ue(e,t);if(!qe(e,n))return t;for(;r=Re(n);)n=r.find(1,!0).line;return pe(n)+1}function qe(e,t){var r=Ce&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&Ke(e,t,n))return!0}}function Ke(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return Ke(e,n.line,ke(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&Ke(e,t,i))return!0}function Ye(e){for(var t=0,r=(e=We(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;o=(r=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==r)break;t+=a.height}return t}function ze(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=Le(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Re(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,r+=(n=o.to.line).text.length-o.to.ch}return r}function Xe(e){var r=e.display,t=e.doc;r.maxLine=ue(t,t.first),r.maxLineLength=ze(r.maxLine),r.maxLineChanged=!0,t.iter(function(e){var t=ze(e);t>r.maxLineLength&&(r.maxLineLength=t,r.maxLine=e)})}var Je=null;function $e(e,t,r){var n;Je=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Je=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Je=i)}return null!=n?n:Je}var Qe=function(){var I="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",L="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var R=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,V=/[stwN]/,U=/[LRr]/,W=/[Lb1n]/,G=/[1n]/;function H(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var r="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!R.test(e))return!1;for(var n,i=e.length,o=[],s=0;s<i;++s)o.push((n=e.charCodeAt(s))<=247?I.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?L.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L");for(var a=0,u=r;a<i;++a){var l=o[a];"m"==l?o[a]=u:u=l}for(var c=0,f=r;c<i;++c){var p=o[c];"1"==p&&"r"==f?o[c]="n":U.test(p)&&"r"==(f=p)&&(o[c]="R")}for(var d=1,h=o[0];d<i-1;++d){var m=o[d];"+"==m&&"1"==h&&"1"==o[d+1]?o[d]="1":","!=m||h!=o[d+1]||"1"!=h&&"n"!=h||(o[d]=h),h=m}for(var v=0;v<i;++v){var y=o[v];if(","==y)o[v]="N";else if("%"==y){var g=void 0;for(g=v+1;g<i&&"%"==o[g];++g);for(var b=v&&"!"==o[v-1]||g<i&&"1"==o[g]?"1":"N",x=v;x<g;++x)o[x]=b;v=g-1}}for(var E=0,_=r;E<i;++E){var A=o[E];"L"==_&&"1"==A?o[E]="L":U.test(A)&&(_=A)}for(var D=0;D<i;++D)if(V.test(o[D])){var S=void 0;for(S=D+1;S<i&&V.test(o[S]);++S);for(var C="L"==(D?o[D-1]:r),w=C==("L"==(S<i?o[S]:r))?C?"L":"R":r,k=D;k<S;++k)o[k]=w;D=S-1}for(var F,T=[],P=0;P<i;)if(W.test(o[P])){var O=P;for(++P;P<i&&W.test(o[P]);++P);T.push(new H(0,O,P))}else{var B=P,j=T.length;for(++P;P<i&&"L"!=o[P];++P);for(var M=B;M<P;)if(G.test(o[M])){B<M&&T.splice(j,0,new H(1,B,M));var N=M;for(++M;M<P&&G.test(o[M]);++M);T.splice(j,0,new H(2,N,M)),B=M}else++M;B<P&&T.splice(j,0,new H(1,B,P))}return"ltr"==t&&(1==T[0].level&&(F=e.match(/^\s+/))&&(T[0].from=F[0].length,T.unshift(new H(0,0,F[0].length))),1==X(T).level&&(F=e.match(/\s+$/))&&(X(T).to-=F[0].length,T.push(new H(0,i-F[0].length,i)))),"rtl"==t?T.reverse():T}}();function Ze(e,t){var r=e.order;return null==r&&(r=e.order=Qe(e.text,t)),r}var et=[],tt=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||et).concat(r)}};function rt(e,t){return e._handlers&&e._handlers[t]||et}function nt(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=V(i,r);-1<o&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function it(e,t){var r=rt(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function ot(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),it(e,r||t.type,e,t),ft(t)||t.codemirrorIgnore}function st(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==V(r,t[n])&&r.push(t[n])}function at(e,t){return 0<rt(e,t).length}function ut(e){e.prototype.on=function(e,t){tt(this,e,t)},e.prototype.off=function(e,t){nt(this,e,t)}}function lt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ft(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function pt(e){lt(e),ct(e)}function dt(e){return e.target||e.srcElement}function ht(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var mt,vt,yt=function(){if(E&&_<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}();function gt(e){if(null==mt){var t=T("span","");k(e,T("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(mt=t.offsetWidth<=1&&2<t.offsetHeight&&!(E&&_<8))}var r=mt?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function bt(e){if(null!=vt)return vt;var t=k(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),n=S(t,1,2).getBoundingClientRect();return w(e),!(!r||r.left==r.right)&&(vt=n.right-r.right<3)}var xt,Et=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(r.push(o.slice(0,s)),t+=s+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},_t=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},At="oncopy"in(xt=T("div"))||(xt.setAttribute("oncopy","return;"),"function"==typeof xt.oncopy),Dt=null;var St={},Ct={};function wt(e){if("string"==typeof e&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&"string"==typeof e.name&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];"string"==typeof t&&(t={name:t}),(e=Q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return wt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return wt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function kt(e,t){t=wt(t);var r=St[t.name];if(!r)return kt(e,"text/plain");var n=r(e,t);if(Ft.hasOwnProperty(t.name)){var i=Ft[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var s in t.modeProps)n[s]=t.modeProps[s];return n}var Ft={};function Tt(e,t){I(t,Ft.hasOwnProperty(e)?Ft[e]:Ft[e]={})}function Pt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ot(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Bt(e,t,r){return!e.startState||e.startState(t,r)}var jt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};jt.prototype.eol=function(){return this.pos>=this.string.length},jt.prototype.sol=function(){return this.pos==this.lineStart},jt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},jt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},jt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},jt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},jt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},jt.prototype.skipToEnd=function(){this.pos=this.string.length},jt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(-1<t)return this.pos=t,!0},jt.prototype.backUp=function(e){this.pos-=e},jt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=L(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?L(this.string,this.lineStart,this.tabSize):0)},jt.prototype.indentation=function(){return L(this.string,null,this.tabSize)-(this.lineStart?L(this.string,this.lineStart,this.tabSize):0)},jt.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&0<n.index?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},jt.prototype.current=function(){return this.string.slice(this.start,this.pos)},jt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},jt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},jt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Mt=function(e,t){this.state=e,this.lookAhead=t},Nt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function It(t,r,n,e){var u=[t.state.modeGen],i={};Kt(t,r.text,t.doc.mode,n,function(e,t){return u.push(e,t)},i,e);for(var l=n.state,o=function(e){n.baseTokens=u;var o=t.state.overlays[e],s=1,a=0;n.state=!0,Kt(t,r.text,o.mode,n,function(e,t){for(var r=s;a<e;){var n=u[s];e<n&&u.splice(s,1,e,u[s+1],n),s+=2,a=Math.min(e,n)}if(t)if(o.opaque)u.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;r<s;r+=2){var i=u[r+1];u[r+1]=(i?i+" ":"")+"overlay "+t}},i),n.state=l,n.baseTokens=null,n.baseTokenPos=1},s=0;s<t.state.overlays.length;++s)o(s);return{styles:u,classes:i.bgClass||i.textClass?i:null}}function Lt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Rt(e,pe(t)),i=t.text.length>e.options.maxHighlightLength&&Pt(e.doc.mode,n.state),o=It(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return new Nt(t,!0,n);var o=function(e,t,r){for(var n,i,o=e.doc,s=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;s<a;--a){if(a<=o.first)return o.first;var u=ue(o,a-1),l=u.stateAfter;if(l&&(!r||a+(l instanceof Mt?l.lookAhead:0)<=o.modeFrontier))return a;var c=L(u.text,null,e.options.tabSize);(null==i||c<n)&&(i=a-1,n=c)}return i}(r,n,e),s=o>t.first&&ue(t,o-1).stateAfter,a=s?Nt.fromSaved(t,s,o):new Nt(t,Bt(t.mode),o);return t.iter(o,n,function(e){Vt(r,e.text,a);var t=a.line;e.stateAfter=t==n-1||t%5==0||t>=i.viewFrom&&t<i.viewTo?a.save():null,a.nextLine()}),e&&(t.modeFrontier=a.line),a}function Vt(e,t,r,n){var i=e.doc.mode,o=new jt(t,e.options.tabSize,r);for(o.start=o.pos=n||0,""==t&&Ut(i,r.state);!o.eol();)Wt(i,o,r.state),o.start=o.pos}function Ut(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Ot(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function Wt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Ot(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Nt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Nt.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}},Nt.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},Nt.fromSaved=function(e,t,r){return t instanceof Mt?new Nt(e,Pt(e.mode,t.state),r,t.lookAhead):new Nt(e,Pt(e.mode,t),r)},Nt.prototype.save=function(e){var t=!1!==e?Pt(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?new Mt(t,this.maxLookAhead):t};var Gt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Ht(e,t,r,n){var i,o,s=e.doc,a=s.mode,u=ue(s,(t=Ae(s,t)).line),l=Rt(e,t.line,r),c=new jt(u.text,e.options.tabSize,l);for(n&&(o=[]);(n||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Wt(a,c,l.state),n&&o.push(new Gt(c,i,Pt(s.mode,l.state)));return n?o:new Gt(c,i,l.state)}function qt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Kt(e,t,r,n,i,o,s){var a=r.flattenSpans;null==a&&(a=e.options.flattenSpans);var u,l=0,c=null,f=new jt(t,e.options.tabSize,n),p=e.options.addModeClass&&[null];for(""==t&&qt(Ut(r,n.state),o);!f.eol();){if(u=f.pos>e.options.maxHighlightLength?(a=!1,s&&Vt(e,t,n,f.pos),f.pos=t.length,null):qt(Wt(r,f,n.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!a||c!=u){for(;l<f.start;)i(l=Math.min(f.start,l+5e3),c);c=u}f.start=f.pos}for(;l<f.pos;){var h=Math.min(f.pos,l+5e3);i(h,c),l=h}}var Yt=function(e,t,r){this.text=e,Be(this,t),this.height=r?r(this):1};Yt.prototype.lineNo=function(){return pe(this)},ut(Yt);var zt={},Xt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Xt:zt;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function $t(e,t){var r=F("span",null,null,b?"padding-right: .1px":null),n={pre:F("pre",[r],"CodeMirror-line"),content:r,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,s=void 0;n.pos=0,n.addToken=Zt,bt(e.display.measure)&&(s=Ze(o,e.doc.direction))&&(n.addToken=er(n.addToken,s)),n.map=[],rr(o,n,Lt(e,o,t!=e.display.externalMeasured&&pe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=j(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=j(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(gt(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(b){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return it(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=j(n.pre.className,n.textClass||"")),n}function Qt(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,r,n,i,o,s){if(t){var a,u=e.splitSpaces?function(e,t){if(1<e.length&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}(t,e.trailingSpace):t,l=e.cm.state.specialChars,c=!1;if(l.test(t)){a=document.createDocumentFragment();for(var f=0;;){l.lastIndex=f;var p=l.exec(t),d=p?p.index-f:t.length-f;if(d){var h=document.createTextNode(u.slice(f,f+d));E&&_<9?a.appendChild(T("span",[h])):a.appendChild(h),e.map.push(e.pos,e.pos+d,h),e.col+=d,e.pos+=d}if(!p)break;f+=d+1;var m=void 0;if("\t"==p[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(m=a.appendChild(T("span",z(y),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==p[0]||"\n"==p[0]?(m=a.appendChild(T("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),E&&_<9?a.appendChild(T("span",[m])):a.appendChild(m)),e.col+=1;e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,a=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,a),E&&_<9&&(c=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),r||n||i||c||s){var g=r||"";n&&(g+=n),i&&(g+=i);var b=T("span",[a],g,s);return o&&(b.title=o),e.content.appendChild(b)}e.content.appendChild(a)}}function er(f,p){return function(e,t,r,n,i,o,s){r=r?r+" cm-force-border":"cm-force-border";for(var a=e.pos,u=a+t.length;;){for(var l=void 0,c=0;c<p.length&&!((l=p[c]).to>a&&l.from<=a);c++);if(l.to>=u)return f(e,t,r,n,i,o,s);f(e,t.slice(0,l.to-a),r,n,null,o,s),n=null,t=t.slice(l.to-a),a=l.to}}}function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var s,a,u,l,c,f,p,d=i.length,h=0,m=1,v="",y=0;;){if(y==h){u=l=c=f=a="",p=null,y=1/0;for(var g=[],b=void 0,x=0;x<n.length;++x){var E=n[x],_=E.marker;"bookmark"==_.type&&E.from==h&&_.widgetNode?g.push(_):E.from<=h&&(null==E.to||E.to>h||_.collapsed&&E.to==h&&E.from==h)?(null!=E.to&&E.to!=h&&y>E.to&&(y=E.to,l=""),_.className&&(u+=" "+_.className),_.css&&(a=(a?a+";":"")+_.css),_.startStyle&&E.from==h&&(c+=" "+_.startStyle),_.endStyle&&E.to==y&&(b||(b=[])).push(_.endStyle,E.to),_.title&&!f&&(f=_.title),_.collapsed&&(!p||Ne(p.marker,_)<0)&&(p=E)):E.from>h&&y>E.from&&(y=E.from)}if(b)for(var A=0;A<b.length;A+=2)b[A+1]==y&&(l+=" "+b[A]);if(!p||p.from==h)for(var D=0;D<g.length;++D)tr(t,0,g[D]);if(p&&(p.from||0)==h){if(tr(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(d<=h)break;for(var S=Math.min(d,y);;){if(v){var C=h+v.length;if(!p){var w=S<C?v.slice(0,S-h):v;t.addToken(t,w,s?s+u:u,c,h+w.length==y?l:"",f,a)}if(S<=C){v=v.slice(S-h),h=S;break}h=C,c=""}v=i.slice(o,o=r[m++]),s=Jt(r[m++],t.cm.options)}}else for(var k=1;k<r.length;k+=2)t.addToken(t,i.slice(o,o=r[k]),Jt(r[k+1],t.cm.options))}function nr(e,t,r){this.line=t,this.rest=function(e){for(var t,r;t=Re(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}(t),this.size=this.rest?pe(X(this.rest))-r+1:1,this.node=this.text=null,this.hidden=qe(e,t)}function ir(e,t,r){for(var n,i=[],o=t;o<r;o=n){var s=new nr(e.doc,ue(e.doc,o),o);n=o+s.size,i.push(s)}return i}var or=null;var sr=null;function ar(e,t){var r=rt(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);or?n=or.delayedCallbacks:sr?n=sr:(n=sr=[],setTimeout(ur,0));for(var o=function(e){n.push(function(){return r[e].apply(null,i)})},s=0;s<r.length;++s)o(s)}}function ur(){var e=sr;sr=null;for(var t=0;t<e.length;++t)e[t]()}function lr(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?pr(e,t):"gutter"==o?hr(e,t,r,n):"class"==o?dr(e,t):"widget"==o&&mr(e,t,n)}t.changes=null}function cr(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),E&&_<8&&(e.node.style.zIndex=2)),e.node}function fr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):$t(e,t)}function pr(e,t){var r=t.text.className,n=fr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,dr(e,t)):r&&(t.text.className=r)}function dr(e,t){!function(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=cr(t);t.background=n.insertBefore(T("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?cr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function hr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=cr(t);t.gutterBackground=T("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var s=cr(t),a=t.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(T("div",me(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.options.gutters.length;++u){var l=e.options.gutters[u],c=o.hasOwnProperty(l)&&o[l];c&&a.appendChild(T("div",[c],"CodeMirror-gutter-elt","left: "+n.gutterLeft[l]+"px; width: "+n.gutterWidth[l]+"px"))}}}function mr(e,t,r){t.alignable&&(t.alignable=null);for(var n=t.node.firstChild,i=void 0;n;n=i)i=n.nextSibling,"CodeMirror-linewidget"==n.className&&t.node.removeChild(n);vr(e,t,r)}function vr(e,t,r){if(yr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)yr(e,t.rest[n],t,r,!1)}function yr(e,t,r,n,i){if(t.widgets)for(var o=cr(r),s=0,a=t.widgets;s<a.length;++s){var u=a[s],l=T("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),gr(u,l,r,n),e.display.input.setUneditable(l),i&&u.above?o.insertBefore(l,r.gutter||r.text):o.appendChild(l),ar(u,"redraw")}}function gr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function br(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,T("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function xr(e,t){for(var r=dt(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Er(e){return e.lineSpace.offsetTop}function _r(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ar(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,T("pre","x")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Dr(e){return U-e.display.nativeBarWidth}function Sr(e){return e.display.scroller.clientWidth-Dr(e)-e.display.barWidth}function Cr(e){return e.display.scroller.clientHeight-Dr(e)-e.display.barHeight}function wr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(pe(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function kr(e,t,r,n){return Pr(e,Tr(e,t),r,n)}function Fr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[an(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function Tr(e,t){var r=pe(t),n=Fr(e,r);n&&!n.text?n=null:n&&n.changes&&(lr(e,n,r,tn(e)),e.curOp.forceUpdate=!0),n||(n=function(e,t){var r=pe(t=We(t)),n=e.display.externalMeasured=new nr(e.doc,t,r);n.lineN=r;var i=n.built=$t(e,n);return n.text=i.pre,k(e.display.lineMeasure,i.pre),n}(e,t));var i=wr(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Pr(e,t,r,n,i){t.before&&(r=-1);var o,s=r+(n||"");return t.cache.hasOwnProperty(s)?o=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,r){var n=e.options.lineWrapping,i=n&&Sr(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var s=t.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var u=s[a],l=s[a+1];2<Math.abs(u.bottom-l.bottom)&&o.push((u.bottom+l.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=jr(t.map,r,n),s=o.node,a=o.start,u=o.end,l=o.collapse;if(3==s.nodeType){for(var c=0;c<4;c++){for(;a&&ie(t.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+u<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+u));)++u;if((i=E&&_<9&&0==a&&u==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():Mr(S(s,a,u).getClientRects(),n)).left||i.right||0==a)break;u=a,a-=1,l="right"}E&&_<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Dt)return Dt;var t=k(e,T("span","x")),r=t.getBoundingClientRect(),n=S(t,0,1).getBoundingClientRect();return Dt=1<Math.abs(r.left-n.left)}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var f;0<a&&(l=n="right"),i=e.options.lineWrapping&&1<(f=s.getClientRects()).length?f["right"==n?f.length-1:0]:s.getBoundingClientRect()}if(E&&_<9&&!a&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+en(e.display),top:p.top,bottom:p.bottom}:Br}for(var d=i.top-t.rect.top,h=i.bottom-t.rect.top,m=(d+h)/2,v=t.view.measure.heights,y=0;y<v.length-1&&!(m<v[y]);y++);var g=y?v[y-1]:0,b=v[y],x={left:("right"==l?i.right:i.left)-t.rect.left,right:("left"==l?i.left:i.right)-t.rect.left,top:g,bottom:b};i.left||i.right||(x.bogus=!0);e.options.singleCursorHeightPerLine||(x.rtop=d,x.rbottom=h);return x}(e,t,r,n)).bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Or,Br={left:0,right:0,top:0,bottom:0};function jr(e,t,r){for(var n,i,o,s,a,u,l=0;l<e.length;l+=3)if(a=e[l],u=e[l+1],t<a?(i=0,o=1,s="left"):t<u?o=(i=t-a)+1:(l==e.length-3||t==u&&e[l+3]>t)&&(i=(o=u-a)-1,u<=t&&(s="right")),null!=i){if(n=e[l+2],a==u&&r==(n.insertLeft?"left":"right")&&(s=r),"left"==r&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)n=e[2+(l-=3)],s="left";if("right"==r&&i==u-a)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)n=e[(l+=3)+2],s="right";break}return{node:n,start:i,end:o,collapse:s,coverStart:a,coverEnd:u}}function Mr(e,t){var r=Br;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;0<=i&&(r=e[i]).left==r.right;i--);return r}function Nr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Ir(e){e.display.externalMeasure=null,w(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Nr(e.display.view[t])}function Lr(e){Ir(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Rr(){return s&&f?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vr(){return s&&f?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ur(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=br(e.widgets[r]));return t}function Wr(e,t,r,n,i){if(!i){var o=Ur(t);r.top+=o,r.bottom+=o}if("line"==n)return r;n||(n="local");var s=Ye(t);if("local"==n?s+=Er(e.display):s-=e.display.viewOffset,"page"==n||"window"==n){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==n?0:Vr());var u=a.left+("window"==n?0:Rr());r.left+=u,r.right+=u}return r.top+=s,r.bottom+=s,r}function Gr(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=Rr(),i-=Vr();else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var s=e.display.lineSpace.getBoundingClientRect();return{left:n-s.left,top:i-s.top}}function Hr(e,t,r,n,i){return n||(n=ue(e.doc,t.line)),Wr(e,n,kr(e,n,t.ch,i),r)}function qr(n,e,i,o,s,a){function u(e,t){var r=Pr(n,s,e,t?"right":"left",a);return t?r.left=r.right:r.right=r.left,Wr(n,o,r,i)}o=o||ue(n.doc,e.line),s||(s=Tr(n,o));var l=Ze(o,n.doc.direction),t=e.ch,r=e.sticky;if(t>=o.text.length?(t=o.text.length,r="before"):t<=0&&(t=0,r="after"),!l)return u("before"==r?t-1:t,"before"==r);function c(e,t,r){return u(r?e-1:e,1==l[t].level!=r)}var f=$e(l,t,r),p=Je,d=c(t,f,"before"==r);return null!=p&&(d.other=c(t,p,"before"!=r)),d}function Kr(e,t){var r=0;t=Ae(e.doc,t),e.options.lineWrapping||(r=en(e.display)*t.ch);var n=ue(e.doc,t.line),i=Ye(n)+Er(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Yr(e,t,r,n,i){var o=ve(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function zr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Yr(n.first,0,null,!0,-1);var i=de(n,r),o=n.first+n.size-1;if(o<i)return Yr(n.first+n.size-1,ue(n,o).text.length,null,!0,1);t<0&&(t=0);for(var s=ue(n,i);;){var a=Qr(e,s,i,t,r),u=Ve(s,a.ch+(0<a.xRel?1:0));if(!u)return a;var l=u.find(1);if(l.line==i)return l;s=ue(n,i=l.line)}}function Xr(t,e,r,n){n-=Ur(e);var i=e.text.length,o=se(function(e){return Pr(t,r,e-1).bottom<=n},i,0);return{begin:o,end:i=se(function(e){return Pr(t,r,e).top>n},o,i)}}function Jr(e,t,r,n){return r||(r=Tr(e,t)),Xr(e,t,r,Wr(e,t,Pr(e,r,n),"line").top)}function $r(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Qr(r,e,t,n,i){i-=Ye(e);var o=Tr(r,e),s=Ur(e),a=0,u=e.text.length,l=!0,c=Ze(e,r.doc.direction);if(c){var f=(r.options.lineWrapping?function(e,t,r,n,i,o,s){var a=Xr(e,t,n,s),u=a.begin,l=a.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=l||d.to<=u)){var h=1!=d.level,m=Pr(e,n,h?Math.min(l,d.to)-1:Math.max(u,d.from)).right,v=m<o?o-m+1e9:m-o;(!c||v<f)&&(c=d,f=v)}}c||(c=i[i.length-1]);c.from<u&&(c={from:u,to:c.to,level:c.level});c.to>l&&(c={from:c.from,to:l,level:c.level});return c}:function(n,i,o,s,a,u,l){var e=se(function(e){var t=a[e],r=1!=t.level;return $r(qr(n,ve(o,r?t.to:t.from,r?"before":"after"),"line",i,s),u,l,!0)},0,a.length-1),t=a[e];if(0<e){var r=1!=t.level,c=qr(n,ve(o,r?t.from:t.to,r?"after":"before"),"line",i,s);$r(c,u,l,!0)&&c.top>l&&(t=a[e-1])}return t})(r,e,t,o,c,n,i);a=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var p,d,h=null,m=null,v=se(function(e){var t=Pr(r,o,e);return t.top+=s,t.bottom+=s,!!$r(t,n,i,!1)&&(t.top<=i&&t.left<=n&&(h=e,m=t),!0)},a,u),y=!1;if(m){var g=n-m.left<m.right-n,b=g==l;v=h+(b?0:1),d=b?"after":"before",p=g?m.left:m.right}else{l||v!=u&&v!=a||v++,d=0==v?"after":v==e.text.length?"before":Pr(r,o,v-(l?1:0)).bottom+s<=i==l?"after":"before";var x=qr(r,ve(t,v,d),"line",e,o);p=x.left,y=i<x.top||i>=x.bottom}return Yr(t,v=oe(e.text,v,1),d,y,n-p)}function Zr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Or){Or=T("pre");for(var t=0;t<49;++t)Or.appendChild(document.createTextNode("x")),Or.appendChild(T("br"));Or.appendChild(document.createTextNode("x"))}k(e.measure,Or);var r=Or.offsetHeight/50;return 3<r&&(e.cachedTextHeight=r),w(e.measure),r||1}function en(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),r=T("pre",[t]);k(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return 2<i&&(e.cachedCharWidth=i),i||10}function tn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,s=0;o;o=o.nextSibling,++s)r[e.options.gutters[s]]=o.offsetLeft+o.clientLeft+i,n[e.options.gutters[s]]=o.clientWidth;return{fixedPos:rn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function rn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function nn(n){var i=Zr(n.display),o=n.options.lineWrapping,s=o&&Math.max(5,n.display.scroller.clientWidth/en(n.display)-3);return function(e){if(qe(n.doc,e))return 0;var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;r++)e.widgets[r].height&&(t+=e.widgets[r].height);return o?t+(Math.ceil(e.text.length/s)||1)*i:t+i}}function on(e){var t=e.doc,r=nn(e);t.iter(function(e){var t=r(e);t!=e.height&&fe(e,t)})}function sn(e,t,r,n){var i=e.display;if(!r&&"true"==dt(t).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,s=t.clientY-a.top}catch(t){return null}var u,l=zr(e,o,s);if(n&&1==l.xRel&&(u=ue(e.doc,l.line).text).length==l.ch){var c=L(u,u.length,e.options.tabSize)-u.length;l=ve(l.line,Math.max(0,Math.round((o-Ar(e.display).left)/en(e.display))-c))}return l}function an(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function un(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ln(e,t){void 0===t&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),s=0;s<r.sel.ranges.length;s++)if(t||s!=r.sel.primIndex){var a=r.sel.ranges[s];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var u=a.empty();(u||e.options.showCursorWhenSelecting)&&cn(e,a.head,i),u||pn(e,a,o)}}return n}function cn(e,t,r){var n=qr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(T("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=r.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function fn(e,t){return e.top-t.top||e.left-t.left}function pn(s,e,t){var r=s.display,n=s.doc,i=document.createDocumentFragment(),o=Ar(s.display),C=o.left,w=Math.max(r.sizerWidth,Sr(s)-r.sizer.offsetLeft)-o.right,k="ltr"==n.direction;function F(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),i.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?w-e:r)+"px;\n height: "+(n-t)+"px"))}function a(r,g,b){var x,E,o=ue(n,r),_=o.text.length;function A(e,t){return Hr(s,ve(r,e),"div",o,t)}function D(e,t,r){var n=Jr(s,o,null,e),i="ltr"==t==("after"==r)?"left":"right";return A("after"==r?n.begin:n.end-(/\s/.test(o.text.charAt(n.end-1))?2:1),i)[i]}var S=Ze(o,n.direction);return function(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var s=e[o];(s.from<r&&s.to>t||t==r&&s.to==t)&&(n(Math.max(s.from,t),Math.min(s.to,r),1==s.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(S,g||0,null==b?_:b,function(e,t,r,n){var i="ltr"==r,o=A(e,i?"left":"right"),s=A(t-1,i?"right":"left"),a=null==g&&0==e,u=null==b&&t==_,l=0==n,c=!S||n==S.length-1;if(s.top-o.top<=3){var f=(k?u:a)&&c,p=(k?a:u)&&l?C:(i?o:s).left,d=f?w:(i?s:o).right;F(p,o.top,d-p,o.bottom)}else{var h,m,v,y;y=i?(h=k&&a&&l?C:o.left,m=k?w:D(e,r,"before"),v=k?C:D(t,r,"after"),k&&u&&c?w:s.right):(h=k?D(e,r,"before"):C,m=!k&&a&&l?w:o.right,v=!k&&u&&c?C:s.left,k?D(t,r,"after"):w),F(h,o.top,m-h,o.bottom),o.bottom<s.top&&F(C,o.bottom,null,s.top),F(v,s.top,y-v,s.bottom)}(!x||fn(o,x)<0)&&(x=o),fn(s,x)<0&&(x=s),(!E||fn(o,E)<0)&&(E=o),fn(s,E)<0&&(E=s)}),{start:x,end:E}}var u=e.from(),l=e.to();if(u.line==l.line)a(u.line,u.ch,l.ch);else{var c=ue(n,u.line),f=ue(n,l.line),p=We(c)==We(f),d=a(u.line,u.ch,p?c.text.length+1:null).end,h=a(l.line,p?0:null,l.ch).start;p&&(d.top<h.top-2?(F(d.right,d.top,null,d.bottom),F(C,h.top,h.left,h.bottom)):F(d.right,d.top,h.left-d.right,d.bottom)),d.bottom<h.top&&F(C,d.bottom,null,h.top)}t.appendChild(i)}function dn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",0<e.options.cursorBlinkRate?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function hn(e){e.state.focused||(e.display.input.focus(),vn(e))}function mn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yn(e))},100)}function vn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(it(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),b&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),dn(e))}function yn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(it(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function gn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=void 0;if(!i.hidden){if(E&&_<8){var s=i.node.offsetTop+i.node.offsetHeight;o=s-r,r=s}else{var a=i.node.getBoundingClientRect();o=a.bottom-a.top}var u=i.line.height-o;if(o<2&&(o=Zr(t)),(.005<u||u<-.005)&&(fe(i.line,o),bn(i.line),i.rest))for(var l=0;l<i.rest.length;l++)bn(i.rest[l])}}}function bn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function xn(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Er(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=de(t,n),s=de(t,i);if(r&&r.ensure){var a=r.ensure.from.line,u=r.ensure.to.line;a<o?s=de(t,Ye(ue(t,o=a))+e.wrapper.clientHeight):Math.min(u,t.lastLine())>=s&&(o=de(t,Ye(ue(t,u))-e.wrapper.clientHeight),s=u)}return{from:o,to:Math.max(s,o+1)}}function En(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=rn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",s=0;s<r.length;s++)if(!r[s].hidden){e.options.fixedGutter&&(r[s].gutter&&(r[s].gutter.style.left=o),r[s].gutterBackground&&(r[s].gutterBackground.style.left=o));var a=r[s].alignable;if(a)for(var u=0;u<a.length;u++)a[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function _n(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=me(e.options,t.first+t.size-1),n=e.display;if(r.length==n.lineNumChars)return!1;var i=n.measure.appendChild(T("div",[T("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-s)+1,n.lineNumWidth=n.lineNumInnerWidth+s,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",ai(e),!0}function An(e,t){var r=e.display,n=Zr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Cr(e),s={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+_r(r),u=t.top<n,l=t.bottom>a-n;if(t.top<i)s.scrollTop=u?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(l?a:t.bottom)-o);c!=i&&(s.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,p=Sr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?s.scrollLeft=0:t.left<f?s.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(s.scrollLeft=t.right+(d?0:10)-p),s}function Dn(e,t){null!=t&&(wn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Sn(e){wn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Cn(e,t,r){null==t&&null==r||wn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function wn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,kn(e,Kr(e,t.from),Kr(e,t.to),t.margin))}function kn(e,t,r,n){var i=An(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Cn(e,i.scrollLeft,i.scrollTop)}function Fn(e,t){Math.abs(e.doc.scrollTop-t)<2||(m||si(e,{top:t}),Tn(e,t,!0),m&&si(e),ti(e,100))}function Tn(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pn(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,En(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function On(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+_r(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?r:0,docHeight:n,scrollHeight:n+Dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Bn=function(e,t,r){this.cm=r;var n=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),tt(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&_<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n: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&&0<e.clientHeight&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Bn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bn.prototype.zeroWidthHack=function(){var e=x&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Bn.prototype.enableZeroWidthBar=function(r,n,i){r.style.pointerEvents="auto",n.set(1e3,function e(){var t=r.getBoundingClientRect();("vert"==i?document.elementFromPoint(t.right-1,(t.top+t.bottom)/2):document.elementFromPoint((t.right+t.left)/2,t.bottom-1))!=r?r.style.pointerEvents="none":n.set(1e3,e)})},Bn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var jn=function(){};function Mn(e,t){t||(t=On(e));var r=e.display.barWidth,n=e.display.barHeight;Nn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&gn(e),Nn(e,On(e)),r=e.display.barWidth,n=e.display.barHeight}function Nn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}jn.prototype.update=function(){return{bottom:0,right:0}},jn.prototype.setScrollLeft=function(){},jn.prototype.setScrollTop=function(){},jn.prototype.clear=function(){};var In={native:Bn,null:jn};function Ln(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&C(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new In[r.options.scrollbarStyle](function(e){r.display.wrapper.insertBefore(e,r.display.scrollbarFiller),tt(e,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,t){"horizontal"==t?Pn(r,e):Fn(r,e)},r),r.display.scrollbars.addClass&&B(r.display.wrapper,r.display.scrollbars.addClass)}var Rn=0;function Vn(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Rn},t=e.curOp,or?or.ops.push(t):t.ownsGroup=or={ops:[t],delayedCallbacks:[]}}function Un(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}(r)}finally{or=null,t(r)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,r=0;r<t.length;r++)Wn(t[r]);for(var n=0;n<t.length;n++)(i=t[n]).updatedDisplay=i.mustUpdate&&ii(i.cm,i.update);var i;for(var o=0;o<t.length;o++)Gn(t[o]);for(var s=0;s<t.length;s++)Hn(t[s]);for(var a=0;a<t.length;a++)qn(t[a])}(e)})}function Wn(e){var t,r,n=e.cm,i=n.display;!(r=(t=n).display).scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Dr(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Dr(t)+"px",r.scrollbarsClipped=!0),e.updateMaxLine&&Xe(n),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ni(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Gn(e){var t=e.cm,r=t.display;e.updatedDisplay&&gn(t),e.barMeasure=On(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=kr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Sr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Hn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Pn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==O();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Mn(t,e.barMeasure),e.updatedDisplay&&ui(t,e.barMeasure),e.selectionChanged&&dn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&hn(e.cm)}function qn(e){var t=e.cm,r=t.display,n=t.doc;(e.updatedDisplay&&oi(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&Tn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Pn(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!ot(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!l){var o=T("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Er(e.display))+"px;\n height: "+(t.bottom-t.top+Dr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?ve(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ve(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var s=!1,a=qr(e,t),u=r&&r!=t?qr(e,r):a,l=An(e,i={left:Math.min(a.left,u.left),top:Math.min(a.top,u.top)-n,right:Math.max(a.left,u.left),bottom:Math.max(a.bottom,u.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Fn(e,l.scrollTop),1<Math.abs(e.doc.scrollTop-c)&&(s=!0)),null!=l.scrollLeft&&(Pn(e,l.scrollLeft),1<Math.abs(e.doc.scrollLeft-f)&&(s=!0)),!s)break}return i}(t,Ae(n,e.scrollToPos.from),Ae(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||it(i[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&it(o[a],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&it(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Kn(e,t){if(e.curOp)return t();Vn(e);try{return t()}finally{Un(e)}}function Yn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Vn(e);try{return t.apply(e,arguments)}finally{Un(e)}}}function zn(e){return function(){if(this.curOp)return e.apply(this,arguments);Vn(this);try{return e.apply(this,arguments)}finally{Un(this)}}}function Xn(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Vn(e);try{return t.apply(this,arguments)}finally{Un(e)}}}function Jn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ce&&Ge(e.doc,t)<i.viewTo&&Qn(e);else if(r<=i.viewFrom)Ce&&He(e.doc,r+n)>i.viewFrom?Qn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Qn(e);else if(t<=i.viewFrom){var o=Zn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Qn(e)}else if(r>=i.viewTo){var s=Zn(e,t,t,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):Qn(e)}else{var a=Zn(e,t,t,-1),u=Zn(e,r,r+n,1);a&&u?(i.view=i.view.slice(0,a.index).concat(ir(e,a.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=n):Qn(e)}var l=i.externalMeasured;l&&(r<l.lineN?l.lineN+=n:t<l.lineN+l.size&&(i.externalMeasured=null))}function $n(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[an(e,t)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==V(s,r)&&s.push(r)}}}function Qn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zn(e,t,r,n){var i,o=an(e,t),s=e.display.view;if(!Ce||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,u=0;u<o;u++)a+=s[u].size;if(a!=t){if(0<n){if(o==s.length-1)return null;i=a+s[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;Ge(e.doc,r)!=r;){if(o==(n<0?0:s.length-1))return null;r+=n*s[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function ei(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function ti(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,N(ri,e))}function ri(u){var l=u.doc;if(!(l.highlightFrontier>=u.display.viewTo)){var c=+new Date+u.options.workTime,f=Rt(u,l.highlightFrontier),p=[];l.iter(f.line,Math.min(l.first+l.size,u.display.viewTo+500),function(e){if(f.line>=u.display.viewFrom){var t=e.styles,r=e.text.length>u.options.maxHighlightLength?Pt(l.mode,f.state):null,n=It(u,e,f,!0);r&&(f.state=r),e.styles=n.styles;var i=e.styleClasses,o=n.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var s=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),a=0;!s&&a<t.length;++a)s=t[a]!=e.styles[a];s&&p.push(f.line),e.stateAfter=f.save(),f.nextLine()}else e.text.length<=u.options.maxHighlightLength&&Vt(u,e.text,f),e.stateAfter=f.line%5==0?f.save():null,f.nextLine();if(+new Date>c)return ti(u,u.options.workDelay),!0}),l.highlightFrontier=f.line,l.modeFrontier=Math.max(l.modeFrontier,f.line),p.length&&Kn(u,function(){for(var e=0;e<p.length;e++)$n(u,p[e],"text")})}}var ni=function(e,t,r){var n=e.display;this.viewport=t,this.visible=xn(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Sr(e),this.force=r,this.dims=tn(e),this.events=[]};function ii(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Qn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==ei(e))return!1;_n(e)&&(Qn(e),t.dims=tn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),s=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Ce&&(o=Ge(e.doc,o),s=He(e.doc,s));var a,u,l,c,f=o!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;u=o,l=s,0==(c=(a=e).display).view.length||u>=c.viewTo||l<=c.viewFrom?(c.view=ir(a,u,l),c.viewFrom=u):(c.viewFrom>u?c.view=ir(a,u,c.viewFrom).concat(c.view):c.viewFrom<u&&(c.view=c.view.slice(an(a,u))),c.viewFrom=u,c.viewTo<l?c.view=c.view.concat(ir(a,c.viewTo,l)):c.viewTo>l&&(c.view=c.view.slice(0,an(a,l)))),c.viewTo=l,r.viewOffset=Ye(ue(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var p=ei(e);if(!f&&0==p&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=O();if(!t||!P(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&P(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return 4<p&&(r.lineDiv.style.display="none"),function(r,e,t){var n=r.display,i=r.options.lineNumbers,o=n.lineDiv,s=o.firstChild;function a(e){var t=e.nextSibling;return b&&x&&r.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),t}for(var u=n.view,l=n.viewFrom,c=0;c<u.length;c++){var f=u[c];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;s!=f.node;)s=a(s);var p=i&&null!=e&&e<=l&&f.lineNumber;f.changes&&(-1<V(f.changes,"gutter")&&(p=!1),lr(r,f,l,t)),p&&(w(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(me(r.options,l)))),s=f.node.nextSibling}else{var d=(v=l,y=t,void 0,g=fr(h=r,m=f),m.text=m.node=g.pre,g.bgClass&&(m.bgClass=g.bgClass),g.textClass&&(m.textClass=g.textClass),dr(h,m),hr(h,m,v,y),vr(h,m,y),m.node);o.insertBefore(d,s)}l+=f.size}var h,m,v,y,g;for(;s;)s=a(s)}(e,r.updateLineNumbers,t.dims),4<p&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=O()&&(e.activeElt.focus(),e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(d),w(r.cursorDiv),w(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,f&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ti(e,400)),!(r.updateLineNumbers=null)}function oi(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Sr(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+_r(e.display)-Cr(e),r.top)}),t.visible=xn(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ii(e,t);n=!1){gn(e);var i=On(e);un(e),Mn(e,i),ui(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 si(e,t){var r=new ni(e,t);if(ii(e,r)){gn(e),oi(e,r);var n=On(e);un(e),Mn(e,n),ui(e,n),r.finish()}}function ai(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ui(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+Dr(e)+"px"}function li(e){var t=e.display.gutters,r=e.options.gutters;w(t);for(var n=0;n<r.length;++n){var i=r[n],o=t.appendChild(T("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&((e.display.lineGutter=o).style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=n?"":"none",ai(e)}function ci(e){var t=V(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):-1<t&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}ni.prototype.signal=function(e,t){at(e,t)&&this.events.push(arguments)},ni.prototype.finish=function(){for(var e=0;e<this.events.length;e++)it.apply(null,this.events[e])};var fi=0,pi=null;function di(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function hi(e){var t=di(e);return t.x*=pi,t.y*=pi,t}function mi(e,t){var r=di(t),n=r.x,i=r.y,o=e.display,s=o.scroller,a=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(n&&a||i&&u){if(i&&x&&b)e:for(var l=t.target,c=o.view;l!=s;l=l.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==l){e.display.currentWheelTarget=l;break e}if(n&&!m&&!v&&null!=pi)return i&&u&&Fn(e,Math.max(0,s.scrollTop+i*pi)),Pn(e,Math.max(0,s.scrollLeft+n*pi)),(!i||i&&u)&<(t),void(o.wheelStartX=null);if(i&&null!=pi){var p=i*pi,d=e.doc.scrollTop,h=d+o.wrapper.clientHeight;p<0?d=Math.max(0,d+p-50):h=Math.min(e.doc.height,h+p+50),si(e,{top:d,bottom:h})}fi<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=s.scrollLeft-o.wheelStartX,t=s.scrollTop-o.wheelStartY,r=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,r&&(pi=(pi*fi+r)/(fi+1),++fi)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}E?pi=-.53:m?pi=15:s?pi=-.7:u&&(pi=-1/3);var vi=function(e,t){this.ranges=e,this.primIndex=t};vi.prototype.primary=function(){return this.ranges[this.primIndex]},vi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!ge(r.anchor,n.anchor)||!ge(r.head,n.head))return!1}return!0},vi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new yi(be(this.ranges[t].anchor),be(this.ranges[t].head));return new vi(e,this.primIndex)},vi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},vi.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(0<=ye(t,n.from())&&ye(e,n.to())<=0)return r}return-1};var yi=function(e,t){this.anchor=e,this.head=t};function gi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return ye(e.from(),t.from())}),r=V(t,i);for(var o=1;o<t.length;o++){var s=t[o],a=t[o-1],u=ye(a.to(),s.from());if(n&&!s.empty()?0<u:0<=u){var l=Ee(a.from(),s.from()),c=xe(a.to(),s.to()),f=a.empty()?s.from()==s.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new yi(f?c:l,f?l:c))}}return new vi(t,r)}function bi(e,t){return new vi([new yi(e,t||e)],0)}function xi(e){return e.text?ve(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ei(e,t){if(ye(e,t.from)<0)return e;if(ye(e,t.to)<=0)return xi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=xi(t).ch-t.to.ch),ve(r,n)}function _i(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new yi(Ei(i.anchor,t),Ei(i.head,t)))}return gi(e.cm,r,e.sel.primIndex)}function Ai(e,t,r){return e.line==t.line?ve(r.line,e.ch-t.ch+r.ch):ve(r.line+(e.line-t.line),e.ch)}function Di(e){e.doc.mode=kt(e.options,e.doc.modeOption),Si(e)}function Si(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ti(e,100),e.state.modeGen++,e.curOp&&Jn(e)}function Ci(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function wi(e,n,t,i){function o(e){return t?t[e]:null}function r(e,t,r){!function(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Oe(e),Be(e,r);var i=n?n(e):1;i!=e.height&&fe(e,i)}(e,t,r,i),ar(e,"change",e,n)}function s(e,t){for(var r=[],n=e;n<t;++n)r.push(new Yt(l[n],o(n),i));return r}var a=n.from,u=n.to,l=n.text,c=ue(e,a.line),f=ue(e,u.line),p=X(l),d=o(l.length-1),h=u.line-a.line;if(n.full)e.insert(0,s(0,l.length)),e.remove(l.length,e.size-l.length);else if(Ci(e,n)){var m=s(0,l.length-1);r(f,f.text,d),h&&e.remove(a.line,h),m.length&&e.insert(a.line,m)}else if(c==f)if(1==l.length)r(c,c.text.slice(0,a.ch)+p+c.text.slice(u.ch),d);else{var v=s(1,l.length-1);v.push(new Yt(p+c.text.slice(u.ch),d,i)),r(c,c.text.slice(0,a.ch)+l[0],o(0)),e.insert(a.line+1,v)}else if(1==l.length)r(c,c.text.slice(0,a.ch)+l[0]+f.text.slice(u.ch),o(0)),e.remove(a.line+1,h);else{r(c,c.text.slice(0,a.ch)+l[0],o(0)),r(f,p+f.text.slice(u.ch),d);var y=s(1,l.length-1);1<h&&e.remove(a.line+1,h-1),e.insert(a.line+1,y)}ar(e,"change",e,n)}function ki(e,a,u){!function e(t,r,n){if(t.linked)for(var i=0;i<t.linked.length;++i){var o=t.linked[i];if(o.doc!=r){var s=n&&o.sharedHist;u&&!s||(a(o.doc,s),e(o.doc,t,s))}}}(e,null,!0)}function Fi(e,t){if(t.cm)throw new Error("This document is already in use.");on((e.doc=t).cm=e),Di(e),Ti(e),e.options.lineWrapping||Xe(e),e.options.mode=t.modeOption,Jn(e)}function Ti(e){("rtl"==e.doc.direction?B:C)(e.display.lineDiv,"CodeMirror-rtl")}function Pi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Oi(e,t){var r={from:be(t.from),to:xi(t),text:le(e,t.from,t.to)};return Ii(e,r,t.from.line,t.to.line+1),ki(e,function(e){return Ii(e,r,t.from.line,t.to.line+1)},!0),r}function Bi(e){for(;e.length;){if(!X(e).ranges)break;e.pop()}}function ji(e,t,r,n){var i=e.history;i.undone.length=0;var o,s,a,u=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(a=i).lastOp==n?(Bi(a.done),X(a.done)):a.done.length&&!X(a.done).ranges?X(a.done):1<a.done.length&&!a.done[a.done.length-2].ranges?(a.done.pop(),X(a.done)):void 0))s=X(o.changes),0==ye(t.from,t.to)&&0==ye(t.from,s.to)?s.to=xi(t):o.changes.push(Oi(e,t));else{var l=X(i.done);for(l&&l.ranges||Ni(e.sel,i.done),o={changes:[Oi(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(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=u,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,s||it(e,"historyAdded")}function Mi(e,t,r,n){var i,o,s,a,u,l=e.history,c=n&&n.origin;r==l.lastSelOp||c&&l.lastSelOrigin==c&&(l.lastModTime==l.lastSelTime&&l.lastOrigin==c||(i=e,o=c,s=X(l.done),a=t,"*"==(u=o.charAt(0))||"+"==u&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?l.done[l.done.length-1]=t:Ni(t,l.done),l.lastSelTime=+new Date,l.lastSelOrigin=c,l.lastSelOp=r,n&&!1!==n.clearRedo&&Bi(l.undone)}function Ni(e,t){var r=X(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Ii(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,n),function(e){e.markedSpans&&((i||(i=r["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Li(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Ri(e,t){var r=function(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Li(r[i]));return n}(e,t),n=Te(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],s=n[i];if(o&&s)e:for(var a=0;a<s.length;++a){for(var u=s[a],l=0;l<o.length;++l)if(o[l].marker==u.marker)continue e;o.push(u)}else s&&(r[i]=s)}return r}function Vi(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?vi.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];n.push({changes:a});for(var u=0;u<s.length;++u){var l=s[u],c=void 0;if(a.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&-1<V(t,Number(c[1]))&&(X(a)[f]=l[f],delete l[f])}}}return n}function Ui(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ye(t,i)<0;o!=ye(r,i)<0?(i=t,t=r):o!=ye(t,r)<0&&(t=r)}return new yi(i,t)}return new yi(r||t,t)}function Wi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Yi(e,
gitextract_1mnwgimr/ ├── .eslintrc ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── _assets/ │ ├── demoit.app.psd │ ├── demoit.psd │ └── layouts.psd ├── dist/ │ ├── demoit.js │ ├── index.html │ ├── resources/ │ │ ├── editor.js │ │ ├── lodash@4.16.0.js │ │ ├── marked@0.3.6.js │ │ ├── react-16.7.0-alpha.0.js │ │ ├── react-dom.16.7.0-alpha.0.js │ │ ├── regenerator-runtime.js │ │ ├── state-example.json │ │ ├── state-example2.json │ │ └── vue@2.5.17.js │ ├── sandbox.html │ └── styles.css ├── package.json ├── samples/ │ ├── Canvas.json │ ├── HTML+CSS.json │ ├── React.json │ ├── Vue.json │ └── index.html ├── scripts/ │ └── zipit.js ├── src/ │ ├── css/ │ │ ├── codemirror.css │ │ ├── dark_theme.css │ │ ├── la.css │ │ ├── light_theme.css │ │ └── styles.css │ ├── index.html │ ├── js/ │ │ ├── __tests__/ │ │ │ └── commitDiff.spec.js │ │ ├── annotate.js │ │ ├── console.js │ │ ├── constants.js │ │ ├── dependencies.js │ │ ├── download.js │ │ ├── editor.js │ │ ├── execute.js │ │ ├── index.js │ │ ├── layout.js │ │ ├── output.js │ │ ├── popups/ │ │ │ ├── confirmPopUp.js │ │ │ ├── editFilePopUp.js │ │ │ ├── editNamePopUp.js │ │ │ ├── newFilePopUp.js │ │ │ ├── popup.js │ │ │ └── settingsPopUp.js │ │ ├── providers/ │ │ │ └── api.js │ │ ├── settings.js │ │ ├── state.js │ │ ├── statusBar.js │ │ ├── story/ │ │ │ ├── codeMirror.js │ │ │ ├── getTitleFromCommitMessage.js │ │ │ ├── index.js │ │ │ ├── renderCommits.js │ │ │ ├── renderDiffs.js │ │ │ ├── renderGraph.js │ │ │ └── setAnnotationLink.js │ │ ├── storyPreview.js │ │ ├── storyReadOnly.js │ │ └── utils/ │ │ ├── cleanUpMarkdown.js │ │ ├── codeMirrorCommands.js │ │ ├── commitDiff.js │ │ ├── element.js │ │ ├── executeCSS.js │ │ ├── icons.js │ │ ├── index.js │ │ ├── localStorage.js │ │ ├── setTheme.js │ │ ├── svg.js │ │ └── transpile.js │ ├── js-vendor/ │ │ ├── babel-plugin-transform-es2015-modules-commonjs@6.26.2.js │ │ ├── babel-polyfill@6.26.0.js │ │ ├── closebrackets.js │ │ ├── codemirror.js │ │ ├── colorize.js │ │ ├── comment.js │ │ ├── css.js │ │ ├── deep-diff.js │ │ ├── gfm.js │ │ ├── htmlmixed.js │ │ ├── javascript.js │ │ ├── jsx.js │ │ ├── mark-selection.js │ │ ├── markdown.js │ │ ├── match-highlighter.js │ │ ├── matchbrackets.js │ │ ├── overlay.js │ │ ├── runmode.js │ │ ├── search_cursor.js │ │ ├── split.js │ │ └── xml.js │ ├── resources/ │ │ ├── lodash@4.16.0.js │ │ ├── marked@0.3.6.js │ │ ├── react-16.7.0-alpha.0.js │ │ ├── react-dom.16.7.0-alpha.0.js │ │ ├── regenerator-runtime.js │ │ ├── state-example.json │ │ ├── state-example2.json │ │ └── vue@2.5.17.js │ └── sandbox.html ├── webpack.config.js └── webpack.config.prod.js
Showing preview only (377K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (4337 symbols across 68 files)
FILE: dist/demoit.js
function C (line 1) | function C(e,t,n,r){var o=s(u,t,n,r);Object.keys(o).forEach(function(t){...
function E (line 1) | function E(){return l.map(function(t){return t.size})}
function j (line 1) | function j(t){return"touches"in t?t.touches[0][e]:t[e]}
function S (line 1) | function S(t){var e=l[this.a],n=l[this.b],r=e.size+n.size;e.size=t/this....
function q (line 1) | function q(){var t=l[this.a].element,e=l[this.b].element,n=t[F](),r=e[F]...
function O (line 1) | function O(i){var a=function(t){if(!getComputedStyle)return null;var e=g...
function A (line 1) | function A(t){var e=t.i===M.length,n=e?M[t.i-1]:M[t.i];q.call(n);var r=e...
function T (line 1) | function T(t){var i=O(t);i.forEach(function(t,e){if(0<e){var n=M[e-1],r=...
function I (line 1) | function I(n,r){M.forEach(function(e){if(!0!==r?e.parent.removeChild(e.g...
function o (line 1) | function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{...
function c (line 1) | function c(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return vo...
function o (line 1) | function o(t){c(r,e,n,o,i,"next",t)}
function i (line 1) | function i(t){c(r,e,n,o,i,"throw",t)}
function x (line 1) | function x(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Thresho...
function k (line 1) | function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 1) | function n(t){for(var e="",n=0,r=-1,o=a.length;r<t.length-1;){-1==(r=t.i...
function o (line 1) | function o(t,e,n){for(var r,o,i,a,s=t.substring(n,n+Math.floor(t.length/...
function e (line 1) | function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt...
function n (line 1) | function n(t,e){var n=t/o.length,r=Math.abs(i-e);return a.Match_Distance...
function l (line 1) | function l(){return document.getElementById("svg-canvas")}
function f (line 1) | function f(t,e,n,r){var o=l(),i=document.createElementNS("http://www.w3....
function l (line 1) | function l(t){return{name:t,elements:[]}}
function f (line 1) | function f(e,t,n,r){return t.map(function(t){var e=o("A");return i(e,"da...
function h (line 1) | function h(){var n;return d((n=o("DIV"),c.forEach(function(t){var e=o("A...
function d (line 1) | function d(t){for(t=t||function e(n,t){var r=o("DIV");return i(r,"class"...
function p (line 1) | function p(){a.forEach(function(t){return t(u)})}
function g (line 1) | function g(){h().then(function(t){u=l(t),d(),p()})}
function t (line 1) | function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="nex...
function b (line 1) | function b(t,e,n,r){var i,a,s,c,o=e&&e.prototype instanceof x?e:x,u=Obje...
function w (line 1) | function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){ret...
function x (line 1) | function x(){}
function k (line 1) | function k(){}
function _ (line 1) | function _(){}
function C (line 1) | function C(t){["next","throw","return"].forEach(function(e){t[e]=functio...
function E (line 1) | function E(c){var e;this._invoke=function(n,r){function t(){return new P...
function j (line 1) | function j(t,e){var n=t.iterator[e.method];if(n===c){if(e.delegate=null,...
function S (line 1) | function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.f...
function q (line 1) | function q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.comp...
function O (line 1) | function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.r...
function M (line 1) | function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==type...
function A (line 1) | function A(){return{value:c,done:!0}}
function q (line 1) | function q(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[...
function a (line 1) | function a(t){return window.location.href.match(t)}
function p (line 1) | function p(t){return Babel.transform(t,d).code}
function x (line 1) | function x(e,t){var o=[],i=0;try{var a=t.findIndex(function(t){return S(...
function k (line 1) | function k(){var e,r,o,i,a,s=q.withFallback(".console"),c=!0,u=function(...
function A (line 1) | function A(t,e,n){return T.apply(this,arguments)}
function T (line 1) | function T(){return(T=y()(v.a.mark(function t(e,n,r){var o,i,a;return v....
function F (line 1) | function F(t){return B.apply(this,arguments)}
function B (line 1) | function B(){return(B=y()(v.a.mark(function t(e){var n;return v.a.wrap(f...
function $ (line 1) | function $(t){var e="";t=t.toString();for(var n=0;n<t.length;n++){var r=...
function tt (line 1) | function tt(t,e){return et.apply(this,arguments)}
function et (line 1) | function et(){return(et=y()(v.a.mark(function t(n,r){var e,o,i,a,s,c,u,l...
function nt (line 1) | function nt(t,e,n,r,o,i,a){R(CodeMirror);var s=CodeMirror(t.e,{value:n||...
function wt (line 1) | function wt(){return(wt=y()(v.a.mark(function t(e){var n,s,i,c,a,r,o,u,l...
function Dt (line 1) | function Dt(r){var e=q.fromString('<div class="popup"></div>'),t=q.withR...
function Bt (line 1) | function Bt(s,c,u,l,f){Dt({title:"Edit",content:'\n <input name="fi...
function Jt (line 1) | function Jt(t){return Vt.apply(this,arguments)}
function Vt (line 1) | function Vt(){return(Vt=y()(v.a.mark(function t(e){var n,r=arguments;ret...
function $t (line 1) | function $t(t){return Kt.apply(this,arguments)}
function Kt (line 1) | function Kt(){return(Kt=y()(v.a.mark(function t(e){return v.a.wrap(funct...
function Yt (line 1) | function Yt(p,g,m){return function(t){return i=p,o=y()(v.a.mark(function...
function ne (line 1) | function ne(d,p,g,m,v,y,b){var w=q.withRelaxedCleanup(".status-bar"),x=q...
function ie (line 1) | function ie(t,e,i){Dt({title:t,content:'\n <p class="mb3">'.concat(...
function ae (line 1) | function ae(t){return function(t,e){(e=e||{}).listUnicodeChar=!!e.hasOwn...
function se (line 1) | function se(t){var e="",n="";switch(t[0]){case"E":e="edit",n=t[2].html;b...
function fe (line 1) | function fe(n,r){setTimeout(function(){Object(ce.empty)(),O&&console.log...
function he (line 1) | function he(t){return q.exists("#c"+t)?q("#c"+t).e.getBoundingClientRect...
function de (line 1) | function de(b,w){var x,k=q.withFallback(".story"),_=b.git(),C=null,E=!1,...
function pe (line 1) | function pe(t,s){var u=q.withFallback(".read-only"),l=t.git();if(u.found...
function c (line 1) | function c(){return t.apply(this,arguments)}
function t (line 1) | function t(){return(t=y()(v.a.mark(function t(){var r,o,e,n,i,a;return v...
FILE: dist/resources/editor.js
function D (line 1) | function D(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}
function w (line 1) | function w(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firs...
function k (line 1) | function k(e,t){return w(e).appendChild(t)}
function T (line 1) | function T(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r...
function F (line 1) | function F(e,t,r,n){var i=T(e,t,r,n);return i.setAttribute("role","prese...
function P (line 1) | function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.c...
function O (line 1) | function O(){var t;try{t=document.activeElement}catch(e){t=document.body...
function B (line 1) | function B(e,t){var r=e.className;D(t).test(r)||(e.className+=(r?" ":"")...
function j (line 1) | function j(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!D(r[n])...
function N (line 1) | function N(e){var t=Array.prototype.slice.call(arguments,1);return funct...
function I (line 1) | function I(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&...
function L (line 1) | function L(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.len...
function V (line 1) | function V(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}
function K (line 1) | function K(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e...
function z (line 1) | function z(e){for(;Y.length<=e;)Y.push(X(Y)+" ");return Y[e]}
function X (line 1) | function X(e){return e[e.length-1]}
function J (line 1) | function J(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}
function $ (line 1) | function $(){}
function Q (line 1) | function Q(e,t){var r;return r=Object.create?Object.create(e):($.prototy...
function ee (line 1) | function ee(e){return/\w/.test(e)||""<e&&(e.toUpperCase()!=e.toLowerCas...
function te (line 1) | function te(e,t){return t?!!(-1<t.source.indexOf("\\w")&&ee(e))||t.test(...
function re (line 1) | function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;retu...
function ie (line 1) | function ie(e){return 768<=e.charCodeAt(0)&&ne.test(e)}
function oe (line 1) | function oe(e,t,r){for(;(r<0?0<t:t<e.length)&&ie(e.charAt(t));)t+=r;retu...
function se (line 1) | function se(e,t,r){for(var n=r<t?-1:1;;){if(t==r)return t;var i=(t+r)/2,...
function ae (line 1) | function ae(e,t,r){var n=this;this.input=r,n.scrollbarFiller=T("div",nul...
function ue (line 1) | function ue(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is ...
function le (line 1) | function le(e,r,n){var i=[],o=r.line;return e.iter(r.line,n.line+1,funct...
function ce (line 1) | function ce(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)...
function fe (line 1) | function fe(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height...
function pe (line 1) | function pe(e){if(null==e.parent)return null;for(var t=e.parent,r=V(t.li...
function de (line 1) | function de(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n)...
function he (line 1) | function he(e,t){return t>=e.first&&t<e.first+e.size}
function me (line 1) | function me(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}
function ve (line 1) | function ve(e,t,r){if(void 0===r&&(r=null),!(this instanceof ve))return ...
function ye (line 1) | function ye(e,t){return e.line-t.line||e.ch-t.ch}
function ge (line 1) | function ge(e,t){return e.sticky==t.sticky&&0==ye(e,t)}
function be (line 1) | function be(e){return ve(e.line,e.ch)}
function xe (line 1) | function xe(e,t){return ye(e,t)<0?t:e}
function Ee (line 1) | function Ee(e,t){return ye(e,t)<0?e:t}
function _e (line 1) | function _e(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}
function Ae (line 1) | function Ae(e,t){if(t.line<e.first)return ve(e.first,0);var r,n,i,o=e.fi...
function De (line 1) | function De(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=Ae(e,t[n]);return r}
function we (line 1) | function we(e,t,r){this.marker=e,this.from=t,this.to=r}
function ke (line 1) | function ke(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker...
function Fe (line 1) | function Fe(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(...
function Te (line 1) | function Te(e,t){if(t.full)return null;var r=he(e,t.from.line)&&ue(e,t.f...
function Pe (line 1) | function Pe(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.fr...
function Oe (line 1) | function Oe(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r]...
function Be (line 1) | function Be(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine...
function je (line 1) | function je(e){return e.inclusiveLeft?-1:0}
function Me (line 1) | function Me(e){return e.inclusiveRight?1:0}
function Ne (line 1) | function Ne(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;va...
function Ie (line 1) | function Ie(e,t){var r,n=Ce&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n...
function Le (line 1) | function Le(e){return Ie(e,!0)}
function Re (line 1) | function Re(e){return Ie(e,!1)}
function Ve (line 1) | function Ve(e,t){var r,n=Ce&&e.markedSpans;if(n)for(var i=0;i<n.length;+...
function Ue (line 1) | function Ue(e,t,r,n,i){var o=ue(e,t),s=Ce&&o.markedSpans;if(s)for(var a=...
function We (line 1) | function We(e){for(var t;t=Le(e);)e=t.find(-1,!0).line;return e}
function Ge (line 1) | function Ge(e,t){var r=ue(e,t),n=We(r);return r==n?t:pe(n)}
function He (line 1) | function He(e,t){if(t>e.lastLine())return t;var r,n=ue(e,t);if(!qe(e,n))...
function qe (line 1) | function qe(e,t){var r=Ce&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.l...
function Ke (line 1) | function Ke(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return Ke(e,...
function Ye (line 1) | function Ye(e){for(var t=0,r=(e=We(e)).parent,n=0;n<r.lines.length;++n){...
function ze (line 1) | function ze(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=L...
function Xe (line 1) | function Xe(e){var r=e.display,t=e.doc;r.maxLine=ue(t,t.first),r.maxLine...
function $e (line 1) | function $e(e,t,r){var n;Je=null;for(var i=0;i<e.length;++i){var o=e[i];...
function H (line 1) | function H(e,t,r){this.level=e,this.from=t,this.to=r}
function Ze (line 1) | function Ze(e,t){var r=e.order;return null==r&&(r=e.order=Qe(e.text,t)),r}
function rt (line 1) | function rt(e,t){return e._handlers&&e._handlers[t]||et}
function nt (line 1) | function nt(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1...
function it (line 1) | function it(e,t){var r=rt(e,t);if(r.length)for(var n=Array.prototype.sli...
function ot (line 1) | function ot(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:f...
function st (line 1) | function st(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(va...
function at (line 1) | function at(e,t){return 0<rt(e,t).length}
function ut (line 1) | function ut(e){e.prototype.on=function(e,t){tt(this,e,t)},e.prototype.of...
function lt (line 1) | function lt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}
function ct (line 1) | function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}
function ft (line 1) | function ft(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.r...
function pt (line 1) | function pt(e){lt(e),ct(e)}
function dt (line 1) | function dt(e){return e.target||e.srcElement}
function ht (line 1) | function ht(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?...
function gt (line 1) | function gt(e){if(null==mt){var t=T("span","");k(e,T("span",[t,document...
function bt (line 1) | function bt(e){if(null!=vt)return vt;var t=k(e,document.createTextNode("...
function wt (line 1) | function wt(e){if("string"==typeof e&&Ct.hasOwnProperty(e))e=Ct[e];else ...
function kt (line 1) | function kt(e,t){t=wt(t);var r=St[t.name];if(!r)return kt(e,"text/plain"...
function Tt (line 1) | function Tt(e,t){I(t,Ft.hasOwnProperty(e)?Ft[e]:Ft[e]={})}
function Pt (line 1) | function Pt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t)...
function Ot (line 1) | function Ot(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t...
function Bt (line 1) | function Bt(e,t,r){return!e.startState||e.startState(t,r)}
function It (line 1) | function It(t,r,n,e){var u=[t.state.modeGen],i={};Kt(t,r.text,t.doc.mode...
function Lt (line 1) | function Lt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Rt(...
function Rt (line 1) | function Rt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return ...
function Vt (line 1) | function Vt(e,t,r,n){var i=e.doc.mode,o=new jt(t,e.options.tabSize,r);fo...
function Ut (line 1) | function Ut(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){va...
function Wt (line 1) | function Wt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Ot(e,r).mode);var o=...
function Ht (line 1) | function Ht(e,t,r,n){var i,o,s=e.doc,a=s.mode,u=ue(s,(t=Ae(s,t)).line),l...
function qt (line 1) | function qt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)...
function Kt (line 1) | function Kt(e,t,r,n,i,o,s){var a=r.flattenSpans;null==a&&(a=e.options.fl...
function Jt (line 1) | function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass...
function $t (line 1) | function $t(e,t){var r=F("span",null,null,b?"padding-right: .1px":null),...
function Qt (line 1) | function Qt(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"...
function Zt (line 1) | function Zt(e,t,r,n,i,o,s){if(t){var a,u=e.splitSpaces?function(e,t){if(...
function er (line 1) | function er(f,p){return function(e,t,r,n,i,o,s){r=r?r+" cm-force-border"...
function tr (line 1) | function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,...
function rr (line 1) | function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var s,a,u,l...
function nr (line 1) | function nr(e,t,r){this.line=t,this.rest=function(e){for(var t,r;t=Re(e)...
function ir (line 1) | function ir(e,t,r){for(var n,i=[],o=t;o<r;o=n){var s=new nr(e.doc,ue(e.d...
function ar (line 1) | function ar(e,t){var r=rt(e,t);if(r.length){var n,i=Array.prototype.slic...
function ur (line 1) | function ur(){var e=sr;sr=null;for(var t=0;t<e.length;++t)e[t]()}
function lr (line 1) | function lr(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes...
function cr (line 1) | function cr(e){return e.node==e.text&&(e.node=T("div",null,null,"positio...
function fr (line 1) | function fr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.li...
function pr (line 1) | function pr(e,t){var r=t.text.className,n=fr(e,t);t.text==t.node&&(t.nod...
function dr (line 1) | function dr(e,t){!function(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bg...
function hr (line 1) | function hr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter...
function mr (line 1) | function mr(e,t,r){t.alignable&&(t.alignable=null);for(var n=t.node.firs...
function vr (line 1) | function vr(e,t,r){if(yr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.le...
function yr (line 1) | function yr(e,t,r,n,i){if(t.widgets)for(var o=cr(r),s=0,a=t.widgets;s<a....
function gr (line 1) | function gr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).pus...
function br (line 1) | function br(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)re...
function xr (line 1) | function xr(e,t){for(var r=dt(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r...
function Er (line 1) | function Er(e){return e.lineSpace.offsetTop}
function _r (line 1) | function _r(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}
function Ar (line 1) | function Ar(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.mea...
function Dr (line 1) | function Dr(e){return U-e.display.nativeBarWidth}
function Sr (line 1) | function Sr(e){return e.display.scroller.clientWidth-Dr(e)-e.display.bar...
function Cr (line 1) | function Cr(e){return e.display.scroller.clientHeight-Dr(e)-e.display.ba...
function wr (line 1) | function wr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure...
function kr (line 1) | function kr(e,t,r,n){return Pr(e,Tr(e,t),r,n)}
function Fr (line 1) | function Fr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.d...
function Tr (line 1) | function Tr(e,t){var r=pe(t),n=Fr(e,r);n&&!n.text?n=null:n&&n.changes&&(...
function Pr (line 1) | function Pr(e,t,r,n,i){t.before&&(r=-1);var o,s=r+(n||"");return t.cache...
function jr (line 1) | function jr(e,t,r){for(var n,i,o,s,a,u,l=0;l<e.length;l+=3)if(a=e[l],u=e...
function Mr (line 1) | function Mr(e,t){var r=Br;if("left"==t)for(var n=0;n<e.length&&(r=e[n])....
function Nr (line 1) | function Nr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,...
function Ir (line 1) | function Ir(e){e.display.externalMeasure=null,w(e.display.lineMeasure);f...
function Lr (line 1) | function Lr(e){Ir(e),e.display.cachedCharWidth=e.display.cachedTextHeigh...
function Rr (line 1) | function Rr(){return s&&f?-(document.body.getBoundingClientRect().left-p...
function Vr (line 1) | function Vr(){return s&&f?-(document.body.getBoundingClientRect().top-pa...
function Ur (line 1) | function Ur(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e...
function Wr (line 1) | function Wr(e,t,r,n,i){if(!i){var o=Ur(t);r.top+=o,r.bottom+=o}if("line"...
function Gr (line 1) | function Gr(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==...
function Hr (line 1) | function Hr(e,t,r,n,i){return n||(n=ue(e.doc,t.line)),Wr(e,n,kr(e,n,t.ch...
function qr (line 1) | function qr(n,e,i,o,s,a){function u(e,t){var r=Pr(n,s,e,t?"right":"left"...
function Kr (line 1) | function Kr(e,t){var r=0;t=Ae(e.doc,t),e.options.lineWrapping||(r=en(e.d...
function Yr (line 1) | function Yr(e,t,r,n,i){var o=ve(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}
function zr (line 1) | function zr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Yr(...
function Xr (line 1) | function Xr(t,e,r,n){n-=Ur(e);var i=e.text.length,o=se(function(e){retur...
function Jr (line 1) | function Jr(e,t,r,n){return r||(r=Tr(e,t)),Xr(e,t,r,Wr(e,t,Pr(e,r,n),"li...
function $r (line 1) | function $r(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}
function Qr (line 1) | function Qr(r,e,t,n,i){i-=Ye(e);var o=Tr(r,e),s=Ur(e),a=0,u=e.text.lengt...
function Zr (line 1) | function Zr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(...
function en (line 1) | function en(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t...
function tn (line 1) | function tn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t....
function rn (line 1) | function rn(e){return e.scroller.getBoundingClientRect().left-e.sizer.ge...
function nn (line 1) | function nn(n){var i=Zr(n.display),o=n.options.lineWrapping,s=o&&Math.ma...
function on (line 1) | function on(e){var t=e.doc,r=nn(e);t.iter(function(e){var t=r(e);t!=e.he...
function sn (line 1) | function sn(e,t,r,n){var i=e.display;if(!r&&"true"==dt(t).getAttribute("...
function an (line 1) | function an(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.vie...
function un (line 1) | function un(e){e.display.input.showSelection(e.display.input.prepareSele...
function ln (line 1) | function ln(e,t){void 0===t&&(t=!0);for(var r=e.doc,n={},i=n.cursors=doc...
function cn (line 1) | function cn(e,t,r){var n=qr(e,t,"div",null,null,!e.options.singleCursorH...
function fn (line 1) | function fn(e,t){return e.top-t.top||e.left-t.left}
function pn (line 1) | function pn(s,e,t){var r=s.display,n=s.doc,i=document.createDocumentFrag...
function dn (line 1) | function dn(e){if(e.state.focused){var t=e.display;clearInterval(t.blink...
function hn (line 1) | function hn(e){e.state.focused||(e.display.input.focus(),vn(e))}
function mn (line 1) | function mn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.stat...
function vn (line 1) | function vn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!...
function yn (line 1) | function yn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(it(e,"blu...
function gn (line 1) | function gn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.le...
function bn (line 1) | function bn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e....
function xn (line 1) | function xn(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scr...
function En (line 1) | function En(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.fir...
function _n (line 1) | function _n(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=me(e.opt...
function An (line 1) | function An(e,t){var r=e.display,n=Zr(e.display);t.top<0&&(t.top=0);var ...
function Dn (line 1) | function Dn(e,t){null!=t&&(wn(e),e.curOp.scrollTop=(null==e.curOp.scroll...
function Sn (line 1) | function Sn(e){wn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:...
function Cn (line 1) | function Cn(e,t,r){null==t&&null==r||wn(e),null!=t&&(e.curOp.scrollLeft=...
function wn (line 1) | function wn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,kn...
function kn (line 1) | function kn(e,t,r,n){var i=An(e,{left:Math.min(t.left,r.left),top:Math.m...
function Fn (line 1) | function Fn(e,t){Math.abs(e.doc.scrollTop-t)<2||(m||si(e,{top:t}),Tn(e,t...
function Tn (line 1) | function Tn(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display....
function Pn (line 1) | function Pn(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.displ...
function On (line 1) | function On(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.do...
function Mn (line 1) | function Mn(e,t){t||(t=On(e));var r=e.display.barWidth,n=e.display.barHe...
function Nn (line 1) | function Nn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style....
function Ln (line 1) | function Ln(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.dis...
function Vn (line 1) | function Vn(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.heig...
function Un (line 1) | function Un(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try...
function Wn (line 1) | function Wn(e){var t,r,n=e.cm,i=n.display;!(r=(t=n).display).scrollbarsC...
function Gn (line 1) | function Gn(e){var t=e.cm,r=t.display;e.updatedDisplay&&gn(t),e.barMeasu...
function Hn (line 1) | function Hn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style....
function qn (line 1) | function qn(e){var t=e.cm,r=t.display,n=t.doc;(e.updatedDisplay&&oi(t,e....
function Kn (line 1) | function Kn(e,t){if(e.curOp)return t();Vn(e);try{return t()}finally{Un(e)}}
function Yn (line 1) | function Yn(e,t){return function(){if(e.curOp)return t.apply(e,arguments...
function zn (line 1) | function zn(e){return function(){if(this.curOp)return e.apply(this,argum...
function Xn (line 1) | function Xn(t){return function(){var e=this.cm;if(!e||e.curOp)return t.a...
function Jn (line 1) | function Jn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e....
function $n (line 1) | function $n(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.ex...
function Qn (line 1) | function Qn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display...
function Zn (line 1) | function Zn(e,t,r,n){var i,o=an(e,t),s=e.display.view;if(!Ce||r==e.doc.f...
function ei (line 1) | function ei(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[...
function ti (line 1) | function ti(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highl...
function ri (line 1) | function ri(u){var l=u.doc;if(!(l.highlightFrontier>=u.display.viewTo)){...
function ii (line 1) | function ii(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Qn(e...
function oi (line 1) | function oi(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t...
function si (line 1) | function si(e,t){var r=new ni(e,t);if(ii(e,r)){gn(e),oi(e,r);var n=On(e)...
function ai (line 1) | function ai(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style...
function ui (line 1) | function ui(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.disp...
function li (line 1) | function li(e){var t=e.display.gutters,r=e.options.gutters;w(t);for(var ...
function ci (line 1) | function ci(e){var t=V(e.gutters,"CodeMirror-linenumbers");-1==t&&e.line...
function di (line 1) | function di(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.det...
function hi (line 1) | function hi(e){var t=di(e);return t.x*=pi,t.y*=pi,t}
function mi (line 1) | function mi(e,t){var r=di(t),n=r.x,i=r.y,o=e.display,s=o.scroller,a=s.sc...
function gi (line 1) | function gi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(f...
function bi (line 1) | function bi(e,t){return new vi([new yi(e,t||e)],0)}
function xi (line 1) | function xi(e){return e.text?ve(e.from.line+e.text.length-1,X(e.text).le...
function Ei (line 1) | function Ei(e,t){if(ye(e,t.from)<0)return e;if(ye(e,t.to)<=0)return xi(t...
function _i (line 1) | function _i(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel...
function Ai (line 1) | function Ai(e,t,r){return e.line==t.line?ve(r.line,e.ch-t.ch+r.ch):ve(r....
function Di (line 1) | function Di(e){e.doc.mode=kt(e.options,e.doc.modeOption),Si(e)}
function Si (line 1) | function Si(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),...
function Ci (line 1) | function Ci(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm|...
function wi (line 1) | function wi(e,n,t,i){function o(e){return t?t[e]:null}function r(e,t,r){...
function ki (line 1) | function ki(e,a,u){!function e(t,r,n){if(t.linked)for(var i=0;i<t.linked...
function Fi (line 1) | function Fi(e,t){if(t.cm)throw new Error("This document is already in us...
function Ti (line 1) | function Ti(e){("rtl"==e.doc.direction?B:C)(e.display.lineDiv,"CodeMirro...
function Pi (line 1) | function Pi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastM...
function Oi (line 1) | function Oi(e,t){var r={from:be(t.from),to:xi(t),text:le(e,t.from,t.to)}...
function Bi (line 1) | function Bi(e){for(;e.length;){if(!X(e).ranges)break;e.pop()}}
function ji (line 1) | function ji(e,t,r,n){var i=e.history;i.undone.length=0;var o,s,a,u=+new ...
function Mi (line 1) | function Mi(e,t,r,n){var i,o,s,a,u,l=e.history,c=n&&n.origin;r==l.lastSe...
function Ni (line 1) | function Ni(e,t){var r=X(t);r&&r.ranges&&r.equals(e)||t.push(e)}
function Ii (line 1) | function Ii(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,...
function Li (line 1) | function Li(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marke...
function Ri (line 1) | function Ri(e,t){var r=function(e,t){var r=t["spans_"+e.id];if(!r)return...
function Vi (line 1) | function Vi(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.rang...
function Ui (line 1) | function Ui(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ye(t,i)<0;o!=ye(r,...
function Wi (line 1) | function Wi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend))...
function Gi (line 1) | function Gi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o...
function Hi (line 1) | function Hi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,Yi(e,gi(e.cm,i,e...
function qi (line 1) | function qi(e,t,r,n){Yi(e,bi(t,r),n)}
function Ki (line 1) | function Ki(e,t,r){var n=e.history.done,i=X(n);i&&i.ranges?zi(e,n[n.leng...
function Yi (line 1) | function Yi(e,t,r){zi(e,t,r),Mi(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}
function zi (line 1) | function zi(e,t,r){var n,i,o,s;(at(e,"beforeSelectionChange")||e.cm&&at(...
function Xi (line 1) | function Xi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput...
function Ji (line 1) | function Ji(e){Xi(e,$i(e,e.sel,null,!1))}
function $i (line 1) | function $i(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var s=t.ranges...
function Qi (line 1) | function Qi(e,t,r,n,i){var o=ue(e,t.line);if(o.markedSpans)for(var s=0;s...
function Zi (line 1) | function Zi(e,t,r,n,i){var o=n||1,s=Qi(e,t,r,o,i)||!i&&Qi(e,t,r,o,!0)||Q...
function eo (line 1) | function eo(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?Ae(e,ve(t.line-1...
function to (line 1) | function to(e){e.setSelection(ve(e.firstLine(),0),ve(e.lastLine()),G)}
function ro (line 1) | function ro(i,e,t){var o={canceled:!1,from:e.from,to:e.to,text:e.text,or...
function no (line 1) | function no(e,t,r){if(e.cm){if(!e.cm.curOp)return Yn(e.cm,no)(e,t,r);if(...
function io (line 1) | function io(e,r){if(1!=r.text.length||""!=r.text[0]||0!=ye(r.from,r.to))...
function oo (line 1) | function oo(i,o,e){var t=i.cm&&i.cm.state.suppressEdits;if(!t||e){for(va...
function so (line 1) | function so(e,t){if(0!=t&&(e.first+=t,e.sel=new vi(J(e.sel.ranges,functi...
function ao (line 1) | function ao(e,t,r,n){if(e.cm&&!e.cm.curOp)return Yn(e.cm,ao)(e,t,r,n);if...
function uo (line 1) | function uo(e,t,r,n,i){var o;n||(n=r),ye(n,r)<0&&(r=(o=[n,r])[0],n=o[1])...
function lo (line 1) | function lo(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}
function co (line 1) | function co(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],s=!0;if(o.ra...
function fo (line 1) | function fo(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;c...
function po (line 1) | function po(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=ue(e,_e(e,t)...
function ho (line 1) | function ho(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;...
function mo (line 1) | function mo(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i...
function yo (line 1) | function yo(e,t,r){Ye(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&...
function xo (line 1) | function xo(t,n,i,e,r){if(e&&e.shared)return function(e,r,n,i,o){(i=I(i)...
function _o (line 1) | function _o(e){return e.findMarks(ve(e.first,0),e.clipPos(ve(e.lastLine(...
function Ao (line 1) | function Ao(o){for(var e=function(e){var t=o[e],r=[t.primary.doc];ki(t.p...
function wo (line 1) | function wo(e){var i=this;if(ko(i),!ot(i,e)&&!xr(i.display,e)){lt(e),E&&...
function ko (line 1) | function ko(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e....
function Fo (line 1) | function Fo(e){if(document.getElementsByClassName)for(var t=document.get...
function Po (line 1) | function Po(){var e;To||(tt(window,"resize",function(){null==e&&(e=setTi...
function Oo (line 1) | function Oo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.ca...
function Lo (line 1) | function Lo(e){var t,r,n,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var s...
function Ro (line 1) | function Ro(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r...
function Vo (line 1) | function Vo(e,t,r,n){var i=(t=Ho(t)).call?t.call(e,n):t[e];if(!1===i)ret...
function Uo (line 1) | function Uo(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t|...
function Wo (line 1) | function Wo(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(g?t....
function Go (line 1) | function Go(e,t){if(v&&34==e.keyCode&&e.char)return!1;var r=Bo[e.keyCode...
function Ho (line 1) | function Ho(e){return"string"==typeof e?Io[e]:e}
function qo (line 1) | function qo(t,e){for(var r=t.doc.sel.ranges,n=[],i=0;i<r.length;i++){for...
function Ko (line 1) | function Ko(e,t,r){var n=oe(e.text,t+r,r);return n<0||n>e.text.length?nu...
function Yo (line 1) | function Yo(e,t,r){var n=Ko(e,t.ch,r);return null==n?null:new ve(t.line,...
function zo (line 1) | function zo(e,t,r,n,i){if(e){var o=Ze(r,t.doc.direction);if(o){var s,a=i...
function Jo (line 1) | function Jo(e,t){var r=ue(e.doc,t),n=We(r);return n!=r&&(t=pe(n)),zo(!0,...
function $o (line 1) | function $o(e,t){var r=Jo(e,t.line),n=ue(e.doc,r.line),i=Ze(n,e.doc.dire...
function Qo (line 1) | function Qo(e,t,r){if("string"==typeof t&&!(t=Xo[t]))return!1;e.display....
function es (line 1) | function es(e,t,r,n){var i=e.state.keySeq;if(i){if(Uo(t))return"handled"...
function ts (line 1) | function ts(e,t,r,n){var i=function(e,t,r){for(var n=0;n<e.state.keyMaps...
function rs (line 1) | function rs(t,e){var r=Go(e,!0);return!!r&&(e.shiftKey&&!t.state.keySeq?...
function is (line 1) | function is(e){var t=this;if(t.curOp.focus=O(),!ot(t,e)){E&&_<11&&27==e....
function os (line 1) | function os(e){16==e.keyCode&&(this.doc.sel.shift=!1),ot(this,e)}
function ss (line 1) | function ss(e){var t=this;if(!(xr(t.display,e)||ot(t,e)||e.ctrlKey&&!e.a...
function cs (line 1) | function cs(e){var t=this,r=t.display;if(!(ot(t,e)||r.activeTouch&&r.inp...
function fs (line 1) | function fs(e,t,r){if("char"==r)return new yi(t,t);if("word"==r)return e...
function ps (line 1) | function ps(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.tou...
function ds (line 1) | function ds(e,t){return ps(e,t,"gutterClick",!0)}
function hs (line 1) | function hs(e,t){var r,n;xr(e.display,t)||(n=t,at(r=e,"gutterContextMenu...
function ms (line 1) | function ms(e){e.display.wrapper.className=e.display.wrapper.className.r...
function bs (line 1) | function bs(e){li(e),Jn(e),En(e)}
function xs (line 1) | function xs(e,t,r){if(!t!=!(r&&r!=vs)){var n=e.display.dragFunctions,i=t...
function Es (line 1) | function Es(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-w...
function _s (line 1) | function _s(e,t){var r=this;if(!(this instanceof _s))return new _s(e,t);...
function Ds (line 1) | function Ds(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mod...
function Cs (line 1) | function Cs(e){Ss=e}
function ws (line 1) | function ws(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var s...
function ks (line 1) | function ks(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");...
function Fs (line 1) | function Fs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(v...
function Ts (line 1) | function Ts(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var ...
function Ps (line 1) | function Ps(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("aut...
function Os (line 1) | function Os(){var e=T("textarea",null,null,"position: absolute; bottom: ...
function Bs (line 1) | function Bs(n,i,o,e,s){var t=i,r=o,a=ue(n,i.line);function u(e){var t,r;...
function js (line 1) | function js(e,t,r,n){var i,o,s=e.doc,a=t.left;if("page"==n){var u=Math.m...
function Ns (line 1) | function Ns(e,t){var r=Fr(e,t.line);if(!r||r.hidden)return null;var n=ue...
function Is (line 1) | function Is(e,t){return t&&(e.bad=!0),e}
function Ls (line 1) | function Ls(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineD...
function Rs (line 1) | function Rs(l,e,t){var r=l.text.firstChild,n=!1;if(!e||!P(r,e))return Is...
function r (line 1) | function r(e){if(!ot(a,e)){if(a.somethingSelected())Cs({lineWise:!1,text...
function h (line 1) | function h(){f&&(r+=p,d&&(r+=p),f=d=!1)}
function m (line 1) | function m(e){e&&(h(),r+=e)}
function v (line 1) | function v(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(t)ret...
function o (line 1) | function o(e){if(!ot(n,e)){if(n.somethingSelected())Cs({lineWise:!1,text...
function p (line 1) | function p(){if(null!=o.selectionStart){var e=n.somethingSelected(),t="...
function d (line 1) | function d(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=u,o.styl...
function e (line 1) | function e(e,t,n,r){i.defaults[e]=t,n&&(o[e]=r?function(e,t,r){r!=vs&&n(...
function n (line 1) | function n(){t.value=a.getValue()}
function e (line 1) | function e(e){return{type:e,style:"keyword"}}
function v (line 1) | function v(e,t,r){return n=e,i=r,t}
function y (line 1) | function y(e,t){var i,r=e.next();if('"'==r||"'"==r)return t.tokenize=(i=...
function g (line 1) | function g(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=y;b...
function b (line 1) | function b(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"=...
function o (line 1) | function o(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf...
function _ (line 1) | function _(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.p...
function A (line 1) | function A(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;f...
function S (line 1) | function S(){for(var e=arguments.length-1;0<=e;e--)D.cc.push(arguments[e])}
function C (line 1) | function C(){return S.apply(null,arguments),!0}
function w (line 1) | function w(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}
function r (line 1) | function r(e){var t=D.state;if(D.marked="def",t.context)if("var"==t.lexi...
function k (line 1) | function k(e){return"public"==e||"private"==e||"protected"==e||"abstract...
function F (line 1) | function F(e,t,r){this.prev=e,this.vars=t,this.block=r}
function T (line 1) | function T(e,t){this.name=e,this.next=t}
function P (line 1) | function P(){D.state.context=new F(D.state.context,D.state.localVars,!1)...
function O (line 1) | function O(){D.state.context=new F(D.state.context,D.state.localVars,!0)...
function B (line 1) | function B(){D.state.localVars=D.state.context.vars,D.state.context=D.st...
function j (line 1) | function j(n,i){var e=function(){var e=D.state,t=e.indented;if("stat"==e...
function M (line 1) | function M(){var e=D.state;e.lexical.prev&&(")"==e.lexical.type&&(e.inde...
function N (line 1) | function N(r){return function e(t){return t==r?C():";"==r||"}"==t||")"==...
function I (line 1) | function I(e,t){return"var"==e?C(j("vardef",t),ye,N(";"),M):"keyword a"=...
function L (line 1) | function L(e){if("("==e)return C(Te,N(")"))}
function R (line 1) | function R(e,t){return W(e,t,!1)}
function V (line 1) | function V(e,t){return W(e,t,!0)}
function U (line 1) | function U(e){return"("!=e?S():C(j(")"),R,N(")"),M)}
function W (line 1) | function W(e,t,r){if(D.state.fatArrowAt==D.stream.start){var n=r?X:z;if(...
function G (line 1) | function G(e){return e.match(/[;\}\)\],]/)?S():S(R)}
function H (line 1) | function H(e,t){return","==e?C(R):q(e,t,!1)}
function q (line 1) | function q(e,t,r){var n=0==r?H:q,i=0==r?R:V;return"=>"==e?C(P,r?X:z,B):"...
function K (line 1) | function K(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?C(K):C(R,Y)}
function Y (line 1) | function Y(e){if("}"==e)return D.marked="string-2",D.state.tokenize=b,C(K)}
function z (line 1) | function z(e){return o(D.stream,D.state),S("{"==e?I:R)}
function X (line 1) | function X(e){return o(D.stream,D.state),S("{"==e?I:V)}
function J (line 1) | function J(e,t){if("target"==t)return D.marked="keyword",C(H)}
function $ (line 1) | function $(e,t){if("target"==t)return D.marked="keyword",C(q)}
function Q (line 1) | function Q(e){return":"==e?C(M,I):S(H,N(";"),M)}
function Z (line 1) | function Z(e){if("variable"==e)return D.marked="property",C()}
function ee (line 1) | function ee(e,t){if("async"==e)return D.marked="property",C(ee);if("vari...
function te (line 1) | function te(e){return"variable"!=e?S(re):(D.marked="property",C(Fe))}
function re (line 1) | function re(e){return":"==e?C(V):"("==e?S(Fe):void 0}
function ne (line 1) | function ne(n,i,o){function s(e,t){if(o?-1<o.indexOf(e):","==e){var r=D....
function ie (line 1) | function ie(e,t,r){for(var n=3;n<arguments.length;n++)D.cc.push(argument...
function oe (line 1) | function oe(e){return"}"==e?C():S(I,oe)}
function se (line 1) | function se(e,t){if(l){if(":"==e)return C(le);if("?"==t)return C(se)}}
function ae (line 1) | function ae(e){if(l&&":"==e)return D.stream.match(/^\s*\w+\s+is\b/,!1)?C...
function ue (line 1) | function ue(e,t){if("is"==t)return D.marked="keyword",C()}
function le (line 1) | function le(e,t){return"keyof"==t||"typeof"==t?(D.marked="keyword",C("ke...
function ce (line 1) | function ce(e){if("=>"==e)return C(le)}
function fe (line 1) | function fe(e,t){return"variable"==e||"keyword"==D.style?(D.marked="prop...
function pe (line 1) | function pe(e,t){return"variable"==e&&D.stream.match(/^\s*[?:]/,!1)||"?"...
function de (line 1) | function de(e,t){return"<"==t?C(j(">"),ne(le,">"),M,de):"|"==t||"."==e||...
function he (line 1) | function he(e,t){if("<"==t)return C(j(">"),ne(le,">"),M,de)}
function me (line 1) | function me(){return S(le,ve)}
function ve (line 1) | function ve(e,t){if("="==t)return C(le)}
function ye (line 1) | function ye(e,t){return"enum"==t?(D.marked="keyword",C(He)):S(ge,se,Ee,_e)}
function ge (line 1) | function ge(e,t){return l&&k(t)?(D.marked="keyword",C(ge)):"variable"==e...
function be (line 1) | function be(e,t){return"variable"!=e||D.stream.match(/^\s*:/,!1)?("varia...
function xe (line 1) | function xe(){return S(ge,Ee)}
function Ee (line 1) | function Ee(e,t){if("="==t)return C(V)}
function _e (line 1) | function _e(e){if(","==e)return C(ye)}
function Ae (line 1) | function Ae(e,t){if("keyword b"==e&&"else"==t)return C(j("form","else"),...
function De (line 1) | function De(e,t){return"await"==t?C(De):"("==e?C(j(")"),Se,N(")"),M):voi...
function Se (line 1) | function Se(e){return"var"==e?C(ye,N(";"),we):";"==e?C(we):"variable"==e...
function Ce (line 1) | function Ce(e,t){return"in"==t||"of"==t?(D.marked="keyword",C(R)):C(H,we)}
function we (line 1) | function we(e,t){return";"==e?C(ke):"in"==t||"of"==t?(D.marked="keyword"...
function ke (line 1) | function ke(e){")"!=e&&C(R)}
function Fe (line 1) | function Fe(e,t){return"*"==t?(D.marked="keyword",C(Fe)):"variable"==e?(...
function Te (line 1) | function Te(e,t){return"@"==t&&C(R,Te),"spread"==e?C(Te):l&&k(t)?(D.mark...
function Pe (line 1) | function Pe(e,t){return"variable"==e?Oe(e,t):Be(e,t)}
function Oe (line 1) | function Oe(e,t){if("variable"==e)return r(t),C(Be)}
function Be (line 1) | function Be(e,t){return"<"==t?C(j(">"),ne(me,">"),M,Be):"extends"==t||"i...
function je (line 1) | function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t...
function Me (line 1) | function Me(e,t){return"?"==t?C(Me):":"==e?C(le,Ee):"="==t?C(V):S(Fe)}
function Ne (line 1) | function Ne(e,t){return"*"==t?(D.marked="keyword",C(We,N(";"))):"default...
function Ie (line 1) | function Ie(e,t){return"as"==t?(D.marked="keyword",C(N("variable"))):"va...
function Le (line 1) | function Le(e){return"string"==e?C():"("==e?S(R):S(Re,Ve,We)}
function Re (line 1) | function Re(e,t){return"{"==e?ie(Re,"}"):("variable"==e&&r(t),"*"==t&&(D...
function Ve (line 1) | function Ve(e){if(","==e)return C(Re,Ve)}
function Ue (line 1) | function Ue(e,t){if("as"==t)return D.marked="keyword",C(Re)}
function We (line 1) | function We(e,t){if("from"==t)return D.marked="keyword",C(R)}
function Ge (line 1) | function Ge(e){return"]"==e?C():S(ne(V,"]"))}
function He (line 1) | function He(){return S(j("form"),ge,N("{"),j("}"),ne(qe,"}"),M,M)}
function qe (line 1) | function qe(){return S(ge,Ee)}
function Ke (line 1) | function Ke(e,t,r){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]...
function l (line 1) | function l(t,r){function e(e){return(r.tokenize=e)(t,r)}var n=t.next();r...
function c (line 1) | function c(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.to...
function i (line 1) | function i(r,n){return function(e,t){for(;!e.eol();){if(e.match(n)){t.to...
function f (line 1) | function f(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.inden...
function p (line 1) | function p(e){e.context&&(e.context=e.context.prev)}
function d (line 1) | function d(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName...
function h (line 1) | function h(e,t,r){return"openTag"==e?(r.tagStart=t.column(),m):"closeTag...
function m (line 1) | function m(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",b):u.al...
function v (line 1) | function v(e,t,r){if("word"!=e)return u.allowMissingTagName&&"endTag"==e...
function y (line 1) | function y(e,t,r){return"endTag"!=e?(o="error",y):(p(r),h)}
function g (line 1) | function g(e,t,r){return o="error",y(e,0,r)}
function b (line 1) | function b(e,t,r){if("word"==e)return o="attribute",x;if("endTag"!=e&&"s...
function x (line 1) | function x(e,t,r){return"equals"==e?E:(u.allowMissing||(o="error"),b(e,0...
function E (line 1) | function E(e,t,r){return"string"==e?_:"word"==e&&u.allowUnquoted?(o="str...
function _ (line 1) | function _(e,t,r){return"string"==e?_:b(e,0,r)}
function h (line 1) | function h(e,t,r,n){this.state=e,this.mode=t,this.depth=r,this.prev=n}
function f (line 1) | function f(e){var t=e.tagName;e.tagName=null;var r=l.indent(e,"");return...
function p (line 1) | function p(e,t){return t.context.mode==l?function(e,t,r){if(2==r.depth)r...
function o (line 1) | function o(e){e.state.markedSelection&&e.operation(function(){!function(...
function s (line 1) | function s(e){e.state.markedSelection&&e.state.markedSelection.length&&e...
function a (line 1) | function a(e,t,r,n){if(0!=h(t,r))for(var i=e.state.markedSelection,o=e.s...
function u (line 1) | function u(e){for(var t=e.state.markedSelection,r=0;r<t.length;++r)t[r]....
function l (line 1) | function l(e){u(e);for(var t=e.listSelections(),r=0;r<t.length;r++)a(e,t...
function y (line 1) | function y(e){return e&&e.bracketRegex||/[(){}[\]]/}
function f (line 1) | function f(e,t,r){var n=e.getLineHandle(t.line),i=t.ch-1,o=r&&r.afterCur...
function p (line 1) | function p(e,t,r,n,i){for(var o=i&&i.maxScanLineLength||1e4,s=i&&i.maxSc...
function t (line 1) | function t(e,t,r){for(var n=e.state.matchBrackets.maxHighlightLineLength...
function i (line 1) | function i(e){e.operation(function(){e.state.matchBrackets.currentlyHigh...
function p (line 1) | function p(e){var t=e.search(w);return-1==t?0:t}
function F (line 1) | function F(e,t){var r=e.getMode();return!1!==r.useInnerComments&&r.inner...
function h (line 1) | function h(e,t){for(var r,n,i=null!=(n=(r=e).flags)?n:(r.ignoreCase?"i":...
function m (line 1) | function m(e,t,r){t=h(t,"g");for(var n=r.line,i=r.ch,o=e.lastLine();n<=o...
function v (line 1) | function v(e,t){for(var r,n=0;;){t.lastIndex=n;var i=t.exec(e);if(!i)ret...
function x (line 1) | function x(e,t,r,n){if(e.length==t.length)return r;for(var i=0,o=r+Math....
function n (line 1) | function n(r,n,e,t){var i;this.atOccurrence=!1,this.doc=r,e=e?r.clipPos(...
function C (line 1) | function C(e,t,r){return t.f=t.inline=r,r(e,t)}
function w (line 1) | function w(e,t,r){return t.f=t.block=r,r(e,t)}
function n (line 1) | function n(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.st...
function s (line 1) | function s(e,t){var r,n=e.column()===t.indentation,i=!(r=t.prevLine.stre...
function k (line 1) | function k(e,t){var r=_.token(e,t.htmlState);if(!i){var n=M.innerMode(_,...
function F (line 1) | function F(e,t){var r,n=t.listStack[t.listStack.length-1]||0,i=t.indenta...
function T (line 1) | function T(e){var t=[];if(e.formatting){t.push(A.formatting),"string"==t...
function t (line 1) | function t(e,t){if(e.match(r,!0))return T(t)}
function P (line 1) | function P(e,t){var r=t.text(e,t);if(void 0!==r)return r;if(t.list)retur...
function O (line 1) | function O(e,t){if(">"!==e.next())return e.match(/^[^>]+/,!0),A.linkInli...
function B (line 1) | function B(e,t){if(e.eatSpace())return null;var i,r=e.next();return"("==...
function j (line 1) | function j(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=a,e.next(),...
function a (line 1) | function a(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=u,E.highlightFormatt...
function u (line 1) | function u(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0==...
function u (line 1) | function u(e,t){if(3==e.nodeType)return t.push(e.nodeValue);for(var r=e....
function A (line 1) | function A(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof ...
function n (line 1) | function n(e){for(var t=0;t<e.length;t++){var r=e.charAt(t),n="'"+r+"'";...
function o (line 1) | function o(t){return function(e){return function(i,e){var t=D(i);if(!t||...
function D (line 1) | function D(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getMo...
function a (line 1) | function a(e,t){var r=e.getRange(_(t.line,t.ch-1),_(t.line,t.ch+1));retu...
function o (line 1) | function o(e){for(var t in this.options={},r)this.options[t]=(e&&e.hasOw...
function s (line 1) | function s(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&n...
function a (line 1) | function a(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,n(e,...
function n (line 1) | function n(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){...
function c (line 1) | function c(e,t,r,n){var i,o,s,a=e.state.matchHighlighter;if(e.addOverlay...
function f (line 1) | function f(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay...
function u (line 1) | function u(l){l.operation(function(){var e=l.state.matchHighlighter;if(f...
function e (line 1) | function e(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;r...
function x (line 1) | function x(e,t){return n=t,e}
function E (line 1) | function E(i){return function(e,t){for(var r,n=!1;null!=(r=e.next());){i...
function _ (line 1) | function _(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null...
function A (line 1) | function A(e,t,r){this.type=e,this.indent=t,this.prev=r}
function D (line 1) | function D(e,t,r,n){return e.context=new A(r,t.indentation()+(!1===n?0:o...
function S (line 1) | function S(e){return e.context.prev&&(e.context=e.context.prev),e.contex...
function C (line 1) | function C(e,t,r){return F[r.context.type](e,t,r)}
function w (line 1) | function w(e,t,r,n){for(var i=n||1;0<i;i--)r.context=r.context.prev;retu...
function k (line 1) | function k(e){var t=e.current().toLowerCase();i=v.hasOwnProperty(t)?"ato...
function x (line 1) | function x(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.toke...
function m (line 1) | function m(e,t){var r,n=e.match(o[r=t]||(o[r]=new RegExp("\\s+"+r+"\\s*=...
function v (line 1) | function v(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}
function s (line 1) | function s(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],o=i.leng...
function d (line 1) | function d(e,t){var r,n=f.token(e,t.htmlState),i=/\btag\b/.test(n);if(i&...
function t (line 1) | function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constr...
function r (line 1) | function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0...
function x (line 1) | function x(e,t,r){x.super_.call(this,"E",e),Object.defineProperty(this,"...
function E (line 1) | function E(e,t){E.super_.call(this,"N",e),Object.defineProperty(this,"rh...
function _ (line 1) | function _(e,t){_.super_.call(this,"D",e),Object.defineProperty(this,"lh...
function A (line 1) | function A(e,t,r){A.super_.call(this,"A",e),Object.defineProperty(this,"...
function a (line 1) | function a(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?...
function D (line 1) | function D(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null==...
function u (line 1) | function u(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r+...
function S (line 1) | function S(e){var t=0,r=D(e);if("array"===r){e.forEach(function(e){t+=S(...
function C (line 1) | function C(e,t,r,n,i,o,s,a){r=r||[],s=s||[];var u=(i=i||[]).slice(0);if(...
function l (line 1) | function l(e,t,r,n,i){var o=[];if(C(e,t,o,n,null,null,null,i),r)for(var ...
function n (line 1) | function n(e,t,r,n){var i=n?function(e){e&&n.push(e)}:void 0,o=l(e,t,i,r...
function i (line 1) | function i(e,t,r){if(void 0===r&&t&&~s.indexOf(t.kind)&&(r=t),e&&r&&r.ki...
function n (line 1) | function n(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,lo...
function n (line 1) | function n(e,t){return m(t)&&"string"==typeof t[0]?e.hasOwnProperty(t[0]...
function i (line 1) | function i(e){var t=(e.presets||[]).map(function(e){var t=n(y,e);if(!t)t...
function o (line 1) | function o(e,t){return d.transform(e,i(t))}
function s (line 1) | function s(e,t){v.hasOwnProperty(e)&&console.warn('A plugin named "'+e+'...
function a (line 1) | function a(t){Object.keys(t).forEach(function(e){return s(e,t[e])})}
function u (line 1) | function u(e,t){y.hasOwnProperty(e)&&console.warn('A preset named "'+e+'...
function l (line 1) | function l(t){Object.keys(t).forEach(function(e){return u(e,t[e])})}
function c (line 1) | function c(e){(0,h.runScripts)(o,e)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(r){var n=F["is"+r];n||(n=F["is"+r]=function(e,t){return F.is(...
function o (line 1) | function o(e,t){if(e===t)return!0;if(F.ALIAS_KEYS[t])return!1;var r=F.FL...
function p (line 1) | function p(e,t,r){if(e){var n=F.NODE_FIELDS[e.type];if(n){var i=n[t];i&&...
function s (line 1) | function s(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e...
function a (line 1) | function a(e,t){c("trailingComments",e,t)}
function u (line 1) | function u(e,t){c("leadingComments",e,t)}
function l (line 1) | function l(e,t){c("innerComments",e,t)}
function c (line 1) | function c(e,t,r){t&&r&&(t[e]=(0,C.default)([].concat(t[e],r[e]).filter(...
function f (line 1) | function f(e){return!(!e||!w.VISITOR_KEYS[e.type])}
function d (line 1) | function d(e,t,r){if(e){var n=F.VISITOR_KEYS[e.type];if(n){t(e,r=r||{});...
function h (line 1) | function h(e,t){var r=(t=t||{}).preserveComments?O:B,n=Array.isArray(r),...
function e (line 1) | function e(){if(arguments.length>f.length)throw new Error("t."+c+": Too ...
function e (line 1) | function e(e){return function(){return console.trace("The node type "+t+...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e,t,r,n,i){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.t...
function s (line 1) | function s(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}
function r (line 1) | function r(){throw new Error("setTimeout has not been defined")}
function n (line 1) | function n(){throw new Error("clearTimeout has not been defined")}
function i (line 1) | function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&s...
function o (line 1) | function o(){h&&p&&(h=!1,p.length?d=p.concat(d):m=-1,d.length&&s())}
function s (line 1) | function s(){if(!h){var e=i(o);h=!0;for(var t=d.length;t;){for(p=d,d=[];...
function a (line 1) | function a(e,t){this.fun=e,this.array=t}
function u (line 1) | function u(){}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e....
function s (line 1) | function s(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.leng...
function r (line 1) | function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-...
function o (line 1) | function o(e){return e.map(function(t){if(null!=t&&t.inspect)return t.in...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function c (line 1) | function c(e){return Array.isArray(e)?"array":null===e?"null":void 0===e...
function f (line 1) | function f(n){function e(e,t,r){if(c(r)!==n)throw new TypeError("Propert...
function e (line 1) | function e(e,t,r){if(Array.isArray(r))for(var n=0;n<r.length;n++)i(e,t+"...
function e (line 1) | function e(e,t,r){if(n.indexOf(r)<0)throw new TypeError("Property "+t+" ...
function e (line 1) | function e(e,t,r){var n=!1,i=l,o=Array.isArray(i),s=0;for(i=o?i:(0,p.def...
function e (line 1) | function e(e,t,r){var n=!1,i=l,o=Array.isArray(i),s=0;for(i=o?i:(0,p.def...
function e (line 1) | function e(){var e=i,t=Array.isArray(e),r=0;for(e=t?e:(0,p.default)(e);;...
function e (line 1) | function e(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function t (line 1) | function t(e){return e&&e.__esModule?e:{default:e}}
function f (line 1) | function f(e){(0,r.default)(this,f),this.resolvedConfigs=[],this.options...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function p (line 1) | function p(e,t){(0,s.default)(this,p),this.parent=t,this.hub=e,this.cont...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function t (line 1) | function t(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0...
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function s (line 1) | function s(e){var t=n[e];return null==t?n[e]=p.default.existsSync(e):t}
function t (line 1) | function t(e){(0,r.default)(this,t),this.resolvedConfigs=[],this.configs...
function l (line 1) | function l(e){var t=e.match(i);return t?{scheme:t[1],auth:t[2],host:t[3]...
function c (line 1) | function c(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth...
function o (line 1) | function o(e){var t=e,r=l(e);if(r){if(!r.path)return e;t=r.path}for(var ...
function t (line 1) | function t(e){return e}
function r (line 1) | function r(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.ch...
function n (line 1) | function n(e,t){return e===t?0:t<e?1:-1}
function o (line 1) | function o(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Ma...
function s (line 1) | function s(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Bu...
function a (line 1) | function a(e){return Object.prototype.toString.call(e)}
function u (line 1) | function u(e){return!s(e)&&"function"==typeof t.ArrayBuffer&&("function"...
function l (line 1) | function l(e){if(y.isFunction(e)){if(r)return e.name;var t=e.toString()....
function c (line 1) | function c(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}
function f (line 1) | function f(e){if(r||!y.isFunction(e))return y.inspect(e);var t=l(e);retu...
function p (line 1) | function p(e,t,r,n,i){throw new b.AssertionError({message:r,actual:e,exp...
function e (line 1) | function e(e,t){e||p(e,!0,t,"==",b.ok)}
function d (line 1) | function d(e,t,r,n){if(e===t)return!0;if(s(e)&&s(t))return 0===o(e,t);if...
function h (line 1) | function h(e){return"[object Arguments]"==Object.prototype.toString.call...
function m (line 1) | function m(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototyp...
function n (line 1) | function n(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e,t){(0,o.default)(this,i);var r=(0,s.default)(this,n.call(th...
function n (line 1) | function n(e,t){var r=t.get(e),n=Array.isArray(r),i=0;for(r=n?r:(0,c.def...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function h (line 1) | function h(e){return!(!v.isVariableDeclaration(e)||!e[v.BLOCK_SCOPED_SYM...
function m (line 1) | function m(e,t,r,n){var i=4<arguments.length&&void 0!==arguments[4]&&arg...
function i (line 1) | function i(e){return v.isVariableDeclaration(e,{kind:"var"})&&!h(e)}
function o (line 1) | function o(e,t,r,n,i){(0,u.default)(this,o),this.parent=r,this.scope=n,t...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function f (line 1) | function f(e){return C.isObjectProperty(e)?e.value:C.isObjectMethod(e)?C...
function p (line 1) | function p(e,t,r){"get"===t.kind&&"set"===t.kind?d(e,t):r.push(C.express...
function d (line 1) | function d(e,t){var r=(e.objId,e.body),n=e.getMutatorId,i=e.scope,o=!t.c...
function D (line 1) | function D(e){var t=e.computedProps,r=Array.isArray(t),n=0;for(t=r?t:(0,...
function S (line 1) | function S(e){var t=e.objId,r=e.body,n=e.computedProps,i=e.state,o=n,s=A...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function F (line 1) | function F(e){var t=e.declarations,r=Array.isArray(t),n=0;for(t=r?t:(0,O...
function d (line 1) | function d(e){var t=e.elements,r=Array.isArray(t),n=0;for(t=r?t:(0,O.def...
function t (line 1) | function t(e){(0,i.default)(this,t),this.blockHoist=e.blockHoist,this.op...
function u (line 1) | function u(e){var t=e.node,r=e.scope,n=[],i=t.right;if(!m.isIdentifier(i...
function l (line 1) | function l(e,t){var r=e.node,n=e.scope,i=e.parent,o=r.left,s=void 0,a=vo...
function c (line 1) | function c(e,t){var r=e.node,n=e.scope,i=e.parent,o=r.left,s=void 0,a=n....
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e,t){var r=h[e];if(r)return r;var n=o.scope.generateUidIdenti...
function t (line 1) | function t(e,t,r){var n=e[t]||[];e[t]=n.concat(r)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function f (line 1) | function f(e){for(var t=0;t<e.length;t++)if(d.isSpreadElement(e[t]))retu...
function p (line 1) | function p(e,t,r){function n(){o.length&&(i.push(d.arrayExpression(o)),o...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function m (line 1) | function m(e){return y.isLiteral(e)&&"string"==typeof e.value}
function v (line 1) | function v(e,t){return y.binaryExpression("+",e,t)}
function n (line 1) | function n(){t.path=new a.default}
function i (line 1) | function i(){t.scope=new a.default}
function r (line 1) | function r(t){return t=t.split(" "),function(e){return 0<=t.indexOf(e)}}
function n (line 1) | function n(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)retu...
function a (line 1) | function a(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?170...
function s (line 1) | function s(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<12...
function o (line 1) | function o(e){return 10===e||13===e||8232===e||8233===e}
function u (line 1) | function u(e){return e<=65535?String.fromCharCode(e):String.fromCharCode...
function i (line 1) | function i(e,t,r,n){return e.type=t,e.end=r,e.loc.end=n,this.processComm...
function c (line 1) | function c(e){return e[e.length-1]}
function f (line 1) | function f(e){return e&&"Property"===e.type&&"init"===e.kind&&!1===e.met...
function l (line 1) | function l(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"=...
function n (line 1) | function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function n (line 1) | function n(e,t){return A(this,n),S(this,r.call(this,e,{beforeExpr:!0,bin...
function i (line 1) | function i(){A(this,i)}
function r (line 1) | function r(e,t){A(this,r),this.state=new L,this.state.init(e,t)}
function i (line 1) | function i(e,t){A(this,i),e=function(e){var t={};for(var r in E)t[r]=e&&...
function n (line 1) | function n(e,t,r){A(this,n),this.type="",this.start=e,this.end=0,this.lo...
function n (line 1) | function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function n (line 1) | function n(e){var t=this.__data__=new i(e);this.size=t.size}
function a (line 1) | function a(e,t){var r={seen:[],stylize:s};return 3<=arguments.length&&(r...
function o (line 1) | function o(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"[...
function s (line 1) | function s(e,t){return e}
function v (line 1) | function v(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==T.ins...
function y (line 1) | function y(e){return"["+Error.prototype.toString.call(e)+"]"}
function g (line 1) | function g(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(...
function b (line 1) | function b(e){return Array.isArray(e)}
function x (line 1) | function x(e){return"boolean"==typeof e}
function E (line 1) | function E(e){return null===e}
function _ (line 1) | function _(e){return"number"==typeof e}
function A (line 1) | function A(e){return"string"==typeof e}
function D (line 1) | function D(e){return void 0===e}
function S (line 1) | function S(e){return u(e)&&"[object RegExp]"===t(e)}
function u (line 1) | function u(e){return"object"===(void 0===e?"undefined":l(e))&&null!==e}
function C (line 1) | function C(e){return u(e)&&"[object Date]"===t(e)}
function w (line 1) | function w(e){return u(e)&&("[object Error]"===t(e)||e instanceof Error)}
function k (line 1) | function k(e){return"function"==typeof e}
function t (line 1) | function t(e){return Object.prototype.toString.call(e)}
function r (line 1) | function r(e){return e<10?"0"+e.toString(10):e.toString(10)}
function F (line 1) | function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function t (line 1) | function t(){(0,o.default)(this,t);var e=(0,s.default)(this,r.call(this)...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t){(0,i.default)(this,r),this.filename=t,this.file=e}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e,t){var r=t||i.EXTENSIONS,n=h.default.extname(e);return(0,c....
function o (line 1) | function o(e){return e?Array.isArray(e)?e:"string"==typeof e?e.split(","...
function f (line 1) | function f(e,t){return"function"==typeof e?e(t):e.test(t)}
function n (line 1) | function n(e){this.token("..."),this.print(e.argument,e)}
function i (line 1) | function i(e){var t=e.properties;this.token("{"),this.printInnerComments...
function o (line 1) | function o(e){var t=e.elements,r=t.length;this.token("["),this.printInne...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){if(!e.isCallExpression())return!1;if(!e.get("callee").isId...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e,t){if((0,a.default)(this,n),t&&t.block===e.node)return t;va...
function n (line 1) | function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function n (line 1) | function n(e){return r(i(e))}
function i (line 1) | function i(e){return o[e]||function(){throw new Error("Cannot find modul...
function n (line 1) | function n(e){return r(i(e))}
function i (line 1) | function i(e){return o[e]||function(){throw new Error("Cannot find modul...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function v (line 1) | function v(o,e){return e.replace(i.default,function(){for(var e=argument...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function u (line 1) | function u(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function n (line 1) | function n(e,t,r){(0,l.default)(this,n),this._generator=new o(e,t,r)}
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e){function t(e,i){var o=r[e];r[e]=o?function(e,t,r){var n=o(...
function s (line 1) | function s(e,t,r,n){var i=e[t.type];return i?i(t,r,n):null}
function a (line 1) | function a(e,t,r){if(!e)return 0;m.isExpressionStatement(e)&&(e=e.expres...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(r){var n=h.objectExpression([]);return(0,s.default)(r).forEac...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function p (line 1) | function p(e){return h.isMemberExpression(e)&&h.isSuper(e.object)}
function o (line 1) | function o(e,t){var r=t?e:h.memberExpression(e,h.identifier("prototype")...
function r (line 1) | function r(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){var t=s.default[e];if(!t)throw new ReferenceError("Unknown...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e,t,r){var n=[],i=e.node.decorators;if(i){e.node.decorators=n...
function i (line 1) | function i(e){if(e.isClass()){if(e.node.decorators)return!0;var t=e.node...
function o (line 1) | function o(e){throw e.buildCodeFrameError('Decorators are not officially...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t){(0,o.default)(this,r),this.parent=e.parent,this.scope=e....
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function t (line 1) | function t(e,t){o[e]=o[e]||[],o[e].push(t)}
function r (line 1) | function r(t,e,r){var n=void 0;s.forEach(function(e){e.key===t&&(n=e)}),...
function n (line 1) | function n(e,t){return J.expressionStatement(J.callExpression(m,[J.strin...
function o (line 1) | function o(e,t){var r,n,i,o=(n=t,i=(r=e).object||r.callee.object,n.isSta...
function l (line 1) | function l(e){var t=!1;return e.traverse({RestProperty:function(){t=!0,e...
function c (line 1) | function c(e,t,r){var n=t.pop(),i=[],o=t,s=Array.isArray(o),a=0;for(o=s?...
function s (line 1) | function s(e,t,r,n){if(t.isAssignmentPattern())s(e,t.get("left"),r,n);el...
function r (line 1) | function r(){o.length&&(i.push(p.objectExpression(o)),o=[])}
function i (line 1) | function i(e,t){for(var r=t.arguments[0].properties,n=!0,i=0;i<r.length;...
function o (line 1) | function o(e){if(!e||!a.isCallExpression(e))return!1;if(!n(e.callee)&&"c...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function s (line 1) | function s(e){var t=e.existing,r=e.identifier,n=e.scope,i=e.path,o=e.kin...
function n (line 1) | function n(e,t,r){for(var n=[].concat(e),i=(0,l.default)(null);n.length;...
function e (line 1) | function e(){var e;try{e=o.storage.debug}catch(e){}return!e&&void 0!==t&...
function t (line 1) | function t(e){return e<=65535?String.fromCharCode(e):String.fromCharCode...
function n (line 1) | function n(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new i;++t<...
function s (line 1) | function s(t,r,n){if(o)try{o.call(i,t,r,{value:n})}catch(e){t[r]=n}else ...
function r (line 1) | function r(e){return e&&(s(e,"call",e.call),s(e,"apply",e.apply)),e}
function n (line 1) | function n(e){return l?l.call(i,e):(d.prototype=e||null,new d)}
function a (line 1) | function a(){do{var e=(t=p.call(f.call(h(),36),2),r=void 0,(r={})[t]=!0,...
function u (line 1) | function u(e){return n(null)}
function e (line 1) | function e(e){return c.call(e,t)||s(r=e,t,function(e,t){if(e===o)return ...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e){F.default.ok(this instanceof o),T.assertIdentifier(e),this...
function w (line 1) | function w(){return T.numericLiteral(-1)}
function s (line 1) | function s(e){return new Error("all declarations should have been transf...
function r (line 1) | function r(e){if(T.assertExpression(e),!t)return e;o.emit(e)}
function n (line 1) | function n(e,t,r){F.default.ok(!r||!e,"Ignoring the result of a child ex...
function o (line 1) | function o(){this._array=[],this._set=Object.create(null)}
function o (line 1) | function o(e){e||(e={}),this._file=m.getArg(e,"file",null),this._sourceR...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function s (line 1) | function s(e,t){var r=[],n=p.functionExpression(null,[p.identifier("glob...
function a (line 1) | function a(e,t){var r=[];return r.push(p.variableDeclaration("var",[p.va...
function u (line 1) | function u(e,t){var r=[];return r.push(p.variableDeclaration("var",[p.va...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(t,e){var r,n=t.inShadow(e);if(r=n,t.is("_forceShadow")||r){va...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(){(0,i.default)(this,e)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e,t){var r=2<arguments.length&&void 0!==arguments[2]?argument...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function t (line 1) | function t(e){(0,i.default)(this,t),this._map=null,this._buf=[],this._la...
function r (line 1) | function r(e){this.printJoin(e.decorators,e),this.word("class"),e.id&&(t...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(){this.token(","),this.newline(),this.endsWith("\n")||this.sp...
function o (line 1) | function o(r){return function(e){if(this.word(r),e.delegate&&this.token(...
function s (line 1) | function s(e,t){var r=this.inForStatementInitCounter&&"in"===e.operator&...
function n (line 1) | function n(e){this.print(e.id,e),this.print(e.typeParameters,e)}
function i (line 1) | function i(){this.space(),this.token("&"),this.space()}
function o (line 1) | function o(e){this.token("<"),this.printList(e.params,e,{}),this.token("...
function s (line 1) | function s(){this.space(),this.token("|"),this.space()}
function n (line 1) | function n(){this.space()}
function n (line 1) | function n(e){e.async&&(this.word("async"),this.space()),this.word("func...
function n (line 1) | function n(e){if(e.declaration){var t=e.declaration;this.print(t,e),o.is...
function n (line 1) | function n(n){var i=1<arguments.length&&void 0!==arguments[1]?arguments[...
function u (line 1) | function u(){if(this.token(","),this.newline(),this.endsWith("\n"))for(v...
function l (line 1) | function l(){if(this.token(","),this.newline(),this.endsWith("\n"))for(v...
function n (line 1) | function n(e,t){return l.isArrayTypeAnnotation(t)}
function i (line 1) | function i(e,t){return l.isBinary(t)||l.isUnaryLike(t)||l.isCallExpressi...
function o (line 1) | function o(e,t){return l.isMemberExpression(t,{object:e})||l.isCallExpre...
function s (line 1) | function s(e,t){return!!(l.isUnaryLike(t)||l.isBinary(t)||l.isConditiona...
function a (line 1) | function a(e){for(var t=1<arguments.length&&void 0!==arguments[1]?argume...
function s (line 1) | function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function a (line 1) | function a(e){return u.isMemberExpression(e)?a(e.object)||a(e.property):...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(){this.token(","),this.space()}
function n (line 1) | function n(e,t,r){(0,c.default)(this,n),this.inForStatementInitCounter=0...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t){(0,s.default)(this,r),this._cachedMap=null,this._code=t,...
function t (line 1) | function t(e){(0,o.default)(this,t),this.tokens=e,this.used={}}
function a (line 1) | function a(e){return e&&e.operator===s.operator+"="}
function u (line 1) | function u(e,t){return o.assignmentExpression("=",e,t)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e){if(e.node&&!e.isPure()){var t=r.scope.generateDeclaredUidI...
function e (line 1) | function e(e){if(Array.isArray(e)&&e.length){e=e.reverse(),(0,c.default)...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function c (line 1) | function c(e,t){if(!t.applyDecoratedDescriptor){t.applyDecoratedDescript...
function n (line 1) | function n(n){var e=(n.isClass()?[n].concat(n.get("body.body")):n.get("p...
function i (line 1) | function i(a,u,e){var l=(a.scope.generateDeclaredUidIdentifier("desc"),a...
function c (line 1) | function c(e,t){return p.callExpression(t.addHelper("temporalRef"),[e,p....
function f (line 1) | function f(e,t,r){var n=r.letReferences[e.name];return!!n&&t.getBindingI...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(){(0,i.default)(this,r);var e=(0,o.default)(this,t.apply(this...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function x (line 1) | function x(e,t){if(!e.hasOwnBinding(t.name))return!0;var r=e.getOwnBindi...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function A (line 1) | function A(e,t,r){var n;n=S.isNumericLiteral(e.parent.property)?S.numeri...
function n (line 1) | function n(e,t){e.addComment("trailing",r(e,t)),e.replaceWith(i.noop())}
function r (line 1) | function r(e,t){var r=e.getSource().replace(/\*-\//g,"*-ESCAPED/").repla...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e){var t=e.left;return f.isMemberExpression(t)&&f.isLiteral(f...
function s (line 1) | function s(e,t,r){return f.expressionStatement(f.callExpression(r.addHel...
function x (line 1) | function x(e,t){return _.isJSXAttribute(e)&&_.isJSXIdentifier(e.name,{na...
function E (line 1) | function E(e){var t=e.value;return t?(_.isJSXExpressionContainer(t)&&(t=...
function u (line 1) | function u(e){var t,r=(t=e.value||c.booleanLiteral(!0),c.isJSXExpression...
function n (line 1) | function n(e,t){e.parent.children=c.react.buildChildren(e.parent);var r=...
function u (line 1) | function u(e){return e.moduleName||"babel-runtime"}
function l (line 1) | function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e,t,r,n){(0,o.default)(this,i),this.queue=null,this.parentPat...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function Z (line 1) | function Z(e){te&&(t=e,te=!1)}
function ee (line 1) | function ee(e){var t=e.node;if(o.has(t)){var r=o.get(t);return r.resolve...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function a (line 1) | function a(e,t,r){if("string"===e)return l.isStringTypeAnnotation(t);if(...
function n (line 1) | function n(e,t){var r=e.scope.getBinding(t),n=[];e.typeAnnotation=y.unio...
function d (line 1) | function d(e,r,n){var t=e.constantViolations.slice();return t.unshift(e....
function h (line 1) | function h(e,t){var r=t.node.operator,n=t.get("right").resolve(),i=t.get...
function m (line 1) | function m(e){for(var t=void 0;t=e.parentPath;){if(t.isIfStatement()||t....
function n (line 1) | function n(e){return e.typeAnnotation}
function i (line 1) | function i(){return l.genericTypeAnnotation(l.identifier("Array"))}
function o (line 1) | function o(){return i()}
function s (line 1) | function s(){return l.genericTypeAnnotation(l.identifier("Function"))}
function a (line 1) | function a(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!...
function r (line 1) | function r(e){var t=n[o];return"*"===t||e===t}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t){(0,i.default)(this,r),this.breakOnScopePaths=[],this.bin...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e,t,r){(0,i.default)(this,n),this.newName=r,this.oldName=t,th...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function l (line 1) | function l(e){if(e._exploded)return e;for(var t in e._exploded=!0,e)if(!...
function O (line 1) | function O(e){if(!e._verified){if("function"==typeof e)throw new Error(s...
function o (line 1) | function o(e,t){var r=[].concat(t),n=Array.isArray(r),i=0;for(r=n?r:(0,L...
function c (line 1) | function c(t,n,i){var o={};for(var e in t)!function(r){var e=t[r];if(!Ar...
function B (line 1) | function B(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.ex...
function j (line 1) | function j(t,r){var e=function(e){if(t.checkPath(e))return r.apply(this,...
function M (line 1) | function M(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===...
function N (line 1) | function N(e,t){for(var r in t)e[r]=[].concat(e[r]||[],t[r])}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function o (line 1) | function o(e){return e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).rep...
function f (line 1) | function f(e){for(var t={},r={},n=[],i=[],o=0;o<e.length;o++){var s=e[o]...
function i (line 1) | function i(e,t){for(var r=e.value.split(/\r\n|\n|\r/),n=0,i=0;i<r.length...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t,r){e instanceof RegExp&&(e=i(e,r)),t instanceof RegExp&&(...
function i (line 1) | function i(e,t){var r=t.match(e);return r?r[0]:null}
function o (line 1) | function o(e,t,r){var n,i,o,s,a,u=r.indexOf(e),l=r.indexOf(t,u+1),c=u;if...
function u (line 1) | function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. L...
function l (line 1) | function l(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e...
function C (line 1) | function C(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}
function n (line 1) | function n(e){return e.split(i).join("\\").split(o).join("{").split(j).j...
function w (line 1) | function w(e){if(!e)return[""];var t=[],r=B("{","}",e);if(!r)return e.sp...
function k (line 1) | function k(e){return"{"+e+"}"}
function F (line 1) | function F(e){return/^-?0\d/.test(e)}
function T (line 1) | function T(e,t){return e<=t}
function P (line 1) | function P(e,t){return t<=e}
function r (line 1) | function r(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}
function a (line 1) | function a(e,t){if(r()<t)throw new RangeError("Invalid typed array lengt...
function f (line 1) | function f(e,t,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return ...
function n (line 1) | function n(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" a...
function u (line 1) | function u(e){if("number"!=typeof e)throw new TypeError('"size" argument...
function i (line 1) | function i(e,t){if(u(t),e=a(e,t<0?0:0|s(t)),!f.TYPED_ARRAY_SUPPORT)for(v...
function o (line 1) | function o(e,t){var r=t.length<0?0:0|s(t.length);e=a(e,r);for(var n=0;n<...
function s (line 1) | function s(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer...
function l (line 1) | function l(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ...
function c (line 1) | function c(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}
function p (line 1) | function p(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=...
function d (line 1) | function d(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t...
function m (line 1) | function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(...
function v (line 1) | function v(e,t,r,n){return T(function(e){for(var t=[],r=0;r<e.length;++r...
function h (line 1) | function h(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,...
function y (line 1) | function y(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+...
function g (line 1) | function g(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+...
function b (line 1) | function b(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i...
function x (line 1) | function x(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=Str...
function E (line 1) | function E(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uin...
function _ (line 1) | function _(e,t,r,n,i,o){if(!f.isBuffer(e))throw new TypeError('"buffer" ...
function A (line 1) | function A(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r...
function D (line 1) | function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.len...
function S (line 1) | function S(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out ...
function C (line 1) | function C(e,t,r,n,i){return i||S(e,0,r,4),O.write(e,t,r,n,23,4),r+4}
function w (line 1) | function w(e,t,r,n,i){return i||S(e,0,r,8),O.write(e,t,r,n,52,8),r+8}
function k (line 1) | function k(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){i...
function F (line 1) | function F(e){return P.toByteArray(function(e){if((e=(t=e,t.trim?t.trim(...
function T (line 1) | function T(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t...
function t (line 1) | function t(e){this.enabled=e&&void 0!==e.enabled?e.enabled:s}
function r (line 1) | function r(e){var t=function e(){return function(){var e=arguments,t=e.l...
function n (line 1) | function n(e,t){(t=t||{}).isFileComment&&(e=function(e,t){var r=a.mapFil...
function r (line 1) | function r(e){function n(){if(n.enabled){var i=n,e=+new Date,t=e-(u||e);...
function t (line 1) | function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":ca...
function r (line 1) | function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?...
function r (line 1) | function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}
function n (line 1) | function n(e,t){if(t&&function(e){switch(e){case"implements":case"interf...
function i (line 1) | function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}
function o (line 1) | function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}
function s (line 1) | function s(e){var t,r,n;if(0===e.length)return!1;if(n=e.charCodeAt(0),!u...
function a (line 1) | function a(e){var t,r,n,i,o;if(0===e.length)return!1;for(o=u.isIdentifie...
function p (line 1) | function p(e){if("string"!=typeof e)return!1;if(!("a"<=(t=e[0])&&t<="z"|...
function d (line 1) | function d(e){return Array.isArray?Array.isArray(e):"[object Array]"===O...
function h (line 1) | function h(e){for(var t=0;t<b.length;t++)if(b[t]===e)throw new TypeError...
function m (line 1) | function m(e,t,r){if(!e)return"";10<e.length&&(e=e.substring(0,10));for(...
function v (line 1) | function v(e){return r.lastIndex=0,r.test(e)?'"'+e.replace(r,function(e)...
function n (line 1) | function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function r (line 1) | function r(){}
function n (line 1) | function n(o,s){if("function"!=typeof o||null!=s&&"function"!=typeof s)t...
function o (line 1) | function o(t,r){t=t||{},r=r||{};var n={};return Object.keys(r).forEach(f...
function s (line 1) | function s(e,t,r){if("string"!=typeof t)throw new TypeError("glob patter...
function i (line 1) | function i(e,t){if(!(this instanceof i))return new i(e,t);if("string"!=t...
function n (line 1) | function n(e,t){if(t||(t=this instanceof i?this.options:{}),void 0===(e=...
function r (line 1) | function r(){if(i){switch(i){case"*":s+=I,a=!0;break;case"?":s+="[^/]",a...
function o (line 1) | function o(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ce...
function t (line 1) | function t(e){return"/"===e.charAt(0)}
function r (line 1) | function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function r (line 1) | function r(e,t){a.assertVariableDeclaration(e);var r=[];return e.declara...
function n (line 1) | function n(){h.default.ok(this instanceof n)}
function i (line 1) | function i(e){n.call(this),m.assertLiteral(e),this.returnLoc=e}
function o (line 1) | function o(e,t,r){n.call(this),m.assertLiteral(e),m.assertLiteral(t),r?m...
function s (line 1) | function s(e){n.call(this),m.assertLiteral(e),this.breakLoc=e}
function a (line 1) | function a(e,t,r){n.call(this),m.assertLiteral(e),t?h.default.ok(t insta...
function u (line 1) | function u(e,t){n.call(this),m.assertLiteral(e),m.assertIdentifier(t),th...
function l (line 1) | function l(e,t){n.call(this),m.assertLiteral(e),m.assertLiteral(t),this....
function c (line 1) | function c(e,t){n.call(this),m.assertLiteral(e),m.assertIdentifier(t),th...
function f (line 1) | function f(e){h.default.ok(this instanceof f);var t=r(283).Emitter;h.def...
function n (line 1) | function n(r,n){function i(e){function t(e){return r||(Array.isArray(e)?...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function b (line 1) | function b(e){var t=e.node;return x.assertFunction(t),t.id||(t.id=e.scop...
function s (line 1) | function s(e){return b?g?p.UNICODE_IGNORE_CASE[e]:p.UNICODE[e]:p.REGULAR...
function n (line 1) | function n(e,t){for(var r in t)e[r]=t[r]}
function a (line 1) | function a(e,t){if(t){var r=o(t,"");switch(r.type){case"characterClass":...
function u (line 1) | function u(e){return t=f,r=e,!!d.call(t,r)&&f[e];var t,r}
function l (line 1) | function l(e){switch(e.type){case"dot":a(e,(b?v:y).toString());break;cas...
function n (line 1) | function n(){var e,t,r=[],n=-1,i=arguments.length;if(!i)return"";for(var...
function o (line 1) | function o(e,t){if(-1==t.indexOf("|")){if(e==t)return;throw Error("Inval...
function s (line 1) | function s(e){var t=e.type;if(s.hasOwnProperty(t)&&"function"==typeof s[...
function a (line 1) | function a(e){return o(e.type,"anchor|characterClassEscape|characterClas...
function u (line 1) | function u(e){return o(e.type,"anchor|characterClass|characterClassEscap...
function p (line 1) | function p(e){return e.raw=f.substring(e.range[0],e.range[1]),e}
function d (line 1) | function d(e,t){return e.range[0]=t,p(e)}
function h (line 1) | function h(e,t){return p({type:"anchor",kind:e,range:[M-t,M]})}
function i (line 1) | function i(e,t,r,n){return p({type:"value",kind:e,codePoint:t,range:[r,n...
function o (line 1) | function o(e,t,r,n){return n=n||0,i(e,t,M-(r.length+n),M)}
function m (line 1) | function m(e){var t,r=e[0],n=r.charCodeAt(0);return j&&1===r.length&&552...
function v (line 1) | function v(e,t,r,n){return null==n&&(r=M-1,n=M),p({type:"quantifier",min...
function y (line 1) | function y(e,t,r,n){return p({type:"characterClass",body:e,negative:t,ra...
function s (line 1) | function s(e,t,r,n){return e.codePoint>t.codePoint&&T("invalid range in ...
function g (line 1) | function g(e){return"alternative"===e.type?e.body:[e]}
function a (line 1) | function a(e){e=e||1;var t=f.substring(M,M+e);return M+=e||1,t}
function b (line 1) | function b(e){x(e)||T("character",e)}
function x (line 1) | function x(e){if(f.indexOf(e,M)===M)return a(e.length)}
function u (line 1) | function u(){return f[M]}
function E (line 1) | function E(e){return f.indexOf(e,M)===M}
function l (line 1) | function l(e){return f[M+1]===e}
function _ (line 1) | function _(e){var t=f.substring(M).match(e);return t&&(t.range=[],t.rang...
function c (line 1) | function c(){var e=[],t=M;for(e.push(r());x("|");)e.push(r());return 1==...
function r (line 1) | function r(){for(var e,t=[],r=M;e=n();)t.push(e);return 1===t.length?t[0...
function n (line 1) | function n(){if(M>=f.length||E("|")||E(")"))return null;var e=x("^")?h("...
function A (line 1) | function A(e,t,r,n){var i=null,o=M;if(x(e))i=t;else{if(!x(r))return!1;i=...
function D (line 1) | function D(e){var t,r;if(j&&"unicodeEscape"==e.kind&&55296<=(t=e.codePoi...
function S (line 1) | function S(){return C(!0)}
function C (line 1) | function C(e){var t,r=M;if(t=function(){var e,t,r;if(e=_(/^(?!0)\d+/)){t...
function w (line 1) | function w(){var e,t;return E("]")?[]:((t=F())||T("classAtom"),(e=E("]")...
function k (line 1) | function k(e){var t,r,n,i;if(!E("-")||l("]"))return(i=F())||T("classAtom...
function F (line 1) | function F(){return x("-")?m("-"):(e=_(/^[^\\\]-]/))?m(e[0]):x("\\")?((e...
function T (line 1) | function T(e,t,r,n){r=null==r?M:r,n=null==n?r:n;var i=Math.max(0,r-10),o...
function n (line 1) | function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1...
function c (line 1) | function c(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}
function f (line 1) | function f(e,t,r,n){if(r<n){var i=r-1;c(e,(u=r,l=n,Math.round(u+Math.ran...
function s (line 1) | function s(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(...
function f (line 1) | function f(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]...
function b (line 1) | function b(){this.generatedLine=0,this.generatedColumn=0,this.source=nul...
function n (line 1) | function n(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]...
function f (line 1) | function f(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=...
function i (line 1) | function i(e,t){if(null===e||void 0===e.source)o.add(t);else{var r=n?p.j...
function t (line 1) | function t(){}
function r (line 1) | function r(){return i(n.foo)}
function i (line 1) | function i(e,t){var r,n,i,o,s=document.createElement("script");s.text=(r...
function l (line 1) | function l(e,t){var r=e.getAttribute(t);return""===r?[]:r?r.split(",").m...
function s (line 1) | function s(r,e){function a(){var e,t;for(t=0;t<n;t++)if((e=u[t]).loaded&...
function l (line 1) | function l(t,e){if(!a[t]){if(!s[t]){var r="function"==typeof require&&re...
function t (line 1) | function t(e,t,r){e[t]||Object.defineProperty(e,t,{writable:!0,configura...
function n (line 1) | function n(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||vo...
function n (line 1) | function n(e,t,r){var n,i,o,s=Array(r),a=8*r-t-1,u=(1<<a)-1,l=u>>1,c=23=...
function i (line 1) | function i(e,t,r){var n,i=8*r-t-1,o=(1<<i)-1,s=o>>1,a=i-7,u=r-1,l=e[u--]...
function o (line 1) | function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}
function s (line 1) | function s(e){return[255&e]}
function a (line 1) | function a(e){return[255&e,e>>8&255]}
function u (line 1) | function u(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}
function l (line 1) | function l(e){return n(e,52,8)}
function c (line 1) | function c(e){return n(e,23,4)}
function f (line 1) | function f(e,t,r){C(e[F],t,{get:function(){return this[r]}})}
function p (line 1) | function p(e,t,r,n){var i=D(+r);if(i+t>e[G])throw j(T);var o=e[W]._b,s=i...
function d (line 1) | function d(e,t,r,n,i,o){var s=D(+r);if(s+t>e[G])throw j(T);for(var a=e[W...
function e (line 1) | function e(){}
function e (line 1) | function e(){}
function o (line 1) | function o(e,t,r,n){var o,s,a,u,i=t&&t.prototype instanceof p?t:p,l=Obje...
function f (line 1) | function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){ret...
function p (line 1) | function p(){}
function r (line 1) | function r(){}
function t (line 1) | function t(){}
function n (line 1) | function n(e){["next","throw","return"].forEach(function(t){e[t]=functio...
function s (line 1) | function s(a){function u(e,t,r,n){var i=f(a[e],a,t);if("throw"!==i.type)...
function d (line 1) | function d(e,t){var r=e.iterator[t.method];if(r===l){if(t.delegate=null,...
function i (line 1) | function i(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.f...
function a (line 1) | function a(e){var t=e.completion||{};t.type="normal",delete t.arg,e.comp...
function h (line 1) | function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(i,this),this.r...
function u (line 1) | function u(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==type...
function m (line 1) | function m(){return{value:l,done:!0}}
function e (line 1) | function e(e,t){return o.type="throw",o.arg=r,n.next=e,t&&(n.method="nex...
function l (line 1) | function l(t,e){if(!a[t]){if(!s[t]){var r="function"==typeof require&&re...
function d (line 1) | function d(e,t){var r=p[e];if(r)return r;var n=o.scope.generateUidIdenti...
function h (line 1) | function h(e,t,r){var n=e[t]||[];e[t]=n.concat(r)}
function s (line 1) | function s(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function a (line 1) | function a(e){return e.map(function(t){if(null!=t&&t.inspect)return t.in...
function s (line 1) | function s(e){return e&&e.__esModule?e:{default:e}}
function c (line 1) | function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function f (line 1) | function f(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(){r.path=new i.default}
function s (line 1) | function s(){r.scope=new i.default}
function t (line 1) | function t(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e,t,r,n){(0,o.default)(this,i),this.queue=null,this.parentPat...
function c (line 1) | function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function f (line 1) | function f(e){return e&&e.__esModule?e:{default:e}}
function p (line 1) | function p(e,t,r,n,i){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.t...
function v (line 1) | function v(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function e (line 1) | function e(e){return e&&e.__esModule?e:{default:e}}
function te (line 1) | function te(e){ee&&(t=e,ee=!1)}
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function f (line 1) | function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function p (line 1) | function p(e){return e&&e.__esModule?e:{default:e}}
function p (line 1) | function p(e,t){(0,i.default)(this,p),this.parent=t,this.hub=e,this.cont...
function o (line 1) | function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function l (line 1) | function l(e,t,r){if("string"===e)return u.isStringTypeAnnotation(t);if(...
function m (line 1) | function m(e,r,n){var t=e.constantViolations.slice();return t.unshift(e....
function v (line 1) | function v(e,t){var r=t.node.operator,n=t.get("right").resolve(),i=t.get...
function o (line 1) | function o(e){return e.typeAnnotation}
function s (line 1) | function s(){return i.genericTypeAnnotation(i.identifier("Array"))}
function a (line 1) | function a(){return s()}
function u (line 1) | function u(){return i.genericTypeAnnotation(i.identifier("Function"))}
function l (line 1) | function l(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e...
function o (line 1) | function o(e){var t=r[i];return"*"===t||e===t}
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!...
function s (line 1) | function s(e){return e&&e.__esModule?e:{default:e}}
function r (line 1) | function r(e,t){(0,n.default)(this,r),this.breakOnScopePaths=[],this.bin...
function a (line 1) | function a(e){return e&&e.__esModule?e:{default:e}}
function a (line 1) | function a(e){return e&&e.__esModule?e:{default:e}}
function s (line 1) | function s(e){var t=e.existing,r=e.identifier,n=e.scope,i=e.path,o=e.kin...
function h (line 1) | function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function m (line 1) | function m(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e,t){if((0,o.default)(this,n),t&&t.block===e.node)return t;va...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e,t,r){(0,i.default)(this,n),this.newName=r,this.oldName=t,th...
function n (line 1) | function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r ...
function o (line 1) | function o(e){return e&&e.__esModule?e:{default:e}}
function l (line 1) | function l(e){if(e._exploded)return e;for(var t in e._exploded=!0,e)if(!...
function I (line 1) | function I(e){if(!e._verified){if("function"==typeof e)throw new Error(i...
function s (line 1) | function s(e,t){var r=[].concat(t),n=Array.isArray(r),i=0;for(r=n?r:(0,B...
function c (line 1) | function c(t,n,i){var o={},e=function(r){var e=t[r];if(!Array.isArray(e)...
function L (line 1) | function L(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.ex...
function R (line 1) | function R(t,r){var e=function(e){if(t.checkPath(e))return r.apply(this,...
function V (line 1) | function V(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===...
function U (line 1) | function U(e,t){for(var r in t)e[r]=[].concat(e[r]||[],t[r])}
function o (line 1) | function o(e){return e&&e.__esModule?e:{default:e}}
function u (line 1) | function u(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function l (line 1) | function l(e){return e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).rep...
function e (line 1) | function e(e,t,r){if(Array.isArray(r))for(var n=0;n<r.length;n++)i(e,t+"...
function r (line 1) | function r(e,t,r){if(n.indexOf(r)<0)throw new TypeError("Property "+t+" ...
function r (line 1) | function r(e,t,r){var n=!1,i=l,o=Array.isArray(i),s=0;for(i=o?i:(0,c.def...
function r (line 1) | function r(e,t,r){var n=!1,i=l,o=Array.isArray(i),s=0;for(i=o?i:(0,c.def...
function r (line 1) | function r(){var e=i,t=Array.isArray(e),r=0;for(e=t?e:(0,c.default)(e);;...
function i (line 1) | function i(e){return e&&e.__esModule?e:{default:e}}
function g (line 1) | function g(e){return Array.isArray(e)?"array":null===e?"null":void 0===e...
function b (line 1) | function b(n){function e(e,t,r){if(g(r)!==n)throw new TypeError("Propert...
function p (line 1) | function p(e){for(var t={},r={},n=[],i=[],o=0;o<e.length;o++){var s=e[o]...
function y (line 1) | function y(e){return e&&e.__esModule?e:{default:e}}
function b (line 1) | function b(r){var n=g["is"+r];n||(n=g["is"+r]=function(e,t){return g.is(...
function E (line 1) | function E(e,t){if(e===t)return!0;if(g.ALIAS_KEYS[t])return!1;var r=g.FL...
function e (line 1) | function e(){if(arguments.length>f.length)throw new Error("t."+c+": Too ...
function e (line 1) | function e(e){return function(){return console.trace("The node type "+t+...
function D (line 1) | function D(e,t,r){if(e){var n=g.NODE_FIELDS[e.type];if(n){var i=n[t];i&&...
function S (line 1) | function S(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e...
function C (line 1) | function C(e,t){F("trailingComments",e,t)}
function w (line 1) | function w(e,t){F("leadingComments",e,t)}
function k (line 1) | function k(e,t){F("innerComments",e,t)}
function F (line 1) | function F(e,t,r){t&&r&&(t[e]=(0,f.default)([].concat(t[e],r[e]).filter(...
function T (line 1) | function T(e){return!(!e||!m.VISITOR_KEYS[e.type])}
function P (line 1) | function P(e,t,r){if(e){var n=g.VISITOR_KEYS[e.type];if(n){t(e,r=r||{});...
function j (line 1) | function j(e,t){var r=(t=t||{}).preserveComments?O:B,n=Array.isArray(r),...
function i (line 1) | function i(e,t){for(var r=e.value.split(/\r\n|\n|\r/),n=0,i=0;i<r.length...
function i (line 1) | function i(e,t,r){for(var n=[].concat(e),i=(0,l.default)(null);n.length;...
function s (line 1) | function s(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(t){return t=t.split(" "),function(e){return 0<=t.indexOf(e)}}
function p (line 1) | function p(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(e<(r+=t[n]))retu...
function d (line 1) | function d(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?170...
function h (line 1) | function h(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<12...
function n (line 1) | function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function n (line 1) | function n(e,t){return y(this,n),b(this,r.call(this,e,{beforeExpr:!0,bin...
function w (line 1) | function w(e){return 10===e||13===e||8232===e||8233===e}
function i (line 1) | function i(){y(this,i)}
function j (line 1) | function j(e){return e<=65535?String.fromCharCode(e):String.fromCharCode...
function r (line 1) | function r(e,t){y(this,r),this.state=new B,this.state.init(e,t)}
function i (line 1) | function i(e,t){y(this,i),e=function(e){var t={};for(var r in m)t[r]=e&&...
function n (line 1) | function n(e,t,r){y(this,n),this.type="",this.start=e,this.end=0,this.lo...
function X (line 1) | function X(e,t,r,n){return e.type=t,e.end=r,e.loc.end=n,this.processComm...
function J (line 1) | function J(e){return e[e.length-1]}
function Z (line 1) | function Z(e){return e&&"Property"===e.type&&"init"===e.kind&&!1===e.met...
function ce (line 1) | function ce(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"...
function s (line 1) | function s(e){this.enabled=e&&void 0!==e.enabled?e.enabled:i}
function d (line 1) | function d(e){var t=function(){return function(){var e=arguments,t=e.len...
function e (line 1) | function e(){var e;try{e=o.storage.debug}catch(e){}return!e&&void 0!==t&...
function r (line 1) | function r(e){function n(){if(n.enabled){var i=n,e=+new Date,t=e-(u||e);...
function t (line 1) | function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":ca...
function r (line 1) | function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?...
function s (line 1) | function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode...
function r (line 1) | function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}
function n (line 1) | function n(t,e){if(e&&function(e){switch(t){case"implements":case"interf...
function i (line 1) | function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}
function o (line 1) | function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}
function a (line 1) | function a(e){var t,r,n;if(0===e.length)return!1;if(n=e.charCodeAt(0),!s...
function u (line 1) | function u(e){var t,r,n,i,o;if(0===e.length)return!1;for(o=s.isIdentifie...
function u (line 1) | function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function u (line 1) | function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function u (line 1) | function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var...
function s (line 1) | function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<...
function l (line 1) | function l(e){var t=this.__data__=new n(e);this.size=t.size}
function r (line 1) | function r(){}
function u (line 1) | function u(i,o){if("function"!=typeof i||null!=o&&"function"!=typeof o)t...
function o (line 1) | function o(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ce...
function t (line 1) | function t(){}
function n (line 1) | function n(){return typeof r.foo}
function o (line 1) | function o(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e....
function a (line 1) | function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.leng...
function r (line 1) | function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-...
function s (line 1) | function s(){throw new Error("setTimeout has not been defined")}
function a (line 1) | function a(){throw new Error("clearTimeout has not been defined")}
function u (line 1) | function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&s...
function d (line 1) | function d(){f&&l&&(f=!1,l.length?c=l.concat(c):p=-1,c.length&&h())}
function h (line 1) | function h(){if(!f){var e=u(d);f=!0;for(var t=c.length;t;){for(l=c,c=[];...
function m (line 1) | function m(e,t){this.fun=e,this.array=t}
function v (line 1) | function v(){}
function u (line 1) | function u(e,t){var r={seen:[],stylize:l};return 3<=arguments.length&&(r...
function s (line 1) | function s(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"[...
function l (line 1) | function l(e,t){return e}
function v (line 1) | function v(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==T.ins...
function y (line 1) | function y(e){return"["+Error.prototype.toString.call(e)+"]"}
function g (line 1) | function g(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(...
function b (line 1) | function b(e){return Array.isArray(e)}
function x (line 1) | function x(e){return"boolean"==typeof e}
function E (line 1) | function E(e){return null===e}
function _ (line 1) | function _(e){return"number"==typeof e}
function A (line 1) | function A(e){return"string"==typeof e}
function D (line 1) | function D(e){return void 0===e}
function S (line 1) | function S(e){return c(e)&&"[object RegExp]"===t(e)}
function c (line 1) | function c(e){return"object"==typeof e&&null!==e}
function C (line 1) | function C(e){return c(e)&&"[object Date]"===t(e)}
function w (line 1) | function w(e){return c(e)&&("[object Error]"===t(e)||e instanceof Error)}
function k (line 1) | function k(e){return"function"==typeof e}
function t (line 1) | function t(e){return Object.prototype.toString.call(e)}
function r (line 1) | function r(e){return e<10?"0"+e.toString(10):e.toString(10)}
function F (line 1) | function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
FILE: dist/resources/lodash@4.16.0.js
function addMapEntry (line 445) | function addMapEntry(map, pair) {
function addSetEntry (line 459) | function addSetEntry(set, value) {
function apply (line 475) | function apply(func, thisArg, args) {
function arrayAggregator (line 495) | function arrayAggregator(array, setter, iteratee, accumulator) {
function arrayEach (line 515) | function arrayEach(array, iteratee) {
function arrayEachRight (line 536) | function arrayEachRight(array, iteratee) {
function arrayEvery (line 557) | function arrayEvery(array, predicate) {
function arrayFilter (line 578) | function arrayFilter(array, predicate) {
function arrayIncludes (line 602) | function arrayIncludes(array, value) {
function arrayIncludesWith (line 616) | function arrayIncludesWith(array, value, comparator) {
function arrayMap (line 637) | function arrayMap(array, iteratee) {
function arrayPush (line 656) | function arrayPush(array, values) {
function arrayReduce (line 679) | function arrayReduce(array, iteratee, accumulator, initAccum) {
function arrayReduceRight (line 704) | function arrayReduceRight(array, iteratee, accumulator, initAccum) {
function arraySome (line 725) | function arraySome(array, predicate) {
function asciiToArray (line 753) | function asciiToArray(string) {
function asciiWords (line 764) | function asciiWords(string) {
function baseFindKey (line 779) | function baseFindKey(collection, predicate, eachFunc) {
function baseFindIndex (line 801) | function baseFindIndex(array, predicate, fromIndex, fromRight) {
function baseIndexOf (line 822) | function baseIndexOf(array, value, fromIndex) {
function baseIndexOfWith (line 838) | function baseIndexOfWith(array, value, fromIndex, comparator) {
function baseIsNaN (line 857) | function baseIsNaN(value) {
function baseMean (line 870) | function baseMean(array, iteratee) {
function baseProperty (line 882) | function baseProperty(key) {
function basePropertyOf (line 895) | function basePropertyOf(object) {
function baseReduce (line 914) | function baseReduce(collection, iteratee, accumulator, initAccum, eachFu...
function baseSortBy (line 933) | function baseSortBy(array, comparer) {
function baseSum (line 952) | function baseSum(array, iteratee) {
function baseTimes (line 975) | function baseTimes(n, iteratee) {
function baseToPairs (line 994) | function baseToPairs(object, props) {
function baseUnary (line 1007) | function baseUnary(func) {
function baseValues (line 1023) | function baseValues(object, props) {
function cacheHas (line 1037) | function cacheHas(cache, key) {
function charsStartIndex (line 1050) | function charsStartIndex(strSymbols, chrSymbols) {
function charsEndIndex (line 1067) | function charsEndIndex(strSymbols, chrSymbols) {
function countHolders (line 1082) | function countHolders(array, placeholder) {
function escapeStringChar (line 1120) | function escapeStringChar(chr) {
function getValue (line 1132) | function getValue(object, key) {
function hasUnicode (line 1143) | function hasUnicode(string) {
function hasUnicodeWord (line 1154) | function hasUnicodeWord(string) {
function iteratorToArray (line 1165) | function iteratorToArray(iterator) {
function mapToArray (line 1182) | function mapToArray(map) {
function overArg (line 1200) | function overArg(func, transform) {
function replaceHolders (line 1215) | function replaceHolders(array, placeholder) {
function setToArray (line 1238) | function setToArray(set) {
function setToPairs (line 1255) | function setToPairs(set) {
function strictIndexOf (line 1275) | function strictIndexOf(array, value, fromIndex) {
function strictLastIndexOf (line 1297) | function strictLastIndexOf(array, value, fromIndex) {
function stringSize (line 1314) | function stringSize(string) {
function stringToArray (line 1327) | function stringToArray(string) {
function unicodeSize (line 1349) | function unicodeSize(string) {
function unicodeToArray (line 1364) | function unicodeToArray(string) {
function unicodeWords (line 1375) | function unicodeWords(string) {
function runInContext (line 1410) | function runInContext(context) {
FILE: dist/resources/marked@0.3.6.js
function a (line 6) | function a(e){this.tokens=[],this.tokens.links=Object.create(null),this....
function h (line 6) | function h(e,t){if(this.options=t||m.defaults,this.links=e,this.rules=n....
function r (line 6) | function r(e){this.options=e||m.defaults}
function s (line 6) | function s(){}
function p (line 6) | function p(e){this.tokens=[],this.token=null,this.options=e||m.defaults,...
function t (line 6) | function t(){this.seen={}}
function u (line 6) | function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeR...
function c (line 6) | function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?...
function i (line 6) | function i(n,e){return n=n.source||n,e=e||"",{replace:function(e,t){retu...
function l (line 6) | function l(e,t,n){if(e){try{var r=decodeURIComponent(c(n)).replace(/[^\w...
function f (line 6) | function f(){}
function d (line 6) | function d(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=argument...
function x (line 6) | function x(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,s=t;0...
function y (line 6) | function y(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var ...
function m (line 6) | function m(e,n,r){if(null==e)throw new Error("marked(): input parameter ...
FILE: dist/resources/react-16.7.0-alpha.0.js
function getIteratorFn (line 42) | function getIteratorFn(maybeIterable) {
function toObject (line 103) | function toObject(val) {
function shouldUseNative (line 111) | function shouldUseNative() {
function invariant (line 203) | function invariant(condition, format, a, b, c, d, e, f) {
function warnNoop (line 371) | function warnNoop(publicInstance, callerName) {
function Component (line 460) | function Component(props, context, updater) {
function ComponentDummy (line 545) | function ComponentDummy() {}
function PureComponent (line 551) | function PureComponent(props, context, updater) {
function createRef (line 566) | function createRef() {
function ensureHostCallbackIsScheduled (line 640) | function ensureHostCallbackIsScheduled() {
function flushFirstCallback (line 656) | function flushFirstCallback() {
function flushImmediateWork (line 739) | function flushImmediateWork() {
function flushWork (line 763) | function flushWork(didTimeout) {
function unstable_runWithPriority (line 803) | function unstable_runWithPriority(priorityLevel, eventHandler) {
function unstable_wrapCallback (line 830) | function unstable_wrapCallback(callback) {
function unstable_scheduleCallback (line 849) | function unstable_scheduleCallback(callback, deprecated_options) {
function unstable_cancelCallback (line 919) | function unstable_cancelCallback(callbackNode) {
function unstable_getCurrentPriorityLevel (line 942) | function unstable_getCurrentPriorityLevel() {
function unstable_clear (line 1226) | function unstable_clear(callback) {
function unstable_getCurrent (line 1241) | function unstable_getCurrent() {
function unstable_getThreadID (line 1249) | function unstable_getThreadID() {
function unstable_trace (line 1253) | function unstable_trace(name, timestamp, callback) {
function unstable_wrap (line 1314) | function unstable_wrap(callback) {
function unstable_subscribe (line 1412) | function unstable_subscribe(subscriber) {
function unstable_unsubscribe (line 1429) | function unstable_unsubscribe(subscriber) {
function onInteractionTraced (line 1439) | function onInteractionTraced(interaction) {
function onInteractionScheduledWorkCompleted (line 1459) | function onInteractionScheduledWorkCompleted(interaction) {
function onWorkScheduled (line 1479) | function onWorkScheduled(interactions, threadID) {
function onWorkStarted (line 1499) | function onWorkStarted(interactions, threadID) {
function onWorkStopped (line 1519) | function onWorkStopped(interactions, threadID) {
function onWorkCanceled (line 1539) | function onWorkCanceled(interactions, threadID) {
function refineResolvedLazyComponent (line 1605) | function refineResolvedLazyComponent(lazyComponent) {
function getWrappedName (line 1609) | function getWrappedName(outerType, innerType, wrapperName) {
function getComponentName (line 1614) | function getComponentName(type) {
function setCurrentlyValidatingElement (line 1671) | function setCurrentlyValidatingElement(element) {
function hasValidRef (line 1786) | function hasValidRef(config) {
function hasValidKey (line 1798) | function hasValidKey(config) {
function defineKeyPropWarningGetter (line 1810) | function defineKeyPropWarningGetter(props, displayName) {
function defineRefPropWarningGetter (line 1824) | function defineRefPropWarningGetter(props, displayName) {
function createElement (line 1918) | function createElement(type, config, children) {
function cloneAndReplaceKey (line 1994) | function cloneAndReplaceKey(oldElement, newKey) {
function cloneElement (line 2004) | function cloneElement(element, config, children) {
function isValidElement (line 2075) | function isValidElement(object) {
function escape (line 2088) | function escape(key) {
function escapeUserProvidedKey (line 2109) | function escapeUserProvidedKey(text) {
function getPooledTraverseContext (line 2115) | function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, map...
function releaseTraverseContext (line 2135) | function releaseTraverseContext(traverseContext) {
function traverseAllChildrenImpl (line 2154) | function traverseAllChildrenImpl(children, nameSoFar, callback, traverse...
function traverseAllChildren (line 2248) | function traverseAllChildren(children, callback, traverseContext) {
function getComponentKey (line 2263) | function getComponentKey(component, index) {
function forEachSingleChild (line 2274) | function forEachSingleChild(bookKeeping, child, name) {
function forEachChildren (line 2293) | function forEachChildren(children, forEachFunc, forEachContext) {
function mapSingleChildIntoContext (line 2302) | function mapSingleChildIntoContext(bookKeeping, child, childKey) {
function mapIntoWithKeyPrefixInternal (line 2325) | function mapIntoWithKeyPrefixInternal(children, array, prefix, func, con...
function mapChildren (line 2348) | function mapChildren(children, func, context) {
function countChildren (line 2366) | function countChildren(children) {
function toArray (line 2378) | function toArray(children) {
function onlyChild (line 2400) | function onlyChild(children) {
function createContext (line 2405) | function createContext(defaultValue, calculateChangedBits) {
function lazy (line 2498) | function lazy(ctor) {
function forwardRef (line 2508) | function forwardRef(render) {
function isValidElementType (line 2529) | function isValidElementType(type) {
function memo (line 2535) | function memo(type, compare) {
function resolveDispatcher (line 2548) | function resolveDispatcher() {
function useContext (line 2554) | function useContext(Context, observedBits) {
function useState (line 2572) | function useState(initialState) {
function useReducer (line 2577) | function useReducer(reducer, initialState, initialAction) {
function useRef (line 2582) | function useRef(initialValue) {
function useEffect (line 2587) | function useEffect(create, inputs) {
function useMutationEffect (line 2592) | function useMutationEffect(create, inputs) {
function useLayoutEffect (line 2597) | function useLayoutEffect(create, inputs) {
function useCallback (line 2602) | function useCallback(callback, inputs) {
function useMemo (line 2607) | function useMemo(create, inputs) {
function useImperativeMethods (line 2612) | function useImperativeMethods(ref, create, inputs) {
function checkPropTypes (line 2670) | function checkPropTypes(typeSpecs, values, location, componentName, getS...
function getDeclarationErrorAddendum (line 2735) | function getDeclarationErrorAddendum() {
function getSourceInfoErrorAddendum (line 2745) | function getSourceInfoErrorAddendum(elementProps) {
function getCurrentComponentErrorInfo (line 2762) | function getCurrentComponentErrorInfo(parentType) {
function validateExplicitKey (line 2785) | function validateExplicitKey(element, parentType) {
function validateChildKeys (line 2822) | function validateChildKeys(node, parentType) {
function validatePropTypes (line 2862) | function validatePropTypes(element) {
function validateFragmentProps (line 2895) | function validateFragmentProps(fragment) {
function createElementWithValidation (line 2914) | function createElementWithValidation(type, props, children) {
function createFactoryWithValidation (line 2975) | function createFactoryWithValidation(type) {
function cloneElementWithValidation (line 2995) | function cloneElementWithValidation(element, props, children) {
FILE: dist/resources/react-dom.16.7.0-alpha.0.js
function invariant (line 39) | function invariant(condition, format, a, b, c, d, e, f) {
function callCallback (line 128) | function callCallback() {
function handleWindowError (line 163) | function handleWindowError(event) {
function invokeGuardedCallback (line 247) | function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
function invokeGuardedCallbackAndCatchFirstError (line 263) | function invokeGuardedCallbackAndCatchFirstError(name, func, context, a,...
function rethrowCaughtError (line 278) | function rethrowCaughtError() {
function hasCaughtError (line 287) | function hasCaughtError() {
function clearCaughtError (line 291) | function clearCaughtError() {
function recomputePluginOrdering (line 317) | function recomputePluginOrdering() {
function publishEventForPlugin (line 346) | function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
function publishRegistrationName (line 373) | function publishRegistrationName(registrationName, pluginModule, eventNa...
function injectEventPluginOrder (line 432) | function injectEventPluginOrder(injectedEventPluginOrder) {
function injectEventPluginsByName (line 449) | function injectEventPluginsByName(injectedNamesToPlugins) {
function setComponentTree (line 560) | function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceF...
function executeDispatch (line 592) | function executeDispatch(event, simulated, listener, inst) {
function executeDispatchesInOrder (line 602) | function executeDispatchesInOrder(event, simulated) {
function accumulateInto (line 657) | function accumulateInto(current, next) {
function forEachAccumulated (line 692) | function forEachAccumulated(arr, cb, scope) {
function isInteractive (line 729) | function isInteractive(tag) {
function shouldPreventMouseEvent (line 733) | function shouldPreventMouseEvent(name, type, props) {
function getListener (line 795) | function getListener(inst, registrationName) {
function extractEvents (line 825) | function extractEvents(topLevelType, targetInst, nativeEvent, nativeEven...
function runEventsInBatch (line 840) | function runEventsInBatch(events, simulated) {
function runExtractedEventsInBatch (line 864) | function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent...
function precacheFiberNode (line 892) | function precacheFiberNode(hostInst, node) {
function getClosestInstanceFromNode (line 900) | function getClosestInstanceFromNode(node) {
function getInstanceFromNode$1 (line 928) | function getInstanceFromNode$1(node) {
function getNodeFromInstance$1 (line 944) | function getNodeFromInstance$1(inst) {
function getFiberCurrentPropsFromNode$1 (line 956) | function getFiberCurrentPropsFromNode$1(node) {
function updateFiberProps (line 960) | function updateFiberProps(node, props) {
function getParent (line 964) | function getParent(inst) {
function getLowestCommonAncestor (line 983) | function getLowestCommonAncestor(instA, instB) {
function traverseTwoPhase (line 1030) | function traverseTwoPhase(inst, fn, arg) {
function traverseEnterLeave (line 1052) | function traverseEnterLeave(from, to, fn, argFrom, argTo) {
function listenerAtPhase (line 1096) | function listenerAtPhase(inst, event, propagationPhase) {
function accumulateDirectionalDispatches (line 1117) | function accumulateDirectionalDispatches(inst, phase, event) {
function accumulateTwoPhaseDispatchesSingle (line 1135) | function accumulateTwoPhaseDispatchesSingle(event) {
function accumulateDispatches (line 1146) | function accumulateDispatches(inst, ignoredDirection, event) {
function accumulateDirectDispatchesSingle (line 1162) | function accumulateDirectDispatchesSingle(event) {
function accumulateTwoPhaseDispatches (line 1168) | function accumulateTwoPhaseDispatches(events) {
function accumulateEnterLeaveDispatches (line 1174) | function accumulateEnterLeaveDispatches(leave, enter, from, to) {
function accumulateDirectDispatches (line 1178) | function accumulateDirectDispatches(events) {
function unsafeCastStringToDOMTopLevelType (line 1188) | function unsafeCastStringToDOMTopLevelType(topLevelType) {
function unsafeCastDOMTopLevelTypeToString (line 1192) | function unsafeCastDOMTopLevelTypeToString(topLevelType) {
function makePrefixMap (line 1203) | function makePrefixMap(styleProp, eventName) {
function getVendorPrefixedEventName (line 1261) | function getVendorPrefixedEventName(eventName) {
function getRawEventName (line 1374) | function getRawEventName(topLevelType) {
function initialize (line 1394) | function initialize(nativeEventTarget) {
function reset (line 1400) | function reset() {
function getData (line 1406) | function getData() {
function getText (line 1436) | function getText() {
function functionThatReturnsTrue (line 1472) | function functionThatReturnsTrue() {
function functionThatReturnsFalse (line 1476) | function functionThatReturnsFalse() {
function SyntheticEvent (line 1498) | function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeE...
function Class (line 1633) | function Class() {
function getPooledWarningPropertyDefinition (line 1656) | function getPooledWarningPropertyDefinition(propName, getVal) {
function getPooledEvent (line 1683) | function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeI...
function releasePooledEvent (line 1693) | function releasePooledEvent(event) {
function addEventPoolingTo (line 1702) | function addEventPoolingTo(EventConstructor) {
function isKeypressCommand (line 1788) | function isKeypressCommand(nativeEvent) {
function getCompositionEventType (line 1800) | function getCompositionEventType(topLevelType) {
function isFallbackCompositionStart (line 1819) | function isFallbackCompositionStart(topLevelType, nativeEvent) {
function isFallbackCompositionEnd (line 1830) | function isFallbackCompositionEnd(topLevelType, nativeEvent) {
function getDataFromCustomEvent (line 1858) | function getDataFromCustomEvent(nativeEvent) {
function isUsingKoreanIME (line 1876) | function isUsingKoreanIME(nativeEvent) {
function extractCompositionEvent (line 1886) | function extractCompositionEvent(topLevelType, targetInst, nativeEvent, ...
function getNativeBeforeInputChars (line 1938) | function getNativeBeforeInputChars(topLevelType, nativeEvent) {
function getFallbackBeforeInputChars (line 1992) | function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
function extractBeforeInputEvent (line 2056) | function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, ...
function restoreStateOfTarget (line 2122) | function restoreStateOfTarget(target) {
function setRestoreImplementation (line 2135) | function setRestoreImplementation(impl) {
function enqueueStateRestore (line 2139) | function enqueueStateRestore(target) {
function needsStateRestore (line 2151) | function needsStateRestore() {
function restoreStateIfNeeded (line 2155) | function restoreStateIfNeeded() {
function batchedUpdates (line 2188) | function batchedUpdates(fn, bookkeeping) {
function interactiveUpdates (line 2214) | function interactiveUpdates(fn, a, b) {
function setBatchingImplementation (line 2220) | function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdate...
function isTextInputElement (line 2247) | function isTextInputElement(elem) {
function getEventTarget (line 2278) | function getEventTarget(nativeEvent) {
function isEventSupported (line 2306) | function isEventSupported(eventNameSuffix) {
function isCheckable (line 2323) | function isCheckable(elem) {
function getTracker (line 2329) | function getTracker(node) {
function detachTracker (line 2333) | function detachTracker(node) {
function getValueFromNode (line 2337) | function getValueFromNode(node) {
function trackValueOnNode (line 2352) | function trackValueOnNode(node) {
function track (line 2401) | function track(node) {
function updateValueIfChanged (line 2410) | function updateValueIfChanged(node) {
function getIteratorFn (line 2481) | function getIteratorFn(maybeIterable) {
function refineResolvedLazyComponent (line 2496) | function refineResolvedLazyComponent(lazyComponent) {
function getWrappedName (line 2500) | function getWrappedName(outerType, innerType, wrapperName) {
function getComponentName (line 2505) | function getComponentName(type) {
function describeFiber (line 2560) | function describeFiber(fiber) {
function getStackByFiberInDevAndProd (line 2581) | function getStackByFiberInDevAndProd(workInProgress) {
function getCurrentFiberOwnerNameInDevOrNull (line 2594) | function getCurrentFiberOwnerNameInDevOrNull() {
function getCurrentFiberStackInDev (line 2607) | function getCurrentFiberStackInDev() {
function resetCurrentFiber (line 2619) | function resetCurrentFiber() {
function setCurrentFiber (line 2627) | function setCurrentFiber(fiber) {
function setCurrentPhase (line 2635) | function setCurrentPhase(lifeCyclePhase) {
function isAttributeNameSafe (line 2715) | function isAttributeNameSafe(attributeName) {
function shouldIgnoreAttribute (line 2733) | function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
function shouldRemoveAttributeWithWarning (line 2746) | function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isC...
function shouldRemoveAttribute (line 2773) | function shouldRemoveAttribute(name, value, propertyInfo, isCustomCompon...
function getPropertyInfo (line 2798) | function getPropertyInfo(name) {
function PropertyInfoRecord (line 2802) | function PropertyInfoRecord(name, type, mustUseProperty, attributeName, ...
function getValueForProperty (line 2954) | function getValueForProperty(node, name, expected, propertyInfo) {
function getValueForAttribute (line 3013) | function getValueForAttribute(node, name, expected) {
function setValueForProperty (line 3036) | function setValueForProperty(node, name, value, isCustomComponentTag) {
function toString (line 3100) | function toString(value) {
function getToStringValue (line 3104) | function getToStringValue(value) {
function checkPropTypes (line 3171) | function checkPropTypes(typeSpecs, values, location, componentName, getS...
function isControlled (line 3312) | function isControlled(props) {
function getHostProps (line 3334) | function getHostProps(element, props) {
function initWrapperState (line 3348) | function initWrapperState(element, props) {
function updateChecked (line 3372) | function updateChecked(element, props) {
function updateWrapper (line 3380) | function updateWrapper(element, props) {
function postMountWrapper (line 3456) | function postMountWrapper(element, props, isHydrating) {
function restoreControlledState (line 3564) | function restoreControlledState(element, props) {
function updateNamedCousins (line 3570) | function updateNamedCousins(rootNode, props) {
function setDefaultValue (line 3620) | function setDefaultValue(node, type, value) {
function createAndAccumulateChangeEvent (line 3642) | function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
function shouldUseChangeEvent (line 3659) | function shouldUseChangeEvent(elem) {
function manualDispatchChangeEvent (line 3664) | function manualDispatchChangeEvent(nativeEvent) {
function runEventInBatch (line 3681) | function runEventInBatch(event) {
function getInstIfValueChanged (line 3685) | function getInstIfValueChanged(targetInst) {
function getTargetInstForChangeEvent (line 3692) | function getTargetInstForChangeEvent(topLevelType, targetInst) {
function startWatchingForValueChange (line 3713) | function startWatchingForValueChange(target, targetInst) {
function stopWatchingForValueChange (line 3723) | function stopWatchingForValueChange() {
function handlePropertyChange (line 3736) | function handlePropertyChange(nativeEvent) {
function handleEventsForInputEventPolyfill (line 3745) | function handleEventsForInputEventPolyfill(topLevelType, target, targetI...
function getTargetInstForInputEventPolyfill (line 3765) | function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
function shouldUseClickEvent (line 3784) | function shouldUseClickEvent(elem) {
function getTargetInstForClickEvent (line 3792) | function getTargetInstForClickEvent(topLevelType, targetInst) {
function getTargetInstForInputOrChangeEvent (line 3798) | function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
function handleControlledInputBlur (line 3804) | function handleControlledInputBlur(node) {
function modifierStateGetter (line 3900) | function modifierStateGetter(keyArg) {
function getEventModifierState (line 3910) | function getEventModifierState(nativeEvent) {
function is (line 4107) | function is(x, y) {
function shallowEqual (line 4125) | function shallowEqual(objA, objB) {
function get (line 4168) | function get(key) {
function has (line 4172) | function has(key) {
function set (line 4176) | function set(key, value) {
function isFiberMountedImpl (line 4211) | function isFiberMountedImpl(fiber) {
function isFiberMounted (line 4240) | function isFiberMounted(fiber) {
function isMounted (line 4244) | function isMounted(component) {
function assertIsMounted (line 4262) | function assertIsMounted(fiber) {
function findCurrentFiberUsingSlowPath (line 4266) | function findCurrentFiberUsingSlowPath(fiber) {
function findCurrentHostFiber (line 4378) | function findCurrentHostFiber(parent) {
function findCurrentHostFiberWithNoPortals (line 4411) | function findCurrentHostFiberWithNoPortals(parent) {
function addEventBubbleListener (line 4444) | function addEventBubbleListener(element, eventType, listener) {
function addEventCaptureListener (line 4448) | function addEventCaptureListener(element, eventType, listener) {
function getEventCharCode (line 4491) | function getEventCharCode(nativeEvent) {
function getEventKey (line 4589) | function getEventKey(nativeEvent) {
function addEventTypeNameToConfig (line 4753) | function addEventTypeNameToConfig(_ref, isInteractive) {
function findRootContainerNode (line 4906) | function findRootContainerNode(inst) {
function getTopLevelCallbackBookKeeping (line 4921) | function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targe...
function releaseTopLevelCallbackBookKeeping (line 4937) | function releaseTopLevelCallbackBookKeeping(instance) {
function handleTopLevel (line 4947) | function handleTopLevel(bookKeeping) {
function setEnabled (line 4977) | function setEnabled(enabled) {
function isEnabled (line 4981) | function isEnabled() {
function trapBubbledEvent (line 4994) | function trapBubbledEvent(topLevelType, element) {
function trapCapturedEvent (line 5014) | function trapCapturedEvent(topLevelType, element) {
function dispatchInteractiveEvent (line 5025) | function dispatchInteractiveEvent(topLevelType, nativeEvent) {
function dispatchEvent (line 5029) | function dispatchEvent(topLevelType, nativeEvent) {
function getListeningForDocument (line 5119) | function getListeningForDocument(mountAt) {
function listenTo (line 5150) | function listenTo(registrationName, mountAt) {
function isListeningToAllDependencies (line 5196) | function isListeningToAllDependencies(registrationName, mountAt) {
function getActiveElement (line 5208) | function getActiveElement(doc) {
function getLeafNode (line 5226) | function getLeafNode(node) {
function getSiblingNode (line 5240) | function getSiblingNode(node) {
function getNodeForCharacterOffset (line 5256) | function getNodeForCharacterOffset(root, offset) {
function getOffsets (line 5283) | function getOffsets(outerNode) {
function getModernOffsetsFromPoints (line 5327) | function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset,...
function setOffsets (line 5408) | function setOffsets(node, offsets) {
function isTextNode (line 5445) | function isTextNode(node) {
function containsNode (line 5449) | function containsNode(outerNode, innerNode) {
function isInDocument (line 5467) | function isInDocument(node) {
function getActiveElementDeep (line 5471) | function getActiveElementDeep() {
function hasSelectionCapabilities (line 5499) | function hasSelectionCapabilities(elem) {
function getSelectionInformation (line 5504) | function getSelectionInformation() {
function restoreSelection (line 5517) | function restoreSelection(priorSelectionInformation) {
function getSelection$1 (line 5557) | function getSelection$1(input) {
function setSelection (line 5580) | function setSelection(input, offsets) {
function getSelection (line 5622) | function getSelection(node) {
function getEventTargetDocument (line 5646) | function getEventTargetDocument(eventTarget) {
function constructSelectEvent (line 5657) | function constructSelectEvent(nativeEvent, nativeEventTarget) {
function flattenChildren (line 5781) | function flattenChildren(children) {
function validateProps (line 5806) | function validateProps(element, props) {
function postMountWrapper$1 (line 5838) | function postMountWrapper$1(element, props) {
function getHostProps$1 (line 5845) | function getHostProps$1(element, props) {
function getDeclarationErrorAddendum (line 5863) | function getDeclarationErrorAddendum() {
function checkSelectPropTypes (line 5876) | function checkSelectPropTypes(props) {
function updateOptions (line 5893) | function updateOptions(node, multiple, propValue, setDefaultSelected) {
function getHostProps$2 (line 5951) | function getHostProps$2(element, props) {
function initWrapperState$1 (line 5957) | function initWrapperState$1(element, props) {
function postMountWrapper$2 (line 5975) | function postMountWrapper$2(element, props) {
function postUpdateWrapper (line 5986) | function postUpdateWrapper(element, props) {
function restoreControlledState$2 (line 6005) | function restoreControlledState$2(element, props) {
function getHostProps$3 (line 6032) | function getHostProps$3(element, props) {
function initWrapperState$2 (line 6051) | function initWrapperState$2(element, props) {
function updateWrapper$1 (line 6091) | function updateWrapper$1(element, props) {
function postMountWrapper$3 (line 6112) | function postMountWrapper$3(element, props) {
function restoreControlledState$3 (line 6127) | function restoreControlledState$3(element, props) {
function getIntrinsicNamespace (line 6143) | function getIntrinsicNamespace(type) {
function getChildNamespace (line 6154) | function getChildNamespace(parentNamespace, type) {
function prefixKey (line 6291) | function prefixKey(prefix, key) {
function dangerousStyleValue (line 6318) | function dangerousStyleValue(name, value, isCustomProperty) {
function hyphenateStyleName (line 6357) | function hyphenateStyleName(name) {
function createDangerousStringForStyles (line 6463) | function createDangerousStringForStyles(styles) {
function setValueForStyles (line 6491) | function setValueForStyles(node, styles) {
function assertValidProps (line 6553) | function assertValidProps(tag, props) {
function isCustomComponent (line 6571) | function isCustomComponent(tagName, props) {
function validateProperty (line 7144) | function validateProperty(tagName, name) {
function warnInvalidARIAProps (line 7189) | function warnInvalidARIAProps(type, props) {
function validateProperties (line 7210) | function validateProperties(type, props) {
function validateProperties$1 (line 7219) | function validateProperties$1(type, props) {
function validateProperties$2 (line 7383) | function validateProperties$2(type, props, canUseEventSystem) {
function ensureListeningTo (line 7523) | function ensureListeningTo(rootContainerElement, registrationName) {
function getOwnerDocumentFromRootContainer (line 7529) | function getOwnerDocumentFromRootContainer(rootContainerElement) {
function noop (line 7533) | function noop() {}
function trapClickOnNonInteractiveElement (line 7535) | function trapClickOnNonInteractiveElement(node) {
function setInitialDOMProperties (line 7548) | function setInitialDOMProperties(tag, domElement, rootContainerElement, ...
function updateDOMProperties (line 7602) | function updateDOMProperties(domElement, updatePayload, wasCustomCompone...
function createElement (line 7619) | function createElement(type, props, rootContainerElement, parentNamespac...
function createTextNode (line 7680) | function createTextNode(text, rootContainerElement) {
function setInitialProperties (line 7684) | function setInitialProperties(domElement, tag, rawProps, rootContainerEl...
function diffProperties (line 7795) | function diffProperties(domElement, tag, lastRawProps, nextRawProps, roo...
function updateProperties (line 7960) | function updateProperties(domElement, updatePayload, tag, lastRawProps, ...
function getPossibleStandardName (line 7993) | function getPossibleStandardName(propName) {
function diffHydratedProperties (line 8004) | function diffHydratedProperties(domElement, tag, rawProps, parentNamespa...
function diffHydratedText (line 8256) | function diffHydratedText(textNode, text) {
function warnForUnmatchedText (line 8261) | function warnForUnmatchedText(textNode, text) {
function warnForDeletedHydratableElement (line 8267) | function warnForDeletedHydratableElement(parentNode, child) {
function warnForDeletedHydratableText (line 8277) | function warnForDeletedHydratableText(parentNode, child) {
function warnForInsertedHydratedElement (line 8287) | function warnForInsertedHydratedElement(parentNode, tag, props) {
function warnForInsertedHydratedText (line 8297) | function warnForInsertedHydratedText(parentNode, text) {
function restoreControlledState$1 (line 8314) | function restoreControlledState$1(domElement, tag, props) {
function shim (line 8634) | function shim() {
function shouldAutoFocusHostComponent (line 8659) | function shouldAutoFocusHostComponent(type, props) {
function getRootHostContext (line 8670) | function getRootHostContext(rootContainerInstance) {
function getChildHostContext (line 8700) | function getChildHostContext(parentHostContext, type, rootContainerInsta...
function getPublicInstance (line 8711) | function getPublicInstance(instance) {
function prepareForCommit (line 8715) | function prepareForCommit(containerInfo) {
function resetAfterCommit (line 8721) | function resetAfterCommit(containerInfo) {
function createInstance (line 8728) | function createInstance(type, props, rootContainerInstance, hostContext,...
function appendInitialChild (line 8747) | function appendInitialChild(parentInstance, child) {
function finalizeInitialChildren (line 8751) | function finalizeInitialChildren(domElement, type, props, rootContainerI...
function prepareUpdate (line 8756) | function prepareUpdate(domElement, type, oldProps, newProps, rootContain...
function shouldSetTextContent (line 8768) | function shouldSetTextContent(type, props) {
function shouldDeprioritizeSubtree (line 8772) | function shouldDeprioritizeSubtree(type, props) {
function createTextInstance (line 8776) | function createTextInstance(text, rootContainerInstance, hostContext, in...
function commitMount (line 8797) | function commitMount(domElement, type, newProps, internalInstanceHandle) {
function commitUpdate (line 8809) | function commitUpdate(domElement, updatePayload, type, oldProps, newProp...
function resetTextContent (line 8817) | function resetTextContent(domElement) {
function commitTextUpdate (line 8821) | function commitTextUpdate(textInstance, oldText, newText) {
function appendChild (line 8825) | function appendChild(parentInstance, child) {
function appendChildToContainer (line 8829) | function appendChildToContainer(container, child) {
function insertBefore (line 8853) | function insertBefore(parentInstance, child, beforeChild) {
function insertInContainerBefore (line 8857) | function insertInContainerBefore(container, child, beforeChild) {
function removeChild (line 8865) | function removeChild(parentInstance, child) {
function removeChildFromContainer (line 8869) | function removeChildFromContainer(container, child) {
function hideInstance (line 8877) | function hideInstance(instance) {
function hideTextInstance (line 8884) | function hideTextInstance(textInstance) {
function unhideInstance (line 8888) | function unhideInstance(instance, props) {
function unhideTextInstance (line 8896) | function unhideTextInstance(textInstance, text) {
function canHydrateInstance (line 8906) | function canHydrateInstance(instance, type, props) {
function canHydrateTextInstance (line 8914) | function canHydrateTextInstance(instance, text) {
function getNextHydratableSibling (line 8923) | function getNextHydratableSibling(instance) {
function getFirstHydratableChild (line 8932) | function getFirstHydratableChild(parentInstance) {
function hydrateInstance (line 8941) | function hydrateInstance(instance, type, props, rootContainerInstance, h...
function hydrateTextInstance (line 8954) | function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
function didNotMatchHydratedContainerTextInstance (line 8959) | function didNotMatchHydratedContainerTextInstance(parentContainer, textI...
function didNotMatchHydratedTextInstance (line 8965) | function didNotMatchHydratedTextInstance(parentType, parentProps, parent...
function didNotHydrateContainerInstance (line 8971) | function didNotHydrateContainerInstance(parentContainer, instance) {
function didNotHydrateInstance (line 8981) | function didNotHydrateInstance(parentType, parentProps, parentInstance, ...
function didNotFindHydratableContainerInstance (line 8991) | function didNotFindHydratableContainerInstance(parentContainer, type, pr...
function didNotFindHydratableContainerTextInstance (line 8997) | function didNotFindHydratableContainerTextInstance(parentContainer, text) {
function didNotFindHydratableInstance (line 9003) | function didNotFindHydratableInstance(parentType, parentProps, parentIns...
function didNotFindHydratableTextInstance (line 9009) | function didNotFindHydratableTextInstance(parentType, parentProps, paren...
function recordEffect (line 9182) | function recordEffect() {
function recordScheduleUpdate (line 9188) | function recordScheduleUpdate() {
function startRequestCallbackTimer (line 9199) | function startRequestCallbackTimer() {
function stopRequestCallbackTimer (line 9208) | function stopRequestCallbackTimer(didExpire, expirationTime) {
function startWorkTimer (line 9218) | function startWorkTimer(fiber) {
function cancelWorkTimer (line 9232) | function cancelWorkTimer(fiber) {
function stopWorkTimer (line 9244) | function stopWorkTimer(fiber) {
function stopFailedWorkTimer (line 9259) | function stopFailedWorkTimer(fiber) {
function startPhaseTimer (line 9275) | function startPhaseTimer(fiber, phase) {
function stopPhaseTimer (line 9289) | function stopPhaseTimer() {
function startWorkLoopTimer (line 9303) | function startWorkLoopTimer(nextUnitOfWork) {
function stopWorkLoopTimer (line 9318) | function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
function startCommitTimer (line 9342) | function startCommitTimer() {
function stopCommitTimer (line 9354) | function stopCommitTimer() {
function startCommitSnapshotEffectsTimer (line 9375) | function startCommitSnapshotEffectsTimer() {
function stopCommitSnapshotEffectsTimer (line 9385) | function stopCommitSnapshotEffectsTimer() {
function startCommitHostEffectsTimer (line 9396) | function startCommitHostEffectsTimer() {
function stopCommitHostEffectsTimer (line 9406) | function stopCommitHostEffectsTimer() {
function startCommitLifeCyclesTimer (line 9417) | function startCommitLifeCyclesTimer() {
function stopCommitLifeCyclesTimer (line 9427) | function stopCommitLifeCyclesTimer() {
function createCursor (line 9448) | function createCursor(defaultValue) {
function pop (line 9454) | function pop(cursor, fiber) {
function push (line 9479) | function push(cursor, value, fiber) {
function checkThatStackIsEmpty (line 9491) | function checkThatStackIsEmpty() {
function resetStackAfterFatalErrorInDev (line 9499) | function resetStackAfterFatalErrorInDev() {
function getUnmaskedContext (line 9527) | function getUnmaskedContext(workInProgress, Component, didPushOwnContext...
function cacheContext (line 9538) | function cacheContext(workInProgress, unmaskedContext, maskedContext) {
function getMaskedContext (line 9544) | function getMaskedContext(workInProgress, unmaskedContext) {
function hasContextChanged (line 9578) | function hasContextChanged() {
function isContextProvider (line 9582) | function isContextProvider(type) {
function popContext (line 9587) | function popContext(fiber) {
function popTopLevelContextObject (line 9592) | function popTopLevelContextObject(fiber) {
function pushTopLevelContextObject (line 9597) | function pushTopLevelContextObject(fiber, context, didChange) {
function processChildContext (line 9604) | function processChildContext(fiber, type, parentContext) {
function pushContextProvider (line 9649) | function pushContextProvider(workInProgress) {
function invalidateContextProvider (line 9665) | function invalidateContextProvider(workInProgress, type, didChange) {
function findCurrentUnmaskedContext (line 9689) | function findCurrentUnmaskedContext(fiber) {
function catchErrors (line 9717) | function catchErrors(fn) {
function injectInternals (line 9732) | function injectInternals(internals) {
function onCommitRoot (line 9770) | function onCommitRoot(root) {
function onCommitUnmount (line 9776) | function onCommitUnmount(fiber) {
function msToExpirationTime (line 9795) | function msToExpirationTime(ms) {
function expirationTimeToMs (line 9800) | function expirationTimeToMs(expirationTime) {
function ceiling (line 9804) | function ceiling(num, precision) {
function computeExpirationBucket (line 9808) | function computeExpirationBucket(currentTime, expirationInMs, bucketSize...
function computeAsyncExpiration (line 9815) | function computeAsyncExpiration(currentTime) {
function computeInteractiveExpiration (line 9833) | function computeInteractiveExpiration(currentTime) {
function FiberNode (line 9871) | function FiberNode(tag, pendingProps, key, mode) {
function shouldConstruct (line 9943) | function shouldConstruct(Component) {
function isSimpleFunctionComponent (line 9948) | function isSimpleFunctionComponent(type) {
function resolveLazyComponentTag (line 9952) | function resolveLazyComponentTag(Component) {
function createWorkInProgress (line 9968) | function createWorkInProgress(current, pendingProps, expirationTime) {
function createHostRootFiber (line 10034) | function createHostRootFiber(isConcurrent) {
function createFiberFromTypeAndProps (line 10047) | function createFiberFromTypeAndProps(type, // React$ElementType
function createFiberFromElement (line 10118) | function createFiberFromElement(element, mode, expirationTime) {
function createFiberFromFragment (line 10134) | function createFiberFromFragment(elements, mode, expirationTime, key) {
function createFiberFromProfiler (line 10140) | function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
function createFiberFromMode (line 10156) | function createFiberFromMode(pendingProps, mode, expirationTime, key) {
function createFiberFromSuspense (line 10168) | function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
function createFiberFromText (line 10180) | function createFiberFromText(content, mode, expirationTime) {
function createFiberFromHostInstanceForDeletion (line 10186) | function createFiberFromHostInstanceForDeletion() {
function createFiberFromPortal (line 10194) | function createFiberFromPortal(portal, mode, expirationTime) {
function assignFiberPropertiesInDEV (line 10207) | function assignFiberPropertiesInDEV(target, source) {
function createFiberRoot (line 10285) | function createFiberRoot(containerInfo, isConcurrent, hydrate) {
function markPendingPriorityLevel (line 10660) | function markPendingPriorityLevel(root, expirationTime) {
function markCommittedPriorityLevels (line 10686) | function markCommittedPriorityLevels(root, earliestRemainingTime) {
function hasLowerPriorityWork (line 10757) | function hasLowerPriorityWork(root, erroredExpirationTime) {
function isPriorityLevelSuspended (line 10764) | function isPriorityLevelSuspended(root, expirationTime) {
function markSuspendedPriorityLevel (line 10770) | function markSuspendedPriorityLevel(root, suspendedTime) {
function markPingedPriorityLevel (line 10811) | function markPingedPriorityLevel(root, pingedTime) {
function clearPing (line 10824) | function clearPing(root, completedTime) {
function findEarliestOutstandingPriorityLevel (line 10833) | function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
function didExpireAtExpirationTime (line 10847) | function didExpireAtExpirationTime(root, currentTime) {
function findNextExpirationTimeToWorkOn (line 10855) | function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
function createUpdateQueue (line 10982) | function createUpdateQueue(baseState) {
function cloneUpdateQueue (line 10997) | function cloneUpdateQueue(currentQueue) {
function createUpdate (line 11017) | function createUpdate(expirationTime) {
function appendUpdateToQueue (line 11030) | function appendUpdateToQueue(queue, update) {
function enqueueUpdate (line 11041) | function enqueueUpdate(fiber, update) {
function enqueueCapturedUpdate (line 11103) | function enqueueCapturedUpdate(workInProgress, update) {
function ensureWorkInProgressQueueIsAClone (line 11126) | function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
function getStateFromUpdate (line 11138) | function getStateFromUpdate(workInProgress, queue, update, prevState, ne...
function processUpdateQueue (line 11192) | function processUpdateQueue(workInProgress, queue, props, instance, rend...
function callCallback (line 11322) | function callCallback(callback, context) {
function resetHasForceUpdateBeforeProcessing (line 11327) | function resetHasForceUpdateBeforeProcessing() {
function checkHasForceUpdateAfterProcessing (line 11331) | function checkHasForceUpdateAfterProcessing() {
function commitUpdateQueue (line 11335) | function commitUpdateQueue(finishedWork, finishedQueue, instance, render...
function commitUpdateEffects (line 11358) | function commitUpdateEffects(effect, instance) {
function createCapturedValue (line 11369) | function createCapturedValue(value, source) {
function resetContextDependences (line 11391) | function resetContextDependences() {
function pushProvider (line 11399) | function pushProvider(providerFiber, nextValue) {
function popProvider (line 11421) | function popProvider(providerFiber) {
function calculateChangedBits (line 11434) | function calculateChangedBits(context, newValue, oldValue) {
function propagateContextChange (line 11452) | function propagateContextChange(workInProgress, context, changedBits, re...
function prepareToReadContext (line 11545) | function prepareToReadContext(workInProgress, renderExpirationTime) {
function readContext (line 11554) | function readContext(context, observedBits) {
function resolveCurrentlyRenderingFiber (line 11632) | function resolveCurrentlyRenderingFiber() {
function prepareToUseHooks (line 11637) | function prepareToUseHooks(current, workInProgress, nextRenderExpiration...
function finishHooks (line 11655) | function finishHooks(Component, props, children, refOrContext) {
function resetHooks (line 11709) | function resetHooks() {
function createHook (line 11732) | function createHook() {
function cloneHook (line 11744) | function cloneHook(hook) {
function createWorkInProgressHook (line 11756) | function createWorkInProgressHook() {
function createFunctionComponentUpdateQueue (line 11805) | function createFunctionComponentUpdateQueue() {
function basicStateReducer (line 11812) | function basicStateReducer(state, action) {
function useContext (line 11816) | function useContext(context, observedBits) {
function useState (line 11823) | function useState(initialState) {
function useReducer (line 11829) | function useReducer(reducer, initialState, initialAction) {
function pushCallback (line 11959) | function pushCallback(workInProgress, update) {
function pushEffect (line 11974) | function pushEffect(tag, create, destroy, inputs) {
function useRef (line 12000) | function useRef(initialValue) {
function useMutationEffect (line 12017) | function useMutationEffect(create, inputs) {
function useLayoutEffect (line 12021) | function useLayoutEffect(create, inputs) {
function useEffect (line 12025) | function useEffect(create, inputs) {
function useEffectImpl (line 12029) | function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
function useImperativeMethods (line 12048) | function useImperativeMethods(ref, create, inputs) {
function useCallback (line 12074) | function useCallback(callback, inputs) {
function useMemo (line 12091) | function useMemo(nextCreate, inputs) {
function dispatchAction (line 12110) | function dispatchAction(fiber, queue, action, callback) {
function inputsAreEqual (line 12177) | function inputsAreEqual(arr1, arr2) {
function requiredContext (line 12200) | function requiredContext(c) {
function getRootHostContainer (line 12205) | function getRootHostContainer() {
function pushHostContainer (line 12210) | function pushHostContainer(fiber, nextRootInstance) {
function popHostContainer (line 12230) | function popHostContainer(fiber) {
function getHostContext (line 12236) | function getHostContext() {
function pushHostContext (line 12241) | function pushHostContext(fiber) {
function popHostContext (line 12257) | function popHostContext(fiber) {
function getCommitTime (line 12271) | function getCommitTime() {
function recordCommitTime (line 12275) | function recordCommitTime() {
function startProfilerTimer (line 12282) | function startProfilerTimer(fiber) {
function stopProfilerTimerIfRunning (line 12294) | function stopProfilerTimerIfRunning(fiber) {
function stopProfilerTimerIfRunningAndRecordDelta (line 12301) | function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTim...
function readContext$1 (line 12318) | function readContext$1(contextType) {
function applyDerivedStateFromProps (line 12388) | function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStat...
function checkShouldComponentUpdate (line 12476) | function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newP...
function checkClassInstance (line 12497) | function checkClassInstance(workInProgress, ctor, newProps) {
function adoptClassInstance (line 12566) | function adoptClassInstance(workInProgress, instance) {
function constructClassInstance (line 12576) | function constructClassInstance(workInProgress, ctor, props, renderExpir...
function callComponentWillMount (line 12659) | function callComponentWillMount(workInProgress, instance) {
function callComponentWillReceiveProps (line 12680) | function callComponentWillReceiveProps(workInProgress, instance, newProp...
function mountClassInstance (line 12704) | function mountClassInstance(workInProgress, ctor, newProps, renderExpira...
function resumeMountClassInstance (line 12772) | function resumeMountClassInstance(workInProgress, ctor, newProps, render...
function updateClassInstance (line 12867) | function updateClassInstance(current, workInProgress, ctor, newProps, re...
function coerceRef (line 13021) | function coerceRef(returnFiber, current$$1, element) {
function throwOnInvalidObjectType (line 13070) | function throwOnInvalidObjectType(returnFiber, newChild) {
function warnOnFunctionType (line 13080) | function warnOnFunctionType() {
function ChildReconciler (line 13095) | function ChildReconciler(shouldTrackSideEffects) {
function cloneChildFibers (line 13894) | function cloneChildFibers(current$$1, workInProgress) {
function enterHydrationState (line 13920) | function enterHydrationState(fiber) {
function deleteHydratableInstance (line 13932) | function deleteHydratableInstance(returnFiber, instance) {
function insertNonHydratedInstance (line 13962) | function insertNonHydratedInstance(returnFiber, fiber) {
function tryHydrate (line 14006) | function tryHydrate(fiber, nextInstance) {
function tryToClaimNextHydratableInstance (line 14034) | function tryToClaimNextHydratableInstance(fiber) {
function prepareToHydrateHostInstance (line 14069) | function prepareToHydrateHostInstance(fiber, rootContainerInstance, host...
function prepareToHydrateHostTextInstance (line 14086) | function prepareToHydrateHostTextInstance(fiber) {
function popToNextHostParent (line 14122) | function popToNextHostParent(fiber) {
function popHydrationState (line 14130) | function popHydrationState(fiber) {
function resetHydrationState (line 14168) | function resetHydrationState() {
function readLazyComponentType (line 14178) | function readLazyComponentType(lazyComponent) {
function reconcileChildren (line 14239) | function reconcileChildren(current$$1, workInProgress, nextChildren, ren...
function forceUnmountCurrentAndReconcile (line 14257) | function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nex...
function updateForwardRef (line 14274) | function updateForwardRef(current$$1, workInProgress, Component, nextPro...
function updateMemoComponent (line 14296) | function updateMemoComponent(current$$1, workInProgress, Component, next...
function updateSimpleMemoComponent (line 14332) | function updateSimpleMemoComponent(current$$1, workInProgress, Component...
function updateFragment (line 14342) | function updateFragment(current$$1, workInProgress, renderExpirationTime) {
function updateMode (line 14348) | function updateMode(current$$1, workInProgress, renderExpirationTime) {
function updateProfiler (line 14354) | function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
function markRef (line 14364) | function markRef(current$$1, workInProgress) {
function updateFunctionComponent (line 14372) | function updateFunctionComponent(current$$1, workInProgress, Component, ...
function updateClassComponent (line 14393) | function updateClassComponent(current$$1, workInProgress, Component, nex...
function finishClassComponent (line 14432) | function finishClassComponent(current$$1, workInProgress, Component, sho...
function pushHostRootContext (line 14498) | function pushHostRootContext(workInProgress) {
function updateHostRoot (line 14509) | function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
function updateHostComponent (line 14553) | function updateHostComponent(current$$1, workInProgress, renderExpiratio...
function updateHostText (line 14592) | function updateHostText(current$$1, workInProgress) {
function resolveDefaultProps (line 14601) | function resolveDefaultProps(Component, baseProps) {
function mountLazyComponent (line 14616) | function mountLazyComponent(_current, workInProgress, elementType, updat...
function mountIncompleteClassComponent (line 14672) | function mountIncompleteClassComponent(_current, workInProgress, Compone...
function mountIndeterminateComponent (line 14707) | function mountIndeterminateComponent(_current, workInProgress, Component...
function updateSuspenseComponent (line 14825) | function updateSuspenseComponent(current$$1, workInProgress, renderExpir...
function updatePortalComponent (line 14982) | function updatePortalComponent(current$$1, workInProgress, renderExpirat...
function updateContextProvider (line 14998) | function updateContextProvider(current$$1, workInProgress, renderExpirat...
function updateContextConsumer (line 15039) | function updateContextConsumer(current$$1, workInProgress, renderExpirat...
function bailoutOnAlreadyFinishedWork (line 15105) | function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, render...
function beginWork (line 15133) | function beginWork(current$$1, workInProgress, renderExpirationTime) {
function markUpdate (line 15285) | function markUpdate(workInProgress) {
function markRef$1 (line 15291) | function markRef$1(workInProgress) {
function completeWork (line 15625) | function completeWork(current, workInProgress, renderExpirationTime) {
function shouldCaptureSuspense (line 15793) | function shouldCaptureSuspense(current, workInProgress) {
function showErrorDialog (line 15807) | function showErrorDialog(capturedError) {
function logCapturedError (line 15811) | function logCapturedError(capturedError) {
function logError (line 15876) | function logError(boundary, errorInfo) {
function safelyCallComponentWillUnmount (line 15922) | function safelyCallComponentWillUnmount(current$$1, instance) {
function safelyDetachRef (line 15932) | function safelyDetachRef(current$$1) {
function safelyCallDestroy (line 15949) | function safelyCallDestroy(current$$1, destroy) {
function commitBeforeMutationLifeCycles (line 15959) | function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
function commitHookEffectList (line 16006) | function commitHookEffectList(unmountTag, mountTag, finishedWork) {
function commitPassiveHookEffects (line 16032) | function commitPassiveHookEffects(finishedWork) {
function commitLifeCycles (line 16037) | function commitLifeCycles(finishedRoot, current$$1, finishedWork, commit...
function hideOrUnhideAllChildren (line 16199) | function hideOrUnhideAllChildren(finishedWork, isHidden) {
function commitAttachRef (line 16238) | function commitAttachRef(finishedWork) {
function commitDetachRef (line 16264) | function commitDetachRef(current$$1) {
function commitUnmount (line 16278) | function commitUnmount(current$$1) {
function commitNestedUnmounts (line 16333) | function commitNestedUnmounts(root) {
function detachFiber (line 16365) | function detachFiber(current$$1) {
function emptyPortalContainer (line 16379) | function emptyPortalContainer(current$$1) {
function commitContainer (line 16391) | function commitContainer(finishedWork) {
function getHostParentFiber (line 16426) | function getHostParentFiber(fiber) {
function isHostParent (line 16437) | function isHostParent(fiber) {
function getHostSibling (line 16441) | function getHostSibling(fiber) {
function commitPlacement (line 16482) | function commitPlacement(finishedWork) {
function unmountHostComponents (line 16559) | function unmountHostComponents(current$$1) {
function commitDeletion (line 16644) | function commitDeletion(current$$1) {
function commitWork (line 16656) | function commitWork(current$$1, finishedWork) {
function commitResetTextContent (line 16741) | function commitResetTextContent(current$$1) {
function createRootErrorUpdate (line 16748) | function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
function createClassErrorUpdate (line 16763) | function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
function throwException (line 16804) | function throwException(root, returnFiber, sourceFiber, value, renderExp...
function unwindWork (line 16983) | function unwindWork(workInProgress, renderExpirationTime) {
function unwindInterruptedWork (line 17058) | function unwindInterruptedWork(interruptedWork) {
function resetStack (line 17264) | function resetStack() {
function commitAllHostEffects (line 17285) | function commitAllHostEffects() {
function commitBeforeMutationLifecycles (line 17355) | function commitBeforeMutationLifecycles() {
function commitAllLifeCycles (line 17376) | function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
function commitPassiveEffects (line 17407) | function commitPassiveEffects(root, firstEffect) {
function isAlreadyFailedLegacyErrorBoundary (line 17444) | function isAlreadyFailedLegacyErrorBoundary(instance) {
function markLegacyErrorBoundaryAsFailed (line 17448) | function markLegacyErrorBoundaryAsFailed(instance) {
function flushPassiveEffects (line 17456) | function flushPassiveEffects() {
function commitRoot (line 17465) | function commitRoot(root, finishedWork) {
function resetChildExpirationTime (line 17689) | function resetChildExpirationTime(workInProgress, renderTime) {
function completeUnitOfWork (line 17750) | function completeUnitOfWork(workInProgress) {
function performUnitOfWork (line 17917) | function performUnitOfWork(workInProgress) {
function workLoop (line 17976) | function workLoop(isYieldy) {
function renderRoot (line 17990) | function renderRoot(root, isYieldy, isExpired) {
function captureCommitPhaseError (line 18223) | function captureCommitPhaseError(sourceFiber, value) {
function computeThreadID (line 18262) | function computeThreadID(expirationTime, interactionThreadID) {
function computeUniqueAsyncExpiration (line 18268) | function computeUniqueAsyncExpiration() {
function computeExpirationForFiber (line 18281) | function computeExpirationForFiber(currentTime, fiber) {
function renderDidSuspend (line 18328) | function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
function renderDidError (line 18335) | function renderDidError() {
function retrySuspendedRoot (line 18339) | function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedT...
function scheduleWorkToRoot (line 18392) | function scheduleWorkToRoot(fiber, expirationTime) {
function scheduleWork (line 18485) | function scheduleWork(fiber, expirationTime) {
function syncUpdates (line 18513) | function syncUpdates(fn, a, b, c, d) {
function recomputeCurrentRendererTime (line 18558) | function recomputeCurrentRendererTime() {
function scheduleCallbackWithExpirationTime (line 18563) | function scheduleCallbackWithExpirationTime(root, expirationTime) {
function onFatal (line 18592) | function onFatal(root) {
function onComplete (line 18596) | function onComplete(root, finishedWork, expirationTime) {
function onSuspend (line 18601) | function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpi...
function onYield (line 18613) | function onYield(root) {
function onTimeout (line 18617) | function onTimeout(root, finishedWork, suspendedExpirationTime) {
function onCommit (line 18629) | function onCommit(root, expirationTime) {
function requestCurrentTime (line 18634) | function requestCurrentTime() {
function requestWork (line 18677) | function requestWork(root, expirationTime) {
function addRootToSchedule (line 18705) | function addRootToSchedule(root, expirationTime) {
function findHighestPriorityRoot (line 18729) | function findHighestPriorityRoot() {
function performAsyncWork (line 18790) | function performAsyncWork(dl) {
function performSyncWork (line 18810) | function performSyncWork() {
function performWork (line 18814) | function performWork(minExpirationTime, dl) {
function flushRoot (line 18864) | function flushRoot(root, expirationTime) {
function finishRendering (line 18876) | function finishRendering() {
function performWorkOnRoot (line 18904) | function performWorkOnRoot(root, expirationTime, isExpired) {
function completeRoot (line 18975) | function completeRoot(root, finishedWork, expirationTime) {
function shouldYield (line 19012) | function shouldYield() {
function onUncaughtError (line 19025) | function onUncaughtError(error) {
function batchedUpdates$1 (line 19038) | function batchedUpdates$1(fn, a) {
function unbatchedUpdates (line 19053) | function unbatchedUpdates(fn, a) {
function flushSync (line 19067) | function flushSync(fn, a) {
function interactiveUpdates$1 (line 19079) | function interactiveUpdates$1(fn, a, b) {
function flushInteractiveUpdates$1 (line 19107) | function flushInteractiveUpdates$1() {
function flushControlled (line 19115) | function flushControlled(fn) {
function getContextForSubtree (line 19140) | function getContextForSubtree(parentComponent) {
function scheduleRootUpdate (line 19158) | function scheduleRootUpdate(current$$1, element, expirationTime, callbac...
function updateContainerAtExpirationTime (line 19184) | function updateContainerAtExpirationTime(element, container, parentCompo...
function findHostInstance (line 19210) | function findHostInstance(component) {
function findHostInstanceWithWarning (line 19226) | function findHostInstanceWithWarning(component, methodName) {
function createContainer (line 19256) | function createContainer(containerInfo, isConcurrent, hydrate) {
function updateContainer (line 19260) | function updateContainer(element, container, parentComponent, callback) {
function getPublicRootInstance (line 19267) | function getPublicRootInstance(container) {
function findHostInstanceWithNoPortals (line 19280) | function findHostInstanceWithNoPortals(fiber) {
function injectIntoDevTools (line 19288) | function injectIntoDevTools(devToolsConfig) {
function createPortal$1 (line 19312) | function createPortal$1(children, containerInfo,
function ReactBatch (line 19372) | function ReactBatch(root) {
function ReactWork (line 19477) | function ReactWork() {
function ReactRoot (line 19512) | function ReactRoot(container, isConcurrent, hydrate) {
function isValidContainer (line 19588) | function isValidContainer(node) {
function getReactRootElementInContainer (line 19592) | function getReactRootElementInContainer(container) {
function shouldHydrateDueToLegacyHeuristic (line 19604) | function shouldHydrateDueToLegacyHeuristic(container) {
function legacyCreateRootFromDOMContainer (line 19613) | function legacyCreateRootFromDOMContainer(container, forceHydrate) {
function legacyRenderSubtreeIntoContainer (line 19640) | function legacyRenderSubtreeIntoContainer(parentComponent, children, con...
function createPortal (line 19687) | function createPortal(children, container) {
function createRoot (line 19790) | function createRoot(container, options) {
FILE: dist/resources/regenerator-runtime.js
function wrap (line 19) | function wrap(innerFn, outerFn, self, tryLocsList) {
function tryCatch (line 43) | function tryCatch(fn, obj, arg) {
function Generator (line 64) | function Generator() {}
function GeneratorFunction (line 65) | function GeneratorFunction() {}
function GeneratorFunctionPrototype (line 66) | function GeneratorFunctionPrototype() {}
function defineIteratorMethods (line 94) | function defineIteratorMethods(prototype) {
function AsyncIterator (line 133) | function AsyncIterator(generator) {
function makeInvokeMethod (line 221) | function makeInvokeMethod(innerFn, self, context) {
function maybeInvokeDelegate (line 303) | function maybeInvokeDelegate(delegate, context) {
function pushTryEntry (line 401) | function pushTryEntry(locs) {
function resetTryEntry (line 416) | function resetTryEntry(entry) {
function Context (line 423) | function Context(tryLocsList) {
function values (line 459) | function values(iterable) {
function doneResult (line 495) | function doneResult() {
function handle (line 546) | function handle(loc, caught) {
FILE: dist/resources/vue@2.5.17.js
function isUndef (line 18) | function isUndef (v) {
function isDef (line 22) | function isDef (v) {
function isTrue (line 26) | function isTrue (v) {
function isFalse (line 30) | function isFalse (v) {
function isPrimitive (line 37) | function isPrimitive (value) {
function isObject (line 52) | function isObject (obj) {
function toRawType (line 61) | function toRawType (value) {
function isPlainObject (line 69) | function isPlainObject (obj) {
function isRegExp (line 73) | function isRegExp (v) {
function isValidArrayIndex (line 80) | function isValidArrayIndex (val) {
function toString (line 88) | function toString (val) {
function toNumber (line 100) | function toNumber (val) {
function makeMap (line 109) | function makeMap (
function remove (line 136) | function remove (arr, item) {
function hasOwn (line 149) | function hasOwn (obj, key) {
function cached (line 156) | function cached (fn) {
function polyfillBind (line 196) | function polyfillBind (fn, ctx) {
function nativeBind (line 210) | function nativeBind (fn, ctx) {
function toArray (line 221) | function toArray (list, start) {
function extend (line 234) | function extend (to, _from) {
function toObject (line 244) | function toObject (arr) {
function noop (line 259) | function noop (a, b, c) {}
function genStaticKeys (line 274) | function genStaticKeys (modules) {
function looseEqual (line 284) | function looseEqual (a, b) {
function looseIndexOf (line 317) | function looseIndexOf (arr, val) {
function once (line 327) | function once (fn) {
function isReserved (line 454) | function isReserved (str) {
function def (line 462) | function def (obj, key, val, enumerable) {
function parsePath (line 475) | function parsePath (path) {
function isNative (line 544) | function isNative (Ctor) {
function Set (line 560) | function Set () {
function pushTarget (line 713) | function pushTarget (_target) {
function popTarget (line 718) | function popTarget () {
function createTextVNode (line 778) | function createTextVNode (val) {
function cloneVNode (line 786) | function cloneVNode (vnode) {
function toggleObserving (line 865) | function toggleObserving (value) {
function protoAugment (line 918) | function protoAugment (target, src, keys) {
function copyAugment (line 929) | function copyAugment (target, src, keys) {
function observe (line 941) | function observe (value, asRootData) {
function defineReactive (line 966) | function defineReactive (
function set (line 1030) | function set (target, key, val) {
function del (line 1065) | function del (target, key) {
function dependArray (line 1097) | function dependArray (value) {
function mergeData (line 1134) | function mergeData (to, from) {
function mergeDataOrFn (line 1154) | function mergeDataOrFn (
function mergeHook (line 1221) | function mergeHook (
function mergeAssets (line 1245) | function mergeAssets (
function checkComponents (line 1335) | function checkComponents (options) {
function validateComponentName (line 1341) | function validateComponentName (name) {
function normalizeProps (line 1361) | function normalizeProps (options, vm) {
function normalizeInject (line 1398) | function normalizeInject (options, vm) {
function normalizeDirectives (line 1425) | function normalizeDirectives (options) {
function assertObjectType (line 1437) | function assertObjectType (name, value, vm) {
function mergeOptions (line 1451) | function mergeOptions (
function resolveAsset (line 1498) | function resolveAsset (
function validateProp (line 1528) | function validateProp (
function getPropDefaultValue (line 1570) | function getPropDefaultValue (vm, prop, key) {
function assertProp (line 1603) | function assertProp (
function assertType (line 1655) | function assertType (value, type) {
function getType (line 1683) | function getType (fn) {
function isSameType (line 1688) | function isSameType (a, b) {
function getTypeIndex (line 1692) | function getTypeIndex (type, expectedTypes) {
function handleError (line 1706) | function handleError (err, vm, info) {
function globalHandleError (line 1726) | function globalHandleError (err, vm, info) {
function logError (line 1737) | function logError (err, vm, info) {
function flushCallbacks (line 1755) | function flushCallbacks () {
function withMacroTask (line 1825) | function withMacroTask (fn) {
function nextTick (line 1834) | function nextTick (cb, ctx) {
function traverse (line 1972) | function traverse (val) {
function _traverse (line 1977) | function _traverse (val, seen) {
function createFnInvoker (line 2017) | function createFnInvoker (fns) {
function updateListeners (line 2036) | function updateListeners (
function mergeVNodeHook (line 2074) | function mergeVNodeHook (def, hookKey, hook) {
function extractPropsFromVNodeData (line 2109) | function extractPropsFromVNodeData (
function checkProp (line 2150) | function checkProp (
function simpleNormalizeChildren (line 2189) | function simpleNormalizeChildren (children) {
function normalizeChildren (line 2202) | function normalizeChildren (children) {
function isTextNode (line 2210) | function isTextNode (node) {
function normalizeArrayChildren (line 2214) | function normalizeArrayChildren (children, nestedIndex) {
function ensureCtor (line 2264) | function ensureCtor (comp, base) {
function createAsyncPlaceholder (line 2276) | function createAsyncPlaceholder (
function resolveAsyncComponent (line 2289) | function resolveAsyncComponent (
function isAsyncPlaceholder (line 2391) | function isAsyncPlaceholder (node) {
function getFirstComponentChild (line 2397) | function getFirstComponentChild (children) {
function initEvents (line 2412) | function initEvents (vm) {
function add (line 2424) | function add (event, fn, once) {
function remove$1 (line 2432) | function remove$1 (event, fn) {
function updateComponentListeners (line 2436) | function updateComponentListeners (
function eventsMixin (line 2446) | function eventsMixin (Vue) {
function resolveSlots (line 2555) | function resolveSlots (
function isWhitespace (line 2595) | function isWhitespace (node) {
function resolveScopedSlots (line 2599) | function resolveScopedSlots (
function initLifecycle (line 2619) | function initLifecycle (vm) {
function lifecycleMixin (line 2645) | function lifecycleMixin (Vue) {
function mountComponent (line 2739) | function mountComponent (
function updateChildComponent (line 2807) | function updateChildComponent (
function isInInactiveTree (line 2873) | function isInInactiveTree (vm) {
function activateChildComponent (line 2880) | function activateChildComponent (vm, direct) {
function deactivateChildComponent (line 2898) | function deactivateChildComponent (vm, direct) {
function callHook (line 2914) | function callHook (vm, hook) {
function resetSchedulerState (line 2949) | function resetSchedulerState () {
function flushSchedulerQueue (line 2961) | function flushSchedulerQueue () {
function callUpdatedHooks (line 3016) | function callUpdatedHooks (queue) {
function queueActivatedComponent (line 3031) | function queueActivatedComponent (vm) {
function callActivatedHooks (line 3038) | function callActivatedHooks (queue) {
function queueWatcher (line 3050) | function queueWatcher (watcher) {
function proxy (line 3293) | function proxy (target, sourceKey, key) {
function initState (line 3303) | function initState (vm) {
function initProps (line 3319) | function initProps (vm, propsOptions) {
function initData (line 3367) | function initData (vm) {
function getData (line 3409) | function getData (data, vm) {
function initComputed (line 3424) | function initComputed (vm, computed) {
function defineComputed (line 3465) | function defineComputed (
function createComputedGetter (line 3498) | function createComputedGetter (key) {
function initMethods (line 3513) | function initMethods (vm, methods) {
function initWatch (line 3541) | function initWatch (vm, watch) {
function createWatcher (line 3554) | function createWatcher (
function stateMixin (line 3570) | function stateMixin (Vue) {
function initProvide (line 3619) | function initProvide (vm) {
function initInjections (line 3628) | function initInjections (vm) {
function resolveInject (line 3649) | function resolveInject (inject, vm) {
function renderList (line 3691) | function renderList (
function renderSlot (line 3725) | function renderSlot (
function resolveFilter (line 3774) | function resolveFilter (id) {
function isKeyNotMatch (line 3780) | function isKeyNotMatch (expect, actual) {
function checkKeyCodes (line 3793) | function checkKeyCodes (
function bindObjectProps (line 3815) | function bindObjectProps (
function renderStatic (line 3869) | function renderStatic (
function markOnce (line 3894) | function markOnce (
function markStatic (line 3903) | function markStatic (
function markStaticNode (line 3919) | function markStaticNode (node, key, isOnce) {
function bindObjectListeners (line 3927) | function bindObjectListeners (data, value) {
function installRenderHelpers (line 3948) | function installRenderHelpers (target) {
function FunctionalRenderContext (line 3968) | function FunctionalRenderContext (
function createFunctionalComponent (line 4027) | function createFunctionalComponent (
function cloneAndMarkFunctionalResult (line 4068) | function cloneAndMarkFunctionalResult (vnode, data, contextVm, options) {
function mergeProps (line 4081) | function mergeProps (to, from) {
function createComponent (line 4182) | function createComponent (
function createComponentInstanceForVnode (line 4285) | function createComponentInstanceForVnode (
function installComponentHooks (line 4307) | function installComponentHooks (data) {
function transformModel (line 4317) | function transformModel (options, data) {
function createElement (line 4335) | function createElement (
function _createElement (line 4354) | function _createElement (
function applyNS (line 4439) | function applyNS (vnode, ns, force) {
function registerDeepBindings (line 4460) | function registerDeepBindings (data) {
function initRender (line 4471) | function initRender (vm) {
function renderMixin (line 4503) | function renderMixin (Vue) {
function initMixin (line 4575) | function initMixin (Vue) {
function initInternalComponent (line 4632) | function initInternalComponent (vm, options) {
function resolveConstructorOptions (line 4653) | function resolveConstructorOptions (Ctor) {
function resolveModifiedOptions (line 4677) | function resolveModifiedOptions (Ctor) {
function dedupe (line 4691) | function dedupe (latest, extended, sealed) {
function Vue (line 4710) | function Vue (options) {
function initUse (line 4727) | function initUse (Vue) {
function initMixin$1 (line 4749) | function initMixin$1 (Vue) {
function initExtend (line 4758) | function initExtend (Vue) {
function initProps$1 (line 4834) | function initProps$1 (Comp) {
function initComputed$1 (line 4841) | function initComputed$1 (Comp) {
function initAssetRegisters (line 4850) | function initAssetRegisters (Vue) {
function getComponentName (line 4882) | function getComponentName (opts) {
function matches (line 4886) | function matches (pattern, name) {
function pruneCache (line 4898) | function pruneCache (keepAliveInstance, filter) {
function pruneCacheEntry (line 4913) | function pruneCacheEntry (
function initGlobalAPI (line 5016) | function initGlobalAPI (Vue) {
function genClassForVnode (line 5124) | function genClassForVnode (vnode) {
function mergeClassData (line 5142) | function mergeClassData (child, parent) {
function renderClass (line 5151) | function renderClass (
function concat (line 5162) | function concat (a, b) {
function stringifyClass (line 5166) | function stringifyClass (value) {
function stringifyArray (line 5180) | function stringifyArray (value) {
function stringifyObject (line 5192) | function stringifyObject (value) {
function getTagNamespace (line 5239) | function getTagNamespace (tag) {
function isUnknownElement (line 5251) | function isUnknownElement (tag) {
function query (line 5283) | function query (el) {
function createElement$1 (line 5300) | function createElement$1 (tagName, vnode) {
function createElementNS (line 5312) | function createElementNS (namespace, tagName) {
function createTextNode (line 5316) | function createTextNode (text) {
function createComment (line 5320) | function createComment (text) {
function insertBefore (line 5324) | function insertBefore (parentNode, newNode, referenceNode) {
function removeChild (line 5328) | function removeChild (node, child) {
function appendChild (line 5332) | function appendChild (node, child) {
function parentNode (line 5336) | function parentNode (node) {
function nextSibling (line 5340) | function nextSibling (node) {
function tagName (line 5344) | function tagName (node) {
function setTextContent (line 5348) | function setTextContent (node, text) {
function setStyleScope (line 5352) | function setStyleScope (node, scopeId) {
function registerRef (line 5389) | function registerRef (vnode, isRemoval) {
function sameVnode (line 5432) | function sameVnode (a, b) {
function sameInputType (line 5449) | function sameInputType (a, b) {
function createKeyToOldIdx (line 5457) | function createKeyToOldIdx (children, beginIdx, endIdx) {
function createPatchFunction (line 5467) | function createPatchFunction (backend) {
function updateDirectives (line 6181) | function updateDirectives (oldVnode, vnode) {
function _update (line 6187) | function _update (oldVnode, vnode) {
function normalizeDirectives$1 (line 6249) | function normalizeDirectives$1 (
function getRawDirName (line 6272) | function getRawDirName (dir) {
function callHook$1 (line 6276) | function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
function updateAttrs (line 6294) | function updateAttrs (oldVnode, vnode) {
function setAttr (line 6335) | function setAttr (el, key, value) {
function baseSetAttr (line 6364) | function baseSetAttr (el, key, value) {
function updateClass (line 6396) | function updateClass (oldVnode, vnode) {
function parseFilters (line 6436) | function parseFilters (exp) {
function wrapFilter (line 6518) | function wrapFilter (exp, filter) {
function baseWarn (line 6532) | function baseWarn (msg) {
function pluckModuleFunction (line 6536) | function pluckModuleFunction (
function addProp (line 6545) | function addProp (el, name, value) {
function addAttr (line 6550) | function addAttr (el, name, value) {
function addRawAttr (line 6556) | function addRawAttr (el, name, value) {
function addDirective (line 6561) | function addDirective (
function addHandler (line 6573) | function addHandler (
function getBindingAttr (line 6649) | function getBindingAttr (
function getAndRemoveAttr (line 6671) | function getAndRemoveAttr (
function genComponentModel (line 6
Condensed preview — 107 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6,690K chars).
[
{
"path": ".eslintrc",
"chars": 4836,
"preview": "{\n \"env\": {\n \"browser\": true,\n \"es6\": true,\n \"node\": true\n },\n\n \"globals\": {\n \"document\": false,\n \"esc"
},
{
"path": ".gitignore",
"chars": 941,
"preview": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directo"
},
{
"path": ".npmignore",
"chars": 98,
"preview": "demoit.png\nsrc\nwebpack.config.js\nwebpack.config.prod.js\n*.log\nyarn.lock\nscripts\nNOTES\n_assets\n.tmp"
},
{
"path": "LICENSE",
"chars": 1072,
"preview": "MIT License\n\nCopyright (c) 2018 Krasimir Tsonev\n\nPermission is hereby granted, free of charge, to any person obtaining a"
},
{
"path": "README.md",
"chars": 3217,
"preview": "\n\n\n# **Demoit** is the front-end app behind [Po"
},
{
"path": "dist/demoit.js",
"chars": 105671,
"preview": "!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define"
},
{
"path": "dist/index.html",
"chars": 2123,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Demoit</title>\n <link rel=\"stylesheet\" href=\""
},
{
"path": "dist/resources/editor.js",
"chars": 1593401,
"preview": "!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define"
},
{
"path": "dist/resources/lodash@4.16.0.js",
"chars": 531921,
"preview": "/**\n * @license\n * lodash <https://lodash.com/>\n * Copyright jQuery Foundation and other contributors <https://jquery.or"
},
{
"path": "dist/resources/marked@0.3.6.js",
"chars": 22929,
"preview": "/**\n * marked - a markdown parser\n * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/"
},
{
"path": "dist/resources/react-16.7.0-alpha.0.js",
"chars": 99056,
"preview": "/** @license React v16.7.0-alpha.0\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * "
},
{
"path": "dist/resources/react-dom.16.7.0-alpha.0.js",
"chars": 723638,
"preview": "/** @license React v16.7.0-alpha.0\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *"
},
{
"path": "dist/resources/regenerator-runtime.js",
"chars": 24076,
"preview": "/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n"
},
{
"path": "dist/resources/state-example.json",
"chars": 1888,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": true,\n \"layout\": {\n \"elements\": [\n {\n \"na"
},
{
"path": "dist/resources/state-example2.json",
"chars": 942,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": false,\n \"layout\": {\n \"elements\": [\n {\n \"n"
},
{
"path": "dist/resources/vue@2.5.17.js",
"chars": 289303,
"preview": "/*!\n * Vue.js v2.5.17\n * (c) 2014-2018 Evan You\n * Released under the MIT License.\n */\n(function (global, factory) {\n\tty"
},
{
"path": "dist/sandbox.html",
"chars": 23813,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"Cache-control\" content=\"publi"
},
{
"path": "dist/styles.css",
"chars": 22368,
"preview": ".CodeMirror{font-family:'Fira Mono',monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.Co"
},
{
"path": "package.json",
"chars": 3184,
"preview": "{\n \"name\": \"demoit\",\n \"version\": \"7.10.0\",\n \"description\": \"A live coding tool\",\n \"main\": \"index.js\",\n \"repository\""
},
{
"path": "samples/Canvas.json",
"chars": 3587,
"preview": "{\n \"editor\": {\n \"theme\": \"dark\",\n \"statusBar\": true,\n \"layout\": {\n \"name\": \"layoutEO\",\n \"direction\":"
},
{
"path": "samples/HTML+CSS.json",
"chars": 852,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": true,\n \"layout\": {\n \"name\": \"default\",\n \"direction\":"
},
{
"path": "samples/React.json",
"chars": 1418,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": true,\n \"layout\": {\n \"name\": \"layoutBottom\",\n \"direct"
},
{
"path": "samples/Vue.json",
"chars": 1176,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": true,\n \"layout\": {\n \"name\": \"default\",\n \"direction\":"
},
{
"path": "samples/index.html",
"chars": 2308,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, in"
},
{
"path": "scripts/zipit.js",
"chars": 254,
"preview": "var zipFolder = require('zip-folder');\n\nzipFolder(__dirname + '/../dist', __dirname + '/../demoit.zip', function (err) {"
},
{
"path": "src/css/codemirror.css",
"chars": 8481,
"preview": "/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: 'Fira Mon"
},
{
"path": "src/css/dark_theme.css",
"chars": 2738,
"preview": ".cm-s-dark.CodeMirror {\n background: #20303a;\n color: #f3f3f3; }\n\n.cm-s-dark .CodeMirror-gutters {\n background: #2030"
},
{
"path": "src/css/la.css",
"chars": 1645,
"preview": ".la {\n position: relative;\n width: 100%;\n height: 100%;\n}\n.la-block {\n box-sizing: border-box;\n height: 100%;\n max"
},
{
"path": "src/css/light_theme.css",
"chars": 2616,
"preview": " .cm-s-light.CodeMirror {\n background: #fff;\n color: #24292e; }\n\n.cm-s-light .CodeMirror-gutters {\n background: #fff;"
},
{
"path": "src/css/styles.css",
"chars": 13553,
"preview": "html {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n}\n*, *:before, *:after {\n box-sizing: inherit;\n}\nbody {"
},
{
"path": "src/index.html",
"chars": 2123,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Demoit</title>\n <link rel=\"stylesheet\" href=\""
},
{
"path": "src/js/__tests__/commitDiff.spec.js",
"chars": 1881,
"preview": "/* eslint-disable quotes */\nconst commitDiff = require('../utils/commitDiff');\n\ndescribe('Given the Story commit diff he"
},
{
"path": "src/js/annotate.js",
"chars": 1269,
"preview": "/* eslint-disable max-len */\nimport el from './utils/element';\n\nexport default function (state) {\n if (!el.exists('#ann"
},
{
"path": "src/js/console.js",
"chars": 1826,
"preview": "/* eslint-disable quotes */\nimport el from './utils/element';\n\nfunction htmlEncode(str) {\n if (typeof str !== 'string')"
},
{
"path": "src/js/constants.js",
"chars": 531,
"preview": "function matchAgainstURL(pattern) {\n return window.location.href.match(pattern);\n}\n\nexport const DEBUG = false;\n\nexport"
},
{
"path": "src/js/dependencies.js",
"chars": 1734,
"preview": "const LOADED_FILES_CACHE = {};\n\nconst addJSFile = function (path, done) {\n if (LOADED_FILES_CACHE[path]) return done();"
},
{
"path": "src/js/download.js",
"chars": 1791,
"preview": "/* eslint-disable no-undef */\nimport { load as loadDependencies } from './dependencies';\nimport { clone } from './utils'"
},
{
"path": "src/js/editor.js",
"chars": 4389,
"preview": "/* eslint-disable no-use-before-define */\nimport el from './utils/element';\nimport executeCode from './execute';\nimport "
},
{
"path": "src/js/execute.js",
"chars": 1808,
"preview": "/* eslint-disable no-new-func */\nimport transpile from './utils/transpile';\n\nconst getExt = file => file.split(/\\./).pop"
},
{
"path": "src/js/index.js",
"chars": 2745,
"preview": "/* eslint-disable no-use-before-define, no-sequences */\nimport pkg from '../../package.json';\nimport el from './utils/el"
},
{
"path": "src/js/layout.js",
"chars": 3639,
"preview": "/* eslint-disable no-undef */\nimport el from './utils/element';\nimport setTheme from './utils/setTheme';\nimport { IS_PRO"
},
{
"path": "src/js/output.js",
"chars": 1813,
"preview": "import el from './utils/element';\nimport { DEBUG } from './constants';\n\nvar m = 0;\nconst markers = {};\nconst DEFAULT_HIN"
},
{
"path": "src/js/popups/confirmPopUp.js",
"chars": 699,
"preview": "import { CHECK_ICON, CLOSE_ICON } from '../utils/icons';\nimport createPopup from './popup';\n\nexport default function con"
},
{
"path": "src/js/popups/editFilePopUp.js",
"chars": 1498,
"preview": "/* eslint-disable max-len, no-sequences */\nimport createPopup from './popup';\nimport { TRASH_ICON, CHECK_ICON, DOT_CIRCL"
},
{
"path": "src/js/popups/editNamePopUp.js",
"chars": 1923,
"preview": "/* eslint-disable max-len */\nimport createPopup from './popup';\nimport { CHECK_ICON } from '../utils/icons';\n\nconst ENTE"
},
{
"path": "src/js/popups/newFilePopUp.js",
"chars": 840,
"preview": "import createPopup from './popup';\nimport { CHECK_ICON } from '../utils/icons';\n\nconst ENTER_KEY = 13;\n\nexport default f"
},
{
"path": "src/js/popups/popup.js",
"chars": 2359,
"preview": "/* eslint-disable max-len, no-use-before-define */\nimport el from '../utils/element';\nimport { CLOSE_ICON } from '../uti"
},
{
"path": "src/js/popups/settingsPopUp.js",
"chars": 3371,
"preview": "/* eslint-disable max-len */\nimport Layout from 'layout-architect';\nimport createPopup from './popup';\nimport { LAYOUT_B"
},
{
"path": "src/js/providers/api.js",
"chars": 1390,
"preview": "/* eslint-disable consistent-return, no-use-before-define */\nimport { SAVE_DEMO_URL, GET_DEMOS_URL } from '../constants'"
},
{
"path": "src/js/settings.js",
"chars": 729,
"preview": "import settingsPopUp from './popups/settingsPopUp';\nimport download from './download';\n\nconst filterDeps = deps => deps."
},
{
"path": "src/js/state.js",
"chars": 7258,
"preview": "/* eslint-disable no-use-before-define, no-undef */\nimport gitfred from 'gitfred';\nimport {\n getParam,\n readFromJSONFi"
},
{
"path": "src/js/statusBar.js",
"chars": 5310,
"preview": "/* eslint-disable max-len, no-sequences */\nimport el from './utils/element';\nimport { CLOSE_ICON, PLUS_ICON, SETTINGS_IC"
},
{
"path": "src/js/story/codeMirror.js",
"chars": 1068,
"preview": "/* eslint-disable no-sequences */\n\nimport defineCodeMirrorCommands from '../utils/codeMirrorCommands';\n\nexport default f"
},
{
"path": "src/js/story/getTitleFromCommitMessage.js",
"chars": 221,
"preview": "import { truncate } from '../utils';\nimport cleanUpMarkdown from '../utils/cleanUpMarkdown';\n\nexport default function ge"
},
{
"path": "src/js/story/index.js",
"chars": 6607,
"preview": "/* eslint-disable max-len, no-use-before-define, no-sequences, no-undef */\nimport el from '../utils/element';\nimport com"
},
{
"path": "src/js/story/renderCommits.js",
"chars": 3304,
"preview": "/* eslint-disable max-len, no-use-before-define */\nimport { CHECK_ICON, CLOSE_ICON, TRASH_ICON, DOT_CIRCLE, BOOK } from "
},
{
"path": "src/js/story/renderDiffs.js",
"chars": 1801,
"preview": "/* eslint-disable no-use-before-define */\n\nexport default function renderDiffs(git, diffs) {\n if (diffs.length === 0) {"
},
{
"path": "src/js/story/renderGraph.js",
"chars": 1270,
"preview": "/* eslint-disable no-use-before-define, max-len */\n\nimport { connectCommits, empty as emptySVGGraph } from '../utils/svg"
},
{
"path": "src/js/story/setAnnotationLink.js",
"chars": 760,
"preview": "export default function setAnnotationLink(editor, code, list, activeFile) {\n let thingToInsert = '';\n\n try {\n let {"
},
{
"path": "src/js/storyPreview.js",
"chars": 1264,
"preview": "/* eslint-disable max-len */\nimport el from './utils/element';\n\nexport default function (state) {\n if (!el.exists('#pre"
},
{
"path": "src/js/storyReadOnly.js",
"chars": 3209,
"preview": "/* eslint-disable max-len, no-sequences */\nimport el from './utils/element';\nimport commitDiff from './utils/commitDiff'"
},
{
"path": "src/js/utils/cleanUpMarkdown.js",
"chars": 3664,
"preview": "/*\n\nSource: https://github.com/stiang/remove-markdown\nAuthor: https://github.com/stiang\n\nThe MIT License (MIT)\n\nCopyrigh"
},
{
"path": "src/js/utils/codeMirrorCommands.js",
"chars": 1281,
"preview": "function isSelectedRange(ranges, from, to) {\n for (var i = 0; i < ranges.length; i++)\n if (ranges[i].from() == from "
},
{
"path": "src/js/utils/commitDiff.js",
"chars": 1015,
"preview": "const gitfred = require('gitfred');\n\nconst git = gitfred();\nconst toDict = arr => arr.reduce((dict, file) => {\n dict[fi"
},
{
"path": "src/js/utils/element.js",
"chars": 4935,
"preview": "var createdElements = [];\n\nexport default function el(selector, parent = document, fallbackToEmpty = false, relaxedClean"
},
{
"path": "src/js/utils/executeCSS.js",
"chars": 818,
"preview": "const STYLES_CACHE = {};\nconst guaranteeValidIdName = filename => filename.replace(/\\./g, '_');\n\nexport const injectCSS "
},
{
"path": "src/js/utils/icons.js",
"chars": 7201,
"preview": "/* eslint-disable max-len */\n\nexport const TRASH_ICON = (size = 20) => `<svg width=\"${ size }\" height=\"${ size }\" viewBo"
},
{
"path": "src/js/utils/index.js",
"chars": 3508,
"preview": "export const debounce = function (func, wait, immediate) {\n\tvar timeout;\n\n\treturn function () {\n\t\tvar context = this, ar"
},
{
"path": "src/js/utils/localStorage.js",
"chars": 656,
"preview": "const AVAILABLE = (function () {\n const test = 'test';\n\n try {\n localStorage.setItem(test, test);\n localStorage."
},
{
"path": "src/js/utils/setTheme.js",
"chars": 135,
"preview": "import el from './element';\n\nexport default function setTheme(theme) {\n el.withRelaxedCleanup('.app').attr('class', 'ap"
},
{
"path": "src/js/utils/svg.js",
"chars": 1278,
"preview": "function createSVG() {\n return document.getElementById('svg-canvas');\n}\nfunction drawCircle(x, y, radius, color) {\n co"
},
{
"path": "src/js/utils/transpile.js",
"chars": 357,
"preview": "const OPTIONS = {\n presets: [\n 'react',\n ['es2015',\n { 'modules': false }\n ],\n 'es2016',\n 'es2017',"
},
{
"path": "src/js-vendor/babel-plugin-transform-es2015-modules-commonjs@6.26.2.js",
"chars": 416692,
"preview": "!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof defin"
},
{
"path": "src/js-vendor/babel-polyfill@6.26.0.js",
"chars": 133910,
"preview": "!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof defin"
},
{
"path": "src/js-vendor/closebrackets.js",
"chars": 6630,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/codemirror.js",
"chars": 392149,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/colorize.js",
"chars": 1362,
"preview": "/* eslint-disable */\n// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: ht"
},
{
"path": "src/js-vendor/comment.js",
"chars": 8993,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/css.js",
"chars": 37654,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/deep-diff.js",
"chars": 15443,
"preview": ";(function(root, factory) { // eslint-disable-line no-extra-semi\n var deepDiff = factory(root);\n // eslint-disable-nex"
},
{
"path": "src/js-vendor/gfm.js",
"chars": 5114,
"preview": "/* eslint-disable */\n// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: ht"
},
{
"path": "src/js-vendor/htmlmixed.js",
"chars": 5611,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/javascript.js",
"chars": 35983,
"preview": "/* eslint-disable */\n// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: ht"
},
{
"path": "src/js-vendor/jsx.js",
"chars": 5223,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/mark-selection.js",
"chars": 3846,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/markdown.js",
"chars": 31214,
"preview": "/* eslint-disable */\n// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: ht"
},
{
"path": "src/js-vendor/match-highlighter.js",
"chars": 6031,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/matchbrackets.js",
"chars": 6435,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/overlay.js",
"chars": 3261,
"preview": "/* eslint-disable */\n// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: ht"
},
{
"path": "src/js-vendor/runmode.js",
"chars": 2499,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/search_cursor.js",
"chars": 11967,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/js-vendor/split.js",
"chars": 5759,
"preview": "/*! Split.js - v1.5.7 */\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"functio"
},
{
"path": "src/js-vendor/xml.js",
"chars": 12886,
"preview": "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/"
},
{
"path": "src/resources/lodash@4.16.0.js",
"chars": 531921,
"preview": "/**\n * @license\n * lodash <https://lodash.com/>\n * Copyright jQuery Foundation and other contributors <https://jquery.or"
},
{
"path": "src/resources/marked@0.3.6.js",
"chars": 22929,
"preview": "/**\n * marked - a markdown parser\n * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/"
},
{
"path": "src/resources/react-16.7.0-alpha.0.js",
"chars": 99056,
"preview": "/** @license React v16.7.0-alpha.0\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * "
},
{
"path": "src/resources/react-dom.16.7.0-alpha.0.js",
"chars": 723638,
"preview": "/** @license React v16.7.0-alpha.0\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *"
},
{
"path": "src/resources/regenerator-runtime.js",
"chars": 24076,
"preview": "/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n"
},
{
"path": "src/resources/state-example.json",
"chars": 1888,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": true,\n \"layout\": {\n \"elements\": [\n {\n \"na"
},
{
"path": "src/resources/state-example2.json",
"chars": 942,
"preview": "{\n \"editor\": {\n \"theme\": \"light\",\n \"statusBar\": false,\n \"layout\": {\n \"elements\": [\n {\n \"n"
},
{
"path": "src/resources/vue@2.5.17.js",
"chars": 289303,
"preview": "/*!\n * Vue.js v2.5.17\n * (c) 2014-2018 Evan You\n * Released under the MIT License.\n */\n(function (global, factory) {\n\tty"
},
{
"path": "src/sandbox.html",
"chars": 23813,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"Cache-control\" content=\"publi"
},
{
"path": "webpack.config.js",
"chars": 537,
"preview": "const path = require('path');\n\nmodule.exports = {\n entry: [\n './src/js/index.js'\n ],\n output: {\n path: path.res"
},
{
"path": "webpack.config.prod.js",
"chars": 521,
"preview": "const path = require('path');\n\nmodule.exports = {\n entry: [\n './src/js/index.js'\n ],\n output: {\n path: path.res"
}
]
// ... and 3 more files (download for full content)
About this extraction
This page contains the full source code of the krasimir/demoit GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 107 files (6.2 MB), approximately 1.6M tokens, and a symbol index with 4337 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.