Repository: tower1229/WidgetsPlayground
Branch: master
Commit: f7e929200993
Files: 97
Total size: 539.5 KB
Directory structure:
gitextract_n72xu_uf/
├── .gitattributes
├── CODE_OF_CONDUCT.md
├── README.md
├── index.html
├── licence
├── src/
│ ├── app.js
│ ├── assets/
│ │ ├── common.js
│ │ ├── util.js
│ │ └── wilddog.js
│ ├── component/
│ │ ├── blank.js
│ │ ├── body.js
│ │ ├── component-list.js
│ │ ├── config-pannel.js
│ │ ├── data-count.js
│ │ ├── filter.js
│ │ ├── head.js
│ │ ├── login.js
│ │ ├── main.js
│ │ ├── nav.js
│ │ ├── play-time.js
│ │ ├── quick-start.js
│ │ ├── regist.js
│ │ └── user-set.js
│ ├── plugin/
│ │ └── dropdown.js
│ ├── router.js
│ └── store/
│ ├── actions.js
│ ├── getters.js
│ ├── mutations.js
│ └── store.js
├── static/
│ ├── css/
│ │ ├── platform.css
│ │ └── ui.css
│ └── lib/
│ ├── etpl.js
│ ├── sea.js
│ ├── vue-router.js
│ ├── vue.js
│ └── vuex.js
└── widgets/
├── bread/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── data.json
├── download/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── form/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── history/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── job/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── nav/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── newsdetail/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── newslist/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── page/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── prodetail/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── prolist/
│ ├── 1/
│ │ ├── config.json
│ │ ├── script.js
│ │ ├── style.css
│ │ └── temp.htm
│ └── 2/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── qa/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
├── search/
│ └── 1/
│ ├── config.json
│ ├── script.js
│ ├── style.css
│ └── temp.htm
└── table/
└── 1/
├── config.json
├── script.js
├── style.css
└── temp.htm
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
*.js linguist-language=vue
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Code of Conduct
## 1. Purpose
A primary goal of Widgets Playground is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
We invite all those who participate in Widgets Playground to help us create safe and positive experiences for everyone.
## 2. Open Source Citizenship
A supplemental goal of this Code of Conduct is to increase open source citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
## 3. Expected Behavior
The following behaviors are expected and requested of all community members:
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
* Exercise consideration and respect in your speech and actions.
* Attempt collaboration before conflict.
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
## 4. Unacceptable Behavior
The following behaviors are considered harassment and are unacceptable within our community:
* Violence, threats of violence or violent language directed against another person.
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
* Posting or displaying sexually explicit or violent material.
* Posting or threatening to post other people’s personally identifying information ("doxing").
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
* Inappropriate photography or recording.
* Inappropriate physical contact. You should have someone’s consent before touching them.
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
* Deliberate intimidation, stalking or following (online or in person).
* Advocating for, or encouraging, any of the above behavior.
* Sustained disruption of community events, including talks and presentations.
## 5. Consequences of Unacceptable Behavior
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
Anyone asked to stop unacceptable behavior is expected to comply immediately.
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
## 6. Reporting Guidelines
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. tower1229@gmail.com.
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
## 7. Addressing Grievances
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Tower1229 with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
## 8. Scope
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business.
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
## 9. Contact info
tower1229@gmail.com
## 10. License and attribution
This Code of Conduct is distributed under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
Retrieved on November 22, 2016 from [http://citizencodeofconduct.org/](http://citizencodeofconduct.org/)
================================================
FILE: README.md
================================================
# WidgetsPlayground
[]() []() []()
## 介绍
前端组件管理系统,前端基于Vue2/Vue-router/Vuex实现,界面基于[Flow-UI](http://flow-ui.refined-x.com/)实现,后端基于野狗云实现。
除了组件管理以外,本项目同时演示了一种不依赖构建工具开发Vue项目的思路,详细介绍参见[如何不用构建工具开发Vue全家桶项目](https://refined-x.com/2017/10/28/%E5%A6%82%E4%BD%95%E4%B8%8D%E7%94%A8%E6%9E%84%E5%BB%BA%E5%B7%A5%E5%85%B7%E5%BC%80%E5%8F%91Vue%E5%85%A8%E5%AE%B6%E6%A1%B6%E9%A1%B9%E7%9B%AE/)
## 功能
### 组件管理
- 二级分类
- 标签筛选
- 时间/名称排序
- 关键词搜索
### 组件演示
- 实时编辑
- 多组件组合
- 所见即所得
### 组件应用
- HTML/CSS/JS代码一键复制
- 还可以将编辑结果生成配置代码,实现编辑结果一键再现
### 用户管理
- 接入野狗云后端,实现用户管理
- 用户使用痕迹数据统计
## 配置
- 项目直接丢进服务器环境就可以运行
- 运行前,先修改`index.html`底部脚本中的`seajs.root`为`""`(以项目所在的服务路径为准)
- `seajs.widgetRootPath`变量是演示组件库(`/widgets`)的位置,通常不需要修改
- `seajs.config.base`是Flow-UI模块库的地址,通常不需要修改
## 演示
http://refined-x.com/WidgetsPlayground/
================================================
FILE: index.html
================================================
前端组件管理系统
前端路上
================================================
FILE: licence
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
================================================
FILE: src/app.js
================================================
/**
* index
*/
define(function(require, exports, module) {
"use strict";
const router = require('js/router');
const store = require('js/store/store');
const wilddogApp = require('js/assets/wilddog');
let app = new Vue({
el: '#app',
router,
store,
components: {
"loading": {
template: ``,
computed: {
show: function() {
return this.$store.state.showLoading;
}
}
}
},
methods: {
sendEmailVerified: function(cb) {
let user = wilddogApp.auth().currentUser;
if (user) {
user.sendEmailVerification()
.then(function() {
console.log('验证邮件发送成功');
if (typeof cb === 'function') {
cb(user);
}
});
}
}
}
});
});
================================================
FILE: src/assets/common.js
================================================
/**
* name: common
* version: v4.1.2
* update: placeholder inline
* date: 2017-05-11
*/
define(function(require, exports, module) {
var $ = require('jquery');
var base = require('base');
if (base.browser.ie < 8) {
alert('您的浏览器版本过低,请升级或使用chrome、Firefox等高级浏览器!');
//屏蔽ie78 console未定义错误
if (typeof console === 'undefined') {
console = {
log: function() {},
warn: function() {}
};
}
}
//返回顶部
$('body').on('click', '.gotop', function() {
$('html,body').stop(1).animate({
scrollTop: '0'
}, 300);
return false;
});
//textarea扩展max-length
$('textarea[max-length]').on('change blur keyup', function() {
var _val = $(this).val(),
_max = $(this).attr('max-length');
if (_val.length > _max) {
$(this).val(_val.substr(0, _max));
}
});
//延时显示
if (base.browser.ie < 9) {
$('.opc0').css('filter', 'unset');
} else {
$('.opc0').animate({
'opacity': '1'
}, 160);
}
// placeholder
(function(){var isOperaMini=Object.prototype.toString.call(window.operamini)=='[object OperaMini]';var isInputSupported='placeholder'in document.createElement('input')&&!isOperaMini;var isTextareaSupported='placeholder'in document.createElement('textarea')&&!isOperaMini;var valHooks=$.valHooks;var propHooks=$.propHooks;var hooks;var placeholder;if(isInputSupported&&isTextareaSupported){placeholder=$.fn.placeholder=function(){return this};placeholder.input=placeholder.textarea=true}else{var settings={};placeholder=$.fn.placeholder=function(options){var defaults={customClass:'placeholder'};settings=$.extend({},defaults,options);var $this=this;$this.filter((isInputSupported?'textarea':':input')+'[placeholder]').not('.'+settings.customClass).bind({'focus.placeholder':clearPlaceholder,'blur.placeholder':setPlaceholder}).data('placeholder-enabled',true).trigger('blur.placeholder');return $this};placeholder.input=isInputSupported;placeholder.textarea=isTextareaSupported;hooks={'get':function(element){var $element=$(element);var $passwordInput=$element.data('placeholder-password');if($passwordInput){return $passwordInput[0].value}return $element.data('placeholder-enabled')&&$element.hasClass(settings.customClass)?'':element.value},'set':function(element,value){var $element=$(element);var $passwordInput=$element.data('placeholder-password');if($passwordInput){return $passwordInput[0].value=value}if(!$element.data('placeholder-enabled')){return element.value=value}if(value===''){element.value=value;if(element!=safeActiveElement()){setPlaceholder.call(element)}}else if($element.hasClass(settings.customClass)){clearPlaceholder.call(element,true,value)||(element.value=value)}else{element.value=value}return $element}};if(!isInputSupported){valHooks.input=hooks;propHooks.value=hooks}if(!isTextareaSupported){valHooks.textarea=hooks;propHooks.value=hooks}$(function(){$(document).delegate('form','submit.placeholder',function(){var $inputs=$('.'+settings.customClass,this).each(clearPlaceholder);setTimeout(function(){$inputs.each(setPlaceholder)},10)})});$(window).bind('beforeunload.placeholder',function(){$('.'+settings.customClass).each(function(){this.value=''})})}function args(elem){var newAttrs={};var rinlinejQuery=/^jQuery\d+$/;$.each(elem.attributes,function(i,attr){if(attr.specified&&!rinlinejQuery.test(attr.name)){newAttrs[attr.name]=attr.value}});return newAttrs}function clearPlaceholder(event,value){var input=this;var $input=$(input);if(input.value==$input.attr('placeholder')&&$input.hasClass(settings.customClass)){if($input.data('placeholder-password')){$input=$input.hide().nextAll('input[type="password"]:first').show().attr('id',$input.removeAttr('id').data('placeholder-id'));if(event===true){return $input[0].value=value}$input.focus()}else{input.value='';$input.removeClass(settings.customClass);input==safeActiveElement()&&input.select()}}}function setPlaceholder(){var $replacement;var input=this;var $input=$(input);var id=this.id;if(input.value===''){if(input.type==='password'){if(!$input.data('placeholder-textinput')){try{$replacement=$input.clone().attr({'type':'text'})}catch(e){$replacement=$(' ').attr($.extend(args(this),{'type':'text'}))}$replacement.removeAttr('name').data({'placeholder-password':$input,'placeholder-id':id}).bind('focus.placeholder',clearPlaceholder);$input.data({'placeholder-textinput':$replacement,'placeholder-id':id}).before($replacement)}$input=$input.removeAttr('id').hide().prevAll('input[type="text"]:first').attr('id',id).show()}$input.addClass(settings.customClass);$input[0].value=$input.attr('placeholder')}else{$input.removeClass(settings.customClass)}}function safeActiveElement(){try{return document.activeElement}catch(exception){}}})();
$('input, textarea').placeholder();
/*
* 输出
*/
module.exports = {
demo: function() {
var directHash = {
"0": "重定向",
"1": "刷新",
"2": "历史记录"
};
console.log('页面来自' + directHash[window.performance.navigation.type]);
}
};
/*
* 站内公用
*/
});
================================================
FILE: src/assets/util.js
================================================
/**
* name: util
* version: v1.0.1
* update: 潜在的日期排序bug
* date: 2015-07-03
*/
define(function(require, exports, module) {
"use strict";
const $ = require('jquery');
module.exports = {
flatData: function(widgets) {
let flatData = [];
let each = function(eachArray) {
eachArray.forEach(function(e) {
if (e.list && e.list.length) {
each(e.list);
}
if (e.widget) {
flatData.push(e);
}
});
};
each(widgets);
return flatData;
},
storage: {
prefix: 'WDP-',
support: function() {
return localStorage
},
set: function(key, val) {
if (this.support) {
if ($.isPlainObject(val) || $.isArray(val)) {
val = JSON.stringify(val);
};
key = this.prefix + key;
localStorage.setItem(key, val);
}
},
get: function(key) {
if (this.support) {
key = this.prefix + key;
if (localStorage.getItem(key) && (localStorage.getItem(key).match(/^\[(.*){1,}$/) || localStorage.getItem(key).match(/^\{(.+:.+,*){1,}\}$/))) {
return JSON.parse(localStorage.getItem(key));
};
return localStorage.getItem(key);
}
},
remove: function(key) {
if (this.support) {
key = this.prefix + key;
localStorage.removeItem(key);
}
},
clear: function() {
if (this.support) {
var prefix = this.prefix;
for (var item in localStorage) {
if (item.indexOf(prefix) === 0) {
localStorage.removeItem(item);
}
}
}
}
},
getDate: function() {
let myDate = new Date();
return myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDate();
},
sortByProp: function(array, sort) {
let output = {};
if (Array.isArray(array)) {
array.forEach(function(e, i) {
if (e[sort]) {
let thisSort = e[sort];
if (!Array.isArray(output[thisSort])) {
output[thisSort] = [];
}
output[thisSort].push(e);
}
});
}
return output;
},
copyArr: function(arr) {
return arr.map((e) => {
if (typeof e === 'object') {
return Object.assign({}, e);
} else {
return e;
}
});
},
arrIncludes: function(arr, ele){
if(Array.isArray(arr) && ele!==void 0){
if(Array.prototype.includes){
return arr.includes(ele);
}else{
let isIn;
arr.forEach(function(e,i){
if(e===ele){
isIn = true;
}
});
return isIn;
}
}
}
};
});
================================================
FILE: src/assets/wilddog.js
================================================
define(function(require, exports, module) {
"use strict";
const app = wilddog.initializeApp({
syncURL: "https://wild-boar-02388.wilddogio.com",
authDomain: "wild-boar-02388.wilddog.com"
});
module.exports = app;
});
================================================
FILE: src/component/blank.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
};
});
================================================
FILE: src/component/body.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: `
欢迎使用前端组件管理系统
集存储、检索、调试、应用于一体的组件库2.0,旨在提高组件定制性和复用性,提高基于组件的前端开发效率。
`,
components: {
"quick-start": require('js/component/quick-start'),
"v-filter": require('js/component/filter'),
"component-list": require('js/component/component-list'),
"play-time": require('js/component/play-time')
}
};
});
================================================
FILE: src/component/component-list.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: ``,
computed: {
showingWidgets: function() {
return this.$store.getters.showingWidgets;
},
sort: function() {
return this.$store.state.sortBy;
},
widgets: function() {
let dateToNum = function(dataType) {
var _num = 0,
_array = dataType.split('-');
if (_array.length === 3) {
_num += parseInt(_array[0]) * 10000;
_num += parseInt(_array[1]) * 100;
_num += parseInt(_array[2]);
}
return _num;
};
let result;
switch (this.sort) {
case 'title':
result = this.showingWidgets.sort(function(a, b) {
return a.title.localeCompare(b.title);
});
break;
case 'date':
result = this.showingWidgets.sort(function(a, b) {
return dateToNum(b.date) - dateToNum(a.date);
});
break;
default:
result = this.showingWidgets;
break;
}
result.forEach(function(e, i) {
const widgetInfo = e.widget.split('-');
let widgetPath = seajs.widgetRootPath + '/' + widgetInfo[0] + '/';
const widgetExt = {
temp: 'temp.htm',
css: 'style.css',
script: 'script.js',
album: 'album.jpg',
conf: 'config.json'
};
if (widgetInfo.length === 2) {
widgetPath += (widgetInfo[1] + '/');
}
for (let x in widgetExt) {
e[x] = widgetPath + widgetExt[x];
}
});
return result;
}
},
methods: {
liClick: function(widgetName) {
if (widgetName) {
let widget = this.widgets.find(function(value) {
return value.widget === widgetName;
});
this.$store.dispatch('widgetClick', widget);
}
},
albumerror: function(event) {
event.target.src = seajs.root + '/static/images/nopic.jpg';
}
}
};
});
================================================
FILE: src/component/config-pannel.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: ``,
props: ['widgets', 'diffCode'],
data: function() {
return {
showingPannel: '',
timer: null
};
},
methods: {
togglePannel: function(pannelName) {
if (this.showingPannel === pannelName) {
this.showingPannel = '';
} else {
this.showingPannel = pannelName;
}
},
configChange: function(target) {
let vm = this;
let key = target.dataset.key;
let val = isNaN(parseFloat(target.value)) ? target.value : parseFloat(target.value);
let configItem = target.dataset.item;
let widgetIndex = target.dataset.index;
if (!vm.widgets[widgetIndex].userConfig[configItem]) {
vm.widgets[widgetIndex].userConfig[configItem] = {};
}
if (!vm.widgets[widgetIndex].userConfig[configItem][key]) {
vm.widgets[widgetIndex].userConfig[configItem][key] = {};
}
vm.widgets[widgetIndex].userConfig[configItem][key].value = val;
vm.$emit('updateUserConfig');
},
reset: function() {
let vm = this;
vm.widgets.forEach(function(e, i) {
e.userConfig = {};
Vue.set(vm.widgets, i, e);
});
vm.$emit('updateUserConfig');
},
copyDiff: function() {
this.$emit('copy', JSON.stringify(this.diffCode));
},
copyHTML: function() {
this.$emit('copy', 'html');
},
copyCSS: function() {
this.$emit('copy', 'css');
},
copyJS: function() {
this.$emit('copy', 'js');
},
add: function(place) {
this.$emit('add', place);
},
delQueue: function(index) {
if (this.widgets.length > 1 && (this.widgets.length - index > 0)) {
this.widgets.splice(index, 1);
}
}
}
};
});
================================================
FILE: src/component/data-count.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
module.exports = {
template: `
{{date}}
{{dayWidget.widget}}
{{set}}
Unmodified
`,
data: function() {
let userTrackRecord = this.$store.state.userInfo.track.record;
let trackData = util.sortByProp(userTrackRecord.reverse(), 'date');
return {
track: trackData
};
},
methods: {
close: function() {
this.$emit('close');
}
}
};
});
================================================
FILE: src/component/filter.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
module.exports = {
template: `
{{bread}}
标签:
全部
{{tag}}
排序:
名称排序
时间排序
`,
computed: {
tags: function() {
return this.$store.state.tags;
},
bread: function() {
return this.$store.state.bread;
}
},
data: function() {
return {
showtag: [],
sortBy: ''
};
},
methods: {
includes: function(tag) {
let vm = this;
return util.arrIncludes(vm.showtag, tag);
},
tagClick: function(event) {
let text = event.target.innerText;
let index = this.showtag.findIndex(function(value) {
return value === text;
});
if (index > -1) {
this.showtag.splice(index, 1);
} else {
this.showtag.push(text);
}
this.doFilter();
},
allClick: function() {
this.showtag = [];
this.doFilter();
},
triggerSort: function(by) {
if (this.sortBy === by) {
this.sortBy = '';
} else {
this.sortBy = by;
}
this.doFilter();
},
doFilter: function(to) {
let thePath = to ? to.path : null;
let theQuery = {};
if (this.showtag.length) {
theQuery.tag = JSON.stringify(this.showtag);
}
if (this.sortBy) {
theQuery.sort = this.sortBy;
}
this.$router.push({
path: thePath,
query: theQuery
});
this.$store.commit('filterTag', this.showtag);
this.$store.commit('sort', this.sortBy);
}
},
created: function() {
if (this.$route.query.tag) {
this.showtag = JSON.parse(this.$route.query.tag);
}
if (this.$route.query.sort) {
this.sortBy = this.$route.query.sort;
}
this.doFilter();
}
};
});
================================================
FILE: src/component/head.js
================================================
define(function(require, exports, module) {
"use strict";
const wilddogApp = require('js/assets/wilddog');
const Dropdown = require('js/plugin/dropdown');
Vue.use(Dropdown);
const util = require('js/assets/util');
const UserSet = require('js/component/user-set');
const DataCount = require('js/component/data-count');
module.exports = {
template: ``,
components: {
"user-set": UserSet,
"data-count": DataCount
},
computed: {
info: function() {
return this.$store.state.userInfo
}
},
data: function() {
return {
focusClass: '',
menuItems: [{
text: '个人设置',
win: 'userset'
}, {
text: '数据统计',
win: 'dadtacount'
}, {
text: '立即更新',
win: 'checkupdate'
}, {
text: '退出',
win: 'logout'
}],
popwin: ''
};
},
methods: {
input: function(event) {
let vm = this;
setTimeout(function() {
vm.$store.commit('search', event.target.value);
}, 0);
},
focus: function() {
this.focusClass = 'focus';
this.$store.commit('scrollTop');
},
blur: function(event) {
let vm = this;
this.focusClass = '';
setTimeout(function() {
vm.$store.commit('search', event.target.value);
}, 0);
},
menuClick: function(item) {
let vm = this;
switch (item.win) {
case "logout":
wilddogApp.auth().signOut().then(function() {
box.hide();
vm.$router.push('/login');
}).catch(function(error) {
box.msg(error, {
color: 'danger'
});
});
break;
case "checkupdate":
util.storage.clear();
vm.$store.dispatch('update');
break;
default:
vm.popwin = item.win;
}
},
subInfo: function(info) {
this.$store.dispatch('setUserInfo', info);
this.popwin = '';
}
}
};
});
================================================
FILE: src/component/login.js
================================================
define(function(require, exports, module) {
"use strict";
const box = require('box');
const wilddogApp = require('js/assets/wilddog');
module.exports = {
template: `
注册
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
马上注册
`,
methods: {
signIn: function(eml, psw, cb) {
let vm = this;
wilddogApp.auth().signInWithEmailAndPassword(eml, psw)
.then(function(user) {
if (typeof cb === 'function') {
cb(user);
}
}).catch(function(error) {
vm.$store.commit('callLoading', false);
box.msg(error, {
color: 'danger'
});
});
},
qqSignIn: function() {
let vm = this;
let provider = new wilddog.auth.QQAuthProvider();
wilddogApp.auth().signInWithPopup(provider).then(function(user) {
vm.signInDirect();
}).catch(function(error) {
vm.$store.commit('callLoading', false);
box.msg(error, {
color: 'danger'
});
});
},
signInDirect: function() {
let vm = this;
vm.$store.commit('callLoading', false);
box.hide();
vm.$router.push('/');
}
},
created: function() {
let vm = this;
require.async(['jquery', 'validform'], function($) {
vm.$nextTick(function() {
let validIns = $('#validForm').Validform({
tipSweep: false,
beforeSubmit: function(form) {
vm.$store.commit('callLoading', true);
vm.signIn(form.find('input[name="email"]').val(), form.find('input[name="pwd"]').val(), function(user) {
vm.signInDirect();
});
return false;
}
});
//忘记密码
$('.resetPsw').on('click', function() {
var hasEml = validIns.check(false, 'input[name="email"]');
let emlVal = $('#validForm').find('input[name="email"]').val();
if (hasEml) {
wilddogApp.auth().sendPasswordResetEmail(emlVal).then(function() {
box.msg('重置密码邮件已发送到 ' + emlVal);
});
}
});
});
});
}
};
});
================================================
FILE: src/component/main.js
================================================
define(function(require, exports, module) {
"use strict";
const box = require('box');
const wilddogApp = require('js/assets/wilddog');
module.exports = {
template: ``,
components: {
"v-head": require('js/component/head'),
"v-nav": require('js/component/nav'),
"v-body": require('js/component/body')
},
created: function() {
let vm = this;
//登录状态检测
vm.$store.commit('callLoading', true);
wilddog.auth().onAuthStateChanged(function() {
let currentUser = wilddogApp.auth().currentUser;
vm.$store.commit('callLoading', false);
if (currentUser) {
vm.$store.commit('updateUserInfo', currentUser);
vm.$store.dispatch('update');
if (currentUser.email && !currentUser.emailVerified) {
box.msg('邮箱未验证,请前往注册邮箱验证。没有到验证邮件?[点此重发 ]', {
color: 'info',
onshow: function($box) {
$box.find('.resendvalidemail').on('click', function() {
vm.sendEmailVerified(function() {
box.msg('验证邮件发送成功', {
color: 'success'
});
});
});
}
});
}
//同步云端数据
let ref = wilddogApp.sync().ref();
ref.child('/users/' + currentUser.uid).on('value', function(snapshot) {
let userInfo = snapshot.val();
if (userInfo.track.record && userInfo.track.record.split) {
userInfo.track.record = JSON.parse(userInfo.track.record);
vm.$store.commit('updateUserInfo', userInfo);
} else {
console.warn('用户数据异常', userInfo);
}
});
} else {
box.hide();
return vm.$router.replace('/login');
}
});
}
};
});
================================================
FILE: src/component/nav.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: ``,
computed: {
navdata: function() {
return this.$store.getters.navData;
}
},
data: function() {
return {
hoverMenu: '',
currentNav: ['0', '0'],
navSync: null
};
},
methods: {
mainNavIn: function(index) {
if (this.navdata[index].list) {
this.hoverMenu = index;
clearTimeout(this.navSync);
} else {
this.hoverMenu = '';
}
},
mainNavOut: function() {
var that = this;
that.navSync = setTimeout(function() {
that.hoverMenu = '';
}, 160);
},
mainNavClick: function(index) {
this.$store.commit('scrollTop');
},
subNavIn: function() {
clearTimeout(this.navSync);
},
subNavOut: function() {
var that = this;
that.navSync = setTimeout(function() {
that.hoverMenu = '';
}, 160);
},
subNavClick: function(event) {
this.$store.commit('scrollTop');
},
getNav: function(router) {
if (router.params.cid !== void 0) {
this.currentNav.splice(0, 1, router.params.cid);
} else {
this.currentNav.splice(0, 1, '0');
}
if (this.$route.params.tid !== void 0) {
this.currentNav.splice(1, 1, router.params.tid);
} else {
this.currentNav.splice(1);
}
this.$store.commit('updateNav', this.currentNav);
}
},
watch: {
$route: function(to, from) {
this.getNav(to);
}
},
created: function() {
this.getNav(this.$route);
}
};
});
================================================
FILE: src/component/play-time.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
const box = require('box');
module.exports = {
template: ``,
components: {
"config-pannel": require('js/component/config-pannel')
},
data: function() {
return {
playWidgets: [],
html: '',
css: '',
js: '',
insertPlace: '',
diffCode: []
};
},
computed: {
choosen: function() {
return this.$store.state.choosenWidget;
},
title: function() {
let result = [];
this.playWidgets.forEach(function(e, i) {
result.push(e.title);
});
return result.join(' + ');
}
},
methods: {
genHtml: function() {
let html = '';
let css = '';
let js = '';
let vm = this;
if (vm.playWidgets.length) {
let scriptNode = document.getElementById('widgetJsNode');
if (scriptNode) {
document.body.removeChild(scriptNode);
}
let diff = [];
vm.playWidgets.forEach(function(e, i) {
let configFinnal = JSON.parse(JSON.stringify(e.confBack)); //深拷贝
for (let x in configFinnal) {
if (e.userConfig[x]) {
for (let uckey in e.userConfig[x]) {
Object.assign(configFinnal[x][uckey], e.userConfig[x][uckey]);
}
}
}
e.configFinnal = configFinnal;
let htmlfragment = '' + etpl.compile(e.htmlTemp)(Object.assign({}, e.configFinnal.showConfig, {
id: e.id
})) + '
';
html += vm.wrapString(htmlfragment, 'html', e.widget);
let cssfragment = etpl.compile(e.cssTemp)(Object.assign({}, e.configFinnal.cssConfig, {
id: e.id
}));
css += vm.wrapString(cssfragment, 'css', e.widget);
let jsfragment = etpl.compile(e.jsTemp)(Object.assign({}, e.configFinnal.jsConfig, {
id: e.id
}));
js += vm.wrapString(jsfragment, 'javascript', e.widget);
//diffCode
diff.push({
userConfig: e.userConfig,
widget: e.widget
});
vm.diffCode = diff;
});
console.log('组件html加载完成');
css = css.trim();
js = js.trim();
if (css) {
document.getElementById('playingCss').innerHTML = css;
vm.css = css;
console.log('组件css加载完成');
}
if (js) {
scriptNode = document.createElement('script');
let scriptName = vm.playWidgets[0].widget + '-script-' + parseInt(Math.random() * 1e6);
let scriptText = `
define("${scriptName}", function(require) {
var $ = require("jquery"),base = require("base"),com = require("js/assets/common");
${js}
});
seajs.use("${scriptName}")`;
scriptNode.innerHTML = scriptText;
scriptNode.setAttribute('id', 'widgetJsNode');
setTimeout(function() {
document.body.appendChild(scriptNode);
console.log('组件js加载完成');
}, 0);
vm.js = js;
}
}
vm.html = html.trim();
},
promiseGet: function(road) {
if (util.storage.get(road) !== null) {
return new Promise(function(resolve, reject) {
resolve({
data: util.storage.get(road),
config: {
url: road
}
});
});
} else {
return axios.get(road);
}
},
getTemp: function(widgetArray, cb) {
if (!Array.isArray(widgetArray)) {
return [];
}
let vm = this;
vm.$store.commit('callLoading', true);
Promise.all(widgetArray.map(function(widget) {
return vm.promiseGet(widget.conf); //axios.get(widget.conf);
})).then(function(posts) {
widgetArray.forEach(function(e, i) {
e.confBack = posts[i].data;
e.id = parseInt(Math.random() * 1e6);
e.userConfig = e.userConfig || {};
if (!util.storage.get(posts[i].config.url)) {
util.storage.set(posts[i].config.url, e.confBack);
}
let configFinnal = JSON.parse(JSON.stringify(e.confBack)); //深拷贝
for (let x in configFinnal) {
if (e.userConfig[x]) {
for (let uckey in e.userConfig[x]) {
configFinnal[x][uckey] = e.userConfig[x][uckey];
}
}
}
e.configFinnal = configFinnal;
});
return Promise.all(widgetArray.map(function(widget) {
return vm.promiseGet(widget.css);
}));
}).then(function(posts) {
posts.forEach(function(e, i) {
widgetArray[i].cssTemp = e.data;
if (!util.storage.get(posts[i].config.url)) {
util.storage.set(posts[i].config.url, e.data);
}
});
return Promise.all(widgetArray.map(function(widget) {
return vm.promiseGet(widget.temp);
}));
}).then(function(posts) {
posts.forEach(function(e, i) {
widgetArray[i].htmlTemp = e.data;
if (!util.storage.get(posts[i].config.url)) {
util.storage.set(posts[i].config.url, e.data);
}
});
return Promise.all(widgetArray.map(function(widget) {
return vm.promiseGet(widget.script);
}));
}).then(function(posts) {
posts.forEach(function(e, i) {
widgetArray[i].jsTemp = e.data;
if (!util.storage.get(posts[i].config.url)) {
util.storage.set(posts[i].config.url, e.data);
}
});
vm.$store.commit('callLoading', false);
if (typeof cb === 'function') {
cb(widgetArray);
} else {
vm.playWidgets = widgetArray;
vm.genHtml();
}
});
},
copy: function(text) {
if (text) {
let inputText = document.getElementById('copyTargetInput');
let currentFocus = document.activeElement;
inputText.value = text;
inputText.focus();
inputText.setSelectionRange(0, inputText.value.length);
document.execCommand('copy');
currentFocus.focus();
box.msg('复制成功', {
delay: 2000
});
} else {
box.msg('复制内容为空', {
delay: 2000
});
}
},
pannelCopyHandle: function(command) {
switch (command) {
case "html":
this.copy(this.html);
break;
case "css":
this.copy(this.css);
break;
case "js":
this.copy(this.js);
break;
default:
this.copy(command);
}
},
getConfigArray: function(userConfig) {
let conf = [];
for (let x in userConfig) {
if (userConfig.hasOwnProperty(x)) {
let confPreFix = x + '-';
let subConf = userConfig[x];
for (let y in subConf) {
let confObj = confPreFix + y + " = " + subConf[y].value;
conf.push(confObj);
}
}
}
return conf;
},
close: function() {
let vm = this;
//保存使用数据
let _userInfo = vm.$store.state.userInfo;
vm.playWidgets.forEach(function(e, i) {
let thisone = Object.assign({}, e);
thisone.date = util.getDate();
thisone.set = vm.getConfigArray(e.userConfig);
_userInfo.track.record.push(thisone);
});
vm.$store.dispatch('setUserRecord', _userInfo);
vm.$store.commit('setPlaying', []);
},
wrapString: function(string, type, decorate) {
var _before = '',
_after = '',
_decorate = decorate || '';
if (string !== '') {
switch (type) {
case "html":
_before = '\n';
_after = '\n\n';
break;
case "css":
_before = '/* ' + _decorate + ' start*/\n';
_after = '\n';
break;
default:
_before = '// ' + _decorate + '\n';
_after = '\n';
break;
}
}
return _before + string + _after;
},
addWidget: function(place) {
this.insertPlace = place;
this.$store.commit('setWaitToChoose', true);
}
},
watch: {
choosen: function(newVal) {
let vm = this;
if (newVal && vm.insertPlace) {
vm.getTemp([newVal], function(choosenWidget) {
switch (vm.insertPlace) {
case 'before':
vm.playWidgets.unshift(choosenWidget[0]);
break;
case 'after':
vm.playWidgets.push(choosenWidget[0]);
break;
default:
console.warn('insert place error!');
}
vm.genHtml();
});
}
}
},
created: function() {
this.getTemp(this.$store.state.playingWidgets);
}
};
});
================================================
FILE: src/component/quick-start.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: ``,
computed: {
callCode: {
get: function() {
return this.$store.state.callCode;
},
set: function(value) {
this.$store.commit('setCallCode', value);
}
}
},
methods: {
callWidget: function() {
this.$store.commit('callWidget');
}
}
};
});
================================================
FILE: src/component/regist.js
================================================
define(function(require, exports, module) {
"use strict";
const box = require('box');
const wilddogApp = require('js/assets/wilddog');
module.exports = {
template: ``,
methods: {
registUser: function(eml, psw, cb) {
let vm = this;
wilddogApp.auth().createUserWithEmailAndPassword(eml, psw)
.then(function(user) {
vm.$root.sendEmailVerified();
let ref = wilddogApp.sync().ref();
ref.child('/users/' + user.uid + '/track').set({
"record": "[]"
}, function(error) {
if (error) {
box.msg(error, {
color:'danger'
});
}else{
console.log('新用户同步到野狗云端成功');
}
});
if (typeof cb === 'function') {
cb(user);
}
}).catch(function(error) {
vm.$store.commit('callLoading', false);
box.msg(error, {
color: 'danger'
});
});
}
},
created: function() {
let vm = this;
require.async(['jquery', 'validform'], function($) {
vm.$nextTick(function() {
$('#validForm').Validform({
tipSweep: false,
beforeSubmit: function(form) {
vm.$store.commit('callLoading', true);
require.async('jquery', function($) {
vm.registUser(form.find('input[name="email"]').val(), form.find('input[name="userpassword"]').val(), function(user) {
vm.$store.dispatch('setUserInfo', Object.assign(user, {
displayName: form.find('input[name="username"]').val()
})).then(function(user) {
vm.$store.commit('callLoading', false);
vm.$router.push('/');
});
});
});
return false;
}
});
});
});
}
};
});
================================================
FILE: src/component/user-set.js
================================================
define(function(require, exports, module) {
"use strict";
module.exports = {
template: `
怎么称呼:
OK
`,
computed: {
info: {
get: function() {
return this.$store.state.userInfo;
},
set: function(value) {
this.$store.commit('updateUserInfo', {
displayName: value
});
}
}
},
methods: {
subInfo: function() {
this.$emit('subInfo', this.info);
},
close: function() {
this.$emit('close');
}
}
};
});
================================================
FILE: src/plugin/dropdown.js
================================================
define(function(require, exports, module) {
"use strict";
seajs.importStyle(`
.dropdown-fade-enter-active {transition: all .3s ease-in;}
.dropdown-fade-leave-active {transition: all .3s ease-out;}
.dropdown-fade-enter, .dropdown-fade-leave-active {transform: translateY(-10px);opacity: 0;}
.dropdown{position:relative;}
.dropdown-head{cursor:pointer;user-select:none;}
.dropdown-menu{position:absolute;left:0;top:100%; padding:3px 0;}
.dropdown-menu ul{background:#fff;border-radius:4px;color:#434343;overflow:hidden;box-shadow: 0 1px 6px rgba(0,0,0,.2);}
.dropdown-item{padding:0 1em;line-height:2.6em;cursor:pointer;white-space:nowrap;}
.dropdown-item:hover{background:#dedede;}`, module.uri);
module.exports = {
install: function(Vue, options) {
Vue.mixin({
components: {
Dropdown: {
template: ``,
props: {
name: {
type: String,
required: false,
default: ""
},
items: {
type: Array,
required: true
},
trigger: {
type: String,
default: "hover"
}
},
data() {
return {
visible: false,
timeout: null
};
},
methods: {
documentHandler(e) {
if (this.$el.contains(e.target)) {
return false;
}
this.handleClose();
},
handleClick() {
if (this.trigger === 'custom') return false;
if (this.trigger !== 'click') {
return false;
}
this.visible = !this.visible;
},
handleMouseenter() {
if (this.trigger === 'custom') return false;
if (this.trigger !== 'hover') {
return false;
}
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
this.visible = true;
}, 250);
},
handleMouseleave() {
if (this.trigger === 'custom') return false;
if (this.trigger !== 'hover') {
return false;
}
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
this.visible = false;
}, 150);
},
handleClose() {
if (this.trigger === 'custom') return false;
if (this.trigger !== 'click') {
return false;
}
this.visible = false;
},
onClick: function(item){
this.visible = false;
this.$emit("onClick", item);
}
},
created: function() {
document.addEventListener('click', this.documentHandler);
},
beforeDestroy: function() {
document.removeEventListener('click', this.documentHandler);
}
}
}
});
}
};
});
================================================
FILE: src/router.js
================================================
define(function(require, exports, module) {
"use strict";
const router = new VueRouter({
base: seajs.root,
routes: [{
path: '/',
component: function (resolve, reject) {
require.async('js/component/main', function(main){
resolve(main);
});
},
children: [{
path: '/channel/:cid',
children: [{
path: 'type/:tid'
}]
}]
}, {
path: '/login',
component: function (resolve, reject) {
require.async('js/component/login', function(login){
resolve(login);
});
}
}, {
path: '/regist',
component: function (resolve, reject) {
require.async('js/component/regist', function(regist){
resolve(regist);
});
}
}, {
path: '*',
redirect: '/'
}]
});
module.exports = router;
});
================================================
FILE: src/store/actions.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
const box = require('box');
const notice = require('notice');
const wilddogApp = require('js/assets/wilddog');
module.exports = {
setUserRecord: function(context, user) {
let ref = wilddogApp.sync().ref();
ref.child('/users/' + user.uid + '/track').set({
"record": JSON.stringify(user.track.record)
}, function(error) {
if (error) {
box.msg(error, {
color:'danger'
});
}else{
console.log('同步用户记录到野狗云端成功');
}
});
},
setUserInfo: function(context, info) {
let currentUser = wilddogApp.auth().currentUser;
return new Promise(function(resolve, reject) {
if (info && currentUser) {
currentUser.updateProfile({
'photoURL': info.photoUrl || '',
'displayName': info.displayName || '',
})
.then(function(user) {
context.commit('updateUserInfo', user);
resolve(user);
})
.catch(function(err) {
console.info("update user info failed.", err);
});
} else {
reject(error);
}
});
},
update: function(context) {
context.commit('callLoading', true);
axios.get(seajs.widgetRootPath + "/data.json", {
emulateJSON: true
}).then(response => {
let res = response.data;
let localVersion = util.storage.get('version');
if (localVersion && (localVersion.value !== res.version.value)) {
util.storage.clear();
notice({
title: "升级到" + res.version.value,
desc: res.version.description
});
}
context.commit('setVersion', res.version);
context.commit('setWidgets', res.widgets);
context.commit('callLoading', false);
});
},
widgetClick: function(context, widgetObject) {
if (context.state.waitToChoose) {
context.commit('setWaitToChoose', false);
context.commit('setChoosen', widgetObject);
} else {
let _playingWidgets = context.state.playingWidgets;
_playingWidgets.push(widgetObject);
context.commit('setPlaying', _playingWidgets);
}
}
};
});
================================================
FILE: src/store/getters.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
module.exports = {
navData: function(state) {
let allwidgetsnum = 0;
let homeIndex;
let navData = JSON.parse(JSON.stringify(state.widgets));
if (Array.isArray(navData) && navData.length) {
navData.forEach(function(cell, i) {
let channelwidgetsnum = 0;
if (Array.isArray(cell.list) && cell.list.length) {
cell.list.forEach(function(e) {
if (e.list) {
channelwidgetsnum += e.list.length;
}
});
}
cell.nums = channelwidgetsnum;
allwidgetsnum += channelwidgetsnum;
if (cell.title === '首页') {
homeIndex = i;
}
});
navData[homeIndex].nums = allwidgetsnum;
}
return navData;
},
flatData: function(state) {
return util.flatData(state.widgets);
},
showingWidgets: function(state, getters) {
let result = [];
if (state.keywords) {
result = getters.filterSearch;
} else {
result = getters.filterChannel;
}
//标签筛选
if (state.filtertag.length) {
let newresult = [];
let copyfiltertag = state.filtertag;
result.forEach(function(wid, i) {
let mytag = wid.tag.split('/');
copyfiltertag.forEach(function(tag, o) {
if (util.arrIncludes(mytag, tag)) {
newresult.push(wid);
}
});
});
result = newresult;
} else {
let mytags = new Set();
result.forEach(function(e, i) {
if (e.tag) {
let thisTag = e.tag.split('/');
thisTag.forEach(function(tag) {
if (tag.trim()) {
mytags.add(tag.trim());
}
});
}
});
state.tags = Array.from(mytags);
}
return result;
},
filterChannel: function(state, getters) {
let result = [];
if (state.widgets.length) {
let n_0 = parseInt(state.currentNav[0]);
let n_1 = parseInt(state.currentNav[1]);
if (!n_0 || isNaN(n_0)) {
result = getters.flatData;
state.bread = state.widgets[0].title;
} else if(n_1 === void(0) || isNaN(n_1)){
result = util.flatData(state.widgets[n_0].list);
state.bread = state.widgets[n_0].title;
} else {
result = state.widgets[n_0].list.length ? state.widgets[n_0].list[n_1].list : [];
state.bread = state.widgets[n_0].title + ' / ' + (state.widgets[n_0].list[n_1] ? state.widgets[n_0].list[n_1].title : '');
}
state.showingWidgets = result;
}
return result;
},
filterSearch: function(state, getters) {
//搜索
let result = getters.flatData;
if (result.length && state.keywords) {
let key = state.keywords;
let search = new Set();
let nums = result.length;
//title完全匹配
result.forEach(function(e, i) {
if (e.title === key) {
search.add(e);
}
});
//widget完全匹配
result.forEach(function(e, i) {
if (e.widget === key) {
search.add(e);
}
});
//title包含匹配
result.forEach(function(e, i) {
if (e.title.indexOf(key) > -1) {
search.add(e);
}
});
//widget包含匹配
result.forEach(function(e, i) {
if (e.widget.indexOf(key) > -1) {
search.add(e);
}
});
//tag匹配
result.forEach(function(e, i) {
if (e.tag.indexOf(key) > -1) {
search.add(e);
}
});
//author匹配
result.forEach(function(e, i) {
if (e.author.indexOf(key) > -1) {
search.add(e);
}
});
result = Array.from(search);
state.showingWidgets = result;
return result;
} else {
state.showingWidgets = state.filterChannel;
}
return [];
}
};
});
================================================
FILE: src/store/mutations.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
module.exports = {
setChoosen: function(state, choosenWidget) {
state.choosenWidget = choosenWidget;
},
setWaitToChoose: function(state, bool) {
state.waitToChoose = !!bool;
},
setPlaying: function(state, playingWidgets) {
state.playingWidgets = playingWidgets;
},
callLoading: function(state, bool) {
state.showLoading = !!bool;
},
search: function(state, value) {
state.keywords = value.trim();
},
scrollTop: function() {
let Main = document.getElementById("main");
let Target = document.getElementById("welcome");
if(Main && Target){
Main.scrollTop = Target.offsetHeight;
}else{
console.warn('scrollTop: error');
}
},
updateNav: function(state, currentNav) {
if (Array.isArray(currentNav)) {
state.currentNav = currentNav;
}
state.keywords = '';
},
filterTag: function(state, tags) {
state.filtertag = tags;
},
sort: function(state, by) {
state.sortBy = by;
},
setCallCode: function(state, callCode) {
state.callCode = callCode;
},
callWidget: function(state) {
if (state.callCode.trim() && state.callCode.match(/^\[(.+:.+,*){1,}\]$/)) {
let vm = this;
let newWidget = JSON.parse(state.callCode);
let flatData = util.flatData(state.widgets);
let result = [];
newWidget.forEach(function(e) {
let clean = flatData.find(function(value) {
return e.widget === value.widget;
});
if (e.userConfig) {
clean.userConfig = e.userConfig;
}
result.push(clean);
});
state.playingWidgets = result;
} else {
state.callCode = '';
}
},
updateUserInfo: function(state, info) {
Object.keys(state.userInfo).forEach(function(e,i){
state.userInfo[e] = info[e] || state.userInfo[e];
});
},
setWidgets: function(state, widgets) {
state.widgets = widgets;
},
setVersion: function(state, version) {
state.version = version;
util.storage.set('version', version);
}
};
});
================================================
FILE: src/store/store.js
================================================
define(function(require, exports, module) {
"use strict";
const util = require('js/assets/util');
const getters = require('./getters');
const mutations = require('./mutations');
const actions = require('./actions');
const store = new Vuex.Store({
state: {
userInfo: {
displayName: '',
phone: '',
email: '',
photoURL: '',
emailVerified: false,
uid:'',
track: {
record: []
}
},
widgets: [],
version: [],
currentNav: [],
sortBy: '',
keywords: '',
bread: '',
tags: [],
filtertag: [],
callCode: '',
playingWidgets: [],
waitToChoose: false,
insertPlace: '',
choosenWidget: null,
showLoading: false
},
getters,
mutations,
actions
});
module.exports = store;
});
================================================
FILE: static/css/platform.css
================================================
/*webkit scroll*/
::-webkit-scrollbar-track-piece {background-color:#f5f5f5;}
::-webkit-scrollbar {width:6px;height:13px;}
::-webkit-scrollbar-thumb {background-color:#c2c2c2;background-clip:padding-box;min-height:28px;border-radius:3px;}
::-webkit-scrollbar-thumb:hover {border:1px solid #636363;background-color:#929292;}
/* style */
body,html{height: 100%;overflow: hidden;background-color:#efefef;}
body{ background-size:cover;background-position: center;background-attachment: fixed;}
.body{position: relative;height: 100%;}
.head{position: relative; background:#333;height: 45px; color:#fff;z-index: 2;}
.head_T{position: absolute; font-size:22px;opacity: .9;float: left;margin:0 1em;
font-family: arial;line-height: 45px;cursor: pointer;}
.head_T:hover{opacity: 1;}
.head_right{position: absolute;right:0;top:0; margin:0 1em; line-height: 45px;}
.head_right .ion{font-size:1.2em;}
.head_right .userMenu{width:8em;}
.search{ width: 440px;margin:auto;opacity: .5;transition:all ease .3s;height: 100%;}
.search.focus{width: 900px;opacity: 1;}
.search .input-lg{height: 45px;line-height: 45px;}
.main{position: relative; z-index: 1;}
.main .scroller{ height: 100%; overflow: auto;}
.foot{background: #333; padding: 24px; overflow: hidden;color:#666;margin:50px 0 0 45px;
border-top:10px solid #ff6908;font-size:14px;}
.foot a:hover{color:#eee;}
.menu-bar{position: absolute;left: 0;top:0;width: 45px;height: 100%;background:#fff;opacity: .6;
-webkit-transition:all ease .32s;
transition:all ease .32s; z-index: 1;border-right:1px solid #ccc;background:#fff;}
.menu-bar:empty{left:-45px;}
.menu-bar:hover{opacity: 1;width: 150px;}
.main-nav{width: 100%;overflow: hidden; }
.main-nav li{height: 45px;line-height: 45px;width: 150px;cursor: pointer;color:#777;}
.main-nav li a{display: block;color: inherit;}
.main-nav .ion{margin:0;width: 45px;text-align: center;font-size:22px;}
.main-nav .cur{background:#ccc;color:#333;}
.main-nav li a:hover{background:#eee;color:#333;}
.sub-nav{position: absolute;left: 100%;top:0;height: 100%;overflow: hidden;background:#eee;
border-right: 1px solid #ccc;color:#aaa;width: 0;overflow: hidden;-webkit-transition:width ease .32s;transition:width ease .32s;}
.sub-nav ul{padding:0 0 14px; width: 120px;}
.sub-nav li{height: 45px;line-height: 45px;cursor: pointer;color:#666;}
.sub-nav li a{display: block;color: inherit;padding:0 14px;}
.sub-nav .cur{background:#aaa;color:#fff;}
.sub-nav li a:hover{background:#666;color:#fff;}
.sub-nav.show{width: 120px;}
.mainCont{padding: 60px 20px 20px;background:rgba(255,255,255,.7);border-radius: 4px;}
/*欢迎屏*/
.welcome{padding-bottom: 20%;padding-top: 10%;}
.welcome ._cont{padding: 20px; background: rgba(255,255,255,.7);width:400px;border-radius: 4px;}
.welcome ._T{ text-align: center; border-bottom: solid 1px #e5e5e5;
padding-bottom: 15px; margin: 0 0 20px;font-size: 30px;}
.welcome ._p{ font-size: 20px; color: #777;line-height: 1.6;}
.quickStart{margin:80px auto 0;}
.filter{margin-bottom: 40px;}
#configCode{height: 100px;resize:none;border-style: dashed;line-height: 1.7;
font-family: 'Consolas', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, Helvetica, sans-serif;}
.tagWrap .btn{margin:0 .5em .5em 0;}
/*组件列表*/
.widget-list {position: relative; min-height: 300px;}
.widget-list li{margin-bottom:30px;cursor: pointer;}
.widget-list ._layer{ position: relative; background:#fff;padding:0 0 14px;
box-shadow: 0 1px 2px rgba(0,0,0,.2);overflow: hidden;}
.widget-list ._album{margin-bottom: .5em;background:#eee;}
.widget-list ._album:after{position: absolute;content: "";left: 0;width: 100%;bottom:0;
border-top:1px solid #eee;}
.widget-list ._full{/*width:auto;height: auto;*/ max-height:100%;}
.widget-list ._t{font-size:18px;font-weight: 100;padding:0 10px ;}
.widget-list p{padding:0 1em;font-size:12px;color:#999;}
.widget-list ._name{position: absolute;right: -150px;top:-80px;width:150px;height: 80px;line-height: 50px;
text-align: right; -webkit-transition:all ease .32s; transition:all ease .32s;}
.widget-list ._name span{display: block;position: relative;z-index: 2;color: #fff;padding:0 .5em;}
.widget-list ._name:before{content: ""; position: absolute;width:0;height: 0;border-style:solid;
border-color:#c5a167 #c5a167 transparent transparent;right: 0;top:0;border-width:40px 75px;
z-index: 1;}
.widget-list ._layer:hover{box-shadow: 0 0 4px rgba(0,0,0,.3);}
.widget-list ._layer:hover ._album:after{border-color:#ccc;}
.widget-list ._layer:hover ._name{right: 0;top:0;}
.widget-list .widget_empty_tip{font-size:42px;text-align: center;padding:30px 0;}
/*弹窗*/
.playTime{position: absolute;left:0;top:0; width:100%;height:100%; background:#eee;box-sizing:border-box;padding-top: 45px;z-index: 10;}
.playTime_head{position: absolute;left:0;top:0;width:100%; height: 45px;}
.playTime_title{text-align:center;line-height: 45px;font-size:18px;color:#333;}
.playTime_close{position: absolute; font-size:22px;cursor: pointer;width:45px;text-align: center;
height: 40px;line-height: 40px;right: 0;top:0;}
.playTime_close:hover{opacity: .8;}
.play_area{width:1200px; background:#fff; height: 90%;padding:20px;border-radius: 4px;box-sizing:border-box;
box-shadow: 1px 1px 4px rgba(0,0,0,.3) inset; overflow-x:hidden;overflow-y:auto;}
/*去滚动条*/
.docStatic{height: 100%;}
.docStatic body{height: 100%;overflow: hidden;}
.playTime_panel{position: fixed;right: 0;top:0;height: 100%;width:0;z-index: 12;}
.playTime_mark{position: absolute;left: 0;width: 280px;height: 80%;top:10%;border-radius: 4px 0 0 4px;padding:36px 0 15px;
-webkit-transition:left ease .32s; transition:left ease .32s;z-index: 1;background:#434343;color:#dedede;font-family: serif;}
.playTime_mark.show{left: -280px;z-index: 2;}
.playTime_mark ._tag{position: absolute;width: 100px;height: 40px;line-height: 40px;background:#333;
color:#fff;font-size:14px;border-radius: 0 16px;text-align: center;
left: -100px;cursor: pointer;}
.playTime_mark .panelWrap{height: 100%; overflow-y: auto;overflow-x: hidden;}
.playTime_mark .config-pannel{padding:0;}
.playTime_mark .config-pannel .form-group:hover{background:#333;color:#fff;}
.playTime_mark .config-pannel .control-label{cursor: pointer;}
.playTime_panel ._configpanel ._tag{ top:100px;}
.playTime_panel ._getmerge ._tag{ top:150px;}
.playTime_panel ._getconfig ._tag{ top:200px;}
.playTime_panel ._getconfig form{height: 100%;}
.playTime_panel ._getconfig .configCodeBox{height: 100%;resize:none;cursor: pointer;
background:rgba(255,255,255,.8);color:#666;overflow: auto;line-height: 1.7;
font-family: 'Consolas', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, Helvetica, sans-serif;}
.playTime_panel ._getconfig .configCodeBox:hover{background:#fff;color:#333;}
/*mergeQueue*/
.innerList{width:100%;max-width: 1200px;height:90%;margin:auto; padding:1% 0;
overflow-y: auto;overflow-x: hidden;}
.choosewidget .wrap_body{background:#bad0f1;}
.mergeQueue{height: 100%;}
.mergeQueue ._queue{overflow: auto;}
.mergeQueue ._queue li{position: relative; background:#fff; background-size:cover;}
.mergeQueue ._queue ._layer{background:rgba(255,255,255,.68);color:#666;}
.mergeQueue ._queue ._del{position: absolute;right: .5em;top:.5em;font-size: 1.5em; cursor: pointer;}
.mergeQueue ._queue ._del:hover{opacity: .8;}
.mergeQueue ._queue h5{font-size:1.2em; color:#333;}
/*loading*/
.bubblingG {position: absolute;left:50%;top:50%; width: 80px; height: 50px; text-align: center;
margin:-40px 0 0 -25px;}
.bubblingG span { display: inline-block; width: 10px; height: 10px; margin: 25px auto;
-webkit-animation: bubblingG .6s infinite alternate;
animation: bubblingG .6s infinite alternate;
vertical-align: middle; border-radius: 50px; background: #000;}
#bubblingG_1 {-webkit-animation-delay: 0s; animation-delay: 0s;}
#bubblingG_2 {-webkit-animation-delay: 0.18s; animation-delay: 0.18s;}
#bubblingG_3 {-webkit-animation-delay: 0.36s; animation-delay: 0.36s;}
@-webkit-keyframes bubblingG { 0% { width: 10px; height: 10px; -webkit-transform: translateY(0);background-color: #000; }
100% { width: 24px; height: 24px; -webkit-transform: translateY(-21px);background-color: #fff; }}
@keyframes bubblingG { 0% { width: 10px; height: 10px; transform: translateY(0);background-color: #000; }
100% { width: 24px; height: 24px; transform: translateY(-21px);background-color: #fff; }}
.boxLayout{position: fixed;width:300px; padding:20px;left: 50%;top:35%; background:#fff;border-radius: 4px;overflow: hidden;
margin-left: -160px;box-shadow: 0 1px 6px rgba(0,0,0,.2);color:#434343;}
.boxHead{padding:.5em;}
.boxHead ._clo{cursor: pointer;font-size:1.5em;}
.userCount{padding:10px; height: 600px;overflow: auto;width:600px;font-family: serif;top:50%;margin-top: -300px;}
.select-ui-options-thin li .ion{margin-right: .5em;font-size:1.3em;vertical-align: middle;}
.globalMask{position: fixed;left: 0;top:0;width:100%;height: 100%;
cursor: default;z-index: 999;}
.list-item {
display: inline-block;
margin-right: 10px;
}
.list-enter-active, .list-leave-active {
transition: all 1s;
}
.list-enter, .list-leave-active {
opacity: 0;
transform: translateY(30px);
}
/* login */
.screenLayer{position: relative; width:100%;height: 100%;display: table;background:#fff;z-index: 99;}
.g-center{display: table-cell;background-color: #f5f5f5;border: 1px solid #e8e9eb;vertical-align: middle;}
================================================
FILE: static/css/ui.css
================================================
html {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
overflow-x: hidden;
font-family: Arial, 'Hiragino Sans GB', 'WenQuanYi Micro Hei', '\5fae\8f6f\96c5\9ed1', 'SimSun', sans-serif;
font-size: 14px;
line-height: 1.7;
min-width: 1200px;
color: #555555;
background: #fff;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dd,
dl,
form {
margin: 0;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
img {
max-width: 100%;
height: auto;
vertical-align: top;
-ms-interpolation-mode: bicubic;
border: 0 ;
}
ul {
padding-left: 0;
list-style-type: none;
}
i,
em {
font-style: normal;
}
big {
font-size: 16px;
}
small {
font-size: 12px;
}
a {
transition: all 0.3s ease;
text-decoration: none;
color: inherit;
outline: 0;
}
a:hover {
color: #2EA9DF;
}
article,
aside,
dialog,
footer,
header,
section,
nav,
figure,
menu,
audio,
canvas,
progress,
video {
display: block;
}
input,
select,
textarea {
font-family: inherit;
font-size: 100%;
outline: 0;
}
input[type='checkbox'],
input[type='radio'] {
box-sizing: border-box;
padding: 0;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
height: auto;
}
input[type='search'] {
box-sizing: border-box;
-webkit-appearance: textfield;
}
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
-webkit-appearance: none;
}
input[type='file'] {
display: block;
}
input[type='range'] {
display: block;
width: 100%;
}
select[multiple],
select[size] {
height: auto;
}
input[type='file']:focus,
input[type='radio']:focus,
input[type='checkbox']:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
input[type=submit] {
cursor: pointer;
}
fieldset {
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
legend {
display: block;
font-size: 16px;
font-weight: 700;
line-height: 2.5;
width: 100%;
margin-bottom: 20px;
padding: 0;
color: #333;
border: 0;
border-bottom: 1px solid #e5e5e5;
}
table {
border-spacing: 0;
background-color: transparent;
}
td,
th {
padding: 0;
}
@-ms-viewport {
width: device-width;
}
::-moz-selection {
color: #fff;
background: #39f;
}
::selection {
color: #fff;
background: #39f;
}
::-webkit-input-placeholder {
color: #aaa;
}
.placeholder {
color: #aaa;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: inherit;
font-weight: 500;
line-height: 1.1;
margin-bottom: 0.5em;
color: inherit;
}
h1,
.h1 {
font-size: 2.5em;
}
h2,
.h2 {
font-size: 2em;
}
h3,
.h3 {
font-size: 1.75em;
}
h4,
.h4 {
font-size: 1.5em;
}
h5,
.h5 {
font-size: 1.25em;
}
h6,
.h6 {
font-size: 1em;
}
.badge {
display: inline-block;
position: relative;
line-height: 1;
vertical-align: middle;
}
.badge-count {
position: absolute;
z-index: 90;
top: -10px;
right: -18px;
font-size: 12px;
line-height: 18px;
min-width: 20px;
height: 20px;
padding: 0 6px;
text-align: center;
white-space: nowrap;
color: #fff;
border: 0;
border-radius: 10px;
background: #CB4042;
box-shadow: 0 0 0 1px #fff;
}
.badge-dot {
position: absolute;
z-index: 90;
top: -4px;
right: -4px;
width: 8px;
height: 8px;
-webkit-transform-origin: 0 center;
transform-origin: 0 center;
border-radius: 100%;
background: #CB4042;
box-shadow: 0 0 0 1px #fff;
}
.badge-count-alone {
display: block;
position: relative;
top: auto;
right: 0;
}
.badge-primary .badge-count,
.badge-primary .badge-dot {
background: #2EA9DF;
}
.badge-auxiliary .badge-count,
.badge-auxiliary .badge-dot {
background: #FFC408;
}
.badge-info .badge-count,
.badge-info .badge-dot {
background: #4fcbf0;
}
.badge-success .badge-count,
.badge-success .badge-dot {
background: #25ae88;
}
.badge-warning .badge-count,
.badge-warning .badge-dot {
background: #F05E1C;
}
.bread {
font-size: 14px;
color: #555555;
}
.bread > .bread-sep {
margin: 0 .5em;
color: #dbdbdb;
}
.bread > span.bread-link {
font-weight: 700;
}
.btn {
font-size: 14px;
font-weight: normal;
line-height: 32px;
display: inline-block;
margin-bottom: 0;
cursor: pointer;
box-sizing: border-box;
-ms-touch-action: manipulation;
touch-action: manipulation;
min-width: 4em;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-align: center;
vertical-align: middle;
white-space: nowrap;
border: 0;
padding: 0 1em;
}
.btn > .ion {
vertical-align: middle;
font-size: 1.1em;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: none;
}
.btn:hover,
.btn:focus,
.btn.focus {
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
box-shadow: none;
filter: alpha(opacity=65);
}
.btn-default {
color: #555555;
border-color: #e8e9eb;
background-color: #eeeeee;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: #fff;
border-color: #eeeeee;
background-color: #dbdbdb;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
border-color: #e8e9eb;
background-color: #fff;
}
.btn-primary {
color: #fff;
background-color: #2EA9DF;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
color: #fff;
border-color: #1979a3;
background-color: #1979a3;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
border-color: #2EA9DF;
background-color: #2EA9DF;
}
.btn-auxiliary {
color: #fff;
background-color: #FFC408;
}
.btn-auxiliary:hover,
.btn-auxiliary:focus,
.btn-auxiliary.focus,
.btn-auxiliary:active,
.btn-auxiliary.active,
.open > .dropdown-toggle.btn-auxiliary {
color: #fff;
border-color: #b58a00;
background-color: #b58a00;
}
.btn-auxiliary.disabled,
.btn-auxiliary[disabled],
fieldset[disabled] .btn-auxiliary,
.btn-auxiliary.disabled:hover,
.btn-auxiliary[disabled]:hover,
fieldset[disabled] .btn-auxiliary:hover,
.btn-auxiliary.disabled:focus,
.btn-auxiliary[disabled]:focus,
fieldset[disabled] .btn-auxiliary:focus,
.btn-auxiliary.disabled.focus,
.btn-auxiliary[disabled].focus,
fieldset[disabled] .btn-auxiliary.focus,
.btn-auxiliary.disabled:active,
.btn-auxiliary[disabled]:active,
fieldset[disabled] .btn-auxiliary:active,
.btn-auxiliary.disabled.active,
.btn-auxiliary[disabled].active,
fieldset[disabled] .btn-auxiliary.active {
border-color: #FFC408;
background-color: #FFC408;
}
.btn-success {
color: #fff;
background-color: #25ae88;
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
color: #fff;
border-color: #176b53;
background-color: #176b53;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled.focus,
.btn-success[disabled].focus,
fieldset[disabled] .btn-success.focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
border-color: #25ae88;
background-color: #25ae88;
}
.btn-info {
color: #fff;
background-color: #4fcbf0;
}
.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
color: #fff;
border-color: #13addb;
background-color: #13addb;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled.focus,
.btn-info[disabled].focus,
fieldset[disabled] .btn-info.focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
border-color: #4fcbf0;
background-color: #4fcbf0;
}
.btn-warning {
color: #fff;
background-color: #F05E1C;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
color: #fff;
border-color: #af3e0c;
background-color: #af3e0c;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled.focus,
.btn-warning[disabled].focus,
fieldset[disabled] .btn-warning.focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
border-color: #e8e9eb;
background-color: #F05E1C;
}
.btn-danger {
color: #fff;
background-color: #CB4042;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
color: #fff;
border-color: #922829;
background-color: #922829;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled.focus,
.btn-danger[disabled].focus,
fieldset[disabled] .btn-danger.focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
border-color: #CB4042;
background-color: #CB4042;
}
.btn-link {
font-weight: normal;
color: #2EA9DF;
padding: 0;
white-space: normal;
}
.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
text-decoration: underline;
color: #1979a3;
background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
text-decoration: none;
color: #555555;
}
.btn-lg {
font-size: 16px;
height: 40px;
line-height: 40px;
min-width: 7em;
}
.btn-sm {
font-size: 12px;
height: 25px;
line-height: 25px;
}
.btn-block {
display: block;
width: 100%;
padding-right: 0;
padding-left: 0;
}
.btn-block + .btn-block {
margin-top: 7px;
}
.btn .jon,
.form-mark .jon {
line-height: 1.2;
margin: 0;
vertical-align: baseline;
}
input[type='submit'].btn-block,
input[type='reset'].btn-block,
input[type='button'].btn-block {
width: 100%;
}
.btn-ghost {
background: none;
border-color: inherit;
border: 1px solid transparent;
line-height: 30px;
}
.btn-ghost.btn-primary {
border-color: #2EA9DF;
}
.btn-ghost.btn-auxiliary {
border-color: #FFC408;
}
.btn-ghost.btn-success {
border-color: #25ae88;
}
.btn-ghost.btn-info {
border-color: #4fcbf0;
}
.btn-ghost.btn-warning {
border-color: #F05E1C;
}
.btn-ghost.btn-danger {
border-color: #CB4042;
}
.btn.btn-ghost:hover {
color: #fff;
}
.btn-link.btn-ghost {
padding-left: 1em;
padding-right: 1em;
}
.btn-link.btn-ghost:hover {
color: #1979a3;
border-color: #1979a3;
}
.card {
display: block;
font-size: 14px;
position: relative;
overflow: hidden;
transition: all 0.2s ease-in-out;
border-radius: 4px;
background: #fff;
}
.card:hover {
border-color: #eeeeee;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.card-shadow {
border-color: #eeeeee;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.card-bordered {
border: 1px solid #e8e9eb;
}
.card-head {
position: relative;
line-height: 1;
line-height: 32px;
height: 32px;
padding: 4px 22.4px;
border-bottom: 1px solid #e8e9eb;
color: #555555;
}
.card-title {
font-weight: 700;
display: inline-block;
overflow: hidden;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
}
.card-extra {
position: absolute;
top: 4px;
right: 22.4px;
}
.card-body {
padding: 22.4px;
}
.card-foot {
padding: 4px 22.4px;
background-color: #eeeeee;
border-top: 1px solid #e8e9eb;
overflow: hidden;
}
.card.card-primary .card-head,
.card.card-primary .card-foot {
background: #2EA9DF;
color: #fff;
border-color: #1979a3;
}
.card.card-primary.card-inverse .card-head,
.card.card-primary.card-inverse .card-foot {
background: #1979a3;
border-color: #2EA9DF;
}
.card.card-primary.card-inverse .card-body {
background: #2EA9DF;
color: #fff;
}
.card.card-auxiliary .card-head,
.card.card-auxiliary .card-foot {
background: #FFC408;
color: #fff;
border-color: #b58a00;
}
.card.card-auxiliary.card-inverse .card-head,
.card.card-auxiliary.card-inverse .card-foot {
background: #b58a00;
border-color: #FFC408;
}
.card.card-auxiliary.card-inverse .card-body {
background: #FFC408;
color: #fff;
}
.card.card-info .card-head,
.card.card-info .card-foot {
background: #4fcbf0;
color: #fff;
border-color: #13addb;
}
.card.card-info.card-inverse .card-head,
.card.card-info.card-inverse .card-foot {
background: #13addb;
border-color: #4fcbf0;
}
.card.card-info.card-inverse .card-body {
background: #4fcbf0;
color: #fff;
}
.card.card-success .card-head,
.card.card-success .card-foot {
background: #25ae88;
color: #fff;
border-color: #176b53;
}
.card.card-success.card-inverse .card-head,
.card.card-success.card-inverse .card-foot {
background: #176b53;
border-color: #25ae88;
}
.card.card-success.card-inverse .card-body {
background: #25ae88;
color: #fff;
}
.card.card-warning .card-head,
.card.card-warning .card-foot {
background: #F05E1C;
color: #fff;
border-color: #af3e0c;
}
.card.card-warning.card-inverse .card-head,
.card.card-warning.card-inverse .card-foot {
background: #af3e0c;
border-color: #F05E1C;
}
.card.card-warning.card-inverse .card-body {
background: #F05E1C;
color: #fff;
}
.card.card-danger .card-head,
.card.card-danger .card-foot {
background: #CB4042;
color: #fff;
border-color: #922829;
}
.card.card-danger.card-inverse .card-head,
.card.card-danger.card-inverse .card-foot {
background: #922829;
border-color: #CB4042;
}
.card.card-danger.card-inverse .card-body {
background: #CB4042;
color: #fff;
}
.text-muted {
color: #dbdbdb;
}
.text-black {
color: #000;
}
.text-light {
color: #fff;
}
.text-primary,
.btn-ghost.btn-primary {
color: #2EA9DF;
}
a.text-primary:hover {
color: #1979a3;
}
.text-auxiliary,
.btn-ghost.btn-auxiliary {
color: #FFC408;
}
a.text-auxiliary:hover {
color: #b58a00;
}
.text-success,
.btn-ghost.btn-success {
color: #25ae88;
}
a.text-success:hover {
color: #176b53;
}
.text-info,
.btn-ghost.btn-info {
color: #4fcbf0;
}
a.text-info:hover {
color: #13addb;
}
.text-warning,
.btn-ghost.btn-warning {
color: #F05E1C;
}
a.text-warning:hover {
color: #af3e0c;
}
.text-danger,
.btn-ghost.btn-danger {
color: #CB4042;
}
a.text-danger:hover {
color: #922829;
}
.bg-black {
background-color: #000;
}
.bg-light {
background-color: #fff;
}
.bg-gray-light {
background-color: #dbdbdb;
}
.bg-gray-lighter {
background-color: #eeeeee;
}
.bg-primary {
color: #fff;
background-color: #2EA9DF;
}
a.bg-primary:hover {
background-color: #1979a3;
}
.bg-auxiliary {
color: #fff;
background-color: #FFC408;
}
a.bg-auxiliary:hover {
background-color: #b58a00;
}
.bg-muted {
background: #eeeeee;
}
.bg-success {
color: #fff;
background-color: #25ae88;
}
a.bg-success:hover {
background-color: #176b53;
}
.bg-info {
color: #fff;
background-color: #4fcbf0;
}
a.bg-info:hover {
background-color: #13addb;
}
.bg-warning {
color: #fff;
background-color: #F05E1C;
}
a.bg-warning:hover {
background-color: #af3e0c;
}
.bg-danger {
color: #fff;
background-color: #CB4042;
}
a.bg-danger:hover {
background-color: #922829;
}
.dl dt {
font-weight: 700;
padding: 0.2em 0.5em;
}
.dl dd {
padding: 0.2em 0.5em;
}
.dl-table dt {
float: left;
clear: left;
overflow: hidden;
width: 10em;
padding-left: 0;
padding-right: 0;
text-align: right;
white-space: nowrap;
text-overflow: ellipsis;
}
.dl-table dd {
margin-left: 11em;
padding-left: 0;
padding-right: 0;
}
.flex-col {
overflow: hidden;
display: -webkit-box;
display: -ms-box;
display: -ms-flexbox;
display: flex;
flex-direction: column;
-webkit-box-orient: vertical;
-ms-flex-direction: column;
}
.flex-row {
overflow: hidden;
display: -webkit-box;
display: -ms-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-ms-flex-direction: row;
}
.flex-1 {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.flex-2 {
-webkit-box-flex: 2;
-ms-flex: 2;
flex: 2;
}
.flex-3 {
-webkit-box-flex: 3;
-ms-flex: 3;
flex: 3;
}
.flex-4 {
-webkit-box-flex: 4;
-ms-flex: 4;
flex: 4;
}
.align-stretch {
-webkit-box-align: stretch;
-ms-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
}
.align-center {
-webkit-box-align: center;
-ms-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.justify-center {
-webkit-box-pack: center;
-ms-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.flex-wrap {
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.form-control {
line-height: 32px;
height: 32px;
padding: 0 8px;
display: block;
width: 100%;
box-sizing: border-box;
vertical-align: middle;
transition: border-color ease-in-out 0.1s;
color: #555555;
border: 1px solid #e8e9eb;
background: #fff;
border-radius: 4px;
}
.form-control:focus {
border-color: #2EA9DF;
outline: 0;
}
.form-control-blank {
border-width: 0 0 1px 0;
background: none;
border-radius: 0;
}
.form-control-blank:focus {
box-shadow: none;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
opacity: 1;
background-color: #eee;
}
.form-control[disabled],
fieldset[disabled] .form-control {
cursor: not-allowed;
}
select.form-control {
min-width: 4em;
}
input[type='search'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
textarea.form-control {
height: 119px;
line-height: 1.7;
}
textarea.input-lg {
height: 217.6px;
font-size: 16px;
}
textarea.input-sm {
height: 61.2px;
font-size: 12px;
}
.form-group {
margin-bottom: 11.2px;
}
.radio,
.checkbox {
position: relative;
display: block;
line-height: normal;
padding-left: 20px;
margin-top: 11.2px;
margin-bottom: 11.2px;
cursor: pointer;
}
.radio + .radio,
.checkbox + .checkbox {
margin-top: -5.6px;
}
.form-group .radio,
.form-group .checkbox {
margin-top: 0;
margin-bottom: 0;
}
.radio input[type='radio'],
.checkbox input[type='checkbox'] {
float: left;
margin-left: -20px;
}
.radio-inline,
.checkbox-inline,
.form-inline .radio,
.form-inline .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline,
.form-inline .radio + .radio,
.form-inline .checkbox + .checkbox {
margin-top: 0;
margin-left: 8px;
}
.radio.disabled,
.checkbox.disabled,
fieldset[disabled] .radio,
fieldset[disabled] .checkbox,
input[type='radio'][disabled],
input[type='checkbox'][disabled] {
cursor: not-allowed;
}
/* radio & check runtime */
.radio.runtime input[type='radio'],
.checkbox.runtime input[type='checkbox'] {
visibility: hidden;
}
.radio.runtime:before,
.checkbox.runtime:before,
.radio.runtime:after,
.checkbox.runtime:after {
content: "";
position: absolute;
top: 0;
left: 0;
}
.checkbox.runtime:before,
.radio.runtime:before {
top: 50%;
width: 14px;
height: 14px;
margin: -8px 4px 0 0;
border: 1px solid #d7dde4;
border-radius: 2px;
background: #fff;
}
.checkbox.runtime:after {
top: 50%;
left: 5px;
width: 4px;
height: 8px;
margin-top: -6px;
transition: -webkit-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
-webkit-transform: rotate(0deg) scale(0);
transform: rotate(0deg) scale(0);
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.checkbox.checked.runtime:before {
border-color: #2EA9DF;
background-color: #2EA9DF;
}
.checkbox.checked.runtime:after {
-webkit-transform: rotate(45deg) scale(1);
transform: rotate(45deg) scale(1);
}
.radio.runtime:before {
border-radius: 8px;
border-color: #2EA9DF;
}
.radio.disabled:before {
border-color: #d7dde4;
}
.radio.runtime:after {
top: 50%;
left: 4px;
width: 8px;
height: 8px;
border-radius: 4px;
background: #2EA9DF;
margin-top: -4px;
transition: -webkit-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
-webkit-transform: rotate(0deg) scale(0);
transform: rotate(0deg) scale(0);
visibility: hidden;
}
.radio.checked.runtime:after {
-webkit-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
visibility: visible;
}
.form-control-static {
height: 32px;
line-height: 32px;
}
.form-control-static.input-lg,
.form-control-static.input-sm {
padding-right: 0;
padding-left: 0;
}
.help-block {
display: block;
margin-top: 8px;
margin-bottom: 11.9px;
color: #dbdbdb;
}
.form-mark {
display: inline-block;
margin: 0 0.3em;
color: #CB4042;
vertical-align: text-top;
line-height: normal;
}
big.form-mark {
font-size: 1.5em;
}
.input-sm {
font-size: 12px;
height: 25px;
line-height: 25px;
}
.form-group-sm .form-control {
font-size: 12px;
line-height: 25px;
height: 25px;
padding: 5px 8px;
}
.form-group-sm .form-control-static {
font-size: 12px;
line-height: 25px;
height: 25px;
min-height: 25px;
padding: 5px 8px;
}
.input-lg {
font-size: 16px;
line-height: 40px;
height: 40px;
}
.form-group-lg .form-control {
font-size: 16px;
height: 40px;
padding: 4.32727273px 8px;
}
.form-group-lg .form-control-static {
font-size: 16px;
line-height: 1.3333333;
height: 40px;
min-height: 32px;
padding: 8px 16px;
}
.has-feedback {
position: relative;
}
.has-feedback .form-control {
padding-right: 32px;
}
.has-feedback .input-group .form-control {
padding-right: 0;
}
.form-group .form-control-feedback {
line-height: 32px;
position: absolute;
z-index: 2;
top: 0;
right: 0;
display: block;
width: 32px;
height: 32px;
text-align: center;
pointer-events: none;
}
.has-feedback .input-group .form-control {
padding-left: 32px;
}
.form-group-lg .form-control-feedback,
.input-lg + .form-control-feedback {
line-height: 40px;
width: 40px;
height: 40px;
}
.form-group-sm .form-control-feedback,
.input-sm + .form-control-feedback {
line-height: 25px;
width: 25px;
height: 25px;
}
.has-feedback .form-control-feedback {
right: 2%;
}
.has-primary .help-block,
.has-primary .control-label,
.has-primary .radio,
.has-primary .checkbox {
color: #2EA9DF;
}
.has-primary .form-control {
border-color: #2EA9DF;
}
.has-primary .form-control:focus {
border-color: #1979a3;
}
.has-primary .input-group-addon {
color: #fff;
border-color: #2EA9DF;
background-color: #2EA9DF;
}
.has-primary .form-control-feedback {
color: #2EA9DF;
}
.has-auxiliary .help-block,
.has-auxiliary .control-label,
.has-auxiliary .radio,
.has-auxiliary .checkbox {
color: #FFC408;
}
.has-auxiliary .form-control {
border-color: #FFC408;
}
.has-auxiliary .form-control:focus {
border-color: #b58a00;
}
.has-auxiliary .input-group-addon {
color: #fff;
border-color: #FFC408;
background-color: #FFC408;
}
.has-auxiliary .form-control-feedback {
color: #FFC408;
}
.has-info .help-block,
.has-info .control-label,
.has-info .radio,
.has-info .checkbox {
color: #4fcbf0;
}
.has-info .form-control {
border-color: #4fcbf0;
}
.has-info .form-control:focus {
border-color: #13addb;
}
.has-info .input-group-addon {
color: #fff;
border-color: #4fcbf0;
background-color: #4fcbf0;
}
.has-info .form-control-feedback {
color: #4fcbf0;
}
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox {
color: #25ae88;
}
.has-success .form-control {
border-color: #25ae88;
}
.has-success .form-control:focus {
border-color: #176b53;
}
.has-success .input-group-addon {
color: #fff;
border-color: #25ae88;
background-color: #25ae88;
}
.has-success .form-control-feedback {
color: #25ae88;
}
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox {
color: #F05E1C;
}
.has-warning .form-control {
border-color: #F05E1C;
}
.has-warning .form-control:focus {
border-color: #af3e0c;
}
.has-warning .input-group-addon {
color: #F05E1C;
border-color: #F05E1C;
background-color: #F05E1C;
}
.has-warning .form-control-feedback {
color: #F05E1C;
}
.has-danger .help-block,
.has-danger .control-label,
.has-danger .radio,
.has-danger .checkbox {
color: #CB4042;
}
.has-danger .form-control {
border-color: #CB4042;
}
.has-danger .form-control:focus {
border-color: #922829;
}
.has-danger .input-group-addon {
color: #CB4042;
border-color: #CB4042;
background-color: #CB4042;
}
.has-danger .form-control-feedback {
color: #CB4042;
}
.form-inline .form-group .help-block {
display: inline-block;
margin: 0 1em;
vertical-align: middle;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
margin: 0 1em;
}
.form-inline .input-group {
display: inline-table;
vertical-align: middle;
width: auto;
}
.form-inline .input-group .input-group-btn,
.form-inline .input-group .form-control {
width: auto;
}
.form-inline .input-group > .form-control {
width: 100%;
}
.form-inline .control-label {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
min-width: 5em;
}
.form-inline .has-feedback .form-control-feedback {
top: 0;
}
.control-label {
margin-bottom: 0;
height: 32px;
line-height: 32px;
overflow: hidden;
text-align: right;
}
.form-group-lg .control-label {
font-size: 16px;
height: 40px;
line-height: 40px;
}
.form-group-sm .control-label {
font-size: 12px;
height: 25px;
line-height: 25px;
}
.input-group {
display: table;
width: 100%;
position: relative;
overflow: hidden;
border-collapse: separate;
}
.input-group[class*='col-'] {
float: none;
padding-right: 0;
padding-left: 0;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
font-size: 16px;
line-height: 1.3333333;
height: 40px;
padding: 8px 16px;
}
.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
font-size: 12px;
line-height: 1.5;
height: 25px;
padding: 0 8px;
}
.input-group-sm > .input-group-addon {
width: 25px;
height: 23px;
padding: 0;
}
.input-group-lg > .input-group-addon {
height: 38px;
padding-top: 0;
padding-bottom: 0;
}
.input-group-addon {
border-radius: 4px;
font-size: 14px;
font-weight: normal;
text-align: center;
background-color: #eeeeee;
color: #555555;
border: 1px solid #e8e9eb;
border-left-width: 0;
border-right-width: 0;
width: 32px;
box-sizing: content-box;
height: 30px;
line-height: 30px;
border-right-width: 1px\9;
}
.input-group-addon.noborder {
border: 0;
}
.input-group-lg > .input-group-addon.noborder {
padding: 0;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn > .btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon .btn {
vertical-align: top;
}
.input-group-addon,
.input-group-btn {
vertical-align: middle;
white-space: nowrap;
}
.input-group-addon.input-sm {
font-size: 12px;
padding: 5px 8px;
}
.input-group-addon.input-lg {
font-size: 16px;
padding: 8px;
}
.input-group-addon input[type='radio'],
.input-group-addon input[type='checkbox'] {
margin-top: 0;
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn > .btn:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-group-addon:first-child {
border-left-width: 1px;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn > .btn:last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.input-group-addon:last-child {
border-right-width: 1px;
}
.input-group-addon:last-child .btn {
border-radius: 0 4px 4px 0;
}
.input-group-btn {
font-size: 14px;
position: relative;
white-space: nowrap;
font-size: 0;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:hover,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:active {
z-index: 2;
}
.input-group-btn:first-child > .btn {
margin-right: -1px;
}
.input-group-btn:last-child > .btn {
margin-left: -1px;
}
.row {
display: block;
width: 102%;
transition: 0.2s width ease;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
clear: both;
content: '';
}
.row > [class*="span-"] {
float: left;
margin-right: 2%;
*margin-right: 1.89%;
}
.row > .span-1 {
width: 6.33333333%;
}
.row > .span-2 {
width: 14.66666667%;
}
.row > .span-3 {
width: 23%;
}
.row > .span-4 {
width: 31.33333333%;
}
.row > .span-5 {
width: 39.66666667%;
}
.row > .span-6 {
width: 48%;
}
.row > .span-7 {
width: 56.33333333%;
}
.row > .span-8 {
width: 64.66666667%;
}
.row > .span-9 {
width: 73%;
}
.row > .span-10 {
width: 81.33333333%;
}
.row > .span-11 {
width: 89.66666667%;
}
.row > .span-12 {
width: 98%;
}
/*
* 无间距模式
*/
.full-row {
width: 100%;
transition: 0.2s width ease;
*zoom: 1;
}
.full-row:before,
.full-row:after {
display: table;
clear: both;
content: '';
}
.full-row > [class*='span'] {
float: left;
}
.full-row > .span-1 {
width: 8.33333333%;
*width: 8.22333333%;
}
.full-row > .span-2 {
width: 16.66666667%;
*width: 16.55666667%;
}
.full-row > .span-3 {
width: 25%;
*width: 24.89%;
}
.full-row > .span-4 {
width: 33.33333333%;
*width: 33.22333333%;
}
.full-row > .span-5 {
width: 41.66666667%;
*width: 41.55666667%;
}
.full-row > .span-6 {
width: 50%;
*width: 49.89%;
}
.full-row > .span-7 {
width: 58.33333333%;
*width: 58.22333333%;
}
.full-row > .span-8 {
width: 66.66666667%;
*width: 66.55666667%;
}
.full-row > .span-9 {
width: 75%;
*width: 74.89%;
}
.full-row > .span-10 {
width: 83.33333333%;
*width: 83.22333333%;
}
.full-row > .span-11 {
width: 91.66666667%;
*width: 91.55666667%;
}
.full-row > .span-12 {
width: 100%;
*width: 99.89%;
}
/*
* 工具
*/
.row > .pull-right,
.full-row > .pull-right {
float: right;
}
.row > .center {
position: relative;
left: -1%;
display: block;
float: none;
clear: both;
margin-right: auto;
margin-left: auto;
}
.full-row > .center {
display: block;
float: none;
clear: both;
margin-right: auto;
margin-left: auto;
}
.pull-left-1 {
position: relative;
left: -8.33333333%;
}
.pull-left-2 {
position: relative;
left: -16.66666667%;
}
.pull-left-3 {
position: relative;
left: -25%;
}
.pull-left-4 {
position: relative;
left: -33.33333333%;
}
.pull-left-5 {
position: relative;
left: -41.66666667%;
}
.pull-left-6 {
position: relative;
left: -50%;
}
.pull-left-7 {
position: relative;
left: -58.33333333%;
}
.pull-left-8 {
position: relative;
left: -66.66666667%;
}
.pull-left-9 {
position: relative;
left: -75%;
}
.pull-left-10 {
position: relative;
left: -83.33333333%;
}
.pull-left-11 {
position: relative;
left: -91.66666667%;
}
.pull-left-12 {
position: relative;
left: -100%;
}
.pull-right-1 {
position: relative;
left: 8.33333333%;
}
.pull-right-2 {
position: relative;
left: 16.66666667%;
}
.pull-right-3 {
position: relative;
left: 25%;
}
.pull-right-4 {
position: relative;
left: 33.33333333%;
}
.pull-right-5 {
position: relative;
left: 41.66666667%;
}
.pull-right-6 {
position: relative;
left: 50%;
}
.pull-right-7 {
position: relative;
left: 58.33333333%;
}
.pull-right-8 {
position: relative;
left: 66.66666667%;
}
.pull-right-9 {
position: relative;
left: 75%;
}
.pull-right-10 {
position: relative;
left: 83.33333333%;
}
.pull-right-11 {
position: relative;
left: 91.66666667%;
}
.pull-right-12 {
position: relative;
left: 100%;
}
@media only screen and (max-device-width: 1024px) {
/*
* 中屏
*/
.row > .midd-1 {
width: 6.33333333%;
}
.row > .midd-2 {
width: 14.66666667%;
}
.row > .midd-3 {
width: 23%;
}
.row > .midd-4 {
width: 31.33333333%;
}
.row > .midd-5 {
width: 39.66666667%;
}
.row > .midd-6 {
width: 48%;
}
.row > .midd-7 {
width: 56.33333333%;
}
.row > .midd-8 {
width: 64.66666667%;
}
.row > .midd-9 {
width: 73%;
}
.row > .midd-10 {
width: 81.33333333%;
}
.row > .midd-11 {
width: 89.66666667%;
}
.row > .midd-12 {
width: 98%;
}
/*
* 工具
*/
.midd-hide {
display: none;
}
.midd-center {
position: relative;
left: -1%;
display: block;
float: none;
clear: both;
margin-right: auto;
margin-left: auto;
}
/*
* 无间距模式
*/
.full-row > .midd-1 {
width: 8.33333333%;
}
.full-row > .midd-2 {
width: 16.66666667%;
}
.full-row > .midd-3 {
width: 25%;
}
.full-row > .midd-4 {
width: 33.33333333%;
}
.full-row > .midd-5 {
width: 41.66666667%;
}
.full-row > .midd-6 {
width: 50%;
}
.full-row > .midd-7 {
width: 58.33333333%;
}
.full-row > .midd-8 {
width: 66.66666667%;
}
.full-row > .midd-9 {
width: 75%;
}
.full-row > .midd-10 {
width: 83.33333333%;
}
.full-row > .midd-11 {
width: 91.66666667%;
}
.full-row > .midd-12 {
width: 100%;
}
}
@media only screen and (max-device-width: 640px) {
/*
* 小屏栅格
*/
.row > .smal-1 {
width: 6.33333333%;
}
.row > .smal-2 {
width: 14.66666667%;
}
.row > .smal-3 {
width: 23%;
}
.row > .smal-4 {
width: 31.33333333%;
}
.row > .smal-5 {
width: 39.66666667%;
}
.row > .smal-6 {
width: 48%;
}
.row > .smal-7 {
width: 56.33333333%;
}
.row > .smal-8 {
width: 64.66666667%;
}
.row > .smal-9 {
width: 73%;
}
.row > .smal-10 {
width: 81.33333333%;
}
.row > .smal-11 {
width: 89.66666667%;
}
.row > .smal-12 {
width: 98%;
}
/*
* 工具
*/
.smal-hide {
display: none;
}
.smal-show {
display: block;
}
.smal-center {
position: relative;
left: -1%;
display: block;
float: none;
clear: both;
margin-right: auto;
margin-left: auto;
}
/*
* 清除位移
*/
[class*='pull-left-'],
[class*='pull-right-'] {
right: auto;
left: auto;
}
/*
* 无间距模式
*/
.full-row > .smal-1 {
width: 8.33333333%;
}
.full-row > .smal-2 {
width: 16.66666667%;
}
.full-row > .smal-3 {
width: 25%;
}
.full-row > .smal-4 {
width: 33.33333333%;
}
.full-row > .smal-5 {
width: 41.66666667%;
}
.full-row > .smal-6 {
width: 50%;
}
.full-row > .smal-7 {
width: 58.33333333%;
}
.full-row > .smal-8 {
width: 66.66666667%;
}
.full-row > .smal-9 {
width: 75%;
}
.full-row > .smal-10 {
width: 83.33333333%;
}
.full-row > .smal-11 {
width: 91.66666667%;
}
.full-row > .smal-12 {
width: 100%;
}
}
@font-face {
font-family: "flow-icon";
src: url('../font/iconfont.eot');
/* IE9*/
src: url('../font/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../font/iconfont.woff') format('woff'), /* chrome、firefox */ url('../font/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('../font/iconfont.svg#iconfont') format('svg');
/* iOS 4.1- */
}
.ion {
font-family: "flow-icon" !important;
display: inline-block;
line-height: 1;
font-style: normal;
-webkit-font-smoothing: antialiased;
vertical-align: middle;
}
.ico {
display: inline-block;
width: 25px;
height: 25px;
white-space: nowrap;
letter-spacing: -1em;
text-indent: -99em;
color: transparent;
background: url(../img/ico.png);
}
.ico:before {
content: '\3000';
}
.ico1_1 {
background-position: 0px 0px;
}
.ico1_2 {
background-position: -25px 0px;
}
.ico1_3 {
background-position: -50px 0px;
}
.ico1_4 {
background-position: -75px 0px;
}
.ico1_5 {
background-position: -100px 0px;
}
.ico2_1 {
background-position: 0px -25px;
}
.ico2_2 {
background-position: -25px -25px;
}
.ico2_3 {
background-position: -50px -25px;
}
.ico2_4 {
background-position: -75px -25px;
}
.ico2_5 {
background-position: -100px -25px;
}
.ico3_1 {
background-position: 0px -50px;
}
.ico3_2 {
background-position: -25px -50px;
}
.ico3_3 {
background-position: -50px -50px;
}
.ico3_4 {
background-position: -75px -50px;
}
.ico3_5 {
background-position: -100px -50px;
}
.ico4_1 {
background-position: 0px -75px;
}
.ico4_2 {
background-position: -25px -75px;
}
.ico4_3 {
background-position: -50px -75px;
}
.ico4_4 {
background-position: -75px -75px;
}
.ico4_5 {
background-position: -100px -75px;
}
.ico5_1 {
background-position: 0px -100px;
}
.ico5_2 {
background-position: -25px -100px;
}
.ico5_3 {
background-position: -50px -100px;
}
.ico5_4 {
background-position: -75px -100px;
}
.ico5_5 {
background-position: -100px -100px;
}
.items .item > a {
display: block;
position: relative;
padding: 10px 15px;
border-radius: 4px;
}
.items .item .ion:first-child {
color: #555555;
margin-right: 6px;
}
.items .item-extra {
float: right;
color: #2EA9DF;
}
.items .item-extra .badge-count {
background: #dbdbdb;
}
.items .item > a:hover {
background-color: #eeeeee;
}
.items .active > a,
.items .active > a:hover {
color: #fff;
background-color: #2EA9DF;
}
.items .active .item-extra .badge-count {
background: #fff;
color: inherit;
}
.items-inverse .item-extra {
color: #fff;
}
.items-primary .item > a {
color: #2EA9DF;
}
.items-primary .item > a:hover,
.items-inverse .active .item-extra,
.items-inverse .item > a:hover .item-extra {
color: #1979a3;
}
.items-primary .active > a,
.items-primary .active > a:hover {
color: #fff;
}
.items-auxiliary .item > a {
color: #FFC408;
}
.items-auxiliary .item > a:hover,
.items-auxiliary.items-inverse .active .item-extra,
.items-auxiliary .item > a:hover .item-extra {
color: #b58a00;
}
.items-auxiliary .active > a,
.items-auxiliary .active > a:hover {
color: #fff;
background-color: #FFC408;
}
.items-auxiliary .active .item-extra .badge-count {
color: #FFC408;
}
.items-info .item > a {
color: #4fcbf0;
}
.items-info .item > a:hover,
.items-info.items-inverse .active .item-extra,
.items-info .item > a:hover .item-extra {
color: #13addb;
}
.items-info .active > a,
.items-info .active > a:hover {
color: #fff;
background-color: #4fcbf0;
}
.items-info .active .item-extra .badge-count {
color: #4fcbf0;
}
.items-success .item > a {
color: #25ae88;
}
.items-success .item > a:hover,
.items-success.items-inverse .active .item-extra,
.items-success .item > a:hover .item-extra {
color: #176b53;
}
.items-success .active > a,
.items-success .active > a:hover {
color: #fff;
background-color: #25ae88;
}
.items-success .active .item-extra .badge-count {
color: #25ae88;
}
.items-warning .item > a {
color: #F05E1C;
}
.items-warning .item > a:hover,
.items-warning.items-inverse .active .item-extra,
.items-warning .item > a:hover .item-extra {
color: #af3e0c;
}
.items-warning .active > a,
.items-warning .active > a:hover {
color: #fff;
background-color: #F05E1C;
}
.items-warning .active .item-extra .badge-count {
color: #F05E1C;
}
.items-danger .item > a {
color: #CB4042;
}
.items-danger .item > a:hover,
.items-danger.items-inverse .active .item-extra,
.items-danger .item > a:hover .item-extra {
color: #922829;
}
.items-danger .active > a,
.items-danger .active > a:hover {
color: #fff;
background-color: #CB4042;
}
.items-danger .active .item-extra .badge-count {
color: #CB4042;
}
.label {
display: inline-block;
font-size: 14px;
line-height: 1.7;
margin: 0 0.2em .2em 0;
padding: 0 0.6em;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: #fff;
border: 1px solid;
border-radius: 4px;
background: #2EA9DF;
}
.label-sm {
font-size: 12px;
line-height: 1.6em;
}
.label-lg {
font-size: 16px;
line-height: 2em;
}
.label:first-child {
margin-left: 0;
}
.label.label-auxiliary {
background: #FFC408;
}
.label.label-success {
background: #25ae88;
}
.label.label-info {
background: #4fcbf0;
}
.label.label-warning {
background: #F05E1C;
}
.label.label-danger {
background: #CB4042;
}
.label.label-bordered {
color: #2EA9DF;
background: #fff;
}
.label-bordered.label-auxiliary {
color: #FFC408;
}
.label-bordered.label-success {
color: #25ae88;
}
.label-bordered.label-info {
color: #4fcbf0;
}
.label-bordered.label-warning {
color: #F05E1C;
}
.label-bordered.label-danger {
color: #CB4042;
}
.label-closable {
cursor: pointer;
}
.label-closable .ion:last-child {
font-size: 1em;
margin-left: 0.4em;
vertical-align: baseline;
opacity: 0.7;
transition: opacity ease .3s;
}
.label-closable.label-bordered {
position: relative;
padding-right: .5em;
}
.label-closable.label-bordered .ion:last-child {
margin-left: 0.7em;
}
.label-closable.label-bordered .ion:last-child:after {
position: absolute;
top: 0;
right: 1.9em;
width: 0;
height: 100%;
content: '';
border-left: 1px solid;
}
.label-closable:hover .ion {
opacity: 1;
}
.menu-ui {
display: block;
overflow: hidden;
position: relative;
font-size: 14px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-radius: 4px;
}
.menu-item {
display: block;
position: relative;
z-index: 1;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.menu-item > .ion,
.menu-item-title > .ion {
margin-right: 0.5em;
vertical-align: middle;
}
.menu-horizontal {
line-height: 59px;
height: 59px;
}
.menu-horizontal .menu-item,
.menu-horizontal .menu-submenu {
float: left;
position: relative;
z-index: 3;
padding: 0 22.4px;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.menu-light {
background: #fff;
}
.menu-light .menu-item {
border-bottom: 2px solid transparent;
}
.menu-light.menu-horizontal .menu-item,
.menu-light.menu-horizontal .menu-submenu {
line-height: 57px;
height: 57px;
}
.menu-light.menu-horizontal .menu-item-active,
.menu-light.menu-horizontal .menu-item:hover,
.menu-light.menu-horizontal .menu-opened {
color: #2EA9DF;
border-bottom-color: #2EA9DF;
}
.menu-horizontal.menu-light:after,
.menu-vertical.menu-light:after {
display: block;
position: absolute;
bottom: 0;
content: '';
background: #e8e9eb;
}
.menu-horizontal.menu-light:after {
left: 0;
width: 100%;
height: 1px;
}
.menu-dark {
background: #333333;
}
.menu-dark.menu-horizontal .menu-item,
.menu-dark.menu-horizontal .menu-submenu {
color: #dbdbdb;
}
.menu-dark.menu-horizontal .menu-item-active,
.menu-dark.menu-horizontal .menu-item:hover,
.menu-dark.menu-horizontal .menu-opened,
.menu-primary.menu-horizontal .menu-item {
color: #fff;
}
.menu-primary {
background: #2EA9DF;
}
.menu-primary.menu-horizontal .menu-item-active,
.menu-primary.menu-horizontal .menu-item:hover {
background: #1979a3;
}
.menu-vertical {
height: 100%;
overflow-y: auto;
}
.menu-vertical::-webkit-scrollbar {
position: absolute;
width: 10px;
margin-left: -10px;
-webkit-appearance: none;
}
.menu-vertical::-webkit-scrollbar-track {
background-color: #eee;
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
}
.menu-vertical::-webkit-scrollbar-thumb {
height: 50px;
background-color: #ccc;
background-clip: content-box;
border-color: transparent;
border-style: solid;
border-width: 1px 2px;
}
.menu-vertical.menu-dark::-webkit-scrollbar-track {
background-color: #444d50;
border-right: 1px solid #2c3334;
border-left: 1px solid #2c3334;
}
.menu-vertical.menu-dark::-webkit-scrollbar-thumb {
background-color: #212526;
}
.menu-vertical.menu-light:after {
z-index: 1;
top: 0;
right: 0;
width: 1px;
height: 100%;
}
.menu-vertical .menu-item,
.menu-vertical .menu-item-title {
position: relative;
z-index: 1;
padding: 11.2px 23.8px;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.menu-sub-group .menu-item {
padding-top: 11.2px;
padding-bottom: 11.2px;
}
.menu-vertical .menu-item:hover,
.menu-vertical .menu-item-title:hover {
background: #eeeeee;
}
.menu-vertical .menu-submenu .menu-item {
padding-left: 37.8px;
}
.menu-vertical .menu-sub-group {
display: none;
}
.menu-vertical .menu-opened .menu-sub-group {
display: block;
}
.menu-light.menu-vertical .menu-item {
border-right: 2px solid transparent;
}
.menu-light.menu-vertical .menu-item:hover {
color: #2EA9DF;
}
.menu-light.menu-vertical .menu-item-active {
z-index: 2;
color: #2EA9DF;
border-right: 2px solid #2EA9DF;
}
.menu-dark.menu-vertical .menu-item,
.menu-dark.menu-vertical .menu-item-title {
color: #dbdbdb;
}
.menu-dark.menu-vertical .menu-item:hover,
.menu-dark.menu-vertical .menu-item-title:hover {
color: #fff;
background: inherit;
}
.menu-dark.menu-vertical .menu-item-active,
.menu-dark.menu-vertical .menu-item-active:hover,
.menu-dark.menu-vertical .menu-item-active a:hover {
color: #fff;
background: #2EA9DF;
}
.menu-dark.menu-vertical .menu-opened {
background: #222222;
}
.menu-dark.menu-vertical .menu-opened .menu-item-title {
color: #fff;
background: #333333;
}
.menu-primary.menu-vertical .menu-item,
.menu-primary.menu-vertical .menu-item-title {
color: #eeeeee;
}
.menu-primary.menu-vertical .menu-item:hover,
.menu-primary.menu-vertical .menu-item-title:hover {
color: #fff;
background: #1979a3;
}
.menu-primary.menu-vertical .menu-sub-group .menu-item:hover {
color: #1979a3;
background: inherit;
}
.menu-primary.menu-vertical .menu-item-active,
.menu-primary.menu-vertical .menu-sub-group .menu-item-active,
.menu-primary.menu-vertical .menu-sub-group .menu-item-active:hover,
.menu-primary.menu-vertical .menu-item-active:hover {
color: #fff;
background: #1979a3;
}
.menu-primary.menu-vertical .menu-opened {
background: #86cded;
}
.menu-primary.menu-vertical .menu-opened .menu-item-title {
color: #fff;
background: #2EA9DF;
}
.menu-sub-ion {
font-size: 0.9em;
margin: 0 0.5em;
transition: -webkit-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}
.menu-vertical .menu-sub-ion {
float: right;
position: relative;
top: 4px;
margin-right: 0;
}
.menu-opened .menu-sub-ion {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.pagination {
display: inline-block;
padding-left: 0;
border-radius: 4px;
font-size: 14px;
}
.pagination > li {
display: inline;
}
.pagination > li > a,
.pagination > li > span {
line-height: 1.42857143;
position: relative;
float: left;
margin-left: -1px;
padding: 8px 15px;
text-decoration: none;
color: #2EA9DF;
border: 1px solid #e8e9eb;
background-color: #fff;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover {
color: #2EA9DF;
background-color: #eeeeee;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
z-index: 2;
cursor: default;
color: #fff;
border-color: #2EA9DF;
background-color: #2EA9DF;
}
.pagination > .disabled > a,
.pagination > .disabled > a:focus,
.pagination > .disabled > a:hover,
.pagination > .disabled > span,
.pagination > .disabled > span:focus,
.pagination > .disabled > span:hover {
cursor: not-allowed;
color: #777;
border-color: #ddd;
background-color: #fff;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
font-size: 16px;
line-height: 1.3333333;
padding: 10px 16px;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
font-size: 12px;
line-height: 1.5;
padding: 5px 10px;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.pagination > li > .unable,
.pagination > .unable:hover {
cursor: default;
color: #ccc;
background: #fff;
}
.progress {
display: block;
position: relative;
font-size: 12px;
}
.progress-show-info {
padding-right: 3.5em;
}
.progress-inner {
display: block;
border-radius: 100px;
background-color: #dbdbdb;
}
.progress-bg {
overflow: hidden;
position: relative;
height: 10px;
transition: all 0.2s linear;
border-radius: 100px;
background-color: #fff;
}
.progress-text {
position: absolute;
top: 50%;
right: 0;
line-height: 1;
width: 3em;
height: 1em;
margin-top: -0.5em;
text-align: left;
}
.progress-active .progress-bg:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: '';
-webkit-animation: progress-active 2s ease-in-out infinite;
animation: progress-active 2s ease-in-out infinite;
opacity: 0;
background: #fff;
}
.progress-primary .progress-inner,
.progress-auxiliary .progress-inner,
.progress-info .progress-inner,
.progress-success .progress-inner,
.progress-warning .progress-inner,
.progress-danger .progress-inner {
background-color: #eeeeee;
}
.progress-primary .progress-bg {
background-color: #2EA9DF;
}
.progress-primary {
color: #2EA9DF;
}
.progress-auxiliary .progress-bg {
background-color: #FFC408;
}
.progress-auxiliary {
color: #FFC408;
}
.progress-info .progress-bg {
background-color: #4fcbf0;
}
.progress-info {
color: #4fcbf0;
}
.progress-success .progress-bg {
background-color: #25ae88;
}
.progress-success {
color: #25ae88;
}
.progress-warning .progress-bg {
background-color: #F05E1C;
}
.progress-warning {
color: #F05E1C;
}
.progress-danger .progress-bg {
background-color: #CB4042;
}
.progress-danger {
color: #CB4042;
}
@-webkit-keyframes progress-active {
0% {
width: 0;
opacity: 0.3;
}
to {
width: 100%;
opacity: 0;
}
}
@keyframes progress-active {
0% {
width: 0;
opacity: 0.3;
}
to {
width: 100%;
opacity: 0;
}
}
*[class*="rect-"] {
position: relative;
display: block;
width: 100%;
height: 0;
overflow: hidden;
}
*[class*="rect-"] ._full {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
*height: auto;
}
.rect-4854 {
padding-bottom: 48.54%;
}
.rect-50 {
padding-bottom: 50%;
}
.rect-5625 {
padding-bottom: 56.25%;
}
.rect-60 {
padding-bottom: 60%;
}
.rect-618 {
padding-bottom: 61.8%;
}
.rect-70 {
padding-bottom: 70%;
}
.rect-75 {
padding-bottom: 75%;
}
.rect-80 {
padding-bottom: 80%;
}
.rect-90 {
padding-bottom: 90%;
}
.rect-100 {
padding-bottom: 100%;
}
.m {
margin: 22.4px;
}
.m-0 {
margin: 0;
}
.m-l {
margin-left: 22.4px;
}
.m-t {
margin-top: 22.4px;
}
.m-r {
margin-right: 22.4px;
}
.m-b {
margin-bottom: 22.4px;
}
.m-lr {
margin-left: 22.4px;
margin-right: 22.4px;
}
.m-tb {
margin-top: 22.4px;
margin-bottom: 22.4px;
}
.m-sm {
margin: 11.2px;
}
.m-l-sm {
margin-left: 11.2px;
}
.m-t-sm {
margin-top: 11.2px;
}
.m-r-sm {
margin-right: 11.2px;
}
.m-b-sm {
margin-bottom: 11.2px;
}
.m-lr-sm {
margin-left: 11.2px;
margin-right: 11.2px;
}
.m-tb-sm {
margin-top: 11.2px;
margin-bottom: 11.2px;
}
.m-lg {
margin: 33.6px;
}
.m-l-lg {
margin-left: 33.6px;
}
.m-t-lg {
margin-top: 33.6px;
}
.m-r-lg {
margin-right: 33.6px;
}
.m-b-lg {
margin-bottom: 33.6px;
}
.m-lr-lg {
margin-left: 33.6px;
margin-right: 33.6px;
}
.m-tb-lg {
margin-top: 33.6px;
margin-bottom: 33.6px;
}
.p {
padding: 22.4px;
}
.p-0 {
padding: 0;
}
.p-l {
padding-left: 22.4px;
}
.p-t {
padding-top: 22.4px;
}
.p-r {
padding-right: 22.4px;
}
.p-b {
padding-bottom: 22.4px;
}
.p-lr {
padding-left: 22.4px;
padding-right: 22.4px;
}
.p-tb {
padding-top: 22.4px;
padding-bottom: 22.4px;
}
.p-sm {
padding: 11.2px;
}
.p-l-sm {
padding-left: 11.2px;
}
.p-t-sm {
padding-top: 11.2px;
}
.p-r-sm {
padding-right: 11.2px;
}
.p-b-sm {
padding-bottom: 11.2px;
}
.p-lr-sm {
padding-left: 11.2px;
padding-right: 11.2px;
}
.p-tb-sm {
padding-top: 11.2px;
padding-bottom: 11.2px;
}
.p-lg {
padding: 33.6px;
}
.p-l-lg {
padding-left: 33.6px;
}
.p-t-lg {
padding-top: 33.6px;
}
.p-r-lg {
padding-right: 33.6px;
}
.p-b-lg {
padding-bottom: 33.6px;
}
.p-lr-lg {
padding-left: 33.6px;
padding-right: 33.6px;
}
.p-tb-lg {
padding-top: 33.6px;
padding-bottom: 33.6px;
}
.spin-wrap {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: table;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
font-size: 14px;
}
.spin-main {
display: table-cell;
width: inherit;
height: inherit;
vertical-align: middle;
}
.spin-text .ion {
font-size: 2.5em;
}
.spin-icon-load {
-webkit-animation: ani-spin-load 1s linear infinite;
animation: ani-spin-load 1s linear infinite;
}
.spin-size-sm {
font-size: 12px;
}
.spin-size-lg {
font-size: 16px;
}
@-webkit-keyframes ani-spin-load {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
50% {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes ani-spin-load {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
50% {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.switch {
display: inline-block;
position: relative;
cursor: pointer;
font-size: 14px;
}
.switch .track {
display: block;
overflow: hidden;
position: relative;
width: 64px;
height: 28px;
content: ' ';
transition-timing-function: ease-in-out;
transition-duration: 0.3s;
transition-property: background-color border;
border: solid 2px #d5d5d5;
border-radius: 4px;
background-color: #eeeeee;
}
.switch .handle {
display: block;
position: absolute;
top: 0;
left: 0;
width: 28px;
height: 28px;
transition: 0.3s cubic-bezier(0, 1.1, 1, 1.1);
transition-property: background-color, left;
background-color: #fff;
}
.switch .handle:before,
.switch .handle:after {
position: absolute;
height: 28px;
line-height: 28px;
width: 36px;
text-align: center;
overflow: hidden;
}
.switch .handle:before {
content: "ON";
left: -36px;
color: #fff;
}
.switch .handle:after {
content: "OFF";
left: 100%;
color: #d5d5d5;
}
.switch-on .track {
border-color: #dbdbdb;
background-color: #dbdbdb;
}
.switch-on .handle {
left: 36px;
}
.switch-disabled {
cursor: not-allowed;
}
.switch-disabled .track {
opacity: 0.6;
}
.switch-round .track {
border-radius: 32px;
}
.switch-round .handle {
border-radius: 32px;
box-shadow: 0 2px 0.56em rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.15);
}
.switch-sm {
font-size: 12px;
}
.switch-sm .track {
width: 50px;
height: 21px;
}
.switch-sm .handle {
width: 21px;
height: 21px;
}
.switch-sm.switch-on .handle {
left: 29px;
}
.switch-sm .handle:before,
.switch-sm .handle:after {
width: 29px;
height: 21px;
line-height: 21px;
}
.switch-sm .handle:before {
left: -29px;
}
.switch-lg {
font-size: 16px;
}
.switch-lg .track {
width: 80px;
height: 36px;
}
.switch-lg .handle {
width: 36px;
height: 36px;
}
.switch-lg.switch-on .handle {
left: 44px;
}
.switch-lg .handle:before,
.switch-lg .handle:after {
width: 44px;
height: 36px;
line-height: 36px;
}
.switch-lg .handle:before {
left: -44px;
}
.switch-primary.switch-on .track {
border-color: #2EA9DF;
background-color: #2EA9DF;
}
.switch-auxiliary.switch-on .track {
border-color: #FFC408;
background-color: #FFC408;
}
.switch-success.switch-on .track {
border-color: #25ae88;
background-color: #25ae88;
}
.switch-info.switch-on .track {
border-color: #4fcbf0;
background-color: #4fcbf0;
}
.switch-warning.switch-on .track {
border-color: #F05E1C;
background-color: #F05E1C;
}
.switch-danger.switch-on .track {
border-color: #CB4042;
background-color: #CB4042;
}
.tab {
overflow: hidden;
position: relative;
font-size: 14px;
padding-top: 30.8px;
}
.tab .tab-nav {
position: absolute;
z-index: 1;
top: 0;
width: 100%;
height: 30.8px;
border-bottom: 1px solid #dbdbdb;
}
.tab .tab-title {
float: left;
line-height: 29.8px;
height: 29.8px;
margin-right: 4px;
padding: 0 1em;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid #dbdbdb;
border-bottom: 0;
border-radius: 4px 4px 0 0;
background: #eeeeee;
}
.tab .tab-title:hover {
color: #2EA9DF;
}
.tab .tab-title.tab-actived {
height: 30.8px;
cursor: default;
color: #2EA9DF;
background: #fff;
}
.tab .tab-title.tab-disabled {
cursor: default;
pointer-events: none;
color: #dbdbdb;
}
.tab .tab-extra {
position: absolute;
z-index: 2;
top: 0;
right: 0;
}
.tab .tab-cont-wrap {
border: 1px solid #dbdbdb;
border-top: 0;
border-radius: 0 0 4px 4px;
background: #fff;
}
.tab .tab-cont {
display: none;
padding: 11.2px;
}
.tab .tab-cont:empty {
padding: 0;
}
.tab .tab-cont.tab-actived {
display: block;
}
.tab-title.tab-primary {
color: #fff;
background: #2EA9DF;
}
.tab-title.tab-primary.tab-actived,
.tab-title.tab-primary:hover {
color: #fff;
background: #1979a3;
}
.tab-title.tab-auxiliary {
color: #fff;
background: #FFC408;
}
.tab-title.tab-auxiliary.tab-actived,
.tab-title.tab-auxiliary:hover {
color: #fff;
background: #b58a00;
}
.tab-title.tab-info {
color: #fff;
background: #4fcbf0;
}
.tab-title.tab-info.tab-actived,
.tab-title.tab-info:hover {
color: #fff;
background: #13addb;
}
.tab-title.tab-success {
color: #fff;
background: #25ae88;
}
.tab-title.tab-success.tab-actived,
.tab-title.tab-success:hover {
color: #fff;
background: #176b53;
}
.tab-title.tab-warning {
color: #fff;
background: #F05E1C;
}
.tab-title.tab-warning.tab-actived,
.tab-title.tab-warning:hover {
color: #fff;
background: #af3e0c;
}
.tab-title.tab-danger {
color: #fff;
background: #CB4042;
}
.tab-title.tab-danger.tab-actived,
.tab-title.tab-danger:hover {
color: #fff;
background: #922829;
}
.table {
font-size: 14px;
width: 100%;
max-width: 100%;
border: 1px solid #e8e9eb;
border-radius: 4px;
background: #fff;
}
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > td {
font-weight: normal;
line-height: 1.42857143;
height: 48px;
padding: 0 18px;
vertical-align: inherit;
border-top: 1px solid #e8e9eb;
}
.table > thead > tr > th,
.table > thead > tr > td {
font-weight: normal;
line-height: 40px;
height: 40px;
padding-top: 0;
padding-bottom: 0;
vertical-align: bottom;
background: #eeeeee;
}
.table > tbody > tr:first-child > th,
.table > tbody > tr:first-child > td {
border-top: 0;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 2px solid #e8e9eb;
}
.table .table {
background-color: #fff;
}
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
height: auto;
padding-top: 5px;
padding-bottom: 5px;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border-right: 1px solid #e8e9eb;
}
.table-striped > tbody > tr:nth-of-type(even) {
background-color: #eeeeee;
}
.table-hover > tbody > tr:hover,
.table-tr-hover {
background-color: #eeeeee;
}
table col[class*='col-'] {
display: table-column;
float: none;
position: static;
}
table td[class*='col-'],
table th[class*='col-'] {
display: table-cell;
float: none;
position: static;
}
.table-responsive {
overflow-x: auto;
min-height: 0.01%;
}
@media screen and (max-device-width: 640px) {
.table-responsive {
overflow-y: hidden;
width: 100%;
border: 1px solid #e8e9eb;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.table-responsive > .table {
margin-bottom: 0;
}
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > td {
white-space: nowrap;
}
.table-responsive > .table-bordered {
border: 0;
}
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
}
}
/* for table plugin */
.table-wrapper {
overflow-x: hidden;
overflow-y: hidden;
position: relative;
box-sizing: border-box;
cursor: default;
border: 1px solid #e8e9eb;
border-radius: 4px;
}
.table-wrapper .table > thead > tr > th,
.table-wrapper .table > thead > tr > td,
.table-wrapper .table > tbody > tr > th,
.table-wrapper .table > tfoot > tr > th,
.table-wrapper .table > tbody > tr > td,
.table-wrapper .table > tfoot > tr > td {
padding: 0;
}
.table-wrapper .table-cell {
overflow: hidden;
padding: 0 15px;
white-space: normal;
word-break: break-all;
}
.table-scroll-x {
overflow-x: auto;
overflow-y: hidden;
}
.table-header .table,
.table-body .table {
border: 0;
}
.table-body {
overflow-x: hidden;
overflow-y: auto;
}
.table-body .table .table-cell {
line-height: 1.7;
}
.table-body .table .table-cell-dirty,
.table-body .table .table-cell-editable {
position: relative;
}
.table-body .table .table-cell-dirty:before {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
content: '';
border: 4px solid;
border-color: #2EA9DF transparent transparent #2EA9DF;
}
.table-highlight,
.table-hover > tbody > .table-highlight:hover {
color: #fff;
background: #2EA9DF;
}
.table-sort,
.table-filter {
display: inline-block;
overflow: hidden;
position: relative;
line-height: 1.4em;
width: 1.4em;
height: 1.4em;
margin: -1px 0 0 4px;
cursor: pointer;
vertical-align: middle;
color: #c3cbd6;
}
.table-sort .ion {
display: block;
overflow: hidden;
position: absolute;
font-size: 1.3em;
line-height: 0.7em;
height: 0.7em;
transition: color 0.2s ease-in-out;
}
.table-sort .table-sort-up {
top: 0;
}
.table-sort .table-sort-down {
bottom: 0;
}
.table-sort .ion.on {
color: #2EA9DF;
}
.table-fixed {
overflow: hidden;
position: absolute;
top: 0;
left: 0;
box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.2);
}
.table-fixed .table-header,
.table-fixed .table-body {
overflow: hidden;
}
.table-wrapper .table-cell-editer {
position: absolute;
z-index: 9;
top: 0;
line-height: 1.7;
height: 100%;
padding-top: 8px;
padding-bottom: 8px;
}
.wrap {
width: 1200px;
margin-right: auto;
margin-left: auto;
}
.fix {
*zoom: 1;
*clear: both;
}
.fix:before,
.fix:after {
display: table;
clear: both;
content: '';
}
.oh {
overflow: hidden;
*zoom: 1;
}
.l {
float: left;
}
.r {
float: right;
}
.dib {
display: inline-block;
*display: inline;
*zoom: 1;
}
.pr {
position: relative;
}
.pa {
position: absolute;
}
.tl {
text-align: left;
}
.tc {
text-align: center;
}
.tr {
text-align: right;
}
.el {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.justify {
overflow: hidden;
text-align: justify !important;
}
.justify:after {
content: ' 88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888';
}
.hide {
display: none;
}
.hidetext {
font: 0/0 a;
letter-spacing: -9px;
}
.arr {
display: inline-block;
overflow: hidden;
width: 0;
height: 0;
}
.opc0 {
opacity: 0 ;
filter: alpha(opacity=0);
}
.scrollbar::-webkit-scrollbar {
position: absolute;
width: 10px;
margin-left: -10px;
-webkit-appearance: none;
}
.scrollbar::-webkit-scrollbar-track {
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
background-color: #eee;
}
.scrollbar::-webkit-scrollbar-thumb {
height: 50px;
border-width: 1px 2px;
border-style: solid;
border-color: transparent;
background-color: #ccc;
background-clip: content-box;
}
.scrollbar-dark::-webkit-scrollbar-track {
border-right: 1px solid #2c3334;
border-left: 1px solid #2c3334;
background-color: #444d50;
}
.scrollbar-dark::-webkit-scrollbar-thumb {
background-color: #212526;
}
.ztree {
font-size: 14px;
}
.ztree li {
list-style-type: none;
white-space: nowrap;
outline: none;
}
.ztree li ul {
position: relative;
padding: 0 0 0 20px;
}
.ztree li ul.line:before {
position: absolute;
top: 0;
left: 10px;
height: 100%;
content: '';
border-right: 1px dotted #dbdbdb;
}
.ztree li .center_docu:before,
.ztree li .bottom_docu:before,
.ztree li .center_docu:after,
.ztree li .bottom_docu:after {
position: absolute;
content: '';
border: 0 dotted #dbdbdb;
}
.ztree li .center_docu:before {
left: 10px;
height: 100%;
border-left-width: 1px;
}
.ztree li .center_docu:after {
top: 50%;
left: 11px;
width: 50%;
border-top-width: 1px;
}
.ztree li .bottom_docu:before {
left: 10px;
height: 50%;
border-left-width: 1px;
}
.ztree li .bottom_docu:after {
top: 50%;
left: 11px;
width: 50%;
border-top-width: 1px;
}
.ztree li a {
display: inline-block;
line-height: 22px;
height: 22px;
margin: 0;
padding: 0 3px;
cursor: pointer;
transition: none;
vertical-align: middle;
color: #555555;
}
.ztree li a.curSelectedNode {
color: #000;
border-radius: 4px;
background-color: #c9e9f7;
}
.ztree li a.curSelectedNode_Edit {
height: 20px;
opacity: 0.8;
color: #000;
border: 1px #6cc2e8 solid;
background-color: #9dd6f0;
}
.ztree li a.tmpTargetNode_inner {
opacity: 0.8;
color: #fff;
background-color: #4fcbf0;
filter: alpha(opacity=80);
}
.ztree li a input.rename {
font-size: 12px;
line-height: 22px;
width: 80px;
height: 22px;
margin: 0;
padding: 0;
vertical-align: top;
border: 0;
background: none;
}
.ztree li span {
display: inline-block;
line-height: 22px;
height: 22px;
margin-right: 2px;
}
.ztree li span.button {
position: relative;
width: 22px;
margin: 0;
cursor: pointer;
text-align: center;
vertical-align: middle;
}
.ztree li span.button.edit {
color: #25ae88;
}
.ztree li span.button.remove {
color: #CB4042;
}
.ztree li span.button.chk {
position: relative;
width: 14px;
height: 14px;
margin: 0 4px 0 0;
border: 1px solid #d7dde4;
border-radius: 2px;
background: #fff;
}
.ztree li span.chk.radio_true_full,
.ztree li span.chk.radio_false_full,
.ztree li span.chk.radio_true_full_focus,
.ztree li span.chk.radio_false_full_focus,
.ztree li span.chk.radio_false_disable,
.ztree li span.chk.radio_true_disable,
.ztree li span.chk.radio_true_part,
.ztree li span.chk.radio_false_part,
.ztree li span.chk.radio_true_part_focus,
.ztree li span.chk.radio_false_part_focus {
border-radius: 8px;
}
.ztree li span.button.chk:after {
position: absolute;
top: 1px;
left: 4px;
width: 4px;
height: 8px;
content: '';
transition: -webkit-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
-webkit-transform: rotate(0deg) scale(0);
transform: rotate(0deg) scale(0);
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.ztree li span.button.checkbox_false_full_focus {
border-color: #ccc;
}
.ztree li span.button.checkbox_true_full,
.ztree li span.button.checkbox_true_full_focus,
.ztree li span.button.checkbox_true_part,
.ztree li span.button.checkbox_true_part_focus,
.ztree li span.button.checkbox_true_disable {
border-color: #39f;
background-color: #39f;
}
.ztree li span.button.checkbox_true_full:after,
.ztree li span.button.checkbox_true_full_focus:after,
.ztree li span.button.checkbox_true_disable:after {
-webkit-transform: rotate(45deg) scale(1);
transform: rotate(45deg) scale(1);
}
.ztree li span.button.checkbox_true_part:after,
.ztree li span.button.checkbox_true_part_focus:after {
top: 5px;
left: 2px;
width: 10px;
height: 1px;
-webkit-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
border-right: 0;
}
.ztree li span.button.radio_true_full,
.ztree li span.chk.radio_true_full_focus,
.ztree li span.chk.radio_true_part,
.ztree li span.chk.radio_true_part_focus {
border-color: #39f;
}
.ztree li span.button.radio_true_full:after,
.ztree li span.chk.radio_true_full_focus:after,
.ztree li span.chk.radio_true_part:after,
.ztree li span.chk.radio_true_part_focus:after {
top: 3px;
left: 3px;
width: 8px;
-webkit-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
border: 0;
border-radius: 4px;
background: #39f;
}
.ztree li span.button.checkbox_true_disable,
.ztree li span.button.checkbox_false_disable,
.ztree li span.chk.radio_false_disable,
.ztree li span.chk.radio_true_disable {
cursor: not-allowed;
}
.ztree li span.button.checkbox_false_disable {
background-color: #f3f3f3;
}
.ztree li span.button.noline_close:before,
.ztree li span.button.noline_open:before,
.ztree li span.button.roots_open:before,
.ztree li span.button.roots_close:before,
.ztree li span.button.bottom_open:before,
.ztree li span.button.bottom_close:before,
.ztree li span.button.center_open:before,
.ztree li span.button.center_close:before {
position: absolute;
top: 5px;
left: 5px;
content: '';
transition: -webkit-transform ease 0.3s;
transition: transform ease 0.3s;
transition: transform ease 0.3s, -webkit-transform ease 0.3s;
-webkit-transform: rotateZ(0deg);
transform: rotateZ(0deg);
-webkit-transform-origin: 25% 50%;
transform-origin: 25% 50%;
border: 6px solid;
border-color: transparent transparent transparent #666;
}
.ztree li span.button.noline_open:before,
.ztree li span.button.roots_open:before,
.ztree li span.button.bottom_open:before,
.ztree li span.button.center_open:before {
-webkit-transform: rotateZ(90deg);
transform: rotateZ(90deg);
}
.ztree li span.button.ico_loading {
margin-right: 2px;
background: url('data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7') 0 center no-repeat;
}
ul.tmpTargetzTree {
opacity: 0.8;
background-color: #2EA9DF;
filter: alpha(opacity=80);
}
span.tmpzTreeMove_arrow {
position: absolute;
width: 18px;
height: 18px;
color: #4fcbf0;
}
ul.ztree.zTreeDragUL {
overflow: hidden;
position: absolute;
width: auto;
height: auto;
margin: 0;
padding: 0;
opacity: 0.8;
border: 1px #176b53 dotted;
background-color: #dbdbdb;
filter: alpha(opacity=80);
}
.zTreeMask {
position: absolute;
z-index: 10000;
opacity: 0.0;
background-color: #cfcfcf;
filter: alpha(opacity=0);
}
/* mystyle */
================================================
FILE: static/lib/etpl.js
================================================
function extend(target,source){for(var key in source){if(source.hasOwnProperty(key)){target[key]=source[key]}}return target}function Stack(){this.raw=[];this.length=0}Stack.prototype={push:function(elem){this.raw[this.length++]=elem},pop:function(){if(this.length>0){var elem=this.raw[--this.length];this.raw.length=this.length;return elem}},top:function(){return this.raw[this.length-1]},bottom:function(){return this.raw[0]},find:function(condition){var index=this.length;while(index--){var item=this.raw[index];if(condition(item)){return item}}}};var guidIndex=0x2B845;function generateGUID(){return'___'+(guidIndex++)}function inherits(subClass,superClass){var F=new Function();F.prototype=superClass.prototype;subClass.prototype=new F();subClass.prototype.constructor=subClass}var HTML_ENTITY={'&':'&','<':'<','>':'>','"':'"',"'":'''};function htmlFilterReplacer(c){return HTML_ENTITY[c]}var DEFAULT_FILTERS={html:function(source){return source.replace(/[&<>"']/g,htmlFilterReplacer)},url:encodeURIComponent,raw:function(source){return source}};function stringLiteralize(source){return'"'+source.replace(/\x5C/g,'\\\\').replace(/"/g,'\\"').replace(/\x0A/g,'\\n').replace(/\x09/g,'\\t').replace(/\x0D/g,'\\r')+'"'}function regexpLiteral(source){return source.replace(/[\^\[\]\$\(\)\{\}\?\*\.\+]/g,function(c){return'\\'+c})}function stringFormat(source){var args=arguments;return source.replace(/\{([0-9]+)\}/g,function(match,index){return args[index-0+1]})}var RENDER_STRING_DECLATION='var r="";';var RENDER_STRING_ADD_START='r+=';var RENDER_STRING_ADD_END=';';var RENDER_STRING_RETURN='return r;';if(typeof navigator!=='undefined'&&/msie\s*([0-9]+)/i.test(navigator.userAgent)&&RegExp.$1-0<8){RENDER_STRING_DECLATION='var r=[],ri=0;';RENDER_STRING_ADD_START='r[ri++]=';RENDER_STRING_RETURN='return r.join("");'}function toGetVariableLiteral(name){name=name.replace(/^\s*\*/,'');return stringFormat('gv({0},["{1}"])',stringLiteralize(name),name.replace(/\[['"]?([^'"]+)['"]?\]/g,function(match,name){return'.'+name}).split('.').join('","'))}function parseTextBlock(source,open,close,greedy,onInBlock,onOutBlock){var closeLen=close.length;var texts=source.split(open);var level=0;var buf=[];for(var i=0,len=texts.length;i1&&openBegin?open:'',text);break}level=greedy?level-1:0;buf.push(level>0&&openBegin?open:'',text.slice(0,closeIndex),level>0?close:'');text=text.slice(closeIndex+closeLen);openBegin=0;if(level===0){break}}if(level===0){onInBlock(buf.join(''));onOutBlock(text);buf=[]}}else{text&&onOutBlock(text)}}if(level>0&&buf.length>0){onOutBlock(open);onOutBlock(buf.join(''))}}function compileVariable(source,engine,forText){var code=[];var options=engine.options;var toStringHead='';var toStringFoot='';var wrapHead='';var wrapFoot='';var defaultFilter;if(forText){toStringHead='ts(';toStringFoot=')';wrapHead=RENDER_STRING_ADD_START;wrapFoot=RENDER_STRING_ADD_END;defaultFilter=options.defaultFilter}parseTextBlock(source,options.variableOpen,options.variableClose,1,function(text){if(forText&&text.indexOf('|')<0&&defaultFilter){text+='|'+defaultFilter}var filterCharIndex=text.indexOf('|');var variableName=(filterCharIndex>0?text.slice(0,filterCharIndex):text).replace(/^\s+/,'').replace(/\s+$/,'');var filterSource=filterCharIndex>0?text.slice(filterCharIndex+1):'';var variableRawValue=variableName.indexOf('*')===0;var variableCode=[variableRawValue?'':toStringHead,toGetVariableLiteral(variableName),variableRawValue?'':toStringFoot];if(filterSource){filterSource=compileVariable(filterSource,engine);var filterSegs=filterSource.split('|');for(var i=0,len=filterSegs.length;i=TargetState.APPLIED){return 1}var blocks=this.blocks;function replaceBlock(node){var children=node.children;if(children instanceof Array){for(var i=0,len=children.length;i=TargetState.READY){return 1}var engine=this.engine;var readyState=1;function checkReadyState(node){for(var i=0,len=node.children.length;i',commandSyntax:/^\s*(\/)?([a-z]+)\s*(?::([\s\S]*))?$/,variableOpen:'${',variableClose:'}',defaultFilter:'html'};this.config(options);this.targets={};this.filters=extend({},DEFAULT_FILTERS)}Engine.prototype.config=function(options){extend(this.options,options)};Engine.prototype.compile=Engine.prototype.parse=function(source){if(source){var targetNames=parseSource(source,this);if(targetNames.length){return this.targets[targetNames[0]].getRenderer()}}return new Function('return ""')};Engine.prototype.getRenderer=function(name){var target=this.targets[name];if(target){return target.getRenderer()}};Engine.prototype.render=function(name,data){var renderer=this.getRenderer(name);if(renderer){return renderer(data)}return''};Engine.prototype.addFilter=function(name,filter){if(typeof filter==='function'){this.filters[name]=filter}};function parseSource(source,engine){var commandOpen=engine.options.commandOpen;var commandClose=engine.options.commandClose;var commandSyntax=engine.options.commandSyntax;var stack=new Stack();var analyseContext={engine:engine,targets:[],stack:stack,target:null};var textBuf=[];function flushTextBuf(){var text;if(textBuf.length>0&&(text=textBuf.join(''))){var textNode=new TextNode(text,engine);textNode.beforeAdd(analyseContext);stack.top().addChild(textNode);textBuf=[];if(engine.options.strip&&analyseContext.current instanceof Command){textNode.value=text.replace(/^[\x20\t\r]*\n/,'')}analyseContext.current=textNode}}var NodeType;parseTextBlock(source,commandOpen,commandClose,0,function(text){var match=commandSyntax.exec(text);if(match&&(NodeType=commandTypes[match[2].toLowerCase()])&&typeof NodeType==='function'){flushTextBuf();var currentNode=analyseContext.current;if(engine.options.strip&¤tNode instanceof TextNode){currentNode.value=currentNode.value.replace(/\r?\n[\x20\t]*$/,'\n')}if(match[1]){currentNode=autoCloseCommand(analyseContext,NodeType)}else{currentNode=new NodeType(match[3],engine);if(typeof currentNode.beforeOpen==='function'){currentNode.beforeOpen(analyseContext)}currentNode.open(analyseContext)}analyseContext.current=currentNode}else if(!/^\s*\/\//.test(text)){textBuf.push(commandOpen,text,commandClose)}NodeType=null},function(text){textBuf.push(text)});flushTextBuf();autoCloseCommand(analyseContext);return analyseContext.targets}var etpl=new Engine();etpl.Engine=Engine;
================================================
FILE: static/lib/sea.js
================================================
/*! Sea.js 2.3.0 | seajs.org/LICENSE.md */
!function(a,b){function c(a){return function(b){return{}.toString.call(b)=="[object "+a+"]"}}function d(){return z++}function e(a){return a.match(C)[0]}function f(a){for(a=a.replace(D,"/"),a=a.replace(F,"$1/");a.match(E);)a=a.replace(E,"/");return a}function g(a){var b=a.length-1,c=a.charAt(b);return"#"===c?a.substring(0,b):".js"===a.substring(b-2)||a.indexOf("?")>0||"/"===c?a:a+".js"}function h(a){var b=u.alias;return b&&w(b[a])?b[a]:a}function i(a){var b=u.paths,c;return b&&(c=a.match(G))&&w(b[c[1]])&&(a=b[c[1]]+c[2]),a}function j(a){var b=u.vars;return b&&a.indexOf("{")>-1&&(a=a.replace(H,function(a,c){return w(b[c])?b[c]:a})),a}function k(a){var b=u.map,c=a;if(b)for(var d=0,e=b.length;e>d;d++){var f=b[d];if(c=y(f)?f(a)||a:a.replace(f[0],f[1]),c!==a)break}return c}function l(a,b){var c,d=a.charAt(0);if(I.test(a))c=a;else if("."===d)c=f((b?e(b):u.cwd)+a);else if("/"===d){var g=u.cwd.match(J);c=g?g[0]+a.substring(1):a}else c=u.base+a;return 0===c.indexOf("//")&&(c=location.protocol+c),c}function m(a,b){if(!a)return"";a=h(a),a=i(a),a=j(a),a=g(a);var c=l(a,b);return c=k(c)}function n(a){return a.hasAttribute?a.src:a.getAttribute("src",4)}function o(a,b,c){var d=K.createElement("script");if(c){var e=y(c)?c(a):c;e&&(d.charset=e)}p(d,b,a),d.async=!0,d.src=a,R=d,Q?P.insertBefore(d,Q):P.appendChild(d),R=null}function p(a,b,c){function d(){a.onload=a.onerror=a.onreadystatechange=null,u.debug||P.removeChild(a),a=null,b()}var e="onload"in a;e?(a.onload=d,a.onerror=function(){B("error",{uri:c,node:a}),d()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&d()}}function q(){if(R)return R;if(S&&"interactive"===S.readyState)return S;for(var a=P.getElementsByTagName("script"),b=a.length-1;b>=0;b--){var c=a[b];if("interactive"===c.readyState)return S=c}}function r(a){var b=[];return a.replace(U,"").replace(T,function(a,c,d){d&&b.push(d)}),b}function s(a,b){this.uri=a,this.dependencies=b||[],this.exports=null,this.status=0,this._waitings={},this._remain=0}if(!a.seajs){var t=a.seajs={version:"2.3.0"},u=t.data={},v=c("Object"),w=c("String"),x=Array.isArray||c("Array"),y=c("Function"),z=0,A=u.events={};t.on=function(a,b){var c=A[a]||(A[a]=[]);return c.push(b),t},t.off=function(a,b){if(!a&&!b)return A=u.events={},t;var c=A[a];if(c)if(b)for(var d=c.length-1;d>=0;d--)c[d]===b&&c.splice(d,1);else delete A[a];return t};var B=t.emit=function(a,b){var c=A[a],d;if(c){c=c.slice();for(var e=0,f=c.length;f>e;e++)c[e](b)}return t},C=/[^?#]*\//,D=/\/\.\//g,E=/\/[^/]+\/\.\.\//,F=/([^:/])\/+\//g,G=/^([^/:]+)(\/.+)$/,H=/{([^{]+)}/g,I=/^\/\/.|:\//,J=/^.*?\/\/.*?\//,K=document,L=location.href&&0!==location.href.indexOf("about:")?e(location.href):"",M=K.scripts,N=K.getElementById("seajsnode")||M[M.length-1],O=e(n(N)||L);t.resolve=m;var P=K.head||K.getElementsByTagName("head")[0]||K.documentElement,Q=P.getElementsByTagName("base")[0],R,S;t.request=o;var T=/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?)\1\s*\)/g,U=/\\\\/g,V=t.cache={},W,X={},Y={},Z={},$=s.STATUS={FETCHING:1,SAVED:2,LOADING:3,LOADED:4,EXECUTING:5,EXECUTED:6};s.prototype.resolve=function(){for(var a=this,b=a.dependencies,c=[],d=0,e=b.length;e>d;d++)c[d]=s.resolve(b[d],a.uri);return c},s.prototype.load=function(){var a=this;if(!(a.status>=$.LOADING)){a.status=$.LOADING;var c=a.resolve();B("load",c);for(var d=a._remain=c.length,e,f=0;d>f;f++)e=s.get(c[f]),e.status<$.LOADED?e._waitings[a.uri]=(e._waitings[a.uri]||0)+1:a._remain--;if(0===a._remain)return a.onload(),b;var g={};for(f=0;d>f;f++)e=V[c[f]],e.status<$.FETCHING?e.fetch(g):e.status===$.SAVED&&e.load();for(var h in g)g.hasOwnProperty(h)&&g[h]()}},s.prototype.onload=function(){var a=this;a.status=$.LOADED,a.callback&&a.callback();var b=a._waitings,c,d;for(c in b)b.hasOwnProperty(c)&&(d=V[c],d._remain-=b[c],0===d._remain&&d.onload());delete a._waitings,delete a._remain},s.prototype.fetch=function(a){function c(){t.request(g.requestUri,g.onRequest,g.charset)}function d(){delete X[h],Y[h]=!0,W&&(s.save(f,W),W=null);var a,b=Z[h];for(delete Z[h];a=b.shift();)a.load()}var e=this,f=e.uri;e.status=$.FETCHING;var g={uri:f};B("fetch",g);var h=g.requestUri||f;return!h||Y[h]?(e.load(),b):X[h]?(Z[h].push(e),b):(X[h]=!0,Z[h]=[e],B("request",g={uri:f,requestUri:h,onRequest:d,charset:u.charset}),g.requested||(a?a[g.requestUri]=c:c()),b)},s.prototype.exec=function(){function a(b){return s.get(a.resolve(b)).exec()}var c=this;if(c.status>=$.EXECUTING)return c.exports;c.status=$.EXECUTING;var e=c.uri;a.resolve=function(a){return s.resolve(a,e)},a.async=function(b,c){return s.use(b,c,e+"_async_"+d()),a};var f=c.factory,g=y(f)?f(a,c.exports={},c):f;return g===b&&(g=c.exports),delete c.factory,c.exports=g,c.status=$.EXECUTED,B("exec",c),g},s.resolve=function(a,b){var c={id:a,refUri:b};return B("resolve",c),c.uri||t.resolve(c.id,b)},s.define=function(a,c,d){var e=arguments.length;1===e?(d=a,a=b):2===e&&(d=c,x(a)?(c=a,a=b):c=b),!x(c)&&y(d)&&(c=r(""+d));var f={id:a,uri:s.resolve(a),deps:c,factory:d};if(!f.uri&&K.attachEvent){var g=q();g&&(f.uri=g.src)}B("define",f),f.uri?s.save(f.uri,f):W=f},s.save=function(a,b){var c=s.get(a);c.status<$.SAVED&&(c.id=b.id||a,c.dependencies=b.deps||[],c.factory=b.factory,c.status=$.SAVED,B("save",c))},s.get=function(a,b){return V[a]||(V[a]=new s(a,b))},s.use=function(b,c,d){var e=s.get(d,x(b)?b:[b]);e.callback=function(){for(var b=[],d=e.resolve(),f=0,g=d.length;g>f;f++)b[f]=V[d[f]].exec();c&&c.apply(a,b),delete e.callback},e.load()},t.use=function(a,b){return s.use(a,b,u.cwd+"_use_"+d()),t},s.define.cmd={},a.define=s.define,t.Module=s,u.fetchedList=Y,u.cid=d,t.require=function(a){var b=s.get(s.resolve(a));return b.status<$.EXECUTING&&(b.onload(),b.exec()),b.exports},u.base=O,u.dir=O,u.cwd=L,u.charset="utf-8",t.config=function(a){for(var b in a){var c=a[b],d=u[b];if(d&&v(d))for(var e in c)d[e]=c[e];else x(d)?c=d.concat(c):"base"===b&&("/"!==c.slice(-1)&&(c+="/"),c=l(c)),u[b]=c}return B("config",a),t}}}(this);
/* Seajs.style.js */
!function(){var a,b=/\W/g,c=document,d=document.getElementsByTagName("head")[0]||document.documentElement;seajs.importStyle=function(e,f){if(!f||(f=f.replace(b,"-"),!c.getElementById(f))){var g;if(!a||f?(g=c.createElement("style"),f&&(g.id=f),d.appendChild(g)):g=a,void 0!==g.styleSheet){if(c.getElementsByTagName("style").length>31)throw new Error("Exceed the maximal count of style tags in IE");g.styleSheet.cssText+=e}else g.appendChild(c.createTextNode(e));f||(a=g)}},define("seajs/seajs-style/1.0.2/seajs-style",[],{})}();
// 插件设置
seajs.set = {
util: {
timeout: 1.5e4
}
};
(function(seajs){
var mod = {
'audio/audio' : 'v1.0.1',
'copy/ZeroClipboard' : 'v0.0.1',
'flv/flv' : 'v0.0.2',
'jquery/1/jquery' : 'v1.11.3',
'jquery/2/jquery' : 'v2.1.4',
'jquery/3/jquery' : 'v3.1.1',
'raty/raty' : 'v0.1.0',
'upload/upload' : 'v1.1.1',
'upload/makethumb' : 'v0.0.1',
'upload/localResizeIMG' : 'v0.0.1',
'validform/validform' : 'v2.4.6',
'video/video' : 'v0.0.1',
'webuploader/webuploader' : 'v1.0.0',
'album' : 'v2.2.13',
'appcan' : 'v0.1.0',
'autocomplete' : 'v0.1.0',
'badge' : 'v0.0.1',
'base' : 'v3.3.3',
'bdshare' : 'v3.1.2',
'box' : 'v3.11.7',
'city-select' : 'v1.0.2',
'collapse' : 'v0.0.1',
'countdown' : 'v1.1.1',
'datepicker' : 'v2.0.2',
'drag' : 'v0.8.0',
'drag-panel' : 'v0.0.2',
'dropdown' : 'v0.2.3',
'easing' : 'v0.0.1',
'echarts' : 'v0.1.0',
'etpl' : 'v0.1.1',
'img-loaded' : 'v0.0.1',
'img-ready' : 'v1.0.0',
'input-number' : 'v0.1.3',
'input' : 'v0.1.1',
'instantclick' : 'v0.0.1',
'label' : 'v0.0.1',
'lazyload' : 'v2.1.0',
'marquee' : 'v0.10.1',
'masonry' : 'v0.0.1',
'menu' : 'v0.1.1',
'mousemenu' : 'v1.0.1',
'mousetrap' : 'v1.5.3',
'mousewheel' : 'v0.0.1',
'notice' : 'v0.0.3',
'offcanvas' : 'v2.0.4',
'on-scroll' : 'v2.1.3',
'page' : 'v1.0.3',
'paging-load' : 'v0.0.1',
'pjax' : 'v0.0.1',
'placeholder' : 'v0.0.1',
'progress' : 'v0.0.3',
'qr' : 'v0.1.0',
'responsive' : 'v0.0.1',
'scroll-bar' : 'v2.2.8',
'scroll-col' : 'v4.2.4',
'scroll-load' : 'v1.0.0',
'scroll-row' : 'v3.0.6',
'select' : 'v4.3.3',
'sendcode' : 'v0.2.0',
'slide' : 'v4.2.2',
'slider' : 'v0.0.2',
'spin' : 'v0.0.2',
'switch' : 'v0.3.0',
'tab' : 'v4.1.1',
'table' : 'v1.5.3',
'timepicker' : 'v0.1.1',
'tip' : 'v1.5.0',
'touch' : 'v0.1.1',
'zoom' : 'v2.0.4'
};
var manifest = {};
for(var key in mod){
manifest[seajs.data.base + key + '.js'] = mod[key];
}
if(seajs.data.localcache){
seajs.data.localcache.manifest = manifest;
}else{
seajs.data.localcache = {
timeout: 2e4,
manifest: manifest
};
}
})(seajs);
/**
* Localcache
* (c) 2012-2013 dollydeng@qzone
* Distributed under the MIT license.
*/
(function(seajs){
if(!window.window.JSON || !window.localStorage || seajs.data.debug) return
var module = seajs.Module,
data = seajs.data,
fetch = module.prototype.fetch,
defaultSyntax = ['??',',']
var remoteManifest = (data.localcache && data.localcache.manifest) || {}
var storage = {
_maxRetry: 1,
_retry: true,
get: function(key, parse){
var val
try{
val = localStorage.getItem(key)
}catch(e){
return undefined
}
if(val){
return parse? JSON.parse(val):val
}else{
return undefined
}
},
set: function(key, val, retry){
retry = ( typeof retry == 'undefined' ) ? this._retry : retry
try{
localStorage.setItem(key, val)
}catch(e){
if(retry) {
var max = this._maxRetry
while(max > 0) {
max --
this.removeAll()
this.set(key, val, false)
}
}
}
},
remove: function(url){
try{
localStorage.removeItem(url)
}catch(e){}
},
removeAll: function(){
/**
* Default localstorage clean
* delete localstorage items which are not in latest manifest
*/
var prefix = (data.localcache && data.localcache.prefix) || /^https?\:/
for(var i=localStorage.length-1; i>=0; i--) {
var key = localStorage.key(i)
if(!prefix.test(key)) continue //Notice: change the search pattern if not match with your manifest style
if(!remoteManifest[key]){
localStorage.removeItem(key)
}
}
}
}
var localManifest = storage.get('manifest',true) || {}
if(!remoteManifest){
//failed to fetch latest version and local version is broken.
return
}
/**
* Check whether the code is complete and clean
* @param url
* @param code
* @return {Boolean}
*/
var validate = (data.localcache && data.localcache.validate) || function(url, code){
if(!code || !url) return false
else return true
}
var fetchAjax = function(url, callback){
var xhr = new window.XMLHttpRequest()
var timer = setTimeout(function(){
xhr.abort()
callback(null)
}, (data.localcache && data.localcache.timeout) || 30000)
xhr.open('GET',url,true)
xhr.onreadystatechange = function(){
if(xhr.readyState === 4){
clearTimeout(timer)
if(xhr.status === 200){
callback(xhr.responseText)
}else{
callback(null)
}
}
}
xhr.send(null)
}
/**
* run code in window environment
* @param url
* @param code
*/
var use = function(url, code){
if(code && /\S/.test(code)){
if(/\.css(?:\?|$)/i.test(url)) {
var doc = document,
node = doc.createElement('style')
doc.getElementsByTagName("head")[0].appendChild(node)
if(node.styleSheet) {
node.styleSheet.cssText = code
} else {
node.appendChild(doc.createTextNode(code))
}
} else {
try{
code += '//# sourceURL='+ url //for chrome debug
;(window.execScript || function(data){ window['eval'].call(window,data)})(code)
}catch(e){
return false
}
}
}
return true
}
var isCombo = function(url){
var sign = (data.comboSyntax && data.comboSyntax[0]) || '??'
return url.indexOf(sign) >= 0
}
var splitComboUrl = function(url){
var syntax = data.comboSyntax || defaultSyntax
var arr = url.split(syntax[0])
if(arr.length != 2) return url
var host = arr[0]
var urls = arr[1].split(syntax[1])
var result = {}
result.host = host
result.files = []
for(var i= 0,len = urls.length;i=0;i--){
var file = splited.host + splited.files[i]
var cached = storage.get(file)
var cachedValidated = validate(file, cached)
if(remoteManifest[file]){
needFetchAjax = true
if(remoteManifest[file] == localManifest[file] && cachedValidated) {
use(file, cached)
splited.files.splice(i,1) //remove from combo
}
}
}
if(splited.files.length == 0){
onLoad(url) //all cached
return
}
// call fetch directly if all combo files are not under version control
if(!needFetchAjax) {
fallback(url)
return
}
var syntax = data.comboSyntax || defaultSyntax,
comboUrl = splited.host + syntax[0] + splited.files.join(syntax[1])
fetchAjax(comboUrl + '?v='+Math.random().toString(), function(resp){
if(!resp){
fallback(url)
return
}
var splitedCode = splitCombo(resp, comboUrl, splited.files)
if(splited.files.length == splitedCode.length){
//ensure they are matched with each other
for(var i= 0,len = splited.files.length;i -1
}
var View = {
name: 'router-view',
functional: true,
props: {
name: {
type: String,
default: 'default'
}
},
render: function render(_, ref) {
var props = ref.props;
var children = ref.children;
var parent = ref.parent;
var data = ref.data;
data.routerView = true;
// directly use parent context's createElement() function
// so that components rendered by router-view can resolve named slots
var h = parent.$createElement;
var name = props.name;
var route = parent.$route;
var cache = parent._routerViewCache || (parent._routerViewCache = {});
// determine current view depth, also check to see if the tree
// has been toggled inactive but kept-alive.
var depth = 0;
var inactive = false;
while (parent && parent._routerRoot !== parent) {
if (parent.$vnode && parent.$vnode.data.routerView) {
depth++;
}
if (parent._inactive) {
inactive = true;
}
parent = parent.$parent;
}
data.routerViewDepth = depth;
// render previous view if the tree is inactive and kept-alive
if (inactive) {
return h(cache[name], data, children)
}
var matched = route.matched[depth];
// render empty node if no matched route
if (!matched) {
cache[name] = null;
return h()
}
var component = cache[name] = matched.components[name];
// attach instance registration hook
// this will be called in the instance's injected lifecycle hooks
data.registerRouteInstance = function(vm, val) {
// val could be undefined for unregistration
var current = matched.instances[name];
if (
(val && current !== vm) ||
(!val && current === vm)
) {
matched.instances[name] = val;
}
}
// also register instance in prepatch hook
// in case the same component instance is reused across different routes
;
(data.hook || (data.hook = {})).prepatch = function(_, vnode) {
matched.instances[name] = vnode.componentInstance;
};
// resolve props
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
if (propsToPass) {
// clone to prevent mutation
propsToPass = data.props = extend({}, propsToPass);
// pass non-declared props as attrs
var attrs = data.attrs = data.attrs || {};
for (var key in propsToPass) {
if (!component.props || !(key in component.props)) {
attrs[key] = propsToPass[key];
delete propsToPass[key];
}
}
}
return h(component, data, children)
}
};
function resolveProps(route, config) {
switch (typeof config) {
case 'undefined':
return
case 'object':
return config
case 'function':
return config(route)
case 'boolean':
return config ? route.params : undefined
default:
{
warn(
false,
"props in \"" + (route.path) + "\" is a " + (typeof config) + ", " +
"expecting an object, function or boolean."
);
}
}
}
function extend(to, from) {
for (var key in from) {
to[key] = from[key];
}
return to
}
/* */
var encodeReserveRE = /[!'()*]/g;
var encodeReserveReplacer = function(c) {
return '%' + c.charCodeAt(0).toString(16);
};
var commaRE = /%2C/g;
// fixed encodeURIComponent which is more conformant to RFC3986:
// - escapes [!'()*]
// - preserve commas
var encode = function(str) {
return encodeURIComponent(str)
.replace(encodeReserveRE, encodeReserveReplacer)
.replace(commaRE, ',');
};
var decode = decodeURIComponent;
function resolveQuery(
query,
extraQuery,
_parseQuery
) {
if (extraQuery === void 0) extraQuery = {};
var parse = _parseQuery || parseQuery;
var parsedQuery;
try {
parsedQuery = parse(query || '');
} catch (e) {
"development" !== 'production' && warn(false, e.message);
parsedQuery = {};
}
for (var key in extraQuery) {
parsedQuery[key] = extraQuery[key];
}
return parsedQuery
}
function parseQuery(query) {
var res = {};
query = query.trim().replace(/^(\?|#|&)/, '');
if (!query) {
return res
}
query.split('&').forEach(function(param) {
var parts = param.replace(/\+/g, ' ').split('=');
var key = decode(parts.shift());
var val = parts.length > 0 ? decode(parts.join('=')) : null;
if (res[key] === undefined) {
res[key] = val;
} else if (Array.isArray(res[key])) {
res[key].push(val);
} else {
res[key] = [res[key], val];
}
});
return res
}
function stringifyQuery(obj) {
var res = obj ? Object.keys(obj).map(function(key) {
var val = obj[key];
if (val === undefined) {
return ''
}
if (val === null) {
return encode(key)
}
if (Array.isArray(val)) {
var result = [];
val.forEach(function(val2) {
if (val2 === undefined) {
return
}
if (val2 === null) {
result.push(encode(key));
} else {
result.push(encode(key) + '=' + encode(val2));
}
});
return result.join('&')
}
return encode(key) + '=' + encode(val)
}).filter(function(x) {
return x.length > 0;
}).join('&') : null;
return res ? ("?" + res) : ''
}
/* */
var trailingSlashRE = /\/?$/;
function createRoute(
record,
location,
redirectedFrom,
router
) {
var stringifyQuery$$1 = router && router.options.stringifyQuery;
var query = location.query || {};
try {
query = clone(query);
} catch (e) {}
var route = {
name: location.name || (record && record.name),
meta: (record && record.meta) || {},
path: location.path || '/',
hash: location.hash || '',
query: query,
params: location.params || {},
fullPath: getFullPath(location, stringifyQuery$$1),
matched: record ? formatMatch(record) : []
};
if (redirectedFrom) {
route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery$$1);
}
return Object.freeze(route)
}
function clone(value) {
if (Array.isArray(value)) {
return value.map(clone)
} else if (value && typeof value === 'object') {
var res = {};
for (var key in value) {
res[key] = clone(value[key]);
}
return res
} else {
return value
}
}
// the starting route that represents the initial state
var START = createRoute(null, {
path: '/'
});
function formatMatch(record) {
var res = [];
while (record) {
res.unshift(record);
record = record.parent;
}
return res
}
function getFullPath(
ref,
_stringifyQuery
) {
var path = ref.path;
var query = ref.query;
if (query === void 0) query = {};
var hash = ref.hash;
if (hash === void 0) hash = '';
var stringify = _stringifyQuery || stringifyQuery;
return (path || '/') + stringify(query) + hash
}
function isSameRoute(a, b) {
if (b === START) {
return a === b
} else if (!b) {
return false
} else if (a.path && b.path) {
return (
a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') &&
a.hash === b.hash &&
isObjectEqual(a.query, b.query)
)
} else if (a.name && b.name) {
return (
a.name === b.name &&
a.hash === b.hash &&
isObjectEqual(a.query, b.query) &&
isObjectEqual(a.params, b.params)
)
} else {
return false
}
}
function isObjectEqual(a, b) {
if (a === void 0) a = {};
if (b === void 0) b = {};
// handle null value #1566
if (!a || !b) {
return a === b
}
var aKeys = Object.keys(a);
var bKeys = Object.keys(b);
if (aKeys.length !== bKeys.length) {
return false
}
return aKeys.every(function(key) {
var aVal = a[key];
var bVal = b[key];
// check nested equality
if (typeof aVal === 'object' && typeof bVal === 'object') {
return isObjectEqual(aVal, bVal)
}
return String(aVal) === String(bVal)
})
}
function isIncludedRoute(current, target) {
return (
current.path.replace(trailingSlashRE, '/').indexOf(
target.path.replace(trailingSlashRE, '/')
) === 0 &&
(!target.hash || current.hash === target.hash) &&
queryIncludes(current.query, target.query)
)
}
function queryIncludes(current, target) {
for (var key in target) {
if (!(key in current)) {
return false
}
}
return true
}
/* */
// work around weird flow bug
var toTypes = [String, Object];
var eventTypes = [String, Array];
var Link = {
name: 'router-link',
props: {
to: {
type: toTypes,
required: true
},
tag: {
type: String,
default: 'a'
},
exact: Boolean,
append: Boolean,
replace: Boolean,
activeClass: String,
exactActiveClass: String,
event: {
type: eventTypes,
default: 'click'
}
},
render: function render(h) {
var this$1 = this;
var router = this.$router;
var current = this.$route;
var ref = router.resolve(this.to, current, this.append);
var location = ref.location;
var route = ref.route;
var href = ref.href;
var classes = {};
var globalActiveClass = router.options.linkActiveClass;
var globalExactActiveClass = router.options.linkExactActiveClass;
// Support global empty active class
var activeClassFallback = globalActiveClass == null ? 'router-link-active' : globalActiveClass;
var exactActiveClassFallback = globalExactActiveClass == null ? 'router-link-exact-active' : globalExactActiveClass;
var activeClass = this.activeClass == null ? activeClassFallback : this.activeClass;
var exactActiveClass = this.exactActiveClass == null ? exactActiveClassFallback : this.exactActiveClass;
var compareTarget = location.path ? createRoute(null, location, null, router) : route;
classes[exactActiveClass] = isSameRoute(current, compareTarget);
classes[activeClass] = this.exact ? classes[exactActiveClass] : isIncludedRoute(current, compareTarget);
var handler = function(e) {
if (guardEvent(e)) {
if (this$1.replace) {
router.replace(location);
} else {
router.push(location);
}
}
};
var on = {
click: guardEvent
};
if (Array.isArray(this.event)) {
this.event.forEach(function(e) {
on[e] = handler;
});
} else {
on[this.event] = handler;
}
var data = {
class: classes
};
if (this.tag === 'a') {
data.on = on;
data.attrs = {
href: href
};
} else {
// find the first child and apply listener and href
var a = findAnchor(this.$slots.default);
if (a) {
// in case the is a static node
a.isStatic = false;
var extend = _Vue.util.extend;
var aData = a.data = extend({}, a.data);
aData.on = on;
var aAttrs = a.data.attrs = extend({}, a.data.attrs);
aAttrs.href = href;
} else {
// doesn't have child, apply listener to self
data.on = on;
}
}
return h(this.tag, data, this.$slots.default)
}
};
function guardEvent(e) {
// don't redirect with control keys
if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) {
return
}
// don't redirect when preventDefault called
if (e.defaultPrevented) {
return
}
// don't redirect on right click
if (e.button !== undefined && e.button !== 0) {
return
}
// don't redirect if `target="_blank"`
if (e.currentTarget && e.currentTarget.getAttribute) {
var target = e.currentTarget.getAttribute('target');
if (/\b_blank\b/i.test(target)) {
return
}
}
// this may be a Weex event which doesn't have this method
if (e.preventDefault) {
e.preventDefault();
}
return true
}
function findAnchor(children) {
if (children) {
var child;
for (var i = 0; i < children.length; i++) {
child = children[i];
if (child.tag === 'a') {
return child
}
if (child.children && (child = findAnchor(child.children))) {
return child
}
}
}
}
var _Vue;
function install(Vue) {
if (install.installed && _Vue === Vue) {
return
}
install.installed = true;
_Vue = Vue;
var isDef = function(v) {
return v !== undefined;
};
var registerInstance = function(vm, callVal) {
var i = vm.$options._parentVnode;
if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
i(vm, callVal);
}
};
Vue.mixin({
beforeCreate: function beforeCreate() {
if (isDef(this.$options.router)) {
this._routerRoot = this;
this._router = this.$options.router;
this._router.init(this);
Vue.util.defineReactive(this, '_route', this._router.history.current);
} else {
this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
}
registerInstance(this, this);
},
destroyed: function destroyed() {
registerInstance(this);
}
});
Object.defineProperty(Vue.prototype, '$router', {
get: function get() {
return this._routerRoot._router
}
});
Object.defineProperty(Vue.prototype, '$route', {
get: function get() {
return this._routerRoot._route
}
});
Vue.component('router-view', View);
Vue.component('router-link', Link);
var strats = Vue.config.optionMergeStrategies;
// use the same hook merging strategy for route hooks
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
}
/* */
var inBrowser = typeof window !== 'undefined';
/* */
function resolvePath(
relative,
base,
append
) {
var firstChar = relative.charAt(0);
if (firstChar === '/') {
return relative
}
if (firstChar === '?' || firstChar === '#') {
return base + relative
}
var stack = base.split('/');
// remove trailing segment if:
// - not appending
// - appending to trailing slash (last segment is empty)
if (!append || !stack[stack.length - 1]) {
stack.pop();
}
// resolve relative path
var segments = relative.replace(/^\//, '').split('/');
for (var i = 0; i < segments.length; i++) {
var segment = segments[i];
if (segment === '..') {
stack.pop();
} else if (segment !== '.') {
stack.push(segment);
}
}
// ensure leading slash
if (stack[0] !== '') {
stack.unshift('');
}
return stack.join('/')
}
function parsePath(path) {
var hash = '';
var query = '';
var hashIndex = path.indexOf('#');
if (hashIndex >= 0) {
hash = path.slice(hashIndex);
path = path.slice(0, hashIndex);
}
var queryIndex = path.indexOf('?');
if (queryIndex >= 0) {
query = path.slice(queryIndex + 1);
path = path.slice(0, queryIndex);
}
return {
path: path,
query: query,
hash: hash
}
}
function cleanPath(path) {
return path.replace(/\/\//g, '/')
}
var isarray = Array.isArray || function(arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};
/**
* Expose `pathToRegexp`.
*/
var pathToRegexp_1 = pathToRegexp;
var parse_1 = parse;
var compile_1 = compile;
var tokensToFunction_1 = tokensToFunction;
var tokensToRegExp_1 = tokensToRegExp;
/**
* The main path matching regexp utility.
*
* @type {RegExp}
*/
var PATH_REGEXP = new RegExp([
// Match escaped characters that would otherwise appear in future matches.
// This allows the user to escape special characters that won't transform.
'(\\\\.)',
// Match Express-style parameters and un-named parameters with a prefix
// and optional suffixes. Matches appear as:
//
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
].join('|'), 'g');
/**
* Parse a string for the raw tokens.
*
* @param {string} str
* @param {Object=} options
* @return {!Array}
*/
function parse(str, options) {
var tokens = [];
var key = 0;
var index = 0;
var path = '';
var defaultDelimiter = options && options.delimiter || '/';
var res;
while ((res = PATH_REGEXP.exec(str)) != null) {
var m = res[0];
var escaped = res[1];
var offset = res.index;
path += str.slice(index, offset);
index = offset + m.length;
// Ignore already escaped sequences.
if (escaped) {
path += escaped[1];
continue
}
var next = str[index];
var prefix = res[2];
var name = res[3];
var capture = res[4];
var group = res[5];
var modifier = res[6];
var asterisk = res[7];
// Push the current path onto the tokens.
if (path) {
tokens.push(path);
path = '';
}
var partial = prefix != null && next != null && next !== prefix;
var repeat = modifier === '+' || modifier === '*';
var optional = modifier === '?' || modifier === '*';
var delimiter = res[2] || defaultDelimiter;
var pattern = capture || group;
tokens.push({
name: name || key++,
prefix: prefix || '',
delimiter: delimiter,
optional: optional,
repeat: repeat,
partial: partial,
asterisk: !!asterisk,
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
});
}
// Match any characters still remaining.
if (index < str.length) {
path += str.substr(index);
}
// If the path exists, push it onto the end.
if (path) {
tokens.push(path);
}
return tokens
}
/**
* Compile a string to a template function for the path.
*
* @param {string} str
* @param {Object=} options
* @return {!function(Object=, Object=)}
*/
function compile(str, options) {
return tokensToFunction(parse(str, options))
}
/**
* Prettier encoding of URI path segments.
*
* @param {string}
* @return {string}
*/
function encodeURIComponentPretty(str) {
return encodeURI(str).replace(/[\/?#]/g, function(c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
*
* @param {string}
* @return {string}
*/
function encodeAsterisk(str) {
return encodeURI(str).replace(/[?#]/g, function(c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Expose a method for transforming tokens into the path function.
*/
function tokensToFunction(tokens) {
// Compile all the tokens into regexps.
var matches = new Array(tokens.length);
// Compile all the patterns before compilation.
for (var i = 0; i < tokens.length; i++) {
if (typeof tokens[i] === 'object') {
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$');
}
}
return function(obj, opts) {
var path = '';
var data = obj || {};
var options = opts || {};
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
path += token;
continue
}
var value = data[token.name];
var segment;
if (value == null) {
if (token.optional) {
// Prepend partial segment prefixes.
if (token.partial) {
path += token.prefix;
}
continue
} else {
throw new TypeError('Expected "' + token.name + '" to be defined')
}
}
if (isarray(value)) {
if (!token.repeat) {
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
}
if (value.length === 0) {
if (token.optional) {
continue
} else {
throw new TypeError('Expected "' + token.name + '" to not be empty')
}
}
for (var j = 0; j < value.length; j++) {
segment = encode(value[j]);
if (!matches[i].test(segment)) {
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
}
path += (j === 0 ? token.prefix : token.delimiter) + segment;
}
continue
}
segment = token.asterisk ? encodeAsterisk(value) : encode(value);
if (!matches[i].test(segment)) {
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
}
path += token.prefix + segment;
}
return path
}
}
/**
* Escape a regular expression string.
*
* @param {string} str
* @return {string}
*/
function escapeString(str) {
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
}
/**
* Escape the capturing group by escaping special characters and meaning.
*
* @param {string} group
* @return {string}
*/
function escapeGroup(group) {
return group.replace(/([=!:$\/()])/g, '\\$1')
}
/**
* Attach the keys as a property of the regexp.
*
* @param {!RegExp} re
* @param {Array} keys
* @return {!RegExp}
*/
function attachKeys(re, keys) {
re.keys = keys;
return re
}
/**
* Get the flags for a regexp from the options.
*
* @param {Object} options
* @return {string}
*/
function flags(options) {
return options.sensitive ? '' : 'i'
}
/**
* Pull out keys from a regexp.
*
* @param {!RegExp} path
* @param {!Array} keys
* @return {!RegExp}
*/
function regexpToRegexp(path, keys) {
// Use a negative lookahead to match only capturing groups.
var groups = path.source.match(/\((?!\?)/g);
if (groups) {
for (var i = 0; i < groups.length; i++) {
keys.push({
name: i,
prefix: null,
delimiter: null,
optional: false,
repeat: false,
partial: false,
asterisk: false,
pattern: null
});
}
}
return attachKeys(path, keys)
}
/**
* Transform an array into a regexp.
*
* @param {!Array} path
* @param {Array} keys
* @param {!Object} options
* @return {!RegExp}
*/
function arrayToRegexp(path, keys, options) {
var parts = [];
for (var i = 0; i < path.length; i++) {
parts.push(pathToRegexp(path[i], keys, options).source);
}
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
return attachKeys(regexp, keys)
}
/**
* Create a path regexp from string input.
*
* @param {string} path
* @param {!Array} keys
* @param {!Object} options
* @return {!RegExp}
*/
function stringToRegexp(path, keys, options) {
return tokensToRegExp(parse(path, options), keys, options)
}
/**
* Expose a function for taking tokens and returning a RegExp.
*
* @param {!Array} tokens
* @param {(Array|Object)=} keys
* @param {Object=} options
* @return {!RegExp}
*/
function tokensToRegExp(tokens, keys, options) {
if (!isarray(keys)) {
options = /** @type {!Object} */ (keys || options);
keys = [];
}
options = options || {};
var strict = options.strict;
var end = options.end !== false;
var route = '';
// Iterate over the tokens and create our regexp string.
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
route += escapeString(token);
} else {
var prefix = escapeString(token.prefix);
var capture = '(?:' + token.pattern + ')';
keys.push(token);
if (token.repeat) {
capture += '(?:' + prefix + capture + ')*';
}
if (token.optional) {
if (!token.partial) {
capture = '(?:' + prefix + '(' + capture + '))?';
} else {
capture = prefix + '(' + capture + ')?';
}
} else {
capture = prefix + '(' + capture + ')';
}
route += capture;
}
}
var delimiter = escapeString(options.delimiter || '/');
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
// In non-strict mode we allow a slash at the end of match. If the path to
// match already ends with a slash, we remove it for consistency. The slash
// is valid at the end of a path match, not in the middle. This is important
// in non-ending mode, where "/test/" shouldn't match "/test//route".
if (!strict) {
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
}
if (end) {
route += '$';
} else {
// In non-ending mode, we need the capturing groups to match as much as
// possible by using a positive lookahead to the end or next path segment.
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
}
return attachKeys(new RegExp('^' + route, flags(options)), keys)
}
/**
* Normalize the given path string, returning a regular expression.
*
* An empty array can be passed in for the keys, which will hold the
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
*
* @param {(string|RegExp|Array)} path
* @param {(Array|Object)=} keys
* @param {Object=} options
* @return {!RegExp}
*/
function pathToRegexp(path, keys, options) {
if (!isarray(keys)) {
options = /** @type {!Object} */ (keys || options);
keys = [];
}
options = options || {};
if (path instanceof RegExp) {
return regexpToRegexp(path, /** @type {!Array} */ (keys))
}
if (isarray(path)) {
return arrayToRegexp( /** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
}
return stringToRegexp( /** @type {string} */ (path), /** @type {!Array} */ (keys), options)
}
pathToRegexp_1.parse = parse_1;
pathToRegexp_1.compile = compile_1;
pathToRegexp_1.tokensToFunction = tokensToFunction_1;
pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
/* */
// $flow-disable-line
var regexpCompileCache = Object.create(null);
function fillParams(
path,
params,
routeMsg
) {
try {
var filler =
regexpCompileCache[path] ||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
return filler(params || {}, {
pretty: true
})
} catch (e) {
{
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
}
return ''
}
}
/* */
function createRouteMap(
routes,
oldPathList,
oldPathMap,
oldNameMap
) {
// the path list is used to control path matching priority
var pathList = oldPathList || [];
// $flow-disable-line
var pathMap = oldPathMap || Object.create(null);
// $flow-disable-line
var nameMap = oldNameMap || Object.create(null);
routes.forEach(function(route) {
addRouteRecord(pathList, pathMap, nameMap, route);
});
// ensure wildcard routes are always at the end
for (var i = 0, l = pathList.length; i < l; i++) {
if (pathList[i] === '*') {
pathList.push(pathList.splice(i, 1)[0]);
l--;
i--;
}
}
return {
pathList: pathList,
pathMap: pathMap,
nameMap: nameMap
}
}
function addRouteRecord(
pathList,
pathMap,
nameMap,
route,
parent,
matchAs
) {
var path = route.path;
var name = route.name; {
assert(path != null, "\"path\" is required in a route configuration.");
assert(
typeof route.component !== 'string',
"route config \"component\" for path: " + (String(path || name)) + " cannot be a " +
"string id. Use an actual component instead."
);
}
var pathToRegexpOptions = route.pathToRegexpOptions || {};
var normalizedPath = normalizePath(
path,
parent,
pathToRegexpOptions.strict
);
if (typeof route.caseSensitive === 'boolean') {
pathToRegexpOptions.sensitive = route.caseSensitive;
}
var record = {
path: normalizedPath,
regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
components: route.components || {
default: route.component
},
instances: {},
name: name,
parent: parent,
matchAs: matchAs,
redirect: route.redirect,
beforeEnter: route.beforeEnter,
meta: route.meta || {},
props: route.props == null ? {} : route.components ? route.props : {
default: route.props
}
};
if (route.children) {
// Warn if route is named, does not redirect and has a default child route.
// If users navigate to this route by name, the default child will
// not be rendered (GH Issue #629)
{
if (route.name && !route.redirect && route.children.some(function(child) {
return /^\/?$/.test(child.path);
})) {
warn(
false,
"Named Route '" + (route.name) + "' has a default child route. " +
"When navigating to this named route (:to=\"{name: '" + (route.name) + "'\"), " +
"the default child route will not be rendered. Remove the name from " +
"this route and use the name of the default child route for named " +
"links instead."
);
}
}
route.children.forEach(function(child) {
var childMatchAs = matchAs ? cleanPath((matchAs + "/" + (child.path))) : undefined;
addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
});
}
if (route.alias !== undefined) {
var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
aliases.forEach(function(alias) {
var aliasRoute = {
path: alias,
children: route.children
};
addRouteRecord(
pathList,
pathMap,
nameMap,
aliasRoute,
parent,
record.path || '/' // matchAs
);
});
}
if (!pathMap[record.path]) {
pathList.push(record.path);
pathMap[record.path] = record;
}
if (name) {
if (!nameMap[name]) {
nameMap[name] = record;
} else if ("development" !== 'production' && !matchAs) {
warn(
false,
"Duplicate named routes definition: " +
"{ name: \"" + name + "\", path: \"" + (record.path) + "\" }"
);
}
}
}
function compileRouteRegex(path, pathToRegexpOptions) {
var regex = pathToRegexp_1(path, [], pathToRegexpOptions); {
var keys = Object.create(null);
regex.keys.forEach(function(key) {
warn(!keys[key.name], ("Duplicate param keys in route with path: \"" + path + "\""));
keys[key.name] = true;
});
}
return regex
}
function normalizePath(path, parent, strict) {
if (!strict) {
path = path.replace(/\/$/, '');
}
if (path[0] === '/') {
return path
}
if (parent == null) {
return path
}
return cleanPath(((parent.path) + "/" + path))
}
/* */
function normalizeLocation(
raw,
current,
append,
router
) {
var next = typeof raw === 'string' ? {
path: raw
} : raw;
// named target
if (next.name || next._normalized) {
return next
}
// relative params
if (!next.path && next.params && current) {
next = assign({}, next);
next._normalized = true;
var params = assign(assign({}, current.params), next.params);
if (current.name) {
next.name = current.name;
next.params = params;
} else if (current.matched.length) {
var rawPath = current.matched[current.matched.length - 1].path;
next.path = fillParams(rawPath, params, ("path " + (current.path)));
} else {
warn(false, "relative params navigation requires a current route.");
}
return next
}
var parsedPath = parsePath(next.path || '');
var basePath = (current && current.path) || '/';
var path = parsedPath.path ? resolvePath(parsedPath.path, basePath, append || next.append) : basePath;
var query = resolveQuery(
parsedPath.query,
next.query,
router && router.options.parseQuery
);
var hash = next.hash || parsedPath.hash;
if (hash && hash.charAt(0) !== '#') {
hash = "#" + hash;
}
return {
_normalized: true,
path: path,
query: query,
hash: hash
}
}
function assign(a, b) {
for (var key in b) {
a[key] = b[key];
}
return a
}
/* */
function createMatcher(
routes,
router
) {
var ref = createRouteMap(routes);
var pathList = ref.pathList;
var pathMap = ref.pathMap;
var nameMap = ref.nameMap;
function addRoutes(routes) {
createRouteMap(routes, pathList, pathMap, nameMap);
}
function match(
raw,
currentRoute,
redirectedFrom
) {
var location = normalizeLocation(raw, currentRoute, false, router);
var name = location.name;
if (name) {
var record = nameMap[name]; {
warn(record, ("Route with name '" + name + "' does not exist"));
}
if (!record) {
return _createRoute(null, location)
}
var paramNames = record.regex.keys
.filter(function(key) {
return !key.optional;
})
.map(function(key) {
return key.name;
});
if (typeof location.params !== 'object') {
location.params = {};
}
if (currentRoute && typeof currentRoute.params === 'object') {
for (var key in currentRoute.params) {
if (!(key in location.params) && paramNames.indexOf(key) > -1) {
location.params[key] = currentRoute.params[key];
}
}
}
if (record) {
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
return _createRoute(record, location, redirectedFrom)
}
} else if (location.path) {
location.params = {};
for (var i = 0; i < pathList.length; i++) {
var path = pathList[i];
var record$1 = pathMap[path];
if (matchRoute(record$1.regex, location.path, location.params)) {
return _createRoute(record$1, location, redirectedFrom)
}
}
}
// no match
return _createRoute(null, location)
}
function redirect(
record,
location
) {
var originalRedirect = record.redirect;
var redirect = typeof originalRedirect === 'function' ? originalRedirect(createRoute(record, location, null, router)) : originalRedirect;
if (typeof redirect === 'string') {
redirect = {
path: redirect
};
}
if (!redirect || typeof redirect !== 'object') {
{
warn(
false, ("invalid redirect option: " + (JSON.stringify(redirect)))
);
}
return _createRoute(null, location)
}
var re = redirect;
var name = re.name;
var path = re.path;
var query = location.query;
var hash = location.hash;
var params = location.params;
query = re.hasOwnProperty('query') ? re.query : query;
hash = re.hasOwnProperty('hash') ? re.hash : hash;
params = re.hasOwnProperty('params') ? re.params : params;
if (name) {
// resolved named direct
var targetRecord = nameMap[name]; {
assert(targetRecord, ("redirect failed: named route \"" + name + "\" not found."));
}
return match({
_normalized: true,
name: name,
query: query,
hash: hash,
params: params
}, undefined, location)
} else if (path) {
// 1. resolve relative redirect
var rawPath = resolveRecordPath(path, record);
// 2. resolve params
var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
// 3. rematch with existing query and hash
return match({
_normalized: true,
path: resolvedPath,
query: query,
hash: hash
}, undefined, location)
} else {
{
warn(false, ("invalid redirect option: " + (JSON.stringify(redirect))));
}
return _createRoute(null, location)
}
}
function alias(
record,
location,
matchAs
) {
var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
var aliasedMatch = match({
_normalized: true,
path: aliasedPath
});
if (aliasedMatch) {
var matched = aliasedMatch.matched;
var aliasedRecord = matched[matched.length - 1];
location.params = aliasedMatch.params;
return _createRoute(aliasedRecord, location)
}
return _createRoute(null, location)
}
function _createRoute(
record,
location,
redirectedFrom
) {
if (record && record.redirect) {
return redirect(record, redirectedFrom || location)
}
if (record && record.matchAs) {
return alias(record, location, record.matchAs)
}
return createRoute(record, location, redirectedFrom, router)
}
return {
match: match,
addRoutes: addRoutes
}
}
function matchRoute(
regex,
path,
params
) {
var m = path.match(regex);
if (!m) {
return false
} else if (!params) {
return true
}
for (var i = 1, len = m.length; i < len; ++i) {
var key = regex.keys[i - 1];
var val = typeof m[i] === 'string' ? decodeURIComponent(m[i]) : m[i];
if (key) {
params[key.name] = val;
}
}
return true
}
function resolveRecordPath(path, record) {
return resolvePath(path, record.parent ? record.parent.path : '/', true)
}
/* */
var positionStore = Object.create(null);
function setupScroll() {
// Fix for #1585 for Firefox
window.history.replaceState({
key: getStateKey()
}, '');
window.addEventListener('popstate', function(e) {
saveScrollPosition();
if (e.state && e.state.key) {
setStateKey(e.state.key);
}
});
}
function handleScroll(
router,
to,
from,
isPop
) {
if (!router.app) {
return
}
var behavior = router.options.scrollBehavior;
if (!behavior) {
return
}
{
assert(typeof behavior === 'function', "scrollBehavior must be a function");
}
// wait until re-render finishes before scrolling
router.app.$nextTick(function() {
var position = getScrollPosition();
var shouldScroll = behavior(to, from, isPop ? position : null);
if (!shouldScroll) {
return
}
if (typeof shouldScroll.then === 'function') {
shouldScroll.then(function(shouldScroll) {
scrollToPosition((shouldScroll), position);
}).catch(function(err) {
{
assert(false, err.toString());
}
});
} else {
scrollToPosition(shouldScroll, position);
}
});
}
function saveScrollPosition() {
var key = getStateKey();
if (key) {
positionStore[key] = {
x: window.pageXOffset,
y: window.pageYOffset
};
}
}
function getScrollPosition() {
var key = getStateKey();
if (key) {
return positionStore[key]
}
}
function getElementPosition(el, offset) {
var docEl = document.documentElement;
var docRect = docEl.getBoundingClientRect();
var elRect = el.getBoundingClientRect();
return {
x: elRect.left - docRect.left - offset.x,
y: elRect.top - docRect.top - offset.y
}
}
function isValidPosition(obj) {
return isNumber(obj.x) || isNumber(obj.y)
}
function normalizePosition(obj) {
return {
x: isNumber(obj.x) ? obj.x : window.pageXOffset,
y: isNumber(obj.y) ? obj.y : window.pageYOffset
}
}
function normalizeOffset(obj) {
return {
x: isNumber(obj.x) ? obj.x : 0,
y: isNumber(obj.y) ? obj.y : 0
}
}
function isNumber(v) {
return typeof v === 'number'
}
function scrollToPosition(shouldScroll, position) {
var isObject = typeof shouldScroll === 'object';
if (isObject && typeof shouldScroll.selector === 'string') {
var el = document.querySelector(shouldScroll.selector);
if (el) {
var offset = shouldScroll.offset && typeof shouldScroll.offset === 'object' ? shouldScroll.offset : {};
offset = normalizeOffset(offset);
position = getElementPosition(el, offset);
} else if (isValidPosition(shouldScroll)) {
position = normalizePosition(shouldScroll);
}
} else if (isObject && isValidPosition(shouldScroll)) {
position = normalizePosition(shouldScroll);
}
if (position) {
window.scrollTo(position.x, position.y);
}
}
/* */
var supportsPushState = inBrowser && (function() {
var ua = window.navigator.userAgent;
if (
(ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
ua.indexOf('Mobile Safari') !== -1 &&
ua.indexOf('Chrome') === -1 &&
ua.indexOf('Windows Phone') === -1
) {
return false
}
return window.history && 'pushState' in window.history
})();
// use User Timing api (if present) for more accurate key precision
var Time = inBrowser && window.performance && window.performance.now ? window.performance : Date;
var _key = genKey();
function genKey() {
return Time.now().toFixed(3)
}
function getStateKey() {
return _key
}
function setStateKey(key) {
_key = key;
}
function pushState(url, replace) {
saveScrollPosition();
// try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls
var history = window.history;
try {
if (replace) {
history.replaceState({
key: _key
}, '', url);
} else {
_key = genKey();
history.pushState({
key: _key
}, '', url);
}
} catch (e) {
window.location[replace ? 'replace' : 'assign'](url);
}
}
function replaceState(url) {
pushState(url, true);
}
/* */
function runQueue(queue, fn, cb) {
var step = function(index) {
if (index >= queue.length) {
cb();
} else {
if (queue[index]) {
fn(queue[index], function() {
step(index + 1);
});
} else {
step(index + 1);
}
}
};
step(0);
}
/* */
function resolveAsyncComponents(matched) {
return function(to, from, next) {
var hasAsync = false;
var pending = 0;
var error = null;
flatMapComponents(matched, function(def, _, match, key) {
// if it's a function and doesn't have cid attached,
// assume it's an async component resolve function.
// we are not using Vue's default async resolving mechanism because
// we want to halt the navigation until the incoming component has been
// resolved.
if (typeof def === 'function' && def.cid === undefined) {
hasAsync = true;
pending++;
var resolve = once(function(resolvedDef) {
if (isESModule(resolvedDef)) {
resolvedDef = resolvedDef.default;
}
// save resolved on async factory in case it's used elsewhere
def.resolved = typeof resolvedDef === 'function' ? resolvedDef : _Vue.extend(resolvedDef);
match.components[key] = resolvedDef;
pending--;
if (pending <= 0) {
next();
}
});
var reject = once(function(reason) {
var msg = "Failed to resolve async component " + key + ": " + reason;
"development" !== 'production' && warn(false, msg);
if (!error) {
error = isError(reason) ? reason : new Error(msg);
next(error);
}
});
var res;
try {
res = def(resolve, reject);
} catch (e) {
reject(e);
}
if (res) {
if (typeof res.then === 'function') {
res.then(resolve, reject);
} else {
// new syntax in Vue 2.3
var comp = res.component;
if (comp && typeof comp.then === 'function') {
comp.then(resolve, reject);
}
}
}
}
});
if (!hasAsync) {
next();
}
}
}
function flatMapComponents(
matched,
fn
) {
return flatten(matched.map(function(m) {
return Object.keys(m.components).map(function(key) {
return fn(
m.components[key],
m.instances[key],
m, key
);
})
}))
}
function flatten(arr) {
return Array.prototype.concat.apply([], arr)
}
var hasSymbol =
typeof Symbol === 'function' &&
typeof Symbol.toStringTag === 'symbol';
function isESModule(obj) {
return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')
}
// in Webpack 2, require.ensure now also returns a Promise
// so the resolve/reject functions may get called an extra time
// if the user uses an arrow function shorthand that happens to
// return that Promise.
function once(fn) {
var called = false;
return function() {
var args = [],
len = arguments.length;
while (len--) args[len] = arguments[len];
if (called) {
return
}
called = true;
return fn.apply(this, args)
}
}
/* */
var History = function History(router, base) {
this.router = router;
this.base = normalizeBase(base);
// start with a route object that stands for "nowhere"
this.current = START;
this.pending = null;
this.ready = false;
this.readyCbs = [];
this.readyErrorCbs = [];
this.errorCbs = [];
};
History.prototype.listen = function listen(cb) {
this.cb = cb;
};
History.prototype.onReady = function onReady(cb, errorCb) {
if (this.ready) {
cb();
} else {
this.readyCbs.push(cb);
if (errorCb) {
this.readyErrorCbs.push(errorCb);
}
}
};
History.prototype.onError = function onError(errorCb) {
this.errorCbs.push(errorCb);
};
History.prototype.transitionTo = function transitionTo(location, onComplete, onAbort) {
var this$1 = this;
var route = this.router.match(location, this.current);
this.confirmTransition(route, function() {
this$1.updateRoute(route);
onComplete && onComplete(route);
this$1.ensureURL();
// fire ready cbs once
if (!this$1.ready) {
this$1.ready = true;
this$1.readyCbs.forEach(function(cb) {
cb(route);
});
}
}, function(err) {
if (onAbort) {
onAbort(err);
}
if (err && !this$1.ready) {
this$1.ready = true;
this$1.readyErrorCbs.forEach(function(cb) {
cb(err);
});
}
});
};
History.prototype.confirmTransition = function confirmTransition(route, onComplete, onAbort) {
var this$1 = this;
var current = this.current;
var abort = function(err) {
if (isError(err)) {
if (this$1.errorCbs.length) {
this$1.errorCbs.forEach(function(cb) {
cb(err);
});
} else {
warn(false, 'uncaught error during route navigation:');
console.error(err);
}
}
onAbort && onAbort(err);
};
if (
isSameRoute(route, current) &&
// in the case the route map has been dynamically appended to
route.matched.length === current.matched.length
) {
this.ensureURL();
return abort()
}
var ref = resolveQueue(this.current.matched, route.matched);
var updated = ref.updated;
var deactivated = ref.deactivated;
var activated = ref.activated;
var queue = [].concat(
// in-component leave guards
extractLeaveGuards(deactivated),
// global before hooks
this.router.beforeHooks,
// in-component update hooks
extractUpdateHooks(updated),
// in-config enter guards
activated.map(function(m) {
return m.beforeEnter;
}),
// async components
resolveAsyncComponents(activated)
);
this.pending = route;
var iterator = function(hook, next) {
if (this$1.pending !== route) {
return abort()
}
try {
hook(route, current, function(to) {
if (to === false || isError(to)) {
// next(false) -> abort navigation, ensure current URL
this$1.ensureURL(true);
abort(to);
} else if (
typeof to === 'string' ||
(typeof to === 'object' && (
typeof to.path === 'string' ||
typeof to.name === 'string'
))
) {
// next('/') or next({ path: '/' }) -> redirect
abort();
if (typeof to === 'object' && to.replace) {
this$1.replace(to);
} else {
this$1.push(to);
}
} else {
// confirm transition and pass on the value
next(to);
}
});
} catch (e) {
abort(e);
}
};
runQueue(queue, iterator, function() {
var postEnterCbs = [];
var isValid = function() {
return this$1.current === route;
};
// wait until async components are resolved before
// extracting in-component enter guards
var enterGuards = extractEnterGuards(activated, postEnterCbs, isValid);
var queue = enterGuards.concat(this$1.router.resolveHooks);
runQueue(queue, iterator, function() {
if (this$1.pending !== route) {
return abort()
}
this$1.pending = null;
onComplete(route);
if (this$1.router.app) {
this$1.router.app.$nextTick(function() {
postEnterCbs.forEach(function(cb) {
cb();
});
});
}
});
});
};
History.prototype.updateRoute = function updateRoute(route) {
var prev = this.current;
this.current = route;
this.cb && this.cb(route);
this.router.afterHooks.forEach(function(hook) {
hook && hook(route, prev);
});
};
function normalizeBase(base) {
if (!base) {
if (inBrowser) {
// respect tag
var baseEl = document.querySelector('base');
base = (baseEl && baseEl.getAttribute('href')) || '/';
// strip full URL origin
base = base.replace(/^https?:\/\/[^\/]+/, '');
} else {
base = '/';
}
}
// make sure there's the starting slash
if (base.charAt(0) !== '/') {
base = '/' + base;
}
// remove trailing slash
return base.replace(/\/$/, '')
}
function resolveQueue(
current,
next
) {
var i;
var max = Math.max(current.length, next.length);
for (i = 0; i < max; i++) {
if (current[i] !== next[i]) {
break
}
}
return {
updated: next.slice(0, i),
activated: next.slice(i),
deactivated: current.slice(i)
}
}
function extractGuards(
records,
name,
bind,
reverse
) {
var guards = flatMapComponents(records, function(def, instance, match, key) {
var guard = extractGuard(def, name);
if (guard) {
return Array.isArray(guard) ? guard.map(function(guard) {
return bind(guard, instance, match, key);
}) : bind(guard, instance, match, key)
}
});
return flatten(reverse ? guards.reverse() : guards)
}
function extractGuard(
def,
key
) {
if (typeof def !== 'function') {
// extend now so that global mixins are applied.
def = _Vue.extend(def);
}
return def.options[key]
}
function extractLeaveGuards(deactivated) {
return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
}
function extractUpdateHooks(updated) {
return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
}
function bindGuard(guard, instance) {
if (instance) {
return function boundRouteGuard() {
return guard.apply(instance, arguments)
}
}
}
function extractEnterGuards(
activated,
cbs,
isValid
) {
return extractGuards(activated, 'beforeRouteEnter', function(guard, _, match, key) {
return bindEnterGuard(guard, match, key, cbs, isValid)
})
}
function bindEnterGuard(
guard,
match,
key,
cbs,
isValid
) {
return function routeEnterGuard(to, from, next) {
return guard(to, from, function(cb) {
next(cb);
if (typeof cb === 'function') {
cbs.push(function() {
// #750
// if a router-view is wrapped with an out-in transition,
// the instance may not have been registered at this time.
// we will need to poll for registration until current route
// is no longer valid.
poll(cb, match.instances, key, isValid);
});
}
})
}
}
function poll(
cb, // somehow flow cannot infer this is a function
instances,
key,
isValid
) {
if (instances[key]) {
cb(instances[key]);
} else if (isValid()) {
setTimeout(function() {
poll(cb, instances, key, isValid);
}, 16);
}
}
/* */
var HTML5History = (function(History$$1) {
function HTML5History(router, base) {
var this$1 = this;
History$$1.call(this, router, base);
var expectScroll = router.options.scrollBehavior;
if (expectScroll) {
setupScroll();
}
var initLocation = getLocation(this.base);
window.addEventListener('popstate', function(e) {
var current = this$1.current;
// Avoiding first `popstate` event dispatched in some browsers but first
// history route not updated since async guard at the same time.
var location = getLocation(this$1.base);
if (this$1.current === START && location === initLocation) {
return
}
this$1.transitionTo(location, function(route) {
if (expectScroll) {
handleScroll(router, route, current, true);
}
});
});
}
if (History$$1) HTML5History.__proto__ = History$$1;
HTML5History.prototype = Object.create(History$$1 && History$$1.prototype);
HTML5History.prototype.constructor = HTML5History;
HTML5History.prototype.go = function go(n) {
window.history.go(n);
};
HTML5History.prototype.push = function push(location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function(route) {
pushState(cleanPath(this$1.base + route.fullPath));
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HTML5History.prototype.replace = function replace(location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function(route) {
replaceState(cleanPath(this$1.base + route.fullPath));
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HTML5History.prototype.ensureURL = function ensureURL(push) {
if (getLocation(this.base) !== this.current.fullPath) {
var current = cleanPath(this.base + this.current.fullPath);
push ? pushState(current) : replaceState(current);
}
};
HTML5History.prototype.getCurrentLocation = function getCurrentLocation() {
return getLocation(this.base)
};
return HTML5History;
}(History));
function getLocation(base) {
var path = window.location.pathname;
if (base && path.indexOf(base) === 0) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
}
/* */
var HashHistory = (function(History$$1) {
function HashHistory(router, base, fallback) {
History$$1.call(this, router, base);
// check history fallback deeplinking
if (fallback && checkFallback(this.base)) {
return
}
ensureSlash();
}
if (History$$1) HashHistory.__proto__ = History$$1;
HashHistory.prototype = Object.create(History$$1 && History$$1.prototype);
HashHistory.prototype.constructor = HashHistory;
// this is delayed until the app mounts
// to avoid the hashchange listener being fired too early
HashHistory.prototype.setupListeners = function setupListeners() {
var this$1 = this;
var router = this.router;
var expectScroll = router.options.scrollBehavior;
var supportsScroll = supportsPushState && expectScroll;
if (supportsScroll) {
setupScroll();
}
window.addEventListener(supportsPushState ? 'popstate' : 'hashchange', function() {
var current = this$1.current;
if (!ensureSlash()) {
return
}
this$1.transitionTo(getHash(), function(route) {
if (supportsScroll) {
handleScroll(this$1.router, route, current, true);
}
if (!supportsPushState) {
replaceHash(route.fullPath);
}
});
});
};
HashHistory.prototype.push = function push(location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function(route) {
pushHash(route.fullPath);
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HashHistory.prototype.replace = function replace(location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function(route) {
replaceHash(route.fullPath);
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HashHistory.prototype.go = function go(n) {
window.history.go(n);
};
HashHistory.prototype.ensureURL = function ensureURL(push) {
var current = this.current.fullPath;
if (getHash() !== current) {
push ? pushHash(current) : replaceHash(current);
}
};
HashHistory.prototype.getCurrentLocation = function getCurrentLocation() {
return getHash()
};
return HashHistory;
}(History));
function checkFallback(base) {
var location = getLocation(base);
if (!/^\/#/.test(location)) {
window.location.replace(
cleanPath(base + '/#' + location)
);
return true
}
}
function ensureSlash() {
var path = getHash();
if (path.charAt(0) === '/') {
return true
}
replaceHash('/' + path);
return false
}
function getHash() {
// We can't use window.location.hash here because it's not
// consistent across browsers - Firefox will pre-decode it!
var href = window.location.href;
var index = href.indexOf('#');
return index === -1 ? '' : href.slice(index + 1)
}
function getUrl(path) {
var href = window.location.href;
var i = href.indexOf('#');
var base = i >= 0 ? href.slice(0, i) : href;
return (base + "#" + path)
}
function pushHash(path) {
if (supportsPushState) {
pushState(getUrl(path));
} else {
window.location.hash = path;
}
}
function replaceHash(path) {
if (supportsPushState) {
replaceState(getUrl(path));
} else {
window.location.replace(getUrl(path));
}
}
/* */
var AbstractHistory = (function(History$$1) {
function AbstractHistory(router, base) {
History$$1.call(this, router, base);
this.stack = [];
this.index = -1;
}
if (History$$1) AbstractHistory.__proto__ = History$$1;
AbstractHistory.prototype = Object.create(History$$1 && History$$1.prototype);
AbstractHistory.prototype.constructor = AbstractHistory;
AbstractHistory.prototype.push = function push(location, onComplete, onAbort) {
var this$1 = this;
this.transitionTo(location, function(route) {
this$1.stack = this$1.stack.slice(0, this$1.index + 1).concat(route);
this$1.index++;
onComplete && onComplete(route);
}, onAbort);
};
AbstractHistory.prototype.replace = function replace(location, onComplete, onAbort) {
var this$1 = this;
this.transitionTo(location, function(route) {
this$1.stack = this$1.stack.slice(0, this$1.index).concat(route);
onComplete && onComplete(route);
}, onAbort);
};
AbstractHistory.prototype.go = function go(n) {
var this$1 = this;
var targetIndex = this.index + n;
if (targetIndex < 0 || targetIndex >= this.stack.length) {
return
}
var route = this.stack[targetIndex];
this.confirmTransition(route, function() {
this$1.index = targetIndex;
this$1.updateRoute(route);
});
};
AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation() {
var current = this.stack[this.stack.length - 1];
return current ? current.fullPath : '/'
};
AbstractHistory.prototype.ensureURL = function ensureURL() {
// noop
};
return AbstractHistory;
}(History));
/* */
var VueRouter = function VueRouter(options) {
if (options === void 0) options = {};
this.app = null;
this.apps = [];
this.options = options;
this.beforeHooks = [];
this.resolveHooks = [];
this.afterHooks = [];
this.matcher = createMatcher(options.routes || [], this);
var mode = options.mode || 'hash';
this.fallback = mode === 'history' && !supportsPushState && options.fallback !== false;
if (this.fallback) {
mode = 'hash';
}
if (!inBrowser) {
mode = 'abstract';
}
this.mode = mode;
switch (mode) {
case 'history':
this.history = new HTML5History(this, options.base);
break
case 'hash':
this.history = new HashHistory(this, options.base, this.fallback);
break
case 'abstract':
this.history = new AbstractHistory(this, options.base);
break
default:
{
assert(false, ("invalid mode: " + mode));
}
}
};
var prototypeAccessors = {
currentRoute: {
configurable: true
}
};
VueRouter.prototype.match = function match(
raw,
current,
redirectedFrom
) {
return this.matcher.match(raw, current, redirectedFrom)
};
prototypeAccessors.currentRoute.get = function() {
return this.history && this.history.current
};
VueRouter.prototype.init = function init(app /* Vue component instance */ ) {
var this$1 = this;
"development" !== 'production' && assert(
install.installed,
"not installed. Make sure to call `Vue.use(VueRouter)` " +
"before creating root instance."
);
this.apps.push(app);
// main app already initialized.
if (this.app) {
return
}
this.app = app;
var history = this.history;
if (history instanceof HTML5History) {
history.transitionTo(history.getCurrentLocation());
} else if (history instanceof HashHistory) {
var setupHashListener = function() {
history.setupListeners();
};
history.transitionTo(
history.getCurrentLocation(),
setupHashListener,
setupHashListener
);
}
history.listen(function(route) {
this$1.apps.forEach(function(app) {
app._route = route;
});
});
};
VueRouter.prototype.beforeEach = function beforeEach(fn) {
return registerHook(this.beforeHooks, fn)
};
VueRouter.prototype.beforeResolve = function beforeResolve(fn) {
return registerHook(this.resolveHooks, fn)
};
VueRouter.prototype.afterEach = function afterEach(fn) {
return registerHook(this.afterHooks, fn)
};
VueRouter.prototype.onReady = function onReady(cb, errorCb) {
this.history.onReady(cb, errorCb);
};
VueRouter.prototype.onError = function onError(errorCb) {
this.history.onError(errorCb);
};
VueRouter.prototype.push = function push(location, onComplete, onAbort) {
this.history.push(location, onComplete, onAbort);
};
VueRouter.prototype.replace = function replace(location, onComplete, onAbort) {
this.history.replace(location, onComplete, onAbort);
};
VueRouter.prototype.go = function go(n) {
this.history.go(n);
};
VueRouter.prototype.back = function back() {
this.go(-1);
};
VueRouter.prototype.forward = function forward() {
this.go(1);
};
VueRouter.prototype.getMatchedComponents = function getMatchedComponents(to) {
var route = to ? to.matched ? to : this.resolve(to).route : this.currentRoute;
if (!route) {
return []
}
return [].concat.apply([], route.matched.map(function(m) {
return Object.keys(m.components).map(function(key) {
return m.components[key]
})
}))
};
VueRouter.prototype.resolve = function resolve(
to,
current,
append
) {
var location = normalizeLocation(
to,
current || this.history.current,
append,
this
);
var route = this.match(location, current);
var fullPath = route.redirectedFrom || route.fullPath;
var base = this.history.base;
var href = createHref(base, fullPath, this.mode);
return {
location: location,
route: route,
href: href,
// for backwards compat
normalizedTo: location,
resolved: route
}
};
VueRouter.prototype.addRoutes = function addRoutes(routes) {
this.matcher.addRoutes(routes);
if (this.history.current !== START) {
this.history.transitionTo(this.history.getCurrentLocation());
}
};
Object.defineProperties(VueRouter.prototype, prototypeAccessors);
function registerHook(list, fn) {
list.push(fn);
return function() {
var i = list.indexOf(fn);
if (i > -1) {
list.splice(i, 1);
}
}
}
function createHref(base, fullPath, mode) {
var path = mode === 'hash' ? '#' + fullPath : fullPath;
return base ? cleanPath(base + '/' + path) : path
}
VueRouter.install = install;
VueRouter.version = '3.0.1';
if (inBrowser && window.Vue) {
window.Vue.use(VueRouter);
}
return VueRouter;
})));
================================================
FILE: static/lib/vue.js
================================================
/*!
* Vue.js v2.5.2
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
! function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.Vue = t()
}(this, function() {
"use strict";
function e(e) {
return void 0 === e || null === e
}
function t(e) {
return void 0 !== e && null !== e
}
function n(e) {
return !0 === e
}
function r(e) {
return !1 === e
}
function i(e) {
return "string" == typeof e || "number" == typeof e || "boolean" == typeof e
}
function o(e) {
return null !== e && "object" == typeof e
}
function a(e) {
return "[object Object]" === Ai.call(e)
}
function s(e) {
return "[object RegExp]" === Ai.call(e)
}
function c(e) {
var t = parseFloat(String(e));
return t >= 0 && Math.floor(t) === t && isFinite(e)
}
function u(e) {
return null == e ? "" : "object" == typeof e ? JSON.stringify(e, null, 2) : String(e)
}
function l(e) {
var t = parseFloat(e);
return isNaN(t) ? e : t
}
function f(e, t) {
for (var n = Object.create(null), r = e.split(","), i = 0; i < r.length; i++) n[r[i]] = !0;
return t ? function(e) {
return n[e.toLowerCase()]
} : function(e) {
return n[e]
}
}
function d(e, t) {
if (e.length) {
var n = e.indexOf(t);
if (n > -1) return e.splice(n, 1)
}
}
function p(e, t) {
return Ti.call(e, t)
}
function v(e) {
var t = Object.create(null);
return function(n) {
return t[n] || (t[n] = e(n))
}
}
function h(e, t) {
function n(n) {
var r = arguments.length;
return r ? r > 1 ? e.apply(t, arguments) : e.call(t, n) : e.call(t)
}
return n._length = e.length, n
}
function m(e, t) {
t = t || 0;
for (var n = e.length - t, r = new Array(n); n--;) r[n] = e[n + t];
return r
}
function y(e, t) {
for (var n in t) e[n] = t[n];
return e
}
function g(e) {
for (var t = {}, n = 0; n < e.length; n++) e[n] && y(t, e[n]);
return t
}
function _(e, t, n) {}
function b(e, t) {
if (e === t) return !0;
var n = o(e),
r = o(t);
if (!n || !r) return !n && !r && String(e) === String(t);
try {
var i = Array.isArray(e),
a = Array.isArray(t);
if (i && a) return e.length === t.length && e.every(function(e, n) {
return b(e, t[n])
});
if (i || a) return !1;
var s = Object.keys(e),
c = Object.keys(t);
return s.length === c.length && s.every(function(n) {
return b(e[n], t[n])
})
} catch (e) {
return !1
}
}
function $(e, t) {
for (var n = 0; n < e.length; n++)
if (b(e[n], t)) return n;
return -1
}
function C(e) {
var t = !1;
return function() {
t || (t = !0, e.apply(this, arguments))
}
}
function w(e) {
var t = (e + "").charCodeAt(0);
return 36 === t || 95 === t
}
function x(e, t, n, r) {
Object.defineProperty(e, t, {
value: n,
enumerable: !!r,
writable: !0,
configurable: !0
})
}
function k(e) {
if (!Ui.test(e)) {
var t = e.split(".");
return function(e) {
for (var n = 0; n < t.length; n++) {
if (!e) return;
e = e[t[n]]
}
return e
}
}
}
function A(e) {
return "function" == typeof e && /native code/.test(e.toString())
}
function O(e) {
so.target && co.push(so.target), so.target = e
}
function S() {
so.target = co.pop()
}
function T(e) {
return new uo(void 0, void 0, void 0, String(e))
}
function E(e, t) {
var n = new uo(e.tag, e.data, e.children, e.text, e.elm, e.context, e.componentOptions, e.asyncFactory);
return n.ns = e.ns, n.isStatic = e.isStatic, n.key = e.key, n.isComment = e.isComment, n.isCloned = !0, t && e.children && (n.children = j(e.children)), n
}
function j(e, t) {
for (var n = e.length, r = new Array(n), i = 0; i < n; i++) r[i] = E(e[i], t);
return r
}
function L(e, t, n) {
e.__proto__ = t
}
function N(e, t, n) {
for (var r = 0, i = n.length; r < i; r++) {
var o = n[r];
x(e, o, t[o])
}
}
function I(e, t) {
if (o(e) && !(e instanceof uo)) {
var n;
return p(e, "__ob__") && e.__ob__ instanceof yo ? n = e.__ob__ : mo.shouldConvert && !no() && (Array.isArray(e) || a(e)) && Object.isExtensible(e) && !e._isVue && (n = new yo(e)), t && n && n.vmCount++, n
}
}
function M(e, t, n, r, i) {
var o = new so,
a = Object.getOwnPropertyDescriptor(e, t);
if (!a || !1 !== a.configurable) {
var s = a && a.get,
c = a && a.set,
u = !i && I(n);
Object.defineProperty(e, t, {
enumerable: !0,
configurable: !0,
get: function() {
var t = s ? s.call(e) : n;
return so.target && (o.depend(), u && (u.dep.depend(), Array.isArray(t) && R(t))), t
},
set: function(t) {
var r = s ? s.call(e) : n;
t === r || t !== t && r !== r || (c ? c.call(e, t) : n = t, u = !i && I(t), o.notify())
}
})
}
}
function P(e, t, n) {
if (Array.isArray(e) && c(t)) return e.length = Math.max(e.length, t), e.splice(t, 1, n), n;
if (p(e, t)) return e[t] = n, n;
var r = e.__ob__;
return e._isVue || r && r.vmCount ? n : r ? (M(r.value, t, n), r.dep.notify(), n) : (e[t] = n, n)
}
function D(e, t) {
if (Array.isArray(e) && c(t)) e.splice(t, 1);
else {
var n = e.__ob__;
e._isVue || n && n.vmCount || p(e, t) && (delete e[t], n && n.dep.notify())
}
}
function R(e) {
for (var t = void 0, n = 0, r = e.length; n < r; n++)(t = e[n]) && t.__ob__ && t.__ob__.dep.depend(), Array.isArray(t) && R(t)
}
function F(e, t) {
if (!t) return e;
for (var n, r, i, o = Object.keys(t), s = 0; s < o.length; s++) r = e[n = o[s]], i = t[n], p(e, n) ? a(r) && a(i) && F(r, i) : P(e, n, i);
return e
}
function H(e, t, n) {
return n ? e || t ? function() {
var r = "function" == typeof t ? t.call(n) : t,
i = "function" == typeof e ? e.call(n) : e;
return r ? F(r, i) : i
} : void 0 : t ? e ? function() {
return F("function" == typeof t ? t.call(this) : t, "function" == typeof e ? e.call(this) : e)
} : t : e
}
function B(e, t) {
return t ? e ? e.concat(t) : Array.isArray(t) ? t : [t] : e
}
function U(e, t, n, r) {
var i = Object.create(e || null);
return t ? y(i, t) : i
}
function V(e, t) {
var n = e.props;
if (n) {
var r, i, o = {};
if (Array.isArray(n))
for (r = n.length; r--;) "string" == typeof(i = n[r]) && (o[ji(i)] = {
type: null
});
else if (a(n))
for (var s in n) i = n[s], o[ji(s)] = a(i) ? i : {
type: i
};
e.props = o
}
}
function z(e, t) {
var n = e.inject,
r = e.inject = {};
if (Array.isArray(n))
for (var i = 0; i < n.length; i++) r[n[i]] = {
from: n[i]
};
else if (a(n))
for (var o in n) {
var s = n[o];
r[o] = a(s) ? y({
from: o
}, s) : {
from: s
}
}
}
function K(e) {
var t = e.directives;
if (t)
for (var n in t) {
var r = t[n];
"function" == typeof r && (t[n] = {
bind: r,
update: r
})
}
}
function J(e, t, n) {
function r(r) {
var i = go[r] || $o;
c[r] = i(e[r], t[r], n, r)
}
"function" == typeof t && (t = t.options), V(t, n), z(t, n), K(t);
var i = t.extends;
if (i && (e = J(e, i, n)), t.mixins)
for (var o = 0, a = t.mixins.length; o < a; o++) e = J(e, t.mixins[o], n);
var s, c = {};
for (s in e) r(s);
for (s in t) p(e, s) || r(s);
return c
}
function q(e, t, n, r) {
if ("string" == typeof n) {
var i = e[t];
if (p(i, n)) return i[n];
var o = ji(n);
if (p(i, o)) return i[o];
var a = Li(o);
if (p(i, a)) return i[a];
var s = i[n] || i[o] || i[a];
return s
}
}
function W(e, t, n, r) {
var i = t[e],
o = !p(n, e),
a = n[e];
if (Y(Boolean, i.type) && (o && !p(i, "default") ? a = !1 : Y(String, i.type) || "" !== a && a !== Ii(e) || (a = !0)), void 0 === a) {
a = G(r, i, e);
var s = mo.shouldConvert;
mo.shouldConvert = !0, I(a), mo.shouldConvert = s
}
return a
}
function G(e, t, n) {
if (p(t, "default")) {
var r = t.default;
return e && e.$options.propsData && void 0 === e.$options.propsData[n] && void 0 !== e._props[n] ? e._props[n] : "function" == typeof r && "Function" !== Z(t.type) ? r.call(e) : r
}
}
function Z(e) {
var t = e && e.toString().match(/^\s*function (\w+)/);
return t ? t[1] : ""
}
function Y(e, t) {
if (!Array.isArray(t)) return Z(t) === Z(e);
for (var n = 0, r = t.length; n < r; n++)
if (Z(t[n]) === Z(e)) return !0;
return !1
}
function Q(e, t, n) {
if (t)
for (var r = t; r = r.$parent;) {
var i = r.$options.errorCaptured;
if (i)
for (var o = 0; o < i.length; o++) try {
if (!1 === i[o].call(r, e, t, n)) return
} catch (e) {
X(e, r, "errorCaptured hook")
}
}
X(e, t, n)
}
function X(e, t, n) {
if (Hi.errorHandler) try {
return Hi.errorHandler.call(null, e, t, n)
} catch (e) {
ee(e, null, "config.errorHandler")
}
ee(e, t, n)
}
function ee(e, t, n) {
if (!zi || "undefined" == typeof console) throw e;
console.error(e)
}
function te() {
wo = !1;
var e = Co.slice(0);
Co.length = 0;
for (var t = 0; t < e.length; t++) e[t]()
}
function ne(e) {
return e._withTask || (e._withTask = function() {
xo = !0;
var t = e.apply(null, arguments);
return xo = !1, t
})
}
function re(e, t) {
var n;
if (Co.push(function() {
if (e) try {
e.call(t)
} catch (e) {
Q(e, t, "nextTick")
} else n && n(t)
}), wo || (wo = !0, xo ? bo() : _o()), !e && "undefined" != typeof Promise) return new Promise(function(e) {
n = e
})
}
function ie(e) {
function t() {
var e = arguments,
n = t.fns;
if (!Array.isArray(n)) return n.apply(null, arguments);
for (var r = n.slice(), i = 0; i < r.length; i++) r[i].apply(null, e)
}
return t.fns = e, t
}
function oe(t, n, r, i, o) {
var a, s, c, u;
for (a in t) s = t[a], c = n[a], u = To(a), e(s) || (e(c) ? (e(s.fns) && (s = t[a] = ie(s)), r(u.name, s, u.once, u.capture, u.passive)) : s !== c && (c.fns = s, t[a] = c));
for (a in n) e(t[a]) && i((u = To(a)).name, n[a], u.capture)
}
function ae(r, i, o) {
function a() {
o.apply(this, arguments), d(s.fns, a)
}
var s, c = r[i];
e(c) ? s = ie([a]) : t(c.fns) && n(c.merged) ? (s = c).fns.push(a) : s = ie([c, a]), s.merged = !0, r[i] = s
}
function se(n, r, i) {
var o = r.options.props;
if (!e(o)) {
var a = {},
s = n.attrs,
c = n.props;
if (t(s) || t(c))
for (var u in o) {
var l = Ii(u);
ce(a, c, u, l, !0) || ce(a, s, u, l, !1)
}
return a
}
}
function ce(e, n, r, i, o) {
if (t(n)) {
if (p(n, r)) return e[r] = n[r], o || delete n[r], !0;
if (p(n, i)) return e[r] = n[i], o || delete n[i], !0
}
return !1
}
function ue(e) {
for (var t = 0; t < e.length; t++)
if (Array.isArray(e[t])) return Array.prototype.concat.apply([], e);
return e
}
function le(e) {
return i(e) ? [T(e)] : Array.isArray(e) ? de(e) : void 0
}
function fe(e) {
return t(e) && t(e.text) && r(e.isComment)
}
function de(r, o) {
var a, s, c, u, l = [];
for (a = 0; a < r.length; a++) e(s = r[a]) || "boolean" == typeof s || (u = l[c = l.length - 1], Array.isArray(s) ? s.length > 0 && (fe((s = de(s, (o || "") + "_" + a))[0]) && fe(u) && (l[c] = T(u.text + s[0].text), s.shift()), l.push.apply(l, s)) : i(s) ? fe(u) ? l[c] = T(u.text + s) : "" !== s && l.push(T(s)) : fe(s) && fe(u) ? l[c] = T(u.text + s.text) : (n(r._isVList) && t(s.tag) && e(s.key) && t(o) && (s.key = "__vlist" + o + "_" + a + "__"), l.push(s)));
return l
}
function pe(e, t) {
return (e.__esModule || io && "Module" === e[Symbol.toStringTag]) && (e = e.default), o(e) ? t.extend(e) : e
}
function ve(e, t, n, r, i) {
var o = fo();
return o.asyncFactory = e, o.asyncMeta = {
data: t,
context: n,
children: r,
tag: i
}, o
}
function he(r, i, a) {
if (n(r.error) && t(r.errorComp)) return r.errorComp;
if (t(r.resolved)) return r.resolved;
if (n(r.loading) && t(r.loadingComp)) return r.loadingComp;
if (!t(r.contexts)) {
var s = r.contexts = [a],
c = !0,
u = function() {
for (var e = 0, t = s.length; e < t; e++) s[e].$forceUpdate()
},
l = C(function(e) {
r.resolved = pe(e, i), c || u()
}),
f = C(function(e) {
t(r.errorComp) && (r.error = !0, u())
}),
d = r(l, f);
return o(d) && ("function" == typeof d.then ? e(r.resolved) && d.then(l, f) : t(d.component) && "function" == typeof d.component.then && (d.component.then(l, f), t(d.error) && (r.errorComp = pe(d.error, i)), t(d.loading) && (r.loadingComp = pe(d.loading, i), 0 === d.delay ? r.loading = !0 : setTimeout(function() {
e(r.resolved) && e(r.error) && (r.loading = !0, u())
}, d.delay || 200)), t(d.timeout) && setTimeout(function() {
e(r.resolved) && f(null)
}, d.timeout))), c = !1, r.loading ? r.loadingComp : r.resolved
}
r.contexts.push(a)
}
function me(e) {
return e.isComment && e.asyncFactory
}
function ye(e) {
if (Array.isArray(e))
for (var n = 0; n < e.length; n++) {
var r = e[n];
if (t(r) && (t(r.componentOptions) || me(r))) return r
}
}
function ge(e) {
e._events = Object.create(null), e._hasHookEvent = !1;
var t = e.$options._parentListeners;
t && $e(e, t)
}
function _e(e, t, n) {
n ? So.$once(e, t) : So.$on(e, t)
}
function be(e, t) {
So.$off(e, t)
}
function $e(e, t, n) {
So = e, oe(t, n || {}, _e, be, e)
}
function Ce(e, t) {
var n = {};
if (!e) return n;
for (var r = [], i = 0, o = e.length; i < o; i++) {
var a = e[i],
s = a.data;
if (s && s.attrs && s.attrs.slot && delete s.attrs.slot, a.context !== t && a.functionalContext !== t || !s || null == s.slot) r.push(a);
else {
var c = a.data.slot,
u = n[c] || (n[c] = []);
"template" === a.tag ? u.push.apply(u, a.children) : u.push(a)
}
}
return r.every(we) || (n.default = r), n
}
function we(e) {
return e.isComment || " " === e.text
}
function xe(e, t) {
t = t || {};
for (var n = 0; n < e.length; n++) Array.isArray(e[n]) ? xe(e[n], t) : t[e[n].key] = e[n].fn;
return t
}
function ke(e) {
var t = e.$options,
n = t.parent;
if (n && !t.abstract) {
for (; n.$options.abstract && n.$parent;) n = n.$parent;
n.$children.push(e)
}
e.$parent = n, e.$root = n ? n.$root : e, e.$children = [], e.$refs = {}, e._watcher = null, e._inactive = null, e._directInactive = !1, e._isMounted = !1, e._isDestroyed = !1, e._isBeingDestroyed = !1
}
function Ae(e, t, n) {
e.$el = t, e.$options.render || (e.$options.render = fo), je(e, "beforeMount");
var r;
return r = function() {
e._update(e._render(), n)
}, e._watcher = new Ro(e, r, _), n = !1, null == e.$vnode && (e._isMounted = !0, je(e, "mounted")), e
}
function Oe(e, t, n, r, i) {
var o = !!(i || e.$options._renderChildren || r.data.scopedSlots || e.$scopedSlots !== Bi);
if (e.$options._parentVnode = r, e.$vnode = r, e._vnode && (e._vnode.parent = r), e.$options._renderChildren = i, e.$attrs = r.data && r.data.attrs || Bi, e.$listeners = n || Bi, t && e.$options.props) {
mo.shouldConvert = !1;
for (var a = e._props, s = e.$options._propKeys || [], c = 0; c < s.length; c++) {
var u = s[c];
a[u] = W(u, e.$options.props, t, e)
}
mo.shouldConvert = !0, e.$options.propsData = t
}
if (n) {
var l = e.$options._parentListeners;
e.$options._parentListeners = n, $e(e, n, l)
}
o && (e.$slots = Ce(i, r.context), e.$forceUpdate())
}
function Se(e) {
for (; e && (e = e.$parent);)
if (e._inactive) return !0;
return !1
}
function Te(e, t) {
if (t) {
if (e._directInactive = !1, Se(e)) return
} else if (e._directInactive) return;
if (e._inactive || null === e._inactive) {
e._inactive = !1;
for (var n = 0; n < e.$children.length; n++) Te(e.$children[n]);
je(e, "activated")
}
}
function Ee(e, t) {
if (!(t && (e._directInactive = !0, Se(e)) || e._inactive)) {
e._inactive = !0;
for (var n = 0; n < e.$children.length; n++) Ee(e.$children[n]);
je(e, "deactivated")
}
}
function je(e, t) {
var n = e.$options[t];
if (n)
for (var r = 0, i = n.length; r < i; r++) try {
n[r].call(e)
} catch (n) {
Q(n, e, t + " hook")
}
e._hasHookEvent && e.$emit("hook:" + t)
}
function Le() {
Po = jo.length = Lo.length = 0, No = {}, Io = Mo = !1
}
function Ne() {
Mo = !0;
var e, t;
for (jo.sort(function(e, t) {
return e.id - t.id
}), Po = 0; Po < jo.length; Po++) t = (e = jo[Po]).id, No[t] = null, e.run();
var n = Lo.slice(),
r = jo.slice();
Le(), Pe(n), Ie(r), ro && Hi.devtools && ro.emit("flush")
}
function Ie(e) {
for (var t = e.length; t--;) {
var n = e[t],
r = n.vm;
r._watcher === n && r._isMounted && je(r, "updated")
}
}
function Me(e) {
e._inactive = !1, Lo.push(e)
}
function Pe(e) {
for (var t = 0; t < e.length; t++) e[t]._inactive = !0, Te(e[t], !0)
}
function De(e) {
var t = e.id;
if (null == No[t]) {
if (No[t] = !0, Mo) {
for (var n = jo.length - 1; n > Po && jo[n].id > e.id;) n--;
jo.splice(n + 1, 0, e)
} else jo.push(e);
Io || (Io = !0, re(Ne))
}
}
function Re(e) {
Fo.clear(), Fe(e, Fo)
}
function Fe(e, t) {
var n, r, i = Array.isArray(e);
if ((i || o(e)) && Object.isExtensible(e)) {
if (e.__ob__) {
var a = e.__ob__.dep.id;
if (t.has(a)) return;
t.add(a)
}
if (i)
for (n = e.length; n--;) Fe(e[n], t);
else
for (n = (r = Object.keys(e)).length; n--;) Fe(e[r[n]], t)
}
}
function He(e, t, n) {
Ho.get = function() {
return this[t][n]
}, Ho.set = function(e) {
this[t][n] = e
}, Object.defineProperty(e, n, Ho)
}
function Be(e) {
e._watchers = [];
var t = e.$options;
t.props && Ue(e, t.props), t.methods && We(e, t.methods), t.data ? Ve(e) : I(e._data = {}, !0), t.computed && Ke(e, t.computed), t.watch && t.watch !== Yi && Ge(e, t.watch)
}
function Ue(e, t) {
var n = e.$options.propsData || {},
r = e._props = {},
i = e.$options._propKeys = [],
o = !e.$parent;
mo.shouldConvert = o;
for (var a in t) ! function(o) {
i.push(o);
var a = W(o, t, n, e);
M(r, o, a), o in e || He(e, "_props", o)
}(a);
mo.shouldConvert = !0
}
function Ve(e) {
var t = e.$options.data;
a(t = e._data = "function" == typeof t ? ze(t, e) : t || {}) || (t = {});
for (var n = Object.keys(t), r = e.$options.props, i = n.length; i--;) {
var o = n[i];
r && p(r, o) || w(o) || He(e, "_data", o)
}
I(t, !0)
}
function ze(e, t) {
try {
return e.call(t, t)
} catch (e) {
return Q(e, t, "data()"), {}
}
}
function Ke(e, t) {
var n = e._computedWatchers = Object.create(null),
r = no();
for (var i in t) {
var o = t[i],
a = "function" == typeof o ? o : o.get;
r || (n[i] = new Ro(e, a || _, _, Bo)), i in e || Je(e, i, o)
}
}
function Je(e, t, n) {
var r = !no();
"function" == typeof n ? (Ho.get = r ? qe(t) : n, Ho.set = _) : (Ho.get = n.get ? r && !1 !== n.cache ? qe(t) : n.get : _, Ho.set = n.set ? n.set : _), Object.defineProperty(e, t, Ho)
}
function qe(e) {
return function() {
var t = this._computedWatchers && this._computedWatchers[e];
if (t) return t.dirty && t.evaluate(), so.target && t.depend(), t.value
}
}
function We(e, t) {
for (var n in t) e[n] = null == t[n] ? _ : h(t[n], e)
}
function Ge(e, t) {
for (var n in t) {
var r = t[n];
if (Array.isArray(r))
for (var i = 0; i < r.length; i++) Ze(e, n, r[i]);
else Ze(e, n, r)
}
}
function Ze(e, t, n, r) {
return a(n) && (r = n, n = n.handler), "string" == typeof n && (n = e[n]), e.$watch(t, n, r)
}
function Ye(e) {
var t = e.$options.provide;
t && (e._provided = "function" == typeof t ? t.call(e) : t)
}
function Qe(e) {
var t = Xe(e.$options.inject, e);
t && (mo.shouldConvert = !1, Object.keys(t).forEach(function(n) {
M(e, n, t[n])
}), mo.shouldConvert = !0)
}
function Xe(e, t) {
if (e) {
for (var n = Object.create(null), r = io ? Reflect.ownKeys(e).filter(function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}) : Object.keys(e), i = 0; i < r.length; i++) {
for (var o = r[i], a = e[o].from, s = t; s;) {
if (s._provided && a in s._provided) {
n[o] = s._provided[a];
break
}
s = s.$parent
}
if (!s && "default" in e[o]) {
var c = e[o].default;
n[o] = "function" == typeof c ? c.call(t) : c
}
}
return n
}
}
function et(e, n) {
var r, i, a, s, c;
if (Array.isArray(e) || "string" == typeof e)
for (r = new Array(e.length), i = 0, a = e.length; i < a; i++) r[i] = n(e[i], i);
else if ("number" == typeof e)
for (r = new Array(e), i = 0; i < e; i++) r[i] = n(i + 1, i);
else if (o(e))
for (s = Object.keys(e), r = new Array(s.length), i = 0, a = s.length; i < a; i++) c = s[i], r[i] = n(e[c], c, i);
return t(r) && (r._isVList = !0), r
}
function tt(e, t, n, r) {
var i = this.$scopedSlots[e];
if (i) return n = n || {}, r && (n = y(y({}, r), n)), i(n) || t;
var o = this.$slots[e];
return o || t
}
function nt(e) {
return q(this.$options, "filters", e, !0) || Pi
}
function rt(e, t, n, r) {
var i = Hi.keyCodes[t] || n;
return i ? Array.isArray(i) ? -1 === i.indexOf(e) : i !== e : r ? Ii(r) !== t : void 0
}
function it(e, t, n, r, i) {
if (n)
if (o(n)) {
Array.isArray(n) && (n = g(n));
var a;
for (var s in n) ! function(o) {
if ("class" === o || "style" === o || Si(o)) a = e;
else {
var s = e.attrs && e.attrs.type;
a = r || Hi.mustUseProp(t, s, o) ? e.domProps || (e.domProps = {}) : e.attrs || (e.attrs = {})
}
o in a || (a[o] = n[o], i && ((e.on || (e.on = {}))["update:" + o] = function(e) {
n[o] = e
}))
}(s)
} else;
return e
}
function ot(e, t) {
var n = this.$options.staticRenderFns,
r = n.cached || (n.cached = []),
i = r[e];
return i && !t ? Array.isArray(i) ? j(i) : E(i) : (i = r[e] = n[e].call(this._renderProxy, null, this), st(i, "__static__" + e, !1), i)
}
function at(e, t, n) {
return st(e, "__once__" + t + (n ? "_" + n : ""), !0), e
}
function st(e, t, n) {
if (Array.isArray(e))
for (var r = 0; r < e.length; r++) e[r] && "string" != typeof e[r] && ct(e[r], t + "_" + r, n);
else ct(e, t, n)
}
function ct(e, t, n) {
e.isStatic = !0, e.key = t, e.isOnce = n
}
function ut(e, t) {
if (t)
if (a(t)) {
var n = e.on = e.on ? y({}, e.on) : {};
for (var r in t) {
var i = n[r],
o = t[r];
n[r] = i ? [].concat(i, o) : o
}
} else;
return e
}
function lt(e) {
e._o = at, e._n = l, e._s = u, e._l = et, e._t = tt, e._q = b, e._i = $, e._m = ot, e._f = nt, e._k = rt, e._b = it, e._v = T, e._e = fo, e._u = xe, e._g = ut
}
function ft(e, t, r, i, o) {
var a = o.options;
this.data = e, this.props = t, this.children = r, this.parent = i, this.listeners = e.on || Bi, this.injections = Xe(a.inject, i), this.slots = function() {
return Ce(r, i)
};
var s = Object.create(i),
c = n(a._compiled),
u = !c;
c && (this.$options = a, this.$slots = this.slots(), this.$scopedSlots = e.scopedSlots || Bi), a._scopeId ? this._c = function(e, t, n, r) {
var o = _t(s, e, t, n, r, u);
return o && (o.functionalScopeId = a._scopeId, o.functionalContext = i), o
} : this._c = function(e, t, n, r) {
return _t(s, e, t, n, r, u)
}
}
function dt(e, n, r, i, o) {
var a = e.options,
s = {},
c = a.props;
if (t(c))
for (var u in c) s[u] = W(u, c, n || Bi);
else t(r.attrs) && pt(s, r.attrs), t(r.props) && pt(s, r.props);
var l = new ft(r, s, o, i, e),
f = a.render.call(null, l._c, l);
return f instanceof uo && (f.functionalContext = i, f.functionalOptions = a, r.slot && ((f.data || (f.data = {})).slot = r.slot)), f
}
function pt(e, t) {
for (var n in t) e[ji(n)] = t[n]
}
function vt(r, i, a, s, c) {
if (!e(r)) {
var u = a.$options._base;
if (o(r) && (r = u.extend(r)), "function" == typeof r) {
var l;
if (e(r.cid) && (l = r, void 0 === (r = he(l, u, a)))) return ve(l, i, a, s, c);
i = i || {}, xt(r), t(i.model) && gt(r.options, i);
var f = se(i, r, c);
if (n(r.options.functional)) return dt(r, f, i, a, s);
var d = i.on;
if (i.on = i.nativeOn, n(r.options.abstract)) {
var p = i.slot;
i = {}, p && (i.slot = p)
}
mt(i);
var v = r.options.name || c;
return new uo("vue-component-" + r.cid + (v ? "-" + v : ""), i, void 0, void 0, void 0, a, {
Ctor: r,
propsData: f,
listeners: d,
tag: c,
children: s
}, l)
}
}
}
function ht(e, n, r, i) {
var o = e.componentOptions,
a = {
_isComponent: !0,
parent: n,
propsData: o.propsData,
_componentTag: o.tag,
_parentVnode: e,
_parentListeners: o.listeners,
_renderChildren: o.children,
_parentElm: r || null,
_refElm: i || null
},
s = e.data.inlineTemplate;
return t(s) && (a.render = s.render, a.staticRenderFns = s.staticRenderFns), new o.Ctor(a)
}
function mt(e) {
e.hook || (e.hook = {});
for (var t = 0; t < Vo.length; t++) {
var n = Vo[t],
r = e.hook[n],
i = Uo[n];
e.hook[n] = r ? yt(i, r) : i
}
}
function yt(e, t) {
return function(n, r, i, o) {
e(n, r, i, o), t(n, r, i, o)
}
}
function gt(e, n) {
var r = e.model && e.model.prop || "value",
i = e.model && e.model.event || "input";
(n.props || (n.props = {}))[r] = n.model.value;
var o = n.on || (n.on = {});
t(o[i]) ? o[i] = [n.model.callback].concat(o[i]) : o[i] = n.model.callback
}
function _t(e, t, r, o, a, s) {
return (Array.isArray(r) || i(r)) && (a = o, o = r, r = void 0), n(s) && (a = Ko), bt(e, t, r, o, a)
}
function bt(e, n, r, i, o) {
if (t(r) && t(r.__ob__)) return fo();
if (t(r) && t(r.is) && (n = r.is), !n) return fo();
Array.isArray(i) && "function" == typeof i[0] && ((r = r || {}).scopedSlots = {
default: i[0]
}, i.length = 0), o === Ko ? i = le(i) : o === zo && (i = ue(i));
var a, s;
if ("string" == typeof n) {
var c;
s = e.$vnode && e.$vnode.ns || Hi.getTagNamespace(n), a = Hi.isReservedTag(n) ? new uo(Hi.parsePlatformTagName(n), r, i, void 0, void 0, e) : t(c = q(e.$options, "components", n)) ? vt(c, r, e, i, n) : new uo(n, r, i, void 0, void 0, e)
} else a = vt(n, r, e, i);
return t(a) ? (s && $t(a, s), a) : fo()
}
function $t(r, i, o) {
if (r.ns = i, "foreignObject" === r.tag && (i = void 0, o = !0), t(r.children))
for (var a = 0, s = r.children.length; a < s; a++) {
var c = r.children[a];
t(c.tag) && (e(c.ns) || n(o)) && $t(c, i, o)
}
}
function Ct(e) {
e._vnode = null;
var t = e.$options,
n = e.$vnode = t._parentVnode,
r = n && n.context;
e.$slots = Ce(t._renderChildren, r), e.$scopedSlots = Bi, e._c = function(t, n, r, i) {
return _t(e, t, n, r, i, !1)
}, e.$createElement = function(t, n, r, i) {
return _t(e, t, n, r, i, !0)
};
var i = n && n.data;
M(e, "$attrs", i && i.attrs || Bi, null, !0), M(e, "$listeners", t._parentListeners || Bi, null, !0)
}
function wt(e, t) {
var n = e.$options = Object.create(e.constructor.options);
n.parent = t.parent, n.propsData = t.propsData, n._parentVnode = t._parentVnode, n._parentListeners = t._parentListeners, n._renderChildren = t._renderChildren, n._componentTag = t._componentTag, n._parentElm = t._parentElm, n._refElm = t._refElm, t.render && (n.render = t.render, n.staticRenderFns = t.staticRenderFns)
}
function xt(e) {
var t = e.options;
if (e.super) {
var n = xt(e.super);
if (n !== e.superOptions) {
e.superOptions = n;
var r = kt(e);
r && y(e.extendOptions, r), (t = e.options = J(n, e.extendOptions)).name && (t.components[t.name] = e)
}
}
return t
}
function kt(e) {
var t, n = e.options,
r = e.extendOptions,
i = e.sealedOptions;
for (var o in n) n[o] !== i[o] && (t || (t = {}), t[o] = At(n[o], r[o], i[o]));
return t
}
function At(e, t, n) {
if (Array.isArray(e)) {
var r = [];
n = Array.isArray(n) ? n : [n], t = Array.isArray(t) ? t : [t];
for (var i = 0; i < e.length; i++)(t.indexOf(e[i]) >= 0 || n.indexOf(e[i]) < 0) && r.push(e[i]);
return r
}
return e
}
function Ot(e) {
this._init(e)
}
function St(e) {
e.use = function(e) {
var t = this._installedPlugins || (this._installedPlugins = []);
if (t.indexOf(e) > -1) return this;
var n = m(arguments, 1);
return n.unshift(this), "function" == typeof e.install ? e.install.apply(e, n) : "function" == typeof e && e.apply(null, n), t.push(e), this
}
}
function Tt(e) {
e.mixin = function(e) {
return this.options = J(this.options, e), this
}
}
function Et(e) {
e.cid = 0;
var t = 1;
e.extend = function(e) {
e = e || {};
var n = this,
r = n.cid,
i = e._Ctor || (e._Ctor = {});
if (i[r]) return i[r];
var o = e.name || n.options.name,
a = function(e) {
this._init(e)
};
return a.prototype = Object.create(n.prototype), a.prototype.constructor = a, a.cid = t++, a.options = J(n.options, e), a.super = n, a.options.props && jt(a), a.options.computed && Lt(a), a.extend = n.extend, a.mixin = n.mixin, a.use = n.use, Ri.forEach(function(e) {
a[e] = n[e]
}), o && (a.options.components[o] = a), a.superOptions = n.options, a.extendOptions = e, a.sealedOptions = y({}, a.options), i[r] = a, a
}
}
function jt(e) {
var t = e.options.props;
for (var n in t) He(e.prototype, "_props", n)
}
function Lt(e) {
var t = e.options.computed;
for (var n in t) Je(e.prototype, n, t[n])
}
function Nt(e) {
Ri.forEach(function(t) {
e[t] = function(e, n) {
return n ? ("component" === t && a(n) && (n.name = n.name || e, n = this.options._base.extend(n)), "directive" === t && "function" == typeof n && (n = {
bind: n,
update: n
}), this.options[t + "s"][e] = n, n) : this.options[t + "s"][e]
}
})
}
function It(e) {
return e && (e.Ctor.options.name || e.tag)
}
function Mt(e, t) {
return Array.isArray(e) ? e.indexOf(t) > -1 : "string" == typeof e ? e.split(",").indexOf(t) > -1 : !!s(e) && e.test(t)
}
function Pt(e, t) {
var n = e.cache,
r = e.keys,
i = e._vnode;
for (var o in n) {
var a = n[o];
if (a) {
var s = It(a.componentOptions);
s && !t(s) && Dt(n, o, r, i)
}
}
}
function Dt(e, t, n, r) {
var i = e[t];
i && i !== r && i.componentInstance.$destroy(), e[t] = null, d(n, t)
}
function Rt(e) {
for (var n = e.data, r = e, i = e; t(i.componentInstance);)(i = i.componentInstance._vnode).data && (n = Ft(i.data, n));
for (; t(r = r.parent);) r.data && (n = Ft(n, r.data));
return Ht(n.staticClass, n.class)
}
function Ft(e, n) {
return {
staticClass: Bt(e.staticClass, n.staticClass),
class: t(e.class) ? [e.class, n.class] : n.class
}
}
function Ht(e, n) {
return t(e) || t(n) ? Bt(e, Ut(n)) : ""
}
function Bt(e, t) {
return e ? t ? e + " " + t : e : t || ""
}
function Ut(e) {
return Array.isArray(e) ? Vt(e) : o(e) ? zt(e) : "string" == typeof e ? e : ""
}
function Vt(e) {
for (var n, r = "", i = 0, o = e.length; i < o; i++) t(n = Ut(e[i])) && "" !== n && (r && (r += " "), r += n);
return r
}
function zt(e) {
var t = "";
for (var n in e) e[n] && (t && (t += " "), t += n);
return t
}
function Kt(e) {
return va(e) ? "svg" : "math" === e ? "math" : void 0
}
function Jt(e) {
if ("string" == typeof e) {
var t = document.querySelector(e);
return t || document.createElement("div")
}
return e
}
function qt(e, t) {
var n = e.data.ref;
if (n) {
var r = e.context,
i = e.componentInstance || e.elm,
o = r.$refs;
t ? Array.isArray(o[n]) ? d(o[n], i) : o[n] === i && (o[n] = void 0) : e.data.refInFor ? Array.isArray(o[n]) ? o[n].indexOf(i) < 0 && o[n].push(i) : o[n] = [i] : o[n] = i
}
}
function Wt(r, i) {
return r.key === i.key && (r.tag === i.tag && r.isComment === i.isComment && t(r.data) === t(i.data) && Gt(r, i) || n(r.isAsyncPlaceholder) && r.asyncFactory === i.asyncFactory && e(i.asyncFactory.error))
}
function Gt(e, n) {
if ("input" !== e.tag) return !0;
var r, i = t(r = e.data) && t(r = r.attrs) && r.type,
o = t(r = n.data) && t(r = r.attrs) && r.type;
return i === o || ya(i) && ya(o)
}
function Zt(e, n, r) {
var i, o, a = {};
for (i = n; i <= r; ++i) t(o = e[i].key) && (a[o] = i);
return a
}
function Yt(e, t) {
(e.data.directives || t.data.directives) && Qt(e, t)
}
function Qt(e, t) {
var n, r, i, o = e === ba,
a = t === ba,
s = Xt(e.data.directives, e.context),
c = Xt(t.data.directives, t.context),
u = [],
l = [];
for (n in c) r = s[n], i = c[n], r ? (i.oldValue = r.value, tn(i, "update", t, e), i.def && i.def.componentUpdated && l.push(i)) : (tn(i, "bind", t, e), i.def && i.def.inserted && u.push(i));
if (u.length) {
var f = function() {
for (var n = 0; n < u.length; n++) tn(u[n], "inserted", t, e)
};
o ? ae(t.data.hook || (t.data.hook = {}), "insert", f) : f()
}
if (l.length && ae(t.data.hook || (t.data.hook = {}), "postpatch", function() {
for (var n = 0; n < l.length; n++) tn(l[n], "componentUpdated", t, e)
}), !o)
for (n in s) c[n] || tn(s[n], "unbind", e, e, a)
}
function Xt(e, t) {
var n = Object.create(null);
if (!e) return n;
var r, i;
for (r = 0; r < e.length; r++)(i = e[r]).modifiers || (i.modifiers = wa), n[en(i)] = i, i.def = q(t.$options, "directives", i.name, !0);
return n
}
function en(e) {
return e.rawName || e.name + "." + Object.keys(e.modifiers || {}).join(".")
}
function tn(e, t, n, r, i) {
var o = e.def && e.def[t];
if (o) try {
o(n.elm, e, n, r, i)
} catch (r) {
Q(r, n.context, "directive " + e.name + " " + t + " hook")
}
}
function nn(n, r) {
var i = r.componentOptions;
if (!(t(i) && !1 === i.Ctor.options.inheritAttrs || e(n.data.attrs) && e(r.data.attrs))) {
var o, a, s = r.elm,
c = n.data.attrs || {},
u = r.data.attrs || {};
t(u.__ob__) && (u = r.data.attrs = y({}, u));
for (o in u) a = u[o], c[o] !== a && rn(s, o, a);
(qi || Wi) && u.value !== c.value && rn(s, "value", u.value);
for (o in c) e(u[o]) && (ua(o) ? s.removeAttributeNS(ca, la(o)) : aa(o) || s.removeAttribute(o))
}
}
function rn(e, t, n) {
sa(t) ? fa(n) ? e.removeAttribute(t) : (n = "allowfullscreen" === t && "EMBED" === e.tagName ? "true" : t, e.setAttribute(t, n)) : aa(t) ? e.setAttribute(t, fa(n) || "false" === n ? "false" : "true") : ua(t) ? fa(n) ? e.removeAttributeNS(ca, la(t)) : e.setAttributeNS(ca, t, n) : fa(n) ? e.removeAttribute(t) : e.setAttribute(t, n)
}
function on(n, r) {
var i = r.elm,
o = r.data,
a = n.data;
if (!(e(o.staticClass) && e(o.class) && (e(a) || e(a.staticClass) && e(a.class)))) {
var s = Rt(r),
c = i._transitionClasses;
t(c) && (s = Bt(s, Ut(c))), s !== i._prevClass && (i.setAttribute("class", s), i._prevClass = s)
}
}
function an(e) {
function t() {
(a || (a = [])).push(e.slice(v, i).trim()), v = i + 1
}
var n, r, i, o, a, s = !1,
c = !1,
u = !1,
l = !1,
f = 0,
d = 0,
p = 0,
v = 0;
for (i = 0; i < e.length; i++)
if (r = n, n = e.charCodeAt(i), s) 39 === n && 92 !== r && (s = !1);
else if (c) 34 === n && 92 !== r && (c = !1);
else if (u) 96 === n && 92 !== r && (u = !1);
else if (l) 47 === n && 92 !== r && (l = !1);
else if (124 !== n || 124 === e.charCodeAt(i + 1) || 124 === e.charCodeAt(i - 1) || f || d || p) {
switch (n) {
case 34:
c = !0;
break;
case 39:
s = !0;
break;
case 96:
u = !0;
break;
case 40:
p++;
break;
case 41:
p--;
break;
case 91:
d++;
break;
case 93:
d--;
break;
case 123:
f++;
break;
case 125:
f--
}
if (47 === n) {
for (var h = i - 1, m = void 0; h >= 0 && " " === (m = e.charAt(h)); h--);
m && Oa.test(m) || (l = !0)
}
} else void 0 === o ? (v = i + 1, o = e.slice(0, i).trim()) : t();
if (void 0 === o ? o = e.slice(0, i).trim() : 0 !== v && t(), a)
for (i = 0; i < a.length; i++) o = sn(o, a[i]);
return o
}
function sn(e, t) {
var n = t.indexOf("(");
return n < 0 ? '_f("' + t + '")(' + e + ")" : '_f("' + t.slice(0, n) + '")(' + e + "," + t.slice(n + 1)
}
function cn(e) {
console.error("[Vue compiler]: " + e)
}
function un(e, t) {
return e ? e.map(function(e) {
return e[t]
}).filter(function(e) {
return e
}) : []
}
function ln(e, t, n) {
(e.props || (e.props = [])).push({
name: t,
value: n
})
}
function fn(e, t, n) {
(e.attrs || (e.attrs = [])).push({
name: t,
value: n
})
}
function dn(e, t, n, r, i, o) {
(e.directives || (e.directives = [])).push({
name: t,
rawName: n,
value: r,
arg: i,
modifiers: o
})
}
function pn(e, t, n, r, i, o) {
r && r.capture && (delete r.capture, t = "!" + t), r && r.once && (delete r.once, t = "~" + t), r && r.passive && (delete r.passive, t = "&" + t);
var a;
r && r.native ? (delete r.native, a = e.nativeEvents || (e.nativeEvents = {})) : a = e.events || (e.events = {});
var s = {
value: n,
modifiers: r
},
c = a[t];
Array.isArray(c) ? i ? c.unshift(s) : c.push(s) : a[t] = c ? i ? [s, c] : [c, s] : s
}
function vn(e, t, n) {
var r = hn(e, ":" + t) || hn(e, "v-bind:" + t);
if (null != r) return an(r);
if (!1 !== n) {
var i = hn(e, t);
if (null != i) return JSON.stringify(i)
}
}
function hn(e, t, n) {
var r;
if (null != (r = e.attrsMap[t]))
for (var i = e.attrsList, o = 0, a = i.length; o < a; o++)
if (i[o].name === t) {
i.splice(o, 1);
break
}
return n && delete e.attrsMap[t], r
}
function mn(e, t, n) {
var r = n || {},
i = r.number,
o = "$$v";
r.trim && (o = "(typeof $$v === 'string'? $$v.trim(): $$v)"), i && (o = "_n(" + o + ")");
var a = yn(t, o);
e.model = {
value: "(" + t + ")",
expression: '"' + t + '"',
callback: "function ($$v) {" + a + "}"
}
}
function yn(e, t) {
var n = gn(e);
return null === n.key ? e + "=" + t : "$set(" + n.exp + ", " + n.key + ", " + t + ")"
}
function gn(e) {
if (Go = e.length, e.indexOf("[") < 0 || e.lastIndexOf("]") < Go - 1) return (Qo = e.lastIndexOf(".")) > -1 ? {
exp: e.slice(0, Qo),
key: '"' + e.slice(Qo + 1) + '"'
} : {
exp: e,
key: null
};
for (Zo = e, Qo = Xo = ea = 0; !bn();) $n(Yo = _n()) ? wn(Yo) : 91 === Yo && Cn(Yo);
return {
exp: e.slice(0, Xo),
key: e.slice(Xo + 1, ea)
}
}
function _n() {
return Zo.charCodeAt(++Qo)
}
function bn() {
return Qo >= Go
}
function $n(e) {
return 34 === e || 39 === e
}
function Cn(e) {
var t = 1;
for (Xo = Qo; !bn();)
if (e = _n(), $n(e)) wn(e);
else if (91 === e && t++, 93 === e && t--, 0 === t) {
ea = Qo;
break
}
}
function wn(e) {
for (var t = e; !bn() && (e = _n()) !== t;);
}
function xn(e, t, n) {
var r = n && n.number,
i = vn(e, "value") || "null",
o = vn(e, "true-value") || "true",
a = vn(e, "false-value") || "false";
ln(e, "checked", "Array.isArray(" + t + ")?_i(" + t + "," + i + ")>-1" + ("true" === o ? ":(" + t + ")" : ":_q(" + t + "," + o + ")")), pn(e, "change", "var $$a=" + t + ",$$el=$event.target,$$c=$$el.checked?(" + o + "):(" + a + ");if(Array.isArray($$a)){var $$v=" + (r ? "_n(" + i + ")" : i) + ",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(" + t + "=$$a.concat([$$v]))}else{$$i>-1&&(" + t + "=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{" + yn(t, "$$c") + "}", null, !0)
}
function kn(e, t, n) {
var r = n && n.number,
i = vn(e, "value") || "null";
ln(e, "checked", "_q(" + t + "," + (i = r ? "_n(" + i + ")" : i) + ")"), pn(e, "change", yn(t, i), null, !0)
}
function An(e, t, n) {
var r = "var $$selectedVal = " + ('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ' + (n && n.number ? "_n(val)" : "val") + "})") + ";";
pn(e, "change", r = r + " " + yn(t, "$event.target.multiple ? $$selectedVal : $$selectedVal[0]"), null, !0)
}
function On(e, t, n) {
var r = e.attrsMap.type,
i = n || {},
o = i.lazy,
a = i.number,
s = i.trim,
c = !o && "range" !== r,
u = o ? "change" : "range" === r ? Sa : "input",
l = "$event.target.value";
s && (l = "$event.target.value.trim()"), a && (l = "_n(" + l + ")");
var f = yn(t, l);
c && (f = "if($event.target.composing)return;" + f), ln(e, "value", "(" + t + ")"), pn(e, u, f, null, !0), (s || a) && pn(e, "blur", "$forceUpdate()")
}
function Sn(e) {
if (t(e[Sa])) {
var n = Ji ? "change" : "input";
e[n] = [].concat(e[Sa], e[n] || []), delete e[Sa]
}
t(e[Ta]) && (e.change = [].concat(e[Ta], e.change || []), delete e[Ta])
}
function Tn(e, t, n) {
var r = ta;
return function i() {
null !== e.apply(null, arguments) && jn(t, i, n, r)
}
}
function En(e, t, n, r, i) {
t = ne(t), n && (t = Tn(t, e, r)), ta.addEventListener(e, t, Qi ? {
capture: r,
passive: i
} : r)
}
function jn(e, t, n, r) {
(r || ta).removeEventListener(e, t._withTask || t, n)
}
function Ln(t, n) {
if (!e(t.data.on) || !e(n.data.on)) {
var r = n.data.on || {},
i = t.data.on || {};
ta = n.elm, Sn(r), oe(r, i, En, jn, n.context)
}
}
function Nn(n, r) {
if (!e(n.data.domProps) || !e(r.data.domProps)) {
var i, o, a = r.elm,
s = n.data.domProps || {},
c = r.data.domProps || {};
t(c.__ob__) && (c = r.data.domProps = y({}, c));
for (i in s) e(c[i]) && (a[i] = "");
for (i in c) {
if (o = c[i], "textContent" === i || "innerHTML" === i) {
if (r.children && (r.children.length = 0), o === s[i]) continue;
1 === a.childNodes.length && a.removeChild(a.childNodes[0])
}
if ("value" === i) {
a._value = o;
var u = e(o) ? "" : String(o);
In(a, u) && (a.value = u)
} else a[i] = o
}
}
}
function In(e, t) {
return !e.composing && ("OPTION" === e.tagName || Mn(e, t) || Pn(e, t))
}
function Mn(e, t) {
var n = !0;
try {
n = document.activeElement !== e
} catch (e) {}
return n && e.value !== t
}
function Pn(e, n) {
var r = e.value,
i = e._vModifiers;
return t(i) && i.number ? l(r) !== l(n) : t(i) && i.trim ? r.trim() !== n.trim() : r !== n
}
function Dn(e) {
var t = Rn(e.style);
return e.staticStyle ? y(e.staticStyle, t) : t
}
function Rn(e) {
return Array.isArray(e) ? g(e) : "string" == typeof e ? La(e) : e
}
function Fn(e, t) {
var n, r = {};
if (t)
for (var i = e; i.componentInstance;)(i = i.componentInstance._vnode).data && (n = Dn(i.data)) && y(r, n);
(n = Dn(e.data)) && y(r, n);
for (var o = e; o = o.parent;) o.data && (n = Dn(o.data)) && y(r, n);
return r
}
function Hn(n, r) {
var i = r.data,
o = n.data;
if (!(e(i.staticStyle) && e(i.style) && e(o.staticStyle) && e(o.style))) {
var a, s, c = r.elm,
u = o.staticStyle,
l = o.normalizedStyle || o.style || {},
f = u || l,
d = Rn(r.data.style) || {};
r.data.normalizedStyle = t(d.__ob__) ? y({}, d) : d;
var p = Fn(r, !0);
for (s in f) e(p[s]) && Ma(c, s, "");
for (s in p)(a = p[s]) !== f[s] && Ma(c, s, null == a ? "" : a)
}
}
function Bn(e, t) {
if (t && (t = t.trim()))
if (e.classList) t.indexOf(" ") > -1 ? t.split(/\s+/).forEach(function(t) {
return e.classList.add(t)
}) : e.classList.add(t);
else {
var n = " " + (e.getAttribute("class") || "") + " ";
n.indexOf(" " + t + " ") < 0 && e.setAttribute("class", (n + t).trim())
}
}
function Un(e, t) {
if (t && (t = t.trim()))
if (e.classList) t.indexOf(" ") > -1 ? t.split(/\s+/).forEach(function(t) {
return e.classList.remove(t)
}) : e.classList.remove(t), e.classList.length || e.removeAttribute("class");
else {
for (var n = " " + (e.getAttribute("class") || "") + " ", r = " " + t + " "; n.indexOf(r) >= 0;) n = n.replace(r, " ");
(n = n.trim()) ? e.setAttribute("class", n): e.removeAttribute("class")
}
}
function Vn(e) {
if (e) {
if ("object" == typeof e) {
var t = {};
return !1 !== e.css && y(t, Fa(e.name || "v")), y(t, e), t
}
return "string" == typeof e ? Fa(e) : void 0
}
}
function zn(e) {
qa(function() {
qa(e)
})
}
function Kn(e, t) {
var n = e._transitionClasses || (e._transitionClasses = []);
n.indexOf(t) < 0 && (n.push(t), Bn(e, t))
}
function Jn(e, t) {
e._transitionClasses && d(e._transitionClasses, t), Un(e, t)
}
function qn(e, t, n) {
var r = Wn(e, t),
i = r.type,
o = r.timeout,
a = r.propCount;
if (!i) return n();
var s = i === Ba ? za : Ja,
c = 0,
u = function() {
e.removeEventListener(s, l), n()
},
l = function(t) {
t.target === e && ++c >= a && u()
};
setTimeout(function() {
c < a && u()
}, o + 1), e.addEventListener(s, l)
}
function Wn(e, t) {
var n, r = window.getComputedStyle(e),
i = r[Va + "Delay"].split(", "),
o = r[Va + "Duration"].split(", "),
a = Gn(i, o),
s = r[Ka + "Delay"].split(", "),
c = r[Ka + "Duration"].split(", "),
u = Gn(s, c),
l = 0,
f = 0;
return t === Ba ? a > 0 && (n = Ba, l = a, f = o.length) : t === Ua ? u > 0 && (n = Ua, l = u, f = c.length) : f = (n = (l = Math.max(a, u)) > 0 ? a > u ? Ba : Ua : null) ? n === Ba ? o.length : c.length : 0, {
type: n,
timeout: l,
propCount: f,
hasTransform: n === Ba && Wa.test(r[Va + "Property"])
}
}
function Gn(e, t) {
for (; e.length < t.length;) e = e.concat(e);
return Math.max.apply(null, t.map(function(t, n) {
return Zn(t) + Zn(e[n])
}))
}
function Zn(e) {
return 1e3 * Number(e.slice(0, -1))
}
function Yn(n, r) {
var i = n.elm;
t(i._leaveCb) && (i._leaveCb.cancelled = !0, i._leaveCb());
var a = Vn(n.data.transition);
if (!e(a) && !t(i._enterCb) && 1 === i.nodeType) {
for (var s = a.css, c = a.type, u = a.enterClass, f = a.enterToClass, d = a.enterActiveClass, p = a.appearClass, v = a.appearToClass, h = a.appearActiveClass, m = a.beforeEnter, y = a.enter, g = a.afterEnter, _ = a.enterCancelled, b = a.beforeAppear, $ = a.appear, w = a.afterAppear, x = a.appearCancelled, k = a.duration, A = Eo, O = Eo.$vnode; O && O.parent;) A = (O = O.parent).context;
var S = !A._isMounted || !n.isRootInsert;
if (!S || $ || "" === $) {
var T = S && p ? p : u,
E = S && h ? h : d,
j = S && v ? v : f,
L = S ? b || m : m,
N = S && "function" == typeof $ ? $ : y,
I = S ? w || g : g,
M = S ? x || _ : _,
P = l(o(k) ? k.enter : k),
D = !1 !== s && !qi,
R = er(N),
F = i._enterCb = C(function() {
D && (Jn(i, j), Jn(i, E)), F.cancelled ? (D && Jn(i, T), M && M(i)) : I && I(i), i._enterCb = null
});
n.data.show || ae(n.data.hook || (n.data.hook = {}), "insert", function() {
var e = i.parentNode,
t = e && e._pending && e._pending[n.key];
t && t.tag === n.tag && t.elm._leaveCb && t.elm._leaveCb(), N && N(i, F)
}), L && L(i), D && (Kn(i, T), Kn(i, E), zn(function() {
Kn(i, j), Jn(i, T), F.cancelled || R || (Xn(P) ? setTimeout(F, P) : qn(i, c, F))
})), n.data.show && (r && r(), N && N(i, F)), D || R || F()
}
}
}
function Qn(n, r) {
function i() {
x.cancelled || (n.data.show || ((a.parentNode._pending || (a.parentNode._pending = {}))[n.key] = n), v && v(a), b && (Kn(a, f), Kn(a, p), zn(function() {
Kn(a, d), Jn(a, f), x.cancelled || $ || (Xn(w) ? setTimeout(x, w) : qn(a, u, x))
})), h && h(a, x), b || $ || x())
}
var a = n.elm;
t(a._enterCb) && (a._enterCb.cancelled = !0, a._enterCb());
var s = Vn(n.data.transition);
if (e(s)) return r();
if (!t(a._leaveCb) && 1 === a.nodeType) {
var c = s.css,
u = s.type,
f = s.leaveClass,
d = s.leaveToClass,
p = s.leaveActiveClass,
v = s.beforeLeave,
h = s.leave,
m = s.afterLeave,
y = s.leaveCancelled,
g = s.delayLeave,
_ = s.duration,
b = !1 !== c && !qi,
$ = er(h),
w = l(o(_) ? _.leave : _),
x = a._leaveCb = C(function() {
a.parentNode && a.parentNode._pending && (a.parentNode._pending[n.key] = null), b && (Jn(a, d), Jn(a, p)), x.cancelled ? (b && Jn(a, f), y && y(a)) : (r(), m && m(a)), a._leaveCb = null
});
g ? g(i) : i()
}
}
function Xn(e) {
return "number" == typeof e && !isNaN(e)
}
function er(n) {
if (e(n)) return !1;
var r = n.fns;
return t(r) ? er(Array.isArray(r) ? r[0] : r) : (n._length || n.length) > 1
}
function tr(e, t) {
!0 !== t.data.show && Yn(t)
}
function nr(e, t, n) {
rr(e, t, n), (Ji || Wi) && setTimeout(function() {
rr(e, t, n)
}, 0)
}
function rr(e, t, n) {
var r = t.value,
i = e.multiple;
if (!i || Array.isArray(r)) {
for (var o, a, s = 0, c = e.options.length; s < c; s++)
if (a = e.options[s], i) o = $(r, or(a)) > -1, a.selected !== o && (a.selected = o);
else if (b(or(a), r)) return void(e.selectedIndex !== s && (e.selectedIndex = s));
i || (e.selectedIndex = -1)
}
}
function ir(e, t) {
return t.every(function(t) {
return !b(t, e)
})
}
function or(e) {
return "_value" in e ? e._value : e.value
}
function ar(e) {
e.target.composing = !0
}
function sr(e) {
e.target.composing && (e.target.composing = !1, cr(e.target, "input"))
}
function cr(e, t) {
var n = document.createEvent("HTMLEvents");
n.initEvent(t, !0, !0), e.dispatchEvent(n)
}
function ur(e) {
return !e.componentInstance || e.data && e.data.transition ? e : ur(e.componentInstance._vnode)
}
function lr(e) {
var t = e && e.componentOptions;
return t && t.Ctor.options.abstract ? lr(ye(t.children)) : e
}
function fr(e) {
var t = {},
n = e.$options;
for (var r in n.propsData) t[r] = e[r];
var i = n._parentListeners;
for (var o in i) t[ji(o)] = i[o];
return t
}
function dr(e, t) {
if (/\d-keep-alive$/.test(t.tag)) return e("keep-alive", {
props: t.componentOptions.propsData
})
}
function pr(e) {
for (; e = e.parent;)
if (e.data.transition) return !0
}
function vr(e, t) {
return t.key === e.key && t.tag === e.tag
}
function hr(e) {
e.elm._moveCb && e.elm._moveCb(), e.elm._enterCb && e.elm._enterCb()
}
function mr(e) {
e.data.newPos = e.elm.getBoundingClientRect()
}
function yr(e) {
var t = e.data.pos,
n = e.data.newPos,
r = t.left - n.left,
i = t.top - n.top;
if (r || i) {
e.data.moved = !0;
var o = e.elm.style;
o.transform = o.WebkitTransform = "translate(" + r + "px," + i + "px)", o.transitionDuration = "0s"
}
}
function gr(e, t) {
var n = t ? os(t) : rs;
if (n.test(e)) {
for (var r, i, o = [], a = n.lastIndex = 0; r = n.exec(e);) {
(i = r.index) > a && o.push(JSON.stringify(e.slice(a, i)));
var s = an(r[1].trim());
o.push("_s(" + s + ")"), a = i + r[0].length
}
return a < e.length && o.push(JSON.stringify(e.slice(a))), o.join("+")
}
}
function _r(e, t) {
var n = t ? Ps : Ms;
return e.replace(n, function(e) {
return Is[e]
})
}
function br(e, t) {
function n(t) {
l += t, e = e.substring(t)
}
function r(e, n, r) {
var i, s;
if (null == n && (n = l), null == r && (r = l), e && (s = e.toLowerCase()), e)
for (i = a.length - 1; i >= 0 && a[i].lowerCasedTag !== s; i--);
else i = 0;
if (i >= 0) {
for (var c = a.length - 1; c >= i; c--) t.end && t.end(a[c].tag, n, r);
a.length = i, o = i && a[i - 1].tag
} else "br" === s ? t.start && t.start(e, [], !0, n, r) : "p" === s && (t.start && t.start(e, [], !1, n, r), t.end && t.end(e, n, r))
}
for (var i, o, a = [], s = t.expectHTML, c = t.isUnaryTag || Mi, u = t.canBeLeftOpenTag || Mi, l = 0; e;) {
if (i = e, o && Ls(o)) {
var f = 0,
d = o.toLowerCase(),
p = Ns[d] || (Ns[d] = new RegExp("([\\s\\S]*?)(" + d + "[^>]*>)", "i")),
v = e.replace(p, function(e, n, r) {
return f = r.length, Ls(d) || "noscript" === d || (n = n.replace(//g, "$1").replace(//g, "$1")), Rs(d, n) && (n = n.slice(1)), t.chars && t.chars(n), ""
});
l += e.length - v.length, e = v, r(d, l - f, l)
} else {
var h = e.indexOf("<");
if (0 === h) {
if (_s.test(e)) {
var m = e.indexOf("--\x3e");
if (m >= 0) {
t.shouldKeepComment && t.comment(e.substring(4, m)), n(m + 3);
continue
}
}
if (bs.test(e)) {
var y = e.indexOf("]>");
if (y >= 0) {
n(y + 2);
continue
}
}
var g = e.match(gs);
if (g) {
n(g[0].length);
continue
}
var _ = e.match(ys);
if (_) {
var b = l;
n(_[0].length), r(_[1], b, l);
continue
}
var $ = function() {
var t = e.match(hs);
if (t) {
var r = {
tagName: t[1],
attrs: [],
start: l
};
n(t[0].length);
for (var i, o; !(i = e.match(ms)) && (o = e.match(ds));) n(o[0].length), r.attrs.push(o);
if (i) return r.unarySlash = i[1], n(i[0].length), r.end = l, r
}
}();
if ($) {
! function(e) {
var n = e.tagName,
i = e.unarySlash;
s && ("p" === o && fs(n) && r(o), u(n) && o === n && r(n));
for (var l = c(n) || !!i, f = e.attrs.length, d = new Array(f), p = 0; p < f; p++) {
var v = e.attrs[p];
$s && -1 === v[0].indexOf('""') && ("" === v[3] && delete v[3], "" === v[4] && delete v[4], "" === v[5] && delete v[5]);
var h = v[3] || v[4] || v[5] || "";
d[p] = {
name: v[1],
value: _r(h, t.shouldDecodeNewlines)
}
}
l || (a.push({
tag: n,
lowerCasedTag: n.toLowerCase(),
attrs: d
}), o = n), t.start && t.start(n, d, l, e.start, e.end)
}($), Rs(o, e) && n(1);
continue
}
}
var C = void 0,
w = void 0,
x = void 0;
if (h >= 0) {
for (w = e.slice(h); !(ys.test(w) || hs.test(w) || _s.test(w) || bs.test(w) || (x = w.indexOf("<", 1)) < 0);) h += x, w = e.slice(h);
C = e.substring(0, h), n(h)
}
h < 0 && (C = e, e = ""), t.chars && C && t.chars(C)
}
if (e === i) {
t.chars && t.chars(e);
break
}
}
r()
}
function $r(e, t, n) {
return {
type: 1,
tag: e,
attrsList: t,
attrsMap: Fr(t),
parent: n,
children: []
}
}
function Cr(e, t) {
function n(e) {
e.pre && (s = !1), Os(e.tag) && (c = !1)
}
Cs = t.warn || cn, Os = t.isPreTag || Mi, Ss = t.mustUseProp || Mi, Ts = t.getTagNamespace || Mi, xs = un(t.modules, "transformNode"), ks = un(t.modules, "preTransformNode"), As = un(t.modules, "postTransformNode"), ws = t.delimiters;
var r, i, o = [],
a = !1 !== t.preserveWhitespace,
s = !1,
c = !1;
return br(e, {
warn: Cs,
expectHTML: t.expectHTML,
isUnaryTag: t.isUnaryTag,
canBeLeftOpenTag: t.canBeLeftOpenTag,
shouldDecodeNewlines: t.shouldDecodeNewlines,
shouldKeepComment: t.comments,
start: function(e, a, u) {
var l = i && i.ns || Ts(e);
Ji && "svg" === l && (a = Ur(a));
var f = $r(e, a, i);
l && (f.ns = l), Br(f) && !no() && (f.forbidden = !0);
for (var d = 0; d < ks.length; d++) f = ks[d](f, t) || f;
if (s || (wr(f), f.pre && (s = !0)), Os(f.tag) && (c = !0), s ? xr(f) : f.processed || (Sr(f), Tr(f), Nr(f), kr(f, t)), r ? o.length || r.if && (f.elseif || f.else) && Lr(r, {
exp: f.elseif,
block: f
}) : r = f, i && !f.forbidden)
if (f.elseif || f.else) Er(f, i);
else if (f.slotScope) {
i.plain = !1;
var p = f.slotTarget || '"default"';
(i.scopedSlots || (i.scopedSlots = {}))[p] = f
} else i.children.push(f), f.parent = i;
u ? n(f) : (i = f, o.push(f));
for (var v = 0; v < As.length; v++) As[v](f, t)
},
end: function() {
var e = o[o.length - 1],
t = e.children[e.children.length - 1];
t && 3 === t.type && " " === t.text && !c && e.children.pop(), o.length -= 1, i = o[o.length - 1], n(e)
},
chars: function(e) {
if (i && (!Ji || "textarea" !== i.tag || i.attrsMap.placeholder !== e)) {
var t = i.children;
if (e = c || e.trim() ? Hr(i) ? e : Js(e) : a && t.length ? " " : "") {
var n;
!s && " " !== e && (n = gr(e, ws)) ? t.push({
type: 2,
expression: n,
text: e
}) : " " === e && t.length && " " === t[t.length - 1].text || t.push({
type: 3,
text: e
})
}
}
},
comment: function(e) {
i.children.push({
type: 3,
text: e,
isComment: !0
})
}
}), r
}
function wr(e) {
null != hn(e, "v-pre") && (e.pre = !0)
}
function xr(e) {
var t = e.attrsList.length;
if (t)
for (var n = e.attrs = new Array(t), r = 0; r < t; r++) n[r] = {
name: e.attrsList[r].name,
value: JSON.stringify(e.attrsList[r].value)
};
else e.pre || (e.plain = !0)
}
function kr(e, t) {
Ar(e), e.plain = !e.key && !e.attrsList.length, Or(e), Ir(e), Mr(e);
for (var n = 0; n < xs.length; n++) e = xs[n](e, t) || e;
Pr(e)
}
function Ar(e) {
var t = vn(e, "key");
t && (e.key = t)
}
function Or(e) {
var t = vn(e, "ref");
t && (e.ref = t, e.refInFor = Dr(e))
}
function Sr(e) {
var t;
if (t = hn(e, "v-for")) {
var n = t.match(Bs);
if (!n) return;
e.for = n[2].trim();
var r = n[1].trim(),
i = r.match(Us);
i ? (e.alias = i[1].trim(), e.iterator1 = i[2].trim(), i[3] && (e.iterator2 = i[3].trim())) : e.alias = r
}
}
function Tr(e) {
var t = hn(e, "v-if");
if (t) e.if = t, Lr(e, {
exp: t,
block: e
});
else {
null != hn(e, "v-else") && (e.else = !0);
var n = hn(e, "v-else-if");
n && (e.elseif = n)
}
}
function Er(e, t) {
var n = jr(t.children);
n && n.if && Lr(n, {
exp: e.elseif,
block: e
})
}
function jr(e) {
for (var t = e.length; t--;) {
if (1 === e[t].type) return e[t];
e.pop()
}
}
function Lr(e, t) {
e.ifConditions || (e.ifConditions = []), e.ifConditions.push(t)
}
function Nr(e) {
null != hn(e, "v-once") && (e.once = !0)
}
function Ir(e) {
if ("slot" === e.tag) e.slotName = vn(e, "name");
else {
var t;
"template" === e.tag ? (t = hn(e, "scope"), e.slotScope = t || hn(e, "slot-scope")) : (t = hn(e, "slot-scope")) && (e.slotScope = t);
var n = vn(e, "slot");
n && (e.slotTarget = '""' === n ? '"default"' : n, e.slotScope || fn(e, "slot", n))
}
}
function Mr(e) {
var t;
(t = vn(e, "is")) && (e.component = t), null != hn(e, "inline-template") && (e.inlineTemplate = !0)
}
function Pr(e) {
var t, n, r, i, o, a, s, c = e.attrsList;
for (t = 0, n = c.length; t < n; t++)
if (r = i = c[t].name, o = c[t].value, Hs.test(r))
if (e.hasBindings = !0, (a = Rr(r)) && (r = r.replace(Ks, "")), zs.test(r)) r = r.replace(zs, ""), o = an(o), s = !1, a && (a.prop && (s = !0, "innerHtml" === (r = ji(r)) && (r = "innerHTML")), a.camel && (r = ji(r)), a.sync && pn(e, "update:" + ji(r), yn(o, "$event"))), s || !e.component && Ss(e.tag, e.attrsMap.type, r) ? ln(e, r, o) : fn(e, r, o);
else if (Fs.test(r)) pn(e, r = r.replace(Fs, ""), o, a, !1, Cs);
else {
var u = (r = r.replace(Hs, "")).match(Vs),
l = u && u[1];
l && (r = r.slice(0, -(l.length + 1))), dn(e, r, i, o, l, a)
} else fn(e, r, JSON.stringify(o))
}
function Dr(e) {
for (var t = e; t;) {
if (void 0 !== t.for) return !0;
t = t.parent
}
return !1
}
function Rr(e) {
var t = e.match(Ks);
if (t) {
var n = {};
return t.forEach(function(e) {
n[e.slice(1)] = !0
}), n
}
}
function Fr(e) {
for (var t = {}, n = 0, r = e.length; n < r; n++) t[e[n].name] = e[n].value;
return t
}
function Hr(e) {
return "script" === e.tag || "style" === e.tag
}
function Br(e) {
return "style" === e.tag || "script" === e.tag && (!e.attrsMap.type || "text/javascript" === e.attrsMap.type)
}
function Ur(e) {
for (var t = [], n = 0; n < e.length; n++) {
var r = e[n];
qs.test(r.name) || (r.name = r.name.replace(Ws, ""), t.push(r))
}
return t
}
function Vr(e) {
return $r(e.tag, e.attrsList.slice(), e.parent)
}
function zr(e, t, n) {
e.attrsMap[t] = n, e.attrsList.push({
name: t,
value: n
})
}
function Kr(e, t) {
e && (Es = Ys(t.staticKeys || ""), js = t.isReservedTag || Mi, Jr(e), qr(e, !1))
}
function Jr(e) {
if (e.static = Wr(e), 1 === e.type) {
if (!js(e.tag) && "slot" !== e.tag && null == e.attrsMap["inline-template"]) return;
for (var t = 0, n = e.children.length; t < n; t++) {
var r = e.children[t];
Jr(r), r.static || (e.static = !1)
}
if (e.ifConditions)
for (var i = 1, o = e.ifConditions.length; i < o; i++) {
var a = e.ifConditions[i].block;
Jr(a), a.static || (e.static = !1)
}
}
}
function qr(e, t) {
if (1 === e.type) {
if ((e.static || e.once) && (e.staticInFor = t), e.static && e.children.length && (1 !== e.children.length || 3 !== e.children[0].type)) return void(e.staticRoot = !0);
if (e.staticRoot = !1, e.children)
for (var n = 0, r = e.children.length; n < r; n++) qr(e.children[n], t || !!e.for);
if (e.ifConditions)
for (var i = 1, o = e.ifConditions.length; i < o; i++) qr(e.ifConditions[i].block, t)
}
}
function Wr(e) {
return 2 !== e.type && (3 === e.type || !(!e.pre && (e.hasBindings || e.if || e.for || Oi(e.tag) || !js(e.tag) || Gr(e) || !Object.keys(e).every(Es))))
}
function Gr(e) {
for (; e.parent;) {
if ("template" !== (e = e.parent).tag) return !1;
if (e.for) return !0
}
return !1
}
function Zr(e, t, n) {
var r = t ? "nativeOn:{" : "on:{";
for (var i in e) {
var o = e[i];
r += '"' + i + '":' + Yr(i, o) + ","
}
return r.slice(0, -1) + "}"
}
function Yr(e, t) {
if (!t) return "function(){}";
if (Array.isArray(t)) return "[" + t.map(function(t) {
return Yr(e, t)
}).join(",") + "]";
var n = Xs.test(t.value),
r = Qs.test(t.value);
if (t.modifiers) {
var i = "",
o = "",
a = [];
for (var s in t.modifiers)
if (nc[s]) o += nc[s], ec[s] && a.push(s);
else if ("exact" === s) {
var c = t.modifiers;
o += tc(["ctrl", "shift", "alt", "meta"].filter(function(e) {
return !c[e]
}).map(function(e) {
return "$event." + e + "Key"
}).join("||"))
} else a.push(s);
return a.length && (i += Qr(a)), o && (i += o), "function($event){" + i + (n ? t.value + "($event)" : r ? "(" + t.value + ")($event)" : t.value) + "}"
}
return n || r ? t.value : "function($event){" + t.value + "}"
}
function Qr(e) {
return "if(!('button' in $event)&&" + e.map(Xr).join("&&") + ")return null;"
}
function Xr(e) {
var t = parseInt(e, 10);
if (t) return "$event.keyCode!==" + t;
var n = ec[e];
return "_k($event.keyCode," + JSON.stringify(e) + "," + JSON.stringify(n) + ",$event.key)"
}
function ei(e, t) {
var n = new ic(t);
return {
render: "with(this){return " + (e ? ti(e, n) : '_c("div")') + "}",
staticRenderFns: n.staticRenderFns
}
}
function ti(e, t) {
if (e.staticRoot && !e.staticProcessed) return ni(e, t);
if (e.once && !e.onceProcessed) return ri(e, t);
if (e.for && !e.forProcessed) return ai(e, t);
if (e.if && !e.ifProcessed) return ii(e, t);
if ("template" !== e.tag || e.slotTarget) {
if ("slot" === e.tag) return _i(e, t);
var n;
if (e.component) n = bi(e.component, e, t);
else {
var r = e.plain ? void 0 : si(e, t),
i = e.inlineTemplate ? null : pi(e, t, !0);
n = "_c('" + e.tag + "'" + (r ? "," + r : "") + (i ? "," + i : "") + ")"
}
for (var o = 0; o < t.transforms.length; o++) n = t.transforms[o](e, n);
return n
}
return pi(e, t) || "void 0"
}
function ni(e, t) {
return e.staticProcessed = !0, t.staticRenderFns.push("with(this){return " + ti(e, t) + "}"), "_m(" + (t.staticRenderFns.length - 1) + (e.staticInFor ? ",true" : "") + ")"
}
function ri(e, t) {
if (e.onceProcessed = !0, e.if && !e.ifProcessed) return ii(e, t);
if (e.staticInFor) {
for (var n = "", r = e.parent; r;) {
if (r.for) {
n = r.key;
break
}
r = r.parent
}
return n ? "_o(" + ti(e, t) + "," + t.onceId++ +"," + n + ")" : ti(e, t)
}
return ni(e, t)
}
function ii(e, t, n, r) {
return e.ifProcessed = !0, oi(e.ifConditions.slice(), t, n, r)
}
function oi(e, t, n, r) {
function i(e) {
return n ? n(e, t) : e.once ? ri(e, t) : ti(e, t)
}
if (!e.length) return r || "_e()";
var o = e.shift();
return o.exp ? "(" + o.exp + ")?" + i(o.block) + ":" + oi(e, t, n, r) : "" + i(o.block)
}
function ai(e, t, n, r) {
var i = e.for,
o = e.alias,
a = e.iterator1 ? "," + e.iterator1 : "",
s = e.iterator2 ? "," + e.iterator2 : "";
return e.forProcessed = !0, (r || "_l") + "((" + i + "),function(" + o + a + s + "){return " + (n || ti)(e, t) + "})"
}
function si(e, t) {
var n = "{",
r = ci(e, t);
r && (n += r + ","), e.key && (n += "key:" + e.key + ","), e.ref && (n += "ref:" + e.ref + ","), e.refInFor && (n += "refInFor:true,"), e.pre && (n += "pre:true,"), e.component && (n += 'tag:"' + e.tag + '",');
for (var i = 0; i < t.dataGenFns.length; i++) n += t.dataGenFns[i](e);
if (e.attrs && (n += "attrs:{" + $i(e.attrs) + "},"), e.props && (n += "domProps:{" + $i(e.props) + "},"), e.events && (n += Zr(e.events, !1, t.warn) + ","), e.nativeEvents && (n += Zr(e.nativeEvents, !0, t.warn) + ","), e.slotTarget && !e.slotScope && (n += "slot:" + e.slotTarget + ","), e.scopedSlots && (n += li(e.scopedSlots, t) + ","), e.model && (n += "model:{value:" + e.model.value + ",callback:" + e.model.callback + ",expression:" + e.model.expression + "},"), e.inlineTemplate) {
var o = ui(e, t);
o && (n += o + ",")
}
return n = n.replace(/,$/, "") + "}", e.wrapData && (n = e.wrapData(n)), e.wrapListeners && (n = e.wrapListeners(n)), n
}
function ci(e, t) {
var n = e.directives;
if (n) {
var r, i, o, a, s = "directives:[",
c = !1;
for (r = 0, i = n.length; r < i; r++) {
o = n[r], a = !0;
var u = t.directives[o.name];
u && (a = !!u(e, o, t.warn)), a && (c = !0, s += '{name:"' + o.name + '",rawName:"' + o.rawName + '"' + (o.value ? ",value:(" + o.value + "),expression:" + JSON.stringify(o.value) : "") + (o.arg ? ',arg:"' + o.arg + '"' : "") + (o.modifiers ? ",modifiers:" + JSON.stringify(o.modifiers) : "") + "},")
}
return c ? s.slice(0, -1) + "]" : void 0
}
}
function ui(e, t) {
var n = e.children[0];
if (1 === n.type) {
var r = ei(n, t.options);
return "inlineTemplate:{render:function(){" + r.render + "},staticRenderFns:[" + r.staticRenderFns.map(function(e) {
return "function(){" + e + "}"
}).join(",") + "]}"
}
}
function li(e, t) {
return "scopedSlots:_u([" + Object.keys(e).map(function(n) {
return fi(n, e[n], t)
}).join(",") + "])"
}
function fi(e, t, n) {
return t.for && !t.forProcessed ? di(e, t, n) : "{key:" + e + ",fn:" + ("function(" + String(t.slotScope) + "){return " + ("template" === t.tag ? t.if ? t.if+"?" + (pi(t, n) || "undefined") + ":undefined" : pi(t, n) || "undefined" : ti(t, n)) + "}") + "}"
}
function di(e, t, n) {
var r = t.for,
i = t.alias,
o = t.iterator1 ? "," + t.iterator1 : "",
a = t.iterator2 ? "," + t.iterator2 : "";
return t.forProcessed = !0, "_l((" + r + "),function(" + i + o + a + "){return " + fi(e, t, n) + "})"
}
function pi(e, t, n, r, i) {
var o = e.children;
if (o.length) {
var a = o[0];
if (1 === o.length && a.for && "template" !== a.tag && "slot" !== a.tag) return (r || ti)(a, t);
var s = n ? vi(o, t.maybeComponent) : 0,
c = i || mi;
return "[" + o.map(function(e) {
return c(e, t)
}).join(",") + "]" + (s ? "," + s : "")
}
}
function vi(e, t) {
for (var n = 0, r = 0; r < e.length; r++) {
var i = e[r];
if (1 === i.type) {
if (hi(i) || i.ifConditions && i.ifConditions.some(function(e) {
return hi(e.block)
})) {
n = 2;
break
}(t(i) || i.ifConditions && i.ifConditions.some(function(e) {
return t(e.block)
})) && (n = 1)
}
}
return n
}
function hi(e) {
return void 0 !== e.for || "template" === e.tag || "slot" === e.tag
}
function mi(e, t) {
return 1 === e.type ? ti(e, t) : 3 === e.type && e.isComment ? gi(e) : yi(e)
}
function yi(e) {
return "_v(" + (2 === e.type ? e.expression : Ci(JSON.stringify(e.text))) + ")"
}
function gi(e) {
return "_e(" + JSON.stringify(e.text) + ")"
}
function _i(e, t) {
var n = e.slotName || '"default"',
r = pi(e, t),
i = "_t(" + n + (r ? "," + r : ""),
o = e.attrs && "{" + e.attrs.map(function(e) {
return ji(e.name) + ":" + e.value
}).join(",") + "}",
a = e.attrsMap["v-bind"];
return !o && !a || r || (i += ",null"), o && (i += "," + o), a && (i += (o ? "" : ",null") + "," + a), i + ")"
}
function bi(e, t, n) {
var r = t.inlineTemplate ? null : pi(t, n, !0);
return "_c(" + e + "," + si(t, n) + (r ? "," + r : "") + ")"
}
function $i(e) {
for (var t = "", n = 0; n < e.length; n++) {
var r = e[n];
t += '"' + r.name + '":' + Ci(r.value) + ","
}
return t.slice(0, -1)
}
function Ci(e) {
return e.replace(/\u2028/g, "\
").replace(/\u2029/g, "\
")
}
function wi(e, t) {
try {
return new Function(e)
} catch (n) {
return t.push({
err: n,
code: e
}), _
}
}
function xi(e) {
var t = Object.create(null);
return function(n, r, i) {
delete(r = y({}, r)).warn;
var o = r.delimiters ? String(r.delimiters) + n : n;
if (t[o]) return t[o];
var a = e(n, r),
s = {},
c = [];
return s.render = wi(a.render, c), s.staticRenderFns = a.staticRenderFns.map(function(e) {
return wi(e, c)
}), t[o] = s
}
}
function ki(e) {
if (e.outerHTML) return e.outerHTML;
var t = document.createElement("div");
return t.appendChild(e.cloneNode(!0)), t.innerHTML
}
var Ai = Object.prototype.toString,
Oi = f("slot,component", !0),
Si = f("key,ref,slot,slot-scope,is"),
Ti = Object.prototype.hasOwnProperty,
Ei = /-(\w)/g,
ji = v(function(e) {
return e.replace(Ei, function(e, t) {
return t ? t.toUpperCase() : ""
})
}),
Li = v(function(e) {
return e.charAt(0).toUpperCase() + e.slice(1)
}),
Ni = /\B([A-Z])/g,
Ii = v(function(e) {
return e.replace(Ni, "-$1").toLowerCase()
}),
Mi = function(e, t, n) {
return !1
},
Pi = function(e) {
return e
},
Di = "data-server-rendered",
Ri = ["component", "directive", "filter"],
Fi = ["beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured"],
Hi = {
optionMergeStrategies: Object.create(null),
silent: !1,
productionTip: !1,
devtools: !1,
performance: !1,
errorHandler: null,
warnHandler: null,
ignoredElements: [],
keyCodes: Object.create(null),
isReservedTag: Mi,
isReservedAttr: Mi,
isUnknownElement: Mi,
getTagNamespace: _,
parsePlatformTagName: Pi,
mustUseProp: Mi,
_lifecycleHooks: Fi
},
Bi = Object.freeze({}),
Ui = /[^\w.$]/,
Vi = "__proto__" in {},
zi = "undefined" != typeof window,
Ki = zi && window.navigator.userAgent.toLowerCase(),
Ji = Ki && /msie|trident/.test(Ki),
qi = Ki && Ki.indexOf("msie 9.0") > 0,
Wi = Ki && Ki.indexOf("edge/") > 0,
Gi = Ki && Ki.indexOf("android") > 0,
Zi = Ki && /iphone|ipad|ipod|ios/.test(Ki),
Yi = (Ki && /chrome\/\d+/.test(Ki), {}.watch),
Qi = !1;
if (zi) try {
var Xi = {};
Object.defineProperty(Xi, "passive", {
get: function() {
Qi = !0
}
}), window.addEventListener("test-passive", null, Xi)
} catch (e) {}
var eo, to, no = function() {
return void 0 === eo && (eo = !zi && "undefined" != typeof global && "server" === global.process.env.VUE_ENV), eo
},
ro = zi && window.__VUE_DEVTOOLS_GLOBAL_HOOK__,
io = "undefined" != typeof Symbol && A(Symbol) && "undefined" != typeof Reflect && A(Reflect.ownKeys);
to = "undefined" != typeof Set && A(Set) ? Set : function() {
function e() {
this.set = Object.create(null)
}
return e.prototype.has = function(e) {
return !0 === this.set[e]
}, e.prototype.add = function(e) {
this.set[e] = !0
}, e.prototype.clear = function() {
this.set = Object.create(null)
}, e
}();
var oo = _,
ao = 0,
so = function() {
this.id = ao++, this.subs = []
};
so.prototype.addSub = function(e) {
this.subs.push(e)
}, so.prototype.removeSub = function(e) {
d(this.subs, e)
}, so.prototype.depend = function() {
so.target && so.target.addDep(this)
}, so.prototype.notify = function() {
for (var e = this.subs.slice(), t = 0, n = e.length; t < n; t++) e[t].update()
}, so.target = null;
var co = [],
uo = function(e, t, n, r, i, o, a, s) {
this.tag = e, this.data = t, this.children = n, this.text = r, this.elm = i, this.ns = void 0, this.context = o, this.functionalContext = void 0, this.functionalOptions = void 0, this.functionalScopeId = void 0, this.key = t && t.key, this.componentOptions = a, this.componentInstance = void 0, this.parent = void 0, this.raw = !1, this.isStatic = !1, this.isRootInsert = !0, this.isComment = !1, this.isCloned = !1, this.isOnce = !1, this.asyncFactory = s, this.asyncMeta = void 0, this.isAsyncPlaceholder = !1
},
lo = {
child: {
configurable: !0
}
};
lo.child.get = function() {
return this.componentInstance
}, Object.defineProperties(uo.prototype, lo);
var fo = function(e) {
void 0 === e && (e = "");
var t = new uo;
return t.text = e, t.isComment = !0, t
},
po = Array.prototype,
vo = Object.create(po);
["push", "pop", "shift", "unshift", "splice", "sort", "reverse"].forEach(function(e) {
var t = po[e];
x(vo, e, function() {
for (var n = [], r = arguments.length; r--;) n[r] = arguments[r];
var i, o = t.apply(this, n),
a = this.__ob__;
switch (e) {
case "push":
case "unshift":
i = n;
break;
case "splice":
i = n.slice(2)
}
return i && a.observeArray(i), a.dep.notify(), o
})
});
var ho = Object.getOwnPropertyNames(vo),
mo = {
shouldConvert: !0
},
yo = function(e) {
this.value = e, this.dep = new so, this.vmCount = 0, x(e, "__ob__", this), Array.isArray(e) ? ((Vi ? L : N)(e, vo, ho), this.observeArray(e)) : this.walk(e)
};
yo.prototype.walk = function(e) {
for (var t = Object.keys(e), n = 0; n < t.length; n++) M(e, t[n], e[t[n]])
}, yo.prototype.observeArray = function(e) {
for (var t = 0, n = e.length; t < n; t++) I(e[t])
};
var go = Hi.optionMergeStrategies;
go.data = function(e, t, n) {
return n ? H(e, t, n) : t && "function" != typeof t ? e : H.call(this, e, t)
}, Fi.forEach(function(e) {
go[e] = B
}), Ri.forEach(function(e) {
go[e + "s"] = U
}), go.watch = function(e, t, n, r) {
if (e === Yi && (e = void 0), t === Yi && (t = void 0), !t) return Object.create(e || null);
if (!e) return t;
var i = {};
y(i, e);
for (var o in t) {
var a = i[o],
s = t[o];
a && !Array.isArray(a) && (a = [a]), i[o] = a ? a.concat(s) : Array.isArray(s) ? s : [s]
}
return i
}, go.props = go.methods = go.inject = go.computed = function(e, t, n, r) {
if (!e) return t;
var i = Object.create(null);
return y(i, e), t && y(i, t), i
}, go.provide = H;
var _o, bo, $o = function(e, t) {
return void 0 === t ? e : t
},
Co = [],
wo = !1,
xo = !1;
if ("undefined" != typeof setImmediate && A(setImmediate)) bo = function() {
setImmediate(te)
};
else if ("undefined" == typeof MessageChannel || !A(MessageChannel) && "[object MessageChannelConstructor]" !== MessageChannel.toString()) bo = function() {
setTimeout(te, 0)
};
else {
var ko = new MessageChannel,
Ao = ko.port2;
ko.port1.onmessage = te, bo = function() {
Ao.postMessage(1)
}
}
if ("undefined" != typeof Promise && A(Promise)) {
var Oo = Promise.resolve();
_o = function() {
Oo.then(te), Zi && setTimeout(_)
}
} else _o = bo;
var So, To = v(function(e) {
var t = "&" === e.charAt(0),
n = "~" === (e = t ? e.slice(1) : e).charAt(0),
r = "!" === (e = n ? e.slice(1) : e).charAt(0);
return e = r ? e.slice(1) : e, {
name: e,
once: n,
capture: r,
passive: t
}
}),
Eo = null,
jo = [],
Lo = [],
No = {},
Io = !1,
Mo = !1,
Po = 0,
Do = 0,
Ro = function(e, t, n, r) {
this.vm = e, e._watchers.push(this), r ? (this.deep = !!r.deep, this.user = !!r.user, this.lazy = !!r.lazy, this.sync = !!r.sync) : this.deep = this.user = this.lazy = this.sync = !1, this.cb = n, this.id = ++Do, this.active = !0, this.dirty = this.lazy, this.deps = [], this.newDeps = [], this.depIds = new to, this.newDepIds = new to, this.expression = "", "function" == typeof t ? this.getter = t : (this.getter = k(t), this.getter || (this.getter = function() {})), this.value = this.lazy ? void 0 : this.get()
};
Ro.prototype.get = function() {
O(this);
var e, t = this.vm;
try {
e = this.getter.call(t, t)
} catch (e) {
if (!this.user) throw e;
Q(e, t, 'getter for watcher "' + this.expression + '"')
} finally {
this.deep && Re(e), S(), this.cleanupDeps()
}
return e
}, Ro.prototype.addDep = function(e) {
var t = e.id;
this.newDepIds.has(t) || (this.newDepIds.add(t), this.newDeps.push(e), this.depIds.has(t) || e.addSub(this))
}, Ro.prototype.cleanupDeps = function() {
for (var e = this, t = this.deps.length; t--;) {
var n = e.deps[t];
e.newDepIds.has(n.id) || n.removeSub(e)
}
var r = this.depIds;
this.depIds = this.newDepIds, this.newDepIds = r, this.newDepIds.clear(), r = this.deps, this.deps = this.newDeps, this.newDeps = r, this.newDeps.length = 0
}, Ro.prototype.update = function() {
this.lazy ? this.dirty = !0 : this.sync ? this.run() : De(this)
}, Ro.prototype.run = function() {
if (this.active) {
var e = this.get();
if (e !== this.value || o(e) || this.deep) {
var t = this.value;
if (this.value = e, this.user) try {
this.cb.call(this.vm, e, t)
} catch (e) {
Q(e, this.vm, 'callback for watcher "' + this.expression + '"')
} else this.cb.call(this.vm, e, t)
}
}
}, Ro.prototype.evaluate = function() {
this.value = this.get(), this.dirty = !1
}, Ro.prototype.depend = function() {
for (var e = this, t = this.deps.length; t--;) e.deps[t].depend()
}, Ro.prototype.teardown = function() {
var e = this;
if (this.active) {
this.vm._isBeingDestroyed || d(this.vm._watchers, this);
for (var t = this.deps.length; t--;) e.deps[t].removeSub(e);
this.active = !1
}
};
var Fo = new to,
Ho = {
enumerable: !0,
configurable: !0,
get: _,
set: _
},
Bo = {
lazy: !0
};
lt(ft.prototype);
var Uo = {
init: function(e, t, n, r) {
if (!e.componentInstance || e.componentInstance._isDestroyed)(e.componentInstance = ht(e, Eo, n, r)).$mount(t ? e.elm : void 0, t);
else if (e.data.keepAlive) {
var i = e;
Uo.prepatch(i, i)
}
},
prepatch: function(e, t) {
var n = t.componentOptions;
Oe(t.componentInstance = e.componentInstance, n.propsData, n.listeners, t, n.children)
},
insert: function(e) {
var t = e.context,
n = e.componentInstance;
n._isMounted || (n._isMounted = !0, je(n, "mounted")), e.data.keepAlive && (t._isMounted ? Me(n) : Te(n, !0))
},
destroy: function(e) {
var t = e.componentInstance;
t._isDestroyed || (e.data.keepAlive ? Ee(t, !0) : t.$destroy())
}
},
Vo = Object.keys(Uo),
zo = 1,
Ko = 2,
Jo = 0;
! function(e) {
e.prototype._init = function(e) {
var t = this;
t._uid = Jo++, t._isVue = !0, e && e._isComponent ? wt(t, e) : t.$options = J(xt(t.constructor), e || {}, t), t._renderProxy = t, t._self = t, ke(t), ge(t), Ct(t), je(t, "beforeCreate"), Qe(t), Be(t), Ye(t), je(t, "created"), t.$options.el && t.$mount(t.$options.el)
}
}(Ot),
function(e) {
var t = {};
t.get = function() {
return this._data
};
var n = {};
n.get = function() {
return this._props
}, Object.defineProperty(e.prototype, "$data", t), Object.defineProperty(e.prototype, "$props", n), e.prototype.$set = P, e.prototype.$delete = D, e.prototype.$watch = function(e, t, n) {
var r = this;
if (a(t)) return Ze(r, e, t, n);
(n = n || {}).user = !0;
var i = new Ro(r, e, t, n);
return n.immediate && t.call(r, i.value),
function() {
i.teardown()
}
}
}(Ot),
function(e) {
var t = /^hook:/;
e.prototype.$on = function(e, n) {
var r = this,
i = this;
if (Array.isArray(e))
for (var o = 0, a = e.length; o < a; o++) r.$on(e[o], n);
else(i._events[e] || (i._events[e] = [])).push(n), t.test(e) && (i._hasHookEvent = !0);
return i
}, e.prototype.$once = function(e, t) {
function n() {
r.$off(e, n), t.apply(r, arguments)
}
var r = this;
return n.fn = t, r.$on(e, n), r
}, e.prototype.$off = function(e, t) {
var n = this,
r = this;
if (!arguments.length) return r._events = Object.create(null), r;
if (Array.isArray(e)) {
for (var i = 0, o = e.length; i < o; i++) n.$off(e[i], t);
return r
}
var a = r._events[e];
if (!a) return r;
if (1 === arguments.length) return r._events[e] = null, r;
if (t)
for (var s, c = a.length; c--;)
if ((s = a[c]) === t || s.fn === t) {
a.splice(c, 1);
break
}
return r
}, e.prototype.$emit = function(e) {
var t = this,
n = t._events[e];
if (n) {
n = n.length > 1 ? m(n) : n;
for (var r = m(arguments, 1), i = 0, o = n.length; i < o; i++) try {
n[i].apply(t, r)
} catch (n) {
Q(n, t, 'event handler for "' + e + '"')
}
}
return t
}
}(Ot),
function(e) {
e.prototype._update = function(e, t) {
var n = this;
n._isMounted && je(n, "beforeUpdate");
var r = n.$el,
i = n._vnode,
o = Eo;
Eo = n, n._vnode = e, i ? n.$el = n.__patch__(i, e) : (n.$el = n.__patch__(n.$el, e, t, !1, n.$options._parentElm, n.$options._refElm), n.$options._parentElm = n.$options._refElm = null), Eo = o, r && (r.__vue__ = null), n.$el && (n.$el.__vue__ = n), n.$vnode && n.$parent && n.$vnode === n.$parent._vnode && (n.$parent.$el = n.$el)
}, e.prototype.$forceUpdate = function() {
var e = this;
e._watcher && e._watcher.update()
}, e.prototype.$destroy = function() {
var e = this;
if (!e._isBeingDestroyed) {
je(e, "beforeDestroy"), e._isBeingDestroyed = !0;
var t = e.$parent;
!t || t._isBeingDestroyed || e.$options.abstract || d(t.$children, e), e._watcher && e._watcher.teardown();
for (var n = e._watchers.length; n--;) e._watchers[n].teardown();
e._data.__ob__ && e._data.__ob__.vmCount--, e._isDestroyed = !0, e.__patch__(e._vnode, null), je(e, "destroyed"), e.$off(), e.$el && (e.$el.__vue__ = null), e.$vnode && (e.$vnode.parent = null)
}
}
}(Ot),
function(e) {
lt(e.prototype), e.prototype.$nextTick = function(e) {
return re(e, this)
}, e.prototype._render = function() {
var e = this,
t = e.$options,
n = t.render,
r = t._parentVnode;
if (e._isMounted)
for (var i in e.$slots) {
var o = e.$slots[i];
o._rendered && (e.$slots[i] = j(o, !0))
}
e.$scopedSlots = r && r.data.scopedSlots || Bi, e.$vnode = r;
var a;
try {
a = n.call(e._renderProxy, e.$createElement)
} catch (t) {
Q(t, e, "render"), a = e._vnode
}
return a instanceof uo || (a = fo()), a.parent = r, a
}
}(Ot);
var qo = [String, RegExp, Array],
Wo = {
KeepAlive: {
name: "keep-alive",
abstract: !0,
props: {
include: qo,
exclude: qo,
max: [String, Number]
},
created: function() {
this.cache = Object.create(null), this.keys = []
},
destroyed: function() {
var e = this;
for (var t in e.cache) Dt(e.cache, t, e.keys)
},
watch: {
include: function(e) {
Pt(this, function(t) {
return Mt(e, t)
})
},
exclude: function(e) {
Pt(this, function(t) {
return !Mt(e, t)
})
}
},
render: function() {
var e = ye(this.$slots.default),
t = e && e.componentOptions;
if (t) {
var n = It(t);
if (n && (this.include && !Mt(this.include, n) || this.exclude && Mt(this.exclude, n))) return e;
var r = this,
i = r.cache,
o = r.keys,
a = null == e.key ? t.Ctor.cid + (t.tag ? "::" + t.tag : "") : e.key;
i[a] ? (e.componentInstance = i[a].componentInstance, d(o, a), o.push(a)) : (i[a] = e, o.push(a), this.max && o.length > parseInt(this.max) && Dt(i, o[0], o, this._vnode)), e.data.keepAlive = !0
}
return e
}
}
};
! function(e) {
var t = {};
t.get = function() {
return Hi
}, Object.defineProperty(e, "config", t), e.util = {
warn: oo,
extend: y,
mergeOptions: J,
defineReactive: M
}, e.set = P, e.delete = D, e.nextTick = re, e.options = Object.create(null), Ri.forEach(function(t) {
e.options[t + "s"] = Object.create(null)
}), e.options._base = e, y(e.options.components, Wo), St(e), Tt(e), Et(e), Nt(e)
}(Ot), Object.defineProperty(Ot.prototype, "$isServer", {
get: no
}), Object.defineProperty(Ot.prototype, "$ssrContext", {
get: function() {
return this.$vnode && this.$vnode.ssrContext
}
}), Ot.version = "2.5.2";
var Go, Zo, Yo, Qo, Xo, ea, ta, na, ra = f("style,class"),
ia = f("input,textarea,option,select,progress"),
oa = function(e, t, n) {
return "value" === n && ia(e) && "button" !== t || "selected" === n && "option" === e || "checked" === n && "input" === e || "muted" === n && "video" === e
},
aa = f("contenteditable,draggable,spellcheck"),
sa = f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),
ca = "http://www.w3.org/1999/xlink",
ua = function(e) {
return ":" === e.charAt(5) && "xlink" === e.slice(0, 5)
},
la = function(e) {
return ua(e) ? e.slice(6, e.length) : ""
},
fa = function(e) {
return null == e || !1 === e
},
da = {
svg: "http://www.w3.org/2000/svg",
math: "http://www.w3.org/1998/Math/MathML"
},
pa = f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),
va = f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0),
ha = function(e) {
return pa(e) || va(e)
},
ma = Object.create(null),
ya = f("text,number,password,search,email,tel,url"),
ga = Object.freeze({
createElement: function(e, t) {
var n = document.createElement(e);
return "select" !== e ? n : (t.data && t.data.attrs && void 0 !== t.data.attrs.multiple && n.setAttribute("multiple", "multiple"), n)
},
createElementNS: function(e, t) {
return document.createElementNS(da[e], t)
},
createTextNode: function(e) {
return document.createTextNode(e)
},
createComment: function(e) {
return document.createComment(e)
},
insertBefore: function(e, t, n) {
e.insertBefore(t, n)
},
removeChild: function(e, t) {
e.removeChild(t)
},
appendChild: function(e, t) {
e.appendChild(t)
},
parentNode: function(e) {
return e.parentNode
},
nextSibling: function(e) {
return e.nextSibling
},
tagName: function(e) {
return e.tagName
},
setTextContent: function(e, t) {
e.textContent = t
},
setAttribute: function(e, t, n) {
e.setAttribute(t, n)
}
}),
_a = {
create: function(e, t) {
qt(t)
},
update: function(e, t) {
e.data.ref !== t.data.ref && (qt(e, !0), qt(t))
},
destroy: function(e) {
qt(e, !0)
}
},
ba = new uo("", {}, []),
$a = ["create", "activate", "update", "remove", "destroy"],
Ca = {
create: Yt,
update: Yt,
destroy: function(e) {
Yt(e, ba)
}
},
wa = Object.create(null),
xa = [_a, Ca],
ka = {
create: nn,
update: nn
},
Aa = {
create: on,
update: on
},
Oa = /[\w).+\-_$\]]/,
Sa = "__r",
Ta = "__c",
Ea = {
create: Ln,
update: Ln
},
ja = {
create: Nn,
update: Nn
},
La = v(function(e) {
var t = {},
n = /;(?![^(]*\))/g,
r = /:(.+)/;
return e.split(n).forEach(function(e) {
if (e) {
var n = e.split(r);
n.length > 1 && (t[n[0].trim()] = n[1].trim())
}
}), t
}),
Na = /^--/,
Ia = /\s*!important$/,
Ma = function(e, t, n) {
if (Na.test(t)) e.style.setProperty(t, n);
else if (Ia.test(n)) e.style.setProperty(t, n.replace(Ia, ""), "important");
else {
var r = Da(t);
if (Array.isArray(n))
for (var i = 0, o = n.length; i < o; i++) e.style[r] = n[i];
else e.style[r] = n
}
},
Pa = ["Webkit", "Moz", "ms"],
Da = v(function(e) {
if (na = na || document.createElement("div").style, "filter" !== (e = ji(e)) && e in na) return e;
for (var t = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < Pa.length; n++) {
var r = Pa[n] + t;
if (r in na) return r
}
}),
Ra = {
create: Hn,
update: Hn
},
Fa = v(function(e) {
return {
enterClass: e + "-enter",
enterToClass: e + "-enter-to",
enterActiveClass: e + "-enter-active",
leaveClass: e + "-leave",
leaveToClass: e + "-leave-to",
leaveActiveClass: e + "-leave-active"
}
}),
Ha = zi && !qi,
Ba = "transition",
Ua = "animation",
Va = "transition",
za = "transitionend",
Ka = "animation",
Ja = "animationend";
Ha && (void 0 === window.ontransitionend && void 0 !== window.onwebkittransitionend && (Va = "WebkitTransition", za = "webkitTransitionEnd"), void 0 === window.onanimationend && void 0 !== window.onwebkitanimationend && (Ka = "WebkitAnimation", Ja = "webkitAnimationEnd"));
var qa = zi ? window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout : function(e) {
return e()
},
Wa = /\b(transform|all)(,|$)/,
Ga = function(r) {
function o(e) {
return new uo(j.tagName(e).toLowerCase(), {}, [], void 0, e)
}
function a(e, t) {
function n() {
0 == --n.listeners && s(e)
}
return n.listeners = t, n
}
function s(e) {
var n = j.parentNode(e);
t(n) && j.removeChild(n, e)
}
function c(e, r, i, o, a) {
if (e.isRootInsert = !a, !u(e, r, i, o)) {
var s = e.data,
c = e.children,
l = e.tag;
t(l) ? (e.elm = e.ns ? j.createElementNS(e.ns, l) : j.createElement(l, e), y(e), v(e, c, r), t(s) && m(e, r), p(i, e.elm, o)) : n(e.isComment) ? (e.elm = j.createComment(e.text), p(i, e.elm, o)) : (e.elm = j.createTextNode(e.text), p(i, e.elm, o))
}
}
function u(e, r, i, o) {
var a = e.data;
if (t(a)) {
var s = t(e.componentInstance) && a.keepAlive;
if (t(a = a.hook) && t(a = a.init) && a(e, !1, i, o), t(e.componentInstance)) return l(e, r), n(s) && d(e, r, i, o), !0
}
}
function l(e, n) {
t(e.data.pendingInsert) && (n.push.apply(n, e.data.pendingInsert), e.data.pendingInsert = null), e.elm = e.componentInstance.$el, h(e) ? (m(e, n), y(e)) : (qt(e), n.push(e))
}
function d(e, n, r, i) {
for (var o, a = e; a.componentInstance;)
if (a = a.componentInstance._vnode, t(o = a.data) && t(o = o.transition)) {
for (o = 0; o < T.activate.length; ++o) T.activate[o](ba, a);
n.push(a);
break
}
p(r, e.elm, i)
}
function p(e, n, r) {
t(e) && (t(r) ? r.parentNode === e && j.insertBefore(e, n, r) : j.appendChild(e, n))
}
function v(e, t, n) {
if (Array.isArray(t))
for (var r = 0; r < t.length; ++r) c(t[r], n, e.elm, null, !0);
else i(e.text) && j.appendChild(e.elm, j.createTextNode(e.text))
}
function h(e) {
for (; e.componentInstance;) e = e.componentInstance._vnode;
return t(e.tag)
}
function m(e, n) {
for (var r = 0; r < T.create.length; ++r) T.create[r](ba, e);
t(O = e.data.hook) && (t(O.create) && O.create(ba, e), t(O.insert) && n.push(e))
}
function y(e) {
var n;
if (t(n = e.functionalScopeId)) j.setAttribute(e.elm, n, "");
else
for (var r = e; r;) t(n = r.context) && t(n = n.$options._scopeId) && j.setAttribute(e.elm, n, ""), r = r.parent;
t(n = Eo) && n !== e.context && n !== e.functionalContext && t(n = n.$options._scopeId) && j.setAttribute(e.elm, n, "")
}
function g(e, t, n, r, i, o) {
for (; r <= i; ++r) c(n[r], o, e, t)
}
function _(e) {
var n, r, i = e.data;
if (t(i))
for (t(n = i.hook) && t(n = n.destroy) && n(e), n = 0; n < T.destroy.length; ++n) T.destroy[n](e);
if (t(n = e.children))
for (r = 0; r < e.children.length; ++r) _(e.children[r])
}
function b(e, n, r, i) {
for (; r <= i; ++r) {
var o = n[r];
t(o) && (t(o.tag) ? ($(o), _(o)) : s(o.elm))
}
}
function $(e, n) {
if (t(n) || t(e.data)) {
var r, i = T.remove.length + 1;
for (t(n) ? n.listeners += i : n = a(e.elm, i), t(r = e.componentInstance) && t(r = r._vnode) && t(r.data) && $(r, n), r = 0; r < T.remove.length; ++r) T.remove[r](e, n);
t(r = e.data.hook) && t(r = r.remove) ? r(e, n) : n()
} else s(e.elm)
}
function C(n, r, i, o, a) {
for (var s, u, l, f = 0, d = 0, p = r.length - 1, v = r[0], h = r[p], m = i.length - 1, y = i[0], _ = i[m], $ = !a; f <= p && d <= m;) e(v) ? v = r[++f] : e(h) ? h = r[--p] : Wt(v, y) ? (x(v, y, o), v = r[++f], y = i[++d]) : Wt(h, _) ? (x(h, _, o), h = r[--p], _ = i[--m]) : Wt(v, _) ? (x(v, _, o), $ && j.insertBefore(n, v.elm, j.nextSibling(h.elm)), v = r[++f], _ = i[--m]) : Wt(h, y) ? (x(h, y, o), $ && j.insertBefore(n, h.elm, v.elm), h = r[--p], y = i[++d]) : (e(s) && (s = Zt(r, f, p)), e(u = t(y.key) ? s[y.key] : w(y, r, f, p)) ? c(y, o, n, v.elm) : Wt(l = r[u], y) ? (x(l, y, o), r[u] = void 0, $ && j.insertBefore(n, l.elm, v.elm)) : c(y, o, n, v.elm), y = i[++d]);
f > p ? g(n, e(i[m + 1]) ? null : i[m + 1].elm, i, d, m, o) : d > m && b(n, r, f, p)
}
function w(e, n, r, i) {
for (var o = r; o < i; o++) {
var a = n[o];
if (t(a) && Wt(e, a)) return o
}
}
function x(r, i, o, a) {
if (r !== i) {
var s = i.elm = r.elm;
if (n(r.isAsyncPlaceholder)) t(i.asyncFactory.resolved) ? A(r.elm, i, o) : i.isAsyncPlaceholder = !0;
else if (n(i.isStatic) && n(r.isStatic) && i.key === r.key && (n(i.isCloned) || n(i.isOnce))) i.componentInstance = r.componentInstance;
else {
var c, u = i.data;
t(u) && t(c = u.hook) && t(c = c.prepatch) && c(r, i);
var l = r.children,
f = i.children;
if (t(u) && h(i)) {
for (c = 0; c < T.update.length; ++c) T.update[c](r, i);
t(c = u.hook) && t(c = c.update) && c(r, i)
}
e(i.text) ? t(l) && t(f) ? l !== f && C(s, l, f, o, a) : t(f) ? (t(r.text) && j.setTextContent(s, ""), g(s, null, f, 0, f.length - 1, o)) : t(l) ? b(s, l, 0, l.length - 1) : t(r.text) && j.setTextContent(s, "") : r.text !== i.text && j.setTextContent(s, i.text), t(u) && t(c = u.hook) && t(c = c.postpatch) && c(r, i)
}
}
}
function k(e, r, i) {
if (n(i) && t(e.parent)) e.parent.data.pendingInsert = r;
else
for (var o = 0; o < r.length; ++o) r[o].data.hook.insert(r[o])
}
function A(e, r, i) {
if (n(r.isComment) && t(r.asyncFactory)) return r.elm = e, r.isAsyncPlaceholder = !0, !0;
r.elm = e;
var o = r.tag,
a = r.data,
s = r.children;
if (t(a) && (t(O = a.hook) && t(O = O.init) && O(r, !0), t(O = r.componentInstance))) return l(r, i), !0;
if (t(o)) {
if (t(s))
if (e.hasChildNodes())
if (t(O = a) && t(O = O.domProps) && t(O = O.innerHTML)) {
if (O !== e.innerHTML) return !1
} else {
for (var c = !0, u = e.firstChild, f = 0; f < s.length; f++) {
if (!u || !A(u, s[f], i)) {
c = !1;
break
}
u = u.nextSibling
}
if (!c || u) return !1
} else v(r, s, i);
if (t(a))
for (var d in a)
if (!L(d)) {
m(r, i);
break
}
} else e.data !== r.text && (e.data = r.text);
return !0
}
var O, S, T = {},
E = r.modules,
j = r.nodeOps;
for (O = 0; O < $a.length; ++O)
for (T[$a[O]] = [], S = 0; S < E.length; ++S) t(E[S][$a[O]]) && T[$a[O]].push(E[S][$a[O]]);
var L = f("attrs,style,class,staticClass,staticStyle,key");
return function(r, i, a, s, u, l) {
if (!e(i)) {
var f = !1,
d = [];
if (e(r)) f = !0, c(i, d, u, l);
else {
var p = t(r.nodeType);
if (!p && Wt(r, i)) x(r, i, d, s);
else {
if (p) {
if (1 === r.nodeType && r.hasAttribute(Di) && (r.removeAttribute(Di), a = !0), n(a) && A(r, i, d)) return k(i, d, !0), r;
r = o(r)
}
var v = r.elm,
m = j.parentNode(v);
if (c(i, d, v._leaveCb ? null : m, j.nextSibling(v)), t(i.parent))
for (var y = i.parent, g = h(i); y;) {
for (var $ = 0; $ < T.destroy.length; ++$) T.destroy[$](y);
if (y.elm = i.elm, g) {
for (var C = 0; C < T.create.length; ++C) T.create[C](ba, y);
var w = y.data.hook.insert;
if (w.merged)
for (var O = 1; O < w.fns.length; O++) w.fns[O]()
} else qt(y);
y = y.parent
}
t(m) ? b(m, [r], 0, 0) : t(r.tag) && _(r)
}
}
return k(i, d, f), i.elm
}
t(r) && _(r)
}
}({
nodeOps: ga,
modules: [ka, Aa, Ea, ja, Ra, zi ? {
create: tr,
activate: tr,
remove: function(e, t) {
!0 !== e.data.show ? Qn(e, t) : t()
}
} : {}].concat(xa)
});
qi && document.addEventListener("selectionchange", function() {
var e = document.activeElement;
e && e.vmodel && cr(e, "input")
});
var Za = {
model: {
inserted: function(e, t, n) {
"select" === n.tag ? (nr(e, t, n.context), e._vOptions = [].map.call(e.options, or)) : ("textarea" === n.tag || ya(e.type)) && (e._vModifiers = t.modifiers, t.modifiers.lazy || (e.addEventListener("change", sr), Gi || (e.addEventListener("compositionstart", ar), e.addEventListener("compositionend", sr)), qi && (e.vmodel = !0)))
},
componentUpdated: function(e, t, n) {
if ("select" === n.tag) {
nr(e, t, n.context);
var r = e._vOptions,
i = e._vOptions = [].map.call(e.options, or);
i.some(function(e, t) {
return !b(e, r[t])
}) && (e.multiple ? t.value.some(function(e) {
return ir(e, i)
}) : t.value !== t.oldValue && ir(t.value, i)) && cr(e, "change")
}
}
},
show: {
bind: function(e, t, n) {
var r = t.value,
i = (n = ur(n)).data && n.data.transition,
o = e.__vOriginalDisplay = "none" === e.style.display ? "" : e.style.display;
r && i ? (n.data.show = !0, Yn(n, function() {
e.style.display = o
})) : e.style.display = r ? o : "none"
},
update: function(e, t, n) {
var r = t.value;
r !== t.oldValue && ((n = ur(n)).data && n.data.transition ? (n.data.show = !0, r ? Yn(n, function() {
e.style.display = e.__vOriginalDisplay
}) : Qn(n, function() {
e.style.display = "none"
})) : e.style.display = r ? e.__vOriginalDisplay : "none")
},
unbind: function(e, t, n, r, i) {
i || (e.style.display = e.__vOriginalDisplay)
}
}
},
Ya = {
name: String,
appear: Boolean,
css: Boolean,
mode: String,
type: String,
enterClass: String,
leaveClass: String,
enterToClass: String,
leaveToClass: String,
enterActiveClass: String,
leaveActiveClass: String,
appearClass: String,
appearActiveClass: String,
appearToClass: String,
duration: [Number, String, Object]
},
Qa = {
name: "transition",
props: Ya,
abstract: !0,
render: function(e) {
var t = this,
n = this.$options._renderChildren;
if (n && (n = n.filter(function(e) {
return e.tag || me(e)
})).length) {
var r = this.mode,
o = n[0];
if (pr(this.$vnode)) return o;
var a = lr(o);
if (!a) return o;
if (this._leaving) return dr(e, o);
var s = "__transition-" + this._uid + "-";
a.key = null == a.key ? a.isComment ? s + "comment" : s + a.tag : i(a.key) ? 0 === String(a.key).indexOf(s) ? a.key : s + a.key : a.key;
var c = (a.data || (a.data = {})).transition = fr(this),
u = this._vnode,
l = lr(u);
if (a.data.directives && a.data.directives.some(function(e) {
return "show" === e.name
}) && (a.data.show = !0), l && l.data && !vr(a, l) && !me(l)) {
var f = l.data.transition = y({}, c);
if ("out-in" === r) return this._leaving = !0, ae(f, "afterLeave", function() {
t._leaving = !1, t.$forceUpdate()
}), dr(e, o);
if ("in-out" === r) {
if (me(a)) return u;
var d, p = function() {
d()
};
ae(c, "afterEnter", p), ae(c, "enterCancelled", p), ae(f, "delayLeave", function(e) {
d = e
})
}
}
return o
}
}
},
Xa = y({
tag: String,
moveClass: String
}, Ya);
delete Xa.mode;
var es = {
Transition: Qa,
TransitionGroup: {
props: Xa,
render: function(e) {
for (var t = this.tag || this.$vnode.data.tag || "span", n = Object.create(null), r = this.prevChildren = this.children, i = this.$slots.default || [], o = this.children = [], a = fr(this), s = 0; s < i.length; s++) {
var c = i[s];
c.tag && null != c.key && 0 !== String(c.key).indexOf("__vlist") && (o.push(c), n[c.key] = c, (c.data || (c.data = {})).transition = a)
}
if (r) {
for (var u = [], l = [], f = 0; f < r.length; f++) {
var d = r[f];
d.data.transition = a, d.data.pos = d.elm.getBoundingClientRect(), n[d.key] ? u.push(d) : l.push(d)
}
this.kept = e(t, null, u), this.removed = l
}
return e(t, null, o)
},
beforeUpdate: function() {
this.__patch__(this._vnode, this.kept, !1, !0), this._vnode = this.kept
},
updated: function() {
var e = this.prevChildren,
t = this.moveClass || (this.name || "v") + "-move";
e.length && this.hasMove(e[0].elm, t) && (e.forEach(hr), e.forEach(mr), e.forEach(yr), this._reflow = document.body.offsetHeight, e.forEach(function(e) {
if (e.data.moved) {
var n = e.elm,
r = n.style;
Kn(n, t), r.transform = r.WebkitTransform = r.transitionDuration = "", n.addEventListener(za, n._moveCb = function e(r) {
r && !/transform$/.test(r.propertyName) || (n.removeEventListener(za, e), n._moveCb = null, Jn(n, t))
})
}
}))
},
methods: {
hasMove: function(e, t) {
if (!Ha) return !1;
if (this._hasMove) return this._hasMove;
var n = e.cloneNode();
e._transitionClasses && e._transitionClasses.forEach(function(e) {
Un(n, e)
}), Bn(n, t), n.style.display = "none", this.$el.appendChild(n);
var r = Wn(n);
return this.$el.removeChild(n), this._hasMove = r.hasTransform
}
}
}
};
Ot.config.mustUseProp = oa, Ot.config.isReservedTag = ha, Ot.config.isReservedAttr = ra, Ot.config.getTagNamespace = Kt, Ot.config.isUnknownElement = function(e) {
if (!zi) return !0;
if (ha(e)) return !1;
if (e = e.toLowerCase(), null != ma[e]) return ma[e];
var t = document.createElement(e);
return e.indexOf("-") > -1 ? ma[e] = t.constructor === window.HTMLUnknownElement || t.constructor === window.HTMLElement : ma[e] = /HTMLUnknownElement/.test(t.toString())
}, y(Ot.options.directives, Za), y(Ot.options.components, es), Ot.prototype.__patch__ = zi ? Ga : _, Ot.prototype.$mount = function(e, t) {
return e = e && zi ? Jt(e) : void 0, Ae(this, e, t)
}, Ot.nextTick(function() {
Hi.devtools && ro && ro.emit("init", Ot)
}, 0);
var ts, ns = !!zi && function(e, t) {
var n = document.createElement("div");
return n.innerHTML = '
', n.innerHTML.indexOf(t) > 0
}("\n", "
"),
rs = /\{\{((?:.|\n)+?)\}\}/g,
is = /[-.*+?^${}()|[\]\/\\]/g,
os = v(function(e) {
var t = e[0].replace(is, "\\$&"),
n = e[1].replace(is, "\\$&");
return new RegExp(t + "((?:.|\\n)+?)" + n, "g")
}),
as = {
staticKeys: ["staticClass"],
transformNode: function(e, t) {
t.warn;
var n = hn(e, "class");
n && (e.staticClass = JSON.stringify(n));
var r = vn(e, "class", !1);
r && (e.classBinding = r)
},
genData: function(e) {
var t = "";
return e.staticClass && (t += "staticClass:" + e.staticClass + ","), e.classBinding && (t += "class:" + e.classBinding + ","), t
}
},
ss = {
staticKeys: ["staticStyle"],
transformNode: function(e, t) {
var n = hn(e, "style");
n && (e.staticStyle = JSON.stringify(La(n)));
var r = vn(e, "style", !1);
r && (e.styleBinding = r)
},
genData: function(e) {
var t = "";
return e.staticStyle && (t += "staticStyle:" + e.staticStyle + ","), e.styleBinding && (t += "style:(" + e.styleBinding + "),"), t
}
},
cs = {
decode: function(e) {
return ts = ts || document.createElement("div"), ts.innerHTML = e, ts.textContent
}
},
us = f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),
ls = f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),
fs = f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),
ds = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,
ps = "[a-zA-Z_][\\w\\-\\.]*",
vs = "((?:" + ps + "\\:)?" + ps + ")",
hs = new RegExp("^<" + vs),
ms = /^\s*(\/?)>/,
ys = new RegExp("^<\\/" + vs + "[^>]*>"),
gs = /^]+>/i,
_s = /^
================================================
FILE: widgets/form/1/config.json
================================================
{
"cssConfig": {
"borderRadius": {
"name": "圆角大小",
"value": "0px",
"type": "text"
},
"borderColor": {
"name": "线条颜色",
"value": "#cccccc",
"type": "color"
},
"okColor": {
"name": "确认按钮颜色",
"value": "#286090",
"type": "color"
},
"okBorderColor": {
"name": "确认按钮边框色",
"value": "#204d74",
"type": "color"
},
"resetColor": {
"name": "重置按钮颜色",
"value": "#e6e6e6",
"type": "color"
},
"resetBorderColor": {
"name": "重置按钮边框色",
"value": "#adadad",
"type": "color"
}
},
"jsConfig": {},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 10,
"type": "number"
},
"labelTitle": {
"name": "标题文字",
"value": "表单项目",
"type": "text"
},
"leftWidth": {
"name": "左栏宽度",
"value": 6,
"type": "number"
},
"rightWidth": {
"name": "右栏宽度",
"value": 6,
"type": "number"
},
"labelWidth": {
"name": "标题宽度",
"value": 3,
"type": "number"
},
"controlWidth": {
"name": "控件宽度",
"value": 9,
"type": "number"
}
}
}
================================================
FILE: widgets/form/1/script.js
================================================
require('validform');
$('#${id}').Validform({
tiptype:1,
ajaxPost:true,
callback:function(res){
}
})
================================================
FILE: widgets/form/1/style.css
================================================
.widget-form-1 ._act{margin-top: 30px;}
.widget-form-1 .form-control{border-radius: ${borderRadius.value};border-color:${borderColor.value}}
.widget-form-1 .btn-primary{background:${okColor.value};border-color:${okBorderColor.value};}
.widget-form-1 .btn-default{background:${resetColor.value};border-color:${resetBorderColor.value}}
================================================
FILE: widgets/form/1/temp.htm
================================================
================================================
FILE: widgets/history/1/config.json
================================================
{
"cssConfig": {
"yqBDColor":{
"name": "圆圈线颜色",
"value": "#3bb4f2",
"type": "text"
},
"sjBDColor":{
"name": "事件线颜色",
"value": "#cccccc",
"type": "text"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
}
}
}
================================================
FILE: widgets/history/1/script.js
================================================
================================================
FILE: widgets/history/1/style.css
================================================
.widget-history-1 { background: #ffffff; }
.widget-history-1 ._year { position: relative; height: 40px; margin-top: 12px; border-bottom: 1px dotted ${yqBDColor.value}; }
.widget-history-1 ._year strong { position: absolute; width: 86px; height: 86px; background: url(/widget/history/1/year.png) no-repeat; left: 0; top: 0; text-align: center; line-height: 86px; color: #ffffff; font-size: 24px; }
.widget-history-1 ._list ul { padding-left: 88px; }
.widget-history-1 ._list li { position: relative; padding: 20px 20px 20px 8em; border-bottom: 1px dotted ${sjBDColor.value}; }
.widget-history-1 ._list li strong { position: absolute; left: 1.5em; top: 1.5em; }
@media only screen and (max-width: 40rem) {
.History-H1 ._year { margin-bottom: 50px; }
.History-H1 ._list ul { padding-left: 0; }
.History-H1 ._list li { padding: 2.5em 0 0; }
.History-H1 ._list li strong { left: 0; top: .5em; }
}
================================================
FILE: widgets/history/1/temp.htm
================================================
2014
2014年7月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
2014年6月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
2014年2月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
2012
2012年7月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
2012年6月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
2012年2月
传化股份成功向A股定向增发4119万股,以每股12.69元的价格实现募集资金5.23亿。
================================================
FILE: widgets/job/1/config.json
================================================
{
"cssConfig": {
"yqBDColor":{
"name": "圆圈线颜色",
"value": "#3bb4f2",
"type": "text"
},
"sjBDColor":{
"name": "事件线颜色",
"value": "#cccccc",
"type": "text"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
}
}
}
================================================
FILE: widgets/job/1/script.js
================================================
================================================
FILE: widgets/job/1/style.css
================================================
.widget-job-1 li.first { background: #e2f4fd; border-bottom: none; padding: 0; }
.widget-job-1 li { border-bottom: 1px solid #cccccc; float: left; width: 100%; height: 34px; line-height: 34px;
background: url("/widget/job/1/list_type.png") 15px center no-repeat; }
.widget-job-1 li ._t1 { width: 18%; color: #0e90d2; }
.widget-job-1 li ._t2 { width: 20%; }
.widget-job-1 li ._t3 { width: 24%; }
.widget-job-1 li ._t4 { width: 14%; }
.widget-job-1 li ._t5 { width: 14%; }
.widget-job-1 li ._t6 { width: 10%; }
.widget-job-1 li.first ._ut { float: left; text-align: center; color: #0e90d2; font-weight: 700; font-size: 14px; }
.widget-job-1 li ._un { float: left; text-align: center; height: 50px; cursor: pointer; white-space: nowrap; text-overflow: ellipsis;
overflow: hidden; }
.widget-job-1 li:hover { background: #ededed; }
@media only screen and (max-width: 40rem) {
.widget-job-1 li ._t1 {
width: 30%;
}
.widget-job-1 li ._t2 {
width: 30%;
}
.widget-job-1 li ._t3 {
width: 40%;
}
.widget-job-1 li ._t4 {
display: none;
}
.widget-job-1 li ._t5 {
display: none;
}
.widget-job-1 li ._t6 {
display: none;
}
}
================================================
FILE: widgets/job/1/temp.htm
================================================
================================================
FILE: widgets/nav/1/config.json
================================================
{
"cssConfig": {
"layerWidth": {
"name": "下拉宽度(%或px)",
"value": "150%",
"type": "text"
},
"layerColor": {
"name": "下拉背景色",
"value": "#f4f4f4",
"type": "color"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"placeImg":{
"name": "图片尺寸",
"value": "220x125",
"type": "text"
}
}
}
================================================
FILE: widgets/nav/1/script.js
================================================
var resp = require('responsive');
//扫描按需加载
resp.scanpush();
//nav
var _li = $('#menu').children('ul').children('li');
if(resp.getType()!=='Mobile'){
_li.each(function(i,e){
i = i+1;
$(this).addClass('nav'+i);
});
$('#menu').children('ul').find('li:last-child').addClass('last');
_li.mouseenter(function(){
$(this).addClass('hover');
}).mouseleave(function(){
$(this).removeClass('hover');
});
}else{
_li.each(function(i,e) {
$(this).children('a').after($(this).find('ul'));
$(this).find('._layer').remove();
});
require('offcanvas');
$('.widget-nav').offcanvas();
}
================================================
FILE: widgets/nav/1/style.css
================================================
.widget-nav { position:relative; z-index:10;}
.widget-nav > ul > li { width:20%; float:left; position:relative; border-bottom:#002870 4px solid;}
.widget-nav > ul > li > a { display:block; text-align:center; border-right:#ccc 1px solid; font-size:16px; height:40px; line-height:40px;}
.widget-nav > ul > li.last > a { border-width:0;}
/*下拉css*/
.nav_layer01 { display:none; width:${layerWidth.value}; position:absolute; right:0; top:100%; background:${layerColor.value};
border-bottom:#9f9f9f 3px solid; margin-top:4px; padding:20px;}
.nav_layer01 ul { width:32%; float:left; border-right:#ccc 1px solid;}
.nav_layer01 li a { display:block; line-height:1.5; padding:3px 0;}
.nav_layer01 li a:hover { color:#e70010;}
.nav_layer01 ._img { width:59%; float:right;}
/*下拉css end*/
.widget-nav .hover { border-bottom-color:#e70010;}
.widget-nav .hover > a { color:#e70010;}
.widget-nav .hover ._layer { display:block;}
.mobile_key { display:none;}
@media only screen and (max-width: 640px) {
.mobile_key { display:block;}
}
================================================
FILE: widgets/nav/1/temp.htm
================================================
移动导航控制按钮
================================================
FILE: widgets/newsdetail/1/config.json
================================================
{
"cssConfig": {
"tagB": {
"name": "标签背景",
"value": "#cccccc",
"type": "text"
},
"tagColor": {
"name": "标签文字颜色",
"value": "#ffffff",
"type": "text"
},
"tagRadius": {
"name": "标签圆角(px)",
"value": 2,
"type": "number"
},
"btnSize": {
"name": "头部按钮大小(px)",
"value": 44,
"type": "number"
},
"btnColor": {
"name": "头部按钮颜色",
"value": "#cccccc",
"type": "text"
},
"btnHoverColor": {
"name": "按钮悬浮颜色",
"value": "#333333",
"type": "text"
},
"titleSize": {
"name": "标题字号(px)",
"value": 18,
"type": "number"
},
"titleColor": {
"name": "标题颜色",
"value": "#333333",
"type": "text"
},
"contB": {
"name": "内容背景色",
"value": "#ededed",
"type": "text"
},
"contColor": {
"name": "内容文字颜色",
"value": "#666666",
"type": "text"
},
"contPadd": {
"name": "内容区左右边距(px)",
"value": 30,
"type": "number"
},
"mainColor": {
"name": "亮色",
"value": "#0e90d2",
"type": "text"
},
"toolIconSize": {
"name": "工具图标大小(px)",
"value": 16,
"type": "number"
},
"pageLineColor": {
"name": "关联文章线条色",
"value": "#cccccc",
"type": "text"
},
"pageHeight": {
"name": "关联文章行高(px)",
"value": 30,
"type": "number"
},
"pageIconSize": {
"name": "关联文章图标大小(px)",
"value": 24,
"type": "number"
},
"pageFontSize": {
"name": "关联文章字号(px)",
"value": 14,
"type": "number"
},
"barMargin": {
"name": "分享栏上下间距(px)",
"value": 20,
"type": "number"
}
},
"jsConfig": {
"shareSize": {
"name": "分享图标尺寸",
"value": 16,
"type": "select",
"option": [16,24,32]
},
"shareType": {
"name": "分享图标类型",
"value": 1,
"type": "select",
"option": [0,1,2]
}
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"prevTitle": {
"name": "上一条",
"value": "上一条",
"type": "text"
},
"nextTitle": {
"name": "下一条",
"value": "下一条",
"type": "text"
}
}
}
================================================
FILE: widgets/newsdetail/1/script.js
================================================
//扫描按需加载
var resp = require('responsive');
resp.scanpush();
//百度分享
require.async('bdshare', function(bs) {
bs([{
tag: 'share_${id}',
bdSize: ${shareSize.value},
bdStyle: ${shareType.value}
}]);
})
================================================
FILE: widgets/newsdetail/1/style.css
================================================
.widget-newsdetail-1 ._head { position: relative; margin: 0 75px 30px;}
.widget-newsdetail-1 ._detailPage { position: absolute; top: 0; left: 0; width: 100%; height: 0;}
.widget-newsdetail-1 ._detailPage a { position: absolute; top: 0; width: 50px; height: 50px;
transition: none; line-height: 50px; font-size:${btnSize.value}px;color:${btnColor.value};}
.widget-newsdetail-1 ._detailPage .prev { left: -70px; }
.widget-newsdetail-1 ._detailPage .next { right: -70px; }
.widget-newsdetail-1 ._detailPage a:hover { color:${btnHoverColor.value};}
.widget-newsdetail-1 ._head ._tag { font-size: 10px; line-height: 16px; display: inline-block;
overflow: hidden; margin-right: 5px; padding: 0 5px; vertical-align: middle; color: ${tagColor.value};
border-radius: ${tagRadius.value}px; background: ${tagB.value};}
.widget-newsdetail-1 ._head ._title { font-size: ${titleSize.value}px; line-height: 1.4; padding: 5px 0;
color: ${titleColor.value};}
.widget-newsdetail-1 ._content { position: relative; clear: both; padding: 30px ${contPadd.value}px 10px;
background: ${contB.value};}
.widget-newsdetail-1 ._tools { position: absolute; top: 10px; right: ${contPadd.value}px;}
.widget-newsdetail-1 ._tools a:hover { color: ${mainColor.value};}
.widget-newsdetail-1 ._tools .ion { font-size: ${toolIconSize.value}px; }
.widget-newsdetail-1 .myart { padding: 20px 0;color:${contColor.value};}
.widget-newsdetail-1 ._detailPage_bottom { border-top: 1px solid ${pageLineColor.value};
border-bottom: 1px solid ${pageLineColor.value};}
.widget-newsdetail-1 ._detailPage_bottom li { line-height: ${pageHeight.value}px; overflow: hidden;
height: ${pageHeight.value}px; padding: 0 10px; border-bottom: 1px dotted ${pageLineColor.value};
margin-bottom: -1px; *zoom: 1;font-size: ${pageFontSize.value}px; }
.widget-newsdetail-1 ._detailPage_bottom ._mark { font-weight: 700; float: left;
margin-right: 10px;}
.widget-newsdetail-1 ._detailPage_bottom ._mark .ion { font-size: ${pageIconSize.value}px;
font-weight: normal;}
.widget-newsdetail-1 ._detailPage_bottom ._title { float: left; width: 68%;}
.widget-newsdetail-1 ._detailPage_bottom ._title:hover { color: ${mainColor.value};}
.widget-newsdetail-1 ._detailPage_bottom ._time { float: right;}
.widget-newsdetail-1 ._bottom_bar {height: 44px; margin: ${barMargin.value}px 0; overflow: hidden;}
.widget-newsdetail-1 ._bottom_bar .bdsharebuttonbox { float: right;}
@media only screen and (max-width: 480px) {
.widget-newsdetail-1 ._head { margin: 0; padding-bottom: 10px;}
.widget-newsdetail-1 ._head ._title { font-size: 10px; line-height: 20px;}
.widget-newsdetail-1 ._content { padding: 10px;}
.widget-newsdetail-1 .myart { padding-top: 0;}
}
================================================
FILE: widgets/newsdetail/1/temp.htm
================================================
2014.06.15 公司新闻
奇瑞重工王金富:要用确保粮食安全的思维推进粮食生产全程机械化
6月13日下午,由湖北省农机局、仙桃市人民政府主办,奇瑞重工股份有限公司承办的湖北省第二届粮食烘干与粮食安全论坛在湖北省仙桃市隆重举行。
${prevTitle.value}暂无数据! 2014-06-15
${nextTitle.value}暂无数据! 2014-06-15
================================================
FILE: widgets/newslist/1/config.json
================================================
{
"cssConfig": {
"partWidth": {
"name": "左右版块宽度(%)",
"value": "49%",
"type": "text"
},
"titleBG": {
"name": "标题背景色",
"value": "#a37740",
"type": "text"
},
"defaultDotColor": {
"name": "默认圆点颜色",
"value": "#ffffff",
"type": "text"
},
"curDotColor": {
"name": "当前圆点颜色",
"value": "#ffe400",
"type": "text"
},
"hoverColor": {
"name": "鼠标悬停文字色",
"value": "#a37740",
"type": "text"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
}
}
}
================================================
FILE: widgets/newslist/1/script.js
================================================
require('slide');
$('#${id}').slide({
wrap:'._wrap',
cell:'._cell',
effect:'toggle',
interval:5000,
auto:true
});
================================================
FILE: widgets/newslist/1/style.css
================================================
.widget-newstop-1 { margin-bottom:20px; }
.widget-newstop-1,.widget-newstop-1 ._wrap,.widget-newstop-1 ._cell,.widget-newstop-1 ._img img { height:290px;}
.widget-newstop-1,.widget-newstop-1 ._wrap,.widget-newstop-1 ._cell,.widget-newstop-1 > .hd,.widget-newstop-1 ._img,.widget-newstop-1 ._intro { position:relative; overflow:hidden;}
.widget-newstop-1 > .hd,.widget-newstop-1 ._img,.widget-newstop-1 ._intro { width:${partWidth.value};}
.widget-newstop-1 > .hd { height:65px; background-color:${titleBG.value}; color:#fff; position:absolute; right:0; top:0; z-index:2;}
.widget-newstop-1 > .hd,.widget-newstop-1 ._intro { border:#ddd 1px solid; box-sizing:border-box;}
.widget-newstop-1 > .hd ._title,.widget-newstop-1 > .hd ._en { margin:0 25px; line-height:1.5;}
.widget-newstop-1 > .hd ._title { font-size:18px; color:#fff; margin-top:10px;}
.widget-newstop-1 > .hd ._en { font-size:12px; font-family:"Arial"; }
.widget-newstop-1 ._img { float:left;background:#eee;}
.widget-newstop-1 ._img a { display:block; text-align:center; overflow:hidden; }
.widget-newstop-1 ._img img { width:auto; max-width:none; margin:0 -100%; margin:0 -50%\9;}
.widget-newstop-1 ._intro { float:right; margin-top:62px; padding-bottom:49px;}
.widget-newstop-1 ._intro ._title,.widget-newstop-1 ._intro ._info,.widget-newstop-1 ._intro ._sum { margin:0 25px; }
.widget-newstop-1 ._intro ._title { font-size:22px; font-weight:normal; height:40px; line-height:40px; padding-top:50px; white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.widget-newstop-1 ._intro ._info { color:#a4a4a4; font-size:12px; margin-bottom:15px; height:22px; line-height:22px;}
.widget-newstop-1 ._intro ._time .ion { margin-left:0; }
.widget-newstop-1 ._intro ._sum { line-height:1.8em; height:3.6em; overflow:hidden; }
.widget-newstop-1 .slide_nav { right:20px; top:29px; font:0/0 a; letter-spacing:-9px;}
.widget-newstop-1 .slide_nav a { display:inline-block; width:10px; height:10px; background-color:${defaultDotColor.value}; margin:0 4px; border-radius:50%; overflow:hidden; cursor:pointer;}
.widget-newstop-1 .slide_nav a.on { background-color:${curDotColor.value}; }
.widget-newstop-1 a:hover { color:${hoverColor.value}; }
@media only screen and (max-width:1024px) {
.widget-newstop-1 ._intro { margin-top:62px; }
}
@media only screen and (max-width: 480px) {
.widget-newstop-1,.widget-newstop-1 ._wrap,.widget-newstop-1 ._cell { height:453px; }
.widget-newstop-1 > .hd,.widget-newstop-1 ._img,.widget-newstop-1 ._intro { width:100%;}
.widget-newstop-1 ._intro { margin-top:0; padding-bottom:25px; }
.widget-newstop-1 ._intro ._title { padding-top:25px; }
.widget-newstop-1 ._img,.widget-newstop-1 ._img img { height:200px; }
.widget-newstop-1 ._img { padding-top:65px; }
}
================================================
FILE: widgets/newslist/1/temp.htm
================================================
================================================
FILE: widgets/page/1/config.json
================================================
{
"cssConfig": {
"fontSize": {
"name": "字号",
"value": "12px",
"type": "text"
},
"textColor": {
"name": "文字颜色",
"value": "#777777",
"type": "color"
},
"hoverColor": {
"name": "文字悬浮颜色",
"value": "#fff",
"type": "color"
},
"borderColor":{
"name":"边框颜色" ,
"value":"#ededed",
"type":"color"
},
"sepMarginRight": {
"name": "分隔符右间距",
"value": "10px",
"type": "text"
},
"sepMarginLeft": {
"name": "分隔符左间距",
"value": "10px",
"type": "text"
},
"backgroundColor": {
"name": "块背景色",
"value": "#0e90d2",
"type": "color"
}
},
"jsConfig": {},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
}
}
}
================================================
FILE: widgets/page/1/script.js
================================================
================================================
FILE: widgets/page/1/style.css
================================================
.page{font-size: ${fontSize.value}; color: ${textColor.value}; text-align: center;}
.page a,.page span { color: ${textColor.value};display: inline-block;border: 1px solid ${borderColor.value};padding: 5px 10px;vertical-align: middle;margin: 0 0 10px -1px;}
.page .goprev{margin-right: ${sepMarginRight.value};}
.page .gonext,.page .count {margin-left: ${sepMarginLeft.value};}
.page a:hover,.page span{color:${hoverColor.value}; background: ${backgroundColor.value};}
.page span.goprev,.page span.gonext {color: ${textColor.value}; background: none}
.page span.count { border: 0;background: 0;color: ${textColor.value};}
================================================
FILE: widgets/page/1/temp.htm
================================================
================================================
FILE: widgets/prodetail/1/config.json
================================================
{
"cssConfig": {
"leftWidth": {
"name": "左边宽度(%)",
"value": "48",
"type": "number"
},
"rightWidth":{
"name": "右边宽度(%)",
"value": "48",
"type": "number"
},
"albumMT":{
"name": "缩略图上边距(px)",
"value":6,
"type":"number"
},
"albumBW":{
"name": "缩略图线宽(px)",
"value":2,
"type":"number"
},
"albumBC":{
"name": "缩略图线色",
"value": "transparent",
"type": "text"
},
"albumActiveBC":{
"name": "当前缩略图线色",
"value": "#0080cc",
"type": "text"
},
"titleSize":{
"name": "标题字号(px)",
"value": 18,
"type": "number"
},
"titleWeight":{
"name": "标题粗细",
"value": "bold",
"type": "text"
},
"titleHeight":{
"name": "标题高度(px)",
"value":34,
"type": "number"
},
"titleColor":{
"name": "标题颜色",
"value": "#333",
"type": "text"
},
"btnMT":{
"name":"按钮上边距(px)",
"value":30,
"type":"number"
},
"btnHeight":{
"name":"按钮高度(px)",
"value":34,
"type":"number"
},
"btnWidth":{
"name":"按钮宽度(px)",
"value":138,
"type":"number"
},
"btnMR":{
"name":"按钮间距(px)",
"value":10,
"type":"number"
},
"btnBC":{
"name":"按钮边框色",
"value":"#ccc",
"type":"text"
},
"btnBG":{
"name":"按钮背景色",
"value":"#fff",
"type":"text"
},
"btnHoverBG":{
"name":"按钮悬浮背景色",
"value":"#ededed",
"type":"text"
},
"btnColor":{
"name":"按钮颜色",
"value":"#333",
"type":"text"
},
"recomeMT":{
"name":"推荐产品上边距(px)",
"value":30,
"type":"number"
}
},
"jsConfig": {
"albumAct":{
"name":"缩略图触发动作",
"value": "mouseenter",
"type": "select",
"option": ["mouseenter","click"]
}
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"imgProp": {
"name": "图片宽高比(%)",
"value": "75",
"type": "select",
"option": ["100","75","5625"]
},
"bigImg":{
"name": "大图尺寸",
"value": "800x600",
"type": "text"
},
"albumImg":{
"name": "缩略图尺寸",
"value": "200x150",
"type": "text"
},
"albumWidth":{
"name": "缩略图宽度(栅格)",
"value": 3,
"type": "number"
},
"recomeWidth":{
"name": "推荐产品宽度(栅格)",
"value": 4,
"type": "number"
}
}
}
================================================
FILE: widgets/prodetail/1/script.js
================================================
var widget = $('#${id}'),
imgWrap = widget.find('._img'),
imgList = widget.find('._album_list'),
albumAct = '${albumAct.value}';
imgList.on(albumAct, 'li', function() {
var _img = $(' ');
imgWrap.html(_img);
$(this).addClass('active').siblings().removeClass('active');
}).find('li').eq(0).trigger(albumAct);
require.async('tip',function(){
widget.find('._pop').tip(widget.find('._pop').data('number'),{
place:'bottom-center'
})
});
================================================
FILE: widgets/prodetail/1/style.css
================================================
.widget-prodetail-1 { overflow: hidden; *zoom: 1;}
.widget-prodetail-1-img { float: left; width: ${leftWidth.value}%;}
.widget-prodetail-1-img ._album_list { margin-top: ${albumMT.value}px;}
.widget-prodetail-1-img ._album_list li { cursor: pointer; }
.widget-prodetail-1-img ._album_list .album_img{border:${albumBW.value}px solid ${albumBC.value};}
.widget-prodetail-1-img ._album_list .active .album_img{border-color:${albumActiveBC.value};}
.widget-prodetail-1-detail { float: right; width: ${rightWidth.value}%;}
.widget-prodetail-1-detail ._head { font-size: 12px; color: #999;}
.widget-prodetail-1-detail ._title { font-size: ${titleSize.value}px; font-weight: ${titleWeight.value};
line-height: ${titleHeight.value}px; overflow: hidden;height: ${titleHeight.value}px; color: ${titleColor.value}; }
.widget-prodetail-1-detail ._tip { font-size: 12px; line-height: 26px; overflow: hidden; height: 26px;
color: #999; border-bottom: 1px solid #ccc;}
.widget-prodetail-1-detail ._tools { margin: ${btnMT.value}px 0 0;}
.widget-prodetail-1-detail ._tools li {line-height: ${btnHeight.value}px; width: ${btnWidth.value}px; height: ${btnHeight.value}px;
margin-right: ${btnMR.value}px; vertical-align: top;border: 1px solid ${btnBC.value}; }
.widget-prodetail-1-detail ._tools ._link a { display: block; text-align: center;color: ${btnColor.value};
background: ${btnBG.value}; }
.widget-prodetail-1-detail ._tools ._link a:hover { background: ${btnHoverBG.value};}
.widget-prodetail-1-detail ._tools ._val { text-align: center;}
.widget-prodetail-1-detail ._tools ._pop ._val .ion {font-size: 14px; color: #ccc;}
.widget-prodetail-1-detail ._recome{margin: ${recomeMT.value}px 0 0;}
.widget-prodetail-1-detail ._recome ._t { font-size: 18px; line-height: 34px;}
.widget-prodetail-1-detail ._recome img { border: 1px solid #ccc;}
.widget-prodetail-1-detail ._recome ._p { text-align: center;}
.widget-prodetail-1-detail ._recome a:hover ._p { color: #2f2f2f;}
@media only screen and (max-width: 480px) {
.widget-prodetail-1-img, .widget-prodetail-1-detail { float: none; width: auto;}
.widget-prodetail-1-detail ._tools, .widget-prodetail-1-detail ._recome{ margin: 1em 0 0;}
}
================================================
FILE: widgets/prodetail/1/temp.htm
================================================
================================================
FILE: widgets/prolist/1/config.json
================================================
{
"cssConfig": {
"leftWidth": {
"name": "左边宽度(px)",
"value": 200,
"type": "number"
},
"imgMargin": {
"name": "图片距右(px)",
"value": 15,
"type": "number"
},
"titleSize":{
"name": "标题字号(px)",
"value": 14,
"type": "number"
},
"titleHeight":{
"name": "标题高度(px)",
"value":26,
"type": "number"
},
"introColor":{
"name":"介绍颜色",
"value":"#999999",
"type":"text"
},
"introMB":{
"name":"介绍下边距(px)",
"value":10,
"type":"number"
},
"seleBG":{
"name":"下拉背景色",
"value":"#dddddd",
"type":"text"
},
"seleColor":{
"name":"下拉文字颜色",
"value":"#000000",
"type":"text"
},
"seleHeight":{
"name":"下拉高度(px)",
"value":26,
"type":"number"
},
"moreHeight":{
"name":"按钮高度",
"value":26,
"type":"number"
},
"moreBG":{
"name":"按钮背景色",
"value":"#0e90d2",
"type":"text"
},
"moreRadius":{
"name":"按钮圆角大小(px)",
"value":3,
"type":"number"
},
"moreColor":{
"name":"按钮文字颜色",
"value":"#ffffff",
"type":"text"
},
"moreBGHover":{
"name":"按钮背景悬浮色",
"value":"#0b6fa2",
"type":"text"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"proImg":{
"name": "大图尺寸",
"value": "300x300",
"type": "text"
}
}
}
================================================
FILE: widgets/prolist/1/script.js
================================================
var widget = $('#${id}');
require('select');
widget.find('li').find('._prosele').select();
================================================
FILE: widgets/prolist/1/style.css
================================================
.widget-prolist-1 li { border-bottom: 1px solid #cccccc; padding: 15px 0; }
.widget-prolist-1 ._img { float: left; width: ${leftWidth.value}px;
margin-right:${imgMargin.value}px;}
.widget-prolist-1 ._title { font-size: ${titleSize.value}px; height: ${titleHeight.value}px; line-height: ${titleHeight.value}px; overflow: hidden; }
.widget-prolist-1 ._p { color: ${introColor.value}; line-height: 26px; height: 78px; overflow: hidden; margin-bottom: ${introMB.value}px; }
.widget-prolist-1 ._more { display: inline-block; line-height: ${moreHeight.value}px; padding: 0 30px; border-radius: ${moreRadius.value}px; color: ${moreColor.value}; background: ${moreBG.value}; cursor: pointer; float: right; }
.widget-prolist-1 ._more:hover { background: ${moreBGHover.value}; }
.widget-prolist-1 ._prosele { background: ${seleBG.value}; color: ${seleColor.value}; width:200px; height: ${seleHeight.value}px; line-height: ${seleHeight.value}px; }
@media only screen and (max-width: 480px) {
.widget-prolist-1 ._img { float: none; width: auto;}
.widget-prolist-1 ._img img {width: 100%; }
.widget-prolist-1 ._p { height: auto; }
.widget-prolist-1 ._more{ float:none; margin-bottom:10px;}
.widget-prolist-1 ._prosele{ float:none;}
}
================================================
FILE: widgets/prolist/1/temp.htm
================================================
================================================
FILE: widgets/prolist/2/config.json
================================================
{
"cssConfig": {
"tabHeaderBG":{
"name": "头部背景色",
"value":"#ededed",
"type": "text"
},
"tabtBTC":{
"name": "选项卡选中颜色",
"value":"#0e90d2",
"type": "text"
},
"tabtBRC":{
"name": "选项卡右线颜色",
"value":"#cccccc",
"type": "text"
},
"imgMb":{
"name": "图片下边距(px)",
"value":5,
"type": "number"
},
"proTitleSize":{
"name": "标题字号(px)",
"value":14,
"type": "number"
},
"titleMb":{
"name": "标题下边距(px)",
"value":5,
"type": "number"
},
"titleBBC":{
"name": "标题下边线颜色",
"value":"#cccccc",
"type": "text"
},
"titleBBS":{
"name":"标题下边线形状",
"value": "dotted",
"type": "select",
"option": ["solid","dashed","dotted"]
},
"orderIcoC":{
"name": "下载图标颜色",
"value":"#0e90d2",
"type": "text"
}
},
"jsConfig": {
"tabAct":{
"name":"选项卡触发动作",
"value": "mouseenter",
"type": "select",
"option": ["mouseenter","click"]
}
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"imgProp": {
"name": "图片宽高比(%)",
"value": 75,
"type": "select",
"option": [75,618,5625,100]
},
"proImg":{
"name": "图片尺寸",
"value": "400x300",
"type": "text"
},
"proWidth":{
"name": "产品宽度(栅格)",
"value": 3,
"type": "number"
},
"imgProp": {
"name": "图片宽高比(%)",
"value": 75,
"type": "select",
"option": [75,618,5625,100]
}
}
}
================================================
FILE: widgets/prolist/2/script.js
================================================
var widget = $('#${id}');
require('tab');
widget.tab({
left:40,
act:"${tabAct.value}"
});
================================================
FILE: widgets/prolist/2/style.css
================================================
.widget-prolist-2-tab .tab_header { height: 58px; background: ${tabHeaderBG.value}; margin-bottom: 20px; }
.widget-prolist-2-tab .tab_t { height: 55px; line-height: 55px; font-weight: 700; border-right: 1px solid ${tabtBRC.value}; font-size: 14px; border-top: 3px solid ${tabHeaderBG.value}; width:auto; padding:0 20px; }
.widget-prolist-2-tab .tab_t_cur { color: ${tabtBTC.value}; border-top-color:${tabtBTC.value}; background: #ffffff; }
.widget-prolist-2-tab ._prolist li{ margin-bottom:10px;}
.widget-prolist-2-tab ._img{ margin-bottom:${imgMb.value}px;}
.widget-prolist-2-tab ._title { font-size: ${proTitleSize.value}px; line-height: 20px; height: 40px; overflow: hidden; font-weight:normal; border-bottom: 1px ${titleBBS.value} ${titleBBC.value}; padding-bottom:${titleMb.value}px; margin-bottom:${titleMb.value}px; }
.widget-prolist-2-tab ._link .ion { font-size: 16px; }
.widget-prolist-2-tab ._link { }
.widget-prolist-2-tab ._link a { color: #999999; }
.widget-prolist-2-tab ._link ._toorder { float: left; }
.widget-prolist-2-tab ._link ._download { float: right; }
.widget-prolist-2-tab ._link ._download .ion { color: ${orderIcoC.value}; }
.widget-prolist-2-tab a:hover { color: #0e90d2; }
================================================
FILE: widgets/prolist/2/temp.htm
================================================
================================================
FILE: widgets/qa/1/config.json
================================================
{
"cssConfig": {
"fontSizeTitle": {
"name": "标题字号",
"value": "14px",
"type": "text"
},
"fontSizeText": {
"name": "内容字号",
"value": "14px",
"type": "text"
},
"numColor": {
"name": "序号颜色",
"value": "#0e90d2",
"type": "color"
}
,
"numFontSize": {
"name": "序号字号",
"value": "18px",
"type": "text"
}
,
"titlePadding": {
"name": "标题内容间距",
"value": "0px",
"type": "text"
}
,
"listPadding": {
"name": "列表间距",
"value": "20px",
"type": "text"
}
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
}
}
}
================================================
FILE: widgets/qa/1/script.js
================================================
================================================
FILE: widgets/qa/1/style.css
================================================
.widget-qa-1 { font-size: ${fontSizeText.value}; }
.widget-qa-1 li { background: #ffffff; position: relative; padding-left: 3em; margin-bottom: ${listPadding.value}; border-bottom: 1px solid #ededed; padding-bottom:${listPadding.value}; }
.widget-qa-1 ._data { position: absolute; left: 0; top: 0; font-family: Arial; font-size: ${numFontSize.value}; color: ${numColor.value}; line-height:30px;}
.widget-qa-1 li ._title { cursor: pointer; font-weight: 700; font-size:${fontSizeTitle.value}; line-height:30px;}
.widget-qa-1 li ._p { padding-top: ${titlePadding.value}; line-height:30px; }
@media only screen and (max-width: 480px) {
.widget-qa-1 ._title { float: none; width: auto; }
}
================================================
FILE: widgets/qa/1/temp.htm
================================================
================================================
FILE: widgets/search/1/config.json
================================================
{
"cssConfig": {
"channelTitleSize": {
"name": "标题栏字号",
"value": "16px",
"type": "text"
},
"inputHeight": {
"name": "搜索框高度",
"value": "30px",
"type": "text"
},
"channelTitlePadd": {
"name": "标题栏内边距",
"value": "20px",
"type": "text"
},
"channelBackground": {
"name": "标题栏背景色",
"value": "#ededed",
"type": "color"
},
"searchBtnColor": {
"name": "搜索按钮颜色",
"value": "#0e90d2",
"type": "color"
},
"iconSize": {
"name": "搜索按钮图标大小",
"value": "16px",
"type": "text"
},
"listMargin": {
"name": "列表间距",
"value": "15px",
"type": "text"
},
"listFontSize": {
"name": "列表标题字号",
"value": "14px",
"type": "text"
},
"listConFontSize": {
"name": "列表内容字号",
"value": "14px",
"type": "text"
},
"listColor": {
"name": "列表标题字色",
"value": "#333",
"type": "color"
},
"listPadd": {
"name": "列表标题上下间距",
"value": "5px",
"type": "text"
}
},
"jsConfig": {},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 12,
"type": "number"
},
"channelTitle": {
"name": "栏目标题",
"value": "搜索结果",
"type": "text"
}
}
}
================================================
FILE: widgets/search/1/script.js
================================================
require('validform');
var ${id} = $('#${id}').Validform({
tiptype:1,
ajaxPost:true,
callback:function(res){
}
})
================================================
FILE: widgets/search/1/style.css
================================================
.Search-S1-head { overflow: hidden; padding: ${channelTitlePadd.value}; background: ${channelBackground.value}; margin-bottom: 20px; *zoom: 1;}
.Search-S1-head ._form { margin-right: 3em; }
.Search-S1-head ._inp { height: ${inputHeight.value}; line-height: ${inputHeight.value}; padding: 0 5px; background: #ffffff; border: 1px solid #cccccc; }
.Search-S1-head ._btn { height: ${inputHeight.value}; line-height: ${inputHeight.value}; background:${searchBtnColor.value}; cursor: pointer; padding: 0; margin: 0; border: 1px solid ${searchBtnColor.value}; width:${inputHeight.value} ;}
.Search-S1-head ._btn .ion { vertical-align:top; margin: 0; padding: 0; color: #ffffff; font-size: ${iconSize.value}; }
.Search-S1-head ._result { font-size: ${channelTitleSize.value}; line-height:${inputHeight.value};}
.Search-S1-head ._result em { margin: 0 .4em; font-weight: 700; }
.Search-S1-list { margin-bottom: 30px; }
.Search-S1-list li { margin-bottom: ${listMargin.value}; }
.Search-S1-list ._head { font-size: ${listFontSize.value}; padding: ${listPadd.value} 0; margin-bottom: 10px; border-bottom: 1px solid #cccccc; }
.Search-S1-list ._num { float: left; }
.Search-S1-list ._type { float: left; color:${searchBtnColor.value};padding: 0 1em; border-right: 1px solid #cccccc; margin-right: 1em; font-style: normal; }
.Search-S1-list ._t { float: left; width: 50%; font-weight: bold; color:${listColor.value}; }
.Search-S1-list ._p { padding-left: 60px; font-size: ${listConFontSize.value}; }
================================================
FILE: widgets/search/1/temp.htm
================================================
================================================
FILE: widgets/table/1/config.json
================================================
{
"cssConfig": {
},
"jsConfig": {
},
"showConfig": {
"viewWidth": {
"name": "栅格宽度",
"value": 8,
"type": "number"
},
"border": {
"name": "边框",
"value": "有",
"type": "select",
"option": ["有","无"]
},
"hover": {
"name": "悬停背景",
"value": "无",
"type": "select",
"option": ["有","无"]
},
"condensed": {
"name": "紧缩表格",
"value": "否",
"type": "select",
"option": ["是","否"]
},
"resp": {
"name": "响应式表格",
"value": "否",
"type": "select",
"option": ["是","否"]
}
}
}
================================================
FILE: widgets/table/1/script.js
================================================
================================================
FILE: widgets/table/1/style.css
================================================
.widget-table-1{width:100%;overflow-x: auto;overflow-y: hidden;}
.widget-table-1 th{background: #eee;}
.widget-table-1 .resp{min-width: 640px;}
================================================
FILE: widgets/table/1/temp.htm
================================================