diff --git a/.gitignore b/.gitignore index 30dcb75..938d275 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +test-results/ +tmp/ +routes/ +.none /src pkg bin2 @@ -14,7 +18,8 @@ app/tmp/main.go .settings .project public/config.codekit -files +files/ /node_modules .idea -*.iml \ No newline at end of file +*.iml +target/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 26abe43..44df7ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,18 @@ language: go -go: 1.7 +go: 1.15 services: - mongodb # 2.4.12 install: + - go version - export PATH=$PATH:$HOME/gopath/bin - go get -v github.com/leanote/leanote/app - go get -u github.com/revel/cmd/revel - ls $GOPATH/src/github.com/revel/ # - go get github.com/revel/moudle/revel # - go install github.com/revel/cmd/revel + - revel version - pwd - ls @@ -18,12 +20,15 @@ script: - mongo --version - mongorestore -h localhost -d leanote --dir ./mongodb_backup/leanote_install_data/ + - cd $GOPATH/src/github.com/leanote/leanote/sh + - sh run.sh & + # gen tmp/main.go, routes/routes.go - - go run app/cmd/main.go + #- go run app/cmd/main.go # build - - go build -o leanote github.com/leanote/leanote/app/tmp + #- go build -o leanote github.com/leanote/leanote/app/tmp # run with port 9000 - - ./leanote -importPath=github.com/leanote/leanote -runMode=dev -port=9000 & + #- ./leanote -importPath=github.com/leanote/leanote -runMode=dev -port=9000 & - sleep 10s; # test - curl http://localhost:9000 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index fefa7b9..0000000 --- a/LICENSE +++ /dev/null @@ -1,359 +0,0 @@ -LEANOTE - NOT JUST A NOTEPAD! - -Copyright 2014-2015 by the contributors - -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 2 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. - -Leanote is licensed under the GPL v2. - - life(life@leanote.com, lifephp@gmail.com) - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) 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 -this service 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 make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. 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. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -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 -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the 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 a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE 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. - - 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 -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - {description} - Copyright (C) {year} {fullname} - - 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 2 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, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision 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, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - {signature of Ty Coon}, 1 April 1989 - Ty Coon, President of Vice - -This 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. diff --git a/Vendor.md b/Vendor.md deleted file mode 100755 index d9c14de..0000000 --- a/Vendor.md +++ /dev/null @@ -1,26 +0,0 @@ -# Vendor - -脱离 revel 每次升级不向下兼容 的控制!! 基于revel 0.18 - -## Install leanote_revel cmd - -``` -go install github.com/leanote/leanote/cmd/leanote_revel -leanote_revel run github.com/leanote/leanote -```` - -## build leanote - -在当前目录生成了leanote二进制文件 - -``` -go build -o ./leanote github.com/leanote/leanote/app/tmp -``` - -## 运行leanote - -其中-importPath是必须的 - -``` -./leanote -importPath=github.com/leanote/leanote -runMode=prod -port=9000 -``` \ No newline at end of file diff --git a/app/cmd/main.go b/app/cmd/main.go deleted file mode 100644 index 4929262..0000000 --- a/app/cmd/main.go +++ /dev/null @@ -1,19 +0,0 @@ -package main - -import ( - "fmt" - "github.com/revel/cmd/harness" - "github.com/revel/revel" -) - -func main() { - // go run main.go - // 生成routes.go, main.go - revel.Init("", "github.com/leanote/leanote", "") - _, err := harness.Build() // ok, err - if err != nil { - panic(err) - } - fmt.Println("Ok") - // panicOnError(reverr, "Failed to build") -} diff --git a/app/controllers/BaseController.go b/app/controllers/BaseController.go index b7c8e59..891e6e4 100644 --- a/app/controllers/BaseController.go +++ b/app/controllers/BaseController.go @@ -27,7 +27,7 @@ func (c *BaseController) Message(message string, args ...interface{}) (value str func (c BaseController) GetUserId() string { if userId, ok := c.Session["UserId"]; ok { - return userId + return userId.(string) } return "" } @@ -47,51 +47,30 @@ func (c BaseController) GetObjectUserId() bson.ObjectId { func (c BaseController) GetEmail() string { if email, ok := c.Session["Email"]; ok { - return email + return email.(string) } return "" } func (c BaseController) GetUsername() string { if email, ok := c.Session["Username"]; ok { - return email + return email.(string) } return "" } // 得到用户信息 func (c BaseController) GetUserInfo() info.User { - if userId, ok := c.Session["UserId"]; ok && userId != "" { + userId := c.GetUserId() + if userId != "" { return userService.GetUserInfo(userId) - /* - notebookWidth, _ := strconv.Atoi(c.Session["NotebookWidth"]) - noteListWidth, _ := strconv.Atoi(c.Session["NoteListWidth"]) - mdEditorWidth, _ := strconv.Atoi(c.Session["MdEditorWidth"]) - LogJ(c.Session) - user := info.User{UserId: bson.ObjectIdHex(userId), - Email: c.Session["Email"], - Logo: c.Session["Logo"], - Username: c.Session["Username"], - UsernameRaw: c.Session["UsernameRaw"], - Theme: c.Session["Theme"], - NotebookWidth: notebookWidth, - NoteListWidth: noteListWidth, - MdEditorWidth: mdEditorWidth, - } - if c.Session["Verified"] == "1" { - user.Verified = true - } - if c.Session["LeftIsMin"] == "1" { - user.LeftIsMin = true - } - return user - */ } return info.User{} } func (c BaseController) GetUserAndBlogUrl() info.UserAndBlogUrl { - if userId, ok := c.Session["UserId"]; ok && userId != "" { + userId := c.GetUserId() + if userId != "" { return userService.GetUserAndBlogUrl(userId) } return info.UserAndBlogUrl{} @@ -103,7 +82,7 @@ func (c BaseController) GetSession(key string) string { if !ok { v = "" } - return v + return v.(string) } func (c BaseController) SetSession(userInfo info.User) { if userInfo.UserId.Hex() != "" { diff --git a/app/controllers/BlogController.go b/app/controllers/BlogController.go index a1219d1..ecfb33b 100644 --- a/app/controllers/BlogController.go +++ b/app/controllers/BlogController.go @@ -110,7 +110,7 @@ func (c Blog) setPreviewUrl() { if username != "" { userIdOrEmail = username } - themeId := c.Session["themeId"] + themeId := c.GetSession("themeId") theme := themeService.GetTheme(userId, themeId) // siteUrl := configService.GetSiteUrl() diff --git a/app/controllers/CaptchaController.go b/app/controllers/CaptchaController.go index 6858bda..7f35412 100644 --- a/app/controllers/CaptchaController.go +++ b/app/controllers/CaptchaController.go @@ -34,7 +34,7 @@ func (c Captcha) Get() revel.Result { out := io.Writer(c.Response.GetWriter()) image.WriteTo(out) - sessionId := c.Session["_ID"] + sessionId := c.GetSession("_ID") // LogJ(c.Session) // Log("------") // Log(str) diff --git a/app/controllers/PreviewController.go b/app/controllers/PreviewController.go index 70a9ac0..4c8c171 100644 --- a/app/controllers/PreviewController.go +++ b/app/controllers/PreviewController.go @@ -25,7 +25,7 @@ func (c Preview) getPreviewThemeAbsolutePath(themeId string) bool { if themeId != "" { c.Session["themeId"] = themeId // 存到session中, 下次的url就不能带了, 待优化, 有时会取不到 } else { - themeId = c.Session["themeId"] // 直接从session中获取 + themeId = c.GetSession("themeId") // 直接从session中获取 } if themeId == "" { return false diff --git a/app/controllers/admin/init.go b/app/controllers/admin/init.go index 3a7a6e3..4cf9b11 100644 --- a/app/controllers/admin/init.go +++ b/app/controllers/admin/init.go @@ -83,7 +83,7 @@ func AuthInterceptor(c *revel.Controller) revel.Result { // 验证是否已登录 // 必须是管理员 - if username, ok := c.Session["Username"]; ok && username == configService.GetAdminUsername() { + if username, ok := c.Session["Username"]; ok && username.(string) == configService.GetAdminUsername() { return nil // 已登录 } diff --git a/app/controllers/api/ApiBaseController.go b/app/controllers/api/ApiBaseController.go index 475bdab..7eb422a 100644 --- a/app/controllers/api/ApiBaseController.go +++ b/app/controllers/api/ApiBaseController.go @@ -23,18 +23,18 @@ type ApiBaseContrller struct { // 得到token, 这个token是在AuthInterceptor设到Session中的 func (c ApiBaseContrller) getToken() string { - return c.Session["_token"] + return c.GetSession("_token") } // userId // _userId是在AuthInterceptor设置的 func (c ApiBaseContrller) getUserId() string { - return c.Session["_userId"] + return c.GetSession("_userId") } // 得到用户信息 func (c ApiBaseContrller) getUserInfo() info.User { - userId := c.Session["_userId"] + userId := c.GetSession("_userId") if userId == "" { return info.User{} } diff --git a/app/controllers/api/init.go b/app/controllers/api/init.go index 71659c6..da50c3b 100644 --- a/app/controllers/api/init.go +++ b/app/controllers/api/init.go @@ -90,7 +90,10 @@ func AuthInterceptor(c *revel.Controller) revel.Result { if noToken && userId == "" { // 从session中获取, api/file/getImage, api/file/getAttach, api/file/getAllAttach // 客户端 - userId, _ = c.Session["UserId"] + userIdI, _ := c.Session["UserId"] + if userIdI != nil { + userId = userIdI.(string) + } } c.Session["_userId"] = userId diff --git a/app/lea/route/Route.go b/app/lea/route/Route.go index b92b07b..2f26491 100644 --- a/app/lea/route/Route.go +++ b/app/lea/route/Route.go @@ -91,7 +91,7 @@ func RouterFilter(c *revel.Controller, fc []revel.Filter) { arg := c.MethodType.Args[i] c.Params.Fixed.Set(arg.Name, value) } else { - revel.WARN.Println("Too many parameters to", route.Action, "trying to add", value) + // revel.WARN.Println("Too many parameters to", route.Action, "trying to add", value) break } } diff --git a/app/release/README.md b/app/release/README.md deleted file mode 100644 index 4c807dc..0000000 --- a/app/release/README.md +++ /dev/null @@ -1 +0,0 @@ -Compress and combine js files diff --git a/app/release/release.go b/app/release/release.go deleted file mode 100644 index 74ee887..0000000 --- a/app/release/release.go +++ /dev/null @@ -1,159 +0,0 @@ -package main - -import ( - "fmt" - "io/ioutil" - "os" - "os/exec" - "strings" - // "time" -) - -/* -用golang exec 总是说找不到uglifyjs命令, 需要全部路径 -而且node, npm要在/usr/bin下, 已建ln -*/ - -/* - - - - - - - - - - - - - -*/ - -//var jss = []string{"js/jquery-cookie", "js/bootstrap"} -var jss = []string{"js/jquery-cookie", "js/bootstrap", - "js/common", "js/app/note", "js/app/tag", "js/app/notebook", "js/app/share", - "js/object_id", "js/ZeroClipboard/ZeroClipboard"} - -var base1 = "/Users/life/Documents/Go/package2/src/github.com/leanote/leanote/" -var base = "/Users/life/Documents/Go/package2/src/github.com/leanote/leanote/public/" -var cmdPath = "/usr/local/bin/uglifyjs" - -func cmdError(err error) { - if err != nil { - fmt.Println(err) - fmt.Fprintf(os.Stderr, "The command failed to perform: %s (Command: %s, Arguments: %s)", err, "", "") - } else { - fmt.Println("OK") - } -} - -// filename没有扩展名 -func compressJs(filename string) { - source := base + filename + ".js" - to := base + filename + "-min.js" - cmd := exec.Command(cmdPath, source, "-o", to) - _, err := cmd.CombinedOutput() - fmt.Println(source) - cmdError(err) -} - -func combineJs() { - // 生成一个总文件 - cmd := exec.Command("rm", base+"js/all.js") - _, err := cmd.CombinedOutput() - cmdError(err) - - for _, js := range jss { - to := base + js + "-min.js" - fmt.Println(to) - compressJs(js) - - // 每个压缩后的文件放入之 - cmd2 := exec.Command("/bin/sh", "-c", "cat "+to+" >> "+base+"js/all.js") - _, err := cmd2.CombinedOutput() - cmdError(err) - cmd2 = exec.Command("/bin/sh", "-c", "cat \n >> "+base+"js/all.js") - _, err = cmd2.CombinedOutput() - cmdError(err) - } -} - -// 改note-dev->note -func dev() { - // 即替换note.js->note-min.js - m := map[string]string{"tinymce.dev.js": "tinymce.min.js", - "tinymce.js": "tinymce.min.js", - "jquery.ztree.all-3.5.js": "jquery.ztree.all-3.5-min.js", - "note.js": "note-min.js", - "app.js": "app-min.js", - "page.js": "page-min.js", - "common.js": "common-min.js", - "notebook.js": "notebook-min.js", - "share.js": "share-min.js", - "tag.js": "tag-min.js", - "jquery.slimscroll.js": "jquery.slimscroll-min.js", - "jquery.contextmenu.js": "jquery.contextmenu-min.js", - "editor/editor.js": "editor/editor-min.js", - "/public/mdeditor/editor/scrollLink.js": "/public/mdeditor/editor/scrollLink-min.js", - "console.log(o);": "", - } - path := base1 + "/src/views/note/note-dev.html" - target := base1 + "/src/views/note/note.html" - - bs, _ := ioutil.ReadFile(path) - content := string(bs) - print(content) - for key, value := range m { - content = strings.Replace(content, key, value, -1) - } - - // var time = time.Now().Unix() % 1000 - - // content = strings.Replace(content, "-min.js", fmt.Sprintf("-min.js?r=%d", time), -1) - // content = strings.Replace(content, "default{{end}}.css", fmt.Sprintf("default{{end}}.css?r=%d", time), 1) - // content = strings.Replace(content, "writting-overwrite.css", fmt.Sprintf("writting-overwrite.css?r=%d", time), 1) - - ioutil.WriteFile(target, []byte(content), os.ModeAppend) -} - -// 压缩js成一块 -func tinymce() { - // cmdStr := "node_modules/jake/bin/cli.js minify bundle[themes:modern,plugins:table,paste,advlist,autolink,link,image,lists,charmap,hr,searchreplace,visualblocks,visualchars,code,nav,tabfocus,contextmenu,directionality,codemirror,codesyntax,textcolor,fullpage]" - // cmd := exec.Command("/Users/life/Documents/eclipse-workspace/go/leanote_release/tinymce-master/node_modules/jake/bin/cli.js", "minify", "bundle[themes:modern,plugins:table,paste,advlist,autolink,link,image,lists,charmap,hr,searchreplace,visualblocks,visualchars,code,nav,tabfocus,contextmenu,directionality,codemirror,codesyntax,textcolor,fullpage]") - cmd := exec.Command("/bin/sh", "-c", "grunt minify") - cmd.Dir = base + "/tinymce_4.1.9" - - fmt.Println("正在build tinymce") - - // 必须要先删除 - cmd2 := exec.Command("/bin/sh", "-c", "rm "+cmd.Dir+"/js/tinymce/tinymce.dev.js") - cmd2.CombinedOutput() - cmd2 = exec.Command("/bin/sh", "-c", "rm "+cmd.Dir+"/js/tinymce/tinymce.jquery.dev.js") - c, _ := cmd2.CombinedOutput() - fmt.Println(string(c)) - - c, _ = cmd.CombinedOutput() - fmt.Println(string(c)) -} - -func main() { - // 压缩tinymce - // tinymce() - - dev() - - // 其它零散的需要压缩的js - otherJss := []string{"js/main", "js/app/page", "js/contextmenu/jquery.contextmenu", - "js/jquery.ztree.all-3.5", - "js/jQuery-slimScroll-1.3.0/jquery.slimscroll", - } - - for _, js := range otherJss { - compressJs(js) - } - - // 先压缩后合并 - combineJs() - -} diff --git a/bin/release.sh b/bin/release.sh deleted file mode 100644 index c98adb4..0000000 --- a/bin/release.sh +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/sh - -# release leanote - -# 当前路径 -SP=$(cd "$(dirname "$0")"; pwd) - -# tmp path to store leanote release files -tmp="/Users/life/Desktop/leanote_release" - -# version -V="v2.6.1" - -##================================= -# 1. 先build 成 3个平台, 2种bit = 6种 -##================================= - -# cd /Documents/Go/package2/src/github.com/leanote/leanote/bin -# GOOS=darwin GOARCH=amd64 go build -o leanote-darwin-amd64 ../app/tmp - -cd $SP - -# $1 = darwin, linux -# $2 = amd64 -function build() -{ - echo build-$1-$2 - if [ $1 = "linux" -o $1 = "darwin" ] - then - suffix="" - else - suffix=".exe" - fi - - GOOS=$1 GOARCH=$2 go build -o leanote-$1-$2$suffix github.com/leanote/leanote/app/tmp -} - -build "linux" "386"; -build "linux" "amd64"; -build "linux" "arm"; - -build "windows" "386"; -build "windows" "amd64"; - -build "darwin" "amd64"; - - -##====================== -# 2. release目录准备工作 -##====================== -rm -rf $tmp/leanote -mkdir -p $tmp/leanote/app -mkdir -p $tmp/leanote/conf -mkdir -p $tmp/leanote/bin - -##================== -# 3. 复制 -##================== - -cd $SP -cd ../ - -# bin -cp -r ./bin/src $tmp/leanote/bin/ -cp ./bin/run.sh $tmp/leanote/bin/ -cp ./bin/run.bat $tmp/leanote/bin/ - -# views -cp -r ./app/views $tmp/leanote/app -# 可不要, 源码 -#cp -r ./app/service $tmp/leanote/app/service -#cp -r ./app/controllers $tmp/leanote/app/controllers -#cp -r ./app/db $tmp/leanote/app/db -#cp -r ./app/info $tmp/leanote/app/info -#cp -r ./app/lea $tmp/leanote/app/lea - -# conf -cp ./conf/app.conf $tmp/leanote/conf/app.conf -cp ./conf/routes $tmp/leanote/conf/routes -# 处理app.conf, 还原配置 -cat $tmp/leanote/conf/app.conf | sed 's/db.dbname=leanote.*#/db.dbname=leanote #/' > $tmp/leanote/conf/app.conf2 # 不能直接覆盖 -rm $tmp/leanote/conf/app.conf -mv $tmp/leanote/conf/app.conf2 $tmp/leanote/conf/app.conf - -# others -cp -r ./messages ./public ./mongodb_backup $tmp/leanote/ - -# delete some files -rm -r $tmp/leanote/public/tinymce/classes -rm -r $tmp/leanote/public/upload -mkdir $tmp/leanote/public/upload -rm -r $tmp/leanote/public/.codekit-cache -rm $tmp/leanote/public/.DS_Store -rm $tmp/leanote/public/config.codekit - -# make link -# cd $tmp/leanote/bin -# ln -s ../../../../ ./src/github.com/leanote/leanote - -# archieve -# << 'BLOCK - -##=========== -# 4. 打包 -##=========== -# $1 = linux -# $2 = 386, amd64 - -# 创建一个$V的目录存放之 -rm -rf $tmp/$V -mkdir $tmp/$V - -function tarRelease() -{ - echo tar-$1-$2 - cd $SP - cd ../ - rm $tmp/leanote/bin/leanote-* # 删除之前的bin文件 - rm $tmp/leanote/bin/run* # 删除之前的run.sh 或 run.bat - - if [ $1 = "linux" -o $1 = "darwin" ] - then - suffix="" - if [ $2 = "arm" ] - then - cp ./bin/run-arm.sh $tmp/leanote/bin/run.sh - else - cp ./bin/run-$1-$2.sh $tmp/leanote/bin/run.sh - fi - else - cp ./bin/run.bat $tmp/leanote/bin/ - suffix=".exe" - fi - - cp ./bin/leanote-$1-$2$suffix $tmp/leanote/bin/ - cd $tmp - tar -cf $tmp/$V/leanote-$1-$2-$V.bin.tar leanote - gzip $tmp/$V/leanote-$1-$2-$V.bin.tar -} - -tarRelease "linux" "386"; -tarRelease "linux" "amd64"; -tarRelease "linux" "arm"; - -tarRelease "windows" "386"; -tarRelease "windows" "amd64"; - -tarRelease "darwin" "amd64"; - -# BLOCK' diff --git a/bin/run-arm.sh b/bin/run-arm.sh deleted file mode 100644 index 5d9354c..0000000 --- a/bin/run-arm.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) - -# set link - -path="$SCRIPTPATH/src/github.com/leanote" -if [ ! -d "$path" ]; then - mkdir -p "$path" -fi -rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除 -ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote - -# set GOPATH -export GOPATH=$SCRIPTPATH - -script="$SCRIPTPATH/leanote-linux-arm" -chmod 777 $script -$script -importPath github.com/leanote/leanote \ No newline at end of file diff --git a/bin/run-darwin-amd64.sh b/bin/run-darwin-amd64.sh deleted file mode 100644 index 0927622..0000000 --- a/bin/run-darwin-amd64.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) - -# set link - -path="$SCRIPTPATH/src/github.com/leanote" -if [ ! -d "$path" ]; then - mkdir -p "$path" -fi -rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除 -ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote - -# set GOPATH -export GOPATH=$SCRIPTPATH - -script="$SCRIPTPATH/leanote-darwin-amd64" -chmod 777 $script -$script -importPath github.com/leanote/leanote \ No newline at end of file diff --git a/bin/run-linux-386.sh b/bin/run-linux-386.sh deleted file mode 100644 index 28e0e96..0000000 --- a/bin/run-linux-386.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) - -# set link - -path="$SCRIPTPATH/src/github.com/leanote" -if [ ! -d "$path" ]; then - mkdir -p "$path" -fi -rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除 -ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote - -# set GOPATH -export GOPATH=$SCRIPTPATH - -script="$SCRIPTPATH/leanote-linux-386" -chmod 777 $script -$script -importPath github.com/leanote/leanote \ No newline at end of file diff --git a/bin/run-linux-amd64.sh b/bin/run-linux-amd64.sh deleted file mode 100644 index 76ea8a0..0000000 --- a/bin/run-linux-amd64.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) - -# set link - -path="$SCRIPTPATH/src/github.com/leanote" -if [ ! -d "$path" ]; then - mkdir -p "$path" -fi -rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除 -ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote - -# set GOPATH -export GOPATH=$SCRIPTPATH - -script="$SCRIPTPATH/leanote-linux-amd64" -chmod 777 $script -$script -importPath github.com/leanote/leanote \ No newline at end of file diff --git a/bin/run.bat b/bin/run.bat deleted file mode 100644 index 4a47499..0000000 --- a/bin/run.bat +++ /dev/null @@ -1,23 +0,0 @@ -@echo off - -cd.. -set SCRIPTPATH=%cd% - -: top src directory -set leanotePath="%SCRIPTPATH%\bin\src\github.com\leanote" - -if not exist "%leanotePath%" mkdir "%leanotePath%" - -: create software link -if exist "%leanotePath%\leanote" del /Q "%leanotePath%\leanote" -mklink /D "%leanotePath%\leanote" %SCRIPTPATH% - -: set GOPATH -set GOPATH="%SCRIPTPATH%\bin" - -: run -if %processor_architecture%==x86 ( - "%SCRIPTPATH%\bin\leanote-windows-386.exe" -importPath github.com/leanote/leanote -) else ( - "%SCRIPTPATH%\bin\leanote-windows-amd64.exe" -importPath github.com/leanote/leanote -) diff --git a/bin/src/github.com/revel/modules/README.md b/bin/src/github.com/revel/modules/README.md deleted file mode 100644 index e0df12b..0000000 --- a/bin/src/github.com/revel/modules/README.md +++ /dev/null @@ -1,7 +0,0 @@ -modules -======= - -Set of officially supported modules for Revel applications - -### Caution -this is a work in progress \ No newline at end of file diff --git a/bin/src/github.com/revel/modules/auth/README.md b/bin/src/github.com/revel/modules/auth/README.md deleted file mode 100644 index dac48d8..0000000 --- a/bin/src/github.com/revel/modules/auth/README.md +++ /dev/null @@ -1,6 +0,0 @@ -modules/auth -=============== - -Basic user/auth module - -This should be modeled after [flask-security](https://github.com/mattupstate/flask-security) diff --git a/bin/src/github.com/revel/modules/auth/auth.go b/bin/src/github.com/revel/modules/auth/auth.go deleted file mode 100644 index 0a756bd..0000000 --- a/bin/src/github.com/revel/modules/auth/auth.go +++ /dev/null @@ -1,78 +0,0 @@ -package auth - -import ( -// "errors" -) - -var ( - Store StorageDriver -) - -// Store = gormauth.NewGormAuthDriver() - -type UserAuth interface { - // getters/setters implemented by the app-level model - UserId() string - Secret() string - HashedSecret() string - SetHashedSecret(string) - - SecretDriver - // // implemented by secret driver - // Authenticate() (bool, error) -} - -type SecretDriver interface { - Authenticate() (bool, error) - HashSecret(args ...interface{}) (string, error) - - // stuff for documentation - // UserContext is expected in these? - - // Secret expects 0 or non-0 arguments - // When no parameter is passed, it acts as a getter - // When one or more parameters are passed, it acts as a setter - // A driver should specify the expected arguments and their meanings - - // Register() - // Login() - // Logout() -} - -type StorageDriver interface { - Save(user interface{}) error - // Load should take a partially filled struct - // (with values needed to look up) - // and fills in the rest - Load(user interface{}) error -} - -// func init() { -// // auth.Store = gorm... -// } - -// func (c App) Login(email, password string) { - -// u := User { -// Email ... -// } - -// good, err := auth.Authenticate(email, password) - -// user, err := user_info.GetUserByEmail(email) -// } - -// Bycrypt Authenticate() expects a single string argument of the plaintext password -// It returns true on success and false if error or password mismatch -// func Authenticate(attemptedUser UserAuth) (bool, error) { -// // check user in Store -// loadedUser, err := Store.Load(attemptedUser.UserId()) -// if err != nil { -// return false, errors.New("User Not Found") -// } - -// loadedUser.Authenticate(attemptedUser.Secret()) - -// // successfully authenticated -// return true, nil -// } diff --git a/bin/src/github.com/revel/modules/auth/auth_test.go b/bin/src/github.com/revel/modules/auth/auth_test.go deleted file mode 100644 index 4312dc8..0000000 --- a/bin/src/github.com/revel/modules/auth/auth_test.go +++ /dev/null @@ -1,134 +0,0 @@ -package auth_test - -import ( - "errors" - "testing" - - "github.com/revel/modules/auth" - "github.com/revel/modules/auth/driver/secret" -) - -type User struct { - email string - password string - hashpass string - - secret.BcryptAuth // SecurityDriver for testing -} - -func NewUser(email, pass string) *User { - u := &User{ - email: email, - password: pass, - } - u.UserContext = u - return u -} - -func (self *User) UserId() string { - return self.email -} - -func (self *User) Secret() string { - return self.password -} - -func (self *User) HashedSecret() string { - return self.hashpass -} - -func (self *User) SetHashedSecret(hpass string) { - self.hashpass = hpass -} - -// func (self *User) Load() string - -type TestStore struct { - data map[string]string -} - -func (self *TestStore) Save(user interface{}) error { - u, ok := user.(*User) - if !ok { - return errors.New("TestStore.Save() expected arg of type User") - } - - hPass, err := u.HashSecret(u.Secret()) - if err != nil { - return err - } - self.data[u.UserId()] = hPass - - return nil -} -func (self *TestStore) Load(user interface{}) error { - u, ok := user.(*User) - if !ok { - return errors.New("TestStore.Load() expected arg of type User") - } - - hpass, ok := self.data[u.UserId()] - if !ok { - return errors.New("Record Not Found") - } - u.SetHashedSecret(hpass) - return nil -} - -func TestPasswordHash(t *testing.T) { - auth.Store = &TestStore{ - data: make(map[string]string), - } - u := NewUser("demo@domain.com", "demopass") - fail := NewUser("demo@domain.com", "") - - var err error - u.hashpass, err = u.HashSecret(u.password) - if err != nil { - t.Errorf("Should have hashed password, get error: %v\n", err) - } - fail.hashpass, err = fail.HashSecret(fail.password) - if err == nil { - t.Errorf("Should have failed hashing\n") - } -} - -func TestAuthenticate(t *testing.T) { - auth.Store = &TestStore{ - data: make(map[string]string), - } - - // user registered a long time ago - u := NewUser("demo@domain.com", "demopass") - err := auth.Store.Save(u) - if err != nil { - t.Errorf("Should have saved user: %v", err) - } - - // users now logging in - pass := NewUser("demo@domain.com", "demopass") - fail := NewUser("demo@domain.com", "invalid") - - // valid user is now trying to login - // check user in DB - err = auth.Store.Load(pass) - if err != nil { - t.Errorf("Should have loaded pass user: %v\n", err) - } - // check credentials - ok, err := pass.Authenticate() - if !ok || err != nil { - t.Errorf("Should have authenticated user") - } - - // invalid user is now trying to login - err = auth.Store.Load(fail) - if err != nil { - t.Errorf("Should have loaded fail user") - } - // this should fail - ok, err = fail.Authenticate() - if ok || err != nil { - t.Errorf("Should have failed to authenticate user: %v\n", err) - } -} diff --git a/bin/src/github.com/revel/modules/auth/doc.go b/bin/src/github.com/revel/modules/auth/doc.go deleted file mode 100644 index 6a6d9eb..0000000 --- a/bin/src/github.com/revel/modules/auth/doc.go +++ /dev/null @@ -1,27 +0,0 @@ -/* A basic user authentication module for Revel - - list of concerns: -- Separating out the interface and driver -- Removing DB/Storage dependency -- UUID as default identifier? -- how to deal with password/secret or generally, method of authorization -- default {views,controllers,routes} for register/login/logut ? -- reset password in most basic ? -- activation (and other features) in a second / more sophisticated driver -- filter for checking that user is authenticated - - -I think a driver is made up of 2 parts -data prep and data storage -register and password reset are part of data prep -as is the auth hash method -they don't care how the data is stored - -then there is the data store - -perhaps each auth user model should instantiate 2 drivers instead of 1? -one for data prep components and one for storage -so the security driver and the storage driver - -*/ -package auth diff --git a/bin/src/github.com/revel/modules/auth/driver/secret/bcrypt.go b/bin/src/github.com/revel/modules/auth/driver/secret/bcrypt.go deleted file mode 100644 index e0649b8..0000000 --- a/bin/src/github.com/revel/modules/auth/driver/secret/bcrypt.go +++ /dev/null @@ -1,73 +0,0 @@ -package secret - -import ( - "errors" - - "golang.org/x/crypto/bcrypt" - "github.com/revel/modules/auth" -) - -// example implementation of a Revel auth security driver -// This driver should be embedded into your app-level User model -// It expects your User model to have `Password` and `HashedPassword` string fields -// -// Your User model also needs to set itself as the UserContext for the BcryptAuth driver -// -// func NewUser(email, pass string) *User { -// u := &User{ -// email: email, -// password: pass, -// } -// u.UserContext = u -// } -// -type BcryptAuth struct { - UserContext auth.UserAuth -} - -// Bcrypt Secret() returns the hashed version of the password. -// It expects an argument of type string, which is the plain text password -func (self *BcryptAuth) HashSecret(args ...interface{}) (string, error) { - if auth.Store == nil { - return "", errors.New("Auth module StorageDriver not set") - } - argLen := len(args) - if argLen == 0 { - // we are getting - return string(self.UserContext.HashedSecret()), nil - } - - if argLen == 1 { - // we are setting - password, ok := args[0].(string) - if !ok { - return "", errors.New("Wrong argument type provided, expected plaintext password as string") - } - hPass, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost) - if err != nil { - return "", err - } - - self.UserContext.SetHashedSecret(string(hPass)) - return self.UserContext.HashedSecret(), nil - } - - // bad argument count - return "", errors.New("Too many arguments provided, expected one") -} - -// Bycrypt Authenticate() expects a single string argument of the plaintext password -// It returns true on success and false if error or password mismatch -func (self *BcryptAuth) Authenticate() (bool, error) { - // check password - err := bcrypt.CompareHashAndPassword([]byte(self.UserContext.HashedSecret()), []byte(self.UserContext.Secret())) - if err == bcrypt.ErrMismatchedHashAndPassword { - return false, nil - } - if err != nil { - return false, err - } - - // successfully authenticated - return true, nil -} diff --git a/bin/src/github.com/revel/modules/auth/driver/storage/mysql/README.md b/bin/src/github.com/revel/modules/auth/driver/storage/mysql/README.md deleted file mode 100644 index c02f9de..0000000 --- a/bin/src/github.com/revel/modules/auth/driver/storage/mysql/README.md +++ /dev/null @@ -1,3 +0,0 @@ -Mysql Auth driver -================== - diff --git a/bin/src/github.com/revel/modules/auth/driver/storage/postgres/README.md b/bin/src/github.com/revel/modules/auth/driver/storage/postgres/README.md deleted file mode 100644 index 3f541c3..0000000 --- a/bin/src/github.com/revel/modules/auth/driver/storage/postgres/README.md +++ /dev/null @@ -1,3 +0,0 @@ -Postgresql Auth driver -================== - diff --git a/bin/src/github.com/revel/modules/auth/driver/storage/sqlite/README.md b/bin/src/github.com/revel/modules/auth/driver/storage/sqlite/README.md deleted file mode 100644 index deba56f..0000000 --- a/bin/src/github.com/revel/modules/auth/driver/storage/sqlite/README.md +++ /dev/null @@ -1,3 +0,0 @@ -Sqlite Auth driver -================== - diff --git a/bin/src/github.com/revel/modules/auth/user.go b/bin/src/github.com/revel/modules/auth/user.go deleted file mode 100644 index 72b5e71..0000000 --- a/bin/src/github.com/revel/modules/auth/user.go +++ /dev/null @@ -1,17 +0,0 @@ -package auth - -// var storageDriver auth.StorageDriver // postgres in example - -// type AuthUserModel struct { -// userId string -// security *SecurityDriver // bcrypt in example - -// } - -// func (self *AuthUserModel) UserId() string { -// return self.userId -// } - -// func (self *AuthUserModel) Secret() string { -// return self.security.Secret() -// } diff --git a/bin/src/github.com/revel/modules/csrf/app/csrf.go b/bin/src/github.com/revel/modules/csrf/app/csrf.go deleted file mode 100644 index de67be7..0000000 --- a/bin/src/github.com/revel/modules/csrf/app/csrf.go +++ /dev/null @@ -1,121 +0,0 @@ -package csrf - -import ( - "crypto/rand" - "crypto/subtle" - "encoding/hex" - "html/template" - "io" - "math" - "net/url" - - "github.com/revel/revel" -) - -// allowMethods are HTTP methods that do NOT require a token -var allowedMethods = map[string]bool{ - "GET": true, - "HEAD": true, - "OPTIONS": true, - "TRACE": true, -} - -func RandomString(length int) (string, error) { - buffer := make([]byte, int(math.Ceil(float64(length)/2))) - if _, err := io.ReadFull(rand.Reader, buffer); err != nil { - return "", nil - } - str := hex.EncodeToString(buffer) - return str[:length], nil -} - -func RefreshToken(c *revel.Controller) { - token, err := RandomString(64) - if err != nil { - panic(err) - } - c.Session["csrf_token"] = token -} - -// CsrfFilter enables CSRF request token creation and verification. -// -// Usage: -// 1) Add `csrf.CsrfFilter` to the app's filters (it must come after the revel.SessionFilter). -// 2) Add CSRF fields to a form with the template tag `{{ csrftoken . }}`. The filter adds a function closure to the `RenderArgs` that can pull out the secret and make the token as-needed, caching the value in the request. Ajax support provided through the `X-CSRFToken` header. -func CsrfFilter(c *revel.Controller, fc []revel.Filter) { - token, foundToken := c.Session["csrf_token"] - - if !foundToken { - RefreshToken(c) - } - - referer, refErr := url.Parse(c.Request.Header.Get("Referer")) - isSameOrigin := sameOrigin(c.Request.URL, referer) - - // If the Request method isn't in the white listed methods - if !allowedMethods[c.Request.Method] && !IsExempt(c) { - // Token wasn't present at all - if !foundToken { - c.Result = c.Forbidden("REVEL CSRF: Session token missing.") - return - } - - // Referer header is invalid - if refErr != nil { - c.Result = c.Forbidden("REVEL CSRF: HTTP Referer malformed.") - return - } - - // Same origin - if !isSameOrigin { - c.Result = c.Forbidden("REVEL CSRF: Same origin mismatch.") - return - } - - var requestToken string - // First check for token in post data - if c.Request.Method == "POST" { - requestToken = c.Request.FormValue("csrftoken") - } - - // Then check for token in custom headers, as with AJAX - if requestToken == "" { - requestToken = c.Request.Header.Get("X-CSRFToken") - } - - if requestToken == "" || !compareToken(requestToken, token) { - c.Result = c.Forbidden("REVEL CSRF: Invalid token.") - return - } - } - - fc[0](c, fc[1:]) - - // Only add token to RenderArgs if the request is: not AJAX, not missing referer header, and is same origin. - if c.Request.Header.Get("X-CSRFToken") == "" && isSameOrigin { - c.RenderArgs["_csrftoken"] = token - } -} - -func compareToken(requestToken, token string) bool { - // ConstantTimeCompare will panic if the []byte aren't the same length - if len(requestToken) != len(token) { - return false - } - return subtle.ConstantTimeCompare([]byte(requestToken), []byte(token)) == 1 -} - -// Validates same origin policy -func sameOrigin(u1, u2 *url.URL) bool { - return u1.Scheme == u2.Scheme && u1.Host == u2.Host -} - -func init() { - revel.TemplateFuncs["csrftoken"] = func(renderArgs map[string]interface{}) template.HTML { - if tokenFunc, ok := renderArgs["_csrftoken"]; !ok { - panic("REVEL CSRF: _csrftoken missing from RenderArgs.") - } else { - return template.HTML(tokenFunc.(func() string)()) - } - } -} diff --git a/bin/src/github.com/revel/modules/csrf/app/csrf_test.go b/bin/src/github.com/revel/modules/csrf/app/csrf_test.go deleted file mode 100644 index dcf1cce..0000000 --- a/bin/src/github.com/revel/modules/csrf/app/csrf_test.go +++ /dev/null @@ -1,169 +0,0 @@ -package csrf - -import ( - "bytes" - "net/http" - "net/http/httptest" - "net/url" - "strconv" - "testing" - - "github.com/revel/revel" -) - -var testFilters = []revel.Filter{ - CsrfFilter, - func(c *revel.Controller, fc []revel.Filter) { - c.RenderHtml("{{ csrftoken . }}") - }, -} - -func TestTokenInSession(t *testing.T) { - resp := httptest.NewRecorder() - getRequest, _ := http.NewRequest("GET", "http://www.example.com/", nil) - c := revel.NewController(revel.NewRequest(getRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - testFilters[0](c, testFilters) - - if _, ok := c.Session["csrf_token"]; !ok { - t.Fatal("token should be present in session") - } -} - -func TestPostWithoutToken(t *testing.T) { - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - testFilters[0](c, testFilters) - - if c.Response.Status != 403 { - t.Fatal("post without token should be forbidden") - } -} - -func TestNoReferrer(t *testing.T) { - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - RefreshToken(c) - token := c.Session["csrf_token"] - - // make a new request with the token - data := url.Values{} - data.Set("csrftoken", token) - formPostRequest, _ := http.NewRequest("POST", "http://www.example.com/", bytes.NewBufferString(data.Encode())) - formPostRequest.Header.Add("Content-Type", "application/x-www-form-urlencoded") - formPostRequest.Header.Add("Content-Length", strconv.Itoa(len(data.Encode()))) - - // and replace the old request - c.Request = revel.NewRequest(formPostRequest) - - testFilters[0](c, testFilters) - - if c.Response.Status != 403 { - t.Fatal("post without referer should be forbidden") - } -} - -func TestRefererHttps(t *testing.T) { - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - - c.Session = make(revel.Session) - - RefreshToken(c) - token := c.Session["csrf_token"] - - // make a new request with the token - data := url.Values{} - data.Set("csrftoken", token) - formPostRequest, _ := http.NewRequest("POST", "https://www.example.com/", bytes.NewBufferString(data.Encode())) - formPostRequest.Header.Add("Content-Type", "application/x-www-form-urlencoded") - formPostRequest.Header.Add("Content-Length", strconv.Itoa(len(data.Encode()))) - formPostRequest.Header.Add("Referer", "http://www.example.com/") - - // and replace the old request - c.Request = revel.NewRequest(formPostRequest) - - testFilters[0](c, testFilters) - - if c.Response.Status != 403 { - t.Fatal("posts to https should have an https referer") - } -} - -func TestHeaderWithToken(t *testing.T) { - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - - c.Session = make(revel.Session) - - RefreshToken(c) - token := c.Session["csrf_token"] - - // make a new request with the token - formPostRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - formPostRequest.Header.Add("X-CSRFToken", token) - formPostRequest.Header.Add("Referer", "http://www.example.com/") - - // and replace the old request - c.Request = revel.NewRequest(formPostRequest) - - testFilters[0](c, testFilters) - - if c.Response.Status == 403 { - t.Fatal("post with http header token should be allowed") - } -} - -func TestFormPostWithToken(t *testing.T) { - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - - c.Session = make(revel.Session) - - RefreshToken(c) - token := c.Session["csrf_token"] - - // make a new request with the token - data := url.Values{} - data.Set("csrftoken", token) - formPostRequest, _ := http.NewRequest("POST", "http://www.example.com/", bytes.NewBufferString(data.Encode())) - formPostRequest.Header.Add("Content-Type", "application/x-www-form-urlencoded") - formPostRequest.Header.Add("Content-Length", strconv.Itoa(len(data.Encode()))) - formPostRequest.Header.Add("Referer", "http://www.example.com/") - - // and replace the old request - c.Request = revel.NewRequest(formPostRequest) - - testFilters[0](c, testFilters) - - if c.Response.Status == 403 { - t.Fatal("form post with token should be allowed") - } -} - -func TestNoTokenInArgsWhenCORs(t *testing.T) { - resp := httptest.NewRecorder() - - getRequest, _ := http.NewRequest("GET", "http://www.example1.com/", nil) - getRequest.Header.Add("Referer", "http://www.example2.com/") - - c := revel.NewController(revel.NewRequest(getRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - testFilters[0](c, testFilters) - - if _, ok := c.RenderArgs["_csrftoken"]; ok { - t.Fatal("RenderArgs should not contain token when not same origin") - } -} diff --git a/bin/src/github.com/revel/modules/csrf/app/exempt.go b/bin/src/github.com/revel/modules/csrf/app/exempt.go deleted file mode 100644 index a01fb92..0000000 --- a/bin/src/github.com/revel/modules/csrf/app/exempt.go +++ /dev/null @@ -1,36 +0,0 @@ -package csrf - -import ( - "fmt" - "strings" - - "github.com/revel/revel" -) - -var ( - exemptPath = make(map[string]bool) - exemptAction = make(map[string]bool) -) - -func MarkExempt(route string) { - if strings.HasPrefix(route, "/") { - // e.g. "/controller/action" - exemptPath[strings.ToLower(route)] = true - } else if routeParts := strings.Split(route, "."); len(routeParts) == 2 { - // e.g. "ControllerName.ActionName" - exemptAction[route] = true - } else { - err := fmt.Sprintf("csrf.MarkExempt() received invalid argument \"%v\". Either provide a path prefixed with \"/\" or controller action in the form of \"ControllerName.ActionName\".", route) - panic(err) - } -} - -func IsExempt(c *revel.Controller) bool { - if _, ok := exemptPath[strings.ToLower(c.Request.Request.URL.Path)]; ok { - return true - } else if _, ok := exemptAction[c.Action]; ok { - return true - } - - return false -} diff --git a/bin/src/github.com/revel/modules/csrf/app/exempt_test.go b/bin/src/github.com/revel/modules/csrf/app/exempt_test.go deleted file mode 100644 index f347ae1..0000000 --- a/bin/src/github.com/revel/modules/csrf/app/exempt_test.go +++ /dev/null @@ -1,55 +0,0 @@ -package csrf - -import ( - "net/http" - "net/http/httptest" - "testing" - - "github.com/revel/revel" -) - -func TestExemptPath(t *testing.T) { - MarkExempt("/Controller/Action") - - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/Controller/Action", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - testFilters[0](c, testFilters) - - if c.Response.Status == 403 { - t.Fatal("post to csrf exempt action should pass") - } -} - -func TestExemptPathCaseInsensitive(t *testing.T) { - MarkExempt("/Controller/Action") - - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/controller/action", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - - testFilters[0](c, testFilters) - - if c.Response.Status == 403 { - t.Fatal("post to csrf exempt action should pass") - } -} - -func TestExemptAction(t *testing.T) { - MarkExempt("Controller.Action") - - resp := httptest.NewRecorder() - postRequest, _ := http.NewRequest("POST", "http://www.example.com/Controller/Action", nil) - c := revel.NewController(revel.NewRequest(postRequest), revel.NewResponse(resp)) - c.Session = make(revel.Session) - c.Action = "Controller.Action" - - testFilters[0](c, testFilters) - - if c.Response.Status == 403 { - t.Fatal("post to csrf exempt action should pass") - } -} diff --git a/bin/src/github.com/revel/modules/db/app/db.go b/bin/src/github.com/revel/modules/db/app/db.go deleted file mode 100644 index 7ff43ca..0000000 --- a/bin/src/github.com/revel/modules/db/app/db.go +++ /dev/null @@ -1,86 +0,0 @@ -// This module configures a database connection for the application. -// -// Developers use this module by importing and calling db.Init(). -// A "Transactional" controller type is provided as a way to import interceptors -// that manage the transaction -// -// In particular, a transaction is begun before each request and committed on -// success. If a panic occurred during the request, the transaction is rolled -// back. (The application may also roll the transaction back itself.) -package db - -import ( - "database/sql" - "github.com/revel/revel" -) - -var ( - Db *sql.DB - Driver string - Spec string -) - -func Init() { - // Read configuration. - var found bool - if Driver, found = revel.Config.String("db.driver"); !found { - revel.ERROR.Fatal("No db.driver found.") - } - if Spec, found = revel.Config.String("db.spec"); !found { - revel.ERROR.Fatal("No db.spec found.") - } - - // Open a connection. - var err error - Db, err = sql.Open(Driver, Spec) - if err != nil { - revel.ERROR.Fatal(err) - } -} - -type Transactional struct { - *revel.Controller - Txn *sql.Tx -} - -// Begin a transaction -func (c *Transactional) Begin() revel.Result { - txn, err := Db.Begin() - if err != nil { - panic(err) - } - c.Txn = txn - return nil -} - -// Rollback if it's still going (must have panicked). -func (c *Transactional) Rollback() revel.Result { - if c.Txn != nil { - if err := c.Txn.Rollback(); err != nil { - if err != sql.ErrTxDone { - panic(err) - } - } - c.Txn = nil - } - return nil -} - -// Commit the transaction. -func (c *Transactional) Commit() revel.Result { - if c.Txn != nil { - if err := c.Txn.Commit(); err != nil { - if err != sql.ErrTxDone { - panic(err) - } - } - c.Txn = nil - } - return nil -} - -func init() { - revel.InterceptMethod((*Transactional).Begin, revel.BEFORE) - revel.InterceptMethod((*Transactional).Commit, revel.AFTER) - revel.InterceptMethod((*Transactional).Rollback, revel.FINALLY) -} diff --git a/bin/src/github.com/revel/modules/jobs/app/controllers/status.go b/bin/src/github.com/revel/modules/jobs/app/controllers/status.go deleted file mode 100644 index ec3b979..0000000 --- a/bin/src/github.com/revel/modules/jobs/app/controllers/status.go +++ /dev/null @@ -1,32 +0,0 @@ -package controllers - -import ( - "github.com/revel/revel" - "github.com/revel/modules/jobs/app/jobs" - "github.com/robfig/cron" - "strings" -) - -type Jobs struct { - *revel.Controller -} - -func (c Jobs) Status() revel.Result { - remoteAddress := c.Request.RemoteAddr - if revel.Config.BoolDefault("jobs.acceptproxyaddress", false) { - if proxiedAddress, isProxied := c.Request.Header["X-Forwarded-For"]; isProxied { - remoteAddress = proxiedAddress[0] - } - } - if !strings.HasPrefix(remoteAddress, "127.0.0.1") && !strings.HasPrefix(remoteAddress, "::1") { - return c.Forbidden("%s is not local", remoteAddress) - } - entries := jobs.MainCron.Entries() - return c.Render(entries) -} - -func init() { - revel.TemplateFuncs["castjob"] = func(job cron.Job) *jobs.Job { - return job.(*jobs.Job) - } -} diff --git a/bin/src/github.com/revel/modules/jobs/app/jobs/job.go b/bin/src/github.com/revel/modules/jobs/app/jobs/job.go deleted file mode 100644 index 8b0dac4..0000000 --- a/bin/src/github.com/revel/modules/jobs/app/jobs/job.go +++ /dev/null @@ -1,66 +0,0 @@ -package jobs - -import ( - "github.com/revel/revel" - "github.com/robfig/cron" - "reflect" - "runtime/debug" - "sync" - "sync/atomic" -) - -type Job struct { - Name string - inner cron.Job - status uint32 - running sync.Mutex -} - -const UNNAMED = "(unnamed)" - -func New(job cron.Job) *Job { - name := reflect.TypeOf(job).Name() - if name == "Func" { - name = UNNAMED - } - return &Job{ - Name: name, - inner: job, - } -} - -func (j *Job) Status() string { - if atomic.LoadUint32(&j.status) > 0 { - return "RUNNING" - } - return "IDLE" -} - -func (j *Job) Run() { - // If the job panics, just print a stack trace. - // Don't let the whole process die. - defer func() { - if err := recover(); err != nil { - if revelError := revel.NewErrorFromPanic(err); revelError != nil { - revel.ERROR.Print(err, "\n", revelError.Stack) - } else { - revel.ERROR.Print(err, "\n", string(debug.Stack())) - } - } - }() - - if !selfConcurrent { - j.running.Lock() - defer j.running.Unlock() - } - - if workPermits != nil { - workPermits <- struct{}{} - defer func() { <-workPermits }() - } - - atomic.StoreUint32(&j.status, 1) - defer atomic.StoreUint32(&j.status, 0) - - j.inner.Run() -} diff --git a/bin/src/github.com/revel/modules/jobs/app/jobs/jobrunner.go b/bin/src/github.com/revel/modules/jobs/app/jobs/jobrunner.go deleted file mode 100644 index 5c0e38f..0000000 --- a/bin/src/github.com/revel/modules/jobs/app/jobs/jobrunner.go +++ /dev/null @@ -1,64 +0,0 @@ -// A job runner for executing scheduled or ad-hoc tasks asynchronously from HTTP requests. -// -// It adds a couple of features on top of the cron package to make it play nicely with Revel: -// 1. Protection against job panics. (They print to ERROR instead of take down the process) -// 2. (Optional) Limit on the number of jobs that may run simulatenously, to -// limit resource consumption. -// 3. (Optional) Protection against multiple instances of a single job running -// concurrently. If one execution runs into the next, the next will be queued. -// 4. Cron expressions may be defined in app.conf and are reusable across jobs. -// 5. Job status reporting. -package jobs - -import ( - "github.com/revel/revel" - "github.com/robfig/cron" - "strings" - "time" -) - -// Callers can use jobs.Func to wrap a raw func. -// (Copying the type to this package makes it more visible) -// -// For example: -// jobs.Schedule("cron.frequent", jobs.Func(myFunc)) -type Func func() - -func (r Func) Run() { r() } - -func Schedule(spec string, job cron.Job) error { - // Look to see if given spec is a key from the Config. - if strings.HasPrefix(spec, "cron.") { - confSpec, found := revel.Config.String(spec) - if !found { - panic("Cron spec not found: " + spec) - } - spec = confSpec - } - sched, err := cron.Parse(spec) - if err != nil { - return err - } - MainCron.Schedule(sched, New(job)) - return nil -} - -// Run the given job at a fixed interval. -// The interval provided is the time between the job ending and the job being run again. -// The time that the job takes to run is not included in the interval. -func Every(duration time.Duration, job cron.Job) { - MainCron.Schedule(cron.Every(duration), New(job)) -} - -// Run the given job right now. -func Now(job cron.Job) { - go New(job).Run() -} - -// Run the given job once, after the given delay. -func In(duration time.Duration, job cron.Job) { - go func() { - time.Sleep(duration) - New(job).Run() - }() -} diff --git a/bin/src/github.com/revel/modules/jobs/app/jobs/plugin.go b/bin/src/github.com/revel/modules/jobs/app/jobs/plugin.go deleted file mode 100644 index 8dd487b..0000000 --- a/bin/src/github.com/revel/modules/jobs/app/jobs/plugin.go +++ /dev/null @@ -1,32 +0,0 @@ -package jobs - -import ( - "fmt" - "github.com/revel/revel" - "github.com/robfig/cron" -) - -const DEFAULT_JOB_POOL_SIZE = 10 - -var ( - // Singleton instance of the underlying job scheduler. - MainCron *cron.Cron - - // This limits the number of jobs allowed to run concurrently. - workPermits chan struct{} - - // Is a single job allowed to run concurrently with itself? - selfConcurrent bool -) - -func init() { - MainCron = cron.New() - revel.OnAppStart(func() { - if size := revel.Config.IntDefault("jobs.pool", DEFAULT_JOB_POOL_SIZE); size > 0 { - workPermits = make(chan struct{}, size) - } - selfConcurrent = revel.Config.BoolDefault("jobs.selfconcurrent", false) - MainCron.Start() - fmt.Println("Go to /@jobs to see job status.") - }) -} diff --git a/bin/src/github.com/revel/modules/jobs/app/views/Jobs/Status.html b/bin/src/github.com/revel/modules/jobs/app/views/Jobs/Status.html deleted file mode 100644 index f44a3db..0000000 --- a/bin/src/github.com/revel/modules/jobs/app/views/Jobs/Status.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -

