Showing preview only (3,576K chars total). Download the full file or copy to clipboard to get everything.
Repository: unbug/codelf
Branch: master
Commit: 0bfb88a8d297
Files: 132
Total size: 3.4 MB
Directory structure:
gitextract_0hg9fq90/
├── .editorconfig
├── .eslintrc.js
├── .gitattributes
├── .gitignore
├── LICENSE
├── README.md
├── __static/
│ ├── app/
│ │ ├── cache.manifest
│ │ ├── ddms_frame_callback.html
│ │ ├── html/
│ │ │ ├── bookmark.html
│ │ │ ├── components.html
│ │ │ ├── donate.html
│ │ │ ├── main.html
│ │ │ ├── scripts.html
│ │ │ ├── sourcecode.html
│ │ │ └── styles.html
│ │ ├── index.html
│ │ ├── resources/
│ │ │ ├── css/
│ │ │ │ ├── prettify.css
│ │ │ │ └── style.css
│ │ │ └── fonts/
│ │ │ └── FontAwesome.otf
│ │ ├── scss/
│ │ │ ├── _animate.scss
│ │ │ ├── _bookmark.scss
│ │ │ ├── _components.scss
│ │ │ ├── _donate.scss
│ │ │ ├── _main.scss
│ │ │ ├── _sourcecode.scss
│ │ │ ├── _util.scss
│ │ │ └── style.scss
│ │ ├── src/
│ │ │ ├── App.js
│ │ │ ├── AppBundle.js
│ │ │ ├── Util.js
│ │ │ ├── lib/
│ │ │ │ ├── all.js
│ │ │ │ ├── fastclick.js
│ │ │ │ ├── jquery.highlight.js
│ │ │ │ └── prettify.js
│ │ │ ├── model/
│ │ │ │ ├── BookmarkModel.js
│ │ │ │ ├── DDMSModel.js
│ │ │ │ ├── Database.js
│ │ │ │ ├── Model.js
│ │ │ │ ├── SearchcodeModel.js
│ │ │ │ └── YoudaoTranslateModel.js
│ │ │ └── view/
│ │ │ ├── BookmarkView.js
│ │ │ └── View.js
│ │ └── sw.js
│ └── data/
│ └── repos.json
├── app/
│ ├── ddms_frame_callback.html
│ ├── index.html
│ └── opensearch.xml
├── assets/
│ ├── codelf_logo.psd
│ └── fonts/
│ └── FontAwesome.otf
├── babel.config.js
├── build-system/
│ ├── build.js
│ ├── clean.js
│ ├── default.js
│ ├── dist.js
│ ├── lint.js
│ ├── server.js
│ └── util.js
├── dist/
│ ├── css/
│ │ ├── app.css
│ │ ├── app.f1364fce.css
│ │ ├── lib.b0f67b98.css
│ │ ├── lib.css
│ │ └── themes/
│ │ └── default/
│ │ └── assets/
│ │ └── fonts/
│ │ └── icons.otf
│ ├── ddms_frame_callback.html
│ ├── fonts/
│ │ └── FontAwesome.otf
│ ├── index.html
│ ├── js/
│ │ ├── app.792fa086.js
│ │ ├── app.js
│ │ ├── lib.5e430a5b.js
│ │ └── lib.js
│ ├── opensearch.xml
│ └── sw.js
├── gulpfile.js
├── lib.config.js
├── package.json
├── src/
│ ├── App.js
│ ├── components/
│ │ ├── Bookmark.js
│ │ ├── Copybook.js
│ │ ├── Donate.js
│ │ ├── Doodle.js
│ │ ├── Loading.js
│ │ ├── SearchBar.js
│ │ ├── SearchError.js
│ │ ├── SourceCode.js
│ │ ├── Suggestion.js
│ │ ├── TitleLogo.js
│ │ ├── VariableItem.js
│ │ ├── VariableList.js
│ │ └── hooks/
│ │ └── useCodeHighlighting.js
│ ├── constants/
│ │ └── Configs.js
│ ├── containers/
│ │ ├── CopybookContainer.js
│ │ ├── MainContainer.js
│ │ ├── NavBarContainer.js
│ │ └── NoticeContainer.js
│ ├── models/
│ │ ├── AppModel.js
│ │ ├── BaseModel.js
│ │ ├── CopybookModel.js
│ │ ├── DDMSModel.js
│ │ ├── ErrorModel.js
│ │ ├── SearchCodeModel.js
│ │ ├── Store.js
│ │ └── metadata/
│ │ ├── BaiduTranslateData.js
│ │ ├── BingTranslateData.js
│ │ ├── BookmarkData.js
│ │ ├── GitHubData.js
│ │ └── YoudaoTranslateData.js
│ ├── sw.js
│ ├── utils/
│ │ ├── FormHandler.js
│ │ ├── HashHandler.js
│ │ ├── JSONP.js
│ │ ├── LocalStorage.js
│ │ ├── Navigator.js
│ │ ├── Param.js
│ │ ├── Tools.js
│ │ └── TranslateHandler.js
│ └── vendors/
│ ├── prettify.css
│ └── prettify.js
├── styles/
│ ├── _animation.scss
│ ├── _common.scss
│ ├── _components.scss
│ ├── _constants.scss
│ ├── _containers.scss
│ ├── _copybook-container.scss
│ ├── _donate.scss
│ ├── _doodle.scss
│ ├── _logo.scss
│ ├── _main-container.scss
│ ├── _nav-bar-container.scss
│ ├── _notice-container.scss
│ ├── _source-code.scss
│ ├── _utils.scss
│ └── app.scss
└── webpack.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
================================================
FILE: .eslintrc.js
================================================
module.exports = {
'extends': [
'eslint:recommended',
'plugin:react/recommended'
],
'plugins': [
'react-hooks'
],
'rules': {
'no-unused-vars': [2, {'vars': 'all', 'args': 'none'}],
'no-empty': [0],
'react/prop-types': [0],
'react/no-unescaped-entities': [0],
'react-hooks/rules-of-hooks': 'error',
'no-useless-escape': [0],
'no-control-regex': [0]
},
'env': {
'es6': true,
'node': true,
'browser': true
},
'globals': {
'React': true,
'ReactDOM': true,
'Promise': true,
'd3': true,
'NProgress': true,
'ClipboardJS': true,
'PR': true,
'Mark': true
},
'parser': 'babel-eslint',
'parserOptions': {
'sourceType': 'module'
}
};
================================================
FILE: .gitattributes
================================================
dist -diff
assets -diff
================================================
FILE: .gitignore
================================================
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
.DS_Store
Thumbs.db
.sass-cache
.idea
.vscode
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
package-lock.json
npm-debug.log
node_modules
docs/html
app/css
app/js
app/images
app/fonts
================================================
FILE: LICENSE
================================================
SAY NO TO SUICIDE PUBLIC LICENSE
Version 1.0, September 2017
https://github.com/unbug/snts
Copyright (C) 2017 @unbug
Everyone is permitted to copy and distribute verbatim copies
of this license document.
TERMS AND CONDITIONS FOR USE, REPRODUCTION, MODIFICATION, AND DISTRIBUTION
1. You can do anything with the original copy,
whenever, whatever, no limitation.
2. When you are in despair, just talk to someone you trust,
someone you love. Getting help from your family, your friends,
the police, the community, the public.
3. Keep yourself alive and say no to suicide.
================================================
FILE: README.md
================================================
<img src="https://user-images.githubusercontent.com/799578/50462941-8075fe80-09c3-11e9-89e7-af0cb7991406.png" width="80">
CODELF(变量命名神器)
=================
A search tool helps dev to solve the naming things problem.
Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Project, GitLab to find real-world usage variable names.
Also a daily Algorithm Copybook.
Also a GitHub stars, repositories tagger and organizer tool.
>There are only two hard things in Computer Science: cache invalidation and naming things.-- Phil Karlton
>
>

WIKI
=================
[简体中文](https://github.com/unbug/codelf/wiki)
Plugins
=================
### Codelf for VS Code
##### Install
Codelf is on VS Code Extension Marketplace. Just search "codelf" on VS Code EXTENSIONS pane and click install.
##### Usage
1. Select text, right-click and select "Codelf".
<img width="521" alt="select" src="https://cloud.githubusercontent.com/assets/799578/26273099/199ab0b0-3d5b-11e7-9cb6-b48a035b0a1f.png">
### Codelf for Atom
##### Install
Codelf is [on Atom package](https://atom.io/packages/codelf). Search "codelf" on Atom setting pane and click install.Please see [Atom Packages in the Atom Flight Manual](http://flight-manual.atom.io/using-atom/sections/atom-packages/)
##### Usage
1. Select text, right-click and click "Codelf".
2. Open Packages menu select "Codelf"
3. Press CTRL+ALT+E to open Codelf
<img src="https://cloud.githubusercontent.com/assets/799578/12577706/2b6d4970-c457-11e5-83d3-dba0ce2c867c.gif" width="600">
Also see [How to use Codelf on Atom](https://github.com/unbug/atom-codelf#usage)
### Codelf for Sublime Text
##### Install
1. [Download Codelf for Sublime](https://github.com/unbug/codelf/archive/st-0.0.5.zip) or [Select a "st-" version to download](https://github.com/unbug/codelf/tags)
2. Unzip and rename the folder to `Codelf`
3. Copy the folder into `Packages` directory, which you can find using the menu item `Sublime Text -> Preferences -> Browse Packages...`
4. Restart Sublime Text
##### Usage
1. Select text, right-click and click "Codelf".

2. Open Command Palette using menu item Tools -> Command Palette... --> Type "E" or "Codelf" -->Select "Search Selection" or "Search From Input"

Apps
=================
[Codelf Chrome App](https://chrome.google.com/webstore/detail/codelf-best-github-stars/jnmjaglhmmcplekpfnblniiammmdpaan)
Find me
=================
* Twitter [@unbug](https://twitter.com/unbug)
* 微博 [@听奏](http://weibo.com/unbug)
Videos
===============
[](https://youtu.be/Uqg8HWaa-2c)
Screenshots
================
### Search variable


### Daily Algorithm Copybook


### GitHub stars, repositories tagger and organizer tool


================================================
FILE: __static/app/cache.manifest
================================================
CACHE MANIFEST
# Build: _BUILD_VERSION_
CACHE:
_FILES_
NETWORK:
*
================================================
FILE: __static/app/ddms_frame_callback.html
================================================
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
var thisPage = window.location.href
.replace(window.location.hash, '');
var thisPath = thisPage.substring(0, thisPage.lastIndexOf('/') + 1);
/**
* window.location.search
* window.location.hash
*/
function localParam(search, hash) {
search = search || window.location.search;
hash = hash || window.location.hash;
var fn = function (str, reg) {
if (str) {
var data = {};
str.replace(reg, function ($0, $1, $2, $3) {
data[$1] = $3;
});
return data;
}
}
return {
search: fn(search, new RegExp("([^?=&]+)(=([^&]*))?", "g")) || {},
hash: fn(hash, new RegExp("([^#=&]+)(=([^&]*))?", "g")) || {}
};
}
var lp = localParam();
var callback = window.parent[lp.search['frame_callback']];
callback && callback(decodeURIComponent(window.location.href));
</script>
</head>
<body ontouchstart="">
</body>
</html>
================================================
FILE: __static/app/html/bookmark.html
================================================
<section class="modal fade bookmark-modal modal--fix" tabindex="-1" role="dialog" aria-labelledby="bookmarkModal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<button class="btn btn-primary-outline btn-sm add-account"><i class="fa fa-plus-circle"></i> GitHub</button>
<button class="btn btn-primary-outline btn-sm add-group"><i class="fa fa-plus-circle"></i> Group</button>
<div class="btn-group btn-group-sm" role="group">
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-tags"></i> Tags
</button>
<div class="dropdown-menu dropdown-menu-right tag-menu">
<div class="dropdown-item">
All Tags
</div>
<div role="separator" class="dropdown-divider"></div>
</div>
</div>
</div>
<button class="btn btn-primary-outline btn-sm sync"><i class="fa fa-cloud"></i> Sync</button>
</div>
<div class="modal-body">
<header class="hd empty">
<div class="loading">
<div class="logo"><img class="spinner" src="resources/images/codelf_logo.png"></div>
</div>
<div class="empty">
<div class="top">
<i class="bookmark-logo fa fa-bookmark fa-5x"></i>
<h5>Add GitHub users to organize the stars and repositories</h5>
</div>
<div class="input-group form">
<input type="text" class="form-control" placeholder="username">
<span class="input-group-btn">
<button class="btn btn-secondary submit" type="button">Add</button>
</span>
</div>
<div class="tip text-muted">*e.g. https://github.com/<span class="text-danger">username</span></div>
</div>
</header>
<section class="bd" role="tablist">
<script type="text/html" data-template="repoGroup">
<article class="card repo-group-item" data-id="{id}">
<header class="card-header hd" role="tab" id="repo_group_hd_{id}">
<a href="#repo_group_list_{id}" data-toggle="collapse" data-parent=".bd" aria-expanded="false" aria-controls="repo_group_list_{id}">{name}</a>
<span class="label label-info label-pill count">{itemCount}</span>
<div class="pull-xs-right ctrl">
<div class="btn-group btn-group-sm" role="group">
<div class="btn-group" role="group">
<div class="menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="repo_group_menu_{id}"><i class="fa fa-cog"></i></div>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="repo_group_menu_{id}">
<div class="dropdown-item edit" data-id="{id}" data-name="{name}"><i class="fa fa-pencil-square-o"></i></div>
<div class="dropdown-item del" data-id="{id}"><i class="fa fa-trash-o"></i></div>
</div>
</div>
</div>
</div>
<form class="form-inline pull-xs-right search">
<div class="form-group">
<div class="input-group input-group-sm">
<input type="text" class="form-control" placeholder="search...">
<div class="input-group-addon submit"><i class="fa fa-search"></i></div>
</div>
</div>
</form>
</header>
<section class="card-block repo-list collapse" id="repo_group_list_{id}" role="tabpanel" aria-labelledby="repo_group_hd_{id}">
{items}
</section>
</article>
</script>
<script type="text/html" data-template="groupItem">
<div class="dropdown-item add-repo" data-id="{id}">
<span class="label label-default label-pill"><i class="fa fa-check"></i></span> {name}
</div>
</script>
<script type="text/html" data-template="tagItem">
<div class="dropdown-item add-repo" data-id="{id}">
<span class="label label-pill" style="background:{color};"><i class="fa fa-check"></i></span> {name}
</div>
</script>
<script type="text/html" data-template="tagDot">
<span style="color: {color}"><i class="fa fa-circle"></i></span>
</script>
<script type="text/html" data-template="repoItem">
<article class="card repo-item" data-id="{id}" data-repoid="{originRepoId}" data-name="{_full_name}" data-repolang="{language}" data-repostar="{stargazers_count}" data-repostar="{stargazers_count}" title="{language}">
<div class="card-block">
<header class="repo-item__hd"><h6><span class="label label-default label-pill">{language}</span><span class="label label-default label-pill">{stargazers_count}</span><a href="{html_url}" target="_blank">{full_name}</a></h6></header>
<section class="repo-item__bd fix-break-word">{description}</section>
</div>
<div class="card-footer">
<div class="btn-group btn-group-sm group-menu" role="group">
<div class="btn-group" role="group">
<a class="dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0);">
Add to group
</a>
<div class="dropdown-menu">
{groupItems}
<div role="separator" class="dropdown-divider"></div>
<div class="dropdown-item text-primary add-group">
<i class="fa fa-plus-circle"></i> Add new group
</div>
</div>
</div>
</div>
<div class="btn-group btn-group-sm tag-menu" role="group">
<div class="btn-group" role="group">
<a class="dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0);">
Add to tag
</a>
<div class="dropdown-menu">
{tagItems}
</div>
</div>
</div>
<div class="btn-group btn-group-sm tag-dots fade" role="group"></div>
</div>
</article>
</script>
</section>
</div>
</div>
</div>
</section>
<section class="modal fade bookmark-user-modal" tabindex="-1" role="dialog" aria-labelledby="bookmarkAccountModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h6 class="modal-title">Add GitHub User</h6>
</div>
<div class="modal-body">
<div class="text-muted">*e.g. https://github.com/<span class="text-danger">username</span></div>
<div class="input-group form">
<input type="text" class="form-control" placeholder="username">
<span class="input-group-btn">
<button class="btn btn-secondary submit" type="button" data-dismiss="modal">Add</button>
</span>
</div>
<section class="list-group user-list">
<script type="text/html">
<article class="list-group-item user-item" data-id="{id}">
<a href="https://github.com/{name}" target="_blank">@{name}</a>
<div class="btn-group btn-group-sm pull-xs-right ctrl">
<button class="btn btn-secondary btn-sm sync" data-name="{name}" data-dismiss="modal"><i class="fa fa-refresh"></i> Sync</button>
<button class="btn btn-secondary btn-sm del" data-id="{id}"><i class="fa fa-trash-o"></i></button>
</div>
</article>
</script>
</section>
</div>
</div>
</div>
</section>
<section class="modal fade bookmark-group-modal" tabindex="-1" role="dialog" aria-labelledby="bookmarkGroupModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h6 class="modal-title">Edit group</h6>
</div>
<div class="modal-body">
<input type="text" class="form-control group-name" placeholder="New group name">
</div>
<div class="modal-footer">
<button class="btn btn-secondary submit-group" type="button" data-dismiss="modal">Done</button>
</div>
</div>
</div>
</section>
<section class="modal fade bookmark-sync-modal" tabindex="-1" role="dialog" aria-labelledby="bookmarkSyncModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h6 class="modal-title">Sync</h6>
</div>
<div class="modal-body">
<div class="text-muted">Download/upload groups and tags with a sync id</div>
<input type="text" class="form-control sync-id" placeholder="Sync id">
<div class="text-danger sync-note">First, click "Upload" to backup and get a sync id</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary download" type="button" data-dismiss="modal"><i class="fa fa-cloud-download"></i> Download</button>
<button class="btn btn-secondary upload" type="button" data-dismiss="modal"><i class="fa fa-cloud-upload"></i> Upload</button>
</div>
</div>
</div>
</section>
================================================
FILE: __static/app/html/components.html
================================================
<div class="nav-bar">
<div class="bookmark-btn animated fadeInDown" data-toggle="tooltip" data-placement="left" title="Organize GitHub stars">
<i class="bookmark-logo fa fa-bookmark fa-2x hidden-md-up"></i>
<i class="bookmark-logo fa fa-bookmark fa-3x hidden-sm-down"></i>
</div>
<a href="https://github.com/unbug/codelf" class="github-corner animated fadeInDown" title="Fork me on GitHub" target="_blank">
<i class="fa fa-github-square fa-2x hidden-md-up"></i>
<i class="fa fa-github-square fa-3x hidden-sm-down"></i>
</a>
</div>
<div class="modal fade confirm-modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary yes" data-dismiss="modal">Yes</button>
</div>
</div>
</div>
</div>
================================================
FILE: __static/app/html/donate.html
================================================
<section class="container donate" hidden>
<header class="title">
<h6 class="lang en">Buy <a href="https://twitter.com/unbug" target="_blank">@unbug</a> a drink</h6>
<h6 class="lang cn">赞助 <a href="http://weibo.com/unbug/" target="_blank">@听奏</a> 这个月的房租</h6>
</header>
<div class="bd">
<img src="resources/images/wechatpay.jpg" class="wechatpay" title="微信付款"/>
<img src="resources/images/zhifubao.png" class="zhifubao" title="支付宝转账"/>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="43H7K8PWR4VV4">
<input type="image" class="paypal" src="resources/images/paypal.png" border="0" name="submit" title="Paypal">
</form>
</div>
</section>
================================================
FILE: __static/app/html/main.html
================================================
<section class="container main">
<header class="main-title">
<header><h1><a href="./"><span>C</span><span>O</span><span>D</span><span>E</span><span>L</span><span>F</span></a></h1></header>
<h5>Search over projects from GitHub, Bitbucket, GitLab to find </h5>
<h5><span class="label">real-world usage</span> <span class="label">variable names</span></h5>
</header>
<section class="row search-form">
<div class="col-xs-12">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
</button>
<div class="dropdown-menu">
<div class="dropdown-item all">
All 90 Languages (Reset)
</div>
<div role="separator" class="dropdown-divider"></div>
<script type="text/html">
<div class="dropdown-item">
<label class="c-input c-checkbox">
<input type="checkbox" value="{id}" {checked}>
<span class="c-indicator"></span>
{language}
</label>
</div>
</script>
</div>
</div>
<form action="javascript:void(0);">
<input type="search" name="search" class="form-control" placeholder="AI 人工智能">
</form>
<span class="input-group-btn">
<button class="btn btn-secondary search" type="button" data-toggle="tooltip" data-placement="left" data-trigger="manual" title="Click here to show more">
<i class="fa fa-search normal"></i>
<i class="fa fa-search-plus more"></i>
</button>
<a class="btn btn-secondary hidden-sm-down help" href="https://github.com/unbug/codelf/wiki" target="_blank"><i class="fa fa-question-circle"></i></a>
</span>
</div>
<section class="plugins text-muted">
<i class="fa fa-plug"></i> For
<a class="text-muted" href="https://github.com/unbug/codelf#codelf-for-vs-code" target="_blank">VS Code</a>,
<a class="text-muted" href="https://atom.io/packages/codelf" target="_blank">Atom</a>,
<a class="text-muted" href="https://github.com/unbug/codelf#codelf-for-sublime-text" target="_blank">Sublime Text</a>,
<a class="text-muted" href="https://chrome.google.com/webstore/detail/codelf-best-github-stars/jnmjaglhmmcplekpfnblniiammmdpaan" target="_blank">Chrome</a>
</section>
</div>
</section>
<section class="row search-relate">
<div class="col-xs-12 bd">
<script type="text/html">
<a class="label label-primary" href="#{val}">{val}</a>
</script>
</div>
</section>
<section class="row search-result">
<div class="col-xs-12">
<div class="jumbotron ct ct--white" role="alert">
<header class="hd">
<div class="loading">
<div class="logo"><img class="spinner" src="resources/images/codelf_logo.png"></div>
</div>
<div class="error">
<div class="logo"><a href="./"><img src="resources/images/codelf_logo.png"></a></div>
<div class="text-default">Nothing found, please come back later, or try <span class="label label-default">Suggestions</span> :)</div>
</div>
</header>
<section class="bd">
<blockquote class="blockquote">
<img src="resources/images/twohardtings.jpg">
</blockquote>
<script type="text/html">
<h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-val="{val}"><span class="btn btn-{label_type}-outline btn-sm" title="{val}">{val}</span></h5>
</script>
</section>
</div>
</div>
</section>
</section>
<section class="notice-link">
<a class="animated fadeIn" href="https://www.gitbook.com/book/unbug/react-native-training/details" target="_blank"><i class="fa fa-video-camera" aria-hidden="true"></i> [开源] React Native 开发培训资料和视频</a>
<a class="animated fadeIn" href="//mihtool.com/" target="_blank"><i class="fa fa-code" aria-hidden="true"></i> [MIHTool] iOS 上调试和优化页面的工具</a>
<a class="animated fadeIn" href="https://github.com/unbug/snts" target="_blank"><i class="fa fa-heart" aria-hidden="true"></i> SAY NO TO SUICIDE PUBLIC LICENSE</a>
<a class="animated fadeIn" href="https://www.wasmrocks.com/" target="_blank"><i class="fa fa-hand-rock-o" aria-hidden="true"></i> WebAssembly Rocks</a>
</section>
<script type="text/html" template="variableMenu">
<div class="btn-group-vertical variable-btns" role="group">
<button type="button" class="btn btn-secondary"><a href="#{val}">Search</a></button>
<button type="button" class="btn btn-secondary"><a href="{repo}" target="_blank">Repo</a></button>
<button type="button" class="btn btn-secondary variable-btns__copy" data-clipboard-text="{val}">Copy</button>
<button type="button" class="btn btn-secondary variable-btns__code" data-id="{id}" data-val="{val}">Codes <span class="label label-danger label-pill">{count}</span></button>
</div>
</script>
================================================
FILE: __static/app/html/scripts.html
================================================
<script src="src/lib/all.js"></script>
<script id="worker_prettify" type="javascript/worker">
self.onmessage = function(e) {
if(e.data=='before'){
self.postMessage('after');
}
};
</script>
<script>
@@include("src/AppBundle.js")
</script>
<script>
if (/https/.test(location.protocol) && 'serviceWorker' in navigator) {
if (!Cache.prototype.add) {
Cache.prototype.add = function add(request) {
return this.addAll([request]);
};
}
if (!Cache.prototype.addAll) {
Cache.prototype.addAll = function addAll(requests) {
var cache = this;
// Since DOMExceptions are not constructable:
function NetworkError(message) {
this.name = 'NetworkError';
this.code = 19;
this.message = message;
}
NetworkError.prototype = Object.create(Error.prototype);
return Promise.resolve().then(function() {
if (arguments.length < 1) throw new TypeError();
// Simulate sequence<(Request or USVString)> binding:
var sequence = [];
requests = requests.map(function(request) {
if (request instanceof Request) {
return request;
}
else {
return String(request); // may throw TypeError
}
});
return Promise.all(
requests.map(function(request) {
if (typeof request === 'string') {
request = new Request(request);
}
var scheme = new URL(request.url).protocol;
if (scheme !== 'http:' && scheme !== 'https:') {
throw new NetworkError("Invalid scheme");
}
return fetch(request.clone());
})
);
}).then(function(responses) {
// TODO: check that requests don't overwrite one another
// (don't think this is possible to polyfill due to opaque responses)
return Promise.all(
responses.map(function(response, i) {
return cache.put(requests[i], response);
})
);
}).then(function() {
return undefined;
});
};
}
if (!CacheStorage.prototype.match) {
// This is probably vulnerable to race conditions (removing caches etc)
CacheStorage.prototype.match = function match(request, opts) {
var caches = this;
return this.keys().then(function(cacheNames) {
var match;
return cacheNames.reduce(function(chain, cacheName) {
return chain.then(function() {
return match || caches.open(cacheName).then(function(cache) {
return cache.match(request, opts);
}).then(function(response) {
match = response;
return match;
});
});
}, Promise.resolve());
});
};
}
if ('serviceWorker' in navigator) {
// Delay registration until after the page has loaded, to ensure that our
// precaching requests don't degrade the first visit experience.
// See https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/registration
window.addEventListener('load', function() {
// Your service-worker.js *must* be located at the top-level directory relative to your site.
// It won't be able to control pages unless it's located at the same level or higher than them.
// *Don't* register service worker file in, e.g., a scripts/ sub-directory!
// See https://github.com/slightlyoff/ServiceWorker/issues/468
navigator.serviceWorker.register('sw.js').then(function(reg) {
// updatefound is fired if service-worker.js changes.
reg.onupdatefound = function() {
// The updatefound event implies that reg.installing is set; see
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-container-updatefound-event
var installingWorker = reg.installing;
installingWorker.onstatechange = function() {
switch (installingWorker.state) {
case 'installed':
if (navigator.serviceWorker.controller) {
// At this point, the old content will have been purged and the fresh content will
// have been added to the cache.
// It's the perfect time to display a "New content is available; please refresh."
// message in the page's interface.
console.log('New or updated content is available.');
} else {
// At this point, everything has been precached.
// It's the perfect time to display a "Content is cached for offline use." message.
console.log('Content is now available offline!');
}
break;
case 'redundant':
console.error('The installing service worker became redundant.');
break;
}
};
};
}).catch(function(e) {
console.error('Error during service worker registration:', e);
});
});
}
}
</script>
================================================
FILE: __static/app/html/sourcecode.html
================================================
<section class="modal fade sourcecode-modal modal--fix" tabindex="-1" role="dialog" aria-labelledby="sourcecodeModal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" tabindex="-1">
<span aria-hidden="true">×</span>
</button>
<div>
<div class="btn-group btn-group-sm" role="group">
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1">
All matched results <span class="label label-danger label-pill match-count">1</span>
</button>
<div class="dropdown-menu">
<script type="text/html">
<div class="dropdown-item" title="{repoName}">
<button type="button" class="btn btn-primary-outline btn-sm variable-btns__code" data-id="{id}" title="{repoFilePath}">Codes</button>
<a class="btn btn-primary-outline btn-sm" href="{repo}" target="_blank" title="{repo}">Repo</a>
<span class="label label-{label_type}">{lang}</span>
</div>
</script>
</div>
</div>
</div>
<a class="btn btn-primary-outline btn-sm cur-repo" target="_blank" tabindex="-1">Repo</a>
</div>
</div>
<div class="modal-body">
<header class="hd">
<div class="logo"><img class="spinner" src="resources/images/codelf_logo.png"></div>
</header>
<pre><code class="prettyprint linenums"></code></pre>
</div>
</div>
</div>
</section>
================================================
FILE: __static/app/html/styles.html
================================================
<style>
@@include("resources/css/font-awesome.min.css")
@@include("resources/css/bootstrap.min.css")
@@include("resources/css/prettify.css")
@@include("resources/css/style.css")
</style>
================================================
FILE: __static/app/index.html
================================================
<!DOCTYPE html>
<html lang="en" manifest="cache.manifest">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>CODELF</title>
<meta name="description" content="Best GitHub stars, repositories tagger and organizer. Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Project, GitLab to find real-world usage variable names." />
<meta name="keywords" content="Codelf,变量命名,函数命名,方法命名,变量命名神器,GitHub 分组,Organize GitHub stars,naming things,naming convention,programming naming">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="shortcut icon" href="resources/images/codelf_logo.png" >
<link rel="apple-touch-icon" sizes="144x144" href="resources/images/codelf_logo.png">
<link rel="apple-touch-icon-precomposed" href="resources/images/codelf_logo.png">
<link title="CODELF" type="application/opensearchdescription+xml" rel="search" href="./opensearch.xml">
@@include("html/styles.html")
<script>
// auto redirect to HTTPS
if (window.location.host.indexOf('github.io') != -1 && window.location.protocol != "https:"){
window.location.protocol = "https";
}
</script>
</head>
<body ontouchstart="">
@@include("html/main.html")
@@include("html/sourcecode.html")
@@include("html/bookmark.html")
@@include("html/donate.html")
@@include("html/components.html")
@@include("html/scripts.html")
</body>
</html>
================================================
FILE: __static/app/resources/css/prettify.css
================================================
.pln {
color: #000
}
@media screen {
.str {
color: #080
}
.kwd {
color: #008
}
.com {
color: #800
}
.typ {
color: #606
}
.lit {
color: #066
}
.pun, .opn, .clo {
color: #660
}
.tag {
color: #008
}
.atn {
color: #606
}
.atv {
color: #080
}
.dec, .var {
color: #606
}
.fun {
color: red
}
}
@media print, projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun, .opn, .clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
pre.prettyprint {
padding: 2px;
border: 1px solid #888
}
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
list-style-type: none
}
li.L1, li.L3, li.L5, li.L7, li.L9 {
background: #eee
}
================================================
FILE: __static/app/resources/css/style.css
================================================
html, body {
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
-webkit-font-smoothing: antialiased;
transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1); }
.fix-break-word, p {
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto; }
.label {
margin-right: .4rem; }
.blockquote {
border: none;
text-align: center; }
.blockquote img {
max-width: 100%;
height: auto; }
.jumbotron {
margin-bottom: 0; }
.highlight {
background-color: #FFFF88; }
.modal-header .close {
padding-left: .65rem; }
.modal--fix {
max-height: 98%; }
.modal--fix .modal-dialog {
height: 100%;
max-width: 100%;
overflow: hidden; }
.modal--fix .modal-content {
height: 100%;
max-width: 100%;
overflow: hidden;
padding-bottom: 8%; }
.modal--fix .modal-body {
max-height: 98%;
overflow: scroll;
-webkit-overflow-scrolling: touch; }
@media (min-width: 62em) {
.modal--fix {
max-height: none; }
.modal--fix .modal-dialog, .modal--fix .modal-content, .modal--fix .modal-body {
height: auto;
overflow: auto; }
.modal--fix .modal-content {
padding-bottom: 0; } }
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both; }
.animated.infinite {
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite; }
.animated.hinge {
-webkit-animation-duration: 2s;
animation-duration: 2s; }
@-webkit-keyframes fadeIn {
from {
opacity: 0; }
to {
opacity: 1; } }
@keyframes fadeIn {
from {
opacity: 0; }
to {
opacity: 1; } }
@-webkit-keyframes fadeInDown {
from {
opacity: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0); }
to {
opacity: 1;
-webkit-transform: none;
transform: none; } }
@keyframes fadeInDown {
from {
opacity: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0); }
to {
opacity: 1;
-webkit-transform: none;
transform: none; } }
.fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn; }
.fadeInDown {
-webkit-animation-name: fadeInDown;
animation-name: fadeInDown; }
/*
http://www.fontspace.com/538fonts/dressedless
https://everythingfonts.com/ttf-to-svg
*/
@font-face {
font-family: 'Dressedless Three';
src: url("resources/fonts/Dressedless_Three.ttf") format("truetype"), url("resources/fonts/Dressedless_Three.svg") format("svg");
/* Legacy iOS */ }
/*https://github.com/tobiasahlin/SpinKit*/
/* spinner */
.spinner {
-webkit-animation: sk-rotateplane 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
animation: sk-rotateplane 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@-webkit-keyframes sk-rotateplane {
0% {
-webkit-transform: perspective(120px); }
50% {
-webkit-transform: perspective(120px) rotateY(180deg); }
100% {
-webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg); } }
@keyframes sk-rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); } }
/*end spinner*/
.logo {
margin: 0 auto;
width: 3rem;
height: 3rem; }
.logo img {
display: inherit;
width: 100%;
height: 100%;
border-radius: 20%; }
.nav-bar {
position: absolute;
top: 0.15rem;
right: 5%;
z-index: 10;
display: inline-block;
transition: all 1s; }
.nav-bar > * {
float: left;
display: inline-block;
margin-right: .45rem; }
.nav-bar:last-child {
margin-right: 0; }
.nav-bar i {
color: #70B7FD; }
.nav-bar i:hover, .nav-bar i:active {
color: #59AAF9; }
.nav-bar > *:nth-child(1) {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-delay: 500ms;
animation-delay: 500ms; }
.nav-bar > *:nth-child(2) {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-delay: 650ms;
animation-delay: 650ms; }
.nav-bar > *:nth-child(3) {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-delay: 800ms;
animation-delay: 800ms; }
.nav-bar > *:nth-child(4) {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-delay: 950ms;
animation-delay: 950ms; }
.nav-bar > *:nth-child(5) {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-delay: 1100ms;
animation-delay: 1100ms; }
@media (max-width: 34em) {
.nav-bar {
right: 1%; } }
@media (min-width: 100em) {
.nav-bar {
right: 15%; } }
.main {
padding-top: 2.5rem; }
.main-title {
text-align: center;
padding: 0 1.2rem; }
.main-title > header a {
color: inherit;
text-decoration: none; }
.main-title > header a:visited, .main-title > header a:link, .main-title > header a:active, .main-title > header a:hover {
color: inherit;
text-decoration: none; }
.main-title h1 {
font-family: "Dressedless Three",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
text-transform: uppercase;
font-size: 3.5rem; }
.main-title h1.animated span {
transition: color 250ms linear;
/*C*/
/*O*/
/*D*/
/*E*/
/*L*/
/*F*/ }
.main-title h1.animated span:nth-child(1) {
color: #3369e8;
transition-delay: 200ms; }
.main-title h1.animated span:nth-child(2) {
color: #d50f25;
transition-delay: 350ms; }
.main-title h1.animated span:nth-child(3) {
color: #eeb211;
transition-delay: 500ms; }
.main-title h1.animated span:nth-child(4) {
color: #3369e8;
transition-delay: 650ms; }
.main-title h1.animated span:nth-child(5) {
color: #009925;
transition-delay: 800ms; }
.main-title h1.animated span:nth-child(6) {
color: #d50f25;
transition-delay: 950ms; }
.main-title h5 {
max-height: 300px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden; }
.main-title h5 .label {
background-color: #71b7fd; }
.search-form {
padding: 1rem 0; }
.search-form .input-group {
height: 44px;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1); }
.search-form .input-group:focus, .search-form .input-group:active, .search-form .input-group:hover {
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.search-form input, .search-form button, .search-form a {
height: 44px;
line-height: 44px;
padding-top: 0;
padding-bottom: 0;
border: 0 !important; }
.search-form .dropdown-menu {
max-height: 320px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0); }
.search-form button.search .more {
display: none; }
.search-form button.search.more .normal {
display: none; }
.search-form button.search.more .more {
display: inline-block; }
.search-relate a:hover {
text-decoration: underline; }
.search-result {
padding-top: .8rem; }
.search-result .ct {
border-left: .15rem solid #eceeef;
background: none; }
.search-result .ct.ct--white {
border-left: 0; }
.search-result .variable-wrap {
display: inline-block;
cursor: pointer; }
.search-result .variable-wrap .btn-sm {
margin-right: .4rem;
padding: 0 .4em;
font-weight: bold; }
.search-result a:hover {
text-decoration: underline; }
.search-result .hd {
text-align: center; }
.search-result .hd > div {
text-align: center;
display: none; }
.search-result .hd.loading .loading, .search-result .hd.error .error {
display: block;
margin: 0 auto; }
.search-result .hd .logo {
margin: 0 auto 1rem; }
.notice-link {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 3rem;
padding: 1rem;
text-align: center;
background: #fff; }
.notice-link a {
display: none; }
.popover--variable {
background-color: transparent;
border-left: 0;
border-right: 0;
border-top: 0;
border-color: #ccc; }
.popover--variable .popover-content {
padding: 0; }
.popover--variable .btn {
border-bottom: 0; }
.variable-btns > .variable-btns__copy {
display: none; }
body.mobile .variable-btns__copy {
display: none !important; }
body.dark .search-form .input-group {
box-shadow: 0 2px 2px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.08); }
body.dark .search-form .input-group:focus, body.dark .search-form .input-group:active, body.dark .search-form .input-group:hover {
box-shadow: 0 3px 12px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08); }
body.dark .search-result .ct, body.dark .search-result hr {
border-color: rgba(0, 0, 0, 0.16); }
body.dark .notice-link {
background: #272b38; }
body.dark .popover--variable {
border-bottom: 0; }
@media (max-width: 767px) {
.search-form button.search {
border-top-right-radius: .25rem !important;
border-bottom-right-radius: .25rem !important; } }
@media (max-width: 34em) {
.search-result .ct {
overflow-x: scroll;
-webkit-overflow-scrolling: touch; } }
@media (min-width: 62em) {
.main-title h1 {
font-size: 4.5rem; }
.search-relate {
padding-bottom: 1.8rem; }
.search-result .ct {
overflow-x: auto; }
.variable-btns > .variable-btns__copy {
display: block; } }
@media (min-width: 100em) {
.main {
padding-top: 5rem; } }
.donate {
display: block;
padding-bottom: 5rem;
margin-top: 1rem;
text-align: center; }
.donate form {
display: inline-block; }
.donate .title {
padding-bottom: .8rem;
text-align: center; }
.donate .title .lang {
display: none; }
.donate .title.cn .cn, .donate .title.en .en {
display: block; }
.donate .bd {
display: block;
width: 100%;
margin: 0 auto;
text-align: center; }
.zhifubao, .wechatpay {
margin-right: 1rem;
margin-top: -3rem;
width: 5rem; }
.paypal {
width: 5rem; }
body.dark .zhifubao, body.dark .wechatpay, body.dark .paypal {
background-color: #fff; }
.sourcecode-modal .dropdown-menu {
max-height: 320px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0); }
.sourcecode-modal .cur-repo {
margin-left: .4rem; }
.sourcecode-modal code {
display: inline-block; }
.bookmark-logo {
cursor: pointer;
color: #70B7FD; }
.bookmark-modal .modal-header .btn, .bookmark-modal .modal-header .btn-group {
margin-right: .4rem; }
.bookmark-modal .modal-header .btn:last-child, .bookmark-modal .modal-header .btn-group:last-child {
margin-right: 0; }
.bookmark-modal .modal-header .btn-group {
padding: 0;
margin: 0; }
.bookmark-modal .modal-body {
padding: 0; }
.bookmark-modal .modal-body > .hd {
display: none;
padding: 1rem; }
.bookmark-modal .modal-body > .hd > div {
display: none; }
.bookmark-modal .modal-body > .hd.loading, .bookmark-modal .modal-body > .hd.empty, .bookmark-modal .modal-body > .hd.loading > .loading, .bookmark-modal .modal-body > .hd.empty > .empty {
display: block;
margin: 0 auto; }
.bookmark-modal .modal-body > .hd > .empty {
text-align: center; }
.bookmark-modal .modal-body > .hd > .empty .top {
margin: 2rem; }
.bookmark-modal .modal-body > .hd > .empty .tip {
text-align: left; }
.bookmark-modal .card-block, .bookmark-modal .card-header {
padding: .5rem;
color: #373a3c; }
.bookmark-modal .card-footer {
padding: 0 0 .2rem .2rem; }
.bookmark-modal .repo-list {
padding-right: 0;
padding-left: 0;
padding-bottom: 0; }
.bookmark-modal .repo-group-item {
border: 0;
margin-bottom: 0; }
.bookmark-modal .repo-group-item > .hd .dropdown-menu {
min-width: initial; }
.bookmark-modal .repo-group-item > .hd .search {
display: none;
cursor: pointer;
max-width: 70%;
margin-top: -0.25rem; }
.bookmark-modal .repo-group-item[data-id="0"] > .hd .search {
display: block; }
.bookmark-modal .repo-group-item .hd .ctrl > div {
display: inline-block;
padding: 0 .4rem;
cursor: pointer; }
.bookmark-modal .repo-group-item[data-id="0"] > .hd .ctrl {
display: none; }
.bookmark-modal .repo-group-item .repo-item {
border-top: 0;
border-bottom: 0;
border-left: 0;
border-right: 0;
border-radius: 0; }
.bookmark-modal .repo-group-item .repo-item:last-child {
margin-bottom: 0; }
.bookmark-modal .repo-group-item .repo-item .card-footer {
border-top: 0; }
.bookmark-modal .repo-group-item .repo-item a {
word-break: break-all; }
.bookmark-modal .dropdown-menu .dropdown-item.add-repo .label {
width: 1.15rem;
height: 1.15rem;
margin-bottom: -0.2rem; }
.bookmark-modal .dropdown-menu .dropdown-item.add-repo .label i {
display: none;
color: #fff; }
.bookmark-modal .dropdown-menu .dropdown-item.add-repo[data-selected] .label {
padding-left: 0;
padding-right: 0; }
.bookmark-modal .dropdown-menu .dropdown-item.add-repo[data-selected] .label i {
display: inline-block; }
.bookmark-modal .tag-dots span {
margin-left: .25rem; }
.bookmark-user-modal .user-item:first-child {
margin-top: 1rem; }
.bookmark-user-modal .user-list .ctrl {
margin-top: -0.25rem; }
@media (max-width: 34em) {
.bookmark-modal .tag-dots span {
margin-left: -.25rem; }
.bookmark-modal .modal-header .btn {
padding: .25rem;
margin-right: .25rem; } }
body.dark {
background: #272b38;
color: #fff; }
================================================
FILE: __static/app/scss/_animate.scss
================================================
.animated {
animation-duration: 1s;
animation-fill-mode: both;
}
.animated.infinite {
animation-iteration-count: infinite;
}
.animated.hinge {
animation-duration: 2s;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translate3d(0, -100%, 0);
}
to {
opacity: 1;
transform: none;
}
}
.fadeIn {
animation-name: fadeIn;
}
.fadeInDown {
animation-name: fadeInDown;
}
================================================
FILE: __static/app/scss/_bookmark.scss
================================================
.bookmark-logo {
cursor: pointer;
color: #70B7FD;
}
.bookmark-modal {
.modal-header{
.btn, .btn-group{
margin-right: .4rem;
&:last-child{
margin-right: 0;
}
}
.btn-group{
padding: 0;
margin: 0;
}
}
.modal-body {
padding: 0;
> .hd {
display: none;
padding: 1rem;
> div {
display: none;
}
&.loading, &.empty, &.loading > .loading, &.empty > .empty {
display: block;
margin: 0 auto;
}
> .empty {
text-align: center;
.top {
margin: 2rem;
}
.tip {
text-align: left;
}
}
}
}
.card-block, .card-header {
padding: .5rem;
color: #373a3c;
}
.card-footer {
padding: 0 0 .2rem .2rem;
}
.repo-list {
padding-right: 0;
padding-left: 0;
padding-bottom: 0;
}
.repo-group-item {
border: 0;
margin-bottom: 0;
> .hd {
.dropdown-menu {
min-width: initial;
}
.search {
display: none;
cursor: pointer;
max-width: 70%;
margin-top: -0.25rem;
}
}
&[data-id="0"] > .hd .search {
display: block;
}
.hd .ctrl > div {
display: inline-block;
padding: 0 .4rem;
cursor: pointer;
}
&[data-id="0"] > .hd .ctrl {
display: none;
}
.repo-item {
border-top: 0;
border-bottom: 0;
border-left: 0;
border-right: 0;
border-radius: 0;
&:last-child {
margin-bottom: 0;
}
.card-footer {
border-top: 0;
}
a {
word-break: break-all;
}
}
}
.dropdown-menu .dropdown-item.add-repo {
.label {
width: 1.15rem;
height: 1.15rem;
margin-bottom: -0.2rem;
i {
display: none;
color: #fff;
}
}
&[data-selected] .label {
padding-left: 0;
padding-right: 0;
i {
display: inline-block;
}
}
}
.tag-dots span {
margin-left: .25rem;
}
}
.bookmark-user-modal {
.user-item:first-child {
margin-top: 1rem;
}
.user-list .ctrl {
margin-top: -0.25rem;
}
}
@media (max-width: 34em) {
.bookmark-modal {
.tag-dots span {
margin-left: -.25rem;
}
.modal-header {
.btn{
padding: .25rem;
margin-right: .25rem;
}
}
}
}
================================================
FILE: __static/app/scss/_components.scss
================================================
/*
http://www.fontspace.com/538fonts/dressedless
https://everythingfonts.com/ttf-to-svg
*/
@font-face {
font-family: 'Dressedless Three';
src: url('resources/fonts/Dressedless_Three.ttf') format("truetype"), url('resources/fonts/Dressedless_Three.svg') format("svg");
/* Legacy iOS */
}
/*https://github.com/tobiasahlin/SpinKit*/
/* spinner */
.spinner {
-webkit-animation: sk-rotateplane 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
animation: sk-rotateplane 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@-webkit-keyframes sk-rotateplane {
0% {
-webkit-transform: perspective(120px);
}
50% {
-webkit-transform: perspective(120px) rotateY(180deg);
}
100% {
-webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
}
}
@keyframes sk-rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
}
50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
}
100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
/*end spinner*/
.logo {
margin: 0 auto;
width: 3rem;
height: 3rem;
img {
display: inherit;
width: 100%;
height: 100%;
border-radius: 20%;
}
}
.nav-bar{
position: absolute;
top: 0.15rem;;
right: 5%;
z-index: 10;
display: inline-block;
transition: all 1s;
>*{
float: left;
display: inline-block;
margin-right: .45rem;
}
&:last-child{
margin-right: 0;
}
i{
color: #70B7FD;
&:hover,&:active{
color: #59AAF9;
}
}
$anim-delay: 150ms;
$anim-duration: 500ms;
@for $i from 1 through 5 {
>*:nth-child(#{$i}) {
animation-duration: $anim-duration;
animation-delay: 500 + $anim-delay*($i - 1);
}
}
}
@media (max-width: 34em) {
.nav-bar{
right: 1%;
}
}
@media (min-width: 100em) {
.nav-bar{
right: 15%;
}
}
================================================
FILE: __static/app/scss/_donate.scss
================================================
.donate {
display: block;
padding-bottom: 5rem;
margin-top: 1rem;
text-align: center;
form {
display: inline-block;
}
.title {
padding-bottom: .8rem;
text-align: center;
.lang {
display: none;
}
&.cn .cn, &.en .en {
display: block;
}
}
.bd {
display: block;
width: 100%;
margin: 0 auto;
text-align: center;
}
}
.zhifubao, .wechatpay {
margin-right: 1rem;
margin-top: -3rem;
width: 5rem;
}
.paypal {
width: 5rem;
}
body.dark {
.zhifubao, .wechatpay, .paypal {
background-color: #fff;
}
}
================================================
FILE: __static/app/scss/_main.scss
================================================
.main {
padding-top: 2.5rem;
}
.main-title {
text-align: center;
padding: 0 1.2rem;
> header a {
color: inherit;
text-decoration: none;
&:visited, &:link, &:active, &:hover {
color: inherit;
text-decoration: none;
}
}
h1 {
font-family: "Dressedless Three",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
text-transform: uppercase;
font-size: 3.5rem;
&.animated span {
transition: color 250ms linear;
/*C*/
&:nth-child(1) {
color: #3369e8;
transition-delay: 200ms;
}
/*O*/
&:nth-child(2) {
color: #d50f25;
transition-delay: 350ms;
}
/*D*/
&:nth-child(3) {
color: #eeb211;
transition-delay: 500ms;
}
/*E*/
&:nth-child(4) {
color: #3369e8;
transition-delay: 650ms;
}
/*L*/
&:nth-child(5) {
color: #009925;
transition-delay: 800ms;
}
/*F*/
&:nth-child(6) {
color: #d50f25;
transition-delay: 950ms;
}
}
}
h5 {
max-height: 300px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
.label {
background-color: #71b7fd;
}
}
}
.search-form {
padding: 1rem 0;
.input-group{
height: 44px;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
&:focus, &:active, &:hover {
box-shadow: 0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
}
}
input, button, a {
height: 44px;
line-height: 44px;
padding-top: 0;
padding-bottom: 0;
border: 0 !important;
}
.dropdown-menu {
max-height: 320px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
transform: translate3d(0, 0, 0);
}
button.search{
.more{
display: none;
}
&.more{
.normal{
display: none;
}
.more{
display: inline-block;
}
}
}
}
.search-relate a:hover {
text-decoration: underline;
}
.search-result {
padding-top: .8rem;
.ct {
border-left: .15rem solid #eceeef;
background: none;
&.ct--white {
border-left: 0;
}
}
.variable-wrap {
display: inline-block;
cursor: pointer;
.btn-sm {
margin-right: .4rem;
padding: 0 .4em;
font-weight: bold;
}
}
a:hover {
text-decoration: underline;
}
.hd {
text-align: center;
> div {
text-align: center;
display: none;
}
&.loading .loading, &.error .error {
display: block;
margin: 0 auto;
}
.logo {
margin: 0 auto 1rem;
}
}
}
.notice-link{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 3rem;
padding: 1rem;
text-align: center;
background: #fff;
}
.notice-link a {
display: none;
}
.popover--variable {
background-color: transparent;
border-left: 0;
border-right: 0;
border-top: 0;
border-color: #ccc;
.popover-content {
padding: 0;
}
.btn {
border-bottom: 0;
}
}
.variable-btns > .variable-btns__copy {
display: none;
}
body.mobile .variable-btns__copy {
display: none !important;
}
body.dark {
.search-form .input-group {
box-shadow: 0 2px 2px 0 rgba(255,255,255,0.16), 0 0 0 1px rgba(255,255,255,0.08);
&:focus, &:active, &:hover {
box-shadow: 0 3px 12px 0 rgba(255,255,255,0.2), 0 0 0 1px rgba(255,255,255,0.08);
}
}
.search-result {
.ct, hr {
border-color: rgba(0,0,0,.16);
}
}
.notice-link {
background: #272b38;
}
.popover--variable {
border-bottom: 0;
}
}
@media (max-width: 767px){
.search-form {
button.search{
border-top-right-radius: .25rem !important;
border-bottom-right-radius: .25rem !important;;
}
}
}
@media (max-width: 34em) {
.search-result {
.ct {
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
}
}
}
@media (min-width: 62em) {
.main-title h1 {
font-size: 4.5rem;
}
.search-relate {
padding-bottom: 1.8rem;
}
.search-result .ct {
overflow-x: auto;
}
.variable-btns > .variable-btns__copy {
display: block;
}
}
@media (min-width: 100em) {
.main {
padding-top: 5rem;
}
}
================================================
FILE: __static/app/scss/_sourcecode.scss
================================================
.sourcecode-modal {
.dropdown-menu {
max-height: 320px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
transform: translate3d(0, 0, 0);
}
.cur-repo {
margin-left: .4rem;
}
code {
display: inline-block;
}
}
================================================
FILE: __static/app/scss/_util.scss
================================================
.fix-break-word, p {
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
hyphens: auto;
}
.label {
margin-right: .4rem;
}
.blockquote {
border: none;
text-align: center;
img {
max-width: 100%;
height: auto;
}
}
.jumbotron{
margin-bottom: 0;
}
.highlight {
background-color: #FFFF88;
}
.modal-header .close {
padding-left: .65rem;
}
.modal--fix {
max-height: 98%;
.modal-dialog {
height: 100%;
max-width: 100%;
overflow: hidden;
}
.modal-content {
height: 100%;
max-width: 100%;
overflow: hidden;
padding-bottom: 8%;
}
.modal-body {
max-height: 98%;
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
}
@media (min-width: 62em) {
.modal--fix {
max-height: none;
.modal-dialog, .modal-content, .modal-body {
height: auto;
overflow: auto;
}
.modal-content {
padding-bottom: 0;
}
}
}
================================================
FILE: __static/app/scss/style.scss
================================================
html, body {
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
-webkit-font-smoothing: antialiased;
transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
@import "util.scss";
@import "animate.scss";
@import "components.scss";
@import "main.scss";
@import "donate.scss";
@import "sourcecode.scss";
@import "bookmark.scss";
body.dark {
background: #272b38;
color: #fff;
}
================================================
FILE: __static/app/src/App.js
================================================
$(function () {
require('./view/View.js');
require('./view/BookmarkView.js');
});
================================================
FILE: __static/app/src/AppBundle.js
================================================
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
var appCache = window.applicationCache;
appCache.addEventListener('updateready', function() {
if (appCache.status == appCache.UPDATEREADY){
try{
appCache.update();
if (appCache.status == appCache.UPDATEREADY) {
try{
appCache.swapCache();
window.location.reload(false);
}catch(err){}
}
}catch(err){}
}
}, false);
var ua = navigator.userAgent,
android = ua.match(/(Android);?[\s\/]+([\d.]+)?/),
ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/),
iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),
os = {};
if (android) os.android = true, os.version = android[2];
if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.')
if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.')
if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
exports.os = os;
exports.localStorage = new function () {
var lcst = window.localStorage;
function getLocalValue(id) {
if (lcst) {
return lcst[id];
} else {
return null;
}
}
function setLocalValue(id, val) {
if (lcst) {
if (typeof id === 'object') {
for (var key in id) {
try {
id[key] && lcst.setItem(key, id[key]);
} catch (err) {
}
}
} else {
try {
lcst.setItem(id, val);
} catch (err) {
}
}
}
return this;
}
function removeLocalValue(id) {
if (lcst) {
if (typeof id === 'object') {
for (var key in id) {
try {
lcst.removeItem(id[key]);
} catch (err) {
}
}
} else {
try {
lcst.removeItem(id);
} catch (err) {
}
}
}
return this;
}
this.set = setLocalValue;
this.get = getLocalValue;
this.del = removeLocalValue;
};
var HashHandler = (function () {
var lc = window.location;
function getByURL(url) {
var hash;
url && decodeURIComponent(url).replace(new RegExp('#(.*)', 'g'), function ($1, $2) {
hash = $2;
});
return hash;
}
function get() {
return getByURL(lc.hash);
}
function set(hash) {
lc.hash = hash;
}
return {
get: get,
set: set,
getByURL: getByURL
}
})();
exports.HashHandler = HashHandler;
var Navigator = (function () {
var frame,
androidReg = /Android/gi,
isAndroid = androidReg.test(navigator.platform) || androidReg.test(navigator.userAgent);
frame = null;
function appendFrame(frame) {
frame && document.body.appendChild(frame);
}
function removeFrame(frame) {
frame && frame.parentNode.removeChild(frame);
}
function getFrame(src, name) {
var _frame = document.createElement("iframe");
_frame.setAttribute("style", "display:none;width:0;height:0;position: absolute;top:0;left:0;border:0;");
_frame.setAttribute("height", "0px");
_frame.setAttribute("width", "0px");
_frame.setAttribute("frameborder", "0");
name && _frame.setAttribute("name", name);
if (src) {
_frame.setAttribute("src", src);
} else {
appendFrame(_frame);
}
return _frame;
}
function protocol(command, single, noframe) {
var _frame, timer;
if (noframe) {
window.location.href = command;
return;
}
if (single) {
if (isAndroid) {
_frame = getFrame();
_frame.setAttribute("src", command);
} else {
_frame = getFrame(command);
appendFrame(_frame);
}
timer = setTimeout(function () {
_frame && removeFrame(_frame);
}, 30000);
_frame.onload = _frame.onreadystatechange = function () {
timer && clearTimeout(timer);
_frame && removeFrame(_frame);
}
} else {
frame = frame || getFrame();
frame.setAttribute("src", command);
}
}
return {
protocol: protocol,
getFrame: getFrame,
appendFrame: appendFrame,
removeFrame: removeFrame
}
})();
exports.Navigator = Navigator;
var FormHandler = new function () {
function getForm(method) {
var _form = document.createElement('form');
_form.setAttribute("style", "display:none;width:0;height:0;position: absolute;top:0;left:0;border:0;");
_form.setAttribute("method", method || 'POST');
document.body.appendChild(_form);
return _form;
}
this.asyncSubmit = function (action, data) {
this.submit(action, data, true);
}
this.submit = function (action, data, async) {
var target,
frame,
form = getForm(),
inputs = [],
itpl = '<input type="text" name="{N}" value="{V}" />';
if (async) {
target = '__formhandler_' + new Date().getTime();
frame = Navigator.getFrame(null, target);
form.setAttribute('target', target);
setTimeout(function () {
Navigator.removeFrame(frame);
}, 120000);
}
form.setAttribute('action', action);
data = data || {};
for (var key in data) {
inputs.push(itpl.replace('{N}', key).replace('{V}', data[key]));
}
form.innerHTML = inputs.join('');
action && setTimeout(function () {
form.submit();
}, 100);
}
};
exports.FormHandler = FormHandler;
exports.localParam = function localParam(search, hash) {
search = search || window.location.search;
hash = hash || window.location.hash;
var fn = function (str, reg) {
if (str) {
var data = {};
str.replace(reg, function ($0, $1, $2, $3) {
data[$1] = $3;
});
return data;
}
}
return {
search: fn(search, new RegExp("([^?=&]+)(=([^&]*))?", "g")) || {},
hash: fn(hash, new RegExp("([^#=&]+)(=([^&]*))?", "g")) || {}
};
}
exports.randomColor = function randomColor() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
exports.randomList = function randomList(list, len, verify, ratio) {
var rs = [], _list = list.slice(0);
len = len || _list.length;
ratio = ratio ? ratio : 0;
function rd(_array) {
_array = _array.sort(function () {
return (0.5 - Math.random());
});
}
while (ratio) {
rd(_list);
ratio--;
}
if (_list.length <= len) {
rs = _list;
} else {
while (rs.length < len) {
var index = Math.floor(Math.random() * _list.length),
item = _list[index];
if (( verify && verify.call(this, item, _list) ) || !verify) {
rs.push(item);
_list.splice(index, 1);
}
}
}
return rs;
}
exports.isInArray = function isInArray(arr, val) {
if ($.inArray(val, arr) != -1) {
return true;
}
for (var key in arr) {
if (typeof val === 'function' && val.call(this, arr[key])) {
return true;
}
}
return false;
}
exports.InlineWebWorker = {
ready: window.Blob && window.Worker && window.URL,
create: function create(selector){
return new Worker(window.URL.createObjectURL(new Blob([document.querySelector(selector).textContent])));
}
}
var thisPage = window.location.href.replace(window.location.hash, '');
var thisPath = thisPage.substring(0, thisPage.lastIndexOf('/') + 1);
exports.thisPage = thisPage;
exports.thisPath = thisPath;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
exports.schemaBuilder = lf.schema.create('Codelf', 6);
exports.eventType = {
C: 'CREATE',
U: 'UPDATED',
D: 'DELETE'
};
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
var Database = __webpack_require__(1);
//model
//http://githut.info/
exports.TopProgramLan = [{"id": "22,106", "language": "JavaScript, CoffeeScript"}, {
"id": "133,135",
"language": "CSS"
}, {"id": "3,39", "language": "HTML"}, {"id": 137, "language": "Swift"}, {
"id": 35,
"language": "Objective-C"
}, {"id": 23, "language": "Java"}, {"id": 19, "language": "Python"}, {"id": 24, "language": "PHP"}, {
"id": 32,
"language": "Ruby"
}, {"id": 28, "language": "C"}, {"id": 16, "language": "C++"}, {"id": 6, "language": "C#"}, {
"id": 55,
"language": "Go"
}, {"id": 51, "language": "Perl"}, {"id": "104,109", "language": "Clojure, ClojureScript"}, {
"id": 40,
"language": "Haskell"
}, {"id": 54, "language": "Lua"}, {"id": 20, "language": "Matlab"}, {"id": 144, "language": "R"}, {
"id": 47,
"language": "Scala"
}, {"id": "69,78,146", "language": "Shell"}, {"id": 29, "language": "Lisp"}, {"id": 42, "language": "ActionScript"}];
exports.BeanHelpers = new function () {
this.getRandomLabelType = function () {
var types = ['primary', 'secondary', 'success', 'info', 'warning', 'danger'];
return Util.randomList(types, 1)[0];
};
this.getKeyWordReg = function (key) {
return new RegExp('([\\-_\\w\\d\\/\\$]{0,}){0,1}' + key + '([\\-_\\w\\d\\$]{0,}){0,1}', 'gi');
}
};
exports.Searchcode = __webpack_require__(5);
exports.YoudaoTranslate = __webpack_require__(6);
exports.Bookmark = __webpack_require__(7);
exports.DDMS = __webpack_require__(8);
//init DB
Database.schemaBuilder.connect({
storeType: Util.os.ios?lf.schema.DataStoreType.WEB_SQL: null
}).then(function (db) {
$(window).trigger('DB:ready',db);
});
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
$(function () {
__webpack_require__(4);
__webpack_require__(9);
});
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
var Model = __webpack_require__(2);
//view and render
var els = {
win: $(window),
body: $('body'),
title: $('.main-title>header h1'),
subTitle: $('.main-title h5'),
searchForm: $('.search-form'),
searchInput: $('.search-form input'),
searchBtn: $('.search-form button.search'),
searchDropdownBtn: $('.search-form button.dropdown-toggle'),
searchDropdownMenu: $('.search-form .dropdown-menu'),
searchDropdownMenuTpl: $('.search-form .dropdown-menu script').html(),
searchRelate: $('.search-relate'),
searchRelateBd: $('.search-relate .bd'),
searchRelateTpl: $('.search-relate script').html(),
searchResult: $('.search-result'),
searchResultCt: $('.search-result .ct'),
searchResultTpl: $('.search-result script').html(),
searchResultHd: $('.search-result .hd'),
searchResultBd: $('.search-result .bd'),
variableMenuTpl: $('script[template="variableMenu"]').html(),
sourceCodeModal: $('.sourcecode-modal'),
sourceCodeModalDropdown: $('.sourcecode-modal .dropdown-menu'),
sourceCodeModalDropdownTpl: $('.sourcecode-modal .dropdown-menu script').html(),
sourceCodeContent: $('.sourcecode-modal .modal-body pre code'),
sourceCodeContentHd: $('.sourcecode-modal .modal-body .hd'),
confirmModal: $('.confirm-modal'),
githubCorner: $('.github-corner svg'),
donate: $('.donate'),
donateTitle: $('.donate .title'),
noticeLinks: $('.notice-link a'),
noticeIndex: 0,
isGithub: /github\.io/g.test(location.href) || Util.localParam()['search']['debug']==1,
lastVal: ''
};
function bindEvent() {
window.addEventListener('hashchange', onLocationHashChanged, false);
els.searchDropdownMenu.on('click', '.all', onResetLang);
els.searchDropdownMenu.on('change', 'input', onSelectLang);
els.searchInput.on('keyup', function () {
renderSearchBtn();
});
els.searchBtn.on('click', function () {
onSearch();
});
els.searchInput.keypress(function (e) {
if (e.which == 13) {
onSearch();
return false;
}
});
els.searchResultBd.on('click mouseenter', '.variable-wrap', function (e) {
e.preventDefault();
e.stopPropagation();
renderVariableMenu.call(this);
return false;
});
els.body.on('click', '.variable-btns__code', showSourceCode);
els.body.on('click', beforeRemoveVariableMenus);
els.sourceCodeModal.on('hidden.bs.modal', renderSourceCode);
els.confirmModal.on('click','.btn',hideConfirm);
els.win.on('MainView:showConfirm',function(){
showConfirm.apply(this,[].slice.call(arguments,1));
});
els.win.on('MainView:hideConfirm',hideConfirm);
els.win.on('MainView:renderAnalytics',function(){
renderAnalytics.apply(this,[].slice.call(arguments,1));
});
}
function init() {
if (Util.os.ios || Util.os.android) {
els.isMobile = true;
els.body.addClass('mobile');
FastClick.attach(document.body);
}
bindEvent();
renderTitle();
renderLangMunu();
onLocationHashChanged();
renderAnalytics();
renderNotice();
}
function showSourceCode() {
els.lastSourceCodeId = this.dataset.id;
var htm = Model.Searchcode.getCacheSourceCodeHtmlById(this.dataset.id);
if(htm){
els.sourceCodeContentHd.hide();
els.sourceCodeContent.html(htm);
}else{
renderSourceCode();
Model.Searchcode.requestSourceCode(this.dataset.id, renderSourceCode);
}
els.lastVariableKeyword = this.dataset.val || els.lastVariableKeyword;
this.dataset.val && renderRelatedProperty(this.dataset.val);
els.sourceCodeModal.modal('show');
}
function showConfirm(msg,callback){
els.confirmModal.find('.modal-body').html(msg||'');
els.confirmModalYesCallback = callback;
els.confirmModal.show();
setTimeout(function(){
els.confirmModal.addClass('in');
},50);
}
function hideConfirm(){
els.confirmModal.removeClass('in');
setTimeout(function(){
els.confirmModal.hide();
},1000);
if($(this).hasClass('yes')){
els.confirmModalYesCallback && els.confirmModalYesCallback();
}
els.confirmModalYesCallback = null;
}
function onLocationHashChanged(e) {
e && e.preventDefault();
var hash = Util.HashHandler.get();
hash && onSearch(decodeURIComponent(hash).replace(/(\?.*)/, ''));
}
function onSelectLang() {
var checked = els.searchDropdownMenu.find('input:checked'), lang = [];
checked.each(function () {
lang.push(this.value);
});
Model.Searchcode.setLang(lang.join(' '));
renderSearchBtn('Search');
}
function onResetLang() {
els.searchDropdownMenu.find('input').removeAttr('checked');
Model.Searchcode.setLang();
renderSearchBtn('Search');
}
function onSearch(val) {
els.searchInput.blur();
beforeRemoveVariableMenus();
if (val && val == els.lastInputVal) {
return;
}
val = val || els.searchInput.val().trim();
els.searchInput.val(val);
els.valHistory = els.valHistory || '';
if (val.length) {
var isNext = val == els.lastInputVal;
els.lastInputVal = val;
if (!isNext) {
Util.HashHandler.set(encodeURIComponent(val));
var tmpval = [], tmpch = [];
els.lastInputVal.replace(/\s+/ig, '+').split('+').forEach(function (key) {
if (/[^\x00-\xff]/gi.test(key)) {
tmpch.push(key);
els.isZHSearchKeyWords = true;
} else {
tmpval.push(key);
}
});
els.lastVal = tmpval.join(' ');
if (tmpch.length) {
Model.YoudaoTranslate.request(tmpch.join(' '), function (tdata) {
//basic translate
if (tdata.basic && tdata.basic.explains) {
els.valHistory = tdata.basic.explains.join(' ');
}
//web translate
if (tdata.web && tdata.web) {
tdata.web.forEach(function (key) {
els.valHistory += ' ' + key.value.join(' ');
});
}
if (tdata && tdata.translation) {
els.lastVal = els.lastVal + ' '
+ tdata.translation.join(' ')
.replace(/[!$%^&*()_+|~=`{}\[\]:";'<>?,.\/]/g, '')
.split(' ').filter(function (key, idx, inputArray) {
return inputArray.indexOf(key) == idx && !/^(a|an|the)$/ig.test(key);
}).join(' ');
beforeDoSearch();
} else {
beforeDoSearch();
}
});
} else {
beforeDoSearch();
}
} else {
doSearch();
}
}
renderTitle(true);
}
function beforeDoSearch() {
els.lastVal = els.lastVal.trim();
els.lastVal = els.lastVal.split(' ').filter(function (key, idx, inputArray) {
return inputArray.indexOf(key) == idx;
}).join(' ');
saveKeyWordRegs();
renderHistory();
doSearch();
}
function saveKeyWordRegs() {
els.valRegs = [];
els.lastVal.replace(/\s+/ig, '+').split('+').forEach(function (key) {
key.length && key.length > 1 && els.valRegs.push(Model.BeanHelpers.getKeyWordReg(key));
});
}
function doSearch() {
if (els.lastVal && els.lastVal.length) {
Model.Searchcode.request(els.lastVal, renderSearchResult);
renderSearchResultHeader('loading');
renderSearchBtn();
} else {
renderSearchResultHeader('error');
renderSearchBtn('Search');
}
els.isGithub && Model.DDMS.postKeyWords(els.lastInputVal);
renderAnalytics('q=' + els.lastInputVal);
}
function renderTitle(black) {
els.title[black ? 'removeClass' : 'addClass']('animated');
}
function formatPropertyName(name) {
name = name.toLowerCase();
return '__codelf__' + name;
}
function storeRelatedProperty(name, res) {
name = formatPropertyName(name);
els.storeRelatedProperties = els.storeRelatedProperties || {};
if (!/\//g.test(name) /*exclude links*/ && name.length < 64 /*too long*/) {
var prop = els.storeRelatedProperties[name] = els.storeRelatedProperties[name] || {
ids: [],
repos: [],
repoNames: [],
repoFilePaths: [],
languages: []
};
if (!Util.isInArray(prop['ids'], res.id)) {
prop['ids'].push(res.id);
prop['repos'].push(res.repo);
prop['repoNames'].push(res.name);
prop['repoFilePaths'].push(res.repo+(res.location||'').substring(1)+'/'+res.filename);
prop['languages'].push(res.language);
}
}
}
function getRelatedProperty(name) {
name = formatPropertyName(name);
return els.storeRelatedProperties[name];
}
function renderDark() {
var hour = new Date().getHours();
!(hour >= 12 && hour <= 13) && els.body.addClass('dark');
}
function renderLangMunu() {
var htm = [], storeLang = Model.Searchcode.getLang();
storeLang = storeLang ? storeLang.split(' ') : [];
Model.TopProgramLan.forEach(function (key) {
htm.push(els.searchDropdownMenuTpl
.replace('{id}', key.id)
.replace('{language}', key.language)
.replace('{checked}', $.inArray(key.id, storeLang) != -1 ? 'checked' : ''));
});
els.searchDropdownMenu.append(htm.join(''));
}
function renderSearchResult(data) {
var vals = [], labels = [], lineStr;
data.results.forEach(function (rkey) {
//filter codes
lineStr = [];
for (var lkey in rkey.lines) {
var lstr = rkey.lines[lkey];
//no base64
if (!(/;base64,/g.test(lstr) && lstr.length > 256)) {
lineStr.push(lstr);
}
}
lineStr = lineStr.join('').replace(/\r\n/g, ' ');
//match variables
els.valRegs.forEach(function (key) {
$.each(lineStr.match(key) || [], function (i, el) {
//remove "-" and "/" from the starer and the ender
el = el.replace(/^(\-|\/)*/, '').replace(/(\-|\/)*$/, '');
storeRelatedProperty(el, rkey);
if (
!/\//g.test(el) /*exclude links*/
&& $.inArray(el, vals) === -1
&& $.inArray(el.toLowerCase(), vals) === -1
&& $.inArray(el.toUpperCase(), vals) === -1
&& el.length < 64 /*too long*/
) {
vals.push(el);
//render variable labels
labels.push(els.searchResultTpl
.replace('{label_type}', Model.BeanHelpers.getRandomLabelType())
.replace(/\{val\}/g, el)
.replace('{id}', rkey.id)
.replace('{repo}', rkey.repo)
);
}
});
});
});
if (labels.length) {
var blockquote = els.searchResultBd.find('.blockquote');
if (blockquote[0]) {
els.searchResultBd.find('.blockquote').remove();
} else {
labels.push('<hr/>');
}
els.searchResultBd.prepend(labels.join(''));
els.searchResultCt.removeClass('ct--white');
renderSearchResultHeader();
renderTooltips();
} else {
renderSearchResultHeader('error');
}
renderDark();
renderTitle();
renderDonate();
renderBaiduShare();
els.subTitle.css({'max-height': 0, padding: 0, margin: 0});
}
function renderSearchBtn(str) {
var val = els.searchInput.val().trim();
els.searchBtn.removeClass('more').addClass((str || (val.length && val != els.lastInputVal)) ? '' : 'more');
}
function renderSearchResultHeader(cls) {
els.searchResultHd.removeClass('loading error').addClass(cls || '');
}
function renderVariableMenu() {
beforeRemoveVariableMenus();
$(this).popover({
trigger: 'manual',
html: true,
placement: 'top',
offset: '-10 0',
title: function () {
return false;
},
content: function () {
els.sourceCodeModal.find('.modal-header a.cur-repo').attr('href', this.dataset.repo);
var prop = getRelatedProperty(this.dataset.val);
return els.variableMenuTpl
.replace('{id}', this.dataset.id)
.replace('{count}', prop ? prop['ids'].length : 1)
.replace(/\{val\}/g, this.dataset.val)
.replace('{repo}', this.dataset.repo);
},
template: '<div class="popover popover--variable" role="tooltip">' +
'<div class="popover-arrow"></div><div class="popover-content"></div>' +
'</div>'
});
$(this).popover('show');
els.variableClipboard && els.variableClipboard.destroy();
els.variableClipboard = new ClipboardJS('.variable-btns__copy');
}
function renderTooltips() {
els.showNextTipTimer = els.showNextTipTimer || 0;
var now = new Date().getTime();
if (now - els.showNextTipTimer > 1000 * 1800) {
els.showNextTipTimer = now;
setTimeout(function () {
els.searchBtn.tooltip('show');
}, 1000);
setTimeout(function () {
els.searchBtn.tooltip('dispose');
}, 3000);
}
}
function renderHistory() {
var his = [els.lastVal, els.valHistory], labels = [], tmp = [];
els.valHistory = his.join(' ')
.replace(/[`~!@#$^&*()=|{}':;',\[\].<>\/?~!@#¥……&*()——|\\{\\}【】‘;:”“’。,、?]/g, ' ')
.replace(/\s+/ig, '+').split('+')
.filter(function (key, idx, inputArray) {
var checked = key.length > 1
&& inputArray.indexOf(key) == idx
&& !/[^\x00-\xff]/gi.test(key)
&& !Util.isInArray(tmp, function (ikey) {
return new RegExp('^' + key + '$', 'ig').test(ikey)
});
if (checked) {
tmp.push(key);
labels.push(els.searchRelateTpl.replace(/\{val\}/g, key));
}
return checked;
})
.join(' ');
if (labels.length < 1) {
['foo', 'bar', '2016'].forEach(function (key) {
labels.push(els.searchRelateTpl.replace(/\{val\}/g, key));
});
}
els.searchRelateBd.html('<span class="label label-default">Suggestions :</span>' + labels.join(''));
}
function renderSourceCode(data) {
els.sourceCodeContentHd.show();
els.sourceCodeContent.removeClass('prettyprinted').text('');
if (data && data.code) {
renderSourceCodeByWorker(function(){
els.sourceCodeContentHd.hide();
els.sourceCodeContent.text(data.code);
setTimeout(function(){
PR.prettyPrint(renderHighlightVariableKeyword);
}, 100);
});
renderAnalytics('vc&q=' + els.lastInputVal);
}
}
function renderSourceCodeByWorker(callback){
if(Util.InlineWebWorker.ready){
if(!els.prettifyWorker){
els.prettifyWorker = els.prettifyWorker || Util.InlineWebWorker.create('#worker_prettify');
}
els.prettifyWorker.onmessage = function(e){
if(e.data=='after'){
callback && callback();
}
}
els.prettifyWorker.postMessage('before');
}else{
callback && callback();
}
}
function renderHighlightVariableKeyword(){
els.sourceCodeContent.unhighlight();
setTimeout(function(){
els.sourceCodeContent.highlight(els.lastVariableKeyword);
setTimeout(function(){
els.sourceCodeContent.find('.highlight').each(function(idx){
this.setAttribute('tabindex',idx+1);
});
setTimeout(function() {
Model.Searchcode.setCacheSourceCodeHtmlById(els.lastSourceCodeId,els.sourceCodeContent.html());
},300);
},300);
},800);
}
function renderRelatedProperty(name) {
var htm = [],
prop = getRelatedProperty(name);
if (prop) {
var ids = prop['ids'],
repos = prop['repos'],
repoNames = prop['repoNames'],
repoFilePaths = prop['repoFilePaths'],
langs = prop['languages'],
i = 0, len = ids.length;
for (i; i < len; i++) {
htm.push(
els.sourceCodeModalDropdownTpl.replace(/\{id\}/g, ids[i])
.replace(/\{repo\}/g, repos[i])
.replace(/\{repoName\}/g, repoNames[i])
.replace(/\{repoFilePath\}/g, repoFilePaths[i])
.replace(/\{lang\}/g, langs[i])
.replace(/\{label_type\}/g, Model.BeanHelpers.getRandomLabelType().replace('secondary', 'default'))
);
}
}
els.sourceCodeModalDropdown.html(htm.join(''));
els.sourceCodeModal.find('.match-count').html(htm.length);
}
function renderDonate(isZh) {
isZh = isZh || els.isZHSearchKeyWords;
els.donate.removeAttr('hidden');
els.donateTitle.removeClass('cn en').addClass(isZh ? 'cn' : 'en');
}
function renderNotice() {
els.noticeIndex += 1;
if (els.noticeIndex >= els.noticeLinks.length) {
els.noticeIndex = 0;
}
els.noticeLinks.hide();
els.noticeLinks.eq(els.noticeIndex).show();
setTimeout(renderNotice, 5 * 1000);
}
function renderAnalytics(param) {
els.isGithub && setTimeout(function () {
Util.Navigator.getFrame(null).setAttribute('src', '//www.mihtool.com/analytics.html?codelf' + (param ? ('&' + param) : ''));
}, param ? 500 : 3000);
}
function renderBaiduShare() {
return;
if (els.hasBaiduShare || !els.isZHSearchKeyWords) {
return;
}
els.hasBaiduShare = true;
window._bd_share_config = {
"common": {
"bdSnsKey": {},
"bdText": "",
"bdMini": "2",
"bdMiniList": false,
"bdPic": "",
"bdStyle": "0",
"bdSize": "16"
}, "slide": {"type": "slide", "bdImg": "5", "bdPos": "right", "bdTop": els.win.height() / 2 - 80}
};
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = '//bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
}
function beforeRemoveVariableMenus() {
els.body.find('.popover--variable').remove();
}
init();
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
var Database = __webpack_require__(1);
module.exports = new function () {
var _this = this;
var DB;
var schemaBuilder = Database.schemaBuilder;
var Tables;
var DBEventType = Database.eventType;
var win = $(window);
schemaBuilder
.createTable('SourceCode')
.addColumn('id', lf.Type.INTEGER)
.addColumn('sid', lf.Type.OBJECT)
.addColumn('htm', lf.Type.OBJECT)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
var persistLangsName = 'codelf_langs_selected';
var langs = Util.localStorage.get(persistLangsName), langQuery;
var page = 0;
var lastVal;
var cacheSourceCodes = {};
var cacheSourceCodeHtmls = {};
var afterRequestSearchcode;
genLangQuery(langs);
this.resetPage = function () {
page = 0;
}
this.setLang = function (val) {
langs = val || null;
genLangQuery(val);
this.resetPage();
Util.localStorage[langs ? 'set' : 'del'](persistLangsName, langs);
}
this.getLang = function () {
return langs;
}
function genLangQuery(val) {
if (!!val) {
var arr1 = val.replace(/\s+/g, ',').split(','),
arr2 = [];
arr1.forEach(function (key) {
arr2.push('lan=' + key);
});
langQuery = arr2.join('&');
} else {
langQuery = null;
}
}
win.on('DB:ready', function (ev,db) {
DB = db;
Tables = {
SourceCode: DB.getSchema().table('SourceCode')
};
_this.SourceCodeTable.getAll(function(rows){
rows.forEach(function (key) {
cacheSourceCodeHtmls[key.sid] = key.htm;
});
});
});
this.SourceCodeTable = new function () {
this.add = function (sid, htm, callback) {
if (!sid) {
return;
}
var row = Tables.SourceCode.createRow({
'sid': sid,
'htm': htm,
'create': new Date()
});
DB.insertOrReplace().into(Tables.SourceCode).values([row])
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.SourceCode.onchange', {type: DBEventType.C});
});
}
this.getAll = function (callback) {
DB.select()
.from(Tables.SourceCode)
.orderBy(Tables.SourceCode.id, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.setCacheSourceCodeHtmlById = function(id,htm){
cacheSourceCodeHtmls[id] = htm;
_this.SourceCodeTable.add(id,htm);
}
this.getCacheSourceCodeHtmlById = function(id){
return cacheSourceCodeHtmls[id];
}
//search code by query
this.request = function (val, callback) {
afterRequestSearchcode = callback;
if (val != lastVal) {
this.resetPage();
}
lastVal = val;
lastVal && $.ajax({
type: 'GET',
dataType: 'jsonp',
//dataType: 'json',
//url: 'https://searchcode.com/api/codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
url: 'https://searchcode.com/api/jsonp_codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
data: {
q: lastVal,
p: page,
per_page: 42,
callback: 'afterRequestSearchcode'
},
jsonp: false,
jsonpCallback: false,
success: function (data) {
callback && callback(data, page);
page++;
}
})
};
window.afterRequestSearchcode = function(data){
afterRequestSearchcode && afterRequestSearchcode(data, page);
page++;
}
//get source code by id
this.requestSourceCode = function (id, callback) {
if (cacheSourceCodes[id]) {
callback && callback(cacheSourceCodes[id]);
return;
}
id && $.ajax({
type: 'GET',
dataType: 'json',
url: 'https://searchcode.com/api/result/' + id + '/',
success: function (data) {
cacheSourceCodes[id] = data;
callback && callback(data);
}
});
}
};
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
module.exports = new function () {
var lastVal;
var translateRequestCallback;
this.request = function (val, callback) {
lastVal = val;
translateRequestCallback = callback;
lastVal && $.getJSON('//fanyi.youdao.com/openapi.do?callback=?&keyfrom=Codelf&key=2023743559&type=data&doctype=jsonp&version=1.1',
{
q: lastVal
},
function (data) {
if (data) {
translateRequestCallback && translateRequestCallback(data);
}
});
}
};
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
var Database = __webpack_require__(1);
module.exports = new function () {
var BM = this;
var DB;
var schemaBuilder = Database.schemaBuilder;
var Tables;
var DBEventType = Database.eventType;
var win = $(window);
var curUserName;
var curUser;
schemaBuilder
.createTable('User')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('create', lf.Type.DATE_TIME)
.addColumn('lastSync', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('RepoGroup')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('repoIds', lf.Type.OBJECT)
.addColumn('order', lf.Type.INTEGER)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('Repo')
.addColumn('id', lf.Type.INTEGER)
.addColumn('userId', lf.Type.INTEGER)
.addColumn('originRepoId', lf.Type.STRING)
.addColumn('data', lf.Type.OBJECT)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('RepoTag')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('color', lf.Type.STRING)
.addColumn('repoIds', lf.Type.OBJECT)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
win.on('DB:ready', function (ev,db) {
DB = db;
Tables = {
User: DB.getSchema().table('User'),
RepoGroup: DB.getSchema().table('RepoGroup'),
RepoTag: DB.getSchema().table('RepoTag'),
Repo: DB.getSchema().table('Repo')
};
BM.RepoTagTable.addDefaultTags();
});
this.UserTable = new function () {
this.add = function (name, callback) {
if (!name) {
return;
}
var row = Tables.User.createRow({
'name': name,
'create': new Date(),
'lastSync': new Date()
});
DB.select().from(Tables.User).where(Tables.User.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.User).values([row])
.exec().then(function (res) {
curUser = res[0];
callback && callback();
win.trigger('DB:Table.User.onchange', {type: DBEventType.C});
});
});
}
this.updateSync = function (name) {
DB.update(Tables.User).set(Tables.User.lastSync, new Date()).where(Tables.User.name.eq(name))
.exec().then(function () {
win.trigger('DB:Table.User.onchange', {type: DBEventType.U});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.Repo)
.where(Tables.Repo.userId.eq(id))
.exec().then(function () {
DB.delete()
.from(Tables.User)
.where(Tables.User.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.User.onchange', {type: DBEventType.D});
});
});
}
this.getAll = function (callback) {
DB.select()
.from(Tables.User)
.orderBy(Tables.User.create, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.RepoGroupTable = new function () {
this.add = function (name) {
if (!name) {
return;
}
var row = Tables.RepoGroup.createRow({
'name': name,
'repoIds': [],
'order': 0,
'create': new Date()
});
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.RepoGroup).values([row])
.exec().then(function (res) {
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.C});
});
});
}
this.addRopoId = function (id, repoId) {
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = /string/i.test(typeof rows[0].repoIds)?
(rows[0].repoIds.length ? rows[0].repoIds.split(',') : []):
rows[0].repoIds;
if (ids.indexOf(repoId) == -1) {
ids.push(repoId);
}
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.repoIds, ids).where(Tables.RepoGroup.id.eq(id))
.exec();
}
});
}
this.removeRopoId = function (id, repoId) {
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = /string/i.test(typeof rows[0].repoIds)?
(rows[0].repoIds.length ? rows[0].repoIds.split(',') : []):
rows[0].repoIds,
idx = ids.indexOf(repoId);
if (idx != -1) {
ids.splice(idx, 1);
}
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.repoIds, ids).where(Tables.RepoGroup.id.eq(id))
.exec();
}
});
}
this.updateName = function (id, name) {
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.name, name).where(Tables.RepoGroup.id.eq(id))
.exec().then(function () {
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.U, fields: 'name'});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.RepoGroup)
.where(Tables.RepoGroup.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.D});
});
}
this.deleteAll = function (callback) {
DB.delete()
.from(Tables.RepoGroup)
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.D});
});
}
this.addAll = function (data, callback) {
if(data){
this.deleteAll(function(){
var rows = [];
data.forEach(function(key){
rows.push(Tables.RepoGroup.createRow({
'name': key.name,
'repoIds': key.repoIds,
'order': key.order,
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoGroup).values(rows)
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.C});
});
});
}
}
this.getAll = function (callback) {
DB.select()
.from(Tables.RepoGroup)
.orderBy(Tables.RepoGroup.create, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.RepoTagTable = new function () {
this.addDefaultTags = function(callback){
var tags = [
{
name: 'Red',
color: '#ff5f5f'
},
{
name: 'Orange',
color: '#fba45b'
},
{
name: 'Yellow',
color: '#f6cc67'
},
{
name: 'Green',
color: '#60cb68'
},
{
name: 'Blue',
color: '#33baef'
},
{
name: 'Purple',
color: '#d38adb'
},
{
name: 'Gray',
color: '#a4a4a7'
}
];
DB.select().from(Tables.RepoTag)
.exec().then(function (rows) {
if(!rows.length){
var trows = [];
tags.forEach(function(key){
trows.push(Tables.RepoTag.createRow({
'name': key.name,
'color': key.color,
'repoIds': [],
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoTag).values(trows)
.exec().then(function () {
callback && callback();
});
}else{
callback && callback();
}
});
}
this.add = function (name,color) {
if (!name || !color) {
return;
}
var row = Tables.RepoTag.createRow({
'name': name,
'color': color,
'repoIds': [],
'create': new Date()
});
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.RepoTag).values([row])
.exec().then(function () {
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.C});
});
});
}
this.addRopoId = function (id, repoId,callback) {
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = rows[0].repoIds;
if (ids.indexOf(repoId) == -1) {
ids.push(repoId);
}
DB.update(Tables.RepoTag).set(Tables.RepoTag.repoIds, ids).where(Tables.RepoTag.id.eq(id))
.exec().then(function(){
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fileds: ['repoIds']});
});
}
});
}
this.removeRopoId = function (id, repoId,callback) {
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = rows[0].repoIds,
idx = ids.indexOf(repoId);
if (idx != -1) {
ids.splice(idx, 1);
}
DB.update(Tables.RepoTag).set(Tables.RepoTag.repoIds, ids).where(Tables.RepoTag.id.eq(id))
.exec().then(function(){
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fileds: ['repoIds']});
});
}
});
}
this.updateName = function (id, name) {
DB.update(Tables.RepoTag).set(Tables.RepoTag.name, name).where(Tables.RepoTag.id.eq(id))
.exec().then(function () {
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fields: 'name'});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.RepoTag)
.where(Tables.RepoTag.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.D});
});
}
this.deleteAll = function (callback) {
DB.delete()
.from(Tables.RepoTag)
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.D});
});
}
this.addAll = function (data, callback) {
if(data){
this.deleteAll(function(){
var rows = [];
data.forEach(function(key){
rows.push(Tables.RepoTag.createRow({
'name': key.name,
'color': key.color,
'repoIds': key.repoIds,
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoTag).values(rows)
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.C});
});
});
}
}
this.getAll = function (callback) {
DB.select()
.from(Tables.RepoTag)
.orderBy(Tables.RepoTag.create, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.RepoTable = new function () {
var _Table = this;
this.addListByCurUser = function (repos, callback) {
function fn() {
_Table.deleteAllByUserId(curUser.id, function () {
var rows = [];
repos.forEach(function (key) {
rows.push(
Tables.Repo.createRow({
'userId': curUser.id,
'originRepoId': key.id,
'data': key,
'create': new Date()
})
);
});
DB.insertOrReplace().into(Tables.Repo).values(rows)
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.Repo.onchange', {type: DBEventType.C});
});
});
}
if (curUser && curUser.name == curUserName) {
fn();
} else {
DB.select().from(Tables.User).where(Tables.User.name.eq(curUserName))
.exec().then(function (rows) {
curUser = rows[0];
fn.call(this);
});
}
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.Repo)
.where(Tables.Repo.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.Repo.onchange', {type: DBEventType.D});
});
}
this.deleteAllByUserId = function (id, callback) {
DB.delete()
.from(Tables.Repo)
.where(Tables.Repo.userId.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.Repo.onchange', {type: DBEventType.D});
});
}
this.getAll = function (callback) {
DB.select()
.from(Tables.Repo)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.setCurUserName = function (name) {
curUserName = name;
};
this.getCurUserName = function () {
return curUserName;
};
var githubRepos = new function () {
var _this = this;
var page = 1;
var mainData = [];
function concat(data) {
if (toString.call(data) == '[object Array]') {
mainData = mainData.concat(data);
}
}
this.resetPage = function(){
page = 1;
mainData = [];
}
this.request = function (callback) {
$.ajax({
type: 'GET',
dataType: 'json',
url: 'https://api.github.com/users/' + curUserName + '/repos?sort=updated&per_page=100&page=' + page,
success: function (data) {
if (data && data.length) {
concat(data);
page++;
_this.request(callback);
} else {
callback && callback(mainData);
}
}
});
}
};
var githubStars = new function () {
var _this = this;
var page = 1;
var mainData = [];
function concat(data) {
if (toString.call(data) == '[object Array]') {
mainData = mainData.concat(data);
}
}
this.resetPage = function(){
page = 1;
mainData = [];
}
this.request = function (callback) {
$.ajax({
type: 'GET',
dataType: 'json',
url: 'https://api.github.com/users/' + curUserName + '/starred?sort=updated&per_page=100&page=' + page,
success: function (data) {
if (data && data.length) {
concat(data);
page++;
_this.request(callback);
} else {
callback && callback(mainData);
}
}
});
}
};
this.getAll = function (callback) {
//select user
BM.UserTable.getAll(function (users) {
//select groups
BM.RepoGroupTable.getAll(function (groups) {
//select repos
BM.RepoTable.getAll(function (repos) {
//select tags
BM.RepoTagTable.getAll(function (tags) {
callback && callback.call(this, {
users: users || [],
repos: repos || [],
groups: groups || [],
tags: tags || []
});
});
});
});
});
}
this.syncGithub = function (callback) {
var data = [];
//reauest repos
githubRepos.resetPage();
githubRepos.request(function (res) {
data = data.concat(res);
//request star repos
githubRepos.resetPage();
githubStars.request(function (res) {
//add repos to DB
BM.RepoTable.addListByCurUser(data.concat(res), function () {
callback && callback();
});
});
});
this.UserTable.updateSync(curUserName);
}
this.syncRepoGroup = function (){
}
this.syncRepoTag = function (){
}
this.arrayToObj = function (data,idName) {
var d = {};
idName = idName || 'id';
data.forEach(function (key) {
d[key[idName]] = key;
});
return d;
}
};
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
module.exports = new function () {
var formAction = '//ddms.mihtool.com/apis/v1/formdata/';
var formDataAction = '//ddms.mihtool.com/apis/v1/formdata_detail/';
var persistKeyWordsName = 'codelf_ddms_keywords';
var persistOrganizerName = 'codelf_ddms_group_sync_id';
var persistKeyWordsTimerName = persistKeyWordsName + '_timer';
var cacheKeyWords = (Util.localStorage.get(persistKeyWordsName) || '').split(',');
var ot = new Date(Util.localStorage.get(persistKeyWordsTimerName) || 0);
var nt = new Date().getTime();
var OrganizerSyncId;
if ((nt - ot) > 1000 * 60 * 60 * 24) {
cacheKeyWords = [];
Util.localStorage.set(persistKeyWordsTimerName, nt);
}
function saveKeyWords(val) {
if (!Util.isInArray(cacheKeyWords, val)) {
cacheKeyWords.push(val);
Util.localStorage.set(persistKeyWordsName, cacheKeyWords.join(',').replace(/^,*/g, '').replace(/,*&/g, ''));
}
}
this.setOrganizerSyncId = function (val) {
OrganizerSyncId = val;
Util.localStorage.set(persistOrganizerName, val);
}
this.getOrganizerSyncId = function () {
return OrganizerSyncId || Util.localStorage.get(persistOrganizerName);
}
this.postKeyWords = function (val) {
if (val && !Util.isInArray(cacheKeyWords, val)) {
Util.FormHandler.asyncSubmit(formAction, {
formid: '56e58775ade3a8e84dbacadf',
keyword: val
});
saveKeyWords(val);
}
}
this.postBookmarkUser = function (val) {
if (val) {
Util.FormHandler.asyncSubmit(formAction, {
formid: '56e587a9ade3a8e84dbacae1',
account: val
});
}
}
this.postBookmarkGroup = function (repoid,repourl,groupname,lang,stars) {
if (repoid) {
Util.FormHandler.asyncSubmit(formAction, {
formid: '56e587ecade3a8e84dbacae3',
repoid: repoid,
repourl: repourl,
groupname: groupname,
lang: lang,
stars: stars
});
}
}
this.postBookmarkOrganizer = function (data, callback) {
if (data) {
window.afterPostBookmarkOrganizer = callback;
Util.FormHandler.asyncSubmit(formAction, {
formid: '56fb7d9dade3a8e84dbacaf0',
success_url: Util.thisPath+'ddms_frame_callback.html?frame_callback=afterPostBookmarkOrganizer',
data: data
});
}
}
this.postUpdateBookmarkOrganizer = function (id, data, callback) {
if (id && data) {
window.afterPostUpdateBookmarkOrganizer = callback;
Util.FormHandler.asyncSubmit(formDataAction, {
id: id,
success_url: Util.thisPath+'ddms_frame_callback.html?frame_callback=afterPostUpdateBookmarkOrganizer',
data: data
});
}
}
this.getBookmarkOrganizer = function (id, callback) {
$.getJSON(formDataAction+'?callback=?',
{
id: id
},
function (data) {
if (data) {
callback && callback(data);
}
});
}
};
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
var Util = __webpack_require__(0);
var Model = __webpack_require__(2);
//view and render
var els = {
win: $(window),
body: $('body'),
bookmarkBtn: $('.bookmark-btn'),
bookmarkModal: $('.bookmark-modal'),
bookmarkModalTagMenu: $('.bookmark-modal .modal-header .tag-menu'),
bookmarkModalContent: $('.bookmark-modal .modal-body>.bd'),
bookmarkModalContentHd: $('.bookmark-modal .modal-body>.hd'),
bookmarkModalGroupTpl: $('.bookmark-modal script[data-template="repoGroup"]').html(),
bookmarkModalGroupItemTpl: $('.bookmark-modal script[data-template="groupItem"]').html(),
bookmarkModalTagItemTpl: $('.bookmark-modal script[data-template="tagItem"]').html(),
bookmarkModalTagDotTpl: $('.bookmark-modal script[data-template="tagDot"]').html(),
bookmarkModalReopTpl: $('.bookmark-modal script[data-template="repoItem"]').html(),
bookmarkUserModal: $('.bookmark-user-modal'),
bookmarkUserModalUserList: $('.bookmark-user-modal .user-list'),
bookmarkUserModalUserTpl: $('.bookmark-user-modal .user-list script').html(),
bookmarkGroupModal: $('.bookmark-group-modal'),
bookmarkGroupModalInput: $('.bookmark-group-modal input.group-name'),
bookmarkSyncModal: $('.bookmark-sync-modal'),
bookmarkSyncModalInput: $('.bookmark-sync-modal input.sync-id'),
confirmModal: $('.confirm-modal'),
isDebug: /github\.io/g.test(location.href) || Util.localParam()['search']['debug']==1
};
function bindEvent() {
els.win.on('DB:ready', renderBookmarkGroup);
els.win.on('DB:Table.RepoGroup.onchange', renderBookmarkGroup);
els.win.on('DB:Table.RepoTag.onchange', updateBookmarkTagsData);
els.bookmarkBtn.on('click', showBookmark);
els.bookmarkModalTagMenu.on('click', '.dropdown-item', renderBookmarkGroupByTag);
els.bookmarkModal.on('click', '.add-account', showBookmarkUserModal);
els.bookmarkModal.on('click', '.add-group', function(){
showBookmarkGroupModal();
});
els.bookmarkModal.on('click', '.modal-header .sync', function(){
showBookmarkSyncModal();
});
els.bookmarkModalContentHd.on('click', '.submit', function(){
beforeAddBookmarkUser(els.bookmarkModalContentHd);
});
els.bookmarkModalContentHd.keypress(function (e) {
if (e.which == 13) {
beforeAddBookmarkUser(els.bookmarkModalContentHd);
return false;
}
});
els.bookmarkUserModal.keypress(function (e) {
if (e.which == 13) {
beforeAddBookmarkUser();
return false;
}
});
els.bookmarkGroupModal.on('click', '.submit-group', beforeEditBookmarkGroup);
els.bookmarkSyncModal.on('click', '.download', beforeDownloadBookmarkGroupsAndTags);
els.bookmarkSyncModal.on('click', '.upload', beforeUploadBookmarkGroupsAndTags);
els.bookmarkModalContent.on('click', '.repo-group-item>.hd .ctrl .del', beforeDelBookmarkGroup);
els.bookmarkModalContent.on('click', '.repo-group-item>.hd .ctrl .edit', function(){
showBookmarkGroupModal(this.dataset.id,this.dataset.name);
});
els.bookmarkModalContent.on('click', '.group-menu .add-repo', beforeAddRepoToGroup);
els.bookmarkModalContent.on('click', '.tag-menu .add-repo', beforeAddRepoToTag);
els.bookmarkModalContent.on('click', '.repo-item .group-menu', renderBookmarkRepoGroupMenu);
els.bookmarkModalContent.on('click', '.repo-item .tag-menu', renderBookmarkRepoTagMenu);
els.bookmarkModalContent.on('mouseenter mouseleave ontouchstart ontouchend', '.repo-item', renderBookmarkRepoTagDots);
els.bookmarkModalContent.on('mouseenter', '.repo-item', renderBookmarkRepoTitle);
els.bookmarkModalContent.on('keyup','.repo-group-item>.hd .search input',renderBookmarkSearchRepos);
els.bookmarkModalContent.on('click','.repo-group-item>.hd .search submit',renderBookmarkSearchRepos);
els.bookmarkModalContent.on('show.bs.collapse hide.bs.collapse','.repo-group-item>.repo-list',function () {
this !== els.bookmarkModalContent.find('.repo-group-item:last-child .collapse')[0] && toggleLastBookmarkGroup();
});
els.bookmarkUserModal.on('click', '.submit', function(){
beforeAddBookmarkUser();
});
els.bookmarkUserModalUserList.on('click', '.sync', function () {
beforeSyncUser(this.dataset.name);
});
els.bookmarkUserModalUserList.on('click', '.del', beforeDelUser);
els.bookmarkGroupModal.on('hidden.bs.modal', showBookmark);
els.bookmarkUserModal.on('hidden.bs.modal', showBookmark);
els.bookmarkSyncModal.on('hidden.bs.modal', showBookmark);
}
function init() {
bindEvent();
renderBookmarkTip();
}
function showBookmark() {
renderBookmarkTip(true);
els.bookmarkModal.modal('show');
els.win.trigger('MainView:renderAnalytics','bk');
}
function hideBookmark() {
els.bookmarkModal.modal('hide');
}
function showBookmarkUserModal() {
hideBookmark();
els.bookmarkUserModal.modal('show');
}
function hideBookmarkUserModal() {
els.bookmarkUserModal.modal('hide');
}
function showBookmarkGroupModal(id,name) {
hideBookmark();
els.bookmarkGroupModal.modal('show');
if(id){
els.bookmarkGroupModalInput.attr('data-id',id).val(name||'');
}else{
els.bookmarkGroupModalInput.removeAttr('data-id').val('');
}
}
function hideBookmarkGroupModal() {
els.bookmarkGroupModal.modal('hide');
}
function showBookmarkSyncModal() {
hideBookmark();
els.bookmarkSyncModal.modal('show');
renderBookmarkSyncGroupsAndTags();
}
function hideBookmarkSyncModal() {
els.bookmarkSyncModal.modal('hide');
}
function getBookmarkRopeHtm(repo, allGroupHtm, allTagHtm) {
return els.bookmarkModalReopTpl
.replace(/\{id\}/g, repo.id)
.replace(/\{originRepoId\}/g, repo.originRepoId)
.replace(/\{full_name\}/g, repo.data.full_name)
.replace(/\{_full_name\}/g, repo.data.full_name.toLowerCase())
.replace(/\{description\}/g, repo.data.description||'')
.replace(/\{html_url\}/g, repo.data.html_url)
.replace(/\{language\}/g, repo.data.language||'')
.replace(/\{stargazers_count\}/g, repo.data.stargazers_count||'')
.replace(/\{groupItems\}/g, allGroupHtm)
.replace(/\{tagItems\}/g, allTagHtm)
}
function renderBookmarkTip(dispose) {
if(dispose){
els.bookmarkBtn.tooltip('hide');
}else{
setTimeout(function(){
els.bookmarkBtn.tooltip('show');
setTimeout(function(){
els.bookmarkBtn.tooltip('hide');
},2500);
},1500);
}
}
function renderBookmarkHeader(cls){
els.bookmarkModalContentHd.removeClass('empty loading').addClass(cls||'');
}
function renderBookmarkGroup(data) {
if (!data || !data.repos || !data.users || !data.groups || !data.tags) {
Model.Bookmark.getAll(renderBookmarkGroup);
return;
}
var repos = Model.Bookmark.arrayToObj(data.repos,'originRepoId'),
htm = [],
allRepoHtm = [],
allGroupHtm = [],
allTagHtm = [];
data.groups.forEach(function (key) {
allGroupHtm.push(els.bookmarkModalGroupItemTpl
.replace(/\{id\}/g, key.id)
.replace(/\{name\}/g, key.name)
);
});
allGroupHtm = allGroupHtm.join('');
data.tags.forEach(function (key) {
allTagHtm.push(els.bookmarkModalTagItemTpl
.replace(/\{id\}/g, key.id)
.replace(/\{name\}/g, key.name)
.replace(/\{color\}/g, key.color)
.replace(/\{count\}/g, key.repoIds.length)
);
});
allTagHtm = allTagHtm.join('');
data.groups.forEach(function (key) {
var rids = /string/i.test(typeof key.repoIds)?key.repoIds.split(','):key.repoIds,
rhtm = [];
rids.length && rids.forEach(function (key) {
var rd = repos[key];
rd && rhtm.push(getBookmarkRopeHtm(rd, allGroupHtm, allTagHtm));
});
htm.push(els.bookmarkModalGroupTpl
.replace(/\{id\}/g, key.id)
.replace(/\{name\}/g, key.name)
.replace(/\{items\}/g, rhtm.join(''))
.replace(/\{itemCount\}/g, rhtm.length||'')
);
});
if(data.repos.length){
//add all group
data.repos.forEach(function (key) {
allRepoHtm.push(getBookmarkRopeHtm(key, allGroupHtm, allTagHtm));
});
htm.push(els.bookmarkModalGroupTpl
.replace(/\{id\}/g, 0)
.replace(/\{name\}/g, 'All')
.replace(/\{items\}/g, allRepoHtm.join(''))
.replace(/\{itemCount\}/g, data.repos.length)
);
}
if(data.repos.length || data.groups.length){
els.bookmarkModalContent.html(htm.join(''));
renderBookmarkHeader();
}else{
els.bookmarkModalContent.html('');
renderBookmarkHeader('empty');
}
setTimeout(function () {
toggleLastBookmarkGroup(true);
}, 100);
updateBookmarkGroupsData();
renderBookmarkTagMenu(allTagHtm);
renderBookmarkUsers(data.users);
}
function toggleLastBookmarkGroup(show) {
els.bookmarkModalContent.find('.repo-group-item:last-child .collapse')[show ? 'addClass' : 'removeClass']('in');
}
function renderBookmarkGroupByTag(){
var id = this.dataset.id;
Model.Bookmark.getAll(function(data){
var repoObjs = Model.Bookmark.arrayToObj(data.repos,'originRepoId'),
repos = [],
repoIds;
if(id){
repoIds = data.tags.filter(function (key) {
return key.id == +id;
})[0].repoIds;
repoIds.forEach(function (key) {
repoObjs[key] && repos.push(repoObjs[key]);
});
data.repos = repos;
}
renderBookmarkGroup(data);
});
}
function renderBookmarkTagMenu(htm){
els.bookmarkModalTagMenu.find('.add-repo').remove();
els.bookmarkModalTagMenu.append(htm);
updateBookmarkTagsData();
}
function renderBookmarkRepoGroupMenu(){
var el = $(this),
id = el.parents('.repo-item').attr('data-repoid');
els.lastBookmarkGroupsData.forEach(function(key){
el.find('.add-repo[data-id="'+key.id+'"]')[key.repoIds.indexOf(id)==-1?'removeAttr':'attr']('data-selected',true);
});
}
function renderBookmarkRepoTagMenu(){
var el = $(this),
id = el.parents('.repo-item').attr('data-repoid');
els.lastBookmarkTagsData.forEach(function(key){
el.find('.add-repo[data-id="'+key.id+'"]')[key.repoIds.indexOf(id)==-1?'removeAttr':'attr']('data-selected',true);
});
}
function renderBookmarkRepoTitle(){
var el = $(this),
id = el.attr('data-repoid'),
groups = [];
els.lastBookmarkGroupsData.forEach(function(key){
key.repoIds.indexOf(id)!=-1 && groups.push(key.name);
});
el.attr('title', groups.length? ('Group: '+ groups.join('\n\t ')): '');
}
function renderBookmarkRepoTagDots(e){
var el = $(this),
id = el.attr('data-repoid'),
dotsEl = el.find('.tag-dots'),
htm = [];
if(/ontouchstart|mouseenter/g.test(e.type)){
els.lastBookmarkTagsData.forEach(function(key){
if(key.repoIds.indexOf(id)!=-1){
htm.push(
els.bookmarkModalTagDotTpl
.replace(/\{color\}/g,key.color)
);
}
});
dotsEl.html(htm.join('')).addClass('in');
}else{
dotsEl.html('').removeClass('in');
}
}
function renderBookmarkSyncGroupsAndTags(syncId) {
syncId = syncId || Model.DDMS.getOrganizerSyncId();
if(syncId){
els.bookmarkSyncModalInput.val(syncId);
els.bookmarkSyncModal.find('.sync-note').html('Your current sync id is: '+ syncId);
}
}
function renderBookmarkSearchRepos(){
var gEl = els.bookmarkModalContent.find('.repo-group-item[data-id="0"]'),
inputEl = gEl.find('.hd .search input'),
countEl = gEl.find('.hd .count'),
val = inputEl.val().trim().toLowerCase(),
repoEls = gEl.find('.repo-list .repo-item'),
matchRepoEls = gEl.find('.repo-list .repo-item[data-name*="'+val+'"]'),
resultRepoEls = val.length?matchRepoEls:repoEls;
repoEls.attr('hidden','true');
resultRepoEls.removeAttr('hidden');
countEl.html(resultRepoEls.length);
}
function renderBookmarkUsers(data) {
var htm = [];
data.forEach(function (key) {
htm.push(els.bookmarkUserModalUserTpl
.replace(/\{id\}/g, key.id)
.replace(/\{name\}/g, key.name)
)
});
els.bookmarkUserModalUserList.html(htm.join(''));
}
function beforeAddBookmarkUser(el) {
el = el || els.bookmarkUserModal;
var inputEl = el.find('input'),
val = inputEl.val().trim();
val = val.replace(/(\/)*$/, '').replace(/^(.{0,}\/)/, '').replace(/@/g,'');
if (val.length) {
Model.Bookmark.setCurUserName(val);
Model.Bookmark.UserTable.add(val, function () {
beforeSyncUser(val);
});
els.isDebug && Model.DDMS.postBookmarkUser(val);
els.win.trigger('MainView:renderAnalytics','bk&u=' + val);
}
inputEl.val('');
hideBookmarkUserModal();
}
function beforeEditBookmarkGroup() {
var id = els.bookmarkGroupModalInput.attr('data-id'),
val = els.bookmarkGroupModalInput.val().trim();
if(val.length){
if(id){
Model.Bookmark.RepoGroupTable.updateName(id,val);
els.bookmarkGroupModalInput.removeAttr('data-id');
}else{
Model.Bookmark.RepoGroupTable.add(val);
}
}
els.bookmarkGroupModalInput.val('');
hideBookmarkGroupModal();
}
function beforeDelBookmarkGroup() {
var el = $(this),
id = el.attr('data-id');
els.win.trigger('MainView:showConfirm',["Remove this group?",function(){
Model.Bookmark.RepoGroupTable.delete(id);
}]);
}
function beforeAddRepoToGroup() {
var el = $(this),
targetGroupId = el.attr('data-id'),
selected = el.attr('data-selected'),
repoEl = el.parents('.repo-item'),
repoId = repoEl.attr('data-repoid'),
repoUrl = repoEl.find('.repo-item__hd a').attr('href'),
repoLang = repoEl.attr('data-repolang'),
repoStar = repoEl.attr('data-repostar'),
curGroupEl = el.parents('.repo-group-item'),
curGroupId = curGroupEl.attr('data-id'),
curGroupElCountEl = curGroupEl.find('.hd>.count'),
curGoupCountNum = parseInt(curGroupElCountEl.html()||0),
targetGoupEl = curGroupEl.siblings('.repo-group-item[data-id="'+targetGroupId+'"]'),
targetGroupName = targetGoupEl.find('>.hd>a').html(),
targetGoupCountEl = targetGoupEl.find('.hd>.count'),
targetGoupCountNum = parseInt(targetGoupCountEl.html()||0),
targetGroupRepo = targetGoupEl.find('.repo-item[data-repoid="'+repoId+'"]');
if (!selected) {
Model.Bookmark.RepoGroupTable.addRopoId(targetGroupId, repoId);
if(!targetGroupRepo.length){
targetGoupCountEl.html(++targetGoupCountNum);
targetGoupEl.find('.repo-list').append(repoEl.clone());
}
els.isDebug && Model.DDMS.postBookmarkGroup(repoId,repoUrl,targetGroupName,repoLang,repoStar||0);
} else{
Model.Bookmark.RepoGroupTable.removeRopoId(targetGroupId, repoId);
if(targetGroupId==curGroupId){
repoEl.remove();
curGroupElCountEl.html(--curGoupCountNum||'');
}else{
targetGroupRepo.remove();
targetGoupCountEl.html(--targetGoupCountNum||'');
}
}
}
function beforeAddRepoToTag() {
var el = $(this),
targetId = el.attr('data-id'),
selected = el.attr('data-selected'),
repoEl = el.parents('.repo-item'),
repoId = repoEl.attr('data-repoid');
if (targetId != undefined && targetId != 0){
Model.Bookmark.RepoTagTable[selected?'removeRopoId':'addRopoId'](targetId, repoId);
}
}
function beforeSyncUser(name) {
if (name) {
renderBookmarkHeader('loading');
Model.Bookmark.setCurUserName(name);
Model.Bookmark.syncGithub(function () {
Model.Bookmark.getAll(renderBookmarkGroup);
});
}
}
function beforeDelUser() {
var el = $(this),
id = el.attr('data-id');
els.win.trigger('MainView:showConfirm',["Remove this user and all repos for the user?",function(){
Model.Bookmark.UserTable.delete(id, function () {
el.parents('.user-item').remove();
Model.Bookmark.getAll(renderBookmarkGroup);
});
}]);
}
function beforeDownloadBookmarkGroupsAndTags(){
els.win.trigger('MainView:showConfirm',["Download will overwrite all local groups, are you sure?",function(){
var id = els.bookmarkSyncModalInput.val();
Model.DDMS.getBookmarkOrganizer(id,function(data){
if(data && data.code){
Model.DDMS.setOrganizerSyncId(id);
renderBookmarkSyncGroupsAndTags(id);
var json = JSON.parse(decodeURIComponent(data.data.data.data));
Model.Bookmark.RepoGroupTable.addAll(json.groups, function () {
Model.Bookmark.RepoTagTable.addAll(json.tags, function () {
Model.Bookmark.getAll(renderBookmarkGroup);
});
});
}
});
}]);
}
function beforeUploadBookmarkGroupsAndTags(){
Model.Bookmark.getAll(function(data){
var id = els.bookmarkSyncModalInput.val(),
data = encodeURIComponent(JSON.stringify({groups: data.groups, tags: data.tags}));
//update
if(!!id){
els.win.trigger('MainView:showConfirm',["Upload will overwrite groups belong to this sync id on the server, are you sure?",function(){
Model.DDMS.postUpdateBookmarkOrganizer(id, data, function () {
Model.DDMS.setOrganizerSyncId(id);
renderBookmarkSyncGroupsAndTags(id);
});
}]);
}
//create
else{
Model.DDMS.postBookmarkOrganizer(data, function(url){
id = Util.localParam(url).search['id'];
Model.DDMS.setOrganizerSyncId(id);
renderBookmarkSyncGroupsAndTags(id);
});
}
});
}
function updateBookmarkTagsData(){
Model.Bookmark.RepoTagTable.getAll(function(res){
els.lastBookmarkTagsData = res;
});
}
function updateBookmarkGroupsData(){
Model.Bookmark.RepoGroupTable.getAll(function(res){
els.lastBookmarkGroupsData = res;
});
}
init();
/***/ })
/******/ ]);
================================================
FILE: __static/app/src/Util.js
================================================
var appCache = window.applicationCache;
appCache.addEventListener('updateready', function() {
if (appCache.status == appCache.UPDATEREADY){
try{
appCache.update();
if (appCache.status == appCache.UPDATEREADY) {
try{
appCache.swapCache();
window.location.reload(false);
}catch(err){}
}
}catch(err){}
}
}, false);
var ua = navigator.userAgent,
android = ua.match(/(Android);?[\s\/]+([\d.]+)?/),
ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/),
iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),
os = {};
if (android) os.android = true, os.version = android[2];
if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.')
if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.')
if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
exports.os = os;
exports.localStorage = new function () {
var lcst = window.localStorage;
function getLocalValue(id) {
if (lcst) {
return lcst[id];
} else {
return null;
}
}
function setLocalValue(id, val) {
if (lcst) {
if (typeof id === 'object') {
for (var key in id) {
try {
id[key] && lcst.setItem(key, id[key]);
} catch (err) {
}
}
} else {
try {
lcst.setItem(id, val);
} catch (err) {
}
}
}
return this;
}
function removeLocalValue(id) {
if (lcst) {
if (typeof id === 'object') {
for (var key in id) {
try {
lcst.removeItem(id[key]);
} catch (err) {
}
}
} else {
try {
lcst.removeItem(id);
} catch (err) {
}
}
}
return this;
}
this.set = setLocalValue;
this.get = getLocalValue;
this.del = removeLocalValue;
};
var HashHandler = (function () {
var lc = window.location;
function getByURL(url) {
var hash;
url && decodeURIComponent(url).replace(new RegExp('#(.*)', 'g'), function ($1, $2) {
hash = $2;
});
return hash;
}
function get() {
return getByURL(lc.hash);
}
function set(hash) {
lc.hash = hash;
}
return {
get: get,
set: set,
getByURL: getByURL
}
})();
exports.HashHandler = HashHandler;
var Navigator = (function () {
var frame,
androidReg = /Android/gi,
isAndroid = androidReg.test(navigator.platform) || androidReg.test(navigator.userAgent);
frame = null;
function appendFrame(frame) {
frame && document.body.appendChild(frame);
}
function removeFrame(frame) {
frame && frame.parentNode.removeChild(frame);
}
function getFrame(src, name) {
var _frame = document.createElement("iframe");
_frame.setAttribute("style", "display:none;width:0;height:0;position: absolute;top:0;left:0;border:0;");
_frame.setAttribute("height", "0px");
_frame.setAttribute("width", "0px");
_frame.setAttribute("frameborder", "0");
name && _frame.setAttribute("name", name);
if (src) {
_frame.setAttribute("src", src);
} else {
appendFrame(_frame);
}
return _frame;
}
function protocol(command, single, noframe) {
var _frame, timer;
if (noframe) {
window.location.href = command;
return;
}
if (single) {
if (isAndroid) {
_frame = getFrame();
_frame.setAttribute("src", command);
} else {
_frame = getFrame(command);
appendFrame(_frame);
}
timer = setTimeout(function () {
_frame && removeFrame(_frame);
}, 30000);
_frame.onload = _frame.onreadystatechange = function () {
timer && clearTimeout(timer);
_frame && removeFrame(_frame);
}
} else {
frame = frame || getFrame();
frame.setAttribute("src", command);
}
}
return {
protocol: protocol,
getFrame: getFrame,
appendFrame: appendFrame,
removeFrame: removeFrame
}
})();
exports.Navigator = Navigator;
var FormHandler = new function () {
function getForm(method) {
var _form = document.createElement('form');
_form.setAttribute("style", "display:none;width:0;height:0;position: absolute;top:0;left:0;border:0;");
_form.setAttribute("method", method || 'POST');
document.body.appendChild(_form);
return _form;
}
this.asyncSubmit = function (action, data) {
this.submit(action, data, true);
}
this.submit = function (action, data, async) {
var target,
frame,
form = getForm(),
inputs = [],
itpl = '<input type="text" name="{N}" value="{V}" />';
if (async) {
target = '__formhandler_' + new Date().getTime();
frame = Navigator.getFrame(null, target);
form.setAttribute('target', target);
setTimeout(function () {
Navigator.removeFrame(frame);
}, 120000);
}
form.setAttribute('action', action);
data = data || {};
for (var key in data) {
inputs.push(itpl.replace('{N}', key).replace('{V}', data[key]));
}
form.innerHTML = inputs.join('');
action && setTimeout(function () {
form.submit();
}, 100);
}
};
exports.FormHandler = FormHandler;
exports.localParam = function localParam(search, hash) {
search = search || window.location.search;
hash = hash || window.location.hash;
var fn = function (str, reg) {
if (str) {
var data = {};
str.replace(reg, function ($0, $1, $2, $3) {
data[$1] = $3;
});
return data;
}
}
return {
search: fn(search, new RegExp("([^?=&]+)(=([^&]*))?", "g")) || {},
hash: fn(hash, new RegExp("([^#=&]+)(=([^&]*))?", "g")) || {}
};
}
exports.randomColor = function randomColor() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
exports.randomList = function randomList(list, len, verify, ratio) {
var rs = [], _list = list.slice(0);
len = len || _list.length;
ratio = ratio ? ratio : 0;
function rd(_array) {
_array = _array.sort(function () {
return (0.5 - Math.random());
});
}
while (ratio) {
rd(_list);
ratio--;
}
if (_list.length <= len) {
rs = _list;
} else {
while (rs.length < len) {
var index = Math.floor(Math.random() * _list.length),
item = _list[index];
if (( verify && verify.call(this, item, _list) ) || !verify) {
rs.push(item);
_list.splice(index, 1);
}
}
}
return rs;
}
exports.isInArray = function isInArray(arr, val) {
if ($.inArray(val, arr) != -1) {
return true;
}
for (var key in arr) {
if (typeof val === 'function' && val.call(this, arr[key])) {
return true;
}
}
return false;
}
exports.InlineWebWorker = {
ready: window.Blob && window.Worker && window.URL,
create: function create(selector){
return new Worker(window.URL.createObjectURL(new Blob([document.querySelector(selector).textContent])));
}
}
var thisPage = window.location.href.replace(window.location.hash, '');
var thisPath = thisPage.substring(0, thisPage.lastIndexOf('/') + 1);
exports.thisPage = thisPage;
exports.thisPath = thisPath;
================================================
FILE: __static/app/src/lib/all.js
================================================
@@include("jquery.min.js")
@@include("jquery.highlight.js")
@@include("tether.min.js")
@@include("bootstrap.min.js")
@@include("prettify.js")
@@include("clipboard.min.js")
@@include("lovefield.min.js")
@@include("fastclick.js")
================================================
FILE: __static/app/src/lib/fastclick.js
================================================
;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
/*global define, Event, Node*/
/**
* Instantiate fast-clicking listeners on the specified layer.
*
* @constructor
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
function FastClick(layer, options) {
var oldOnClick;
options = options || {};
/**
* Whether a click is currently being tracked.
*
* @type boolean
*/
this.trackingClick = false;
/**
* Timestamp for when click tracking started.
*
* @type number
*/
this.trackingClickStart = 0;
/**
* The element being tracked for a click.
*
* @type EventTarget
*/
this.targetElement = null;
/**
* X-coordinate of touch start event.
*
* @type number
*/
this.touchStartX = 0;
/**
* Y-coordinate of touch start event.
*
* @type number
*/
this.touchStartY = 0;
/**
* ID of the last touch, retrieved from Touch.identifier.
*
* @type number
*/
this.lastTouchIdentifier = 0;
/**
* Touchmove boundary, beyond which a click will be cancelled.
*
* @type number
*/
this.touchBoundary = options.touchBoundary || 10;
/**
* The FastClick layer.
*
* @type Element
*/
this.layer = layer;
/**
* The minimum time between tap(touchstart and touchend) events
*
* @type number
*/
this.tapDelay = options.tapDelay || 200;
/**
* The maximum time for a tap
*
* @type number
*/
this.tapTimeout = options.tapTimeout || 700;
if (FastClick.notNeeded(layer)) {
return;
}
// Some old versions of Android don't have Function.prototype.bind
function bind(method, context) {
return function() { return method.apply(context, arguments); };
}
var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
var context = this;
for (var i = 0, l = methods.length; i < l; i++) {
context[methods[i]] = bind(context[methods[i]], context);
}
// Set up event handlers as required
if (deviceIsAndroid) {
layer.addEventListener('mouseover', this.onMouse, true);
layer.addEventListener('mousedown', this.onMouse, true);
layer.addEventListener('mouseup', this.onMouse, true);
}
layer.addEventListener('click', this.onClick, true);
layer.addEventListener('touchstart', this.onTouchStart, false);
layer.addEventListener('touchmove', this.onTouchMove, false);
layer.addEventListener('touchend', this.onTouchEnd, false);
layer.addEventListener('touchcancel', this.onTouchCancel, false);
// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
// layer when they are cancelled.
if (!Event.prototype.stopImmediatePropagation) {
layer.removeEventListener = function(type, callback, capture) {
var rmv = Node.prototype.removeEventListener;
if (type === 'click') {
rmv.call(layer, type, callback.hijacked || callback, capture);
} else {
rmv.call(layer, type, callback, capture);
}
};
layer.addEventListener = function(type, callback, capture) {
var adv = Node.prototype.addEventListener;
if (type === 'click') {
adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
if (!event.propagationStopped) {
callback(event);
}
}), capture);
} else {
adv.call(layer, type, callback, capture);
}
};
}
// If a handler is already declared in the element's onclick attribute, it will be fired before
// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
// adding it as listener.
if (typeof layer.onclick === 'function') {
// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
// - the old one won't work if passed to addEventListener directly.
oldOnClick = layer.onclick;
layer.addEventListener('click', function(event) {
oldOnClick(event);
}, false);
layer.onclick = null;
}
}
/**
* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
*
* @type boolean
*/
var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
/**
* Android requires exceptions.
*
* @type boolean
*/
var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
/**
* iOS requires exceptions.
*
* @type boolean
*/
var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
/**
* iOS 4 requires an exception for select elements.
*
* @type boolean
*/
var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
/**
* iOS 6.0-7.* requires the target element to be manually derived
*
* @type boolean
*/
var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
/**
* BlackBerry requires exceptions.
*
* @type boolean
*/
var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
/**
* Determine whether a given element requires a native click.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element needs a native click
*/
FastClick.prototype.needsClick = function(target) {
switch (target.nodeName.toLowerCase()) {
// Don't send a synthetic click to disabled inputs (issue #62)
case 'button':
case 'select':
case 'textarea':
if (target.disabled) {
return true;
}
break;
case 'input':
// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
if ((deviceIsIOS && target.type === 'file') || target.disabled) {
return true;
}
break;
case 'label':
case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
case 'video':
return true;
}
return (/\bneedsclick\b/).test(target.className);
};
/**
* Determine whether a given element requires a call to focus to simulate click into element.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
*/
FastClick.prototype.needsFocus = function(target) {
switch (target.nodeName.toLowerCase()) {
case 'textarea':
return true;
case 'select':
return !deviceIsAndroid;
case 'input':
switch (target.type) {
case 'button':
case 'checkbox':
case 'file':
case 'image':
case 'radio':
case 'submit':
return false;
}
// No point in attempting to focus disabled inputs
return !target.disabled && !target.readOnly;
default:
return (/\bneedsfocus\b/).test(target.className);
}
};
/**
* Send a click event to the specified element.
*
* @param {EventTarget|Element} targetElement
* @param {Event} event
*/
FastClick.prototype.sendClick = function(targetElement, event) {
var clickEvent, touch;
// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
if (document.activeElement && document.activeElement !== targetElement) {
document.activeElement.blur();
}
touch = event.changedTouches[0];
// Synthesise a click event, with an extra attribute so it can be tracked
clickEvent = document.createEvent('MouseEvents');
clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
clickEvent.forwardedTouchEvent = true;
targetElement.dispatchEvent(clickEvent);
};
FastClick.prototype.determineEventType = function(targetElement) {
//Issue #159: Android Chrome Select Box does not open with a synthetic click event
if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
return 'mousedown';
}
return 'click';
};
/**
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.focus = function(targetElement) {
var length;
// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
length = targetElement.value.length;
targetElement.setSelectionRange(length, length);
} else {
targetElement.focus();
}
};
/**
* Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
*
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.updateScrollParent = function(targetElement) {
var scrollParent, parentElement;
scrollParent = targetElement.fastClickScrollParent;
// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
// target element was moved to another parent.
if (!scrollParent || !scrollParent.contains(targetElement)) {
parentElement = targetElement;
do {
if (parentElement.scrollHeight > parentElement.offsetHeight) {
scrollParent = parentElement;
targetElement.fastClickScrollParent = parentElement;
break;
}
parentElement = parentElement.parentElement;
} while (parentElement);
}
// Always update the scroll top tracker if possible.
if (scrollParent) {
scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
}
};
/**
* @param {EventTarget} targetElement
* @returns {Element|EventTarget}
*/
FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
if (eventTarget.nodeType === Node.TEXT_NODE) {
return eventTarget.parentNode;
}
return eventTarget;
};
/**
* On touch start, record the position and scroll offset.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchStart = function(event) {
var targetElement, touch, selection;
// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
if (event.targetTouches.length > 1) {
return true;
}
targetElement = this.getTargetElementFromEventTarget(event.target);
touch = event.targetTouches[0];
if (deviceIsIOS) {
// Only trusted events will deselect text on iOS (issue #49)
selection = window.getSelection();
if (selection.rangeCount && !selection.isCollapsed) {
return true;
}
if (!deviceIsIOS4) {
// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
// with the same identifier as the touch event that previously triggered the click that triggered the alert.
// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
// random integers, it's safe to to continue if the identifier is 0 here.
if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
event.preventDefault();
return false;
}
this.lastTouchIdentifier = touch.identifier;
// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
// 1) the user does a fling scroll on the scrollable layer
// 2) the user stops the fling scroll with another tap
// then the event.target of the last 'touchend' event will be the element that was under the user's finger
// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
this.updateScrollParent(targetElement);
}
}
this.trackingClick = true;
this.trackingClickStart = event.timeStamp;
this.targetElement = targetElement;
this.touchStartX = touch.pageX;
this.touchStartY = touch.pageY;
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
event.preventDefault();
}
return true;
};
/**
* Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.touchHasMoved = function(event) {
var touch = event.changedTouches[0], boundary = this.touchBoundary;
if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
return true;
}
return false;
};
/**
* Update the last position.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchMove = function(event) {
if (!this.trackingClick) {
return true;
}
// If the touch has moved, cancel the click tracking
if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
this.trackingClick = false;
this.targetElement = null;
}
return true;
};
/**
* Attempt to find the labelled control for the given label element.
*
* @param {EventTarget|HTMLLabelElement} labelElement
* @returns {Element|null}
*/
FastClick.prototype.findControl = function(labelElement) {
// Fast path for newer browsers supporting the HTML5 control attribute
if (labelElement.control !== undefined) {
return labelElement.control;
}
// All browsers under test that support touch events also support the HTML5 htmlFor attribute
if (labelElement.htmlFor) {
return document.getElementById(labelElement.htmlFor);
}
// If no for attribute exists, attempt to retrieve the first labellable descendant element
// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
};
/**
* On touch end, determine whether to send a click event at once.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchEnd = function(event) {
var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
if (!this.trackingClick) {
return true;
}
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
this.cancelNextClick = true;
return true;
}
if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
return true;
}
// Reset to prevent wrong click cancel on input (issue #156).
this.cancelNextClick = false;
this.lastClickTime = event.timeStamp;
trackingClickStart = this.trackingClickStart;
this.trackingClick = false;
this.trackingClickStart = 0;
// On some iOS devices, the targetElement supplied with the event is invalid if the layer
// is performing a transition or scroll, and has to be re-detected manually. Note that
// for this to function correctly, it must be called *after* the event target is checked!
// See issue #57; also filed as rdar://13048589 .
if (deviceIsIOSWithBadTarget) {
touch = event.changedTouches[0];
// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
}
targetTagName = targetElement.tagName.toLowerCase();
if (targetTagName === 'label') {
forElement = this.findControl(targetElement);
if (forElement) {
this.focus(targetElement);
if (deviceIsAndroid) {
return false;
}
targetElement = forElement;
}
} else if (this.needsFocus(targetElement)) {
// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
this.targetElement = null;
return false;
}
this.focus(targetElement);
this.sendClick(targetElement, event);
// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
if (!deviceIsIOS || targetTagName !== 'select') {
this.targetElement = null;
event.preventDefault();
}
return false;
}
if (deviceIsIOS && !deviceIsIOS4) {
// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
scrollParent = targetElement.fastClickScrollParent;
if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
return true;
}
}
// Prevent the actual click from going though - unless the target node is marked as requiring
// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
if (!this.needsClick(targetElement)) {
event.preventDefault();
this.sendClick(targetElement, event);
}
return false;
};
/**
* On touch cancel, stop tracking the click.
*
* @returns {void}
*/
FastClick.prototype.onTouchCancel = function() {
this.trackingClick = false;
this.targetElement = null;
};
/**
* Determine mouse events which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onMouse = function(event) {
// If a target element was never set (because a touch event was never fired) allow the event
if (!this.targetElement) {
return true;
}
if (event.forwardedTouchEvent) {
return true;
}
// Programmatically generated events targeting a specific element should be permitted
if (!event.cancelable) {
return true;
}
// Derive and check the target element to see whether the mouse event needs to be permitted;
// unless explicitly enabled, prevent non-touch click events from triggering actions,
// to prevent ghost/doubleclicks.
if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
// Prevent any user-added listeners declared on FastClick element from being fired.
if (event.stopImmediatePropagation) {
event.stopImmediatePropagation();
} else {
// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
event.propagationStopped = true;
}
// Cancel the event
event.stopPropagation();
event.preventDefault();
return false;
}
// If the mouse event is permitted, return true for the action to go through.
return true;
};
/**
* On actual clicks, determine whether this is a touch-generated click, a click action occurring
* naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
* an actual click which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onClick = function(event) {
var permitted;
// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
if (this.trackingClick) {
this.targetElement = null;
this.trackingClick = false;
return true;
}
// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
if (event.target.type === 'submit' && event.detail === 0) {
return true;
}
permitted = this.onMouse(event);
// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
if (!permitted) {
this.targetElement = null;
}
// If clicks are permitted, return true for the action to go through.
return permitted;
};
/**
* Remove all FastClick's event listeners.
*
* @returns {void}
*/
FastClick.prototype.destroy = function() {
var layer = this.layer;
if (deviceIsAndroid) {
layer.removeEventListener('mouseover', this.onMouse, true);
layer.removeEventListener('mousedown', this.onMouse, true);
layer.removeEventListener('mouseup', this.onMouse, true);
}
layer.removeEventListener('click', this.onClick, true);
layer.removeEventListener('touchstart', this.onTouchStart, false);
layer.removeEventListener('touchmove', this.onTouchMove, false);
layer.removeEventListener('touchend', this.onTouchEnd, false);
layer.removeEventListener('touchcancel', this.onTouchCancel, false);
};
/**
* Check whether FastClick is needed.
*
* @param {Element} layer The layer to listen on
*/
FastClick.notNeeded = function(layer) {
var metaViewport;
var chromeVersion;
var blackberryVersion;
var firefoxVersion;
// Devices that don't support touch don't need FastClick
if (typeof window.ontouchstart === 'undefined') {
return true;
}
// Chrome version - zero for other browsers
chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (chromeVersion) {
if (deviceIsAndroid) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// Chrome 32 and above with width=device-width or less don't need FastClick
if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
// Chrome desktop doesn't need FastClick (issue #15)
} else {
return true;
}
}
if (deviceIsBlackBerry10) {
blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
// BlackBerry 10.3+ does not require Fastclick library.
// https://github.com/ftlabs/fastclick/issues/251
if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// user-scalable=no eliminates click delay.
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// width=device-width (or less than device-width) eliminates click delay.
if (document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
}
}
// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
// Firefox version - zero for other browsers
firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (firefoxVersion >= 27) {
// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
return true;
}
}
// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
return false;
};
/**
* Factory method for creating a FastClick object
*
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
FastClick.attach = function(layer, options) {
return new FastClick(layer, options);
};
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// AMD. Register as an anonymous module.
define(function() {
return FastClick;
});
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = FastClick.attach;
module.exports.FastClick = FastClick;
} else {
window.FastClick = FastClick;
}
}());
================================================
FILE: __static/app/src/lib/jquery.highlight.js
================================================
/*
* jQuery Highlight plugin
*
* Based on highlight v3 by Johann Burkard
* http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
*
* Code a little bit refactored and cleaned (in my humble opinion).
* Most important changes:
* - has an option to highlight only entire words (wordsOnly - false by default),
* - has an option to be case sensitive (caseSensitive - false by default)
* - highlight element tag and class names can be specified in options
*
* Usage:
* // wrap every occurrance of text 'lorem' in content
* // with <span class='highlight'> (default options)
* $('#content').highlight('lorem');
*
* // search for and highlight more terms at once
* // so you can save some time on traversing DOM
* $('#content').highlight(['lorem', 'ipsum']);
* $('#content').highlight('lorem ipsum');
*
* // search only for entire word 'lorem'
* $('#content').highlight('lorem', { wordsOnly: true });
*
* // don't ignore case during search of term 'lorem'
* $('#content').highlight('lorem', { caseSensitive: true });
*
* // wrap every occurrance of term 'ipsum' in content
* // with <em class='important'>
* $('#content').highlight('ipsum', { element: 'em', className: 'important' });
*
* // remove default highlight
* $('#content').unhighlight();
*
* // remove custom highlight
* $('#content').unhighlight({ element: 'em', className: 'important' });
*
*
* Copyright (c) 2009 Bartek Szopka
*
* Licensed under MIT license.
*
*/
jQuery.extend({
highlight: function (node, re, nodeName, className) {
if (node.nodeType === 3) {
var match = node.data.match(re);
if (match) {
var highlight = document.createElement(nodeName || 'span');
highlight.className = className || 'highlight';
var wordNode = node.splitText(match.index);
wordNode.splitText(match[0].length);
var wordClone = wordNode.cloneNode(true);
highlight.appendChild(wordClone);
wordNode.parentNode.replaceChild(highlight, wordNode);
return 1; //skip added node in parent
}
} else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
!/(script|style)/i.test(node.tagName) && // ignore script and style nodes
!(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted
for (var i = 0; i < node.childNodes.length; i++) {
i += jQuery.highlight(node.childNodes[i], re, nodeName, className);
}
}
return 0;
}
});
jQuery.fn.unhighlight = function (options) {
var settings = { className: 'highlight', element: 'span' };
jQuery.extend(settings, options);
return this.find(settings.element + "." + settings.className).each(function () {
var parent = this.parentNode;
parent.replaceChild(this.firstChild, this);
parent.normalize();
}).end();
};
jQuery.fn.highlight = function (words, options) {
var settings = { className: 'highlight', element: 'span', caseSensitive: false, wordsOnly: false };
jQuery.extend(settings, options);
if (words.constructor === String) {
words = [words];
}
words = jQuery.grep(words, function(word, i){
return word != '';
});
words = jQuery.map(words, function(word, i) {
return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
});
if (words.length == 0) { return this; };
var flag = settings.caseSensitive ? "" : "i";
var pattern = "(" + words.join("|") + ")";
if (settings.wordsOnly) {
pattern = "\\b" + pattern + "\\b";
}
var re = new RegExp(pattern, flag);
return this.each(function () {
jQuery.highlight(this, re, settings.element, settings.className);
});
};
================================================
FILE: __static/app/src/lib/prettify.js
================================================
!function(){/*
Copyright (C) 2006 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=
[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;a<g;++a){var h=b[a];if(/\\[bdsw]/i.test(h))c.push(h);else{var h=d(h),k;a+2<g&&"-"===b[a+1]?(k=d(b[a+2]),a+=2):k=h;e.push([h,k]);65>k||122<h||(65>k||90<h||e.push([Math.max(65,h)|32,Math.min(k,90)|32]),97>k||122<h||e.push([Math.max(97,h)&-33,Math.min(k,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];g=[];for(a=0;a<e.length;++a)h=e[a],h[0]<=g[1]+1?g[1]=Math.max(g[1],h[1]):b.push(g=h);for(a=0;a<b.length;++a)h=b[a],
c.push(f(h[0])),h[1]>h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g<c;++g){var k=a[g];"("===k?++h:"\\"===k.charAt(0)&&(k=+k.substring(1))&&(k<=h?d[k]=-1:a[g]=f(k))}for(g=1;g<d.length;++g)-1===d[g]&&(d[g]=++A);for(h=g=0;g<c;++g)k=a[g],"("===k?(++h,d[h]||(a[g]="(?:")):"\\"===
k.charAt(0)&&(k=+k.substring(1))&&k<=h&&(a[g]="\\"+d[k]);for(g=0;g<c;++g)"^"===a[g]&&"^"!==a[g+1]&&(a[g]="");if(e.ignoreCase&&n)for(g=0;g<c;++g)k=a[g],e=k.charAt(0),2<=k.length&&"["===e?a[g]=b(k):"\\"!==e&&(a[g]=k.replace(/[a-zA-Z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var A=0,n=!1,l=!1,m=0,c=a.length;m<c;++m){var p=a[m];if(p.ignoreCase)l=!0;else if(/[a-z]/i.test(p.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){n=!0;
l=!1;break}}for(var w={b:8,t:9,n:10,v:11,f:12,r:13},r=[],m=0,c=a.length;m<c;++m){p=a[m];if(p.global||p.multiline)throw Error(""+p);r.push("(?:"+v(p)+")")}return new RegExp(r.join("|"),l?"gi":"g")}function U(a,d){function f(a){var c=a.nodeType;if(1==c){if(!b.test(a.className)){for(c=a.firstChild;c;c=c.nextSibling)f(c);c=a.nodeName.toLowerCase();if("br"===c||"li"===c)v[l]="\n",n[l<<1]=A++,n[l++<<1|1]=a}}else if(3==c||4==c)c=a.nodeValue,c.length&&(c=d?c.replace(/\r\n?/g,"\n"):c.replace(/[ \t\r\n]+/g,
" "),v[l]=c,n[l<<1]=A,A+=c.length,n[l++<<1|1]=a)}var b=/(?:^|\s)nocode(?:\s|$)/,v=[],A=0,n=[],l=0;f(a);return{a:v.join("").replace(/\n$/,""),c:n}}function J(a,d,f,b,v){f&&(a={h:a,l:1,j:null,m:null,a:f,c:null,i:d,g:null},b(a),v.push.apply(v,a.g))}function V(a){for(var d=void 0,f=a.firstChild;f;f=f.nextSibling)var b=f.nodeType,d=1===b?d?a:f:3===b?W.test(f.nodeValue)?a:d:d;return d===a?void 0:d}function G(a,d){function f(a){for(var l=a.i,m=a.h,c=[l,"pln"],p=0,w=a.a.match(v)||[],r={},e=0,t=w.length;e<
t;++e){var z=w[e],q=r[z],g=void 0,h;if("string"===typeof q)h=!1;else{var k=b[z.charAt(0)];if(k)g=z.match(k[1]),q=k[0];else{for(h=0;h<A;++h)if(k=d[h],g=z.match(k[1])){q=k[0];break}g||(q="pln")}!(h=5<=q.length&&"lang-"===q.substring(0,5))||g&&"string"===typeof g[1]||(h=!1,q="src");h||(r[z]=q)}k=p;p+=z.length;if(h){h=g[1];var B=z.indexOf(h),D=B+h.length;g[2]&&(D=z.length-g[2].length,B=D-h.length);q=q.substring(5);J(m,l+k,z.substring(0,B),f,c);J(m,l+k+B,h,K(q,h),c);J(m,l+k+D,z.substring(D),f,c)}else c.push(l+
k,q)}a.g=c}var b={},v;(function(){for(var f=a.concat(d),l=[],m={},c=0,p=f.length;c<p;++c){var w=f[c],r=w[3];if(r)for(var e=r.length;0<=--e;)b[r.charAt(e)]=w;w=w[1];r=""+w;m.hasOwnProperty(r)||(l.push(w),m[r]=null)}l.push(/[\0-\uffff]/);v=T(l)})();var A=d.length;return f}function y(a){var d=[],f=[];a.tripleQuotedStrings?d.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,
null,"'\""]):a.multiLineStrings?d.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):d.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]);a.verbatimStrings&&f.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var b=a.hashComments;b&&(a.cStyleComments?(1<b?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,
null,"#"]),f.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1<b?"":"\n\r")?".":"[\\S\\s]";f.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+
("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,
null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&&
a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild);
for(var c=[m],p=0;p<c.length;++p)b(c[p]);d===(d|0)&&c[0].setAttribute("value",d);var w=l.createElement("ol");w.className="linenums";d=Math.max(0,d-1|0)||0;for(var p=0,r=c.length;p<r;++p)m=c[p],m.className="L"+(p+d)%10,m.firstChild||m.appendChild(l.createTextNode("\u00a0")),w.appendChild(m);a.appendChild(w)}function t(a,d){for(var f=d.length;0<=--f;){var b=d[f];I.hasOwnProperty(b)?E.console&&console.warn("cannot override language handler %s",b):I[b]=a}}function K(a,d){a&&I.hasOwnProperty(a)||(a=/^\s*</.test(d)?
"default-markup":"default-code");return I[a]}function M(a){var d=a.j;try{var f=U(a.h,a.l),b=f.a;a.a=b;a.c=f.c;a.i=0;K(d,b)(a);var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent),v=v&&8>=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e<p;)c[e]!==c[e+2]?(c[r++]=c[e++],c[r++]=c[e++]):e+=2;p=r;for(e=r=0;e<p;){for(var t=c[e],z=c[e+1],q=e+2;q+2<=p&&c[q+1]===z;)q+=2;c[r++]=t;c[r++]=z;e=q}c.length=r;var g=a.h;a="";g&&(a=g.style.display,g.style.display="none");
try{for(;b<m;){var h=l[b+2]||n,k=c[w+2]||n,q=Math.min(h,k),B=l[b+1],D;if(1!==B.nodeType&&(D=A.substring(f,q))){v&&(D=D.replace(d,"\r"));B.nodeValue=D;var N=B.ownerDocument,u=N.createElement("span");u.className=c[w+1];var y=B.parentNode;y.replaceChild(u,B);u.appendChild(B);f<h&&(l[b+1]=B=N.createTextNode(A.substring(q,h)),y.insertBefore(B,u.nextSibling))}f=q;f>=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"],
F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],
O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],F=[F,"debugger,eval,export,function,get,instanceof,null,set,undefined,var,with,Infinity,NaN"],
Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,
W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",
/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],
["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H,hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,
verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),
["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);
var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="<pre>"+a+"</pre>";b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,
g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p<t.length&&c.now()<b;p++){for(var d=t[p],l=g,m=d;m=m.previousSibling;){var n=m.nodeType,u=(7===n||8===n)&&m.nodeValue;if(u?!/^\??prettify\b/.test(u):3!==n||/\S/.test(m.nodeValue))break;if(u){l={};u.replace(/\b(\w+)=([\w:.%+-]+)/g,function(a,b,c){l[b]=c});break}}m=d.className;if((l!==g||r.test(m))&&!e.test(m)){n=!1;for(u=d.parentNode;u;u=u.parentNode)if(q.test(u.tagName)&&
u.className&&r.test(u.className)){n=!0;break}if(!n){d.className+=" prettyprinted";n=l.lang;if(!n){var n=m.match(w),C;!n&&(C=V(d))&&z.test(C.tagName)&&(n=C.className.match(w));n&&(n=n[1])}if(y.test(d.tagName))u=1;else var u=d.currentStyle,x=v.defaultView,u=(u=u?u.whiteSpace:x&&x.getComputedStyle?x.getComputedStyle(d,null).getPropertyValue("white-space"):0)&&"pre"===u.substring(0,3);x=l.linenums;(x="true"===x||+x)||(x=(x=m.match(/\blinenums\b(?::(\d+))?/))?x[1]&&x[1].length?+x[1]:!0:!1);x&&L(d,x,u);
M({j:n,h:d,m:x,l:u,a:null,i:null,c:null,g:null})}}}p<t.length?E.setTimeout(f,250):"function"===typeof a&&a()}for(var b=d||document.body,v=b.ownerDocument||document,b=[b.getElementsByTagName("pre"),b.getElementsByTagName("code"),b.getElementsByTagName("xmp")],t=[],n=0;n<b.length;++n)for(var l=0,m=b[n].length;l<m;++l)t.push(b[n][l]);var b=null,c=Date;c.now||(c={now:function(){return+new Date}});var p=0,w=/\blang(?:uage)?-([\w.]+)(?!\S)/,r=/\bprettyprint\b/,e=/\bprettyprinted\b/,y=/pre|xmp/i,z=/^code$/i,
q=/^(?:pre|code|xmp)$/i,g={};f()}},H=E.define;"function"===typeof H&&H.amd&&H("google-code-prettify",[],function(){return Y})})();}()
================================================
FILE: __static/app/src/model/BookmarkModel.js
================================================
var Database = require('model/Database.js');
module.exports = new function () {
var BM = this;
var DB;
var schemaBuilder = Database.schemaBuilder;
var Tables;
var DBEventType = Database.eventType;
var win = $(window);
var curUserName;
var curUser;
schemaBuilder
.createTable('User')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('create', lf.Type.DATE_TIME)
.addColumn('lastSync', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('RepoGroup')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('repoIds', lf.Type.OBJECT)
.addColumn('order', lf.Type.INTEGER)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('Repo')
.addColumn('id', lf.Type.INTEGER)
.addColumn('userId', lf.Type.INTEGER)
.addColumn('originRepoId', lf.Type.STRING)
.addColumn('data', lf.Type.OBJECT)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
schemaBuilder
.createTable('RepoTag')
.addColumn('id', lf.Type.INTEGER)
.addColumn('name', lf.Type.STRING)
.addColumn('color', lf.Type.STRING)
.addColumn('repoIds', lf.Type.OBJECT)
.addColumn('create', lf.Type.DATE_TIME)
.addPrimaryKey(['id'], true);
win.on('DB:ready', function (ev,db) {
DB = db;
Tables = {
User: DB.getSchema().table('User'),
RepoGroup: DB.getSchema().table('RepoGroup'),
RepoTag: DB.getSchema().table('RepoTag'),
Repo: DB.getSchema().table('Repo')
};
BM.RepoTagTable.addDefaultTags();
});
this.UserTable = new function () {
this.add = function (name, callback) {
if (!name) {
return;
}
var row = Tables.User.createRow({
'name': name,
'create': new Date(),
'lastSync': new Date()
});
DB.select().from(Tables.User).where(Tables.User.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.User).values([row])
.exec().then(function (res) {
curUser = res[0];
callback && callback();
win.trigger('DB:Table.User.onchange', {type: DBEventType.C});
});
});
}
this.updateSync = function (name) {
DB.update(Tables.User).set(Tables.User.lastSync, new Date()).where(Tables.User.name.eq(name))
.exec().then(function () {
win.trigger('DB:Table.User.onchange', {type: DBEventType.U});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.Repo)
.where(Tables.Repo.userId.eq(id))
.exec().then(function () {
DB.delete()
.from(Tables.User)
.where(Tables.User.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.User.onchange', {type: DBEventType.D});
});
});
}
this.getAll = function (callback) {
DB.select()
.from(Tables.User)
.orderBy(Tables.User.create, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.RepoGroupTable = new function () {
this.add = function (name) {
if (!name) {
return;
}
var row = Tables.RepoGroup.createRow({
'name': name,
'repoIds': [],
'order': 0,
'create': new Date()
});
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.RepoGroup).values([row])
.exec().then(function (res) {
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.C});
});
});
}
this.addRopoId = function (id, repoId) {
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = /string/i.test(typeof rows[0].repoIds)?
(rows[0].repoIds.length ? rows[0].repoIds.split(',') : []):
rows[0].repoIds;
if (ids.indexOf(repoId) == -1) {
ids.push(repoId);
}
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.repoIds, ids).where(Tables.RepoGroup.id.eq(id))
.exec();
}
});
}
this.removeRopoId = function (id, repoId) {
DB.select().from(Tables.RepoGroup).where(Tables.RepoGroup.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = /string/i.test(typeof rows[0].repoIds)?
(rows[0].repoIds.length ? rows[0].repoIds.split(',') : []):
rows[0].repoIds,
idx = ids.indexOf(repoId);
if (idx != -1) {
ids.splice(idx, 1);
}
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.repoIds, ids).where(Tables.RepoGroup.id.eq(id))
.exec();
}
});
}
this.updateName = function (id, name) {
DB.update(Tables.RepoGroup).set(Tables.RepoGroup.name, name).where(Tables.RepoGroup.id.eq(id))
.exec().then(function () {
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.U, fields: 'name'});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.RepoGroup)
.where(Tables.RepoGroup.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.D});
});
}
this.deleteAll = function (callback) {
DB.delete()
.from(Tables.RepoGroup)
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.D});
});
}
this.addAll = function (data, callback) {
if(data){
this.deleteAll(function(){
var rows = [];
data.forEach(function(key){
rows.push(Tables.RepoGroup.createRow({
'name': key.name,
'repoIds': key.repoIds,
'order': key.order,
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoGroup).values(rows)
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.RepoGroup.onchange', {type: DBEventType.C});
});
});
}
}
this.getAll = function (callback) {
DB.select()
.from(Tables.RepoGroup)
.orderBy(Tables.RepoGroup.create, lf.Order.DESC)
.exec().then(function (rows) {
callback && callback(rows);
});
}
};
this.RepoTagTable = new function () {
this.addDefaultTags = function(callback){
var tags = [
{
name: 'Red',
color: '#ff5f5f'
},
{
name: 'Orange',
color: '#fba45b'
},
{
name: 'Yellow',
color: '#f6cc67'
},
{
name: 'Green',
color: '#60cb68'
},
{
name: 'Blue',
color: '#33baef'
},
{
name: 'Purple',
color: '#d38adb'
},
{
name: 'Gray',
color: '#a4a4a7'
}
];
DB.select().from(Tables.RepoTag)
.exec().then(function (rows) {
if(!rows.length){
var trows = [];
tags.forEach(function(key){
trows.push(Tables.RepoTag.createRow({
'name': key.name,
'color': key.color,
'repoIds': [],
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoTag).values(trows)
.exec().then(function () {
callback && callback();
});
}else{
callback && callback();
}
});
}
this.add = function (name,color) {
if (!name || !color) {
return;
}
var row = Tables.RepoTag.createRow({
'name': name,
'color': color,
'repoIds': [],
'create': new Date()
});
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.name.eq(name))
.exec().then(function (rows) {
!rows.length && DB.insertOrReplace().into(Tables.RepoTag).values([row])
.exec().then(function () {
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.C});
});
});
}
this.addRopoId = function (id, repoId,callback) {
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = rows[0].repoIds;
if (ids.indexOf(repoId) == -1) {
ids.push(repoId);
}
DB.update(Tables.RepoTag).set(Tables.RepoTag.repoIds, ids).where(Tables.RepoTag.id.eq(id))
.exec().then(function(){
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fileds: ['repoIds']});
});
}
});
}
this.removeRopoId = function (id, repoId,callback) {
DB.select().from(Tables.RepoTag).where(Tables.RepoTag.id.eq(id))
.exec().then(function (rows) {
if (rows && rows[0]) {
var ids = rows[0].repoIds,
idx = ids.indexOf(repoId);
if (idx != -1) {
ids.splice(idx, 1);
}
DB.update(Tables.RepoTag).set(Tables.RepoTag.repoIds, ids).where(Tables.RepoTag.id.eq(id))
.exec().then(function(){
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fileds: ['repoIds']});
});
}
});
}
this.updateName = function (id, name) {
DB.update(Tables.RepoTag).set(Tables.RepoTag.name, name).where(Tables.RepoTag.id.eq(id))
.exec().then(function () {
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.U, fields: 'name'});
});
}
this.delete = function (id, callback) {
DB.delete()
.from(Tables.RepoTag)
.where(Tables.RepoTag.id.eq(id))
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.D});
});
}
this.deleteAll = function (callback) {
DB.delete()
.from(Tables.RepoTag)
.exec().then(function (res) {
callback && callback(res);
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.D});
});
}
this.addAll = function (data, callback) {
if(data){
this.deleteAll(function(){
var rows = [];
data.forEach(function(key){
rows.push(Tables.RepoTag.createRow({
'name': key.name,
'color': key.color,
'repoIds': key.repoIds,
'create': new Date()
}));
});
DB.insertOrReplace().into(Tables.RepoTag).values(rows)
.exec().then(function () {
callback && callback();
win.trigger('DB:Table.RepoTag.onchange', {type: DBEventType.C});
});
});
}
}
this.getAll = function (callback) {
DB.select()
.from(Tables
gitextract_0hg9fq90/ ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── __static/ │ ├── app/ │ │ ├── cache.manifest │ │ ├── ddms_frame_callback.html │ │ ├── html/ │ │ │ ├── bookmark.html │ │ │ ├── components.html │ │ │ ├── donate.html │ │ │ ├── main.html │ │ │ ├── scripts.html │ │ │ ├── sourcecode.html │ │ │ └── styles.html │ │ ├── index.html │ │ ├── resources/ │ │ │ ├── css/ │ │ │ │ ├── prettify.css │ │ │ │ └── style.css │ │ │ └── fonts/ │ │ │ └── FontAwesome.otf │ │ ├── scss/ │ │ │ ├── _animate.scss │ │ │ ├── _bookmark.scss │ │ │ ├── _components.scss │ │ │ ├── _donate.scss │ │ │ ├── _main.scss │ │ │ ├── _sourcecode.scss │ │ │ ├── _util.scss │ │ │ └── style.scss │ │ ├── src/ │ │ │ ├── App.js │ │ │ ├── AppBundle.js │ │ │ ├── Util.js │ │ │ ├── lib/ │ │ │ │ ├── all.js │ │ │ │ ├── fastclick.js │ │ │ │ ├── jquery.highlight.js │ │ │ │ └── prettify.js │ │ │ ├── model/ │ │ │ │ ├── BookmarkModel.js │ │ │ │ ├── DDMSModel.js │ │ │ │ ├── Database.js │ │ │ │ ├── Model.js │ │ │ │ ├── SearchcodeModel.js │ │ │ │ └── YoudaoTranslateModel.js │ │ │ └── view/ │ │ │ ├── BookmarkView.js │ │ │ └── View.js │ │ └── sw.js │ └── data/ │ └── repos.json ├── app/ │ ├── ddms_frame_callback.html │ ├── index.html │ └── opensearch.xml ├── assets/ │ ├── codelf_logo.psd │ └── fonts/ │ └── FontAwesome.otf ├── babel.config.js ├── build-system/ │ ├── build.js │ ├── clean.js │ ├── default.js │ ├── dist.js │ ├── lint.js │ ├── server.js │ └── util.js ├── dist/ │ ├── css/ │ │ ├── app.css │ │ ├── app.f1364fce.css │ │ ├── lib.b0f67b98.css │ │ ├── lib.css │ │ └── themes/ │ │ └── default/ │ │ └── assets/ │ │ └── fonts/ │ │ └── icons.otf │ ├── ddms_frame_callback.html │ ├── fonts/ │ │ └── FontAwesome.otf │ ├── index.html │ ├── js/ │ │ ├── app.792fa086.js │ │ ├── app.js │ │ ├── lib.5e430a5b.js │ │ └── lib.js │ ├── opensearch.xml │ └── sw.js ├── gulpfile.js ├── lib.config.js ├── package.json ├── src/ │ ├── App.js │ ├── components/ │ │ ├── Bookmark.js │ │ ├── Copybook.js │ │ ├── Donate.js │ │ ├── Doodle.js │ │ ├── Loading.js │ │ ├── SearchBar.js │ │ ├── SearchError.js │ │ ├── SourceCode.js │ │ ├── Suggestion.js │ │ ├── TitleLogo.js │ │ ├── VariableItem.js │ │ ├── VariableList.js │ │ └── hooks/ │ │ └── useCodeHighlighting.js │ ├── constants/ │ │ └── Configs.js │ ├── containers/ │ │ ├── CopybookContainer.js │ │ ├── MainContainer.js │ │ ├── NavBarContainer.js │ │ └── NoticeContainer.js │ ├── models/ │ │ ├── AppModel.js │ │ ├── BaseModel.js │ │ ├── CopybookModel.js │ │ ├── DDMSModel.js │ │ ├── ErrorModel.js │ │ ├── SearchCodeModel.js │ │ ├── Store.js │ │ └── metadata/ │ │ ├── BaiduTranslateData.js │ │ ├── BingTranslateData.js │ │ ├── BookmarkData.js │ │ ├── GitHubData.js │ │ └── YoudaoTranslateData.js │ ├── sw.js │ ├── utils/ │ │ ├── FormHandler.js │ │ ├── HashHandler.js │ │ ├── JSONP.js │ │ ├── LocalStorage.js │ │ ├── Navigator.js │ │ ├── Param.js │ │ ├── Tools.js │ │ └── TranslateHandler.js │ └── vendors/ │ ├── prettify.css │ └── prettify.js ├── styles/ │ ├── _animation.scss │ ├── _common.scss │ ├── _components.scss │ ├── _constants.scss │ ├── _containers.scss │ ├── _copybook-container.scss │ ├── _donate.scss │ ├── _doodle.scss │ ├── _logo.scss │ ├── _main-container.scss │ ├── _nav-bar-container.scss │ ├── _notice-container.scss │ ├── _source-code.scss │ ├── _utils.scss │ └── app.scss └── webpack.config.js
SYMBOL INDEX (1908 symbols across 54 files)
FILE: __static/app/src/AppBundle.js
function __webpack_require__ (line 6) | function __webpack_require__(moduleId) {
function getLocalValue (line 101) | function getLocalValue(id) {
function setLocalValue (line 109) | function setLocalValue(id, val) {
function removeLocalValue (line 128) | function removeLocalValue(id) {
function getByURL (line 155) | function getByURL(url) {
function get (line 163) | function get() {
function set (line 167) | function set(hash) {
function appendFrame (line 184) | function appendFrame(frame) {
function removeFrame (line 188) | function removeFrame(frame) {
function getFrame (line 192) | function getFrame(src, name) {
function protocol (line 207) | function protocol(command, single, noframe) {
function getForm (line 244) | function getForm(method) {
function rd (line 316) | function rd(_array) {
function bindEvent (line 494) | function bindEvent() {
function init (line 531) | function init() {
function showSourceCode (line 545) | function showSourceCode() {
function showConfirm (line 560) | function showConfirm(msg,callback){
function hideConfirm (line 568) | function hideConfirm(){
function onLocationHashChanged (line 579) | function onLocationHashChanged(e) {
function onSelectLang (line 585) | function onSelectLang() {
function onResetLang (line 594) | function onResetLang() {
function onSearch (line 600) | function onSearch(val) {
function beforeDoSearch (line 659) | function beforeDoSearch() {
function saveKeyWordRegs (line 669) | function saveKeyWordRegs() {
function doSearch (line 676) | function doSearch() {
function renderTitle (line 690) | function renderTitle(black) {
function formatPropertyName (line 694) | function formatPropertyName(name) {
function storeRelatedProperty (line 699) | function storeRelatedProperty(name, res) {
function getRelatedProperty (line 720) | function getRelatedProperty(name) {
function renderDark (line 725) | function renderDark() {
function renderLangMunu (line 730) | function renderLangMunu() {
function renderSearchResult (line 742) | function renderSearchResult(data) {
function renderSearchBtn (line 802) | function renderSearchBtn(str) {
function renderSearchResultHeader (line 807) | function renderSearchResultHeader(cls) {
function renderVariableMenu (line 811) | function renderVariableMenu() {
function renderTooltips (line 839) | function renderTooltips() {
function renderHistory (line 853) | function renderHistory() {
function renderSourceCode (line 880) | function renderSourceCode(data) {
function renderSourceCodeByWorker (line 895) | function renderSourceCodeByWorker(callback){
function renderHighlightVariableKeyword (line 911) | function renderHighlightVariableKeyword(){
function renderRelatedProperty (line 926) | function renderRelatedProperty(name) {
function renderDonate (line 951) | function renderDonate(isZh) {
function renderNotice (line 957) | function renderNotice() {
function renderAnalytics (line 967) | function renderAnalytics(param) {
function renderBaiduShare (line 973) | function renderBaiduShare() {
function beforeRemoveVariableMenus (line 994) | function beforeRemoveVariableMenus() {
function genLangQuery (line 1050) | function genLangQuery(val) {
function fn (line 1581) | function fn() {
function concat (line 1653) | function concat(data) {
function concat (line 1685) | function concat(data) {
function saveKeyWords (line 1791) | function saveKeyWords(val) {
function bindEvent (line 1907) | function bindEvent() {
function init (line 1965) | function init() {
function showBookmark (line 1970) | function showBookmark() {
function hideBookmark (line 1976) | function hideBookmark() {
function showBookmarkUserModal (line 1980) | function showBookmarkUserModal() {
function hideBookmarkUserModal (line 1985) | function hideBookmarkUserModal() {
function showBookmarkGroupModal (line 1989) | function showBookmarkGroupModal(id,name) {
function hideBookmarkGroupModal (line 1999) | function hideBookmarkGroupModal() {
function showBookmarkSyncModal (line 2003) | function showBookmarkSyncModal() {
function hideBookmarkSyncModal (line 2009) | function hideBookmarkSyncModal() {
function getBookmarkRopeHtm (line 2013) | function getBookmarkRopeHtm(repo, allGroupHtm, allTagHtm) {
function renderBookmarkTip (line 2026) | function renderBookmarkTip(dispose) {
function renderBookmarkHeader (line 2039) | function renderBookmarkHeader(cls){
function renderBookmarkGroup (line 2043) | function renderBookmarkGroup(data) {
function toggleLastBookmarkGroup (line 2113) | function toggleLastBookmarkGroup(show) {
function renderBookmarkGroupByTag (line 2117) | function renderBookmarkGroupByTag(){
function renderBookmarkTagMenu (line 2136) | function renderBookmarkTagMenu(htm){
function renderBookmarkRepoGroupMenu (line 2142) | function renderBookmarkRepoGroupMenu(){
function renderBookmarkRepoTagMenu (line 2150) | function renderBookmarkRepoTagMenu(){
function renderBookmarkRepoTitle (line 2158) | function renderBookmarkRepoTitle(){
function renderBookmarkRepoTagDots (line 2169) | function renderBookmarkRepoTagDots(e){
function renderBookmarkSyncGroupsAndTags (line 2189) | function renderBookmarkSyncGroupsAndTags(syncId) {
function renderBookmarkSearchRepos (line 2197) | function renderBookmarkSearchRepos(){
function renderBookmarkUsers (line 2211) | function renderBookmarkUsers(data) {
function beforeAddBookmarkUser (line 2222) | function beforeAddBookmarkUser(el) {
function beforeEditBookmarkGroup (line 2239) | function beforeEditBookmarkGroup() {
function beforeDelBookmarkGroup (line 2255) | function beforeDelBookmarkGroup() {
function beforeAddRepoToGroup (line 2264) | function beforeAddRepoToGroup() {
function beforeAddRepoToTag (line 2305) | function beforeAddRepoToTag() {
function beforeSyncUser (line 2317) | function beforeSyncUser(name) {
function beforeDelUser (line 2327) | function beforeDelUser() {
function beforeDownloadBookmarkGroupsAndTags (line 2339) | function beforeDownloadBookmarkGroupsAndTags(){
function beforeUploadBookmarkGroupsAndTags (line 2356) | function beforeUploadBookmarkGroupsAndTags(){
function updateBookmarkTagsData (line 2380) | function updateBookmarkTagsData(){
function updateBookmarkGroupsData (line 2385) | function updateBookmarkGroupsData(){
FILE: __static/app/src/Util.js
function getLocalValue (line 32) | function getLocalValue(id) {
function setLocalValue (line 40) | function setLocalValue(id, val) {
function removeLocalValue (line 59) | function removeLocalValue(id) {
function getByURL (line 86) | function getByURL(url) {
function get (line 94) | function get() {
function set (line 98) | function set(hash) {
function appendFrame (line 115) | function appendFrame(frame) {
function removeFrame (line 119) | function removeFrame(frame) {
function getFrame (line 123) | function getFrame(src, name) {
function protocol (line 138) | function protocol(command, single, noframe) {
function getForm (line 175) | function getForm(method) {
function rd (line 247) | function rd(_array) {
FILE: __static/app/src/lib/fastclick.js
function FastClick (line 23) | function FastClick(layer, options) {
FILE: __static/app/src/lib/prettify.js
function T (line 18) | function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var...
function U (line 22) | function U(a,d){function f(a){var c=a.nodeType;if(1==c){if(!b.test(a.cla...
function J (line 23) | function J(a,d,f,b,v){f&&(a={h:a,l:1,j:null,m:null,a:f,c:null,i:d,g:null...
function V (line 23) | function V(a){for(var d=void 0,f=a.firstChild;f;f=f.nextSibling)var b=f....
function G (line 23) | function G(a,d){function f(a){for(var l=a.i,m=a.h,c=[l,"pln"],p=0,w=a.a....
function y (line 25) | function y(a){var d=[],f=[];a.tripleQuotedStrings?d.push(["str",/^(?:\'\...
function L (line 29) | function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.clas...
function t (line 31) | function t(a,d){for(var f=d.length;0<=--f;){var b=d[f];I.hasOwnProperty(...
function K (line 31) | function K(a,d){a&&I.hasOwnProperty(a)||(a=/^\s*</.test(d)?
function M (line 32) | function M(a){var d=a.j;try{var f=U(a.h,a.l),b=f.a;a.a=b;a.c=f.c;a.i=0;K...
function f (line 43) | function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity...
FILE: __static/app/src/model/BookmarkModel.js
function fn (line 391) | function fn() {
function concat (line 463) | function concat(data) {
function concat (line 495) | function concat(data) {
FILE: __static/app/src/model/DDMSModel.js
function saveKeyWords (line 18) | function saveKeyWords(val) {
FILE: __static/app/src/model/SearchcodeModel.js
function genLangQuery (line 46) | function genLangQuery(val) {
FILE: __static/app/src/view/BookmarkView.js
function bindEvent (line 34) | function bindEvent() {
function init (line 92) | function init() {
function showBookmark (line 97) | function showBookmark() {
function hideBookmark (line 103) | function hideBookmark() {
function showBookmarkUserModal (line 107) | function showBookmarkUserModal() {
function hideBookmarkUserModal (line 112) | function hideBookmarkUserModal() {
function showBookmarkGroupModal (line 116) | function showBookmarkGroupModal(id,name) {
function hideBookmarkGroupModal (line 126) | function hideBookmarkGroupModal() {
function showBookmarkSyncModal (line 130) | function showBookmarkSyncModal() {
function hideBookmarkSyncModal (line 136) | function hideBookmarkSyncModal() {
function getBookmarkRopeHtm (line 140) | function getBookmarkRopeHtm(repo, allGroupHtm, allTagHtm) {
function renderBookmarkTip (line 153) | function renderBookmarkTip(dispose) {
function renderBookmarkHeader (line 166) | function renderBookmarkHeader(cls){
function renderBookmarkGroup (line 170) | function renderBookmarkGroup(data) {
function toggleLastBookmarkGroup (line 240) | function toggleLastBookmarkGroup(show) {
function renderBookmarkGroupByTag (line 244) | function renderBookmarkGroupByTag(){
function renderBookmarkTagMenu (line 263) | function renderBookmarkTagMenu(htm){
function renderBookmarkRepoGroupMenu (line 269) | function renderBookmarkRepoGroupMenu(){
function renderBookmarkRepoTagMenu (line 277) | function renderBookmarkRepoTagMenu(){
function renderBookmarkRepoTitle (line 285) | function renderBookmarkRepoTitle(){
function renderBookmarkRepoTagDots (line 296) | function renderBookmarkRepoTagDots(e){
function renderBookmarkSyncGroupsAndTags (line 316) | function renderBookmarkSyncGroupsAndTags(syncId) {
function renderBookmarkSearchRepos (line 324) | function renderBookmarkSearchRepos(){
function renderBookmarkUsers (line 338) | function renderBookmarkUsers(data) {
function beforeAddBookmarkUser (line 349) | function beforeAddBookmarkUser(el) {
function beforeEditBookmarkGroup (line 366) | function beforeEditBookmarkGroup() {
function beforeDelBookmarkGroup (line 382) | function beforeDelBookmarkGroup() {
function beforeAddRepoToGroup (line 391) | function beforeAddRepoToGroup() {
function beforeAddRepoToTag (line 432) | function beforeAddRepoToTag() {
function beforeSyncUser (line 444) | function beforeSyncUser(name) {
function beforeDelUser (line 454) | function beforeDelUser() {
function beforeDownloadBookmarkGroupsAndTags (line 466) | function beforeDownloadBookmarkGroupsAndTags(){
function beforeUploadBookmarkGroupsAndTags (line 483) | function beforeUploadBookmarkGroupsAndTags(){
function updateBookmarkTagsData (line 507) | function updateBookmarkTagsData(){
function updateBookmarkGroupsData (line 512) | function updateBookmarkGroupsData(){
FILE: __static/app/src/view/View.js
function bindEvent (line 48) | function bindEvent() {
function init (line 85) | function init() {
function showSourceCode (line 99) | function showSourceCode() {
function showConfirm (line 114) | function showConfirm(msg,callback){
function hideConfirm (line 122) | function hideConfirm(){
function onLocationHashChanged (line 133) | function onLocationHashChanged(e) {
function onSelectLang (line 139) | function onSelectLang() {
function onResetLang (line 148) | function onResetLang() {
function onSearch (line 154) | function onSearch(val) {
function beforeDoSearch (line 213) | function beforeDoSearch() {
function saveKeyWordRegs (line 223) | function saveKeyWordRegs() {
function doSearch (line 230) | function doSearch() {
function renderTitle (line 244) | function renderTitle(black) {
function formatPropertyName (line 248) | function formatPropertyName(name) {
function storeRelatedProperty (line 253) | function storeRelatedProperty(name, res) {
function getRelatedProperty (line 274) | function getRelatedProperty(name) {
function renderDark (line 279) | function renderDark() {
function renderLangMunu (line 284) | function renderLangMunu() {
function renderSearchResult (line 296) | function renderSearchResult(data) {
function renderSearchBtn (line 356) | function renderSearchBtn(str) {
function renderSearchResultHeader (line 361) | function renderSearchResultHeader(cls) {
function renderVariableMenu (line 365) | function renderVariableMenu() {
function renderTooltips (line 393) | function renderTooltips() {
function renderHistory (line 407) | function renderHistory() {
function renderSourceCode (line 434) | function renderSourceCode(data) {
function renderSourceCodeByWorker (line 449) | function renderSourceCodeByWorker(callback){
function renderHighlightVariableKeyword (line 465) | function renderHighlightVariableKeyword(){
function renderRelatedProperty (line 480) | function renderRelatedProperty(name) {
function renderDonate (line 505) | function renderDonate(isZh) {
function renderNotice (line 511) | function renderNotice() {
function renderAnalytics (line 521) | function renderAnalytics(param) {
function renderBaiduShare (line 527) | function renderBaiduShare() {
function beforeRemoveVariableMenus (line 548) | function beforeRemoveVariableMenus() {
FILE: build-system/default.js
function watch (line 6) | function watch(files, task) {
FILE: dist/js/app.792fa086.js
function _typeof (line 1) | function _typeof(e){"@babel/helpers - typeof";return _typeof="function"=...
function s (line 1) | function s(e){if(t[e])return t[e].exports;var n=t[e]={i:e,l:!1,exports:{...
function t (line 1) | function t(){return e.exports=t=Object.assign||function(o){for(var t=1,a...
function l (line 1) | function l(e){return(l="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function r (line 1) | function r(){for(var a=[],t=0,s;t<arguments.length;t++)if(s=arguments[t]...
function o (line 1) | function o(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enume...
function t (line 1) | function t(n){return r.exports=t=Object.setPrototypeOf?Object.getPrototy...
function r (line 1) | function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function r (line 1) | function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function r (line 1) | function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function t (line 1) | function t(n){return r.exports="function"==typeof Symbol&&"symbol"==_typ...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function d (line 1) | function d(e){return(d="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function p (line 1) | function p(e){return(p="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function a (line 1) | function a(e){return(a="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function s (line 1) | function s(e){return(s="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(n){var t=this.__data__=new s(n);this.size=t.size}
function n (line 1) | function n(o){var t=-1,a=null==o?0:o.length;for(this.clear();++t<a;){var...
function o (line 1) | function o(e){return(o="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(r){var t=-1,o=null==r?0:r.length;for(this.__data__=new a;++t<...
function l (line 1) | function l(e){return(l="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function l (line 1) | function l(e){return(l="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function o (line 1) | function o(){}
function n (line 1) | function n(d,h,g){var n=Array(g),a=8*g-h-1,m=(1<<a)-1,c=m>>1,s=23===h?O(...
function b (line 1) | function b(p,t,e){var n=8*e-t-1,o=(1<<n)-1,i=o>>1,a=n-7,d=e-1,f=p[d--],h...
function N (line 1) | function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}
function R (line 1) | function R(e){return[255&e]}
function T (line 1) | function T(e){return[255&e,255&e>>8]}
function L (line 1) | function L(e){return[255&e,255&e>>8,255&e>>16,255&e>>24]}
function M (line 1) | function M(e){return n(e,52,8)}
function F (line 1) | function F(e){return n(e,23,4)}
function D (line 1) | function D(r,t,e){d(r.prototype,t,{get:function get(){return this[e]}})}
function B (line 1) | function B(s,t,e,n){var r=p(+e);if(r+t>s[P])throw x("Wrong index!");var ...
function W (line 1) | function W(d,t,e,n,r,o){var i=p(+e);if(i+t>d[P])throw x("Wrong index!");...
function r (line 1) | function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(o){var t=-1,a=null==o?0:o.length;for(this.clear();++t<a;){var...
function l (line 1) | function l(e){return(l="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this...
function n (line 1) | function n(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!...
function s (line 1) | function s(l,t){if("function"!=typeof l||null!=t&&"function"!=typeof t)t...
function te (line 1) | function te(e){return e&&"[object Function]"==={}.toString.call(e)}
function ne (line 1) | function ne(r,t){if(1!==r.nodeType)return[];var e=r.ownerDocument.defaul...
function re (line 1) | function re(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}
function oe (line 1) | function oe(a){if(!a)return document.body;switch(a.nodeName){case"HTML":...
function c (line 1) | function c(e){return e&&e.referenceNode?e.referenceNode:e}
function a (line 1) | function a(e){return 11===e?r:10===e?o:r||o}
function ae (line 1) | function ae(o){if(!o)return document.documentElement;for(var s=a(10)?doc...
function p (line 1) | function p(e){return null===e.parentNode?e:p(e.parentNode)}
function se (line 1) | function se(l,t){if(!(l&&l.nodeType&&t&&t.nodeType))return document.docu...
function s (line 1) | function s(a){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function le (line 1) | function le(a,t){var e=2<arguments.length&&void 0!==arguments[2]&&argume...
function i (line 1) | function i(o,t){var e="x"===t?"Left":"Top",n="Left"===e?"Right":"Bottom"...
function d (line 1) | function d(o,t,e,n){return Math.max(t["offset"+o],t["scroll"+o],e["clien...
function g (line 1) | function g(o){var t=o.body,e=o.documentElement,n=a(10)&&getComputedStyle...
function ie (line 1) | function ie(e){return _({},e,{right:e.left+e.width,bottom:e.top+e.height})}
function x (line 1) | function x(p){var t={};try{if(a(10)){t=p.getBoundingClientRect();var d=s...
function m (line 1) | function m(p,t){var e=2<arguments.length&&void 0!==arguments[2]&&argumen...
function u (line 1) | function u(l){var t=1<arguments.length&&void 0!==arguments[1]&&arguments...
function y (line 1) | function y(r){var t=r.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fi...
function b (line 1) | function b(n){if(!n||!n.parentElement||a())return document.documentEleme...
function h (line 1) | function h(s,t,e,x){var r=4<arguments.length&&void 0!==arguments[4]&&arg...
function v (line 1) | function v(e){return e.width*e.height}
function E (line 1) | function E(p,t,d,e,n){var r=5<arguments.length&&void 0!==arguments[5]?ar...
function k (line 1) | function k(a,t,e){var n=3<arguments.length&&void 0!==arguments[3]?argume...
function P (line 1) | function P(o){var t=o.ownerDocument.defaultView.getComputedStyle(o),e=pa...
function C (line 1) | function C(n){var r={left:"right",right:"left",bottom:"top",top:"bottom"...
function A (line 1) | function A(l,t,e){e=e.split("-")[0];var p=P(l),r={width:p.width,height:p...
function I (line 1) | function I(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}
function N (line 1) | function N(r,o,t){return(void 0===t?r:r.slice(0,function(o,a,e){if(Array...
function t (line 1) | function t(){if(!this.state.isDestroyed){var e={instance:this,styles:{},...
function L (line 1) | function L(n,r){return n.some(function(e){var t=e.name;return e.enabled&...
function j (line 1) | function j(a){for(var t=[!1,"ms","Webkit","Moz","O"],e=a.charAt(0).toUpp...
function R (line 1) | function R(){return this.state.isDestroyed=!0,L(this.modifiers,"applySty...
function T (line 1) | function T(n){var t=n.ownerDocument;return t?t.defaultView:window}
function M (line 1) | function M(a,t,e,n){e.updateBound=n,T(a).addEventListener("resize",e.upd...
function F (line 1) | function F(){this.state.eventsEnabled||(this.state=M(this.reference,this...
function D (line 1) | function D(){var n,r;this.state.eventsEnabled&&(cancelAnimationFrame(thi...
function B (line 1) | function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}
function W (line 1) | function W(o,t){Object.keys(t).forEach(function(e){var n="";-1!==["width...
function z (line 1) | function z(a,s,e){var n=I(a,function(e){return e.name===s}),t=!!n&&a.som...
function U (line 1) | function U(o){var t=1<arguments.length&&void 0!==arguments[1]&&arguments...
function V (line 1) | function V(l,p,e,t){var d=[0,0],n=-1!==["right","left"].indexOf(t),r=l.s...
function o (line 1) | function o(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enume...
function o (line 1) | function o(t,e){var n=this,r=2<arguments.length&&void 0!==arguments[2]?a...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(r){var a,s;this.promise=new r(function(e,t){if(void 0!==a||vo...
function e (line 1) | function e(n){return(e="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function l (line 1) | function l(e){return(l="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function a (line 1) | function a(e){return(a="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function s (line 1) | function s(t,e,n){return a.exports="undefined"!=typeof Reflect&&Reflect....
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function g (line 1) | function g(){g.init.call(this)}
function b (line 1) | function b(e){if("function"!=typeof e)throw new TypeError("The \"listene...
function l (line 1) | function l(e){return void 0===e._maxListeners?g.defaultMaxListeners:e._m...
function c (line 1) | function c(s,t,e,n){var r,p,d,f;if(b(e),void 0===(p=s._events)?(p=s._eve...
function p (line 1) | function p(){if(!this.fired)return this.target.removeListener(this.type,...
function f (line 1) | function f(a,t,e){var n={fired:!1,wrapFn:void 0,target:a,type:t,listener...
function d (line 1) | function d(a,t,e){var n=a._events;if(void 0===n)return[];var r=n[t];retu...
function h (line 1) | function h(r){var t=this._events;if(void 0!==t){var e=t[r];if("function"...
function y (line 1) | function y(o,t){for(var e=Array(t),n=0;n<t;++n)e[n]=o[n];return e}
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function d (line 1) | function d(a,t){var e=a[0],s=a[1],l=a[2],p=a[3];s=0|((s+=0|((l=0|((l+=0|...
function n (line 1) | function n(r){var t=[],n;for(n=0;64>n;n+=4)t[n>>2]=r.charCodeAt(n)+(r.ch...
function r (line 1) | function r(r){var t=[],n;for(n=0;64>n;n+=4)t[n>>2]=r[n]+(r[n+1]<<8)+(r[n...
function o (line 1) | function o(r){var p=r.length,s=[1732584193,-271733879,-1732584194,271733...
function i (line 1) | function i(e){var t="",o;for(o=0;4>o;o+=1)t+=l[15&e>>8*o+4]+l[15&e>>8*o]...
function a (line 1) | function a(n){var t;for(t=0;t<n.length;t+=1)n[t]=i(n[t]);return n.join("")}
function u (line 1) | function u(e){return /[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURICom...
function c (line 1) | function c(o){var t=[],n=o.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(o...
function s (line 1) | function s(){this.reset()}
function t (line 1) | function t(n,r){return 0>(n=0|n||0)?Math.max(n+r,0):Math.min(n,r)}
function _ (line 1) | function _(e){return(_="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function g (line 1) | function g(r,t,e){var a=e||{};return(a.strict?!!i(r,t):r===t)||(r&&t&&("...
function f (line 1) | function f(e){return null==e}
function p (line 1) | function p(e){return e&&"object"===_(e)&&"number"==typeof e.length&&"fun...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function e (line 1) | function e(){}
function d (line 1) | function d(d,t,e,r,i,n){var u=e+d.length,h=r.length,o=p;return void 0!==...
function e (line 1) | function e(){}
function o (line 1) | function o(e){return(o="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function t (line 1) | function t(l,t,e,n){var r=t&&t.prototype instanceof s?t:s,o=Object.creat...
function P (line 1) | function P(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(e){ret...
function s (line 1) | function s(){}
function c (line 1) | function c(){}
function e (line 1) | function e(){}
function p (line 1) | function p(n){["next","throw","return"].forEach(function(r){n[r]=functio...
function f (line 1) | function f(e){var t;this._invoke=function(r,s){function n(){return new P...
function h (line 1) | function h(a,t){var e=a.iterator[t.method];if(void 0===e){if(t.delegate=...
function g (line 1) | function g(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.f...
function b (line 1) | function b(n){var t=n.completion||{};t.type="normal",delete t.arg,n.comp...
function x (line 1) | function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(g,this),this.r...
function _ (line 1) | function _(a){if(a){var t=a[r];if(t)return t.call(a);if("function"==type...
function S (line 1) | function S(){return{value:void 0,done:!0}}
function t (line 1) | function t(e,t){return i.type="throw",i.arg=s,l.next=e,t&&(l.method="nex...
function t (line 1) | function t(n,e){return o.exports=t=Object.setPrototypeOf||function(n,t){...
function n (line 1) | function n(o){var t=-1,a=null==o?0:o.length;for(this.clear();++t<a;){var...
function r (line 1) | function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function E (line 1) | function E(e){return(E="function"==typeof Symbol&&"symbol"==n(Symbol.ite...
function k (line 1) | function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a ...
function u (line 1) | function u(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enume...
function c (line 1) | function c(r,t,e){return t&&u(r.prototype,t),e&&u(r,e),r}
function s (line 1) | function s(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enume...
function l (line 1) | function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("S...
function f (line 1) | function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:funct...
function S (line 1) | function S(r,t){return t&&("object"==n(t)||"function"==typeof t)?t:funct...
function h (line 1) | function h(n){var r=new Map;return n.forEach(function(e,t){r.set(t,e)}),r}
function v (line 1) | function v(e){return Array.isArray(e)?e:[e]}
function y (line 1) | function y(e){return"document"===e?document:"window"===e?window:function...
function a (line 1) | function a(t){k(this,a),s(this,"handlers",void 0),this.handlers=t.slice(0)}
function a (line 1) | function a(t,e){k(this,a),s(this,"handlerSets",void 0),s(this,"poolName"...
function r (line 1) | function r(t){var o=this;k(this,r),s(this,"handlers",new Map),s(this,"po...
function n (line 1) | function n(){var a=this;k(this,n),s(this,"targets",new Map),s(this,"getT...
function t (line 1) | function t(){return k(this,t),S(this,f(t).apply(this,arguments))}
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function s (line 1) | function s(){}
function o (line 1) | function o(){}
function r (line 1) | function r(r,t,e,n,o,s){if(s!==l){var a=new Error("Calling PropTypes val...
function t (line 1) | function t(){return r}
function E (line 1) | function E(e){return(E="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function e (line 1) | function e(n){if("object"===E(n)&&null!==n){var r=n.$$typeof;switch(r){c...
function k (line 1) | function k(n){return e(n)===p}
function v (line 1) | function v(e){return(v="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function e (line 1) | function e(n){return(e="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function a (line 1) | function a(e){return(a="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function d (line 1) | function d(e){return e&&e.__esModule?e:{default:e}}
function u (line 1) | function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a ...
function c (line 1) | function c(r,t){if(!r)throw new ReferenceError("this hasn't been initial...
function s (line 1) | function s(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("S...
function l (line 1) | function l(o){var a=[];return{on:function on(e){a.push(e)},off:function ...
function t (line 1) | function t(){var n,s;u(this,t);for(var d=arguments.length,o=Array(d),i=0...
function p (line 1) | function p(){var e,n;u(this,p);for(var s=arguments.length,o=Array(s),i=0...
function l (line 1) | function l(r,t){return 2==t?function(t,e){return r(t,e)}:function(t){ret...
function p (line 1) | function p(r){for(var t=r?r.length:0,o=Array(t);t--;)o[t]=r[t];return o}
function u (line 1) | function u(a,t){return function(){var e=arguments.length;if(e){for(var s...
function Q (line 1) | function Q(r,t){if(H){var e=c.iterateeRearg[r];if(e)return function(n,r)...
function B (line 1) | function B(r,t,e){if(K&&(b||!c.skipFixed[r])){var n=c.methodSpread[r],o=...
function U (line 1) | function U(r,t,e){return y&&1<e&&(x||!c.skipRearg[r])?M(t,c.methodRearg[...
function W (line 1) | function W(o,t){for(var s=-1,l=(t=T(t)).length,r=E(Object(o)),i=r;null!=...
function z (line 1) | function z(t,s){var n=c.aliasToReal[t]||t,o=c.remap[n]||n,l=Y;return fun...
function a (line 1) | function a(a,t){return function(){var e=arguments.length;if(!e)return a(...
function i (line 1) | function i(r,t,e){var l=c.aliasToReal[r]||r,i=t,n=F[l],s;return n?i=n(t)...
function n (line 1) | function n(e){if(a(e)&&!i(e)&&!(e instanceof l)){if(e instanceof r)retur...
function s (line 1) | function s(r,t,a){var n=o(r,8,void 0,void 0,void 0,void 0,void 0,t=a?voi...
function n (line 1) | function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof(Symb...
function E (line 1) | function E(e){if(void 0===e)throw new ReferenceError("this hasn't been i...
function a (line 1) | function a(n){var o="function"==typeof Map?new Map:void 0;return(a=funct...
function k (line 1) | function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1...
function c (line 1) | function c(){return(c=k()?Reflect.construct:function(a,t,e){var n=[null]...
function S (line 1) | function S(n,t){return(S=Object.setPrototypeOf||function(n,t){return n._...
function P (line 1) | function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:funct...
function de (line 1) | function de(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enum...
function p (line 1) | function p(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enume...
function h (line 1) | function h(r,t,e){return t&&p(r.prototype,t),e&&p(r,e),r}
function d (line 1) | function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a ...
function v (line 1) | function v(e){return function(r){if(Array.isArray(r)){for(var t=0,o=Arra...
function y (line 1) | function y(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Ob...
function m (line 1) | function m(n,t){return b(n)||function(s,t){if(Symbol.iterator in Object(...
function g (line 1) | function g(){throw new TypeError("Invalid attempt to destructure non-ite...
function b (line 1) | function b(e){if(Array.isArray(e))return e}
function l (line 1) | function l(a){var s=0,t=1,l=1;return{curr:function curr(){var e=0<argume...
function i (line 1) | function i(n){n=n.trim();var o=[];if(!/^var\(/.test(n))return o;var a=l(...
function r (line 1) | function r(e){return Array.isArray(e)?e:[e]}
function o (line 1) | function o(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function p (line 1) | function p(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function s (line 1) | function s(e){return e[0]}
function c (line 1) | function c(a){for(var t=Array.from?Array.from(a):a.slice(),e=a.length;e;...
function u (line 1) | function u(n,r){return Array.prototype.flatMap?n.flatMap(r):n.reduce(fun...
function f (line 1) | function f(n){return function(t,e){for(var a=t.index(),r="",s;!t.end()&&...
function x (line 1) | function x(n,t){return f(function(e){return /[^\w@]/.test(e)})(n,t)}
function w (line 1) | function w(e){return f(function(e){return /[\s\{]/.test(e)})(e)}
function L (line 1) | function L(n,t){return f(function(e){return C(e)||"{"==e})(n,t)}
function F (line 1) | function F(o,t){for(var e=A(),r;!o.end()&&"}"!=(r=o.curr());)if(qe(r))o....
function D (line 1) | function D(o,t){for(var e=[],r;!o.end()&&"}"!=(r=o.curr());)qe(r)?o.next...
function B (line 1) | function B(s,t){for(var e=k(),l,p,c,d,u;!s.end()&&"}"!=(l=s.curr());)if(...
function W (line 1) | function W(r){var t=1<arguments.length&&void 0!==arguments[1]?arguments[...
function z (line 1) | function z(r){for(var t="",o;!r.end()&&":"!=(o=r.curr());)qe(o)||(t+=o),...
function U (line 1) | function U(s){for(var t=[],o=[],d=[],a="",f,h,g;!s.end();){if(f=s.curr()...
function V (line 1) | function V(a){var t=a.map(function(n){if("text"==n.type&&"string"==typeo...
function H (line 1) | function H(s){var t=pe(),n="@",l=!1,p;for(s.next();!s.end();){p=s.curr()...
function K (line 1) | function K(s){var t=_(),l=0,p=!0,c=[],i=[],a;for(c[l]=[];!s.end();)if(a=...
function G (line 1) | function G(r){for(var t="",o;!r.end()&&"{"!=(o=r.curr());)qe(o)||(t+=o),...
function q (line 1) | function q(r){for(var t={name:"",arguments:[]},n;!r.end();){if("("==(n=r...
function $ (line 1) | function $(a,t){for(var e=O(),r;!a.end()&&"}"!=(r=a.curr());)if(qe(r))a....
function Y (line 1) | function Y(r,t){for(var e=j();!r.end()&&";"!=r.curr();){if(e.property.le...
function Q (line 1) | function Q(a,t){for(var e=Ge(),r;!a.end()&&"}"!=(r=a.curr());){if(!e.nam...
function Z (line 1) | function Z(r,t){var e="";return r&&r.get_custom_property_value&&(e=r.get...
function J (line 1) | function J(n,r){return n.next(),(K(n)||[]).reduce(function(e,t){!functio...
function X (line 1) | function X(n,t){for(var e=l(n),r=[],o;!e.end();)if(o=e.curr(),qe(o))e.ne...
function ge (line 1) | function ge(o){for(var t=arguments.length,e=Array(1<t?t-1:0),n=1;n<t;n++...
function me (line 1) | function me(r,t,e){return Math.max(t,Math.min(e,r))}
function ye (line 1) | function ye(s,l,p){var d=0,f=s,o=function(e){return 0<e&&1>e?.1:1},i=arg...
function be (line 1) | function be(e){return /^[a-zA-Z]$/.test(e)}
function xe (line 1) | function xe(n){var t=function(){return n};return t.lazy=!0,t}
function ve (line 1) | function ve(r,t,e){return"cell-"+r+"-"+t+"-"+e}
function _e (line 1) | function _e(s){var t=m((s+"").replace(/\s+/g,"").replace(/[,,xX]+/g,"x")...
function Ee (line 1) | function Ee(a,t){if(t){var e=new Blob([a],{type:"image/svg+xml"}),n=URL....
function ke (line 1) | function ke(n){var r="xmlns=\"http://www.w3.org/2000/svg\"";return n.inc...
function Se (line 1) | function Se(r,t,e){return r*(1-e)+t*e}
function Pe (line 1) | function Pe(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[...
function we (line 1) | function we(){for(var o=arguments.length,t=Array(o),e=0;e<o;e++)t[e]=arg...
function Ce (line 1) | function Ce(a){return function(){for(var t=arguments.length,e=Array(t),n...
function Oe (line 1) | function Oe(a,s){return function(){for(var e=arguments.length,t=Array(e)...
function Ae (line 1) | function Ae(n){var o="";return n.some(function(e){var t=(e+"").trim();if...
function Ie (line 1) | function Ie(a){return function(){for(var t=arguments.length,e=Array(t),n...
function Ne (line 1) | function Ne(a){for(var t=function(s){for(var t=function(s){for(var t=s+"...
function Le (line 1) | function Le(r,t,e){return"+"===r?t+e:"-"===r?t-e:"*"===r?t*e:"/"===r?t/e...
function je (line 1) | function je(a,t){return function(){for(var e=arguments.length,n=Array(e)...
function Re (line 1) | function Re(o){return function(){for(var t=arguments.length,e=Array(t),n...
function Te (line 1) | function Te(n,t){return{type:n,value:t}}
function Me (line 1) | function Me(d,h){"function"==typeof arguments[0]&&(h=d,d={}),h||(h=funct...
function Fe (line 1) | function Fe(o,t,e){var n=rt*e;return[o*Je(n)-t*Xe(n),t*Je(n)+o*Xe(n)]}
function De (line 1) | function De(o){return xe(function(t,e){if(!e||!t)return"";var n=me(t(),0...
function Be (line 1) | function Be(r,t,e){return r[t]||(r[t]=new Ze),r[t].push(e),e}
function We (line 1) | function We(e){for(;!e.end()&&st(e.curr(1));)e.next()}
function ze (line 1) | function ze(n){for(var t=l(n),e=[],r=[],o="",s;!t.end();)s=t.curr(),"("=...
function Ue (line 1) | function Ue(r){if(!lt.length){var t=new Set;for(var e in document.head.s...
function Ve (line 1) | function Ve(n){var r=new RegExp("\\-?".concat(n,"\\-?"));return Ue(r).ma...
function He (line 1) | function He(n,t){return it[n]?"-webkit-".concat(t," ").concat(t):pt[n]?"...
function Ke (line 1) | function Ke(a,t,e){for(var n=function(n){return function(t){return(n+"")...
function re (line 1) | function re(e){return /^(even|odd)$/.test(e)}
function ie (line 1) | function ie(e){return /^\:(host|doodle)/.test(e)}
function ce (line 1) | function ce(e){return /^\:(container|parent)/.test(e)}
function se (line 1) | function se(e){return ie(e)||ce(e)}
function le (line 1) | function le(l,t){var p=new ue(l),n={};p.compose({x:1,y:1,z:1,count:1,con...
function n (line 1) | function n(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0...
function n (line 1) | function n(t){d(this,n),this.tokens=t,this.rules={},this.props={},this.k...
function o (line 1) | function o(){var e;return d(this,o),(e=function(r,t){return t&&("object"...
function _n (line 1) | function _n(e){if("string"!=typeof e&&(e=e+""),/[^a-z0-9\-#$%&'*+.^_`|~]...
function f (line 1) | function f(e){return"string"!=typeof e&&(e=e+""),e}
function n (line 1) | function n(n){var t={next:function next(){var t=n.shift();return{done:vo...
function p (line 1) | function p(n){this.map={},n instanceof p?n.forEach(function(n,t){this.ap...
function d (line 1) | function d(e){return e.bodyUsed?Promise.reject(new TypeError("Already re...
function h (line 1) | function h(r){return new Promise(function(t,e){r.onload=function(){t(r.r...
function y (line 1) | function y(r){var t=new FileReader,e=h(t);return t.readAsArrayBuffer(r),e}
function m (line 1) | function m(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLe...
function g (line 1) | function g(){return this.bodyUsed=!1,this._initBody=function(n){var o;th...
function b (line 1) | function b(a,t){var s=(t=t||{}).body,i,c;if(a instanceof b){if(a.bodyUse...
function v (line 1) | function v(n){var a=new FormData;return n.trim().split("&").forEach(func...
function S (line 1) | function S(n,t){t||(t={}),this.type="default",this.status=void 0===t.sta...
function _ (line 1) | function _(a,t){return new Promise(function(s,e){function n(){l.abort()}...
function w (line 1) | function w(n){var t=R()(n);return"string"===t||"number"===t?L[n]||n:""}
function j (line 1) | function j(r){var t=r.children,n=r.className,o=r.content,i=r.fluid,a=r.t...
function D (line 1) | function D(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a ...
function Q (line 1) | function Q(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enume...
function de (line 1) | function de(r,t,e){return t&&Q(r.prototype,t),e&&Q(r,e),r}
function he (line 1) | function he(e){return(he="function"==typeof Symbol&&"symbol"==_typeof(Sy...
function ve (line 1) | function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been ...
function me (line 1) | function me(n,t){return t&&("object"===he(t)||"function"==typeof t)?t:ve...
function ge (line 1) | function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function kn (line 1) | function kn(n,t){return(kn=Object.setPrototypeOf||function(n,t){return n...
function Ln (line 1) | function Ln(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("...
function we (line 1) | function we(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enum...
function Se (line 1) | function Se(b,t,e){var n=3<arguments.length&&void 0!==arguments[3]?argum...
function tn (line 1) | function tn(o,t){if("function"!=typeof o&&"string"!=typeof o)throw new E...
function en (line 1) | function en(r){var t=r.children,e=r.className,n=r.content,o=r.size,s=N()...
function rn (line 1) | function rn(r){var t=r.blurring,e=r.className,n=r.children,o=r.content,l...
function Sn (line 1) | function Sn(r){var t=r.children,e=r.className,n=r.content,o=r.size,s=N()...
function jn (line 1) | function jn(r){var t=r.avatar,e=r.bordered,n=r.centered,o=r.children,i=r...
function An (line 1) | function An(r){var t=r.children,e=r.className,n=r.content,o=N()("detail"...
function Cn (line 1) | function Cn(r){var t=r.children,e=r.circular,n=r.className,o=r.color,i=r...
function Nn (line 1) | function Nn(a){var t=a.className,e=N()("divider",t),n=W(Nn,a),r=V(Nn,a);...
function Tn (line 1) | function Tn(r){var t=r.children,e=r.className,n=r.content,o=r.icon,s=N()...
function Mn (line 1) | function Mn(r){var t=r.children,e=r.className,n=r.content,o=r.direction,...
function Dn (line 1) | function Dn(r){var t=r.children,e=r.className,n=r.content,o=r.hidden,l=r...
function Wn (line 1) | function Wn(r){var t=r.attached,e=r.basic,n=r.buttons,o=r.children,i=r.c...
function Vn (line 1) | function Vn(a){var t=a.className,e=a.text,n=N()("or",t),r=W(Vn,a),o=V(Vn...
function Yn (line 1) | function Yn(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){v...
function Qn (line 1) | function Qn(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enum...
function Zn (line 1) | function Zn(n,t){return function(e){if(Array.isArray(e))return e}(n)||fu...
function Jn (line 1) | function Jn(l){function p(n){o(function(t){return function(r){for(var t=...
function Xn (line 1) | function Xn(){return Za.a.createElement("header",{className:"title anima...
function tr (line 1) | function tr(n,t){return t&&("object"===lr(t)||"function"==typeof t)?t:fu...
function ar (line 1) | function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function sr (line 1) | function sr(n,t){return(sr=Object.setPrototypeOf||function(n,t){return n...
function lr (line 1) | function lr(e){return(lr="function"==typeof Symbol&&"symbol"==_typeof(Sy...
function ir (line 1) | function ir(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a...
function ur (line 1) | function ur(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function hr (line 1) | function hr(r,t,e){return t&&ur(r.prototype,t),e&&ur(r,e),r}
function gr (line 1) | function gr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a...
function mr (line 1) | function mr(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function br (line 1) | function br(r,t,e){return t&&mr(r.prototype,t),e&&mr(r,e),r}
function Lr (line 1) | function Lr(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function Fr (line 1) | function Fr(n){if(!n)return[];var a=[];return n.replace(/[`~!@#$^&*()=|{...
function Dr (line 1) | function Dr(e){return e?e.join(" ").replace(/[!$%^&*()_+|~=`{}\[\]:";'<>...
function Hr (line 1) | function Hr(r,t){if(r){var a={};return r.replace(t,function(n,t,e,r){a[t...
function qr (line 1) | function qr(e){return Hr(e=e||window.location.search,/([^?=&]+)(=([^&]*)...
function $r (line 1) | function $r(e){return($r="function"==typeof Symbol&&"symbol"==_typeof(Sy...
function Yr (line 1) | function Yr(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function Jr (line 1) | function Jr(n,t){return t&&("object"===$r(t)||"function"==typeof t)?t:fu...
function Xr (line 1) | function Xr(e){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function to (line 1) | function to(n,t){return(to=Object.setPrototypeOf||function(n,t){return n...
function ka (line 1) | function ka(s,t,e,n,r,o,l){try{var a=s[o](l),i=a.value}catch(n){return v...
function io (line 1) | function io(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function ao (line 1) | function ao(s,t,e,n,r,o,l){try{var a=s[o](l),i=a.value}catch(n){return v...
function co (line 1) | function co(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function so (line 1) | function so(n){var t=Nr("".concat("20191206000363640").concat(n).concat(...
function po (line 1) | function po(s,t,e,n,r,o,l){try{var a=s[o](l),i=a.value}catch(n){return v...
function vo (line 1) | function vo(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function yo (line 1) | function yo(e){return(yo="function"==typeof Symbol&&"symbol"==_typeof(Sy...
function Pa (line 1) | function Pa(e){return function(r){if(Array.isArray(r)){for(var t=0,o=Arr...
function bo (line 1) | function bo(s,t,e,n,r,o,l){try{var a=s[o](l),i=a.value}catch(n){return v...
function xo (line 1) | function xo(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function wo (line 1) | function wo(n,t){return t&&("object"===yo(t)||"function"==typeof t)?t:fu...
function So (line 1) | function So(e){return(So=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ca (line 1) | function Ca(n,t){return(Ca=Object.setPrototypeOf||function(n,t){return n...
function Aa (line 1) | function Aa(r){var o=r.referenceElement,e=Po()(r,["referenceElement"]);r...
function Ko (line 1) | function Ko(r){var t=r.children,e=r.className,n=r.content,o=N()("content...
function Ia (line 1) | function Ia(r){var t=r.children,e=r.className,n=r.content,o=N()("header"...
function Na (line 1) | function Na(o){var t="clipboardId-".concat(Ar()),e=o.variable,n=null;ret...
function La (line 1) | function La(s){var t=Object(Qa.useRef)(),e=Object(Qa.useMemo)(function()...
function Ra (line 1) | function Ra(){return Za.a.createElement("div",{className:"search-error"}...
function Ta (line 1) | function Ta(){return Za.a.createElement("div",{className:"loading"},Za.a...
function Ma (line 1) | function Ma(n){var t=Za.a.createElement("h4",{className:"lang"},"Buy ",Z...
function Fa (line 1) | function Fa(n){if(!n.suggestion||!n.suggestion.length)return null;var t=...
function Da (line 1) | function Da(r){var t=r.children,e=r.className,n=r.content,o=N()(e,"heade...
function Ba (line 1) | function Ba(r){var t=r.children,e=r.className,n=r.content,o=r.image,l=r....
function Wa (line 1) | function Wa(r){var t=r.children,e=r.className,n=r.content,o=N()("descrip...
function za (line 1) | function za(e){return function(r){if(Array.isArray(r)){for(var t=0,o=Arr...
function Ua (line 1) | function Ua(o,a){var e=Object(Qa.useRef)(null),n=Object(Qa.useRef)(null)...
function Va (line 1) | function Va(a){var t=Ua([a.sourceCode,a.sourceCodeVisible],null===(n=a.s...
function Ha (line 1) | function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==_typeof(Sy...
function Ka (line 1) | function Ka(e){return function(r){if(Array.isArray(r)){for(var t=0,o=Arr...
function ea (line 1) | function ea(o,t){for(var e=0,a;e<t.length;e++)a=t[e],a.enumerable=a.enum...
function na (line 1) | function na(n,t){return t&&("object"===Ha(t)||"function"==typeof t)?t:fu...
function ra (line 1) | function ra(e){return(ra=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ga (line 1) | function Ga(n,t){return(Ga=Object.setPrototypeOf||function(n,t){return n...
function qa (line 1) | function qa(r){var t=r.text,e=null;return /鱼|fish/i.test(t)?e="fish":/糖|...
function va (line 1) | function va(){return(va=Object.assign||function(o){for(var t=1,a;t<argum...
function $a (line 1) | function $a(n,t){return function(e){if(Array.isArray(e))return e}(n)||fu...
function ma (line 1) | function ma(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){v...
function ga (line 1) | function ga(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enum...
function ba (line 1) | function ba(n,t){switch(t.type){case da:return function(r){for(var t=1,o...
function Sa (line 1) | function Sa(){function p(n){e({type:da,payload:n})}function a(n,a){var e...
function _a (line 1) | function _a(n,t){return function(e){if(Array.isArray(e))return e}(n)||fu...
function Oa (line 1) | function Oa(){var o=Object(Qa.useRef)(null),t=function(s){var t=_a(Objec...
function Ea (line 1) | function Ea(){return Za.a.createElement($,{className:"nav-bar-container"...
function a (line 1) | function a(){var e,s;D(this,a);for(var l=arguments.length,r=Array(l),o=0...
function a (line 1) | function a(){var e,s;D(this,a);for(var l=arguments.length,r=Array(l),o=0...
function s (line 1) | function s(){var e,l;X()(this,s);for(var p=arguments.length,r=Array(p),o...
function x (line 1) | function x(){var e,a;X()(this,x);for(var s=arguments.length,r=Array(s),o...
function a (line 1) | function a(){var e,s;X()(this,a);for(var l=arguments.length,r=Array(l),o...
function a (line 1) | function a(){var e,l;X()(this,a);for(var s=arguments.length,r=Array(s),o...
function g (line 1) | function g(){var e,a;X()(this,g);for(var s=arguments.length,r=Array(s),o...
function a (line 1) | function a(){var e,s;X()(this,a);for(var l=arguments.length,r=Array(l),o...
function I (line 1) | function I(){var e,a;X()(this,I);for(var s=arguments.length,r=Array(s),o...
function s (line 1) | function s(){return X()(this,s),rt()(this,lt()(s).apply(this,arguments))}
function k (line 1) | function k(){var e,a;X()(this,k);for(var s=arguments.length,r=Array(s),o...
function s (line 1) | function s(){var e,a;X()(this,s);for(var l=arguments.length,r=Array(l),o...
function I (line 1) | function I(){var e,g;X()(this,I);for(var r=arguments.length,o=Array(r),s...
function r (line 1) | function r(){var e,s;X()(this,r);for(var l=arguments.length,o=Array(l),i...
function P (line 1) | function P(){var e,p;X()(this,P);for(var a=arguments.length,r=Array(a),o...
function n (line 1) | function n(t){ir(this,n),this._data=t,this._serialize(),this.has=this.ha...
function r (line 1) | function r(){var e;return ir(this,r),(e=tr(this,ar(r).call(this))).on("e...
function e (line 1) | function e(){gr(this,e),this._store={}}
function n (line 1) | function n(t){if(gr(this,n),this._store=t,!t)return new jr}
function o (line 1) | function o(t,e){!function(n,t){if(!(n instanceof t))throw new TypeError(...
function l (line 1) | function l(e){e&&document.body.appendChild(e)}
function r (line 1) | function r(e){e&&e.parentNode.removeChild(e)}
function o (line 1) | function o(r,t){var e=document.createElement("iframe");return e.setAttri...
function s (line 1) | function s(){var e;return function(n,t){if(!(n instanceof t))throw new T...
function a (line 1) | function a(){!function(n,t){if(!(n instanceof t))throw new TypeError("Ca...
function o (line 1) | function o(e){ka(l,n,r,o,a,"next",e)}
function a (line 1) | function a(e){ka(l,n,r,o,a,"throw",e)}
function a (line 1) | function a(){!function(n,t){if(!(n instanceof t))throw new TypeError("Ca...
function o (line 1) | function o(e){ao(l,n,r,o,a,"next",e)}
function a (line 1) | function a(e){ao(l,n,r,o,a,"throw",e)}
function a (line 1) | function a(){!function(n,t){if(!(n instanceof t))throw new TypeError("Ca...
function o (line 1) | function o(e){po(l,n,r,o,a,"next",e)}
function a (line 1) | function a(e){po(l,n,r,o,a,"throw",e)}
function s (line 1) | function s(){var e;!function(n,t){if(!(n instanceof t))throw new TypeErr...
function o (line 1) | function o(e){bo(l,n,r,o,a,"next",e)}
function a (line 1) | function a(e){bo(l,n,r,o,a,"throw",e)}
function n (line 1) | function n(n){var r;return n&&decodeURIComponent(n).replace(/#(.*)/g,fun...
function t (line 1) | function t(){for(var t=arguments.length,n=Array(t),r=0,s;r<t;r++)n[r]=ar...
function n (line 1) | function n(t){X()(this,n),this.ref=t}
function E (line 1) | function E(){var e,k;X()(this,E);for(var r=arguments.length,o=Array(r),s...
function t (line 1) | function t(){return X()(this,t),rt()(this,lt()(t).apply(this,arguments))}
function p (line 1) | function p(){var e,a;X()(this,p);for(var s=arguments.length,r=Array(s),o...
function _ (line 1) | function _(){var e,E;X()(this,_);for(var r=arguments.length,o=Array(r),s...
function s (line 1) | function s(){var e;return function(n,t){if(!(n instanceof t))throw new T...
FILE: dist/js/app.js
function n (line 1) | function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{...
function n (line 1) | function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e...
function o (line 1) | function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbo...
function a (line 6) | function a(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e]...
function n (line 6) | function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function n (line 6) | function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototy...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 6) | function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.i...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function s (line 6) | function s(t){var e=this.__data__=new r(t);this.size=e.size}
function c (line 6) | function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function a (line 6) | function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function t (line 6) | function t(){}
function N (line 6) | function N(t,e,n){var r,o,i,a=new Array(n),u=8*n-e-1,c=(1<<u)-1,s=c>>1,l...
function M (line 6) | function M(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,s=t[c--]...
function R (line 6) | function R(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}
function T (line 6) | function T(t){return[255&t]}
function L (line 6) | function L(t){return[255&t,t>>8&255]}
function F (line 6) | function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}
function D (line 6) | function D(t){return N(t,52,8)}
function B (line 6) | function B(t){return N(t,23,4)}
function U (line 6) | function U(t,e,n){v(t.prototype,e,{get:function(){return this[n]}})}
function W (line 6) | function W(t,e,n,r){var o=h(+n);if(o+e>t[C])throw w("Wrong index!");var ...
function z (line 6) | function z(t,e,n,r,o,i){var a=h(+n);if(a+e>t[C])throw w("Wrong index!");...
function n (line 6) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function c (line 6) | function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 6) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function i (line 6) | function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this...
function i (line 6) | function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!...
function o (line 6) | function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)t...
function i (line 31) | function i(t){return t&&"[object Function]"==={}.toString.call(t)}
function a (line 31) | function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.default...
function u (line 31) | function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}
function c (line 31) | function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":c...
function s (line 31) | function s(t){return t&&t.referenceNode?t.referenceNode:t}
function p (line 31) | function p(t){return 11===t?l:10===t?f:l||f}
function h (line 31) | function h(t){if(!t)return document.documentElement;for(var e=p(10)?docu...
function d (line 31) | function d(t){return null!==t.parentNode?d(t.parentNode):t}
function v (line 31) | function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.docum...
function y (line 31) | function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[...
function m (line 31) | function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&argumen...
function g (line 31) | function g(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom"...
function b (line 31) | function b(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["clien...
function x (line 31) | function x(t){var e=t.body,n=t.documentElement,r=p(10)&&getComputedStyle...
function t (line 31) | function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function E (line 31) | function E(t){return O({},t,{right:t.left+t.width,bottom:t.top+t.height})}
function j (line 31) | function j(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=y...
function k (line 31) | function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&argumen...
function A (line 31) | function A(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments...
function P (line 31) | function P(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fi...
function C (line 31) | function C(t){if(!t||!t.parentElement||p())return document.documentEleme...
function I (line 31) | function I(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arg...
function N (line 31) | function N(t){return t.width*t.height}
function M (line 31) | function M(t,e,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?ar...
function R (line 31) | function R(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argume...
function T (line 31) | function T(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=pa...
function L (line 31) | function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"...
function F (line 31) | function F(t,e,n){n=n.split("-")[0];var r=T(t),o={width:r.width,height:r...
function D (line 31) | function D(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}
function B (line 31) | function B(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array...
function U (line 31) | function U(){if(!this.state.isDestroyed){var t={instance:this,styles:{},...
function W (line 31) | function W(t,e){return t.some((function(t){var n=t.name;return t.enabled...
function z (line 31) | function z(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpp...
function V (line 31) | function V(){return this.state.isDestroyed=!0,W(this.modifiers,"applySty...
function H (line 31) | function H(t){var e=t.ownerDocument;return e?e.defaultView:window}
function K (line 31) | function K(t,e,n,r){n.updateBound=r,H(t).addEventListener("resize",n.upd...
function G (line 31) | function G(){this.state.eventsEnabled||(this.state=K(this.reference,this...
function $ (line 31) | function $(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(thi...
function q (line 31) | function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}
function Y (line 31) | function Y(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["widt...
function Z (line 31) | function Z(t,e,n){var r=D(t,(function(t){return t.name===e})),o=!!r&&t.s...
function tt (line 31) | function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&argument...
function ot (line 31) | function ot(t,e,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=t....
function t (line 31) | function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?a...
function i (line 31) | function i(t){return t&&t.__esModule?t:{default:t}}
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function o (line 31) | function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||v...
function n (line 31) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function o (line 31) | function o(e,n,i){return"undefined"!=typeof Reflect&&Reflect.get?t.expor...
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function c (line 31) | function c(){c.init.call(this)}
function l (line 31) | function l(t){if("function"!=typeof t)throw new TypeError('The "listener...
function f (line 31) | function f(t){return void 0===t._maxListeners?c.defaultMaxListeners:t._m...
function p (line 31) | function p(t,e,n,r){var o,i,a,u;if(l(n),void 0===(i=t._events)?(i=t._eve...
function h (line 31) | function h(){if(!this.fired)return this.target.removeListener(this.type,...
function d (line 31) | function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener...
function v (line 31) | function v(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];retu...
function y (line 31) | function y(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"...
function m (line 31) | function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}
function a (line 31) | function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 31) | function n(t,e){var n=t[0],r=t[1],o=t[2],i=t[3];r=((r+=((o=((o+=((i=((i+...
function r (line 31) | function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.ch...
function o (line 31) | function o(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e...
function i (line 31) | function i(t){var e,o,i,a,u,c,s=t.length,l=[1732584193,-271733879,-17325...
function a (line 31) | function a(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15]...
function u (line 31) | function u(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}
function c (line 31) | function c(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComp...
function s (line 31) | function s(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t...
function l (line 31) | function l(){this.reset()}
function e (line 31) | function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function f (line 31) | function f(t,e,n){var d=n||{};return!(d.strict?!a(t,e):t!==e)||(!t||!e||...
function p (line 31) | function p(t){return null==t}
function h (line 31) | function h(t){return!(!t||"object"!==r(t)||"number"!=typeof t.length)&&(...
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function t (line 31) | function t(){}
function v (line 31) | function v(t,e,r,i,a,u){var c=r+t.length,s=i.length,l=h;return void 0!==...
function t (line 31) | function t(){}
function e (line 31) | function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbo...
function c (line 31) | function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.creat...
function s (line 31) | function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){ret...
function f (line 31) | function f(){}
function p (line 31) | function p(){}
function h (line 31) | function h(){}
function g (line 31) | function g(t){["next","throw","return"].forEach((function(e){t[e]=functi...
function b (line 31) | function b(t){var n;this._invoke=function(o,i){function a(){return new P...
function x (line 31) | function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=...
function w (line 31) | function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.f...
function S (line 31) | function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.comp...
function _ (line 31) | function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.r...
function O (line 31) | function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==type...
function E (line 31) | function E(){return{value:void 0,done:!0}}
function n (line 31) | function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="nex...
function n (line 31) | function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){...
function c (line 31) | function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var...
function n (line 31) | function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 31) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function a (line 31) | function a(t){return(a="function"==typeof Symbol&&"symbol"==r(Symbol.ite...
function u (line 31) | function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function c (line 31) | function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function s (line 31) | function s(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}
function l (line 31) | function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enume...
function f (line 31) | function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("S...
function p (line 31) | function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:funct...
function h (line 31) | function h(t,e){return!e||"object"!=r(e)&&"function"!=typeof e?function(...
function t (line 31) | function t(e){u(this,t),l(this,"handlers",void 0),this.handlers=e.slice(0)}
function v (line 31) | function v(t){var e=new Map;return t.forEach((function(t,n){e.set(n,t)})...
function y (line 31) | function y(t){return Array.isArray(t)?t:[t]}
function m (line 31) | function m(t){return"document"===t?document:"window"===t?window:function...
function t (line 31) | function t(e,n){u(this,t),l(this,"handlerSets",void 0),l(this,"poolName"...
function t (line 31) | function t(e){var n=this;u(this,t),l(this,"handlers",new Map),l(this,"po...
function t (line 31) | function t(){var e=this;u(this,t),l(this,"targets",new Map),l(this,"getT...
function e (line 31) | function e(){return u(this,e),h(this,p(e).apply(this,arguments))}
function o (line 31) | function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbo...
function o (line 36) | function o(){}
function i (line 36) | function i(){}
function t (line 36) | function t(t,e,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes val...
function e (line 36) | function e(){return t}
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function S (line 44) | function S(t){if("object"===r(t)&&null!==t){var e=t.$$typeof;switch(e){c...
function _ (line 44) | function _(t){return S(t)===h}
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function r (line 44) | function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbo...
function u (line 44) | function u(t){return t&&t.__esModule?t:{default:t}}
function c (line 44) | function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function s (line 44) | function s(t,e){if(!t)throw new ReferenceError("this hasn't been initial...
function l (line 44) | function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("S...
function f (line 44) | function f(t){var e=[];return{on:function(t){e.push(t)},off:function(t){...
function n (line 44) | function n(){var e,r;c(this,n);for(var o=arguments.length,i=Array(o),a=0...
function n (line 44) | function n(){var t,r;c(this,n);for(var o=arguments.length,i=Array(o),a=0...
function a (line 44) | function a(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){ret...
function u (line 44) | function u(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}
function c (line 44) | function c(t,e){return function(){var n=arguments.length;if(n){for(var r...
function B (line 44) | function B(t,e){if(h){var n=r.iterateeRearg[t];if(n)return function(t,e)...
function U (line 44) | function U(t,e,n){if(v&&(x||!r.skipFixed[t])){var o=r.methodSpread[t],a=...
function W (line 44) | function W(t,e,n){return m&&n>1&&(w||!r.skipRearg[t])?R(e,r.methodRearg[...
function z (line 44) | function z(t,e){for(var n=-1,r=(e=L(e)).length,o=r-1,i=j(Object(t)),a=i;...
function V (line 44) | function V(e,n){var o=r.aliasToReal[e]||e,i=r.remap[o]||o,a=l;return fun...
function H (line 44) | function H(t,e){return function(){var n=arguments.length;if(!n)return t(...
function K (line 44) | function K(t,e,n){var o,i=r.aliasToReal[t]||t,a=e,s=D[i];return s?a=s(e)...
function l (line 44) | function l(t){if(u(t)&&!a(t)&&!(t instanceof r)){if(t instanceof o)retur...
function o (line 44) | function o(t,e,n){var i=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?voi...
function i (line 44) | function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbo...
function a (line 44) | function a(t){if(void 0===t)throw new ReferenceError("this hasn't been i...
function u (line 44) | function u(t){var e="function"==typeof Map?new Map:void 0;return(u=funct...
function c (line 44) | function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1...
function s (line 44) | function s(t,e,n){return(s=c()?Reflect.construct:function(t,e,n){var r=[...
function l (line 44) | function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t._...
function f (line 44) | function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:funct...
function p (line 44) | function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enume...
function h (line 44) | function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function d (line 44) | function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}
function v (line 44) | function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function y (line 44) | function y(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new ...
function m (line 44) | function m(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Ob...
function g (line 44) | function g(t,e){return x(t)||function(t,e){if(!(Symbol.iterator in Objec...
function b (line 44) | function b(){throw new TypeError("Invalid attempt to destructure non-ite...
function x (line 44) | function x(t){if(Array.isArray(t))return t}
function n (line 44) | function n(t){var e=0,n=1,r=1;return{curr:function(){var n=arguments.len...
function r (line 44) | function r(t){t=t.trim();var e=[];if(!/^var\(/.test(t))return e;var r=n(...
function o (line 44) | function o(t){return Array.isArray(t)?t:[t]}
function c (line 44) | function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[...
function s (line 44) | function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[...
function h (line 44) | function h(t){return t[0]}
function w (line 44) | function w(t){for(var e=Array.from?Array.from(t):t.slice(),n=t.length;n;...
function S (line 44) | function S(t,e){return Array.prototype.flatMap?t.flatMap(e):t.reduce((fu...
function L (line 44) | function L(t){return function(e,n){for(var r=e.index(),o="";!e.end();){v...
function F (line 44) | function F(t,e){return L((function(t){return/[^\w@]/.test(t)}))(t,e)}
function D (line 44) | function D(t){return L((function(t){return/[\s\{]/.test(t)}))(t)}
function B (line 44) | function B(t,e){return L((function(t){return I(t)||"{"==t}))(t,e)}
function U (line 44) | function U(t,e){for(var n,r=P();!t.end()&&"}"!=(n=t.curr());)if(C(n))t.n...
function W (line 44) | function W(t,e){for(var n,r=[];!t.end()&&"}"!=(n=t.curr());)C(n)?t.next(...
function z (line 44) | function z(t,e){for(var n,r,o,i,a,u=A();!t.end()&&"}"!=(n=t.curr());)if(...
function V (line 44) | function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[...
function H (line 44) | function H(t){for(var e,n="";!t.end()&&":"!=(e=t.curr());)C(e)||(n+=e),t...
function K (line 44) | function K(t){for(var e,n,r,o=[],i=[],a=[],u="";!t.end();){if(e=t.curr()...
function G (line 44) | function G(t){var e=t.map((function(t){if("text"==t.type&&"string"==type...
function $ (line 44) | function $(t){var e,n=_(),r="@",o=!1;for(t.next();!t.end();){e=t.curr();...
function q (line 44) | function q(t){var e,n=O(),r=0,o=!0,i=[],a=[];for(i[r]=[];!t.end();)if(e=...
function Y (line 44) | function Y(t){for(var e,n="";!t.end()&&"{"!=(e=t.curr());)C(e)||(n+=e),t...
function J (line 44) | function J(t){for(var e,n={name:"",arguments:[]};!t.end();){if("("==(e=t...
function Z (line 44) | function Z(t,e){for(var n,r=E();!t.end()&&"}"!=(n=t.curr());)if(C(n))t.n...
function Q (line 44) | function Q(t,e){for(var n=k();!t.end()&&";"!=t.curr();){if(n.property.le...
function X (line 44) | function X(t,e){for(var n,r=j();!t.end()&&"}"!=(n=t.curr());){if(r.name....
function tt (line 44) | function tt(t,e){var n="";return t&&t.get_custom_property_value&&(n=t.ge...
function et (line 44) | function et(t,e){return t.next(),(q(t)||[]).reduce((function(t,n){!funct...
function nt (line 44) | function nt(t,e){for(var r=n(t),o=[];!r.end();){var i=r.curr();if(C(i))r...
function rt (line 44) | function rt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e...
function ot (line 44) | function ot(t,e,n){return Math.max(e,Math.min(n,t))}
function it (line 44) | function it(t,e,n){var r=0,o=t,i=function(t){return t>0&&t<1?.1:1},a=arg...
function at (line 44) | function at(t){return/^[a-zA-Z]$/.test(t)}
function ut (line 44) | function ut(t){var e=function(){return t};return e.lazy=!0,e}
function ct (line 44) | function ct(t,e,n){return"cell-"+t+"-"+e+"-"+n}
function st (line 44) | function st(t){var e=g((t+"").replace(/\s+/g,"").replace(/[,,xX]+/g,"x")...
function lt (line 44) | function lt(t,e){if(e){var n=new Blob([t],{type:"image/svg+xml"}),r=URL....
function ft (line 44) | function ft(t){var e='xmlns="http://www.w3.org/2000/svg"';return t.inclu...
function pt (line 44) | function pt(t,e,n){return t*(1-n)+e*n}
function ht (line 44) | function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[...
function dt (line 44) | function dt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]...
function vt (line 44) | function vt(t){return function(){for(var e=arguments.length,n=new Array(...
function yt (line 44) | function yt(t,e){return function(){for(var n=arguments.length,r=new Arra...
function mt (line 44) | function mt(t){var e="";return t.some((function(t){var n=String(t).trim(...
function gt (line 44) | function gt(t){return function(){for(var e=arguments.length,n=new Array(...
function bt (line 44) | function bt(t){for(var e=function(t){for(var e=function(t){for(var e=Str...
function wt (line 44) | function wt(t,e,n){switch(t){case"+":return e+n;case"-":return e-n;case"...
function _t (line 44) | function _t(t,e){return function(){for(var n=arguments.length,r=new Arra...
function Ot (line 44) | function Ot(t){return function(){for(var e=arguments.length,n=new Array(...
function Et (line 44) | function Et(t,e){return{type:t,value:e}}
function t (line 44) | function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0...
function Tt (line 44) | function Tt(t,e){"function"==typeof arguments[0]&&(e=t,t={}),e||(e=funct...
function Lt (line 44) | function Lt(t,e,n){var r=Rt*n;return[t*Pt(r)-e*Ct(r),e*Pt(r)+t*Ct(r)]}
function Dt (line 44) | function Dt(t){return ut((function(e,n){if(!n||!e)return"";var r=ot(e(),...
function Bt (line 44) | function Bt(t,e,n){return t[e]||(t[e]=new At),t[e].push(n),n}
function Ht (line 44) | function Ht(t){for(;!t.end()&&Vt(t.curr(1));)t.next()}
function Kt (line 44) | function Kt(t){for(var e=n(t),r=[],o=[],i="";!e.end();){var a=e.curr();"...
function $t (line 44) | function $t(t){if(!Gt.length){var e=new Set;for(var n in document.head.s...
function qt (line 44) | function qt(t){var e=new RegExp("\\-?".concat(t,"\\-?"));return $t(e).ma...
function Zt (line 44) | function Zt(t,e){return Yt[t]?"-webkit-".concat(e," ").concat(e):Jt[t]?"...
function re (line 44) | function re(t,e,n){for(var r=function(t){return function(e){return Strin...
function ie (line 44) | function ie(t){return/^(even|odd)$/.test(t)}
function ce (line 44) | function ce(t){return/^\:(host|doodle)/.test(t)}
function se (line 44) | function se(t){return/^\:(container|parent)/.test(t)}
function le (line 44) | function le(t){return ce(t)||se(t)}
function t (line 44) | function t(e){v(this,t),this.tokens=e,this.rules={},this.props={},this.k...
function pe (line 44) | function pe(t,e){var n=new fe(t),r={};n.compose({x:1,y:1,z:1,count:1,con...
function e (line 44) | function e(){var t;return v(this,e),(t=function(t,e){return!e||"object"!...
function f (line 44) | function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_...
function p (line 44) | function p(t){return"string"!=typeof t&&(t=String(t)),t}
function h (line 44) | function h(t){var e={next:function(){var e=t.shift();return{done:void 0=...
function d (line 44) | function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.a...
function v (line 44) | function v(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already...
function y (line 44) | function y(t){return new Promise((function(e,n){t.onload=function(){e(t....
function m (line 44) | function m(t){var e=new FileReader,n=y(e);return e.readAsArrayBuffer(t),n}
function g (line 44) | function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLe...
function b (line 44) | function b(){return this.bodyUsed=!1,this._initBody=function(t){var e;th...
function w (line 44) | function w(t,e){var n,r,o=(e=e||{}).body;if(t instanceof w){if(t.bodyUse...
function S (line 44) | function S(t){var e=new FormData;return t.trim().split("&").forEach((fun...
function _ (line 44) | function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.sta...
function j (line 44) | function j(t,e){return new Promise((function(n,r){var o=new w(t,e);if(o....
function D (line 44) | function D(t){var e=L()(t);return"string"===e||"number"===e?F[t]||t:""}
function Q (line 44) | function Q(t){var e,n=t.children,o=t.className,i=t.content,a=t.fluid,u=t...
function he (line 44) | function he(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function de (line 44) | function de(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ve (line 44) | function ve(t,e,n){return e&&de(t.prototype,e),n&&de(t,n),t}
function ye (line 44) | function ye(t){return(ye="function"==typeof Symbol&&"symbol"==typeof Sym...
function me (line 44) | function me(t){if(void 0===t)throw new ReferenceError("this hasn't been ...
function ge (line 44) | function ge(t,e){return!e||"object"!==ye(e)&&"function"!=typeof e?me(t):e}
function be (line 44) | function be(t){return(be=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function xe (line 44) | function xe(t,e){return(xe=Object.setPrototypeOf||function(t,e){return t...
function we (line 44) | function we(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("...
function Se (line 44) | function Se(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enum...
function e (line 44) | function e(){var t,n;he(this,e);for(var r=arguments.length,o=new Array(r...
function e (line 44) | function e(){var t,n;he(this,e);for(var r=arguments.length,o=new Array(r...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function tn (line 44) | function tn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argum...
function en (line 44) | function en(t,e){if("function"!=typeof t&&"string"!=typeof t)throw new E...
function rn (line 44) | function rn(t){var e=t.children,n=t.className,o=t.content,i=t.size,a=R()...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function Sn (line 44) | function Sn(t){var e=t.blurring,n=t.className,o=t.children,i=t.content,a...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function jn (line 44) | function jn(t){var e=t.children,n=t.className,o=t.content,i=t.size,a=R()...
function An (line 44) | function An(t){var e=t.avatar,n=t.bordered,o=t.centered,i=t.children,a=t...
function Cn (line 44) | function Cn(t){var e=t.children,n=t.className,o=t.content,i=R()("detail"...
function Nn (line 44) | function Nn(t){var e=t.children,n=t.circular,o=t.className,i=t.color,a=t...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function Tn (line 44) | function Tn(t){var e=t.className,n=R()("divider",e),r=V(Tn,t),o=H(Tn,t);...
function e (line 44) | function e(){return rt()(this,e),ut()(this,ft()(e).apply(this,arguments))}
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function Wn (line 44) | function Wn(t){var e=t.children,n=t.className,o=t.content,i=t.icon,a=R()...
function Vn (line 44) | function Vn(t){var e=t.children,n=t.className,o=t.content,i=t.direction,...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var o=arguments.length,i=new Array...
function Yn (line 44) | function Yn(t){var e=t.children,n=t.className,o=t.content,i=t.hidden,a=t...
function Zn (line 44) | function Zn(t){var e=t.attached,n=t.basic,o=t.buttons,i=t.children,a=t.c...
function Xn (line 44) | function Xn(t){var e=t.className,n=t.text,r=R()("or",e),o=V(Xn,t),i=H(Xn...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var o=arguments.length,i=new Array...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function ir (line 44) | function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){v...
function ar (line 44) | function ar(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enum...
function ur (line 44) | function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function sr (line 44) | function sr(t){var e=Object(P.useRef)(null),n=function(t){var e=ur(Objec...
function lr (line 44) | function lr(){return C.a.createElement("header",{className:"title animat...
function hr (line 44) | function hr(t,e){return!e||"object"!==yr(e)&&"function"!=typeof e?functi...
function dr (line 44) | function dr(t){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function vr (line 44) | function vr(t,e){return(vr=Object.setPrototypeOf||function(t,e){return t...
function yr (line 44) | function yr(t){return(yr="function"==typeof Symbol&&"symbol"==typeof Sym...
function mr (line 44) | function mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function gr (line 44) | function gr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function br (line 44) | function br(t,e,n){return e&&gr(t.prototype,e),n&&gr(t,n),t}
function t (line 44) | function t(e){mr(this,t),this._data=e,this._serialize(),this.has=this.ha...
function e (line 44) | function e(){var t;return mr(this,e),(t=hr(this,dr(e).call(this))).on("e...
function Lr (line 44) | function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function Fr (line 44) | function Fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Dr (line 44) | function Dr(t,e,n){return e&&Fr(t.prototype,e),n&&Fr(t,n),t}
function t (line 44) | function t(){Lr(this,t),this._store={}}
function t (line 44) | function t(e){if(Lr(this,t),this._store=e,!e)return new Br}
function Hr (line 44) | function Hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 44) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function $r (line 44) | function $r(t){if(!t)return[];var e=[];return t.replace(/[`~!@#$^&*()=|{...
function qr (line 44) | function qr(t){return t?t.join(" ").replace(/[!$%^&*()_+|~=`{}\[\]:";'<>...
function Yr (line 44) | function Yr(t,e){if(t){var n={};return t.replace(e,(function(t,e,r,o){n[...
function Jr (line 44) | function Jr(t){return Yr(t=t||window.location.search,new RegExp("([^?=&]...
function r (line 44) | function r(t){t&&document.body.appendChild(t)}
function o (line 44) | function o(t){t&&t.parentNode.removeChild(t)}
function i (line 44) | function i(t,e){var n=document.createElement("iframe");return n.setAttri...
function Qr (line 44) | function Qr(t){return(Qr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Xr (line 44) | function Xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function to (line 44) | function to(t,e){return!e||"object"!==Qr(e)&&"function"!=typeof e?functi...
function eo (line 44) | function eo(t){return(eo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function no (line 44) | function no(t,e){return(no=Object.setPrototypeOf||function(t,e){return t...
function e (line 44) | function e(){var t;return function(t,e){if(!(t instanceof e))throw new T...
function io (line 44) | function io(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return v...
function ao (line 44) | function ao(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 44) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function a (line 44) | function a(t){io(i,r,o,a,u,"next",t)}
function u (line 44) | function u(t){io(i,r,o,a,u,"throw",t)}
function co (line 44) | function co(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return v...
function so (line 44) | function so(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function po (line 44) | function po(t){var e=Tr("".concat("20191206000363640").concat(t).concat(...
function t (line 44) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function a (line 44) | function a(t){co(i,r,o,a,u,"next",t)}
function u (line 44) | function u(t){co(i,r,o,a,u,"throw",t)}
function vo (line 44) | function vo(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return v...
function yo (line 44) | function yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 44) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function a (line 44) | function a(t){vo(i,r,o,a,u,"next",t)}
function u (line 44) | function u(t){vo(i,r,o,a,u,"throw",t)}
function go (line 44) | function go(t){return(go="function"==typeof Symbol&&"symbol"==typeof Sym...
function bo (line 44) | function bo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function xo (line 44) | function xo(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return v...
function wo (line 44) | function wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function So (line 44) | function So(t,e){return!e||"object"!==go(e)&&"function"!=typeof e?functi...
function _o (line 44) | function _o(t){return(_o=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Oo (line 44) | function Oo(t,e){return(Oo=Object.setPrototypeOf||function(t,e){return t...
function e (line 44) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function a (line 44) | function a(t){xo(i,r,o,a,u,"next",t)}
function u (line 44) | function u(t){xo(i,r,o,a,u,"throw",t)}
function e (line 44) | function e(t){var e;return t&&decodeURIComponent(t).replace(new RegExp("...
function e (line 44) | function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o...
function Ko (line 44) | function Ko(t){var e=t.referenceElement,n=Io()(t,["referenceElement"]);r...
function t (line 44) | function t(e){rt()(this,t),this.ref=e}
function ii (line 44) | function ii(t){var e=t.children,n=t.className,o=t.content,i=R()("content...
function ai (line 44) | function ai(t){var e=t.children,n=t.className,o=t.content,i=R()("header"...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var o=arguments.length,i=new Array...
function ci (line 44) | function ci(t){var e="clipboardId-".concat(Mr()),n=t.variable,r=null;ret...
function li (line 44) | function li(t){var e=Object(P.useRef)(),n=Object(P.useMemo)((function(){...
function fi (line 44) | function fi(){return C.a.createElement("div",{className:"search-error"},...
function pi (line 44) | function pi(){return C.a.createElement("div",{className:"loading"},C.a.c...
function di (line 44) | function di(t){var e=C.a.createElement("h4",{className:"lang"},"Buy ",C....
function vi (line 44) | function vi(t){if(!t.suggestion||!t.suggestion.length)return null;var e=...
function e (line 44) | function e(){return rt()(this,e),ut()(this,ft()(e).apply(this,arguments))}
function Di (line 44) | function Di(t){var e=t.children,n=t.className,o=t.content,i=R()(n,"heade...
function Ui (line 44) | function Ui(t){var e=t.children,n=t.className,o=t.content,i=t.image,a=t....
function e (line 44) | function e(){var t,n;rt()(this,e);for(var r=arguments.length,o=new Array...
function Vi (line 44) | function Vi(t){var e=t.children,n=t.className,o=t.content,i=R()("descrip...
function e (line 44) | function e(){var t,n;rt()(this,e);for(var o=arguments.length,i=new Array...
function Ji (line 44) | function Ji(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Zi (line 44) | function Zi(t,e){var n=Object(P.useRef)(null),r=Object(P.useRef)(null);r...
function Qi (line 44) | function Qi(t){var e,n=Zi([t.sourceCode,t.sourceCodeVisible],null===(e=t...
function ta (line 44) | function ta(t){return(ta="function"==typeof Symbol&&"symbol"==typeof Sym...
function ea (line 44) | function ea(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function na (line 44) | function na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ra (line 44) | function ra(t,e){return!e||"object"!==ta(e)&&"function"!=typeof e?functi...
function oa (line 44) | function oa(t){return(oa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ia (line 44) | function ia(t,e){return(ia=Object.setPrototypeOf||function(t,e){return t...
function e (line 44) | function e(){var t;return function(t,e){if(!(t instanceof e))throw new T...
function va (line 44) | function va(t){var e=t.text,n=null;return/鱼|fish/i.test(e)?n="fish":/糖|甜...
function ya (line 44) | function ya(){return(ya=Object.assign||function(t){for(var e=1;e<argumen...
function ma (line 44) | function ma(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function ga (line 44) | function ga(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){v...
function ba (line 44) | function ba(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enum...
function Sa (line 44) | function Sa(t,e){switch(e.type){case xa:return function(t){for(var e=1;e...
function _a (line 44) | function _a(t){var e=ma(Object(P.useReducer)(Sa,wa),2),n=e[0],r=e[1];Obj...
function Oa (line 44) | function Oa(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Ea (line 44) | function Ea(){var t=Object(P.useRef)(null),e=function(t){var e=Oa(Object...
function ja (line 44) | function ja(){return C.a.createElement(X,{className:"nav-bar-container"}...
FILE: dist/js/lib.5e430a5b.js
function _typeof (line 1) | function _typeof(e){"@babel/helpers - typeof";return _typeof="function"=...
function i (line 1) | function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?inv...
function e (line 1) | function e(e,n,t){this.props=e,this.context=n,this.refs=le,this.updater=...
function d (line 1) | function d(){}
function a (line 1) | function a(e,n,t){this.props=e,this.context=n,this.refs=le,this.updater=...
function o (line 1) | function o(n,t,i){var a,r={},e=null,o=null;if(null!=t)for(a in void 0!==...
function s (line 1) | function s(e,n){return{$$typeof:j,type:e.type,key:n,ref:e.ref,props:e.pr...
function p (line 1) | function p(e){return"object"===_typeof(e)&&null!==e&&e.$$typeof===j}
function c (line 1) | function c(e){var n={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g...
function m (line 1) | function m(n,t,i,a){if(he.length){var d=he.pop();return d.result=n,d.key...
function g (line 1) | function g(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,...
function k (line 1) | function k(n,t,r,o){var d=_typeof(n);("undefined"===d||"boolean"===d)&&(...
function v (line 1) | function v(e,n,t){return null==e?0:k(e,"",n,t)}
function P (line 1) | function P(e,n){return"object"===_typeof(e)&&null!==e&&null!=e.key?c(e.k...
function _ (line 1) | function _(e,n){e.func.call(e.context,n,e.count++)}
function R (line 1) | function R(n,t,i){var r=n.result,d=n.keyPrefix;n=n.func.call(n.context,t...
function O (line 1) | function O(n,t,i,a,d){var e="";null!=i&&(e=(""+i).replace(ge,"$&/")+"/")...
function S (line 1) | function S(){var e=ce.current;if(null===e)throw Error(i(321));return e}
function t (line 1) | function t(n,t){var i=n.length;n.push(t);a:for(;;){var a=Math.floor((i-1...
function T (line 1) | function T(e){return e=e[0],void 0===e?null:e}
function n (line 1) | function n(n){var t=n[0];if(void 0!==t){var i=n.pop();if(i!==t){n[0]=i;a...
function M (line 1) | function M(e,n){var t=e.sortIndex-n.sortIndex;return 0===t?e.id-n.id:t}
function E (line 1) | function E(e){for(var d=T(q);null!==d;){if(null===d.callback)n(q);else i...
function A (line 1) | function A(e){if(Ve=!1,E(e),!We)if(null!==T(Ae))We=!0,Te(U);else{var n=T...
function U (line 1) | function U(t,i){We=!1,Ve&&(Ve=!1,ve()),je=!0;var a=Fe;try{for(E(i),De=T(...
function F (line 1) | function F(e){return 1===e?-1:2===e?250:5===e?1073741823:4===e?1E4:5E3}
method unstable_now (line 1) | get unstable_now(){return Ee}
method unstable_forceFrameRate (line 1) | get unstable_forceFrameRate(){return fe}
method __interactionsRef (line 1) | get __interactionsRef(){return null}
method __subscriberRef (line 1) | get __subscriberRef(){return null}
function i (line 1) | function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?inv...
function t (line 1) | function t(){if(ei)for(var n in Br){var t=Br[n],a=ei.indexOf(n);if(!(-1<...
function r (line 1) | function r(e,n,t){if(wd[e])throw Error(i(100,e));wd[e]=n,Qr[e]=n.eventTy...
function d (line 1) | function d(){Bi=!1,qr=null,xd.apply(Xr,arguments)}
function o (line 1) | function o(){if(d.apply(this,arguments),Bi){if(Bi){var e=qr;Bi=!1,qr=nul...
function u (line 1) | function u(e,n,t){var i=e.type||"unknown-event";e.currentTarget=Gr(t),o(...
function s (line 1) | function s(e,n){if(null==n)throw Error(i(30));return null==e?n:Array.isA...
function l (line 1) | function l(e,n,t){Array.isArray(e)?e.forEach(n,t):e&&n.call(t,e)}
function p (line 1) | function p(e){if(null!==e&&(Zr=s(Zr,e)),e=Zr,Zr=null,e){if(l(e,eo),Zr)th...
function f (line 1) | function f(e,n){var t=e.stateNode;if(!t)return null;var r=Ci(t);if(!r)re...
function m (line 1) | function m(e){return null===e||"object"!==_typeof(e)?null:(e=fo&&e[fo]||...
function w (line 1) | function w(e){if(-1===e._status){e._status=0;var n=e._ctor;n=n(),e._resu...
function _ (line 1) | function _(e){if(null==e)return null;if("function"===typeof e)return e.d...
function z (line 1) | function z(n){var t="";do{a:switch(n.tag){case 3:case 4:case 6:case 7:ca...
function c (line 1) | function c(e){if(e=Jr(e)){if("function"!==typeof J)throw Error(i(280));v...
function g (line 1) | function g(e){po?mo?mo.push(e):mo=[e]:po=e}
function a (line 1) | function a(){if(po){var e=po,n=mo;if(mo=po=null,c(e),n)for(e=0;e<n.lengt...
function h (line 1) | function h(){(null!==po||null!==mo)&&(yo(),a())}
function k (line 1) | function k(e){return!!Ii.call(Oo,e)||!Ii.call(Ro,e)&&(Io.test(e)?Oo[e]=!...
function j (line 1) | function j(e,n,t,i){if(null!==t&&0===t.type)return!1;switch(_typeof(n)){...
function W (line 1) | function W(e,n,t,i){if(null===n||"undefined"===typeof n||j(e,n,t,i))retu...
function $ (line 1) | function $(n,t,i,a,d,e){this.acceptsBooleans=2===t||3===t||4===t,this.at...
function E (line 1) | function E(e){switch(_typeof(e)){case"boolean":case"number":case"object"...
function _e (line 1) | function _e(n,t,i,a){var r=zo.hasOwnProperty(t)?zo[t]:null,o=null===r?!a...
function en (line 1) | function en(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCas...
function b (line 1) | function b(n){var t=en(n)?"checked":"value",i=Object.getOwnPropertyDescr...
function nn (line 1) | function nn(e){e._valueTracker||(e._valueTracker=b(e))}
function tn (line 1) | function tn(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t...
function dn (line 1) | function dn(e,n){var t=n.checked;return Aa({},n,{defaultChecked:void 0,d...
function an (line 1) | function an(e,n){var t=null==n.defaultValue?"":n.defaultValue,i=null==n....
function rn (line 1) | function rn(e,n){n=n.checked,null!=n&&_e(e,"checked",n,!1)}
function on (line 1) | function on(e,n){rn(e,n);var t=E(n.value),i=n.type;if(null!=t)"number"==...
function un (line 1) | function un(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defau...
function sn (line 1) | function sn(e,n,t){("number"!==n||e.ownerDocument.activeElement!==e)&&(n...
function ln (line 1) | function ln(n){var t="";return e.Children.forEach(n,function(e){null!=e&...
function fn (line 1) | function fn(e,n){return e=Aa({children:void 0},n),(n=ln(n.children))&&(e...
function cn (line 1) | function cn(n,t,i,r){if(n=n.options,t){t={};for(var d=0;d<i.length;d++)t...
function pn (line 1) | function pn(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(i(91));r...
function mn (line 1) | function mn(e,n){var t=n.value;if(null==t){if(t=n.defaultValue,n=n.child...
function gn (line 1) | function gn(e,n){var t=E(n.value),i=E(n.defaultValue);null!=t&&(t=""+t,t...
function hn (line 1) | function hn(e,n){n=e.textContent,n===e._wrapperState.initialValue&&""!==...
function yn (line 1) | function yn(e){return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"...
function bn (line 1) | function bn(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?yn(n...
function xn (line 1) | function xn(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["W...
function En (line 1) | function En(e){if(Fo[e])return Fo[e];if(!Do[e])return e;var n,t=Do[e];fo...
function Tn (line 1) | function Tn(e){var n=e,t=e;if(e.alternate)for(;n["return"];)n=n["return"...
function kn (line 1) | function kn(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(e=e.al...
function vn (line 1) | function vn(e){if(Tn(e)!==e)throw Error(i(188))}
function Sn (line 1) | function Sn(n){var t=n.alternate;if(!t){if(t=Tn(n),null===t)throw Error(...
function Cn (line 1) | function Cn(e){if(e=Sn(e),!e)return null;for(var n=e;;){if(5===n.tag||6=...
function wn (line 1) | function wn(e){var n=rt(e);Ko.forEach(function(t){ot(t,e,n)}),Rd.forEach...
function Pn (line 1) | function Pn(e,n,t,i){return{blockedOn:e,topLevelType:n,eventSystemFlags:...
function Nn (line 1) | function Nn(e,n){"focus"===e||"blur"===e?ba=null:"dragenter"===e||"dragl...
function _n (line 1) | function _n(n,t,i,r,d){return null===n||n.nativeEvent!==d?(n=Pn(t,i,r,d)...
function In (line 1) | function In(n,t,i,a){switch(t){case"focus":return ba=_n(ba,n,t,i,a),!0;c...
function Rn (line 1) | function Rn(e){var n=xt(e.target);if(null!==n){var t=Tn(n);if(null!==t)i...
function On (line 1) | function On(e){if(null!==e.blockedOn)return!1;var n=it(e.topLevelType,e....
function zn (line 1) | function zn(e,n,t){On(e)&&t["delete"](n)}
function Mn (line 1) | function Mn(){for(Wo=!1;0<Vo.length;){var e=Vo[0];if(null!==e.blockedOn)...
function Ln (line 1) | function Ln(e,n){e.blockedOn===n&&(e.blockedOn=null,Wo||(Wo=!0,vo(gi,Mn)))}
function Un (line 1) | function Un(e){if(0<Vo.length){Ln(Vo[0],e);for(var n,t=1;t<Vo.length;t++...
function An (line 1) | function An(e){return e=e.target||e.srcElement||window,e.correspondingUs...
function Dn (line 1) | function Dn(e){do e=e["return"];while(e&&5!==e.tag);return e?e:null}
function Fn (line 1) | function Fn(e,n,t){(n=f(e,t.dispatchConfig.phasedRegistrationNames[n]))&...
function jn (line 1) | function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var n...
function Wn (line 1) | function Wn(e,n,t){e&&t&&t.dispatchConfig.registrationName&&(n=f(e,t.dis...
function Vn (line 1) | function Vn(e){e&&e.dispatchConfig.registrationName&&Wn(e._targetInst,nu...
function Bn (line 1) | function Bn(e){l(e,jn)}
function Hn (line 1) | function Hn(){return!0}
function $n (line 1) | function $n(){return!1}
function Qn (line 1) | function Qn(n,t,i,r){for(var d in this.dispatchConfig=n,this._targetInst...
function M (line 1) | function M(n,t,i,a){if(this.eventPool.length){var d=this.eventPool.pop()...
function qn (line 1) | function qn(e){if(!(e instanceof this))throw Error(i(279));e.destructor(...
function Kn (line 1) | function Kn(e){e.eventPool=[],e.getPooled=M,e.release=qn}
function Yn (line 1) | function Yn(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&...
function Xn (line 1) | function Xn(e){var n=this.nativeEvent;return n.getModifierState?n.getMod...
function Jn (line 1) | function Jn(){return Xn}
function Gn (line 1) | function Gn(n){var t=n.targetInst,i=t;do{if(!i){n.ancestors.push(i);brea...
function Zn (line 1) | function Zn(e,n){x(n,e,!1)}
function x (line 1) | function x(e,n,t){switch(yu(n)){case 0:var i=et.bind(null,n,1);break;cas...
function et (line 1) | function et(n,t,d){xo||yo();var i=xo;xo=!0;try{ho(dt,n,t,d)}finally{(xo=...
function nt (line 1) | function nt(e,n,t){hu(vi,dt.bind(null,e,n,t))}
function tt (line 1) | function tt(n,t,i,r){if(xu.length){var d=xu.pop();d.topLevelType=n,d.eve...
function dt (line 1) | function dt(e,n,t){if(Eu)if(0<Vo.length&&-1<Ko.indexOf(e))e=Pn(null,e,n,...
function it (line 1) | function it(n,t,i){var a=An(i);if(a=xt(a),null!==a){var r=Tn(a);if(null=...
function at (line 1) | function at(e){if(!co)return!1;e="on"+e;var n=e in document;return n||(n...
function rt (line 1) | function rt(e){var n=Tu.get(e);return void 0===n&&(n=new Set,Tu.set(e,n)...
function ot (line 1) | function ot(e,n,t){if(!t.has(e)){switch(e){case"scroll":x(n,"scroll",!0)...
function ut (line 1) | function ut(e,n,t){return null==n||"boolean"===typeof n||""===n?"":t||"n...
function st (line 1) | function st(n,t){for(var i in n=n.style,t)if(t.hasOwnProperty(i)){var r=...
function lt (line 1) | function lt(e,n){if(n){if(Su[e]&&(null!=n.children||null!=n.dangerouslyS...
function ae (line 1) | function ae(e,n){if(-1===e.indexOf("-"))return"string"===typeof n.is;ret...
function be (line 1) | function be(e,n){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var...
function ft (line 1) | function ft(){}
function ct (line 1) | function ct(e){if(e=e||("undefined"===typeof document?void 0:document),"...
function ce (line 1) | function ce(e){for(;e&&e.firstChild;)e=e.firstChild;return e}
function pt (line 1) | function pt(e,n){var t=ce(e);e=0;for(var i;t;){if(3===t.nodeType){if(i=e...
function mt (line 1) | function mt(e,n){return!!(e&&n)&&(!(e!==n)||!(e&&3===e.nodeType)&&(n&&3=...
function gt (line 1) | function gt(){for(var e=window,n=ct();n instanceof e.HTMLIFrameElement;)...
function ht (line 1) | function ht(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(...
function de (line 1) | function de(e,n){return!("button"!==e&&"input"!==e&&"select"!==e&&"texta...
function yt (line 1) | function yt(e,n){return"textarea"===e||"option"===e||"noscript"===e||"st...
function ee (line 1) | function ee(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||...
function bt (line 1) | function bt(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===Ao){v...
function xt (line 1) | function xt(e){var n=e[Ru];if(n)return n;for(var t=e.parentNode;t;){if(n...
function Et (line 1) | function Et(e){return e=e[Ru]||e[Ou],e&&(5===e.tag||6===e.tag||13===e.ta...
function Tt (line 1) | function Tt(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(...
function kt (line 1) | function kt(e){return e[Ba]||null}
function he (line 1) | function he(){if(Lu)return Lu;var n,t,i=Mu,r=i.length,o="value"in zu?zu....
function vt (line 1) | function vt(e,n){return"keyup"===e?-1!==Du.indexOf(n.keyCode):"keydown"=...
function St (line 1) | function St(e){return e=e.detail,"object"===_typeof(e)&&"data"in e?e.dat...
function Ct (line 1) | function Ct(e,n){return"compositionend"===e?St(n):"keypress"===e?32===n....
function wt (line 1) | function wt(e,n){if(Hu)return"compositionend"===e||!Fu&&vt(e,n)?(e=he(),...
function Pt (line 1) | function Pt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"inpu...
function Nt (line 1) | function Nt(e,n,t){return e=Qn.getPooled(Qu.change,e,n,t),e.type="change...
function _t (line 1) | function _t(e){p(e)}
function It (line 1) | function It(e){var n=Tt(e);if(tn(n))return e}
function Rt (line 1) | function Rt(e,n){if("change"===e)return n}
function Ot (line 1) | function Ot(){qu&&(qu.detachEvent("onpropertychange",zt),Ku=qu=null)}
function zt (line 1) | function zt(e){if("value"===e.propertyName&&It(Ku))if(e=Nt(Ku,e,An(e)),x...
function Mt (line 1) | function Mt(e,n,t){"focus"===e?(Ot(),qu=n,Ku=t,qu.attachEvent("onpropert...
function Lt (line 1) | function Lt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)retu...
function Ut (line 1) | function Ut(e,n){if("click"===e)return It(n)}
function At (line 1) | function At(e,n){if("input"===e||"change"===e)return It(n)}
function Dt (line 1) | function Dt(e,n){if(Zu(e,n))return!0;if("object"!==_typeof(e)||null===e|...
function Ft (line 1) | function Ft(e,n){var t=n.window===n?n.document:9===n.nodeType?n:n.ownerD...
function jt (line 1) | function jt(e){0>ne||(e.current=rs[ne],rs[ne]=null,ne--)}
function B (line 1) | function B(e,n){ne++,rs[ne]=e.current,e.current=n}
function y (line 1) | function y(n,t){var i=n.type.contextTypes;if(!i)return os;var r=n.stateN...
function Wt (line 1) | function Wt(e){return e=e.childContextTypes,null!==e&&void 0!==e}
function K (line 1) | function K(e){jt(L,e),jt(Da,e)}
function Vt (line 1) | function Vt(e){jt(L,e),jt(Da,e)}
function oe (line 1) | function oe(e,n,t){if(Da.current!==os)throw Error(i(168));B(Da,n,e),B(L,...
function Bt (line 1) | function Bt(n,t,r){var o=n.stateNode;if(n=t.childContextTypes,"function"...
function Ht (line 1) | function Ht(e){var n=e.stateNode;return n=n&&n.__reactInternalMemoizedMe...
function $t (line 1) | function $t(e,n,t){var a=e.stateNode;if(!a)throw Error(i(169));t?(n=Bt(e...
function Qt (line 1) | function Qt(){switch(ls()){case fs:return 99;case cs:return 98;case ps:r...
function pe (line 1) | function pe(e){switch(e){case 99:return fs;case 98:return cs;case 97:ret...
function qt (line 1) | function qt(e,n){return e=pe(e),us(e,n)}
function Kt (line 1) | function Kt(e,n,t){return e=pe(e),ss(e,n,t)}
function Yt (line 1) | function Yt(e){return null===xs?(xs=[e],Es=ss(fs,Jt)):xs.push(e),hs}
function Xt (line 1) | function Xt(){if(null!==Es){var e=Es;Es=null,qe(e)}Jt()}
function Jt (line 1) | function Jt(){if(!Ts&&null!==xs){Ts=!0;var e=0;try{var n=xs;qt(99,functi...
function Gt (line 1) | function Gt(e,n,t){return t/=10,1073741821-((0|(1073741821-e+n/10)/t)+1)*t}
function Zt (line 1) | function Zt(e,n){if(e&&e.defaultProps)for(var t in n=Aa({},n),e=e.defaul...
function V (line 1) | function V(){Cs=Ss=te=null}
function se (line 1) | function se(e,n){var t=e.type._context;B(vs,t._currentValue,e),t._curren...
function Ed (line 1) | function Ed(e){var n=vs.current;jt(vs,e),e.type._context._currentValue=n}
function ue (line 1) | function ue(e,n){for(;null!==e;){var t=e.alternate;if(e.childExpirationT...
function Td (line 1) | function Td(e,n){te=e,Cs=Ss=null,e=e.dependencies,null!==e&&null!==e.fir...
function Sd (line 1) | function Sd(e,n){if(Cs!==e&&!1!==n&&0!==n)if(("number"!==typeof n||10737...
function Nd (line 1) | function Nd(e){return{baseState:e,firstUpdate:null,lastUpdate:null,first...
function _d (line 1) | function _d(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,la...
function ve (line 1) | function ve(e,n){return{expirationTime:e,suspenseConfig:n,tag:ws,payload...
function Id (line 1) | function Id(e,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=n:(e.las...
function Od (line 1) | function Od(n,t){var i=n.alternate;if(null===i){var a=n.updateQueue,r=nu...
function zd (line 1) | function zd(e,n){var t=e.updateQueue;t=null===t?e.updateQueue=Nd(e.memoi...
function Md (line 1) | function Md(e,n){var t=e.alternate;return null!==t&&n===t.updateQueue&&(...
function Ld (line 1) | function Ld(n,t,i,r,d,o){switch(i.tag){case 1:return n=i.payload,"functi...
function Vd (line 1) | function Vd(t,i,a,r,d){Ns=!1,i=Md(t,i);for(var e,o=i.baseState,u=null,s=...
function Qd (line 1) | function Qd(e,n,t){null!==n.firstCapturedUpdate&&(null!==n.lastUpdate&&(...
function Kd (line 1) | function Kd(e,n){for(;null!==e;){var t=e.callback;if(null!==t){e.callbac...
function Yd (line 1) | function Yd(e,n,t,i){n=e.memoizedState,t=t(i,n),t=null===t||void 0===t?n...
function Xd (line 1) | function Xd(n,t,i,r,d,e,o){return n=n.stateNode,"function"===typeof n.sh...
function Jd (line 1) | function Jd(n,t,i,r){var o=!1;r=os;var u=t.contextType;return"object"===...
function Gd (line 1) | function Gd(e,n,t,i){e=n.state,"function"===typeof n.componentWillReceiv...
function Zd (line 1) | function Zd(n,t,i,a){var d=n.stateNode;d.props=i,d.state=n.memoizedState...
function we (line 1) | function we(n,t,r){if(n=r.ref,null!==n&&"function"!==typeof n&&"object"!...
function Ti (line 1) | function Ti(e,n){if("textarea"!==e.type)throw Error(i(31,"[object Object...
function Ni (line 1) | function Ni(o){function u(e,n){if(o){var t=e.lastEffect;null===t?e.first...
function _i (line 1) | function _i(e){if(e===Ke)throw Error(i(174));return e}
function Ri (line 1) | function Ri(e,n){B(Ls,n,e),B(fa,e,e),B(Ms,Ke,e);var t=n.nodeType;9===t||...
function ze (line 1) | function ze(e){jt(Ms,e),jt(fa,e),jt(Ls,e)}
function Oi (line 1) | function Oi(e){_i(Ls.current);var n=_i(Ms.current),t=bn(n,e.type);n!==t&...
function Mi (line 1) | function Mi(e){fa.current===e&&(jt(Ms,e),jt(fa,e))}
function Ae (line 1) | function Ae(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedSta...
function bd (line 1) | function bd(e,n){return{responder:e,props:n}}
function Li (line 1) | function Li(){throw Error(i(321))}
function N (line 1) | function N(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;...
function Be (line 1) | function Be(n,t,r,o,d,e){if(U=e,As=t,Fs=null===n?null:n.memoizedState,A....
function Ce (line 1) | function Ce(){A.current=Ys,U=0,Vs=Ws=js=Fs=Ds=As=null,Bs=0,Hs=null,$s=0,...
function Ai (line 1) | function Ai(){var e={memoizedState:null,baseState:null,queue:null,baseUp...
function Di (line 1) | function Di(){if(null!==Vs)Ws=Vs,Vs=Ws.next,Ds=Fs,Fs=null===Ds?null:Ds.n...
function Fi (line 1) | function Fi(e,n){return"function"===typeof n?n(e):n}
function Wi (line 1) | function Wi(n,t,a){if(t=Di(),a=t.queue,null===a)throw Error(i(311));if(a...
function Vi (line 1) | function Vi(e){var n=Ai();return"function"===typeof e&&(e=e()),n.memoize...
function De (line 1) | function De(e){return Wi(Fi,e)}
function Ee (line 1) | function Ee(e,n,t,i){return e={tag:e,create:n,destroy:t,deps:i,next:null...
function Fe (line 1) | function Fe(n,t,i,a){var d=Ai();$s|=n,d.memoizedState=Ee(t,i,void 0,void...
function Ge (line 1) | function Ge(n,t,i,a){var r=Di();a=void 0===a?null:a;var e;if(null!==Ds){...
function He (line 1) | function He(e,n){return Fe(516,192,e,n)}
function Hi (line 1) | function Hi(e,n){return Ge(516,192,e,n)}
function Qi (line 1) | function Qi(e,n){return"function"===typeof n?(e=e(),n(e),function(){n(nu...
function Ki (line 1) | function Ki(){}
function Yi (line 1) | function Yi(e,n){return Ai().memoizedState=[e,void 0===n?null:n],e}
function Xi (line 1) | function Xi(e,n){var t=Di();n=void 0===n?null:n;var i=t.memoizedState;re...
function Ji (line 1) | function Ji(n,t,r){if(!(25>Ks))throw Error(i(301));var o=n.alternate;if(...
function Zi (line 1) | function Zi(e,n){var t=Al(5,null,null,0);t.elementType="DELETED",t.type=...
function ea (line 1) | function ea(e,n){switch(e.tag){case 5:var t=e.type;return n=1!==n.nodeTy...
function na (line 1) | function na(e){if(Zs){var n=Gs;if(n){var t=n;if(!ea(e,n)){if(n=ee(t.next...
function Ie (line 1) | function Ie(e){for(e=e["return"];null!==e&&5!==e.tag&&3!==e.tag&&13!==e....
function ua (line 1) | function ua(e){if(e!==Js)return!1;if(!Zs)return Ie(e),Zs=!0,!1;var n=e.t...
function ed (line 1) | function ed(){Gs=Js=null,Zs=!1}
function Je (line 1) | function Je(e,n,t,i){n.child=null===e?zs(n,null,t,i):ad(n,e.child,t,i)}
function P (line 1) | function P(n,t,i,a,r){i=i.render;var e=t.ref;return(Td(t,r),a=Be(n,t,i,a...
function la (line 1) | function la(n,t,i,r,d,o){if(null===n){var u=i.type;return"function"!==ty...
function ca (line 1) | function ca(n,t,i,a,d,e){return null!==n&&Dt(n.memoizedProps,a)&&n.ref==...
function ma (line 1) | function ma(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&...
function ga (line 1) | function ga(n,t,i,a,d){var e=Wt(i)?Q:Da.current;return(e=y(t,e),Td(t,d),...
function Me (line 1) | function Me(t,i,a,r,o){if(Wt(a)){var e=!0;Ht(i)}else e=!1;if(Td(i,o),nul...
function Ea (line 1) | function Ea(n,t,i,a,r,e){ma(n,t);var o=0!==(64&t.effectTag);if(!a&&!o)re...
function Ne (line 1) | function Ne(e){var n=e.stateNode;n.pendingContext?oe(e,n.pendingContext,...
function wa (line 1) | function wa(n,t,i){var r,o=t.mode,u=t.pendingProps,s=Us.current,l=!1;if(...
function Na (line 1) | function Na(e,n){e.expirationTime<n&&(e.expirationTime=n);var t=e.altern...
function _a (line 1) | function _a(n,t,i,a,d,e){var r=n.memoizedState;null===r?n.memoizedState=...
function Pe (line 1) | function Pe(n,t,i){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(Je(n...
function Ua (line 1) | function Ua(e,n,t){null!==e&&(n.dependencies=e.dependencies);var r=n.exp...
function ra (line 1) | function ra(e){e.effectTag|=4}
function Fa (line 1) | function Fa(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null...
function fd (line 1) | function fd(e,n){switch(e.tag){case 1:return Wt(e.type)&&K(e),n=e.effect...
function Qa (line 1) | function Qa(e,n){return{value:e,source:n,stack:z(n)}}
function Qe (line 1) | function Qe(e,n){var t=n.source,i=n.stack;null===i&&null!==t&&(i=z(t)),n...
function Re (line 1) | function Re(e,n){try{n.props=e.memoizedProps,n.state=e.memoizedState,n.c...
function er (line 1) | function er(e){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(nu...
function nr (line 1) | function nr(e,n){switch(n.tag){case 0:case 11:case 15:tr(2,0,n);break;ca...
function tr (line 1) | function tr(n,t,i){if(i=i.updateQueue,i=null===i?null:i.lastEffect,null!...
function dr (line 1) | function dr(e,n,t){switch("function"===typeof Ul&&Ul(n),n.tag){case 0:ca...
function ir (line 1) | function ir(e){var n=e.alternate;e["return"]=null,e.child=null,e.memoize...
function ar (line 1) | function ar(e){return 5===e.tag||3===e.tag||4===e.tag}
function rr (line 1) | function rr(n){a:{for(var t=n["return"];null!==t;){if(ar(t)){var a=t;bre...
function or (line 1) | function or(n,t,a){for(var r,o,u=t,s=!1;;){if(!s){s=u["return"];a:for(;;...
function ur (line 1) | function ur(n,t){switch(t.tag){case 0:case 11:case 14:case 15:tr(4,8,t);...
function Te (line 1) | function Te(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t...
function sr (line 1) | function sr(e,n,t){t=ve(t,null),t.tag=3,t.payload={element:null};var i=n...
function lr (line 1) | function lr(n,t,i){i=ve(i,null),i.tag=3;var a=n.type.getDerivedStateFrom...
function fr (line 1) | function fr(){return($e&(sl|Z))===ai?0===zl?zl=1073741821-(0|wi()/10):zl...
function X (line 1) | function X(e,n,t){if(n=n.mode,0===(2&n))return 1073741823;var r=Qt();if(...
function Va (line 1) | function Va(n,t){n.expirationTime<t&&(n.expirationTime=t);var i=n.altern...
function id (line 1) | function id(e){var n=e.lastExpiredTime;return 0===n?(n=e.firstPendingTim...
function kd (line 1) | function kd(n){if(0!==n.lastExpiredTime)n.callbackExpirationTime=1073741...
function T (line 1) | function T(n,t){if(zl=0,t)return t=fr(),Ur(n,t),kd(n),null;var a=id(n);i...
function cr (line 1) | function cr(n){var e=n.lastExpiredTime;if(e=0===e?1073741823:e,n.finishe...
function We (line 1) | function We(){if(null!==Il){var e=Il;Il=null,e.forEach(function(e,n){Ur(...
function pr (line 1) | function pr(e,n){var t=$e;$e|=1;try{return e(n)}finally{$e=t,$e===ai&&Xt...
function mr (line 1) | function mr(e,n){var t=$e;$e&=-2,$e|=F;try{return e(n)}finally{$e=t,$e==...
function gr (line 1) | function gr(n,t){n.finishedWork=null,n.finishedExpirationTime=0;var i=n....
function Za (line 1) | function Za(i,a){do{try{if(V(),Ce(),null===cl||null===cl["return"])retur...
function hr (line 1) | function hr(e){return e=ul.current,ul.current=Ys,null===e?Ys:e}
function yr (line 1) | function yr(e,n){e<hl&&2<e&&(hl=e),null!==n&&e<yl&&2<e&&(yl=e,bl=n)}
function br (line 1) | function br(e){e>xl&&(xl=e)}
function xr (line 1) | function xr(){for(;null!==cl;)cl=Tr(cl)}
function Er (line 1) | function Er(){for(;null!==cl&&!ys();)cl=Tr(cl)}
function Tr (line 1) | function Tr(e){var n=Ja(e.alternate,e,pl);return e.memoizedProps=e.pendi...
function kr (line 1) | function kr(t){cl=t;do{var r=cl.alternate;if(t=cl["return"],0===(2048&cl...
function vr (line 1) | function vr(e){var n=e.expirationTime;return e=e.childExpirationTime,n>e...
function Ye (line 1) | function Ye(e){var n=Qt();return qt(99,Ma.bind(null,e,n)),null}
function Ma (line 1) | function Ma(n,o){do Cr();while(null!==Nl);if(($e&(sl|Z))!==ai)throw Erro...
function Sr (line 1) | function Sr(){for(;null!==vl;){var e=vl.effectTag;0!==(256&e)&&nr(vl.alt...
function Cr (line 1) | function Cr(){if(90!==_l){var e=97<_l?97:_l;return _l=90,qt(e,wr)}}
function wr (line 1) | function wr(){if(null===Nl)return!1;var e=Nl;if(Nl=null,($e&(sl|Z))!==ai...
function Pr (line 1) | function Pr(e,n,t){n=Qa(t,n),n=sr(e,n,1073741823),Od(e,n),e=Va(e,1073741...
function ci (line 1) | function ci(e,n){if(3===e.tag)Pr(e,e,n);else for(var t=e["return"];null!...
function Xa (line 1) | function Xa(e,n,t){var i=e.pingCache;null!==i&&i["delete"](n),fl===e&&pl...
function Nr (line 1) | function Nr(e,n){var t=e.stateNode;null!==t&&t["delete"](n),n=0,0===n&&(...
function _r (line 1) | function _r(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)re...
function Ir (line 1) | function Ir(e,n,t,i){this.tag=e,this.key=t,this.sibling=this.child=this[...
function Rr (line 1) | function Rr(e){return e=e.prototype,e&&e.isReactComponent}
function Le (line 1) | function Le(e){if("function"===typeof e)return Rr(e)?1:0;if(void 0!==e&&...
function Or (line 1) | function Or(e,n,t){return t=e.alternate,null===t?(t=Al(e.tag,n,e.key,e.m...
function Ta (line 1) | function Ta(n,t,r,o,u,s){var l=2;if(o=n,"function"===typeof n)Rr(n)&&(l=...
function zr (line 1) | function zr(e,n,t,i){return e=Al(7,e,i,n),e.expirationTime=t,e}
function Ha (line 1) | function Ha(e,n,t){return e=Al(6,e,null,n),e.expirationTime=t,e}
function xe (line 1) | function xe(e,n,t){return n=Al(4,null===e.children?[]:e.children,e.key,n...
function ye (line 1) | function ye(e,n,t){this.tag=n,this.current=null,this.containerInfo=e,thi...
function Mr (line 1) | function Mr(e,n){var t=e.firstSuspendedTime;return e=e.lastSuspendedTime...
function Lr (line 1) | function Lr(e,n){var t=e.firstSuspendedTime,i=e.lastSuspendedTime;t<n&&(...
function Ya (line 1) | function Ya(e,n){n>e.firstPendingTime&&(e.firstPendingTime=n);var t=e.fi...
function Ur (line 1) | function Ur(e,n){var t=e.lastExpiredTime;(0===t||t>n)&&(e.lastExpiredTim...
function Xe (line 1) | function Xe(n,t,a,r){var o=t.current,e=fr(),u=_s.suspense;e=X(e,o,u);a:i...
function sd (line 1) | function sd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){c...
function Ar (line 1) | function Ar(e,n){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retr...
function di (line 1) | function di(e,n){Ar(e,n),(e=e.alternate)&&Ar(e,n)}
function Dr (line 1) | function Dr(n,t,i){i=null!=i&&!0===i.hydrate;var a=new ye(n,t,i),d=Al(3,...
function Fr (line 1) | function Fr(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeTyp...
function jr (line 1) | function jr(e,n){if(n||(n=e?9===e.nodeType?e.documentElement:e.firstChil...
function Wr (line 1) | function Wr(n,t,i,a,d){var r=i._reactRootContainer;if(r){var o=r._intern...
function td (line 1) | function td(e,n,t){var i=3<arguments.length&&void 0!==arguments[3]?argum...
function Vr (line 1) | function Vr(e,n){var t=2<arguments.length&&void 0!==arguments[2]?argumen...
function n (line 1) | function n(){return t.apply(this,arguments)}
function i (line 1) | function i(a){if(n[a])return n[a].exports;var t=n[a]={i:a,l:!1,exports:{...
function n (line 1) | function n(e){return e&&e.__esModule?e:{default:e}}
function o (line 1) | function o(d,t){var e="data-clipboard-"+d;if(t.hasAttribute(e))return t....
function d (line 1) | function d(d,t){for(var e,i=0;i<t.length;i++)e=t[i],e.enumerable=e.enume...
function d (line 1) | function d(i,t){!function(n,t){if(!(n instanceof t))throw new TypeError(...
function d (line 1) | function d(d,t){for(var e,i=0;i<t.length;i++)e=t[i],e.enumerable=e.enume...
function n (line 1) | function n(e){!function(n,t){if(!(n instanceof t))throw new TypeError("C...
function t (line 1) | function t(){}
function n (line 1) | function n(){i.off(d,n),t.apply(e,arguments)}
function u (line 1) | function u(d,t,e,n,a){var r=function(d,e,n,a){return function(n){n.deleg...
function e (line 1) | function e(e){function t(e){var n=e.charCodeAt(0);if(92!==n)return n;var...
function n (line 1) | function n(e,n){function t(e){var u=e.nodeType;if(1==u){if(d.test(e.clas...
function t (line 1) | function t(e,n,t,d,i){if(t){var a={sourceNode:e,pre:1,langExtension:null...
function d (line 1) | function d(e){for(var n,t=void 0,d=e.firstChild;d;d=d.nextSibling)n=d.no...
function i (line 1) | function i(d,a){var r,o={};(function(){for(var t=d.concat(a),u=[],s={},l...
function a (line 1) | function a(e){var n=[],t=[];e.tripleQuotedStrings?n.push([w,/^(?:\'\'\'(...
function r (line 1) | function r(e,t,d){function a(e){var n=e.nodeType;if(1==n&&!o.test(e.clas...
function o (line 1) | function o(e){var n=/\bMSIE\s(\d+)/.exec(navigator.userAgent);n=n&&8>=+n...
function u (line 1) | function u(e,n){for(var t,d=n.length;0<=--d;)t=n[d],W.hasOwnProperty(t)?...
function s (line 1) | function s(e,n){return e&&W.hasOwnProperty(e)||(e=/^\s*</.test(n)?"defau...
function l (line 1) | function l(e){var t=e.langExtension;try{var d=n(e.sourceNode,e.pre),i=d....
function f (line 1) | function f(e,n,t){var d=t||!1,i=document.createElement("div");i.innerHTM...
function c (line 1) | function c(e,t){function a(e){return u.getElementsByTagName(e)}function ...
function d (line 1) | function d(d,e){for(var t,i=0;i<e.length;i++)t=e[i],t.enumerable=t.enume...
function d (line 1) | function d(e){var n=!(1<arguments.length&&void 0!==arguments[1])||argume...
function i (line 1) | function i(t){a(this,i),this.ctx=t,this.ie=!1;var e=window.navigator.use...
FILE: dist/js/lib.js
function v (line 9) | function v(a){for(var b="https://reactjs.org/docs/error-decoder.html?inv...
function m (line 9) | function m(a,
function fa (line 10) | function fa(){}
function M (line 10) | function M(a,b,c){this.props=a;this.context=b;this.refs=da;this.updater=...
function ha (line 10) | function ha(a,b,c){var d,e={},p=null,f=null;if(null!=b)for(d in void 0!=...
function wa (line 11) | function wa(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.p...
function O (line 11) | function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===y}
function xa (line 11) | function xa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/...
function ka (line 11) | function ka(a,b,c,d){if(D.length){var e=D.pop();e.result=a;e.keyPrefix=b...
function la (line 12) | function la(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null...
function P (line 12) | function P(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=n...
function R (line 13) | function R(a,b,c){return null==a?0:P(a,"",b,c)}
function Q (line 13) | function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?xa(a.ke...
function za (line 13) | function za(a,b,c){a.func.call(a.context,b,a.count++)}
function Aa (line 13) | function Aa(a,
function S (line 14) | function S(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(na,"$&/")+"/")...
function t (line 14) | function t(){var a=oa.current;if(null===a)throw Error(v(321));return a}
function T (line 14) | function T(a,b){var c=a.length;a.push(b);a:for(;;){var d=Math.floor((c-1...
function n (line 15) | function n(a){a=a[0];return void 0===a?null:a}
function F (line 15) | function F(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a...
function E (line 15) | function E(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}
function G (line 15) | function G(a){for(var b=n(u);null!==b;){if(null===
function U (line 16) | function U(a){z=!1;G(a);if(!w)if(null!==n(q))w=!0,A(V);else{var b=n(u);n...
function V (line 16) | function V(a,b){w=!1;z&&(z=!1,W());I=!0;var c=h;try{G(b);for(l=n(q);null...
function pa (line 17) | function pa(a){switch(a){case 1:return-1;case 2:return 250;case 5:return...
method unstable_now (line 27) | get unstable_now(){return r}
method unstable_forceFrameRate (line 27) | get unstable_forceFrameRate(){return Z}
method __interactionsRef (line 27) | get __interactionsRef(){return null}
method __subscriberRef (line 27) | get __subscriberRef(){return null}
function m (line 45) | function m(a){for(var b="https://reactjs.org/docs/error-decoder.html?inv...
function uf (line 46) | function uf(){if(qc)for(var a in bb){var b=bb[a],c=qc.indexOf(a);if(!(-1...
function vf (line 46) | function vf(a,b,c){if(cb[a])throw Error(m(100,
function Ai (line 47) | function Ai(a,b,c,d,e,f,g,h,k){Cb=!1;sc=null;Bi.apply(Ci,arguments)}
function Di (line 47) | function Di(a,b,c,d,e,f,g,h,k){Ai.apply(this,arguments);if(Cb){if(Cb){va...
function wf (line 47) | function wf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=xf(c);D...
function db (line 47) | function db(a,b){if(null==b)throw Error(m(30));if(null==a)return b;if(Ar...
function zd (line 48) | function zd(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}
function uc (line 48) | function uc(a){null!==a&&(Db=db(Db,a));a=Db;Db=null;if(a){zd(a,Ei);if(Db...
function yf (line 48) | function yf(a,b){var c=a.stateNode;if(!c)return null;var d=Ad(c);if(!d)r...
function Eb (line 49) | function Eb(a){if(null===a||"object"!==typeof a)return null;a=zf&&a[zf]|...
function Fi (line 49) | function Fi(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._res...
function ua (line 50) | function ua(a){if(null==a)return null;if("function"===typeof a)return a....
function Ed (line 51) | function Ed(a){var b="";do{a:switch(a.tag){case 3:case 4:case 6:case 7:c...
function Ef (line 51) | function Ef(a){if(a=Ff(a)){if("function"!==
function Gf (line 52) | function Gf(a){fb?gb?gb.push(a):gb=[a]:fb=a}
function Hf (line 52) | function Hf(){if(fb){var a=fb,b=gb;gb=fb=null;Ef(a);if(b)for(a=0;a<b.len...
function Gd (line 52) | function Gd(){if(null!==fb||null!==gb)Hd(),Hf()}
function Hi (line 52) | function Hi(a){if(If.call(Jf,a))return!0;if(If.call(Kf,a))return!1;if(Ii...
function Ji (line 52) | function Ji(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){c...
function Ki (line 53) | function Ki(a,b,c,d){if(null===b||"undefined"===typeof b||Ji(a,b,c,d))re...
function E (line 53) | function E(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.at...
function wa (line 54) | function wa(a){switch(typeof a){case "boolean":case "number":case "objec...
function Id (line 54) | function Id(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?...
function Lf (line 55) | function Lf(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCas...
function Li (line 55) | function Li(a){var b=Lf(a)?"checked":"value",c=Object.getOwnPropertyDesc...
function xc (line 56) | function xc(a){a._valueTracker||(a._valueTracker=Li(a))}
function Mf (line 56) | function Mf(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c...
function Jd (line 56) | function Jd(a,
function Nf (line 57) | function Nf(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b....
function Of (line 57) | function Of(a,b){b=b.checked;null!=b&&Id(a,"checked",b,!1)}
function Kd (line 57) | function Kd(a,b){Of(a,b);var c=wa(b.value),
function Pf (line 58) | function Pf(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defau...
function Ld (line 59) | function Ld(a,b,c){if("number"!==b||a.ownerDocument.activeElement!==a)nu...
function Mi (line 59) | function Mi(a){var b="";la.Children.forEach(a,function(a){null!=a&&(b+=a...
function Md (line 60) | function Md(a,b){a=J({children:void 0},b);if(b=Mi(b.children))a.children...
function hb (line 60) | function hb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b...
function Nd (line 60) | function Nd(a,b){if(null!=
function Qf (line 61) | function Qf(a,b){var c=b.value;if(null==c){c=b.defaultValue;b=b.children...
function Rf (line 61) | function Rf(a,b){var c=wa(b.value),d=wa(b.defaultValue);null!=c&&(c=""+c...
function Sf (line 62) | function Sf(a,b){b=a.textContent;b===a._wrapperState.initialValue&&""!==...
function Tf (line 62) | function Tf(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";c...
function Od (line 62) | function Od(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Tf(b...
function yc (line 62) | function yc(a,b){var c=
function zc (line 63) | function zc(a){if(Pd[a])return Pd[a];if(!ib[a])return a;var b=ib[a],c;fo...
function Na (line 63) | function Na(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else...
function Vf (line 63) | function Vf(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alter...
function Wf (line 64) | function Wf(a){if(Na(a)!==a)throw Error(m(188));}
function Ni (line 64) | function Ni(a){var b=a.alternate;if(!b){b=Na(a);if(null===b)throw Error(...
function Xf (line 65) | function Xf(a){a=Ni(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6=...
function Oi (line 66) | function Oi(a){var b=Qd(a);Rd.forEach(function(c){Sd(c,a,b)});Pi.forEach...
function Td (line 66) | function Td(a,b,c,d){return{blockedOn:a,topLevelType:b,eventSystemFlags:...
function Yf (line 66) | function Yf(a,b){switch(a){case "focus":case "blur":xa=null;break;case "...
function Hb (line 67) | function Hb(a,b,c,d,e){if(null===a||a.nativeEvent!==e)return a=Td(b,c,d,...
function Qi (line 67) | function Qi(a,b,c,d){switch(b){case "focus":return xa=Hb(xa,a,b,c,d),!0;...
function Ri (line 67) | function Ri(a){var b=
function Ac (line 68) | function Ac(a){if(null!==a.blockedOn)return!1;var b=Vd(a.topLevelType,a....
function $f (line 68) | function $f(a,b,c){Ac(a)&&c.delete(b)}
function Ti (line 68) | function Ti(){for(Wd=!1;0<ba.length;){var a=
function Kb (line 69) | function Kb(a,b){a.blockedOn===b&&(a.blockedOn=null,Wd||(Wd=!0,ag(bg,Ti)))}
function cg (line 69) | function cg(a){if(0<ba.length){Kb(ba[0],a);for(var b=1;b<ba.length;b++){...
function Xd (line 70) | function Xd(a){a=a.target||a.srcElement||window;a.correspondingUseElemen...
function ma (line 70) | function ma(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}
function dg (line 70) | function dg(a,b,c){if(b=yf(a,c.dispatchConfig.phasedRegistrationNames[b]...
function Vi (line 71) | function Vi(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b...
function Yd (line 71) | function Yd(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=yf(a,c.di...
function Wi (line 71) | function Wi(a){a&&a.dispatchConfig.registrationName&&
function jb (line 72) | function jb(a){zd(a,Vi)}
function Bc (line 72) | function Bc(){return!0}
function Cc (line 72) | function Cc(){return!1}
function M (line 72) | function M(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.native...
function Xi (line 72) | function Xi(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();
function Yi (line 73) | function Yi(a){if(!(a instanceof this))throw Error(m(279));a.destructor(...
function eg (line 73) | function eg(a){a.eventPool=[];a.getPooled=Xi;a.release=Yi}
function Dc (line 73) | function Dc(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===...
function Zi (line 73) | function Zi(a){var b=this.nativeEvent;return b.getModifierState?b.getMod...
function Zd (line 73) | function Zd(a){return Zi}
function aj (line 73) | function aj(a){var b=
function x (line 74) | function x(a,b){Mb(b,a,
function Mb (line 75) | function Mb(a,b,c){switch(bj(b)){case 0:var d=cj.bind(null,b,1);break;ca...
function cj (line 75) | function cj(a,b,c){Oa||Hd();var d=Ec,e=Oa;Oa=!0;try{fg(d,a,b,c)}finally{...
function dj (line 75) | function dj(a,b,c){ej(fj,Ec.bind(null,a,b,c))}
function gg (line 75) | function gg(a,b,c,d){if(Fc.length){var e=Fc.pop();e.topLevelType=a;e.eve...
function Ec (line 76) | function Ec(a,b,c){if(Gc)if(0<ba.length&&-1<Rd.indexOf(a))a=Td(null,a,b,...
function Vd (line 76) | function Vd(a,b,c){var d=Xd(c);d=Jb(d);if(null!==d){var e=Na(d);if(null===
function ig (line 77) | function ig(a){if(!Aa)return!1;a="on"+a;var b=a in document;b||(b=docume...
function Qd (line 77) | function Qd(a){var b=jg.get(a);void 0===b&&(b=new Set,jg.set(a,b));retur...
function Sd (line 77) | function Sd(a,b,c){if(!c.has(a)){switch(a){case "scroll":Mb(b,
function kg (line 78) | function kg(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"n...
function lg (line 78) | function lg(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=...
function ae (line 79) | function ae(a,b){if(b){if(hj[a]&&(null!=b.children||null!=b.dangerouslyS...
function be (line 79) | function be(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;swi...
function na (line 80) | function na(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var...
function Hc (line 80) | function Hc(){}
function ce (line 80) | function ce(a){a=a||("undefined"!==typeof document?document:void 0);if("...
function mg (line 80) | function mg(a){for(;a&&a.firstChild;)a=a.firstChild;return a}
function ng (line 80) | function ng(a,b){var c=mg(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c....
function og (line 81) | function og(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.node...
function pg (line 81) | function pg(){for(var a=window,b=ce();b instanceof a.HTMLIFrameElement;)...
function de (line 82) | function de(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(...
function qg (line 82) | function qg(a,b){switch(a){case "button":case "input":case "select":case...
function ee (line 82) | function ee(a,b){return"textarea"===a||"option"===a||"noscript"===a||"st...
function kb (line 83) | function kb(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||...
function rg (line 83) | function rg(a){a=a.previousSibling;for(var b=0;a;){if(a.nodeType===Pa){v...
function Jb (line 83) | function Jb(a){var b=a[Ba];if(b)return b;for(var c=a.parentNode;c;){if(b...
function Ib (line 84) | function Ib(a){a=a[Ba]||a[Pb];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag...
function Qa (line 84) | function Qa(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(m(...
function he (line 84) | function he(a){return a[Ic]||null}
function ug (line 84) | function ug(){if(Jc)return Jc;var a,b=ie,c=b.length,d,e="value"in Ca?Ca....
function vg (line 84) | function vg(a,
function wg (line 85) | function wg(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:n...
function jj (line 85) | function jj(a,b){switch(a){case "compositionend":return wg(b);case "keyp...
function kj (line 85) | function kj(a,b){if(lb)return"compositionend"===a||!je&&vg(a,b)?
function Ag (line 86) | function Ag(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"inpu...
function Bg (line 86) | function Bg(a,b,c){a=M.getPooled(Cg.change,a,b,c);a.type="change";
function mj (line 87) | function mj(a){uc(a)}
function Kc (line 87) | function Kc(a){var b=Qa(a);if(Mf(b))return a}
function nj (line 87) | function nj(a,b){if("change"===a)return b}
function Dg (line 87) | function Dg(){Qb&&(Qb.detachEvent("onpropertychange",Eg),Rb=Qb=null)}
function Eg (line 87) | function Eg(a){if("value"===a.propertyName&&Kc(Rb))if(a=Bg(Rb,a,Xd(a)),O...
function oj (line 87) | function oj(a,b,c){"focus"===a?(Dg(),Qb=b,Rb=c,Qb.attachEvent("onpropert...
function pj (line 87) | function pj(a,b){if("selectionchange"===a||"keyup"===a||"keydown"===a)re...
function qj (line 88) | function qj(a,b){if("click"===a)return Kc(b)}
function rj (line 88) | function rj(a,b){if("input"===a||"change"===a)return Kc(b)}
function sj (line 88) | function sj(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
function Sb (line 88) | function Sb(a,b){if(Ra(a,b))return!0;if("object"!==typeof a||null===a||"...
function Fg (line 88) | function Fg(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerD...
function B (line 89) | function B(a,b){0>nb||(a.current=ne[nb],ne[nb]=null,nb--)}
function y (line 89) | function y(a,b,c){nb++;ne[nb]=a.current;a.current=
function ob (line 90) | function ob(a,b){var c=a.type.contextTypes;if(!c)return Da;var d=a.state...
function K (line 90) | function K(a){a=a.childContextTypes;return null!==a&&void 0!==a}
function Lc (line 90) | function Lc(a){B(Q,a);B(L,a)}
function oe (line 90) | function oe(a){B(Q,a);B(L,a)}
function Hg (line 90) | function Hg(a,b,c){if(L.current!==Da)throw Error(m(168));
function Ig (line 91) | function Ig(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"...
function Mc (line 91) | function Mc(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChi...
function Jg (line 91) | function Jg(a,b,c){var d=a.stateNode;if(!d)throw Error(m(169));c?(b=Ig(a...
function pe (line 92) | function pe(){switch(uj()){case Nc:return 99;case Kg:return 98;case Lg:r...
function Og (line 92) | function Og(a){switch(a){case 99:return Nc;case 98:return Kg;case 97:ret...
function pb (line 92) | function pb(a,b){a=Og(a);return vj(a,b)}
function Pg (line 92) | function Pg(a,b,c){a=Og(a);return qe(a,b,c)}
function Qg (line 92) | function Qg(a){null===oa?(oa=[a],Oc=qe(Nc,Rg)):oa.push(a);return Sg}
function ca (line 92) | function ca(){if(null!==
function Rg (line 93) | function Rg(){if(!re&&null!==oa){re=!0;var a=0;try{var b=oa;pb(99,functi...
function Pc (line 93) | function Pc(a,b,c){c/=10;return 1073741821-(((1073741821-a+b/10)/c|0)+1)*c}
function V (line 93) | function V(a,b){if(a&&a.defaultProps){b=J({},b);a=a.defaultProps;for(var...
function se (line 93) | function se(){Qc=qb=Rc=null}
function Ug (line 93) | function Ug(a,b){var c=a.type._context;
function ue (line 94) | function ue(a){var b=te.current;B(te,a);a.type._context._currentValue=b}
function Vg (line 94) | function Vg(a,b){for(;null!==a;){var c=a.alternate;if(a.childExpirationT...
function rb (line 94) | function rb(a,b){Rc=a;Qc=qb=null;a=a.dependencies;null!==a&&null!==a.fir...
function ea (line 94) | function ea(a,
function Sc (line 95) | function Sc(a){return{baseState:a,firstUpdate:null,lastUpdate:null,first...
function ve (line 95) | function ve(a){return{baseState:a.baseState,
function Ea (line 96) | function Ea(a,b){return{expirationTime:a,suspenseConfig:b,tag:Wg,payload...
function Tc (line 96) | function Tc(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.las...
function Fa (line 96) | function Fa(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var ...
function Xg (line 97) | function Xg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=Sc(a.memoi...
function Yg (line 98) | function Yg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.upd...
function Zg (line 98) | function Zg(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"functi...
function Ub (line 98) | function Ub(a,b,c,d,e){Ga=!1;b=Yg(a,b);for(var f=b.baseState,g=null,h=0,...
function ah (line 100) | function ah(a,b,c,d){null!==b.firstCapturedUpdate&&(null!==b.lastUpdate&...
function bh (line 101) | function bh(a,b){for(;null!==a;){var c=a.callback;if(null!==c){a.callbac...
function Wc (line 101) | function Wc(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b...
function ch (line 101) | function ch(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.sho...
function dh (line 102) | function dh(a,b,c,d){var e=!1;d=Da;var f=b.contextType;"object"===typeof...
function eh (line 103) | function eh(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiv...
function we (line 103) | function we(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState...
function Vb (line 105) | function Vb(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!...
function Yc (line 106) | function Yc(a,b){if("textarea"!==a.type)throw Error(m(31,"[object Object...
function gh (line 106) | function gh(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.next...
function Ua (line 116) | function Ua(a){if(a===Wb)throw Error(m(174));return a}
function ze (line 116) | function ze(a,b){y(Xb,b,a);y(Yb,a,a);y(fa,Wb,a);var c=b.nodeType;switch(...
function tb (line 116) | function tb(a){B(fa,a);B(Yb,a);B(Xb,a)}
function hh (line 116) | function hh(a){Ua(Xb.current);
function Ae (line 117) | function Ae(a){Yb.current===a&&(B(fa,a),B(Yb,a))}
function bd (line 117) | function bd(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedSta...
function ih (line 118) | function ih(a,b){return{responder:a,props:b}}
function N (line 118) | function N(){throw Error(m(321));}
function Be (line 118) | function Be(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length...
function Ce (line 118) | function Ce(a,b,c,d,e,f){Zb=f;Ia=b;ha=null!==a?a.memoizedState:null;cd.c...
function kh (line 119) | function kh(){cd.current=dd;Zb=0;ub=O=vb=ha=H=Ia=null;wb=0;ia=null;bc=0;...
function xb (line 119) | function xb(){var a={memoizedState:null,baseState:null,queue:null,baseUp...
function cc (line 119) | function cc(){if(null!==ub)O=ub,ub=O.next,H=ha,ha=null!==H?H.next:null;e...
function lh (line 120) | function lh(a,b){return"function"===typeof b?b(a):b}
function mh (line 120) | function mh(a,b,c){b=cc();c=b.queue;if(null===c)throw Error(m(311));c.la...
function De (line 122) | function De(a){var b=xb();"function"===typeof a&&(a=a());b.memoizedState...
function Ee (line 122) | function Ee(a){return mh(lh,a)}
function Fe (line 122) | function Fe(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null=...
function Ge (line 122) | function Ge(a,
function He (line 123) | function He(a,b,c,d){var e=cc();d=void 0===d?null:d;var f=void 0;if(null...
function oh (line 123) | function oh(a,b){return Ge(516,192,a,b)}
function ph (line 123) | function ph(a,b){return He(516,192,a,b)}
function qh (line 123) | function qh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b...
function rh (line 124) | function rh(a,b){}
function sh (line 124) | function sh(a,b){xb().memoizedState=[a,void 0===b?null:b];return a}
function th (line 124) | function th(a,b){var c=cc();b=void 0===b?null:b;var d=c.memoizedState;if...
function nh (line 124) | function nh(a,b,c){if(!(25>ac))throw Error(m(301));var d=a.alternate;if(...
function uh (line 125) | function uh(a,b){var c=ja(5,null,
function vh (line 126) | function vh(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.t...
function Ie (line 126) | function Ie(a){if(Wa){var b=Ka;if(b){var c=
function wh (line 127) | function wh(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag...
function ed (line 127) | function ed(a){if(a!==qa)return!1;if(!Wa)return wh(a),Wa=!0,!1;var b=a.t...
function Je (line 128) | function Je(){Ka=qa=null;Wa=!1}
function P (line 128) | function P(a,b,c,d){b.child=null===a?Ke(b,null,c,d):yb(b,a.child,c,d)}
function xh (line 128) | function xh(a,b,c,d,e){c=c.render;var f=b.ref;rb(b,e);d=Ce(a,b,c,d,f,e);...
function yh (line 129) | function yh(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeo...
function zh (line 130) | function zh(a,b,c,d,e,f){return null!==a&&Sb(a.memoizedProps,d)&&a.ref==...
function Ah (line 130) | function Ah(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)...
function Me (line 130) | function Me(a,b,c,d,e){var f=K(c)?Sa:L.current;f=ob(b,f);rb(b,e);c=Ce(a,...
function Bh (line 130) | function Bh(a,b,
function Ne (line 136) | function Ne(a,b,c,d,e,f){Ah(a,b);var g=0!==(b.effectTag&64);if(!d&&!g)re...
function Ch (line 137) | function Ch(a){var b=a.stateNode;b.pendingContext?Hg(a,b.pendingContext,...
function Dh (line 137) | function Dh(a,b,c){var d=b.mode,e=b.pendingProps,f=A.current,g=!1,h;(h=0...
function Eh (line 140) | function Eh(a,b){a.expirationTime<b&&(a.expirationTime=b);var c=a.altern...
function Pe (line 140) | function Pe(a,b,c,d,e,f){var g=a.memoizedState;null===g?a.memoizedState=...
function Fh (line 141) | function Fh(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;P(a,b,d...
function ra (line 143) | function ra(a,b,c){null!==a&&(b.dependencies=a.dependencies);var d=b.exp...
function zb (line 143) | function zb(a){a.effectTag|=4}
function fd (line 143) | function fd(a,b){switch(a.tailMode){case "hidden":b=
function yj (line 144) | function yj(a,b){switch(a.tag){case 1:return K(a.type)&&Lc(a),b=a.effect...
function Qe (line 145) | function Qe(a,b){return{value:a,source:b,stack:Ed(b)}}
function Re (line 145) | function Re(a,b){var c=b.source,d=b.stack;null===d&&null!==c&&(d=Ed(c));...
function zj (line 145) | function zj(a,b){try{b.props=a.memoizedProps,b.state=a.memoizedState,
function Gh (line 146) | function Gh(a){var b=a.ref;if(null!==b)if("function"===typeof b)try{b(nu...
function Aj (line 146) | function Aj(a,b){switch(b.tag){case 0:case 11:case 15:ec(2,0,b);break;ca...
function ec (line 147) | function ec(a,b,c){c=c.updateQueue;c=null!==c?c.lastEffect:null;if(null!...
function Hh (line 147) | function Hh(a,b,c){"function"===typeof Se&&Se(b);switch(b.tag){case 0:ca...
function Jh (line 148) | function Jh(a){var b=a.alternate;a.return=null;a.child=null;a.memoizedSt...
function Kh (line 148) | function Kh(a){return 5===a.tag||3===a.tag||4===a.tag}
function Lh (line 148) | function Lh(a){a:{for(var b=a.return;null!==b;){if(Kh(b)){var c=b;break ...
function Ih (line 151) | function Ih(a,b,c){for(var d=b,e=!1,f,g;;){if(!e){e=d.return;a:for(;;){i...
function Te (line 153) | function Te(a,b){switch(b.tag){case 0:case 11:case 14:case 15:ec(4,8,b);...
function Nh (line 156) | function Nh(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c...
function Oh (line 156) | function Oh(a,b,c){c=Ea(c,null);c.tag=3;c.payload=
function Ph (line 157) | function Ph(a,b,c){c=Ea(c,null);c.tag=3;var d=a.type.getDerivedStateFrom...
function X (line 158) | function X(){return(q&(Z|ka))!==F?1073741821-(Y()/10|0):0!==hd?hd:hd=107...
function Va (line 158) | function Va(a,b,c){b=b.mode;if(0===(b&2))return 1073741823;var d=pe();if...
function id (line 158) | function id(a,b){a.expirationTime<b&&(a.expirationTime=
function kd (line 159) | function kd(a){var b=a.lastExpiredTime;if(0!==b)return b;b=a.firstPendin...
function T (line 160) | function T(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=10737418...
function Sh (line 161) | function Sh(a,b){hd=0;if(b)return b=X(),Xe(a,b),T(a),null;var c=kd(a);if...
function We (line 164) | function We(a){var b=a.lastExpiredTime;b=0!==b?b:1073741823;if(a.finishe...
function Gj (line 165) | function Gj(){if(null!==ab){var a=ab;ab=null;a.forEach(function(a,c){Xe(...
function Xh (line 165) | function Xh(a,b){var c=q;q|=1;try{return a(b)}finally{q=c,q===F&&ca()}}
function Yh (line 165) | function Yh(a,b){var c=q;q&=-2;q|=af;try{return a(b)}finally{q=c,q===F&&...
function Za (line 165) | function Za(a,
function Uh (line 166) | function Uh(a,b){do{try{se();kh();if(null===v||null===
function Th (line 169) | function Th(a){a=ld.current;ld.current=
function $g (line 170) | function $g(a,b){a<sa&&2<a&&(sa=a);null!==b&&a<gc&&2<a&&(gc=a,qd=b)}
function Vc (line 170) | function Vc(a){a>hc&&(hc=a)}
function Fj (line 170) | function Fj(){for(;null!==v;)v=$h(v)}
function Dj (line 170) | function Dj(){for(;null!==v&&!Kj();)v=$h(v)}
function $h (line 170) | function $h(a){var b=Lj(a.alternate,a,R);a.memoizedProps=a.pendingProps;...
function Zh (line 170) | function Zh(a){v=a;do{var b=v.alternate;a=v.return;if(0===(v.effectTag&2...
function Ye (line 184) | function Ye(a){var b=a.expirationTime;a=a.childExpirationTime;return b>a...
function Ma (line 184) | function Ma(a){var b=pe();pb(99,Pj.bind(null,a,b));return null}
function Pj (line 184) | function Pj(a,b){do Ab();while(null!==ic);if((q&(Z|ka))!==F)throw Error(...
function Qj (line 194) | function Qj(){for(;null!==n;){var a=n.effectTag;0!==(a&256)&&Aj(n.altern...
function Ab (line 194) | function Ab(){if(90!==jc){var a=97<jc?97:jc;jc=90;return pb(a,Sj)}}
function Sj (line 194) | function Sj(){if(null===ic)return!1;var a=ic;ic=null;if((q&(Z|ka))!==F)t...
function ci (line 195) | function ci(a,b,c){b=Qe(c,b);b=Oh(a,b,1073741823);Fa(a,b);a=id(a,1073741...
function Xa (line 195) | function Xa(a,b){if(3===a.tag)ci(a,a,b);else for(var c=a.return;null!==c...
function Jj (line 196) | function Jj(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);S===a&&R===c?...
function Cj (line 196) | function Cj(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=0;0===b&&(b=X...
function Tj (line 196) | function Tj(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)re...
function Uj (line 197) | function Uj(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this....
function Le (line 198) | function Le(a){a=a.prototype;return!(!a||!a.isReactComponent)}
function Vj (line 198) | function Vj(a){if("function"===typeof a)return Le(a)?1:0;if(void 0!==a&&...
function Ta (line 198) | function Ta(a,b,c){c=a.alternate;null===c?(c=ja(a.tag,b,a.key,a.mode),c....
function Zc (line 199) | function Zc(a,b,c,d,e,
function Ha (line 201) | function Ha(a,b,c,d){a=ja(7,a,d,b);a.expirationTime=c;return a}
function xe (line 201) | function xe(a,b,c){a=ja(6,a,null,b);a.expirationTime=c;return a}
function ye (line 201) | function ye(a,b,c){b=ja(4,null!==a.children?a.children:[],a.key,b);b.exp...
function Xj (line 202) | function Xj(a,b,c){this.tag=b;this.current=null;this.containerInfo=a;thi...
function Rh (line 202) | function Rh(a,b){var c=a.firstSuspendedTime;a=a.lastSuspendedTime;return...
function Ya (line 203) | function Ya(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;c<b&&(...
function Qh (line 203) | function Qh(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.fi...
function Xe (line 204) | function Xe(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}
function sd (line 204) | function sd(a,b,c,d){var e=b.current,f=X(),g=dc.suspense;f=Va(f,e,g);a:i...
function ff (line 205) | function ff(a){a=a.current;if(!a.child)return null;switch(a.child.tag){c...
function di (line 205) | function di(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retr...
function gf (line 205) | function gf(a,b){di(a,b);(a=a.alternate)&&di(a,b)}
function hf (line 205) | function hf(a,b,c){c=null!=c&&!0===c.hydrate;var d=new Xj(a,b,c),e=ja(3,...
function lc (line 206) | function lc(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeTy...
function Yj (line 206) | function Yj(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:n...
function td (line 206) | function td(a,
function Zj (line 207) | function Zj(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?argum...
function ei (line 207) | function ei(a,b){var c=
function b (line 223) | function b(){return c.apply(this,arguments)}
function r (line 283) | function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{...
function o (line 283) | function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.en...
function o (line 283) | function o(t){return t&&t.__esModule?t:{default:t}}
function o (line 283) | function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function s (line 283) | function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e....
function o (line 283) | function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.en...
function e (line 283) | function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("C...
function n (line 283) | function n(){}
function r (line 283) | function r(){o.off(t,r),e.apply(n,arguments)}
function i (line 283) | function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.deleg...
function combinePrefixPatterns (line 613) | function combinePrefixPatterns(regexs) {
function extractSourceSpans (line 892) | function extractSourceSpans(node, isPreformatted) {
function appendDecorations (line 949) | function appendDecorations(
function childContentWrapper (line 980) | function childContentWrapper(element) {
function createSimpleLexer (line 1039) | function createSimpleLexer(shortcutStylePatterns, fallthroughStylePatter...
function sourceDecorator (line 1183) | function sourceDecorator(options) {
function numberLines (line 1373) | function numberLines(node, startLineNum, isPreformatted) {
function recombineTagsAndDecorations (line 1503) | function recombineTagsAndDecorations(job) {
function registerLangHandler (line 1623) | function registerLangHandler(handler, fileExtensions) {
function langHandlerForExtension (line 1633) | function langHandlerForExtension(extension, source) {
function applyDecorator (line 1744) | function applyDecorator(job) {
function $prettyPrintOne (line 1777) | function $prettyPrintOne(sourceCodeHtml, opt_langExtension, opt_numberLi...
function $prettyPrint (line 1821) | function $prettyPrint(opt_whenDone, opt_root) {
function e (line 2041) | function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.en...
function e (line 2041) | function e(n){var r=!(arguments.length>1&&void 0!==arguments[1])||argume...
function o (line 2041) | function o(e){t(this,o),this.ctx=e,this.ie=!1;var n=window.navigator.use...
FILE: dist/sw.js
function asyncGeneratorStep (line 1) | function asyncGeneratorStep(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}c...
function _asyncToGenerator (line 1) | function _asyncToGenerator(a){return function(){var b=this,c=arguments;r...
function matchLocation (line 1) | function matchLocation(a,b){return b.find(function(b){return-1!==a.index...
FILE: src/App.js
function App (line 8) | function App() {
FILE: src/components/Copybook.js
function Copybook (line 6) | function Copybook(props) {
FILE: src/components/Donate.js
function Donate (line 17) | function Donate(props) {
FILE: src/components/Doodle.js
function Doodle (line 4) | function Doodle(props) {
FILE: src/components/Loading.js
function Loading (line 3) | function Loading() {
FILE: src/components/SearchBar.js
function SearchBar (line 31) | function SearchBar(props) {
function useInputSize (line 125) | function useInputSize(val) {
FILE: src/components/SearchError.js
function SearchError (line 4) | function SearchError() {
FILE: src/components/SourceCode.js
function SourceCode (line 7) | function SourceCode(props) {
FILE: src/components/Suggestion.js
function Suggestion (line 4) | function Suggestion(props) {
FILE: src/components/TitleLogo.js
function TitleLogo (line 3) | function TitleLogo() {
FILE: src/components/VariableItem.js
function VariableItem (line 5) | function VariableItem(props) {
FILE: src/components/VariableList.js
function VariableList (line 9) | function VariableList(props) {
FILE: src/components/hooks/useCodeHighlighting.js
function useCodeHighlighting (line 3) | function useCodeHighlighting(watchedProps, keyword) {
FILE: src/constants/Configs.js
constant APP_NANE (line 3) | const APP_NANE = 'codelf';
constant PAGE_URL (line 4) | const PAGE_URL = Tools.thisPage;
constant PAGE_PATH (line 5) | const PAGE_PATH = Tools.thisPath;
FILE: src/containers/CopybookContainer.js
function reducer (line 18) | function reducer(state, action) {
function CopybookContainer (line 30) | function CopybookContainer(props) {
FILE: src/containers/MainContainer.js
function reducer (line 37) | function reducer(state, action) {
function MainContainer (line 50) | function MainContainer(props) {
FILE: src/containers/NavBarContainer.js
function NavBarContainer (line 5) | function NavBarContainer() {
FILE: src/containers/NoticeContainer.js
function NoticeContainer (line 4) | function NoticeContainer() {
function useSliderEffect (line 65) | function useSliderEffect(el) {
FILE: src/models/AppModel.js
constant DEVICE_ID_KEY (line 8) | const DEVICE_ID_KEY = `${Configs.APP_NANE}_device_id`;
class AppModel (line 10) | class AppModel extends BaseModel {
method constructor (line 11) | constructor() {
method analytics (line 25) | analytics(param) {
method genPersistenceKey (line 31) | genPersistenceKey(key) {
method debug (line 38) | get debug() {
method isGithub (line 42) | get isGithub() {
method appName (line 46) | get appName() {
method deviceId (line 50) | get deviceId() {
FILE: src/models/BaseModel.js
class Mutation (line 3) | class Mutation {
method constructor (line 4) | constructor(data) {
method _serialize (line 10) | _serialize() {
method get (line 16) | get() {
method has (line 20) | has(fields) {
class BaseModel (line 34) | class BaseModel extends EventEmitter {
method constructor (line 35) | constructor() {
method set (line 43) | set(data) {
method get (line 49) | get() {
method create (line 53) | create(data) {
method notify (line 59) | notify(prevData, mutationData) {
method update (line 64) | update(data) {
method onUpdated (line 70) | onUpdated(listener) {
method offUpdated (line 74) | offUpdated(listener) {
FILE: src/models/CopybookModel.js
constant REPO_FILE_URL_KEY (line 7) | const REPO_FILE_URL_KEY = AppModel.genPersistenceKey('agor_repo_file_url...
class CopybookModel (line 9) | class CopybookModel extends BaseModel {
method constructor (line 10) | constructor() {
method requestRepoTrees (line 26) | async requestRepoTrees() {
method requestRepoFile (line 45) | async requestRepoFile(file) {
method _updateFileList (line 62) | _updateFileList(data) {
method _genCachedFile (line 68) | _genCachedFile(data) {
method fileList (line 76) | get fileList() {
method selectedFile (line 80) | get selectedFile() {
method fileContent (line 84) | get fileContent() {
method visible (line 88) | get visible() {
FILE: src/models/DDMSModel.js
class DDMSModel (line 22) | class DDMSModel extends BaseModel {
method constructor (line 23) | constructor() {
method getLuckyKeyWords (line 32) | getLuckyKeyWords() {
method postKeyWords (line 47) | postKeyWords(val) {
method postBookmarkUser (line 58) | postBookmarkUser(val) {
method postBookmarkGroup (line 67) | postBookmarkGroup(repoid, repourl, groupname, lang, stars) {
method postBookmarkOrganizer (line 80) | postBookmarkOrganizer(data, callback) {
method postUpdateBookmarkOrganizer (line 91) | postUpdateBookmarkOrganizer(id, data, callback) {
method getBookmarkOrganizer (line 102) | getBookmarkOrganizer(id, callback) {
method _saveKeyWords (line 110) | _saveKeyWords(val) {
method organizerSyncId (line 117) | set organizerSyncId(val) {
method organizerSyncId (line 122) | get organizerSyncId() {
method luckyKeyWords (line 126) | get luckyKeyWords() {
FILE: src/models/ErrorModel.js
class ErrorModel (line 3) | class ErrorModel extends BaseModel {
method constructor (line 4) | constructor() {
method message (line 13) | get message() {
method error (line 17) | get error() {
method error (line 21) | set error(error) {
FILE: src/models/SearchCodeModel.js
constant SEARCH_LANG_KEY (line 12) | const SEARCH_LANG_KEY = `${Configs.APP_NANE}_search_lang_key`;
class SearchCodeModel (line 14) | class SearchCodeModel extends BaseModel {
method constructor (line 15) | constructor() {
method requestVariable (line 37) | async requestVariable(val, page, lang) {
method requestSourceCode (line 110) | requestSourceCode(id) {
method getKeyWordReg (line 124) | getKeyWordReg(keyword) {
method getKeyWroddRegs (line 128) | getKeyWroddRegs(keywords) {
method _parseVariableList (line 137) | _parseVariableList(results, keywords) {
method _parseSuggestion (line 180) | _parseSuggestion(keywords, curr) {
method _updateVariableRepoMapping (line 188) | _updateVariableRepoMapping(val, repo) {
method _getVariableRepoMapping (line 200) | _getVariableRepoMapping(val) {
method _isZH (line 205) | _isZH(val) {
method searchValue (line 215) | get searchValue() {
method searchLang (line 219) | get searchLang() {
method page (line 223) | get page() {
method variableList (line 227) | get variableList() {
method suggestion (line 231) | get suggestion() {
method isZH (line 235) | get isZH() {
method sourceCode (line 239) | get sourceCode() {
FILE: src/models/Store.js
class Store (line 6) | class Store {
method constructor (line 12) | constructor(expire, options) {
method get (line 34) | get(id) {
method save (line 58) | save(id, data) {
method clear (line 73) | clear() {
method _persist (line 78) | _persist() {
FILE: src/models/metadata/BaiduTranslateData.js
function genUrl (line 19) | function genUrl(val) {
class BaiduTranslateData (line 24) | class BaiduTranslateData {
method constructor (line 25) | constructor() {
method request (line 32) | async request(val) {
FILE: src/models/metadata/BingTranslateData.js
class BingTranslateData (line 16) | class BingTranslateData {
method constructor (line 17) | constructor() {
method request (line 24) | async request(val) {
FILE: src/models/metadata/BookmarkData.js
function fn (line 392) | function fn() {
function concat (line 464) | function concat(data) {
function concat (line 496) | function concat(data) {
FILE: src/models/metadata/GitHubData.js
constant CLANG (line 4) | const CLANG = {
constant JAVA (line 55) | const JAVA = {
constant SWIFT (line 71) | const SWIFT = {
class GitHubData (line 83) | class GitHubData {
method constructor (line 84) | constructor() {
method requestRepoLatestCommit (line 88) | async requestRepoLatestCommit(repo) {
method requestRepoTree (line 110) | async requestRepoTree(repo) {
method requestJavascriptAlgorithmsRepoTree (line 139) | async requestJavascriptAlgorithmsRepoTree() {
method requestPythonAlgorithmsRepoTree (line 143) | async requestPythonAlgorithmsRepoTree() {
method requestJavaAlgorithmsRepoTree (line 147) | async requestJavaAlgorithmsRepoTree() {
method requestCLangAlgorithmsRepoTree (line 151) | async requestCLangAlgorithmsRepoTree() {
method requestSwiftAlgorithmsRepoTree (line 155) | async requestSwiftAlgorithmsRepoTree() {
method requestRepoFile (line 159) | async requestRepoFile(url) {
method _isIncludedFile (line 179) | _isIncludedFile(path, list) {
FILE: src/models/metadata/YoudaoTranslateData.js
class YoudaoTranslateData (line 14) | class YoudaoTranslateData {
method constructor (line 15) | constructor() {
method request (line 22) | async request(val) {
FILE: src/sw.js
function matchLocation (line 40) | function matchLocation(url, caches) {
FILE: src/utils/FormHandler.js
function getForm (line 4) | function getForm(method) {
FILE: src/utils/HashHandler.js
function getByURL (line 3) | function getByURL(url) {
function get (line 11) | function get() {
function set (line 15) | function set(hash) {
FILE: src/utils/LocalStorage.js
class BasicStorage (line 1) | class BasicStorage {
method constructor (line 2) | constructor() {
method getItem (line 6) | getItem(key) {
method setItem (line 10) | setItem(key, value) {
class Storage (line 15) | class Storage {
method constructor (line 16) | constructor(store) {
method getItem (line 23) | getItem(key, defaultValue) {
method setItem (line 35) | setItem(key, value) {
FILE: src/utils/Navigator.js
function appendFrame (line 7) | function appendFrame(frame) {
function removeFrame (line 11) | function removeFrame(frame) {
function getFrame (line 15) | function getFrame(src, name) {
function protocol (line 30) | function protocol(command, single, noframe) {
FILE: src/utils/Param.js
function fn (line 2) | function fn(str, reg) {
function searchParams (line 12) | function searchParams(search) {
function hashParams (line 17) | function hashParams(hash) {
function params (line 22) | function params(search, hash) {
FILE: src/utils/Tools.js
function rd (line 30) | function rd(_array) {
constant MD5 (line 88) | const MD5 = SparkMD5.hash;
FILE: src/utils/TranslateHandler.js
function formatSuggestionStr (line 2) | function formatSuggestionStr(str) {
function formatTranslationArr (line 21) | function formatTranslationArr(arr) {
FILE: src/vendors/prettify.js
function combinePrefixPatterns (line 330) | function combinePrefixPatterns(regexs) {
function extractSourceSpans (line 609) | function extractSourceSpans(node, isPreformatted) {
function appendDecorations (line 666) | function appendDecorations(
function childContentWrapper (line 697) | function childContentWrapper(element) {
function createSimpleLexer (line 756) | function createSimpleLexer(shortcutStylePatterns, fallthroughStylePatter...
function sourceDecorator (line 900) | function sourceDecorator(options) {
function numberLines (line 1090) | function numberLines(node, startLineNum, isPreformatted) {
function recombineTagsAndDecorations (line 1220) | function recombineTagsAndDecorations(job) {
function registerLangHandler (line 1340) | function registerLangHandler(handler, fileExtensions) {
function langHandlerForExtension (line 1350) | function langHandlerForExtension(extension, source) {
function applyDecorator (line 1461) | function applyDecorator(job) {
function $prettyPrintOne (line 1494) | function $prettyPrintOne(sourceCodeHtml, opt_langExtension, opt_numberLi...
function $prettyPrint (line 1538) | function $prettyPrint(opt_whenDone, opt_root) {
Condensed preview — 132 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,668K chars).
[
{
"path": ".editorconfig",
"chars": 197,
"preview": "# http://editorconfig.org\nroot = true\n\n[*]\nindent_style = space\nindent_size = 2\ncharset = utf-8\ntrim_trailing_whitespace"
},
{
"path": ".eslintrc.js",
"chars": 736,
"preview": "module.exports = {\n 'extends': [\n 'eslint:recommended',\n 'plugin:react/recommended'\n ],\n 'plugins': [\n 'reac"
},
{
"path": ".gitattributes",
"chars": 24,
"preview": "dist -diff\nassets -diff\n"
},
{
"path": ".gitignore",
"chars": 496,
"preview": "# See http://help.github.com/ignore-files/ for more about ignoring files.\n#\n# If you find yourself ignoring temporary fi"
},
{
"path": "LICENSE",
"chars": 590,
"preview": "SAY NO TO SUICIDE PUBLIC LICENSE\n\nVersion 1.0, September 2017\n\nhttps://github.com/unbug/snts\n\nCopyright (C) 2017 @unbug\n"
},
{
"path": "README.md",
"chars": 4047,
"preview": " \n <img src=\"https://user-images.githubusercontent.com/799578/50462941-8075fe80-09c3-11e9-89e7-af0cb7991406.png\" width"
},
{
"path": "__static/app/cache.manifest",
"chars": 68,
"preview": "CACHE MANIFEST\n# Build: _BUILD_VERSION_\n\nCACHE:\n_FILES_\n\nNETWORK:\n*\n"
},
{
"path": "__static/app/ddms_frame_callback.html",
"chars": 1035,
"preview": "<!DOCTYPE HTML>\n<html>\n<head>\n <script type=\"text/javascript\">\n var thisPage = window.location.href\n .replace(w"
},
{
"path": "__static/app/html/bookmark.html",
"chars": 10468,
"preview": "<section class=\"modal fade bookmark-modal modal--fix\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"bookmarkModal\" aria-h"
},
{
"path": "__static/app/html/components.html",
"chars": 995,
"preview": "<div class=\"nav-bar\">\n <div class=\"bookmark-btn animated fadeInDown\" data-toggle=\"tooltip\" data-placement=\"left\" title="
},
{
"path": "__static/app/html/donate.html",
"chars": 821,
"preview": "<section class=\"container donate\" hidden>\n <header class=\"title\">\n <h6 class=\"lang en\">Buy <a href=\"https://twitter."
},
{
"path": "__static/app/html/main.html",
"chars": 5122,
"preview": "<section class=\"container main\">\n <header class=\"main-title\">\n <header><h1><a href=\"./\"><span>C</span><span>O</span>"
},
{
"path": "__static/app/html/scripts.html",
"chars": 5345,
"preview": "<script src=\"src/lib/all.js\"></script>\n<script id=\"worker_prettify\" type=\"javascript/worker\">\n self.onmessage = functio"
},
{
"path": "__static/app/html/sourcecode.html",
"chars": 1834,
"preview": "<section class=\"modal fade sourcecode-modal modal--fix\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"sourcecodeModal\" ar"
},
{
"path": "__static/app/html/styles.html",
"chars": 195,
"preview": "<style>\n @@include(\"resources/css/font-awesome.min.css\")\n @@include(\"resources/css/bootstrap.min.css\")\n @@include(\"re"
},
{
"path": "__static/app/index.html",
"chars": 1463,
"preview": "<!DOCTYPE html>\n<html lang=\"en\" manifest=\"cache.manifest\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" conte"
},
{
"path": "__static/app/resources/css/prettify.css",
"chars": 1049,
"preview": ".pln {\n color: #000\n}\n\n@media screen {\n .str {\n color: #080\n }\n\n .kwd {\n color: #008\n }\n\n .com {\n color: "
},
{
"path": "__static/app/resources/css/style.css",
"chars": 14538,
"preview": "html, body {\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans"
},
{
"path": "__static/app/scss/_animate.scss",
"chars": 491,
"preview": ".animated {\n animation-duration: 1s;\n animation-fill-mode: both;\n}\n\n.animated.infinite {\n animation-iteration-count: "
},
{
"path": "__static/app/scss/_bookmark.scss",
"chars": 2400,
"preview": ".bookmark-logo {\n cursor: pointer;\n color: #70B7FD;\n}\n\n.bookmark-modal {\n .modal-header{\n .btn, .btn-group{\n "
},
{
"path": "__static/app/scss/_components.scss",
"chars": 2100,
"preview": "/*\n http://www.fontspace.com/538fonts/dressedless\n https://everythingfonts.com/ttf-to-svg\n */\n@font-face {\n fo"
},
{
"path": "__static/app/scss/_donate.scss",
"chars": 582,
"preview": ".donate {\n display: block;\n padding-bottom: 5rem;\n margin-top: 1rem;\n text-align: center;\n form {\n display: inli"
},
{
"path": "__static/app/scss/_main.scss",
"chars": 4296,
"preview": ".main {\n padding-top: 2.5rem;\n}\n\n.main-title {\n text-align: center;\n padding: 0 1.2rem;\n > header a {\n color: inh"
},
{
"path": "__static/app/scss/_sourcecode.scss",
"chars": 250,
"preview": ".sourcecode-modal {\n .dropdown-menu {\n max-height: 320px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: to"
},
{
"path": "__static/app/scss/_util.scss",
"chars": 931,
"preview": ".fix-break-word, p {\n word-break: break-all;\n word-break: break-word;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n.lab"
},
{
"path": "__static/app/scss/style.scss",
"chars": 502,
"preview": "html, body {\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans"
},
{
"path": "__static/app/src/App.js",
"chars": 86,
"preview": "$(function () {\n require('./view/View.js');\n require('./view/BookmarkView.js');\n});\n"
},
{
"path": "__static/app/src/AppBundle.js",
"chars": 70508,
"preview": "/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/**"
},
{
"path": "__static/app/src/Util.js",
"chars": 7320,
"preview": "var appCache = window.applicationCache;\nappCache.addEventListener('updateready', function() {\n if (appCache.status == a"
},
{
"path": "__static/app/src/lib/all.js",
"chars": 228,
"preview": "@@include(\"jquery.min.js\")\n@@include(\"jquery.highlight.js\")\n@@include(\"tether.min.js\")\n@@include(\"bootstrap.min.js\")\n@@i"
},
{
"path": "__static/app/src/lib/fastclick.js",
"chars": 25965,
"preview": ";(function () {\n\t'use strict';\n\n\t/**\n\t * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs"
},
{
"path": "__static/app/src/lib/jquery.highlight.js",
"chars": 3983,
"preview": "/*\n * jQuery Highlight plugin\n *\n * Based on highlight v3 by Johann Burkard\n * http://johannburkard.de/blog/programming/"
},
{
"path": "__static/app/src/lib/prettify.js",
"chars": 15261,
"preview": "!function(){/*\n\n Copyright (C) 2006 Google Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you m"
},
{
"path": "__static/app/src/model/BookmarkModel.js",
"chars": 16520,
"preview": "var Database = require('model/Database.js');\n\nmodule.exports = new function () {\n var BM = this;\n var DB;\n var schema"
},
{
"path": "__static/app/src/model/DDMSModel.js",
"chars": 2947,
"preview": "var Util = require('Util.js');\n\nmodule.exports = new function () {\n var formAction = '//ddms.mihtool.com/apis/v1/formda"
},
{
"path": "__static/app/src/model/Database.js",
"chars": 158,
"preview": "var Util = require('Util.js');\n\nexports.schemaBuilder = lf.schema.create('Codelf', 6);\nexports.eventType = {\n C: 'CREAT"
},
{
"path": "__static/app/src/model/Model.js",
"chars": 1715,
"preview": "var Util = require('Util.js');\nvar Database = require('model/Database.js');\n\n//model\n//http://githut.info/\nexports.TopPr"
},
{
"path": "__static/app/src/model/SearchcodeModel.js",
"chars": 3898,
"preview": "var Util = require('Util.js');\nvar Database = require('model/Database.js');\n\n\nmodule.exports = new function () {\n var _"
},
{
"path": "__static/app/src/model/YoudaoTranslateModel.js",
"chars": 528,
"preview": "var Util = require('Util.js');\n\nmodule.exports = new function () {\n var lastVal;\n var translateRequestCallback;\n this"
},
{
"path": "__static/app/src/view/BookmarkView.js",
"chars": 17305,
"preview": "var Util = require('Util.js');\nvar Model = require('model/Model.js');\n\n//view and render\nvar els = {\n win: $(window),\n "
},
{
"path": "__static/app/src/view/View.js",
"chars": 16896,
"preview": "var Util = require('Util.js');\nvar Model = require('model/Model.js');\n\n//view and render\nvar els = {\n win: $(window),\n "
},
{
"path": "__static/app/sw.js",
"chars": 6753,
"preview": "/*\n Copyright 2014 Google Inc. All Rights Reserved.\n Licensed under the Apache License, Version 2.0 (the \"License\");\n yo"
},
{
"path": "__static/data/repos.json",
"chars": 512304,
"preview": "[\n {\n \"id\": 14196241,\n \"name\": \"Aardwolf\",\n \"full_name\": \"unbug/Aardwolf\",\n \"owner\": {\n \"login\": \"unbu"
},
{
"path": "app/ddms_frame_callback.html",
"chars": 1035,
"preview": "<!DOCTYPE HTML>\n<html>\n<head>\n <script type=\"text/javascript\">\n var thisPage = window.location.href\n .replace(w"
},
{
"path": "app/index.html",
"chars": 6519,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, in"
},
{
"path": "app/opensearch.xml",
"chars": 433,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<OpenSearchDescription xmlns=\"http://a9.com/-/spec/opensearch/1.1/\">\n <ShortName"
},
{
"path": "babel.config.js",
"chars": 205,
"preview": "module.exports = {\n \"presets\": [\n \"@babel/preset-env\",\n \"@babel/preset-react\"\n ],\n \"plugins\": [\n \"@babel/plu"
},
{
"path": "build-system/build.js",
"chars": 2292,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst $ = require('./util');\nconst webpack = require('webpack');\nconst webp"
},
{
"path": "build-system/clean.js",
"chars": 243,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst del = require('del');\n\n// Cleans dist files.\ngulp.task('clean:dist', "
},
{
"path": "build-system/default.js",
"chars": 605,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst $ = require('./util');\n\nfunction watch(files, task) {\n const watcher"
},
{
"path": "build-system/dist.js",
"chars": 2778,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst $ = require('./util');\nconst pngquant = require('imagemin-pngquant');"
},
{
"path": "build-system/lint.js",
"chars": 288,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst $ = require('./util');\n\n// Lint JS files.\ngulp.task('lint', () => {\n "
},
{
"path": "build-system/server.js",
"chars": 1690,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst browserSync = require('browser-sync').create();\nconst $ = require('./"
},
{
"path": "build-system/util.js",
"chars": 628,
"preview": "'use strict';\n\nlet util = require('gulp-load-plugins')();\nconst argv = require('minimist')(process.argv.slice(2));\nconst"
},
{
"path": "dist/css/app.css",
"chars": 19708,
"preview": "@charset \"UTF-8\";\n/* animation */\n/* color */\n/* dimensions */\n*,\n:after,\n:before {\n -webkit-box-sizing: border-box;\n "
},
{
"path": "dist/css/app.f1364fce.css",
"chars": 16412,
"preview": "@charset \"UTF-8\";@-webkit-keyframes sk-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspec"
},
{
"path": "dist/css/lib.b0f67b98.css",
"chars": 653277,
"preview": "@-webkit-keyframes button-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);tr"
},
{
"path": "dist/css/lib.css",
"chars": 688725,
"preview": " /*\n * # Semantic UI - 2.4.0\n * https://github.com/Semantic-Org/Semantic-UI\n * http://www.semantic-ui.com/\n *\n * Copyrig"
},
{
"path": "dist/ddms_frame_callback.html",
"chars": 645,
"preview": "<!DOCTYPE HTML><html><head><script type=\"text/javascript\">var thisPage=window.location.href.replace(window.location.hash"
},
{
"path": "dist/index.html",
"chars": 2956,
"preview": "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-sca"
},
{
"path": "dist/js/app.792fa086.js",
"chars": 397659,
"preview": "function _typeof(e){\"@babel/helpers - typeof\";return _typeof=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterat"
},
{
"path": "dist/js/app.js",
"chars": 397582,
"preview": "!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.expo"
},
{
"path": "dist/js/lib.5e430a5b.js",
"chars": 177528,
"preview": "'use strict';function _typeof(e){\"@babel/helpers - typeof\";return _typeof=\"function\"===typeof Symbol&&\"symbol\"===typeof "
},
{
"path": "dist/js/lib.js",
"chars": 224122,
"preview": "/** @license React v16.12.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This"
},
{
"path": "dist/opensearch.xml",
"chars": 433,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<OpenSearchDescription xmlns=\"http://a9.com/-/spec/opensearch/1.1/\">\n <ShortName"
},
{
"path": "dist/sw.js",
"chars": 6018,
"preview": "function asyncGeneratorStep(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){return void c(a)}h.done?b(i):Promise.res"
},
{
"path": "gulpfile.js",
"chars": 1505,
"preview": "'use strict';\n\nconst gulp = require('gulp');\nconst $ = require('./build-system/util');\nconst requireDir = require('requi"
},
{
"path": "lib.config.js",
"chars": 1181,
"preview": "'use strict';\n\nexports.js = [\n './node_modules/react/umd/react.production.min.js',\n './node_modules/react-dom/umd/reac"
},
{
"path": "package.json",
"chars": 2617,
"preview": "{\n \"name\": \"Codelf\",\n \"version\": \"8.1.0\",\n \"description\": \"A search tool helps dev to solve the naming things problem"
},
{
"path": "src/App.js",
"chars": 522,
"preview": "import 'whatwg-fetch';\nimport ReactDOM from 'react-dom';\nimport MainContainer from './containers/MainContainer';\n// impo"
},
{
"path": "src/components/Bookmark.js",
"chars": 0,
"preview": ""
},
{
"path": "src/components/Copybook.js",
"chars": 2359,
"preview": "import React, { useRef } from 'react';\nimport { Button, Dropdown, Modal } from 'semantic-ui-react';\nimport Loading from "
},
{
"path": "src/components/Donate.js",
"chars": 1269,
"preview": "import React from 'react';\nimport * as Tools from '../utils/Tools';\n\nconst cnText = Tools.randomList([\n '颈椎病晚期', \n '买不"
},
{
"path": "src/components/Doodle.js",
"chars": 387,
"preview": "import React from 'react';\nimport 'css-doodle';\n\nexport default function Doodle(props) {\n const { text } = props;\n let"
},
{
"path": "src/components/Loading.js",
"chars": 213,
"preview": "import React from 'react';\n\nexport default function Loading() {\n return (\n <div className='loading'>\n <div clas"
},
{
"path": "src/components/SearchBar.js",
"chars": 4948,
"preview": "import React, { useEffect, useRef, useState } from 'react';\nimport { Dropdown, Icon, Input } from 'semantic-ui-react';\n\n"
},
{
"path": "src/components/SearchError.js",
"chars": 497,
"preview": "import React from 'react';\nimport { Label } from 'semantic-ui-react';\n\nexport default function SearchError() {\n return "
},
{
"path": "src/components/SourceCode.js",
"chars": 2061,
"preview": "import React from 'react';\nimport { Modal, Button, Dropdown, Label } from 'semantic-ui-react';\nimport * as Tools from '."
},
{
"path": "src/components/Suggestion.js",
"chars": 470,
"preview": "import React from 'react';\nimport { Label } from 'semantic-ui-react';\n\nexport default function Suggestion(props) {\n if "
},
{
"path": "src/components/TitleLogo.js",
"chars": 254,
"preview": "import React from 'react';\n\nexport default function TitleLogo() {\n return (\n <header className='title animated'>\n "
},
{
"path": "src/components/VariableItem.js",
"chars": 1349,
"preview": "import React from 'react';\nimport { Button, Label, Popup } from 'semantic-ui-react';\nimport * as Tools from '../utils/To"
},
{
"path": "src/components/VariableList.js",
"chars": 1863,
"preview": "import React, { useMemo, useRef } from 'react';\nimport * as Tools from '../utils/Tools';\nimport VariableItem from './Var"
},
{
"path": "src/components/hooks/useCodeHighlighting.js",
"chars": 896,
"preview": "import { useEffect, useRef } from 'react';\n\nexport default function useCodeHighlighting(watchedProps, keyword) {\n const"
},
{
"path": "src/constants/Configs.js",
"chars": 178,
"preview": "import * as Tools from '../utils/Tools';\n\nconst APP_NANE = 'codelf';\nconst PAGE_URL = Tools.thisPage;\nconst PAGE_PATH = "
},
{
"path": "src/containers/CopybookContainer.js",
"chars": 2075,
"preview": "import React, { useEffect, useReducer } from 'react';\nimport AppModel from '../models/AppModel';\nimport CopybookModel fr"
},
{
"path": "src/containers/MainContainer.js",
"chars": 6307,
"preview": "import React, { useEffect, useReducer, useCallback } from 'react';\nimport { Container } from 'semantic-ui-react';\nimport"
},
{
"path": "src/containers/NavBarContainer.js",
"chars": 1614,
"preview": "import React from 'react';\nimport { Container, Icon, Popup } from 'semantic-ui-react';\n// import CopybookModel from '../"
},
{
"path": "src/containers/NoticeContainer.js",
"chars": 3941,
"preview": "import React, { useState, useEffect, useRef } from 'react';\nimport { Icon, Popup } from 'semantic-ui-react';\n\nexport def"
},
{
"path": "src/models/AppModel.js",
"chars": 1382,
"preview": "import BaseModel from './BaseModel';\nimport LocalStorage from '../utils/LocalStorage';\nimport * as Tools from '../utils/"
},
{
"path": "src/models/BaseModel.js",
"chars": 1615,
"preview": "import EventEmitter from 'events';\n\nclass Mutation {\n constructor(data) {\n this._data = data;\n this._serialize();"
},
{
"path": "src/models/CopybookModel.js",
"chars": 2597,
"preview": "import BaseModel from './BaseModel';\nimport * as Tools from '../utils/Tools';\nimport GitHubData from './metadata/GitHubD"
},
{
"path": "src/models/DDMSModel.js",
"chars": 3758,
"preview": "import BaseModel from './BaseModel';\nimport FormHandler from '../utils/FormHandler';\nimport LocalStorage from '../utils/"
},
{
"path": "src/models/ErrorModel.js",
"chars": 457,
"preview": "import BaseModel from './BaseModel';\n\nclass ErrorModel extends BaseModel {\n constructor() {\n super();\n this._data"
},
{
"path": "src/models/SearchCodeModel.js",
"chars": 7716,
"preview": "import BaseModel from './BaseModel';\nimport * as Tools from '../utils/Tools';\nimport YoudaoTranslateData from './metadat"
},
{
"path": "src/models/Store.js",
"chars": 2041,
"preview": "import LocalStorage, { SessionStorage } from '../utils/LocalStorage';\nimport * as Tools from '../utils/Tools';\n/**\n * St"
},
{
"path": "src/models/metadata/BaiduTranslateData.js",
"chars": 2105,
"preview": "import Store from '../Store';\nimport * as Tools from '../../utils/Tools';\nimport JSONP from '../../utils/JSONP';\nimport "
},
{
"path": "src/models/metadata/BingTranslateData.js",
"chars": 2293,
"preview": "import Store from '../Store';\nimport { formatSuggestionStr, formatTranslationArr } from '../../utils/TranslateHandler';\n"
},
{
"path": "src/models/metadata/BookmarkData.js",
"chars": 16858,
"preview": "/* eslint-disable */\nvar Database = require('model/Database.js');\n\nmodule.exports = new function () {\n var BM = this;\n "
},
{
"path": "src/models/metadata/GitHubData.js",
"chars": 4139,
"preview": "import Store from '../Store';\nimport ErrorModel from '../ErrorModel';\n\nconst CLANG = {\n name: 'TheAlgorithms/C',\n gitH"
},
{
"path": "src/models/metadata/YoudaoTranslateData.js",
"chars": 1756,
"preview": "import Store from '../Store';\nimport JSONP from '../../utils/JSONP';\nimport { formatSuggestionStr, formatTranslationArr "
},
{
"path": "src/sw.js",
"chars": 11421,
"preview": "/*\n Copyright 2014 Google Inc. All Rights Reserved.\n Licensed under the Apache License, Version 2.0 (the \"License\");\n yo"
},
{
"path": "src/utils/FormHandler.js",
"chars": 1219,
"preview": "import Navigator from './Navigator';\n\nconst FormHandler = new function () {\n function getForm(method) {\n let _form ="
},
{
"path": "src/utils/HashHandler.js",
"chars": 515,
"preview": "const HashHandler = (function () {\n let lc = window.location;\n function getByURL(url) {\n let hash;\n url && decod"
},
{
"path": "src/utils/JSONP.js",
"chars": 985,
"preview": "const JSONP = (url, options) => {\n options = options || {};\n url = options.url || url;\n return new Promise((resolve, "
},
{
"path": "src/utils/LocalStorage.js",
"chars": 846,
"preview": "class BasicStorage {\n constructor() {\n this._store = {};\n }\n\n getItem(key) {\n return this._store[key];\n }\n\n s"
},
{
"path": "src/utils/Navigator.js",
"chars": 1700,
"preview": "const Navigator = (function () {\n let frame,\n androidReg = /Android/gi,\n isAndroid = androidReg.test(navigator.pl"
},
{
"path": "src/utils/Param.js",
"chars": 574,
"preview": "\nfunction fn(str, reg) {\n if (str) {\n let data = {};\n str.replace(reg, function ($0, $1, $2, $3) {\n data[$1]"
},
{
"path": "src/utils/Tools.js",
"chars": 2456,
"preview": "const ua = navigator.userAgent;\nconst android = ua.match(/(Android);?[\\s/]+([\\d.]+)?/);\nconst ipad = ua.match(/(iPad).*O"
},
{
"path": "src/utils/TranslateHandler.js",
"chars": 873,
"preview": "\nexport function formatSuggestionStr(str) {\n if (!str) { return []; }\n let tmp = [];\n return str.replace(/[`~!@#$^&*("
},
{
"path": "src/vendors/prettify.css",
"chars": 2185,
"preview": "/**\n * @license\n * Copyright (C) 2015 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n"
},
{
"path": "src/vendors/prettify.js",
"chars": 65457,
"preview": "/**\n * @license\n * Copyright (C) 2006 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n"
},
{
"path": "styles/_animation.scss",
"chars": 1035,
"preview": "%animate {\n animation-duration: $anim-default-time;\n animation-iteration-count: 1;\n animation-fill-mode: both;\n anim"
},
{
"path": "styles/_common.scss",
"chars": 3487,
"preview": "*,\n:after,\n:before {\n -webkit-box-sizing: border-box; /*size not include padding and margin*/\n}\n\nhtml, body {\n width: "
},
{
"path": "styles/_components.scss",
"chars": 104,
"preview": "@import \"logo\";\n@import \"donate\";\n@import \"nav-bar-container\";\n@import \"source-code\";\n@import \"doodle\";\n"
},
{
"path": "styles/_constants.scss",
"chars": 193,
"preview": "/* animation */\n$anim-cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);\n$anim-default-time: 0.6s;\n\n/* color */\n$box-shadow: rg"
},
{
"path": "styles/_containers.scss",
"chars": 84,
"preview": "@import \"main-container\";\n@import \"copybook-container\";\n@import \"notice-container\";\n"
},
{
"path": "styles/_copybook-container.scss",
"chars": 1192,
"preview": "@at-root {\n .copybook-container {\n &#{&}> .header {\n padding: 0.8rem 1rem;\n }\n > .content {\n positio"
},
{
"path": "styles/_donate.scss",
"chars": 372,
"preview": ".donate {\n padding: 2rem 0;\n text-align: center;\n\n form {\n display: inline-block;\n }\n\n .hd {\n padding-bottom:"
},
{
"path": "styles/_doodle.scss",
"chars": 3346,
"preview": "@at-root {\n css-doodle {\n position: fixed;\n z-index: -1;\n // fish\n &.fish {\n --color: @p(#FDFFFC, #2E"
},
{
"path": "styles/_logo.scss",
"chars": 191,
"preview": "@at-root {\n .logo {\n margin: 1rem auto;\n width: 3rem;\n height: 3rem;\n\n img {\n display: inherit;\n "
},
{
"path": "styles/_main-container.scss",
"chars": 4174,
"preview": ".main-container {\n $dark-theme: 'body.dark &';\n position: relative;\n display: flex;\n align-items: center;\n flex-dir"
},
{
"path": "styles/_nav-bar-container.scss",
"chars": 1263,
"preview": ".nav-bar-container {\n position: relative;\n top: 0;\n z-index: 10;\n .bd {\n top: -0.25rem;\n right: 0;\n positio"
},
{
"path": "styles/_notice-container.scss",
"chars": 420,
"preview": ".notice-container {\n $dark-theme: 'body.dark &';\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n padding-bo"
},
{
"path": "styles/_source-code.scss",
"chars": 435,
"preview": "@at-root {\n .source-code {\n &#{&}> .header {\n padding: 0.8rem 1rem;\n }\n > .content {\n pre {\n "
},
{
"path": "styles/_utils.scss",
"chars": 1176,
"preview": "@mixin clearfix() {\n & {\n &::before,\n &::after {\n content: \"\";\n display: table;\n }\n &::after {\n "
},
{
"path": "styles/app.scss",
"chars": 174,
"preview": "@charset \"UTF-8\";\n@import 'constants';\n@import 'common';\n@import 'utils';\n@import \"animation\";\n.app {\n position: relati"
},
{
"path": "webpack.config.js",
"chars": 701,
"preview": "'use strict'\n\nconst path = require('path');\nconst merge = require('webpack-merge');\n\nconst common = {\n entry: ['@babel/"
}
]
// ... and 5 more files (download for full content)
About this extraction
This page contains the full source code of the unbug/codelf GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 132 files (3.4 MB), approximately 894.6k tokens, and a symbol index with 1908 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.