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= "+("string"!=typeof e?e:e.replace(/[&<>"']/g,function(t){return"&"+{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}[t]+";"})).replace(/\\n/,"'+c+"";break;case 0:e[a]=""+c+""}}return e.join("")},x.prototype.diff_text1=function(t){for(var e=[],n=0;n"+n+""),0===e[0]&&(t+=""+n+""),t},""),n
")+"".concat(e,'
\n \n ').concat(n,"\n\n '.concat(e.map(function(t,e){return'
\n \n
Layout:
\n \n \n ','\n \n(Separate your dependencies by a new line)
\n \n ','\nThe archive contains all the files that you need to run the app locally. Including your dependencies.
\n ':"","\n "),"\n\n v".concat(r,'
\n On the web: poet.krasimir.now.sh
\n GitHub repo: github.com/krasimir/poet.krasimir.now.sh.feedback\n
'.concat(e,'
\n \n \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=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=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var u=a;if(u.container===e)return u.plugin}var l;if("object"!==(void 0===(l="function"==typeof e?e(m):e)?"undefined":(0,h.default)(l)))throw new TypeError(y.get("pluginNotObject",t,r,void 0===l?"undefined":(0,h.default)(l))+t+r);var c=new v.default(l,n);return f.memoisedPlugins.push({container:e,plugin:c}),c},f.createBareOptions=function(){var e={};for(var t in _.default){var r=_.default[t];e[t]=(0,n.default)(r.default)}return e},f.normalisePlugin=function(e,t,r,n){if(!((e=e.__esModule?e.default:e)instanceof v.default)){if("function"!=typeof e&&"object"!==(void 0===e?"undefined":(0,h.default)(e)))throw new TypeError(y.get("pluginNotFunction",t,r,void 0===e?"undefined":(0,h.default)(e)));e=f.memoisePluginContainer(e,t,r,n)}return e.init(t,r),e},f.normalisePlugins=function(s,a,e){return e.map(function(e,t){var r=void 0,n=void 0;if(!e)throw new TypeError("Falsy value found in plugins");Array.isArray(e)?(r=e[0],n=e[1]):r=e;var i="string"==typeof r?r:s+"$"+t;if("string"==typeof r){var o=(0,l.default)(r,a);if(!o)throw new ReferenceError(y.get("pluginUnknown",r,s,t,a));r=S(179)(o)}return[r=f.normalisePlugin(r,s,t,i),n]})},f.prototype.mergeOptions=function(e){var r=this,t=e.options,n=e.extending,i=e.alias,o=e.loc,s=e.dirname;if(i=i||"foreign",t){("object"!==(void 0===t?"undefined":(0,h.default)(t))||Array.isArray(t))&&this.log.error("Invalid options type for "+i,TypeError);var a=(0,x.default)(t,function(e){if(e instanceof v.default)return e});for(var u in s=s||c.cwd(),o=o||i,a)if(!_.default[u]&&this.log)if(A.default[u])this.log.error("Using removed Babel 5 option: "+i+"."+u+" - "+A.default[u].message,ReferenceError);else{var l="Unknown option: "+i+"."+u+". Check out http://babeljs.io/docs/usage/options/ for more information about options.";this.log.error(l+"\n\nA common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:\n\nInvalid:\n `{ presets: [{option: value}] }`\nValid:\n `{ presets: [['presetName', {option: value}]] }`\n\nFor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.",ReferenceError)}(0,g.normaliseOptions)(a),a.plugins&&(a.plugins=f.normalisePlugins(o,s,a.plugins)),a.presets&&(a.passPerPreset?a.presets=this.resolvePresets(a.presets,s,function(e,t){r.mergeOptions({options:e,extending:e,alias:t,loc:t,dirname:s})}):(this.mergePresets(a.presets,s),delete a.presets)),t===n?(0,p.default)(n,a):(0,E.default)(n||this.options,a)}},f.prototype.mergePresets=function(e,t){var r=this;this.resolvePresets(e,t,function(e,t){r.mergeOptions({options:e,alias:t,loc:t,dirname:i.default.dirname(t||"")})})},f.prototype.resolvePresets=function(e,o,s){return e.map(function(e){var t=void 0;if(Array.isArray(e)){if(2":return q
>":return H>>q;case">>>":return H>>>q}}if(e.isCallExpression()){var K=e.get("callee"),Y=void 0,z=void 0;if(K.isIdentifier()&&!e.scope.getBinding(K.node.name,!0)&&0<=oe.indexOf(K.node.name)&&(z=re[t.callee.name]),K.isMemberExpression()){var X=K.get("object"),J=K.get("property");if(X.isIdentifier()&&J.isIdentifier()&&0<=oe.indexOf(X.node.name)&&se.indexOf(J.node.name)<0&&(Y=re[X.node.name],z=Y[J.node.name]),X.isLiteral()&&J.isIdentifier()){var $=(0,ne.default)(X.node.value);"string"!==$&&"number"!==$||(Y=X.node.value,z=Y[J.node.name])}}if(z){var Q=e.get("arguments").map(ee);if(!te)return;return z.apply(Y,Q)}}Z(e)}}(e);return te&&(n.resolved=!0,n.value=i),i}var te=!0,t=void 0,o=new r.default,e=ee(this);return te||(e=void 0),{confident:te,deopt:t,value:e}};var oe=["String","Number","Math"],se=["random"]}).call(t,function(){return this}())},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var c=n(r(9)),u=n(r(2));t.getStatementParent=function(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):void 0},t.getCompletionRecords=function(){var t=[],e=function(e){e&&(t=t.concat(e.getCompletionRecords()))};if(this.isIfStatement())e(this.get("consequent")),e(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())e(this.get("body"));else if(this.isProgram()||this.isBlockStatement())e(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(e(this.get("block")),e(this.get("handler")),e(this.get("finalizer"))):t.push(this)}return t},t.getSibling=function(e){return a.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function(){for(var e=this.key,t=this.getSibling(++e),r=[];t.node;)r.push(t),t=this.getSibling(++e);return r},t.getAllPrevSiblings=function(){for(var e=this.key,t=this.getSibling(--e),r=[];t.node;)r.push(t),t=this.getSibling(--e);return r},t.get=function(e,t){!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},t._getKey=function(r,n){var i=this,o=this.node,s=o[r];return Array.isArray(s)?s.map(function(e,t){return a.default.get({listKey:r,parentPath:i,parent:o,container:s,key:t}).setContext(n)}):a.default.get({parentPath:this,parent:o,container:o,key:r}).setContext(n)},t._getPattern=function(e,t){var r=this,n=e,i=Array.isArray(n),o=0;for(n=i?n:(0,u.default)(n);;){var s;if(i){if(o>=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s;r="."===a?r.parentPath:Array.isArray(r)?r[a]:r.get(a,t)}return r},t.getBindingIdentifiers=function(e){return f.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function(e){return f.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function(){for(var e=0
>1,c=23===t?L(2,-24)-L(2,-77):0,f=0,p=e<0||0===e&&1/e<0?1:0;for((e=I(e))!=e||e===M?(i=e!=e?1:0,n=u):(n=R(V(e)/U),e*(o=L(2,-n))<1&&(n--,o*=2),2<=(e+=1<=n+l?c/o:c*L(2,1-l))*o&&(n++,o/=2),u<=n+l?(i=0,n=u):1<=n+l?(i=(e*o-1)*L(2,t),n+=l):(i=e*L(2,l-1)*L(2,t),n=0));8<=t;s[f++]=255&i,i/=256,t-=8);for(n=n<>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},{"./_export":33,"./_fails":35}],171:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":33}],172:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":33,"./_math-log1p":63}],173:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":33}],174:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":33,"./_math-sign":65}],175:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},{"./_export":33,"./_fails":35,"./_math-expm1":61}],176:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},{"./_export":33,"./_math-expm1":61}],177:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(0e;)!function(e){var t,r,n=u?e.ok:e.fail,i=e.resolve,o=e.reject,s=e.domain;try{n?(u||(2==l._h&&j(l),l._h=1),!0===n?t=a:(s&&s.enter(),t=n(a),s&&s.exit()),t===e.promise?o(_("Promise-chain cycle")):(r=T(t))?r.call(t,i,o):i(t)):o(a)}catch(e){o(e)}}(r[e++]);l._c=[],l._n=!1,t&&!l._h&&O(l)})}},O=function(o){y.call(u,function(){var e,t,r,n=o._v,i=B(o);if(i&&(e=x(function(){S?A.emit("unhandledRejection",n,o):(t=u.onunhandledrejection)?t({promise:o,reason:n}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=S||B(o)?2:1),o._a=void 0,i&&e.e)throw e.v})},B=function(e){if(1==e._h)return!1;for(var t,r=e._a||e._c,n=0;r.length>n;)if((t=r[n++]).fail||!B(t.promise))return!1;return!0},j=function(t){y.call(u,function(){var e;S?A.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},N=function(e){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(r=T(e))?g(function(){var t={_w:n,_d:!1};try{r.call(e,l(N,t,1),l(M,t,1))}catch(e){M.call(t,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){M.call({_w:n,_d:!1},e)}}};k||(D=function(e){h(this,D,"Promise","_h"),d(e),n.call(this);try{e(l(N,this,1),l(M,this,1))}catch(e){M.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(D.prototype,{then:function(e,t){var r=w(v(this,D));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=S?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=l(N,e,1),this.reject=l(M,e,1)},b.f=w=function(e){return F(D,e)?new o(e):i(e)}),f(f.G+f.W+f.F*!k,{Promise:D}),r("./_set-to-string-tag")(D,"Promise"),r("./_set-species")("Promise"),s=r("./_core").Promise,f(f.S+f.F*!k,"Promise",{reject:function(e){var t=w(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(a||!k),"Promise",{resolve:function(e){return e instanceof D&&F(e.constructor,this)?e:E(this,e)}}),f(f.S+f.F*!(k&&r("./_iter-detect")(function(e){D.all(e).catch(C)})),"Promise",{all:function(e){var s=this,t=w(s),a=t.resolve,u=t.reject,r=x(function(){var n=[],i=0,o=1;m(e,!1,function(e){var t=i++,r=!1;n.push(void 0),o++,s.resolve(e).then(function(e){r||(r=!0,n[t]=e,--o||a(n))},u)}),--o||a(n)});return r.e&&u(r.v),t.promise},race:function(e){var t=this,r=w(t),n=r.reject,i=x(function(){m(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":3,"./_an-instance":6,"./_classof":17,"./_core":23,"./_ctx":25,"./_export":33,"./_for-of":39,"./_global":40,"./_is-object":51,"./_iter-detect":56,"./_library":60,"./_microtask":68,"./_new-promise-capability":69,"./_perform":90,"./_promise-resolve":91,"./_redefine-all":93,"./_set-species":100,"./_set-to-string-tag":101,"./_species-constructor":104,"./_task":113,"./_wks":128}],210:[function(e,t,r){var n=e("./_export"),o=e("./_a-function"),s=e("./_an-object"),a=(e("./_global").Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!e("./_fails")(function(){a(function(){})}),"Reflect",{apply:function(e,t,r){var n=o(e),i=s(r);return a?a(n,t,i):u.call(n,t,i)}})},{"./_a-function":3,"./_an-object":7,"./_export":33,"./_fails":35,"./_global":40}],211:[function(e,t,r){var n=e("./_export"),a=e("./_object-create"),u=e("./_a-function"),l=e("./_an-object"),c=e("./_is-object"),i=e("./_fails"),f=e("./_bind"),p=(e("./_global").Reflect||{}).construct,d=i(function(){function e(){}return!(p(function(){},[],e)instanceof e)}),h=!i(function(){p(function(){})});n(n.S+n.F*(d||h),"Reflect",{construct:function(e,t){u(e),l(t);var r=arguments.length<3?e:u(arguments[2]);if(h&&!d)return p(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(f.apply(e,n))}var i=r.prototype,o=a(c(i)?i:Object.prototype),s=Function.apply.call(e,o,t);return c(s)?s:o}})},{"./_a-function":3,"./_an-object":7,"./_bind":16,"./_export":33,"./_fails":35,"./_global":40,"./_is-object":51,"./_object-create":71}],212:[function(e,t,r){var n=e("./_object-dp"),i=e("./_export"),o=e("./_an-object"),s=e("./_to-primitive");i(i.S+i.F*e("./_fails")(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,r){o(e),t=s(t,!0),o(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},{"./_an-object":7,"./_export":33,"./_fails":35,"./_object-dp":72,"./_to-primitive":120}],213:[function(e,t,r){var n=e("./_export"),i=e("./_object-gopd").f,o=e("./_an-object");n(n.S,"Reflect",{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},{"./_an-object":7,"./_export":33,"./_object-gopd":75}],214:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_an-object"),o=function(e){this._t=i(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)};e("./_iter-create")(o,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},{"./_an-object":7,"./_export":33,"./_iter-create":54}],215:[function(e,t,r){var n=e("./_object-gopd"),i=e("./_export"),o=e("./_an-object");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},{"./_an-object":7,"./_export":33,"./_object-gopd":75}],216:[function(e,t,r){var n=e("./_export"),i=e("./_object-gpo"),o=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},{"./_an-object":7,"./_export":33,"./_object-gpo":79}],217:[function(e,t,r){var s=e("./_object-gopd"),a=e("./_object-gpo"),u=e("./_has"),n=e("./_export"),l=e("./_is-object"),c=e("./_an-object");n(n.S,"Reflect",{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return c(t)===o?t[r]:(n=s.f(t,r))?u(n,"value")?n.value:void 0!==n.get?n.get.call(o):void 0:l(i=a(t))?e(i,r,o):void 0}})},{"./_an-object":7,"./_export":33,"./_has":41,"./_is-object":51,"./_object-gopd":75,"./_object-gpo":79}],218:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":33}],219:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},{"./_an-object":7,"./_export":33}],220:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":33,"./_own-keys":85}],221:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},{"./_an-object":7,"./_export":33}],222:[function(e,t,r){var n=e("./_export"),i=e("./_set-proto");i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},{"./_export":33,"./_set-proto":99}],223:[function(e,t,r){var u=e("./_object-dp"),l=e("./_object-gopd"),c=e("./_object-gpo"),f=e("./_has"),n=e("./_export"),p=e("./_property-desc"),d=e("./_an-object"),h=e("./_is-object");n(n.S,"Reflect",{set:function e(t,r,n){var i,o,s=arguments.length<4?t:arguments[3],a=l.f(d(t),r);if(!a){if(h(o=c(t)))return e(o,r,n,s);a=p(0)}return f(a,"value")?!(!1===a.writable||!h(s)||((i=l.f(s,r)||p(0)).value=n,u.f(s,r,i),0)):void 0!==a.set&&(a.set.call(s,n),!0)}})},{"./_an-object":7,"./_export":33,"./_has":41,"./_is-object":51,"./_object-dp":72,"./_object-gopd":75,"./_object-gpo":79,"./_property-desc":92}],224:[function(e,t,r){var n=e("./_global"),o=e("./_inherit-if-required"),i=e("./_object-dp").f,s=e("./_object-gopn").f,a=e("./_is-regexp"),u=e("./_flags"),l=n.RegExp,c=l,f=l.prototype,p=/a/g,d=/a/g,h=new l(p)!==p;if(e("./_descriptors")&&(!h||e("./_fails")(function(){return d[e("./_wks")("match")]=!1,l(p)!=p||l(d)==d||"/a/i"!=l(p,"i")}))){l=function(e,t){var r=this instanceof l,n=a(e),i=void 0===t;return!r&&n&&e.constructor===l&&i?e:o(h?new c(n&&!i?e.source:e,t):c((n=e instanceof l)?e.source:e,n&&i?u.call(e):t),r?this:f,l)};for(var m=s(c),v=0;m.length>v;)!function(t){t in l||i(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}(m[v++]);(f.constructor=l).prototype=f,e("./_redefine")(n,"RegExp",l)}e("./_set-species")("RegExp")},{"./_descriptors":29,"./_fails":35,"./_flags":37,"./_global":40,"./_inherit-if-required":45,"./_is-regexp":52,"./_object-dp":72,"./_object-gopn":77,"./_redefine":94,"./_set-species":100,"./_wks":128}],225:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":29,"./_flags":37,"./_object-dp":72}],226:[function(e,t,r){e("./_fix-re-wks")("match",1,function(n,i,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[i];return void 0!==r?r.call(e,t):new RegExp(e)[i](String(t))},e]})},{"./_fix-re-wks":36}],227:[function(e,t,r){e("./_fix-re-wks")("replace",2,function(i,o,s){return[function(e,t){"use strict";var r=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,r,t):s.call(String(r),e,t)},s]})},{"./_fix-re-wks":36}],228:[function(e,t,r){e("./_fix-re-wks")("search",1,function(n,i,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[i];return void 0!==r?r.call(e,t):new RegExp(e)[i](String(t))},e]})},{"./_fix-re-wks":36}],229:[function(e,t,r){e("./_fix-re-wks")("split",2,function(i,o,s){"use strict";var d=e("./_is-regexp"),h=s,m=[].push,v="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[v]||2!="ab".split(/(?:ab)*/)[v]||4!=".".split(/(.?)(.?)/)[v]||1<".".split(/()()/)[v]||"".split(/.?/)[v]){var y=void 0===/()??/.exec("")[1];s=function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!d(e))return h.call(r,e,t);var n,i,o,s,a,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,l+"g");for(y||(n=new RegExp("^"+p.source+"$(?!\\s)",l));(i=p.exec(r))&&!((o=i.index+i[0][v])>c&&(u.push(r.slice(c,i.index)),!y&&1=f));)p.lastIndex===i.index&&p.lastIndex++;return c===r[v]?!s&&p.test("")||u.push(""):u.push(r.slice(c)),u[v]>f?u.slice(0,f):u}}else"0".split(void 0,0)[v]&&(s=function(e,t){return void 0===e&&0===t?[]:h.call(this,e,t)});return[function(e,t){var r=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,r,t):s.call(String(r),e,t)},s]})},{"./_fix-re-wks":36,"./_is-regexp":52}],230:[function(t,e,r){"use strict";t("./es6.regexp.flags");var n=t("./_an-object"),i=t("./_flags"),o=t("./_descriptors"),s=/./.toString,a=function(e){t("./_redefine")(RegExp.prototype,"toString",e,!0)};t("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},{"./_an-object":7,"./_descriptors":29,"./_fails":35,"./_flags":37,"./_redefine":94,"./es6.regexp.flags":225}],231:[function(e,t,r){"use strict";var n=e("./_collection-strong"),i=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,0