Scheduled Jobs

- - - -{{range .entries}} - {{$job := castjob .Job}} - - - - - - -{{end}} -
NameStatusLast runNext run
{{$job.Name}}{{$job.Status}}{{if not .Prev.IsZero}}{{.Prev.Format "2006-01-02 15:04:05"}}{{end}}{{if not .Next.IsZero}}{{.Next.Format "2006-01-02 15:04:05"}}{{end}}
diff --git a/bin/src/github.com/revel/modules/jobs/conf/routes b/bin/src/github.com/revel/modules/jobs/conf/routes deleted file mode 100644 index 7c9a86c..0000000 --- a/bin/src/github.com/revel/modules/jobs/conf/routes +++ /dev/null @@ -1 +0,0 @@ -GET /@jobs Jobs.Status diff --git a/bin/src/github.com/revel/modules/pprof/README.md b/bin/src/github.com/revel/modules/pprof/README.md deleted file mode 100644 index 3528e85..0000000 --- a/bin/src/github.com/revel/modules/pprof/README.md +++ /dev/null @@ -1,19 +0,0 @@ -Revel pprof module -============ - -#### How to use: - -1. Open your app.conf file and add the following line: -`module.pprof=github.com/revel/modules/pprof` -This will enable the pprof module. - -2. Next, open your routes file and add: -`module:pprof` **Note:** Do not change these routes. The pprof command-line tool by default assumes these routes. - -Congrats! You can now profile your application. To use the web interface, visit `http://:/debug/pprof`. You can also use the `go tool pprof` command to profile your application and get a little deeper. Use the command by running `go tool pprof http://:`. For example, if you modified the booking sample, you would run: `go tool pprof $GOPATH/bin/booking http://localhost:9000` (assuming you used the default `revel run` arguments. - -The command-line tool will take a 30-second CPU profile, and save the results to a temporary file in your `$HOME/pprof` directory. You can reference this file at a later time by using the same command as above, but by specifying the filename instead of the server address. - -In order to fully utilize the command-line tool, you may need the graphviz utilities. If you're on OS X, you can install these easily using Homebrew: `brew install graphviz`. - -To read more about profiling Go programs, here is some reading material: [The Go Blog](http://blog.golang.org/profiling-go-programs) : [net/pprof package documentation](http://golang.org/pkg/net/http/pprof/) diff --git a/bin/src/github.com/revel/modules/pprof/app/controllers/pprof.go b/bin/src/github.com/revel/modules/pprof/app/controllers/pprof.go deleted file mode 100644 index ff06138..0000000 --- a/bin/src/github.com/revel/modules/pprof/app/controllers/pprof.go +++ /dev/null @@ -1,39 +0,0 @@ -package controllers - -import ( - "github.com/revel/revel" - "net/http" - "net/http/pprof" -) - -type Pprof struct { - *revel.Controller -} - -// The PprofHandler type makes it easy to call the net/http/pprof handler methods -// since they all have the same method signature -type PprofHandler func(http.ResponseWriter, *http.Request) - -func (r PprofHandler) Apply(req *revel.Request, resp *revel.Response) { - r(resp.Out, req.Request) -} - -func (c Pprof) Profile() revel.Result { - return PprofHandler(pprof.Profile) -} - -func (c Pprof) Symbol() revel.Result { - return PprofHandler(pprof.Symbol) -} - -func (c Pprof) Cmdline() revel.Result { - return PprofHandler(pprof.Cmdline) -} - -func (c Pprof) Trace() revel.Result { - return PprofHandler(pprof.Trace) -} - -func (c Pprof) Index() revel.Result { - return PprofHandler(pprof.Index) -} diff --git a/bin/src/github.com/revel/modules/pprof/conf/routes b/bin/src/github.com/revel/modules/pprof/conf/routes deleted file mode 100644 index f814e4d..0000000 --- a/bin/src/github.com/revel/modules/pprof/conf/routes +++ /dev/null @@ -1,6 +0,0 @@ -GET /pprof/profile Pprof.Profile -GET /pprof/symbol Pprof.Symbol -GET /debug/pprof/cmdline Pprof.Cmdline -GET /debug/pprof/trace Pprof.Trace -GET /debug/pprof/* Pprof.Index -GET /debug/pprof/ Pprof.Index diff --git a/bin/src/github.com/revel/modules/static/app/controllers/static.go b/bin/src/github.com/revel/modules/static/app/controllers/static.go deleted file mode 100644 index 7c8aeef..0000000 --- a/bin/src/github.com/revel/modules/static/app/controllers/static.go +++ /dev/null @@ -1,121 +0,0 @@ -package controllers - -import ( - "github.com/revel/revel" - "os" - fpath "path/filepath" - "strings" - "syscall" -) - -type Static struct { - *revel.Controller -} - -// This method handles requests for files. The supplied prefix may be absolute -// or relative. If the prefix is relative it is assumed to be relative to the -// application directory. The filepath may either be just a file or an -// additional filepath to search for the given file. This response may return -// the following responses in the event of an error or invalid request; -// 403(Forbidden): If the prefix filepath combination results in a directory. -// 404(Not found): If the prefix and filepath combination results in a non-existent file. -// 500(Internal Server Error): There are a few edge cases that would likely indicate some configuration error outside of revel. -// -// Note that when defining routes in routes/conf the parameters must not have -// spaces around the comma. -// Bad: Static.Serve("public/img", "favicon.png") -// Good: Static.Serve("public/img","favicon.png") -// -// Examples: -// Serving a directory -// Route (conf/routes): -// GET /public/{<.*>filepath} Static.Serve("public") -// Request: -// public/js/sessvars.js -// Calls -// Static.Serve("public","js/sessvars.js") -// -// Serving a file -// Route (conf/routes): -// GET /favicon.ico Static.Serve("public/img","favicon.png") -// Request: -// favicon.ico -// Calls: -// Static.Serve("public/img", "favicon.png") -func (c Static) Serve(prefix, filepath string) revel.Result { - // Fix for #503. - prefix = c.Params.Fixed.Get("prefix") - if prefix == "" { - return c.NotFound("") - } - - return serve(c, prefix, filepath) -} - -// This method allows modules to serve binary files. The parameters are the same -// as Static.Serve with the additional module name pre-pended to the list of -// arguments. -func (c Static) ServeModule(moduleName, prefix, filepath string) revel.Result { - // Fix for #503. - prefix = c.Params.Fixed.Get("prefix") - if prefix == "" { - return c.NotFound("") - } - - var basePath string - for _, module := range revel.Modules { - if module.Name == moduleName { - basePath = module.Path - } - } - - absPath := fpath.Join(basePath, fpath.FromSlash(prefix)) - - return serve(c, absPath, filepath) -} - - -// This method allows static serving of application files in a verified manner. -func serve(c Static, prefix, filepath string) revel.Result { - var basePath string - if !fpath.IsAbs(prefix) { - basePath = revel.BasePath - } - - basePathPrefix := fpath.Join(basePath, fpath.FromSlash(prefix)) - fname := fpath.Join(basePathPrefix, fpath.FromSlash(filepath)) - // Verify the request file path is within the application's scope of access - if !strings.HasPrefix(fname, basePathPrefix) { - revel.WARN.Printf("Attempted to read file outside of base path: %s", fname) - return c.NotFound("") - } - - // Verify file path is accessible - finfo, err := os.Stat(fname) - if err != nil { - if os.IsNotExist(err) || err.(*os.PathError).Err == syscall.ENOTDIR { - revel.WARN.Printf("File not found (%s): %s ", fname, err) - return c.NotFound("File not found") - } - revel.ERROR.Printf("Error trying to get fileinfo for '%s': %s", fname, err) - return c.RenderError(err) - } - - // Disallow directory listing - if finfo.Mode().IsDir() { - revel.WARN.Printf("Attempted directory listing of %s", fname) - return c.Forbidden("Directory listing not allowed") - } - - // Open request file path - file, err := os.Open(fname) - if err != nil { - if os.IsNotExist(err) { - revel.WARN.Printf("File not found (%s): %s ", fname, err) - return c.NotFound("File not found") - } - revel.ERROR.Printf("Error opening '%s': %s", fname, err) - return c.RenderError(err) - } - return c.RenderFile(file, revel.Inline) -} diff --git a/bin/src/github.com/revel/modules/testrunner/app/controllers/testrunner.go b/bin/src/github.com/revel/modules/testrunner/app/controllers/testrunner.go deleted file mode 100644 index 5982ef7..0000000 --- a/bin/src/github.com/revel/modules/testrunner/app/controllers/testrunner.go +++ /dev/null @@ -1,248 +0,0 @@ -package controllers - -import ( - "bytes" - "encoding/json" - "fmt" - "html/template" - "reflect" - "strings" - - "github.com/revel/revel" - "github.com/revel/revel/testing" -) - -// TestRunner is a controller which is used for running application tests in browser. -type TestRunner struct { - *revel.Controller -} - -// TestSuiteDesc is used for storing information about a single test suite. -// This structure is required by revel test cmd. -type TestSuiteDesc struct { - Name string - Tests []TestDesc - - // Elem is reflect.Type which can be used for accessing methods - // of the test suite. - Elem reflect.Type -} - -// TestDesc is used for describing a single test of some test suite. -// This structure is required by revel test cmd. -type TestDesc struct { - Name string -} - -// TestSuiteResult stores the results the whole test suite. -// This structure is required by revel test cmd. -type TestSuiteResult struct { - Name string - Passed bool - Results []TestResult -} - -// TestResult represents the results of running a single test of some test suite. -// This structure is required by revel test cmd. -type TestResult struct { - Name string - Passed bool - ErrorHTML template.HTML - ErrorSummary string -} - -var ( - testSuites []TestSuiteDesc // A list of all available tests. - - none = []reflect.Value{} // It is used as input for reflect call in a few places. - - // registeredTests simplifies the search of test suites by their name. - // "TestSuite.TestName" is used as a key. Value represents index in testSuites. - registeredTests map[string]int -) - -/* - Controller's action methods are below. -*/ - -// Index is an action which renders the full list of available test suites and their tests. -func (c TestRunner) Index() revel.Result { - return c.Render(testSuites) -} - -// Run runs a single test, given by the argument. -func (c TestRunner) Run(suite, test string) revel.Result { - // Check whether requested test exists. - suiteIndex, ok := registeredTests[suite+"."+test] - if !ok { - return c.NotFound("Test %s.%s does not exist", suite, test) - } - - result := TestResult{Name: test} - - // Found the suite, create a new instance and run the named method. - t := testSuites[suiteIndex].Elem - v := reflect.New(t) - func() { - // When the function stops executing try to recover from panic. - defer func() { - if err := recover(); err != nil { - // If panic error is empty, exit. - panicErr := revel.NewErrorFromPanic(err) - if panicErr == nil { - return - } - - // Otherwise, prepare and format the response of server if possible. - testSuite := v.Elem().FieldByName("TestSuite").Interface().(testing.TestSuite) - res := formatResponse(testSuite) - - // Render the error and save to the result structure. - var buffer bytes.Buffer - tmpl, _ := revel.MainTemplateLoader.Template("TestRunner/FailureDetail.html") - tmpl.Render(&buffer, map[string]interface{}{ - "error": panicErr, - "response": res, - "postfix": suite + "_" + test, - }) - result.ErrorSummary = errorSummary(panicErr) - result.ErrorHTML = template.HTML(buffer.String()) - } - }() - - // Initialize the test suite with a NewTestSuite() - testSuiteInstance := v.Elem().FieldByName("TestSuite") - testSuiteInstance.Set(reflect.ValueOf(testing.NewTestSuite())) - - // Make sure After method will be executed at the end. - if m := v.MethodByName("After"); m.IsValid() { - defer m.Call(none) - } - - // Start from running Before method of test suite if exists. - if m := v.MethodByName("Before"); m.IsValid() { - m.Call(none) - } - - // Start the test method itself. - v.MethodByName(test).Call(none) - - // No panic means success. - result.Passed = true - }() - - return c.RenderJson(result) -} - -// List returns a JSON list of test suites and tests. -// It is used by revel test command line tool. -func (c TestRunner) List() revel.Result { - return c.RenderJson(testSuites) -} - -/* - Below are helper functions. -*/ - -// describeSuite expects testsuite interface as input parameter -// and returns its description in a form of TestSuiteDesc structure. -func describeSuite(testSuite interface{}) TestSuiteDesc { - t := reflect.TypeOf(testSuite) - - // Get a list of methods of the embedded test type. - // It will be used to make sure the same tests are not included in multiple test suites. - super := t.Elem().Field(0).Type - superMethods := map[string]bool{} - for i := 0; i < super.NumMethod(); i++ { - // Save the current method's name. - superMethods[super.Method(i).Name] = true - } - - // Get a list of methods on the test suite that take no parameters, return - // no results, and were not part of the embedded type's method set. - var tests []TestDesc - for i := 0; i < t.NumMethod(); i++ { - m := t.Method(i) - mt := m.Type - - // Make sure the test method meets the criterias: - // - method of testSuite without input parameters; - // - nothing is returned; - // - has "Test" prefix; - // - doesn't belong to the embedded structure. - methodWithoutParams := (mt.NumIn() == 1 && mt.In(0) == t) - nothingReturned := (mt.NumOut() == 0) - hasTestPrefix := (strings.HasPrefix(m.Name, "Test")) - if methodWithoutParams && nothingReturned && hasTestPrefix && !superMethods[m.Name] { - // Register the test suite's index so we can quickly find it by test's name later. - registeredTests[t.Elem().Name()+"."+m.Name] = len(testSuites) - - // Add test to the list of tests. - tests = append(tests, TestDesc{m.Name}) - } - } - - return TestSuiteDesc{ - Name: t.Elem().Name(), - Tests: tests, - Elem: t.Elem(), - } -} - -// errorSummary gets an error and returns its summary in human readable format. -func errorSummary(err *revel.Error) (message string) { - message = fmt.Sprintf("%4sStatus: %s\n%4sIn %s", "", err.Description, "", err.Path) - - // If line of error isn't known return the message as is. - if err.Line == 0 { - return - } - - // Otherwise, include info about the line number and the relevant - // source code lines. - message += fmt.Sprintf(" (around line %d): ", err.Line) - for _, line := range err.ContextSource() { - if line.IsError { - message += line.Source - } - } - - return -} - -// formatResponse gets *revel.TestSuite as input parameter and -// transform response related info into a readable format. -func formatResponse(t testing.TestSuite) map[string]string { - if t.Response == nil { - return map[string]string{} - } - - // Beautify the response JSON to make it human readable. - resp, err := json.MarshalIndent(t.Response, "", " ") - if err != nil { - revel.ERROR.Println(err) - } - - // Remove extra new line symbols so they do not take too much space on a result page. - // Allow no more than 1 line break at a time. - body := strings.Replace(string(t.ResponseBody), "\n\n", "\n", -1) - body = strings.Replace(body, "\r\n\r\n", "\r\n", -1) - - return map[string]string{ - "Headers": string(resp), - "Body": strings.TrimSpace(body), - } -} - -func init() { - // Every time app is restarted convert the list of available test suites - // provided by the revel testing package into a format which will be used by - // the testrunner module and revel test cmd. - revel.OnAppStart(func() { - // Extracting info about available test suites from revel/testing package. - registeredTests = map[string]int{} - for _, testSuite := range testing.TestSuites { - testSuites = append(testSuites, describeSuite(testSuite)) - } - }) -} diff --git a/bin/src/github.com/revel/modules/testrunner/app/plugin.go b/bin/src/github.com/revel/modules/testrunner/app/plugin.go deleted file mode 100644 index a38f1cb..0000000 --- a/bin/src/github.com/revel/modules/testrunner/app/plugin.go +++ /dev/null @@ -1,12 +0,0 @@ -package app - -import ( - "fmt" - "github.com/revel/revel" -) - -func init() { - revel.OnAppStart(func() { - fmt.Println("Go to /@tests to run the tests.") - }) -} diff --git a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/FailureDetail.html b/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/FailureDetail.html deleted file mode 100644 index 18efb59..0000000 --- a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/FailureDetail.html +++ /dev/null @@ -1,45 +0,0 @@ -
-
- {{.error.Description}} -
-
- - - -
-
-
-
- In {{.error.Path}}{{if .error.Line}} (around {{if .error.Line}}line {{.error.Line}}{{end}}{{if .error.Column}} column {{.error.Column}}{{end}}){{end}}: -
-
- {{range .error.ContextSource}} - {{if .IsError}} -
{{.Source}}
- {{end}} - {{end}} -
-
-
-
-
{{.error.Stack}}
-
- {{if .response}} -
-
{{.response.Headers}}
-
-
-
{{.response.Body}}
-
- {{end}} -
- -
-
diff --git a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/Index.html b/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/Index.html deleted file mode 100644 index 712dbc9..0000000 --- a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/Index.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - Revel Test Runner - - - - - - - - - -
-
-
-

