diff --git a/other-sites/me/botui/.bumpedrc b/other-sites/me/botui/.bumpedrc deleted file mode 100644 index ef01403..0000000 --- a/other-sites/me/botui/.bumpedrc +++ /dev/null @@ -1,21 +0,0 @@ -files: - - package.json -plugins: - prerelease: - Linting config files: - plugin: bumped-finepack - postrelease: - Building: - plugin: bumped-terminal - command: 'NODE_ENV=production gulp' - Generating CHANGELOG file: - plugin: bumped-changelog - Committing new version: - plugin: bumped-terminal - command: 'git add --all && git commit -m "Release $newVersion"' - Publishing tag to GitHub: - plugin: bumped-terminal - command: 'git tag $newVersion && git push origin master && git push --tags' - Publishing to NPM: - plugin: bumped-terminal - command: npm publish diff --git a/other-sites/me/botui/.gitignore b/other-sites/me/botui/.gitignore deleted file mode 100644 index 2b05175..0000000 --- a/other-sites/me/botui/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -package-lock.json -test -node_modules -.DS_Store diff --git a/other-sites/me/botui/.npmignore b/other-sites/me/botui/.npmignore deleted file mode 100644 index ec04c02..0000000 --- a/other-sites/me/botui/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -src -test -test.html -Gulpfile.js -node_modules -.DS_Store -preview.png -CHANGELOG.md -CODE_OF_CONDUCT.md -CONTRIBUTING.md diff --git a/other-sites/me/botui/CHANGELOG.md b/other-sites/me/botui/CHANGELOG.md deleted file mode 100644 index 60f1e2f..0000000 --- a/other-sites/me/botui/CHANGELOG.md +++ /dev/null @@ -1,97 +0,0 @@ - -## 0.3.4 (2017-07-30) - -* Added support for extra information in button action #8 ([0fea725](https://github.com/moinism/botui/commit/0fea725)) -* cleanup ([fc9f429](https://github.com/moinism/botui/commit/fc9f429)) -* Replaces the text action submit button by a button used for the button action. Thus text actions now ([41a2868](https://github.com/moinism/botui/commit/41a2868)) -* chore: add vue dependencies ([31d5e5e](https://github.com/moinism/botui/commit/31d5e5e)) -* chore: change .d.ts file ([3d8d75f](https://github.com/moinism/botui/commit/3d8d75f)) -* chore: remove test dependencies ([97622cf](https://github.com/moinism/botui/commit/97622cf)) -* fix: fix index.d.ts ([32a1be3](https://github.com/moinism/botui/commit/32a1be3)) -* fix: fix package.json ([fdc9fef](https://github.com/moinism/botui/commit/fdc9fef)) -* add: add typings file ([58e88f8](https://github.com/moinism/botui/commit/58e88f8)) - - - - -## 0.3.3 (2017-07-17) - -* adds "build" and "watch" commands to package.json ([f576bb4](https://github.com/moinism/botui/commit/f576bb4)) -* adds "viewport" metatag to `test.html` ([1ae01d9](https://github.com/moinism/botui/commit/1ae01d9)) -* chanded vue ver in test file ([ad7367d](https://github.com/moinism/botui/commit/ad7367d)) -* compiles build files ([920400b](https://github.com/moinism/botui/commit/920400b)) -* delegates submit button visibility to stylesheet ([9630ee8](https://github.com/moinism/botui/commit/9630ee8)) -* Fix width of iframe inside message box. ([9de1608](https://github.com/moinism/botui/commit/9de1608)) -* fixes cp notice ([9bbae1a](https://github.com/moinism/botui/commit/9bbae1a)) - - - - -## 0.3.2 (2017-07-16) - -* allow delayed loading ([69f668b](https://github.com/moinism/botui/commit/69f668b)) -* ignored some files for npm ([4c2396e](https://github.com/moinism/botui/commit/4c2396e)) - - - - -## 0.3.1 (2017-07-16) - -* added 'loading' to message object ([6d52547](https://github.com/moinism/botui/commit/6d52547)) -* added bumped ([912ff88](https://github.com/moinism/botui/commit/912ff88)) -* added eg. URL ([8d95e9b](https://github.com/moinism/botui/commit/8d95e9b)) -* added embed support ([8b9b1d8](https://github.com/moinism/botui/commit/8b9b1d8)) -* added icon support and cssClass ([8560b71](https://github.com/moinism/botui/commit/8560b71)) -* Added icon support with text ([b9d434f](https://github.com/moinism/botui/commit/b9d434f)) -* added preview ([70e38fa](https://github.com/moinism/botui/commit/70e38fa)) -* bit of change ([0c0b228](https://github.com/moinism/botui/commit/0c0b228)) -* Code of conduct ([358a12a](https://github.com/moinism/botui/commit/358a12a)) -* Contribute ([7684689](https://github.com/moinism/botui/commit/7684689)) -* escape quotes ([cff977c](https://github.com/moinism/botui/commit/cff977c)) -* first ([a22d4d4](https://github.com/moinism/botui/commit/a22d4d4)) -* fixed issue #3 ([00e8a83](https://github.com/moinism/botui/commit/00e8a83)), closes [#3](https://github.com/moinism/botui/issues/3) -* Initial commit ([6b8c625](https://github.com/moinism/botui/commit/6b8c625)) -* license linked ([4b87ba3](https://github.com/moinism/botui/commit/4b87ba3)) -* link, image support + mod structure ([79dc3ed](https://github.com/moinism/botui/commit/79dc3ed)) -* markdown parsing on insertion only ([1ed9849](https://github.com/moinism/botui/commit/1ed9849)) -* messages also accept string instead of object ([ef241ec](https://github.com/moinism/botui/commit/ef241ec)) -* Readme added ([7951729](https://github.com/moinism/botui/commit/7951729)) -* Release 0.3.1 ([06469d8](https://github.com/moinism/botui/commit/06469d8)) -* removed nested styling ([d3d9a39](https://github.com/moinism/botui/commit/d3d9a39)) -* some style changes ([2086886](https://github.com/moinism/botui/commit/2086886)) -* type ([6954a9c](https://github.com/moinism/botui/commit/6954a9c)) -* verion bump ([a957d28](https://github.com/moinism/botui/commit/a957d28)) -* proposal: add loading dots animation to message ([e3fc5d4](https://github.com/moinism/botui/commit/e3fc5d4)) - - - - -## 0.3.1 (2017-07-16) - -* added 'loading' to message object ([6d52547](https://github.com/moinism/botui/commit/6d52547)) -* added bumped ([912ff88](https://github.com/moinism/botui/commit/912ff88)) -* added eg. URL ([8d95e9b](https://github.com/moinism/botui/commit/8d95e9b)) -* added embed support ([8b9b1d8](https://github.com/moinism/botui/commit/8b9b1d8)) -* added icon support and cssClass ([8560b71](https://github.com/moinism/botui/commit/8560b71)) -* Added icon support with text ([b9d434f](https://github.com/moinism/botui/commit/b9d434f)) -* added preview ([70e38fa](https://github.com/moinism/botui/commit/70e38fa)) -* bit of change ([0c0b228](https://github.com/moinism/botui/commit/0c0b228)) -* Code of conduct ([358a12a](https://github.com/moinism/botui/commit/358a12a)) -* Contribute ([7684689](https://github.com/moinism/botui/commit/7684689)) -* escape quotes ([cff977c](https://github.com/moinism/botui/commit/cff977c)) -* first ([a22d4d4](https://github.com/moinism/botui/commit/a22d4d4)) -* fixed issue #3 ([00e8a83](https://github.com/moinism/botui/commit/00e8a83)), closes [#3](https://github.com/moinism/botui/issues/3) -* Initial commit ([6b8c625](https://github.com/moinism/botui/commit/6b8c625)) -* license linked ([4b87ba3](https://github.com/moinism/botui/commit/4b87ba3)) -* link, image support + mod structure ([79dc3ed](https://github.com/moinism/botui/commit/79dc3ed)) -* markdown parsing on insertion only ([1ed9849](https://github.com/moinism/botui/commit/1ed9849)) -* messages also accept string instead of object ([ef241ec](https://github.com/moinism/botui/commit/ef241ec)) -* Readme added ([7951729](https://github.com/moinism/botui/commit/7951729)) -* removed nested styling ([d3d9a39](https://github.com/moinism/botui/commit/d3d9a39)) -* some style changes ([2086886](https://github.com/moinism/botui/commit/2086886)) -* type ([6954a9c](https://github.com/moinism/botui/commit/6954a9c)) -* verion bump ([a957d28](https://github.com/moinism/botui/commit/a957d28)) -* proposal: add loading dots animation to message ([e3fc5d4](https://github.com/moinism/botui/commit/e3fc5d4)) - - - diff --git a/other-sites/me/botui/CODE_OF_CONDUCT.md b/other-sites/me/botui/CODE_OF_CONDUCT.md deleted file mode 100644 index 5ac8311..0000000 --- a/other-sites/me/botui/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at team@botui.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/other-sites/me/botui/CONTRIBUTING.md b/other-sites/me/botui/CONTRIBUTING.md deleted file mode 100644 index cb06b87..0000000 --- a/other-sites/me/botui/CONTRIBUTING.md +++ /dev/null @@ -1,17 +0,0 @@ - -There many ways to contribute to BotUI. - - -### Help with issues - -See if there are any open issues you help with. - - -### Write examples - -You can also [write examples](https://github.com/moinism/botui-examples) for BotUI. - - -### Code contribution - -You can read about code contribution [here](https://docs.botui.org/contribute.html). diff --git a/other-sites/me/botui/Gulpfile.js b/other-sites/me/botui/Gulpfile.js deleted file mode 100644 index cfa54fb..0000000 --- a/other-sites/me/botui/Gulpfile.js +++ /dev/null @@ -1,82 +0,0 @@ - -var fs = require('fs'), - gulp = require('gulp'), - sass = require('gulp-sass'), - banner = require('gulp-banner'), - rename = require('gulp-rename'), - concat = require('gulp-concat'), - uglify = require('gulp-uglify'), - pkg = require('./package.json'), - htmlclean = require('htmlclean'), - replace = require('gulp-replace'), - minify = require('gulp-clean-css'); - -function escape (text) { - return text.replace(/'/g, "\\'").replace(/"/g, "\\\""); -} - -function htmlTemplate() { - return replace('BOTUI_TEMPLATE', escape( - htmlclean(fs.readFileSync('./src/botui.html', 'utf8')) - )); -} - -var comment = '/*\n' + - ' * <%= pkg.name %> <%= pkg.version %>\n' + - ' * <%= pkg.description %>\n' + - ' * <%= pkg.homepage %>\n' + - ' *\n' + - ' * Copyright <%= year %>, <%= pkg.author.name %>\n' + - ' * Released under the <%= pkg.license %> license.\n' + - '*/\n\n'; - -gulp.task('styles', function() { - gulp.src(['./src/styles/normal.scss', - './src/styles/botui.scss']) - .pipe(sass().on('error', sass.logError)) - .pipe(minify()) - .pipe(concat('botui.min.css')) - .pipe(banner(comment, { - pkg: pkg, - year: new Date().getFullYear() - })) - .pipe(gulp.dest('./build/')); -}); - -gulp.task('themes', function() { - gulp.src('./src/styles/themes/*.scss') - .pipe(sass().on('error', sass.logError)) - .pipe(minify()) - .pipe(rename(function (path) { - path.basename = 'botui-theme-' + path.basename; - })) - .pipe(gulp.dest('./build/')); -}); - -gulp.task('scripts', function () { - gulp.src('./src/scripts/botui.js') // simply copy the original one - .pipe(htmlTemplate()) - .pipe(banner(comment, { - pkg: pkg, - year: new Date().getFullYear() - })) - .pipe(gulp.dest('./build/')); - - gulp.src('./src/scripts/botui.js') // minified version - .pipe(uglify()) - .pipe(htmlTemplate()) - .pipe(rename('botui.min.js')) - .pipe(banner(comment, { - pkg: pkg, - year: new Date().getFullYear() - })) - .pipe(gulp.dest('./build/')); -}); - -gulp.task('watch',function() { - gulp.watch('./src/styles/*.scss', ['styles']); - gulp.watch('./src/styles/themes/*.scss', ['themes']); - gulp.watch(['./src/scripts/botui.js', './src/botui.html'], ['scripts']); -}); - -gulp.task('default', ['styles', 'scripts', 'themes']); diff --git a/other-sites/me/botui/LICENSE b/other-sites/me/botui/LICENSE deleted file mode 100644 index b733a5a..0000000 --- a/other-sites/me/botui/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Moin Uddin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/other-sites/me/botui/README.md b/other-sites/me/botui/README.md deleted file mode 100644 index 3beb544..0000000 --- a/other-sites/me/botui/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# BotUI - -[![Join the chat at https://gitter.im/BotUIChat/botui](https://badges.gitter.im/BotUIChat/botui.svg)](https://gitter.im/BotUIChat/botui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![npm](https://img.shields.io/npm/v/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) [![npm](https://img.shields.io/npm/dm/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) - -> A JavaScript framework to create conversational UIs. - - -[Main Site](https://botui.org) - [Read Docs](https://docs.botui.org) - [Examples](https://github.com/moinism/botui-examples) - -### Quick look - -![preview](preview.png) - -```html -
- -
-``` - -```javascript -var botui = new BotUI('botui-app'); // give it the id of container - -botui.message.bot({ // show first message - delay: 200, - content: 'hello' -}).then(function () { - return botui.message.bot({ // second one - delay: 1000, // wait 1 sec. - content: 'how are you?' - }); -}).then(function () { - return botui.action.button({ // let user do something - delay: 1000, - action: [ - { - text: 'Good', - value: 'good' - }, - { - text: 'Really Good', - value: 'really_good' - } - ] - }); -}).then(function (res) { - return botui.message.bot({ - delay: 1000, - content: 'You are feeling ' + res.text + '!' - }); -}); -``` - - -### License - -[MIT License](https://github.com/moinism/botui/blob/master/LICENSE) - Copyrights (c) 2017 - Moin Uddin diff --git a/other-sites/me/botui/build/botui-theme.css b/other-sites/me/botui/build/botui-theme.css deleted file mode 100644 index 668b692..0000000 --- a/other-sites/me/botui/build/botui-theme.css +++ /dev/null @@ -1,195 +0,0 @@ -html, -body { - height: 100%; - margin: 0px; - padding: 0px; - overflow: hidden; -} - -html { - overflow-x: hidden; -} - -body { - background: #FC5C7D; - /* fallback for old browsers */ - background: -webkit-linear-gradient(to right, #6A82FB, #FC5C7D); - /* Chrome 10-25, Safari 5.1-6 */ - background: linear-gradient(to right, #6A82FB, #FC5C7D); - /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ - overflow-x: hidden; -} - -h3 { - margin: 10px auto -30px 0; - font-family: sans-serif; - font-weight: bold; - color: #fff -} - -.botui-container { - font-size: 14px; - background-color: rgba(255, 255, 255, 0); - font-family: sans-serif; - font-weight: normal; - overflow-y: hidden !important; - height: auto !important; -} - -.botui-messages-container { - padding: 10px 20px -} - -.botui-actions-container { - padding: 0px 20px 30px 20px -} - -.botui-message { - min-height: 30px -} - -.botui-message-content { - padding: 7px 13px; - border-radius: 15px; - color: #595a5a; - background-color: #ebebeb -} - -.botui-message-content.human { - color: #f7f8f8; - background-color: #919292 -} - -.botui-message-content.text { - line-height: 1.3 -} - -.botui-message-content.loading { - background-color: rgba(206, 206, 206, .5); - line-height: 1.3; - text-align: center -} - -.botui-message-content.embed { - padding: 5px; - border-radius: 5px -} - -.botui-message-content-link { - color: #919292 -} - -.botui-actions-text-input { - border: 0; - outline: 0; - border-radius: 0; - padding: 5px 7px; - font-family: "Open Sans", sans-serif; - background-color: transparent; - color: #595a5a; - border-bottom: 1px solid #919292 -} - -.botui-actions-text-submit { - color: #fff; - width: 30px; - padding: 5px; - height: 30px; - line-height: 1; - border-radius: 50%; - border: 1px solid #919292; - background: #777979 -} - -.botui-actions-buttons-button { - border: 0; - color: #fff; - line-height: 1; - cursor: pointer; - font-size: 14px; - font-weight: 500; - padding: 7px 15px; - border-radius: 4px; - font-family: "Open Sans", sans-serif; - background: #777979; - box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, .25) -} - -.poptitle { - width: 100%; - height: 100%; - line-height: 3; - background-color: rgba(255, 255, 255, 0.3); - overflow-y: auto; -} - -.popfooter { - width: 100%; - height: 100%; - line-height: 1; - background-color: rgba(255, 255, 255, 0.7) -} - -.popcontainer { - width: 100%; - height: 100%; -} - -.slide-fade-enter-active { - transition: all .3s ease -} - -.slide-fade-enter, -.slide-fade-leave-to { - opacity: 0; - transform: translateX(-10px) -} - -.dot { - width: .5rem; - height: .5rem; - border-radius: .5rem; - display: inline-block; - background-color: #919292 -} - -.dot:nth-last-child(1) { - margin-left: .3rem; - animation: loading .6s .3s linear infinite -} - -.dot:nth-last-child(2) { - margin-left: .3rem; - animation: loading .6s .2s linear infinite -} - -.dot:nth-last-child(3) { - animation: loading .6s .1s linear infinite -} - -@keyframes loading { - 0 { - transform: translate(0, 0); - background-color: #ababab - } - 25% { - transform: translate(0, -3px) - } - 50% { - transform: translate(0, 0); - background-color: #ababab - } - 75% { - transform: translate(0, 3px) - } - 100% { - transform: translate(0, 0) - } -} - -button.botui-actions-buttons-button { - -webkit-user-select: none; /* Safari 3.1+ */ - -moz-user-select: none; /* Firefox 2+ */ - -ms-user-select: none; /* IE 10+ */ - user-select: none; /* Standard syntax */ -} \ No newline at end of file diff --git a/other-sites/me/botui/build/botui.js b/other-sites/me/botui/build/botui.js deleted file mode 100644 index ead4a16..0000000 --- a/other-sites/me/botui/build/botui.js +++ /dev/null @@ -1,322 +0,0 @@ -/* - * botui 0.3.4 - * A JS library to build the UI for your bot - * https://botui.org - * - * Copyright 2017, Moin Uddin - * Released under the MIT license. -*/ - -(function (root, factory) { - "use strict"; - if (typeof define === 'function' && define.amd) { - define([], function () { - return (root.BotUI = factory(root)); - }); - } else { - root.BotUI = factory(root); - } -}(typeof window !== 'undefined' ? window : this, function (root, undefined) { - "use strict"; - - var BotUI = (function (id, opts) { - - opts = opts || {}; - - if(!id) { - throw Error('BotUI: Container id is required as first argument.'); - } - - if(!document.getElementById(id)) { - throw Error('BotUI: Element with id #' + id + ' does not exist.'); - } - - if(!root.Vue && !opts.vue) { - throw Error('BotUI: Vue is required but not found.'); - } - - var _botApp, // current vue instance. - _options = { - debug: false, - fontawesome: true - }, - _container, // the outermost Element. Needed to scroll to bottom, for now. - _interface = {}, // methods returned by a BotUI() instance. - _actionResolve, - _markDownRegex = { - icon: /!\(([^\)]+)\)/igm, // !(icon) - image: /!\[(.*?)\]\((.*?)\)/igm, // ![aleternate text](src) - link: /\[([^\[]+)\]\(([^\)]+)\)(\^?)/igm // [text](link) ^ can be added at end to set the target as 'blank' - }, - _fontAwesome = 'https://use.fontawesome.com/ea731dcb6f.js', - _esPromisePollyfill = 'https://cdn.jsdelivr.net/es6-promise/4.1.0/es6-promise.min.js'; // mostly for IE - - root.Vue = root.Vue || opts.vue; - - // merge opts passed to constructor with _options - for (var prop in _options) { - if (opts.hasOwnProperty(prop)) { - _options[prop] = opts[prop]; - } - } - - if(!root.Promise && !Promise && !options.promise) { - loadScript(_esPromisePollyfill); - } - - function _linkReplacer(match, $1, $2, $3) { - var _target = $3 ? 'blank' : ''; // check if '^' sign is present with link syntax - return "" + $1 + ""; - } - - function _parseMarkDown(text) { - return text - .replace(_markDownRegex.image, "$1") - .replace(_markDownRegex.icon, "") - .replace(_markDownRegex.link, _linkReplacer); - } - - function loadScript(src, cb) { - var script = document.createElement('script'); - script.type = 'text/javascript'; - script.src = src; - - if(cb) { - script.onload = cb; - } - - document.body.appendChild(script); - } - - function _handleAction(text) { - if(_instance.action.addMessage) { - _interface.message.human({ - delay: 100, - content: text - }); - } - _instance.action.show = !_instance.action.autoHide; - } - - var _botuiComponent = { - template: '
', // replaced by HTML template during build. see Gulpfile.js - data: function () { - return { - action: { - text: { - size: 30, - placeholder: 'Write here ..' - }, - button: {}, - show: false, - type: 'text', - autoHide: true, - addMessage: true - }, - messages: [] - }; - }, - computed: { - isMobile: function () { - return root.innerWidth && root.innerWidth <= 768; - } - }, - methods: { - handle_action_button: function (button) { - _handleAction(button.text); - var defaultActionObj = { - type: 'button', - text: button.text, - value: button.value - }; - - for (var eachProperty in button) { - if (button.hasOwnProperty(eachProperty)) { - if (eachProperty !== 'type' && eachProperty !== 'text' && eachProperty !== 'value') { - defaultActionObj[eachProperty] = button[eachProperty]; - } - } - } - - _actionResolve(defaultActionObj); - }, - handle_action_text: function () { - if(!this.action.text.value) return; - _handleAction(this.action.text.value); - _actionResolve({ - type: 'text', - value: this.action.text.value - }); - this.action.text.value = ''; - } - } - }; - - root.Vue.directive('botui-markdown', function (el, binding) { - if(binding.value == 'false') return; // v-botui-markdown="false" - el.innerHTML = _parseMarkDown(el.textContent); - }); - - root.Vue.directive('botui-scroll', { - inserted: function (el) { - _container.scrollTop = _container.scrollHeight; - } - }); - - root.Vue.directive('focus', { - inserted: function (el) { - el.focus(); - } - }); - - root.Vue.directive('botui-container', { - inserted: function (el) { - _container = el; - } - }); - - _botApp = new root.Vue({ - components: { - 'bot-ui': _botuiComponent - } - }).$mount('#' + id); - - var _instance = _botApp.$children[0]; // to access the component's data - - function _addMessage(_msg) { - - if(!_msg.loading && !_msg.content) { - throw Error('BotUI: "content" is required in a non-loading message object.'); - } - - _msg.type = _msg.type || 'text'; - _msg.visible = (_msg.delay || _msg.loading) ? false : true; - var _index = _instance.messages.push(_msg) - 1; - - return new Promise(function (resolve, reject) { - setTimeout(function () { - if(_msg.delay) { - _msg.visible = true; - - if(_msg.loading) { - _msg.loading = false; - } - } - resolve(_index); - }, _msg.delay || 0); - }); - } - - function _checkOpts(_opts) { - if(typeof _opts === 'string') { - _opts = { - content: _opts - }; - } - return _opts || {}; - } - - _interface.message = { - add: function (addOpts) { - return _addMessage( _checkOpts(addOpts) ); - }, - bot: function (addOpts) { - addOpts = _checkOpts(addOpts); - return _addMessage(addOpts); - }, - human: function (addOpts) { - addOpts = _checkOpts(addOpts); - addOpts.human = true; - return _addMessage(addOpts); - }, - get: function (index) { - return Promise.resolve(_instance.messages[index]); - }, - remove: function (index) { - _instance.messages.splice(index, 1); - return Promise.resolve(); - }, - update: function (index, msg) { // only content can be updated, not the message type. - var _msg = _instance.messages[index]; - _msg.content = msg.content; - _msg.visible = !msg.loading; - _msg.loading = !!msg.loading; - return Promise.resolve(msg.content); - }, - removeAll: function () { - _instance.messages.splice(0, _instance.messages.length); - return Promise.resolve(); - } - }; - - function mergeAtoB(objA, objB) { - for (var prop in objA) { - if (!objB.hasOwnProperty(prop)) { - objB[prop] = objA[prop]; - } - } - } - - function _checkAction(_opts) { - if(!_opts.action) { - throw Error('BotUI: "action" property is required.'); - } - } - - function _showActions(_opts) { - - _checkAction(_opts); - - mergeAtoB({ - type: 'text', - cssClass: '', - autoHide: true, - addMessage: true - }, _opts); - - _instance.action.type = _opts.type; - _instance.action.cssClass = _opts.cssClass; - _instance.action.autoHide = _opts.autoHide; - _instance.action.addMessage = _opts.addMessage; - - return new Promise(function(resolve, reject) { - _actionResolve = resolve; // resolved when action is performed, i.e: button clicked, text submitted, etc. - setTimeout(function () { - _instance.action.show = true; - }, _opts.delay || 0); - }); - }; - - _interface.action = { - show: _showActions, - hide: function () { - _instance.action.show = false; - return Promise.resolve(); - }, - text: function (_opts) { - _checkAction(_opts); - _instance.action.text = _opts.action; - return _showActions(_opts); - }, - button: function (_opts) { - _checkAction(_opts); - _opts.type = 'button'; - _instance.action.button.buttons = _opts.action; - return _showActions(_opts); - } - }; - - if(_options.fontawesome) { - loadScript(_fontAwesome); - } - - if(_options.debug) { - _interface._botApp = _botApp; // current Vue instance - } - - return _interface; - }); - - return BotUI; - -})); diff --git a/other-sites/me/botui/build/botui.min.css b/other-sites/me/botui/build/botui.min.css deleted file mode 100644 index e32a7ec..0000000 --- a/other-sites/me/botui/build/botui.min.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - * botui 0.3.4 - * A JS library to build the UI for your bot - * https://botui.org - * - * Copyright 2017, Moin Uddin - * Released under the MIT license. -*/ - -a.botui-message-content-link:focus{outline:thin dotted}a.botui-message-content-link:focus:active,a.botui-message-content-link:focus:hover{outline:0}form.botui-actions-text{margin:0}button.botui-actions-buttons-button,input.botui-actions-text-input{margin:0;font-size:100%;line-height:normal;vertical-align:baseline}button.botui-actions-buttons-button::-moz-focus-inner,input.botui-actions-text-input::-moz-focus-inner{border:0;padding:0}button.botui-actions-buttons-button{cursor:pointer;-webkit-appearance:button} -.botui-app-container{width:100%;height:100%;line-height:1}@media (min-width:400px){.botui-app-container{width:400px;height:500px;margin:0 auto}}.botui-container{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.botui-message{margin:10px 0;min-height:20px}.botui-message-content{width:auto;max-width:85%;display:inline-block}.botui-message-content.human{float:right}.botui-message-content iframe{width:100%}.botui-message-content-image{margin:5px 0;display:block;max-width:200px;max-height:200px}.botui-message-content-link{text-decoration:underline}.botui-actions-buttons-button+.botui-actions-buttons-button{margin-left:10px}@media (min-width:400px){.botui-actions-text-submit{display:none}} \ No newline at end of file diff --git a/other-sites/me/botui/build/botui.min.js b/other-sites/me/botui/build/botui.min.js deleted file mode 100644 index eef5f38..0000000 --- a/other-sites/me/botui/build/botui.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * botui 0.3.4 - * A JS library to build the UI for your bot - * https://botui.org - * - * Copyright 2017, Moin Uddin - * Released under the MIT license. -*/ - -!function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return e.BotUI=t(e)}):e.BotUI=t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";return function(t,n){function o(e,t,n,o){return""+t+""}function i(e){return e.replace(v.image,"$1").replace(v.icon,"").replace(v.link,o)}function r(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e,t&&(n.onload=t),document.body.appendChild(n)}function s(e){y.action.addMessage&&h.message.human({delay:100,content:e}),y.action.show=!y.action.autoHide}function a(e){if(!e.loading&&!e.content)throw Error('BotUI: "content" is required in a non-loading message object.');e.type=e.type||"text",e.visible=!e.delay&&!e.loading;var t=y.messages.push(e)-1;return new Promise(function(n,o){setTimeout(function(){e.delay&&(e.visible=!0,e.loading&&(e.loading=!1)),n(t)},e.delay||0)})}function u(e){return"string"==typeof e&&(e={content:e}),e||{}}function c(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){if(!e.action)throw Error('BotUI: "action" property is required.')}function l(e){return d(e),c({type:"text",cssClass:"",autoHide:!0,addMessage:!0},e),y.action.type=e.type,y.action.cssClass=e.cssClass,y.action.autoHide=e.autoHide,y.action.addMessage=e.addMessage,new Promise(function(t,n){p=t,setTimeout(function(){y.action.show=!0},e.delay||0)})}if(n=n||{},!t)throw Error("BotUI: Container id is required as first argument.");if(!document.getElementById(t))throw Error("BotUI: Element with id #"+t+" does not exist.");if(!e.Vue&&!n.vue)throw Error("BotUI: Vue is required but not found.");var f,m,p,g={debug:!1,fontawesome:!0},h={},v={icon:/!\(([^\)]+)\)/gim,image:/!\[(.*?)\]\((.*?)\)/gim,link:/\[([^\[]+)\]\(([^\)]+)\)(\^?)/gim};e.Vue=e.Vue||n.vue;for(var b in g)n.hasOwnProperty(b)&&(g[b]=n[b]);e.Promise||Promise||options.promise||r("https://cdn.jsdelivr.net/es6-promise/4.1.0/es6-promise.min.js");var w={template:"
",data:function(){return{action:{text:{size:30,placeholder:"Write here .."},button:{},show:!1,type:"text",autoHide:!0,addMessage:!0},messages:[]}},computed:{isMobile:function(){return e.innerWidth&&e.innerWidth<=768}},methods:{handle_action_button:function(e){s(e.text);var t={type:"button",text:e.text,value:e.value};for(var n in e)e.hasOwnProperty(n)&&"type"!==n&&"text"!==n&&"value"!==n&&(t[n]=e[n]);p(t)},handle_action_text:function(){this.action.text.value&&(s(this.action.text.value),p({type:"text",value:this.action.text.value}),this.action.text.value="")}}};e.Vue.directive("botui-markdown",function(e,t){"false"!=t.value&&(e.innerHTML=i(e.textContent))}),e.Vue.directive("botui-scroll",{inserted:function(e){m.scrollTop=m.scrollHeight}}),e.Vue.directive("focus",{inserted:function(e){e.focus()}}),e.Vue.directive("botui-container",{inserted:function(e){m=e}}),f=new e.Vue({components:{"bot-ui":w}}).$mount("#"+t);var y=f.$children[0];return h.message={add:function(e){return a(u(e))},bot:function(e){return e=u(e),a(e)},human:function(e){return e=u(e),e.human=!0,a(e)},get:function(e){return Promise.resolve(y.messages[e])},remove:function(e){return y.messages.splice(e,1),Promise.resolve()},update:function(e,t){var n=y.messages[e];return n.content=t.content,n.visible=!t.loading,n.loading=!!t.loading,Promise.resolve(t.content)},removeAll:function(){return y.messages.splice(0,y.messages.length),Promise.resolve()}},h.action={show:l,hide:function(){return y.action.show=!1,Promise.resolve()},text:function(e){return d(e),y.action.text=e.action,l(e)},button:function(e){return d(e),e.type="button",y.action.button.buttons=e.action,l(e)}},g.fontawesome&&r("https://use.fontawesome.com/ea731dcb6f.js"),g.debug&&(h._botApp=f),h}}); \ No newline at end of file diff --git a/other-sites/me/botui/build/single-4.js b/other-sites/me/botui/build/single-4.js deleted file mode 100644 index 060a4aa..0000000 --- a/other-sites/me/botui/build/single-4.js +++ /dev/null @@ -1 +0,0 @@ -var botui=new BotUI('hello-mashiro');botui.message.add({delay:800,content:'你好👋'}).then(function(){botui.message.add({delay:1100,content:'我是 Mashiro'}).then(function(){botui.message.add({delay:1100,content:'一个可爱的蓝孩子~'}).then(function(){botui.message.add({delay:1500,content:'就读于上海财经大学'}).then(function(){botui.message.add({delay:1500,content:'向往技术却误入商科,但后来喜欢上了经济学…'}).then(function(){botui.message.add({delay:1800,content:'因为数据分析也需要Coder嘛'}).then(function(){botui.action.button({delay:1600,action:[{text:'然后呢? 😕',value:'sure'},{text:'少废话! 🙄',value:'skip'}]}).then(function(res){if(res.value=='sure'){sure()}if(res.value=='skip'){end()}})})})})})})});var sure=function(){botui.message.add({delay:1000,content:"谢谢😘"}).then(function(){secondpart()})};var end=function(){botui.message.add({delay:1000,content:"😒我猜你大概很着急"}).then(function(){secondpart()})};var secondpart=function(){botui.message.add({delay:1000,content:'平时我主攻R和Python,偶尔也折腾HTML/CSS/JS/PHP'}).then(function(){botui.message.add({delay:1800,content:'喜欢画画,希望有一天能够被称为画师'}).then(function(){botui.action.button({delay:1100,action:[{text:'为什么叫Mashiro呢? 🤔',value:'why-mashiro'}]}).then(function(res){thirdpart()})})})};var thirdpart=function(){botui.message.add({delay:1000,content:'Mashiro以及站名都来自一部动画,因为和主角有一样的爱好呀'}).then(function(){botui.action.button({delay:1500,action:[{text:'为什么是白猫呢? 🤔',value:'why-cat'}]}).then(function(res){fourthpart()})})};var fourthpart=function(){botui.message.add({delay:1000,content:'因为对GitHub有种执念…'}).then(function(){botui.message.add({delay:1100,content:'而且我真的是猫控!'}).then(function(){botui.message.add({delay:1600,content:'那么,仔细看看我的博客吧?^_^'})})})}; \ No newline at end of file diff --git a/other-sites/me/botui/build/single.js b/other-sites/me/botui/build/single.js deleted file mode 100644 index 2ee82ae..0000000 --- a/other-sites/me/botui/build/single.js +++ /dev/null @@ -1,136 +0,0 @@ -var botui = new BotUI('hello-mashiro'); - - - botui.message.add({ - delay: 800, - content: '你好👋' - }).then(function() { - botui.message.add({ - delay: 1100, - content: '我是 Mashiro' - }).then(function() { - botui.message.add({ - delay: 1100, - content: '一个可爱的蓝孩子~' - }).then(function() { - botui.message.add({ - delay: 1500, - content: '就读于上海财经大学' - }).then(function() { - botui.message.add({ - delay: 1500, - content: '向往技术却误入商科,但后来喜欢上了经济学…' - }).then(function() { - botui.message.add({ - delay: 1800, - content: '因为数据分析也需要Coder嘛' - }).then(function() { - botui.action.button({ - delay: 1600, - action: [ - { - text: '然后呢? 😕', - value: 'sure' - },{ - text: '少废话! 🙄', - value: 'skip' - } - ] - }).then(function (res) { - if(res.value == 'sure') { - //console.log('然后呢? 😕'); - sure(); - } - if(res.value == 'skip') { - //console.log('闭嘴! 🙄' ); - end(); - } - }); - }); - }); - }); - }); - }); - }); - - var sure = function () { - botui.message.add({ - delay: 1000, - content: "谢谢😘" - }).then(function() { - //console.log('进入第二段' ); - secondpart(); - }) - } - - var end = function () { - botui.message.add({ - delay: 1000, - content: "😒我猜你大概很着急" - }).then(function() { - //console.log('进入第二段' ); - secondpart(); - }) - } - - var secondpart = function() { - botui.message.add({ - delay: 1000, - content: '平时我主攻R和Python,偶尔也折腾HTML/CSS/JS/PHP' - }).then(function() { - botui.message.add({ - delay: 1800, - content: '喜欢画画,希望有一天能够被称为画师' - }).then(function() { - botui.action.button({ - delay: 1100, - action: [ - { - text: '为什么叫Mashiro呢? 🤔', - value: 'why-mashiro' - } - ] - }).then(function (res) { - //console.log('第三段'); - thirdpart(); - }) - }) - }) - } - - var thirdpart = function() { - botui.message.add({ - delay: 1000, - content: 'Mashiro以及站名都来自一部动画,因为和主角有一样的爱好呀' - }).then(function() { - botui.action.button({ - delay: 1500, - action: [ - { // show only one button - text: '为什么是白猫呢? 🤔', - value: 'why-cat' - } - ] - }).then(function (res) { - //console.log('第四段'); - fourthpart(); - }) - }) - } - - var fourthpart = function() { - botui.message.add({ - delay: 1000, - content: '因为对GitHub有种执念…' - }).then(function() { - botui.message.add({ - delay: 1100, - content: '而且我真的是猫控!' - }).then(function() { - botui.message.add({ - delay: 1600, - content: '那么,仔细看看我的博客吧?^_^' - }) - }) - }) - } \ No newline at end of file diff --git a/other-sites/me/botui/build/vue.min.js b/other-sites/me/botui/build/vue.min.js deleted file mode 100644 index 6455309..0000000 --- a/other-sites/me/botui/build/vue.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Vue.js v2.3.2 - * (c) 2014-2017 Evan You - * Released under the MIT License. - */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return void 0===e||null===e}function t(e){return void 0!==e&&null!==e}function n(e){return!0===e}function r(e){return"string"==typeof e||"number"==typeof e}function i(e){return null!==e&&"object"==typeof e}function o(e){return"[object Object]"===Ai.call(e)}function a(e){return"[object RegExp]"===Ai.call(e)}function s(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function c(e){var t=parseFloat(e);return isNaN(t)?e:t}function u(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function f(e,t){return Si.call(e,t)}function p(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function d(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function v(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function h(e,t){for(var n in t)e[n]=t[n];return e}function m(e){for(var t={},n=0;n=0&&$o[n].id>e.id;)n--;$o.splice(Math.max(n,Ao)+1,0,e)}else $o.push(e);Co||(Co=!0,ro($e))}}function Ae(e){To.clear(),Oe(e,To)}function Oe(e,t){var n,r,o=Array.isArray(e);if((o||i(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)Oe(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)Oe(e[r[n]],t)}}function Se(e,t,n){Eo.get=function(){return this[t][n]},Eo.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Eo)}function Te(e){e._watchers=[];var t=e.$options;t.props&&Ee(e,t.props),t.methods&&Me(e,t.methods),t.data?je(e):E(e._data={},!0),t.computed&&Le(e,t.computed),t.watch&&Pe(e,t.watch)}function Ee(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;lo.shouldConvert=o;for(var a in t)!function(o){i.push(o);var a=U(o,t,n,e);j(r,o,a),o in e||Se(e,"_props",o)}(a);lo.shouldConvert=!0}function je(e){var t=e.$options.data;t=e._data="function"==typeof t?Ne(t,e):t||{},o(t)||(t={});for(var n=Object.keys(t),r=e.$options.props,i=n.length;i--;)r&&f(r,n[i])||$(n[i])||Se(e,"_data",n[i]);E(t,!0)}function Ne(e,t){try{return e.call(t)}catch(e){return C(e,t,"data()"),{}}}function Le(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var i=t[r],o="function"==typeof i?i:i.get;n[r]=new So(e,o,g,jo),r in e||Ie(e,r,i)}}function Ie(e,t,n){"function"==typeof n?(Eo.get=De(t),Eo.set=g):(Eo.get=n.get?!1!==n.cache?De(t):n.get:g,Eo.set=n.set?n.set:g),Object.defineProperty(e,t,Eo)}function De(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),oo.target&&t.depend(),t.value}}function Me(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?g:d(t[n],e)}function Pe(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function pt(e){this._init(e)}function dt(e){e.use=function(e){if(!e.installed){var t=v(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):"function"==typeof e&&e.apply(null,t),e.installed=!0,this}}}function vt(e){e.mixin=function(e){this.options=B(this.options,e)}}function ht(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=B(n.options,e),a.super=n,a.options.props&&mt(a),a.options.computed&>(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Di.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=h({},a.options),i[r]=a,a}}function mt(e){var t=e.options.props;for(var n in t)Se(e.prototype,"_props",n)}function gt(e){var t=e.options.computed;for(var n in t)Ie(e.prototype,n,t[n])}function yt(e){Di.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&o(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function _t(e){return e&&(e.Ctor.options.name||e.tag)}function bt(e,t){return"string"==typeof e?e.split(",").indexOf(t)>-1:!!a(e)&&e.test(t)}function $t(e,t,n){for(var r in e){var i=e[r];if(i){var o=_t(i.componentOptions);o&&!n(o)&&(i!==t&&xt(i),e[r]=null)}}}function xt(e){e&&e.componentInstance.$destroy()}function wt(e){for(var n=e.data,r=e,i=e;t(i.componentInstance);)i=i.componentInstance._vnode,i.data&&(n=Ct(i.data,n));for(;t(r=r.parent);)r.data&&(n=Ct(n,r.data));return kt(n)}function Ct(e,n){return{staticClass:At(e.staticClass,n.staticClass),class:t(e.class)?[e.class,n.class]:n.class}}function kt(e){var n=e.class,r=e.staticClass;return t(r)||t(n)?At(r,Ot(n)):""}function At(e,t){return e?t?e+" "+t:e:t||""}function Ot(n){if(e(n))return"";if("string"==typeof n)return n;var r="";if(Array.isArray(n)){for(var o,a=0,s=n.length;a-1?ua[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ua[e]=/HTMLUnknownElement/.test(t.toString())}function Et(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function jt(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Nt(e,t){return document.createElementNS(ia[e],t)}function Lt(e){return document.createTextNode(e)}function It(e){return document.createComment(e)}function Dt(e,t,n){e.insertBefore(t,n)}function Mt(e,t){e.removeChild(t)}function Pt(e,t){e.appendChild(t)}function Rt(e){return e.parentNode}function Ft(e){return e.nextSibling}function Bt(e){return e.tagName}function Ht(e,t){e.textContent=t}function Ut(e,t,n){e.setAttribute(t,n)}function Vt(e,t){var n=e.data.ref;if(n){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?l(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(i)<0?o[n].push(i):o[n]=[i]:o[n]=i}}function zt(e,n){return e.key===n.key&&e.tag===n.tag&&e.isComment===n.isComment&&t(e.data)===t(n.data)&&Jt(e,n)}function Jt(e,n){if("input"!==e.tag)return!0;var r;return(t(r=e.data)&&t(r=r.attrs)&&r.type)===(t(r=n.data)&&t(r=r.attrs)&&r.type)}function Kt(e,n,r){var i,o,a={};for(i=n;i<=r;++i)o=e[i].key,t(o)&&(a[o]=i);return a}function qt(e,t){(e.data.directives||t.data.directives)&&Wt(e,t)}function Wt(e,t){var n,r,i,o=e===pa,a=t===pa,s=Zt(e.data.directives,e.context),c=Zt(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,Yt(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(Yt(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n=0&&" "===(m=e.charAt(h));h--);m&&_a.test(m)||(l=!0)}}else void 0===o?(v=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==v&&t(),a)for(i=0;i=Bo}function gn(e){return 34===e||39===e}function yn(e){var t=1;for(zo=Vo;!mn();)if(e=hn(),gn(e))_n(e);else if(91===e&&t++,93===e&&t--,0===t){Jo=Vo;break}}function _n(e){for(var t=e;!mn()&&(e=hn())!==t;);}function bn(e,t,n){Ko=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if("select"===o)wn(e,r,i);else if("input"===o&&"checkbox"===a)$n(e,r,i);else if("input"===o&&"radio"===a)xn(e,r,i);else if("input"===o||"textarea"===o)Cn(e,r,i);else if(!Pi.isReservedTag(o))return pn(e,r,i),!1;return!0}function $n(e,t,n){var r=n&&n.number,i=ln(e,"value")||"null",o=ln(e,"true-value")||"true",a=ln(e,"false-value")||"false";an(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),un(e,$a,"var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+dn(t,"$$c")+"}",null,!0)}function xn(e,t,n){var r=n&&n.number,i=ln(e,"value")||"null";i=r?"_n("+i+")":i,an(e,"checked","_q("+t+","+i+")"),un(e,$a,dn(t,i),null,!0)}function wn(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+dn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),un(e,"change",o,null,!0)}function Cn(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ba:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=dn(t,l);c&&(f="if($event.target.composing)return;"+f),an(e,"value","("+t+")"),un(e,u,f,null,!0),(s||a||"number"===r)&&un(e,"blur","$forceUpdate()")}function kn(e){var n;t(e[ba])&&(n=zi?"change":"input",e[n]=[].concat(e[ba],e[n]||[]),delete e[ba]),t(e[$a])&&(n=Zi?"click":"change",e[n]=[].concat(e[$a],e[n]||[]),delete e[$a])}function An(e,t,n,r,i){if(n){var o=t,a=qo;t=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&On(e,t,r,a)}}qo.addEventListener(e,t,Gi?{capture:r,passive:i}:r)}function On(e,t,n,r){(r||qo).removeEventListener(e,t,n)}function Sn(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},i=t.data.on||{};qo=n.elm,kn(r),G(r,i,An,On,n.context)}}function Tn(n,r){if(!e(n.data.domProps)||!e(r.data.domProps)){var i,o,a=r.elm,s=n.data.domProps||{},c=r.data.domProps||{};t(c.__ob__)&&(c=r.data.domProps=h({},c));for(i in s)e(c[i])&&(a[i]="");for(i in c)if(o=c[i],"textContent"!==i&&"innerHTML"!==i||(r.children&&(r.children.length=0),o!==s[i]))if("value"===i){a._value=o;var u=e(o)?"":String(o);En(a,r,u)&&(a.value=u)}else a[i]=o}}function En(e,t,n){return!e.composing&&("option"===t.tag||jn(e,n)||Nn(e,n))}function jn(e,t){return document.activeElement!==e&&e.value!==t}function Nn(e,n){var r=e.value,i=e._vModifiers;return t(i)&&i.number||"number"===e.type?c(r)!==c(n):t(i)&&i.trim?r.trim()!==n.trim():r!==n}function Ln(e){var t=In(e.style);return e.staticStyle?h(e.staticStyle,t):t}function In(e){return Array.isArray(e)?m(e):"string"==typeof e?Ca(e):e}function Dn(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=Ln(i.data))&&h(r,n);(n=Ln(e.data))&&h(r,n);for(var o=e;o=o.parent;)o.data&&(n=Ln(o.data))&&h(r,n);return r}function Mn(n,r){var i=r.data,o=n.data;if(!(e(i.staticStyle)&&e(i.style)&&e(o.staticStyle)&&e(o.style))){var a,s,c=r.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=In(r.data.style)||{};r.data.normalizedStyle=t(p.__ob__)?h({},p):p;var d=Dn(r,!0);for(s in f)e(d[s])&&Oa(c,s,"");for(s in d)(a=d[s])!==f[s]&&Oa(c,s,null==a?"":a)}}function Pn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Rn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function Fn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&h(t,ja(e.name||"v")),h(t,e),t}return"string"==typeof e?ja(e):void 0}}function Bn(e){Fa(function(){Fa(e)})}function Hn(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Pn(e,t)}function Un(e,t){e._transitionClasses&&l(e._transitionClasses,t),Rn(e,t)}function Vn(e,t,n){var r=zn(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===La?Ma:Ra,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=La,l=a,f=o.length):t===Ia?u>0&&(n=Ia,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?La:Ia:null,f=n?n===La?o.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===La&&Ba.test(r[Da+"Property"])}}function Jn(e,t){for(;e.length1}function Yn(e,t){!0!==t.data.show&&qn(t)}function Qn(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(y(er(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Xn(e,t){for(var n=0,r=t.length;n=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)t.end&&t.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,c=t.isUnaryTag||Ni,u=t.canBeLeftOpenTag||Ni,l=0;e;){if(i=e,o&&Ns(o)){var f=o.toLowerCase(),p=Ls[f]||(Ls[f]=new RegExp("([\\s\\S]*?)(]*>)","i")),d=0,v=e.replace(p,function(e,n,r){return d=r.length,Ns(f)||"noscript"===f||(n=n.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(f,l-d,l)}else{var h=e.indexOf("<");if(0===h){if(fs.test(e)){var m=e.indexOf("--\x3e");if(m>=0){n(m+3);continue}}if(ps.test(e)){var g=e.indexOf("]>");if(g>=0){n(g+2);continue}}var y=e.match(ls);if(y){n(y[0].length);continue}var _=e.match(us);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var $=function(){var t=e.match(ss);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var i,o;!(i=e.match(cs))&&(o=e.match(os));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if($){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&rs(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||"html"===n&&"head"===o||!!i,f=e.attrs.length,p=new Array(f),d=0;d=0){for(w=e.slice(h);!(us.test(w)||ss.test(w)||fs.test(w)||ps.test(w)||(C=w.indexOf("<",1))<0);)h+=C,w=e.slice(h);x=e.substring(0,h),n(h)}h<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===i){t.chars&&t.chars(e);break}}r()}function mr(e,t){var n=t?Rs(t):Ps;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=tn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a0,Ki=Vi&&Vi.indexOf("edge/")>0,qi=Vi&&Vi.indexOf("android")>0,Wi=Vi&&/iphone|ipad|ipod|ios/.test(Vi),Zi=Vi&&/chrome\/\d+/.test(Vi)&&!Ki,Gi=!1;if(Ui)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){Gi=!0}}),window.addEventListener("test-passive",null,Yi)}catch(e){}var Qi,Xi,eo=function(){return void 0===Qi&&(Qi=!Ui&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Qi},to=Ui&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,no="undefined"!=typeof Symbol&&k(Symbol)&&"undefined"!=typeof Reflect&&k(Reflect.ownKeys),ro=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1?v(n):n;for(var r=v(arguments,1),i=0,o=n.length;i1&&(t[n[0].trim()]=n[1].trim())}}),t}),ka=/^--/,Aa=/\s*!important$/,Oa=function(e,t,n){if(ka.test(t))e.style.setProperty(t,n);else if(Aa.test(n))e.style.setProperty(t,n.replace(Aa,""),"important");else{var r=Ta(t);if(Array.isArray(n))for(var i=0,o=n.length;iv?(f=e(i[g+1])?null:i[g+1].elm,y(n,f,i,d,g,o)):d>g&&b(n,r,p,v)}function w(r,i,o,a){if(r!==i){if(n(i.isStatic)&&n(r.isStatic)&&i.key===r.key&&(n(i.isCloned)||n(i.isOnce)))return i.elm=r.elm,void(i.componentInstance=r.componentInstance);var s,c=i.data;t(c)&&t(s=c.hook)&&t(s=s.prepatch)&&s(r,i);var u=i.elm=r.elm,l=r.children,f=i.children;if(t(c)&&h(i)){for(s=0;s',n.innerHTML.indexOf(t)>0}("\n"," "),ts=u("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ns=u("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),rs=u("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),is=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],os=new RegExp("^\\s*"+/([^\s"'<>\/=]+)/.source+"(?:\\s*("+/(?:=)/.source+")\\s*(?:"+is.join("|")+"))?"),as="[a-zA-Z_][\\w\\-\\.]*",ss=new RegExp("^<((?:"+as+"\\:)?"+as+")"),cs=/^\s*(\/?)>/,us=new RegExp("^<\\/((?:"+as+"\\:)?"+as+")[^>]*>"),ls=/^]+>/i,fs=/^ - -
- -
- - - -
- -
- - - - - - - - -
-
- - - - - - -