Test Runner

-

Run all of your application's tests from here.

-
- -
-
-
- -
- {{range .testSuites}} -

{{.Name}}

- - {{range .Tests}} - - - - - - {{end}} -
{{.Name}} -
- {{end}} -
- - - - - diff --git a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/SuiteResult.html b/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/SuiteResult.html deleted file mode 100644 index 4c32d6c..0000000 --- a/bin/src/github.com/revel/modules/testrunner/app/views/TestRunner/SuiteResult.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - Revel Test Runner - - - - - - -
-
-

{{.Name}}

-

{{if .Passed}}PASSED{{else}}FAILED{{end}}

-
-
- -
- {{range .Results}} -
-

{{.Name}}

-
{{if .ErrorHTML}}{{.ErrorHTML}}{{else}}PASSED{{end}}
-
- {{end}} -
- - diff --git a/bin/src/github.com/revel/modules/testrunner/conf/routes b/bin/src/github.com/revel/modules/testrunner/conf/routes deleted file mode 100644 index 4d616ab..0000000 --- a/bin/src/github.com/revel/modules/testrunner/conf/routes +++ /dev/null @@ -1,4 +0,0 @@ -GET /@tests TestRunner.Index -GET /@tests.list TestRunner.List -GET /@tests/public/*filepath Static.ServeModule(testrunner,public) -GET /@tests/:suite/:test TestRunner.Run diff --git a/bin/src/github.com/revel/modules/testrunner/public/css/bootstrap.min.css b/bin/src/github.com/revel/modules/testrunner/public/css/bootstrap.min.css deleted file mode 100644 index a9f35ce..0000000 --- a/bin/src/github.com/revel/modules/testrunner/public/css/bootstrap.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * Bootstrap v3.2.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;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]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;width:100% \9;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;width:100% \9;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:400;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}cite{font-style:normal}mark,.mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.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 #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.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:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.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}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}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}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#777;opacity:1}.form-control:-ms-input-placeholder{color:#777}.form-control::-webkit-input-placeholder{color:#777}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px;line-height:1.42857143 \0}input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;min-height:20px;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{position:absolute;margin-top:4px \9;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],input[type=radio].disabled,input[type=checkbox].disabled,fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm,.form-horizontal .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm,select[multiple].input-sm{height:auto}.input-lg,.form-horizontal .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg,select[multiple].input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:25px;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.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{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn:focus,.btn:active:focus,.btn.active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.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:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#3071a9;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.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:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.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:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.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:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.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:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.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:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#428bca;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#428bca;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn>input[type=radio],[data-toggle=buttons]>.btn>input[type=checkbox]{position:absolute;z-index:-1;filter:alpha(opacity=0);opacity:0}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.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:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.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:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.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,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;-webkit-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#333}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#777}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#777}.navbar-inverse .navbar-nav>li>a{color:#777}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#777}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#777}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}.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:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.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{padding:5px 10px;font-size:12px}.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}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:hover,.label-default[href]:focus{background-color:#5e5e5e}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar[aria-valuenow="1"],.progress-bar[aria-valuenow="2"]{min-width:30px}.progress-bar[aria-valuenow="0"]{min-width:30px;color:#777;background-color:transparent;background-image:none;-webkit-box-shadow:none;box-shadow:none}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{color:#777;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#428bca}.panel-primary>.panel-heading .badge{color:#428bca;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate3d(0,-25%,0);-o-transform:translate3d(0,-25%,0);transform:translate3d(0,-25%,0)}.modal.in .modal-dialog{-webkit-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{display:table;content:" "}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed;-webkit-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file diff --git a/bin/src/github.com/revel/modules/testrunner/public/css/github.css b/bin/src/github.com/revel/modules/testrunner/public/css/github.css deleted file mode 100644 index 34b1744..0000000 --- a/bin/src/github.com/revel/modules/testrunner/public/css/github.css +++ /dev/null @@ -1,127 +0,0 @@ -/* - -github.com style (c) Vasily Polovnyov - -*/ - -.hljs { - display: block; - overflow-x: auto; - padding: 0.5em; - color: #333; - background: #f8f8f8; - -webkit-text-size-adjust: none; -} - -.hljs-comment, -.hljs-template_comment, -.diff .hljs-header, -.hljs-javadoc { - color: #998; - font-style: italic; -} - -.hljs-keyword, -.css .rule .hljs-keyword, -.hljs-winutils, -.javascript .hljs-title, -.nginx .hljs-title, -.hljs-subst, -.hljs-request, -.hljs-status { - color: #333; - font-weight: bold; -} - -.hljs-number, -.hljs-hexcolor, -.ruby .hljs-constant { - color: #008080; -} - -.hljs-string, -.hljs-tag .hljs-value, -.hljs-phpdoc, -.hljs-dartdoc, -.tex .hljs-formula { - color: #d14; -} - -.hljs-title, -.hljs-id, -.scss .hljs-preprocessor { - color: #900; - font-weight: bold; -} - -.javascript .hljs-title, -.hljs-list .hljs-keyword, -.hljs-subst { - font-weight: normal; -} - -.hljs-class .hljs-title, -.hljs-type, -.vhdl .hljs-literal, -.tex .hljs-command { - color: #458; - font-weight: bold; -} - -.hljs-tag, -.hljs-tag .hljs-title, -.hljs-rules .hljs-property, -.django .hljs-tag .hljs-keyword { - color: #000080; - font-weight: normal; -} - -.hljs-attribute, -.hljs-variable, -.lisp .hljs-body { - color: #008080; -} - -.hljs-regexp { - color: #009926; -} - -.hljs-symbol, -.ruby .hljs-symbol .hljs-string, -.lisp .hljs-keyword, -.clojure .hljs-keyword, -.scheme .hljs-keyword, -.tex .hljs-special, -.hljs-prompt { - color: #990073; -} - -.hljs-built_in { - color: #0086b3; -} - -.hljs-preprocessor, -.hljs-pragma, -.hljs-pi, -.hljs-doctype, -.hljs-shebang, -.hljs-cdata { - color: #999; - font-weight: bold; -} - -.hljs-deletion { - background: #fdd; -} - -.hljs-addition { - background: #dfd; -} - -.diff .hljs-change { - background: #0086b3; -} - -.hljs-chunk { - color: #aaa; -} diff --git a/bin/src/github.com/revel/modules/testrunner/public/images/favicon.png b/bin/src/github.com/revel/modules/testrunner/public/images/favicon.png deleted file mode 100644 index 0303cba..0000000 Binary files a/bin/src/github.com/revel/modules/testrunner/public/images/favicon.png and /dev/null differ diff --git a/bin/src/github.com/revel/modules/testrunner/public/js/bootstrap.min.js b/bin/src/github.com/revel/modules/testrunner/public/js/bootstrap.min.js deleted file mode 100644 index 7c1561a..0000000 --- a/bin/src/github.com/revel/modules/testrunner/public/js/bootstrap.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Bootstrap v3.2.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.2.0",d.prototype.close=function(b){function c(){f.detach().trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",c).emulateTransitionEnd(150):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.2.0",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),d[e](null==f[b]?this.options[b]:f[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b).on("keydown.bs.carousel",a.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.2.0",c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},c.prototype.keydown=function(a){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.to=function(b){var c=this,d=this.getItemIndex(this.$active=this.$element.find(".item.active"));return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=e[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:g});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(e)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:g});return a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one("bsTransitionEnd",function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger(m)),f&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(b=!b),e||d.data("bs.collapse",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.VERSION="3.2.0",c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c=a.Event("show.bs.collapse");if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data("bs.collapse");if(e&&e.transitioning)return;b.call(d,"hide"),e||d.data("bs.collapse",null)}var f=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return g.call(this);var h=a.camelCase(["scroll",f].join("-"));this.$element.one("bsTransitionEnd",a.proxy(g,this)).emulateTransitionEnd(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=b,a.fn.collapse.Constructor=c,a.fn.collapse.noConflict=function(){return a.fn.collapse=d,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d,e=a(this),f=e.attr("data-target")||c.preventDefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data("bs.collapse"),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle="collapse"][data-parent="'+j+'"]').not(e).addClass("collapsed"),e[g.hasClass("in")?"addClass":"removeClass"]("collapsed")),b.call(g,i)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.2.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('