--- witty-3.3.0.orig/debian/README.Debian +++ witty-3.3.0/debian/README.Debian @@ -0,0 +1,319 @@ +PACKAGES + +In the Wt 2.x package series, you had to install all the development libraries +or none of them. In the Wt 3.x packages, libraries are split in several +packages: + + * libwt-common (configuration files) + * libwt-dev (core development libraries and include files) + * libwthttp-dev (HTTP connector, the application is the web server) + * libwtfcgi-dev (FastCGI connector, the application will be served through + a web server such as Apache) + * libwtext-dev (additional widgets using ExtJS 2.0) + * libwtdbo-dev (Wt::Dbo ORM) + * libwtdbosqlite-dev (Wt::Dbo sqlite3 backend) + * libwtdbopostgres-dev (Wt::Dbo PostgreSQL backend) + + + +STATIC/SHARED LIBRARIES + +For Wt 2.x, the Debian packages installed only shared libraries. + +Since Wt 3.x, the -dev packages install shared and static libraries. + + + +EXAMPLES + +Running the examples +==================== + +The examples are available in binary and source form in the witty-examples +package and are installed in source and binary form to /usr/lib/Wt/examples. + +For instance, to run the bobsmith example: + +$ cd /usr/lib/Wt/examples/bobsmith +$ ./bobsmith.wt --docroot . --http-addr 0.0.0.0 --http-port 8080 + +Additionally, a wrapper script is provided so that you can run examples +specifying any parameter. They will be started in port 8080: + +$ /usr/lib/Wt/examples/bobsmith/bobsmith + + +Building the examples +===================== + +First of all, make sure you have installed *all* the -dev packages and also +the witty-examples package, which contains the source. + +Keep in mind different examples depend on different -dev packages. If +you want to build all the examples, you will need *all* the development +packages and libqt4-dev (for the wtwithqt bridge) + +To build the examples, create a build directory and call CMake like this: + +$ cmake -DWT_SOURCE_DIR=/usr/lib/Wt \ + -DEXAMPLES_CONNECTOR="wt;wthttp" \ + -DCMAKE_BUILD_TYPE=Release \ + /usr/lib/Wt/examples +$ make + +Then go to /usr/lib/Wt/examples and enter the directory of the +example you want to run. When running the example, set the docroot to "." + +For instance, if you compiled the examples in /home/user/dev/wtexamples, you would do: + +$ mkdir /home/user/dev/wtexamples +$ cd /home/user/dev/wtexamples +$ cmake -DWT_SOURCE_DIR=/usr/lib/Wt \ + -DEXAMPLES_CONNECTOR="wt;wthttp" \ + -DCMAKE_BUILD_TYPE=Release \ + /usr/lib/Wt/examples +$ make +$ cd /usr/lib/Wt/examples/gitmodel +$ /home/user/dev/wtexamples/gitmodel/gitview.wt \ + --http-port 8080 \ + --http-addr 0.0.0.0 \ + --docroot . + +Important: + +* The wt-homepage example will not run properly unless you download + ExtJS 2.0 and extract it the proper place. See + /usr/share/doc/libwt-doc/reference/html/group__ext.html#_details to find + out where to download ExtJS 2.0 from. + +* Take a look at the console output, particularly to the 404 errors: those + are files which the webapp did not find (resources, icons, etc) + +* The wtwithqt example needs Qt 4.x to run + + + +TESTS + +To build the tests, call CMake like this: + +$ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc \ + -DCMAKE_BUILD_TYPE=Release /usr/share/doc/libwt-doc/test/ +$ make + + + +HOW TO START/STOP WT WEBAPPS + +Let's start with some facts: +- the Wt webapp needs to be launched somehow +- in the general case (production), it will be started automatically +- wtfcgi requires a /var/run/wt directory, wthttp does not + + +Case 1: wthttp webapp +===================== + +There are three subcases here: + + +1.1 wthttp webapp started by init/upstart +----------------------------------------- + +Create an init script or upstart job to start the webapp. + +You do not need to create /var/run/wt + +It is recommended that the init script or upstart job starts the +webapp as the www-data user and group. + + + +1.2 wthttp webapp started by inetd +---------------------------------- + +Inetd starts services on demand. + +You do not need to write any script. + +When the requests are spaced enough in time, no active instance of your webapp +will be running, therefore there is a small loading delay. You should take +this into account. + +The delay is smaller for statically-compiled webapps, because there is no need +to look for dynamic libraries and resolve symbols on load. + + + +1.3 HTTP server forwarding to wthttp webapp +------------------------------------------- + +This is like case 2.1 + + + +Case 2: wtfcgi webapp +===================== + +There are two subcases here, although the second one is very uncommon + + +2.1 wtfcgi webapp started by a web server +----------------------------------------- + +You will need to write an init script. See below for the explanation. + +This init script must create /var/run/wt and set the proper permissions. +The recommended settings are making www-data owner of that directory (both +user and group). + +Make sure /var/run/wt is ready when the web server is started, otherwise +there might be a race condition (the webserver receives a request and starts +your wtfcgi webapp but /var/run/wt does not exist yet, therefore wtfcgi fails). +To avoid that: +- If using an init script, it should be run before or at the same time as the + web server. For instance, Apache 2 is S91. +- If using an upstart job, set the dependency on your web server + +Why is an init script required for creating /var/run/wt? Because only root can +write to /var/run + +But I can create /var/run/wt and it will be there forever! No, it will not. +The Filesystem Hierarchy Standard mandates that /var/run be entirely cleaned on boot. + + + +2.2 wtfcgi webapp started by cgi-fcgi +------------------------------------- + +Unless your hosting server has a very strange policy, this scenario should +never happen in production environments. + +The cgi-fcgi tool makes possible to start FastCGI applications from the +command line. See the mention of the 'cgi-fcgi' tool in +http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServer + +This case is almost the same as 2.1. The only difference is you will need to +make /var/run/wt available before cgi-fcgi (that would be in turn run by some +other script your host provider mandates) starts the wtfcgi webapp. + + + + +APPENDIX A Init script sample for wthttp webapp (case 1.1) + + +#!/bin/sh + +### BEGIN INIT INFO +# Provides: mywebapp +# Required-Start: $remote_fs $syslog $network $named $time +# Required-Stop: $remote_fs $syslog $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start mywebapp at boot time +# Description: Enable service provided by mywebapp. +### END INIT INFO + +# /etc/init.d/mywebapp +# +# Written by Pau Garcia i Quiles + +set -e + +if [ ! -f /etc/elpauer/mywebapp.conf ] ; then + exit 0 +fi + +DAEMON=/opt/elpauer/mywebapp/bin/mywebapp.wt +NAME=mywebapp.wt + +test -x $DAEMON || exit 0 +. /lib/lsb/init-functions + +case "$1" in + start) + log_begin_msg "Starting MyWebApp server: $NAME" + [ -d /var/run/mywebapp ] || mkdir -p /var/run/mywebapp + start-stop-daemon --background -m --pidfile /var/run/mywebapp/mywebapp.pid --exec $DAEMON -c www-data:www-data --start -- --docroot /opt/elpauer/mywebapp/share --http-addr 0.0.0.0 --http-port 80 && log_end_msg 0 || log_end_msg 1 + ;; + stop) + log_begin_msg "Stopping MyWebApp server: $NAME" + start-stop-daemon --stop --pidfile /var/run/mywebapp/mywebapp.pid --oknodo --exec $DAEMON && log_end_msg 0 || log_end_msg 1 + rm -f /var/run/mywebapp/mywebapp.pid + ;; + restart) + $0 stop + $0 start + ;; + reload|force-reload) + log_begin_msg "Reloading $NAME configuration files" + start-stop-daemon --stop --pidfile/var/run/mywebapp/mywebapp.pid --signal 1 --exec $DAEMON && log_end_msg 0 || log_end_msg 1 + ;; + *) + log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|reload}" + exit 1 + ;; +esac + +exit 0 + + + + +APPENDIX B Init script sample for wtfcgi webapp + + +#!/bin/sh + +### BEGIN INIT INFO +# Provides: mywebapp +# Required-Start: $remote_fs $syslog $network $named $time +# Required-Stop: $remote_fs $syslog $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# X-Start-Before: apache2 +# Short-Description: Start mywebapp at boot time +# Description: Enable service provided by mywebapp. +### END INIT INFO + +# /etc/init.d/mywebapp +# +# Written by Pau Garcia i Quiles + +set -e + +if [ ! -f /etc/elpauer/mywebapp.conf ] ; then + exit 0 +fi + +DAEMON=/opt/elpauer/mywebapp/bin/mywebapp.fcgi +NAME=mywebapp.fcgi + +test -x $DAEMON || exit 0 +. /lib/lsb/init-functions + +case "$1" in + start) + log_begin_msg "Creating /var/run/wt required by MyWebApp: $NAME" + [ -d /var/run/wt ] || mkdir -p /var/run/wt + ;; + stop) + log_begin_msg "Removing /var/run/wt required by MyWebApp: $NAME" + ;; + restart) + $0 stop + $0 start + ;; + *) + log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + + +APPENDIX C Upstart job + +No sample provided, see http://upstart.ubuntu.com/cookbook/#run-a-job-as-a-different-user --- witty-3.3.0.orig/debian/libwtdbo35.install +++ witty-3.3.0/debian/libwtdbo35.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbo.so.35 +usr/lib/libwtdbo.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.docs +++ witty-3.3.0/debian/libwt-doc.docs @@ -0,0 +1 @@ +debian/README.Debian --- witty-3.3.0.orig/debian/libwtdbomysql35.install +++ witty-3.3.0/debian/libwtdbomysql35.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbomysql.so.35 +usr/lib/libwtdbomysql.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-dbg.lintian-overrides +++ witty-3.3.0/debian/libwt-dbg.lintian-overrides @@ -0,0 +1 @@ +libwt-dbg: conflicts-with-version witty-dbg (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwthttp-dev.install +++ witty-3.3.0/debian/libwthttp-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwthttp.a +usr/lib/libwthttp.so --- witty-3.3.0.orig/debian/libwtdbofirebird-dev.lintian-overrides +++ witty-3.3.0/debian/libwtdbofirebird-dev.lintian-overrides @@ -0,0 +1 @@ +libwtdbofirebird-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwt-common.lintian-overrides +++ witty-3.3.0/debian/libwt-common.lintian-overrides @@ -0,0 +1 @@ +libwt-common: conflicts-with-version witty (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtdbofirebird-dev.install +++ witty-3.3.0/debian/libwtdbofirebird-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbofirebird.a +usr/lib/libwtdbofirebird.so --- witty-3.3.0.orig/debian/libwtdbosqlite-dev.lintian-overrides +++ witty-3.3.0/debian/libwtdbosqlite-dev.lintian-overrides @@ -0,0 +1 @@ +libwtdbosqlite-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/copyright +++ witty-3.3.0/debian/copyright @@ -0,0 +1,294 @@ +This package was debianized by Pau Garcia i Quiles on +Sat, 05 Jul 2008 10:37:30 +0100. + +It was downloaded from http://www.webtoolkit.eu/ + +Upstream Author: Koen Deforche (koen@emweb.be), Wim Dumon (wim@emweb.be), +Pieter Libin (pieter@emweb.be) + +Copyright: 2005-2010, Koen Deforche, Wim Dumon + +License: + + This package is dual licensed under the GPLv2 and a commercial license + + * GPLv2 + + In addition to the license terms of the GNU General Public License, + Version 2, as copied below, Emweb bvba gives permission to link the + code of its release of Wt with the OpenSSL project's "OpenSSL" library + (or with modified versions of it that use the same license as the + "OpenSSL" library), and distribute the linked executables. You must + obey the GNU General Public License in all respects for all of the + code used other than "OpenSSL". If you modify this file, you may + extend this exception to your version of the file, but you are not + obligated to do so. If you do not wish to do so, delete this exception + statement from your version. + + Wt is licensed under the GNU GPL Version 2. Other versions of the GPL do + not apply. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + + In addition to the license terms of the GNU General Public License, + Version 2, as copied below, Emweb bvba gives permission to link the + code of its release of Wt with the OpenSSL project's "OpenSSL" library + (or with modified versions of it that use the same license as the + "OpenSSL" library), and distribute the linked executables. You must + obey the GNU General Public License in all respects for all of the + code used other than "OpenSSL". If you modify this file, you may + extend this exception to your version of the file, but you are not + obligated to do so. If you do not wish to do so, delete this exception + statement from your version." + + * Commercial + + Developer-based Commercial License Terms + + Each developer which uses the Wt API requires a Commercial License during + the entire development and maintenance period of the web application. The + Developer-based Commercial Licenses are valid for the duration of one year, + and for any released version of Wt. + + There are no additional charges for distribution of the application, and the + license allows the developer to work on an unlimited number of products. + + The license may not be passed on between developers, unless permission is + granted by Emweb. + + Commercial licensed developers have access to the public community-driven + mailing list for their support questions. A commercial license does not + include guaranteed responses from Emweb's Wt developers, nor training. For + support contracts, please consult our support offerings. + + Project-based Commercial License Terms + + As an alternative to the Developer-based Commercial License, a License may + be purchased on a per-project basis. This License allows the usage of Wt by + as many developers as necessary to complete a single pre-defined project. + + There are usually no additional charges for distribution of the application. + + Support options are usually negotiated together with the license. This + guarantees, if required, personalized high-priority support in addition to + the public, community-driven mailing lists. + + +Wt also includes in its tarball several other licenses for third party +components: + + * The 'libwt/src/http' directory is copyright (c) 2003-2006 + Christopher M. Kohlhoff and copyright (c) 2008-2010 Emweb bvba and is under + the Boost license: + + Boost Software License - Version 1.0 - August 17th, 2003 + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + + * The 'libwt/src/threadpool' directory is copyright (c) 2005-2007 + Philipp Henkel and is under the Boost license (see above) + + + * The 'libwt/src/web/randomdevice.cpp' file is copyright (c) 2000 Jens + Maurer and is under the Boost license (see above) + + + * The WtWithQt example is under a MIT license: + + Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + + * The src/Wt/Dbo/backend/amalgamation contains the sqlite 3.6.20 library in + its amalgamated form + + Copyright (C) 2000-2009, D. Richard Hipp + + The author disclaims all copyright. The library is in the public domain. + + + * The src/rapidxml directory contains the RapidXML library and is licensed + under the MIT license and the Boost Software License 1.0 + + Boost Software License - Version 1.0 - August 17th, 2003 + + Copyright (c) 2006, 2007 Marcin Kalicinski + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + MIT License + + Copyright (c) 2006, 2007 Marcin Kalicinski + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + + + * src/web/skeleton/jquery.min.js is a minified version of the JQuery library + together with the Sizzle.js library. + + JQuery is released under the MIT or GPL Version 2 licenses and the original + copyright (c) belongs to The JQuery Project + + Sizze.js is released under the MIT, BSD and GPL Version 2 licenses and the + original copyright belongs to The Dojo Foundation + + * The 'history' function in libwt/src/web/skeleton/Wt.js is a simplified + version of code developed by Yahoo under the BSD license. Original + copyright (c) 2008, Yahoo! Inc. All rights reserved. Code licensed under + the BSD License: http://developer.yahoo.com/yui/license.html + + Software License Agreement (BSD License) + Copyright (c) 2008, Yahoo! Inc. + All rights reserved. + + Redistribution and use of this software in source and binary forms, with or + without modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the + following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Yahoo! Inc. nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission of Yahoo! Inc. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + + * The 'arrayRemove' function in libwt/src/web/skeleton/Wt.js is copyright + (c) John Resig and is distributed under the MIT license (see above) + + + * Patch 20_hurd_locking_style comes from the sqlite3 package in Debian, + author is Laszlo Boszormenyi. Licensed under the GPL (see above) + + + + * The cmake/FindWt.cmake file is copyright (c) 2007-2008 Pau Garcia i + Quiles, with modifications by Emweb bvba, and is distributed under the + BSD license (see above) + + + * The src/web/base64.h file is copyright (C) 2002 Ryan Petrie + (ryanpetrie@netscape.net) and released under the zlib license: + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + + +The Debian packaging is Copyright (C) 2008-2010, Pau Garcia i Quiles + and is licensed under the GPL, see above. --- witty-3.3.0.orig/debian/libwtdbomysql-dev.lintian-overrides +++ witty-3.3.0/debian/libwtdbomysql-dev.lintian-overrides @@ -0,0 +1 @@ +libwtdbomysql-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwttest5.lintian-overrides +++ witty-3.3.0/debian/libwttest5.lintian-overrides @@ -0,0 +1,2 @@ +libwttest5: conflicts-with-version witty (<< 3.1.0a-1~) +libwttest5: no-symbols-control-file usr/lib/libwttest.so.3.3.0 --- witty-3.3.0.orig/debian/libwtdbo-dev.lintian-overrides +++ witty-3.3.0/debian/libwtdbo-dev.lintian-overrides @@ -0,0 +1 @@ +libwtdbo-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtfcgi-dev.install +++ witty-3.3.0/debian/libwtfcgi-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwtfcgi.a +usr/lib/libwtfcgi.so --- witty-3.3.0.orig/debian/libwtext35.lintian-overrides +++ witty-3.3.0/debian/libwtext35.lintian-overrides @@ -0,0 +1,2 @@ +libwtext35: conflicts-with-version witty (<< 3.1.0a-1~) +libwtext35: no-symbols-control-file usr/lib/libwtext.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.doc-base.auth +++ witty-3.3.0/debian/libwt-doc.doc-base.auth @@ -0,0 +1,13 @@ +Document: hands-on-wt-auth +Title: A hands-on introduction to Wt::Auth +Author: Koen Deforche +Abstract: In this tutorial, we use an example as a hands-on introduction to the + Wt::Auth module, which provides authentication features for Wt webapps. +Section: Web Development + +Format: html +Index: /usr/share/doc/libwt-doc/tutorial/auth.html +Files: /usr/share/doc/libwt-doc/tutorial/auth.html + +Format: text +Files: /usr/share/doc/libwt-doc/tutorial/auth.doc --- witty-3.3.0.orig/debian/libwtfcgi35.install +++ witty-3.3.0/debian/libwtfcgi35.install @@ -0,0 +1,2 @@ +usr/lib/libwtfcgi.so.35 +usr/lib/libwtfcgi.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.doc-base.dbotutorial +++ witty-3.3.0/debian/libwt-doc.doc-base.dbotutorial @@ -0,0 +1,10 @@ +Document: libwt-dbo-tutorial +Title: A gentle introduction to the Wt::Dbo ORM for use with Wt +Author: Koen Deforche, Wim Dumon +Abstract: This is an introductory tutorial that shows how to develop + web applications using the Wt::Dbo ORM and Wt libraries. +Section: Web Development + +Format: html +Index: /usr/share/doc/libwt-doc/tutorial/dbo/tutorial.html +Files: /usr/share/doc/libwt-doc/tutorial/dbo/tutorial.html --- witty-3.3.0.orig/debian/libwtdbofirebird35.lintian-overrides +++ witty-3.3.0/debian/libwtdbofirebird35.lintian-overrides @@ -0,0 +1,2 @@ +libwtdbofirebird35: conflicts-with-version witty-dev (<< 3.1.0a-1~) +libwtdbofirebird35: no-symbols-control-file usr/lib/libwtdbofirebird.so.3.3.0 --- witty-3.3.0.orig/debian/changelog +++ witty-3.3.0/debian/changelog @@ -0,0 +1,402 @@ +witty (3.3.0-1build1) trusty; urgency=low + + * No change rebuild for Boost 1.54 transition. + + -- Dmitrijs Ledkovs Tue, 22 Oct 2013 18:08:40 +0100 + +witty (3.3.0-1) unstable; urgency=low + + * New upstream version + * Update patch 05_examples_cmake_dependencies + * Install the Wt::Payment headers, which were missing + * Add libwtdbomysql packages with the MySQL/MariaDB backend + * Add patch 02_find_libmysqlclient so that libmysqlclient is found + * Remove unneeded libpq-dev dependency in libwtdbopostgresql-dev + * Remove DM-Upload-Allowed, as it is now obsolete + + -- Pau Garcia i Quiles Fri, 12 Apr 2013 16:57:50 +0200 + +witty (3.2.3-1) UNRELEASED; urgency=low + + * New upstream version + + -- Pau Garcia i Quiles Mon, 19 Nov 2012 07:49:23 +0100 + +witty (3.2.2-p1-1) unstable; urgency=low + + * New upstream patch release + * Update watch file + * Add unminified jquery.js for DFSG compliance (it's not used) + + -- Pau Garcia i Quiles Sat, 11 Aug 2012 12:17:52 +0200 + +witty (3.2.2-1) UNRELEASED; urgency=low + + * New upstream version + * Remove patch 09_oauth_example_missing_o (applied upstream) + + -- Pau Garcia i Quiles Tue, 24 Jul 2012 19:17:53 +0200 + +witty (3.2.1-2) unstable; urgency=low + + * Add skins to jPlayer (WAudio/WVideo) now that jquery-jplayer-bluemonday + has been accepted in the archive + + -- Pau Garcia i Quiles Sat, 26 May 2012 11:15:21 +0100 + +witty (3.2.1-1) unstable; urgency=low + + * New upstream version + * New packages: libwttest, libwtfirebird + * Fix libwt-dbg dependencies + * Bump to standards 3.9.3.1 (no changes required) + * Add patch 08_boost_random (Closes: #653807) + * Add patch 09_oauth_fix_missing_o + * Add a few headers which do not start with 'W' to libwt-dev.install + (Closes: #668295) + * Depend on libjs-jquery-jplayer to provide jPlayer, instead of using + upstream's bundled version + * Fix rules: build-resources was being executed twice + * Add note about jQuery and jPlayer to README.source + + -- Pau Garcia i Quiles Sat, 24 Mar 2012 01:53:38 +0100 + +witty (3.1.11-1) UNRELEASED; urgency=low + + * New upstream version (Closes: #642674) + * Drop swfobject-2.2 from dfsg-compliance directory, as Wt no longer uses + SWFObject. The dependency on yui-compressor is no longer needed either. + * Drop patch 02_GraphicsMagick_1.2.2 (applied upstream) + * Drop patch 03_install_dbotutorial6_example (applied upstream) + * Remove leftovers from Wt 3.1.9 packaging + * Do not install FindWt.cmake to CMake's own module dir (Closes: #635982) + * Add information regarding /var/run/wt to README.Debian (Closes: #616712) + * Add build-arch and build-indep targets, although they are only a stub + for now + * Register examples apidox with doc-base + * Add base64.h under zlib license to copyright file + + -- Pau Garcia i Quiles Sat, 24 Sep 2011 14:43:30 +0200 + +witty (3.1.10-1) unstable; urgency=low + + * New upstream version + * Drop patch 03_wt_example_wrappers (applied upstream) + * Drop patch 08_boostfilesystem3.dpatch (solved upstream with a similar + patch) + * Removed libwt-dev dependency on libboost-program-options-dev (it's not + necessary, according to upstream) + * Fix description-synopsis-starts-with-article lintian warnings + * Bump standards to 3.9.2.0 (no changes required) + + -- Pau Garcia i Quiles Fri, 08 Jul 2011 23:17:48 +0200 + +witty (3.1.9-1) unstable; urgency=low + + * New upstream release + * This release includes wt-sdj.odt (the PDF is not generated from the + .odt, see TODO for an explanation) (Closes: #613574) + * Update patch 01_debug_postfix. Upstream tried apply/improve my former patch + by adding the DEBUG_LIB_POSTFIX CMake variable, but messed up + * Merge patches 05_examples_check_dependencies and + 05_examples_link_dependencies for easier maintenance + * Remove patch 09_wtdbosqlite3_needs_threads (applied upstream) + * Use jquery from Debian package instead of bundled version (add + build-dependency on libjs-jquery) + + -- Pau Garcia i Quiles Sat, 09 Apr 2011 19:20:58 +0200 + +witty (3.1.8-2) unstable; urgency=low + + * Clean-up rules + * Apply patch 07_tests_cmake_dependencies again + * Build with hardening flags + + -- Pau Garcia i Quiles Sat, 19 Feb 2011 01:45:46 +0100 + +witty (3.1.8-1) unstable; urgency=low + + * New upstream version + * Install resources in /usr/share/Wt + * Add new package witty-examples and remove the examples and resources + from libwt-doc + * Add new patch 03_wt_example_wrappers from winstng (submitted upstream) + * Remove dependency on libgd2 + + -- Pau Garcia i Quiles Tue, 08 Feb 2011 19:35:16 +0100 + +witty (3.1.7a-1) UNRELEASED; urgency=low + + * New upstream patch release which fixes a critical problem in + Javascript + + -- Pau Garcia i Quiles Wed, 01 Dec 2010 14:31:53 +0100 + +witty (3.1.7-1) UNRELEASED; urgency=low + + * New upstream release + * Build resources/WtSoundManager.swf from the provided source code + src/flash/WtSoundManager.as, using the mtasc command line suggested + in the source code. Thanks to Simon McVittie for + reporting and providing fix. (Closes: #591209) + * Provide the source code for SWFObject 2.2 in + debian/dfsg-compliance/swfobject-2.2.js, and build resources/swfobject.js + by compressing that with yui-compressor. . Thanks to Simon McVittie for + reporting and providing fix. + * Drop patches 02_fix_soversioning, 06_install_SyncLock_header and + 09_wtdbosqlite3_needs_threads (applied upstream) + * witty-dev also installs the Wt::Dbo backends. It made little sense to + install libwtdbo-dev but not the backends, given that the backends are + not dlopen'ed but explicitly linked + + -- Pau Garcia i Quiles Sun, 28 Nov 2010 13:52:18 +0100 + +witty (3.1.6-1) UNRELEASED; urgency=low + + * New upstream version + * Drop patch 06_fix_shebang (applied upstream) + * Drop patch 08_cmake_ifmatches (applied upstream) + * Combine patches 07_tests_cmake_link_dependencies and + 07_tests_cmake_check_dependencies, for easier maintenance + * Update patches 02_fix_soversioning and submit upstream + * Update 05_examples_cmake_check_dependencies to make sure dependencies + for all examples are found. Update 05_examples_cmake_link_dependencies too + * Add patch 06_install_SyncLock_header + + -- Pau Garcia i Quiles Mon, 01 Nov 2010 00:14:35 +0100 + +witty (3.1.5-1) UNRELEASED; urgency=low + + * Remove patch 02_install_wtdbo_headers (applied upstream) + * Add patch 02_fix_soversioning to fix soversioning + * Add patch 06_fix_shebang to add shebang to make lintian happy + * Add patch 08_cmake_ifmatches to make sure examples are buildable when + using the wthttp connector + * Update patch 09_wtdbosqlite3_needs_threads + to support old versions of CMake, so that backporting to Lenny is possible + * Add build dependency on libhpdf-dev and runtime dependency on + libhpdf-2.10 (required for WPdfImage) + * Add build dependency on libgraphicsmagick1-dev and runtime dependency on + libgraphicsmagick3 (required for WRasterImage) + * Build-depend source-highlight >= 2.5, which was the first version to + support SQL + * Install the Postgres backend for Wt::Dbo if installing binary package + 'witty' (in the Wt 2.x series, installing 'witty' installed every + library you needed) + * Add lots of lintian overrides to avoid conflicts-with-version. When + renaming and splitting a package into multiple packages, + conflicts-with-version gives a false positive. + * Build WtSoundManager.swf from source (Closes: #591209) + * Update README.Debian with some more information on how to build the + examples + * Add symlinks to the 'resources' directory in some examples' directories + (needed because of the use of Wt::setCssTheme) + * Standard is now 3.9.1.0 (no changes needed) + * Add 'DM-Upload-Allowed: yes', preparing for Debian Maintainership + + -- Pau Garcia i Quiles Wed, 22 Sep 2010 13:26:05 +0200 + +witty (3.1.2-3) testing; urgency=low + + * Build resources/WtSoundManager.swf from the provided source code + src/flash/WtSoundManager.as, using the mtasc command line suggested + in the source code (Closes: #591209). Thanks to Simon McVittie for + reporting. + * Provide the source code for SWFObject 2.2 in + debian/dfsg-compliance/swfobject-2.2.js, and build resources/swfobject.js + by compressing that with yui-compressor + + -- Pau Garcia i Quiles Sun, 28 Nov 2010 13:44:45 +0100 + +witty (3.1.2-2) unstable; urgency=low + + * Add patch by Mike Teehan to install Wt::Dbo headers + + -- Pau Garcia i Quiles Fri, 09 Apr 2010 14:02:28 +0200 + +witty (3.1.2-1) unstable; urgency=low + + * New upstream release + * Add build-dependency on libpq-dev, for Wt::Dbo PostgreSQL backend + * Update copyright file to add JQuery and Sizzle.js + * Explicitly set source format to 1.0 until Launchpad PPAs support source + format 3.0 for Ubuntu releases prior to Lucid or I stop supporting Jaunty + and Karmic in my PPA + + -- Pau Garcia i Quiles Sat, 27 Mar 2010 00:28:13 +0100 + +witty (3.1.1a-1) UNRELEASED; urgency=low + + * New upstream release + * Remove MiniXML from 'copyright', add RapidXML + * Add libwt-common package, containing the wt_config.xml file to make it + possible to coinstall several versions of the runtime libraries + * Bump standards to 3.8.4.0 (no changes needed) + * Update build-depends from Boost 1.35.0 to 1.36.0, as did upstream + * Bump soversion: wt 20, wtext 13, wtdbo/wtdbosqlite 2 + * Update patch 05_examples_cmake_link_dependencies + * Drop patch 08_wt_config_in_builddir (fixed upstream) + * Update patch 09_wtdbosqlite3_needs_threads + * Drop patch 10_fix_zlib_use_definition_in_wconfig (fixed upstream) + * Drop patch 11_use_system_sqlite3 (fixed upstream) + * Update watch file to cope with patch releases such as 3.1.1a (with a + letter at the end) + + -- Pau Garcia i Quiles Thu, 18 Feb 2010 09:58:06 +0100 + +witty (3.1.0a-1) unstable; urgency=low + + * New upstream release + * New ORM library: Wt::Dbo + * Rename binary packages (witty -> libwt) and provide transition plan as + http://wiki.debian.org/Renaming_a_Package, method A recommends. Use + "Replaces/Conflics (<< 3.1.0a~)" instead of << 3.1.0a so that backports + work fine. + * Build static libraries in addition to dynamic libraries + * Split witty-dev into several packages, one for each library: libwt-dev, + libwthttp-dev, libwtfcgi-dev, libwtdbo-dev, libwtext-dev, etc and + properly soversion package names + * Update README.Debian to with the static libraries and the split + packaging information + * Register Wt::Dbo tutorial in doc-base and update the Wt tutorial + location + * Add asciidoc and source-highlight to build-dependencies to generate the + Wt::Dbo tutorial + * As dh_strip is unable to extract debug information from the static + libraries if CMAKE_BUILD_TYPE=RelWithDebInfo, tell CMake to use + CMAKE_BUILD_TYPE=Release for the static build + * Suggest libboost-test-dev for libwt-doc, as it's required for the tests + * Make libmysql++-dev a suggestion for libwt-doc (for the Hangman DB + example) instead of a build-depends + * Drop patches + - 03_build_with_gcc44 (fixed upstream) + - 04_if_variablename_instead_of_variablevalue (fixed upstream) + - 06_hangman_build_with_mysqlpp3 (fixed upstream) + - 07_link_to_threads_library (fixed upstream) + * Update patch 05_examples_cmake_check_dependencies to properly check for + dependencies when building the examples from /usr/share/doc/libwt-doc + * Add patch 05_examples_cmake_link_dependencies to properly link examples + from /usr/share/doc/libwt-doc when not building Wt. + * Add patch 07_tests_cmake_check_dependencies to properly check for + dependencies when building the tests from /usr/share/doc/libwt-doc + * Add patch 07_tests_cmake_link_dependencies to properly link dependencies + when building the tests from /usr/share/doc/libwt-doc. + * Add patch 08_wt_config_in_builddir to generate files in the build + directory instead of the source directory (submitted & applied upstream) + * Add patch 09_wtdbosqlite3_needs_threads to fix linkage with pthreads + library (submitted & applied upstream) + * Add patch 10_fix_zlib_use_definition_in_wconfig to remove the + WTHTTP_WITH_ZLIB definition from /usr/include/WConfig.h because it was + wrong (always undefined) and it was internal (submitted & applied upstream) + * Add patch 11_use_system_sqlite3 to use Debian's Sqlite3 package instead + of the bundled version (submitted & applied upstream) + * Update copyright: + - Add Pieter Libin to upstream authors + - Remove Orbited library, as it has been replaced by Wt's own + implementation in Wt 3.0 + * Change section (web -> libdevel) to make lintian happy. Wt belongs to + either of them, anyway. + + -- Pau Garcia i Quiles Tue, 29 Dec 2009 16:53:11 +0100 + +witty (2.2.4-3) unstable; urgency=low + + * Build-depend on default Boost version in Debian. Bump shlibs as we were + building against Boost 1.38.0 and this means we will now build against + 1.40.0 + * Fix building some examples from /usr/share/doc/witty-doc/examples, see + http://thread.gmane.org/gmane.comp.web.witty.general/3356. Wt's own CMake + modules (WtFindXXX.txt) are now installed to /usr/share/doc/witty-doc, + just for this purpose. + * Make witty-dev depend on libboost-dev packages, libssl-dev, etc. Otherwise, + the user would need to install the manually or it would be impossible to + build applications + * Register docs using doc-base and make witty-doc recommend doc-base + * Bump standards to 3.8.3.0 + + -- Pau Garcia i Quiles Sun, 11 Oct 2009 14:40:49 +0200 + +witty (2.2.4-2) unstable; urgency=low + + * Update shlibs + + -- Pau Garcia i Quiles Sun, 24 May 2009 23:17:57 +0200 + +witty (2.2.4-1) unstable; urgency=low + + * New upstream release + * Fix bug #524109 (/etc/wt/wt_config.xml being ignored) + * Build against Boost 1.38.0 to fix bug #527803 (FTBFS with Boost 1.35.0) + * Add missing includes to fix bug #526664 (FTBFS with gcc 4.4, patch + 03_build_with_gcc44.dpatch ) + * Move the -dbg package to the debug section + * Recommend installing TinyMCE + * Point to GPL-2 instead of just "GPL", which now refers to GPL-3 + * Fix wrong IF in hello-widgetset example (patch + 04_cmake_if_variablename_instead_of_variablevalue.dpatch ) + + -- Pau Garcia i Quiles Fri, 24 Apr 2009 17:22:33 +0200 + +witty (2.2.3-1) unstable; urgency=low + + * New upstream release + * Do not run 'ldconfig' in the 'postinst' script as this is automatically + done by dh_makeshlibs + * Remove patch 02_fix_soversion (this was needed in 2.2.2 because upstream + forgot to bump soversion) + * Add "Copyright" wherever debian/changelog contained "(C)" to make + lintian happy + + -- Pau Garcia i Quiles Wed, 28 Jan 2009 11:19:12 +0100 + +witty (2.2.2-1) unstable; urgency=low + + * New upstream release + * Add information about dpatch + * Fix typo in the 'remove' section of the postinst script ('lconfig' -> + 'ldconfig') + * Install FindWt in /usr/share/cmake-2.6/Modules, as CMake 2.6 is + what Debian Sid carries these days + + -- Pau Garcia i Quiles Sun, 07 Dec 2008 16:46:39 +0100 + +witty (2.2.1-1) unstable; urgency=low + + * New upstream release + + -- Pau Garcia i Quiles Tue, 04 Nov 2008 00:31:11 +0100 + +witty (2.2.0-1) unstable; urgency=low + + * New upstream release + * Modify .install files as needed by the new soversions + * Copyright: Amended my notes in the copyright file: MXML is under LGPL2 + and the license included in the copyright file was LGPL2 but for some + reason, my notes said it was under GPL2 + * Copyright: specify witty/src/web/random_device.cpp license and copyright + * Copyright: removed rsh license from copyright as rsh is no longer used in + Wt 2.2 + * Copyright: add license and copyright for the 'history' function in + src/web/skeleton/Wt.js + * Copyright: add license and copyright for the 'arrayRemove' function in + src/web/skeleton/Wt.js + * Copyright: specify witty/cmake/FindWt.cmake license and copyright + + -- Pau Garcia i Quiles Fri, 12 Sep 2008 22:16:30 +0200 + +witty (2.1.5-1) unstable; urgency=low + + * New upstream version + * Dropping patch to install headers in /usr/include/Wt instead of + /usr/include (02_install_headers_to_include_Wt.dpatch) due to + inclusion in upstream + * witty-dev now suggests installing libqt4-dev, as the wtwithqt + example/library need Qt4 + + -- Pau Garcia i Quiles Sun, 10 Aug 2008 10:37:28 +0100 + +witty (2.1.4-1) unstable; urgency=low + + * Initial release (Closes: #473096) + + -- Pau Garcia i Quiles Thu, 24 Jul 2008 01:42:28 +0100 --- witty-3.3.0.orig/debian/witty-examples.install +++ witty-3.3.0/debian/witty-examples.install @@ -0,0 +1,2 @@ +usr/lib/Wt +usr/share/doc/witty-examples --- witty-3.3.0.orig/debian/libwtdbopostgres35.lintian-overrides +++ witty-3.3.0/debian/libwtdbopostgres35.lintian-overrides @@ -0,0 +1,2 @@ +libwtdbopostgres35: conflicts-with-version witty-dev (<< 3.1.0a-1~) +libwtdbopostgres35: no-symbols-control-file usr/lib/libwtdbopostgres.so.3.3.0 --- witty-3.3.0.orig/debian/libwtext-dev.lintian-overrides +++ witty-3.3.0/debian/libwtext-dev.lintian-overrides @@ -0,0 +1 @@ +libwtext-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwt-doc.doc-base.reference +++ witty-3.3.0/debian/libwt-doc.doc-base.reference @@ -0,0 +1,10 @@ +Document: libwt-reference +Title: Wt online documentation +Author: Emweb bvba +Abstract: This set of documents provides help for developing applications + using the Wt libraries and application server. +Section: Web Development + +Format: html +Index: /usr/share/doc/libwt-doc/reference/html/index.html +Files: /usr/share/doc/libwt-doc/reference/html/*.html --- witty-3.3.0.orig/debian/libwtdbopostgres35.install +++ witty-3.3.0/debian/libwtdbopostgres35.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbopostgres.so.35 +usr/lib/libwtdbopostgres.so.3.3.0 --- witty-3.3.0.orig/debian/libwthttp35.lintian-overrides +++ witty-3.3.0/debian/libwthttp35.lintian-overrides @@ -0,0 +1,2 @@ +libwthttp35: conflicts-with-version witty (<< 3.1.0a-1~) +libwthttp35: no-symbols-control-file usr/lib/libwthttp.so.3.3.0 --- witty-3.3.0.orig/debian/control +++ witty-3.3.0/debian/control @@ -0,0 +1,459 @@ +Source: witty +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Pau Garcia i Quiles +Build-Depends: debhelper (>= 6.0.7), dpatch, libfcgi-dev, zlib1g-dev, + libboost-dev (>= 1.36.0), cmake, + libboost-date-time-dev (>= 1.36.0), libboost-filesystem-dev (>= 1.36.0), + libboost-signals-dev (>= 1.36.0),libboost-regex-dev (>= 1.36.0), + libboost-program-options-dev (>= 1.36.0), libboost-thread-dev (>= 1.36.0), + libssl-dev, libsqlite3-dev, libpq-dev, doxygen, graphviz, asciidoc, + source-highlight (>= 2.5-1~ ), libhpdf-dev, mtasc, + libgraphicsmagick1-dev, lsb-release, hardening-wrapper, libjs-jquery, + libpango1.0-dev, python-pygments, firebird2.5-dev, libjs-jquery-jplayer, + jquery-jplayer-bluemonday, libmysqlclient-dev +Standards-Version: 3.9.4.0 +Section: libdevel +Homepage: http://www.webtoolkit.eu/ + +Package: libwt-common +Replaces: witty (<< 3.1.0a-1~), libwt19 +Conflicts: witty (<< 3.1.0a-1~), libwt19 +Architecture: all +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libjs-jquery-jplayer, jquery-jplayer-bluemonday +Recommends: libwt35 (= ${binary:Version}) +Description: C++ library and application server for web applications [common] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains only the Wt common files, such as config files, etc + +Package: libwt35 +Provides: witty +Replaces: witty (<< 3.1.0a-1~), libwt19 +Conflicts: witty (<< 3.1.0a-1~), libwt19 +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt-common (>= 3.1.0a-1~), libhpdf-2.2.1, libgraphicsmagick3 +Recommends: tinymce (>= 3.0.7), + libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: C++ library and application server for web applications [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt core library but you still need to install + a connector, either the HTTP connector (libwthttp), the FastCGI + connector (libwtfcgi) or the test connector (libwttest). + +Package: libwt-dev +Provides: witty-dev +Replaces: witty-dev (<< 3.1.0a-1~) +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (= ${binary:Version}), + libboost-dev (>= 1.36.0), libboost-date-time-dev (>= 1.36.0), + libssl-dev, libfcgi-dev, libboost-filesystem-dev (>= 1.36.0), + libboost-regex-dev (>=1.36.0), + libboost-signals-dev (>= 1.36.0), libboost-thread-dev (>= 1.36.0) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: C++ library and application server for web applications [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt core library but you + still need to install a connector, either the HTTP connector (libwthttp-dev), + the FastCGI connector (libwtfcgi-dev) or the test connector (libwttest-dev). + +Package: libwthttp35 +Provides: witty +Replaces: witty (<< 3.1.0a-1~) +Conflicts: witty (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (= ${binary:Version}) +Description: HTTP(S) connector library for Wt [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt embedded HTTP server connector + library. + +Package: libwthttp-dev +Provides: witty-dev +Replaces: witty-dev (<< 3.1.0a-1~) +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwthttp35 (= ${binary:Version}), libwt-dev (= ${binary:Version}) +Description: HTTP(S) connector library for Wt [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt embedded HTTP server + connector library. + +Package: libwtfcgi35 +Provides: witty +Replaces: witty (<< 3.1.0a-1~) +Conflicts: witty (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (= ${binary:Version}) +Description: FastCGI connector library for Wt [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt FastCGI connector library. + +Package: libwtfcgi-dev +Provides: witty-dev +Replaces: witty-dev (<< 3.1.0a-1~) +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtfcgi35 (= ${binary:Version}), libwt-dev (= ${binary:Version}) +Description: FastCGI connector library for Wt [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt FastCGI connector + library. + +Package: libwttest5 +Provides: witty +Replaces: witty (<< 3.1.0a-1~), libwt19 +Conflicts: witty (<< 3.1.0a-1~), libwt19 +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (>= 3.1.0a-1~) +Description: test connector library for Wt [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt test connector library. + +Package: libwttest-dev +Provides: witty-dev +Replaces: witty-dev (<< 3.1.0a-1~) +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwttest5 (= ${binary:Version}), libwt-dev (=${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: test connector library for Wt [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt test connector + library. + +Package: libwtext35 +Provides: witty +Replaces: witty (<< 3.1.0a-1~) +Conflicts: witty (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (= ${binary:Version}) +Recommends: libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: additional widgets for Wt, based on ExtJS 2.0.x [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt ExtJS adapter library. + +Package: libwtext-dev +Provides: witty-dev +Replaces: witty-dev (<< 3.1.0a-1~) +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtext35 (= ${binary:Version}), libwt-dev (= ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: additional widgets for Wt, based on ExtJS 2.0.x [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt ExtJS adapter library. + +Package: libwtdbo35 +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt35 (= ${binary:Version}) +Recommends: + libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: Wt::Dbo ORM library for Wt [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Wt::Dbo Object-Relational Mapping library. + +Package: libwtdbo-dev +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbo35 (= ${binary:Version}), libwt-dev (= ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: Wt::Dbo ORM library for Wt [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Wt::Dbo Object-Relational + Mapping library. + +Package: libwtdbosqlite35 +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbo35 (= ${binary:Version}) +Recommends: libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: sqlite3 backend for Wt::Dbo [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Sqlite3 backend for Wt::Dbo. + +Package: libwtdbosqlite-dev +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbosqlite35 (= ${binary:Version}), libwtdbo-dev (= ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: sqlite3 backend for Wt::Dbo [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Sqlite3 backend + for Wt::Dbo. + +Package: libwtdbopostgres35 +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbo35 (= ${binary:Version}), libpq5 +Recommends: libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: PostgreSQL backend for Wt::Dbo [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the PostgreSQL backend for Wt::Dbo. + +Package: libwtdbopostgres-dev +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbopostgres35 (= ${binary:Version}), libwtdbo-dev (= ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: PostgreSQL backend for Wt::Dbo [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the PostgreSQL backend + for Wt::Dbo. + +Package: libwtdbofirebird35 +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbo35 (= ${binary:Version}) +Recommends: libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: Firebird backend for Wt::Dbo [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the Firebird backend for Wt::Dbo. + +Package: libwtdbofirebird-dev +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbofirebird35 (= ${binary:Version}), libwtdbo-dev (= ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: Firebird backend for Wt::Dbo [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the Firebird backend + for Wt::Dbo. + +Package: libwtdbomysql35 +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbo35 (= ${binary:Version}), libmysqlclient18 +Recommends: libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}) +Description: MySQL/MariaDB backend for Wt::Dbo [runtime] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the MySQL/MariaDB backend for Wt::Dbo. + +Package: libwtdbomysql-dev +Provides: witty-dev +Conflicts: witty-dev (<< 3.1.0a-1~) +Architecture: any +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwtdbofirebird35 (= ${binary:Version}), libwtdbo-dev (= + ${binary:Version}) +Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (= ${binary:Version}) +Description: MySQL/MariaDB backend for Wt::Dbo [development] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the development files for the MySQL/MariaDB backend + for Wt::Dbo. + +Package: libwt-dbg +Provides: witty-dbg +Replaces: witty-dbg (<< 3.1.0a-1~) +Conflicts: witty-dbg (<< 3.1.0a-1~) +Architecture: any +Section: debug +Depends: ${misc:Depends}, libwt35 (= ${binary:Version}), + libwthttp35 (= ${binary:Version}) | libwtfcgi35 (= ${binary:Version}) | + libwttest5 (= ${binary:Version}), libwtext35 (= ${binary:Version}), + libwtdbo35 (= ${binary:Version}), libwtdbosqlite35 (= ${binary:Version}) +Description: C++ library and application server for web applications [debug] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains debugging files used to investigate problems with + binaries included in the Wt packages. + +Package: libwt-doc +Section: doc +Provides: witty-doc +Replaces: witty-doc (<< 3.1.0a-1~) +Conflicts: witty-doc (<< 3.1.0a-1~) +Architecture: all +Depends: ${misc:Depends} +Suggests: libwt-dev (= ${binary:Version}), + libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}) | + libwttest-dev (=${binary:Version}), libwtext-dev (= ${binary:Version}), + libwtdbo-dev (= ${binary:Version}), libboost-test-dev (>= 1.36.0), libmysql++-dev, witty-examples +Recommends: doc-base +Description: C++ library and application server for web applications [doc] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package contains the API documentation and tutorials. + +Package: witty-examples +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libwthttp35, libwtext35, + libwtdbosqlite35, libboost-program-options-dev, libqt4-dev +Suggests: libwt-doc, witty-dev +Description: C++ library for webapps [examples] + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package installs the examples in binary and source form to the + /usr/lib/Wt/examples directory. + +Package: witty +Architecture: all +Depends: ${misc:Depends}, libwt35, libwthttp35 | libwtfcgi35 | libwttest5, + libwtext35, libwtdbo35, libwtdbosqlite35, libwtdbopostgres35, + libwtdbofirebird35, witty-examples +Description: C++ library for webapps [runtime] (transition package) + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package installs the Witty libraries + . + This is a dummy transition package and can be safely removed. + +Package: witty-dbg +Architecture: all +Section: debug +Depends: ${misc:Depends}, libwt-dbg +Description: C++ library for webapps [debug] (transition package) + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package installs debugging files used to investigate problems with + binaries included in the Wt packages. + . + This is a dummy transition package and can be safely removed. + +Package: witty-dev +Architecture: all +Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, + libwt-dev, libwthttp-dev | libwtfcgi-dev | libwttest-dev, libwtext-dev, + libwtdbo-dev, libwtdbosqlite-dev, libwtdbopostgres-dev, libwtdbofirebird-dev +Description: C++ library for webapps [devel] (transition package) + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package installs development files for building software that uses the + Wt libraries. + . + This is a dummy transition package and can be safely removed. + +Package: witty-doc +Section: doc +Architecture: all +Depends: ${misc:Depends}, libwt-doc +Suggests: witty-dev +Recommends: doc-base +Description: C++ library for webapps [doc] (transition package) + Wt (pronounced 'witty') is a C++ library and application server for + developing and deploying web applications. The API is widget-centric + and offers complete abstraction of any web-specific application details. + . + This package installs the documentation and examples. + . + This is a dummy transition package and can be safely removed. --- witty-3.3.0.orig/debian/libwttest-dev.install +++ witty-3.3.0/debian/libwttest-dev.install @@ -0,0 +1,3 @@ +usr/lib/libwttest.a +usr/lib/libwttest.so +usr/include/Wt/Test/* --- witty-3.3.0.orig/debian/libwt-doc.install +++ witty-3.3.0/debian/libwt-doc.install @@ -0,0 +1 @@ +usr/share/doc/libwt-doc/* --- witty-3.3.0.orig/debian/libwt-dev.install +++ witty-3.3.0/debian/libwt-dev.install @@ -0,0 +1,12 @@ +usr/lib/libwt.a +usr/lib/libwt.so +usr/include/Wt/Auth/* +usr/include/Wt/Chart/* +usr/include/Wt/Http/* +usr/include/Wt/Json/* +usr/include/Wt/Mail/* +usr/include/Wt/Payment/* +usr/include/Wt/Render/* +usr/include/Wt/W* +#usr/include/Wt/SyncLock +usr/include/Wt/Utils --- witty-3.3.0.orig/debian/libwthttp-dev.lintian-overrides +++ witty-3.3.0/debian/libwthttp-dev.lintian-overrides @@ -0,0 +1 @@ +libwthttp-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtdbosqlite35.install +++ witty-3.3.0/debian/libwtdbosqlite35.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbosqlite3.so.35 +usr/lib/libwtdbosqlite3.so.3.3.0 --- witty-3.3.0.orig/debian/libwtext-dev.install +++ witty-3.3.0/debian/libwtext-dev.install @@ -0,0 +1,3 @@ +usr/lib/libwtext.a +usr/lib/libwtext.so +usr/include/Wt/Ext/* --- witty-3.3.0.orig/debian/libwtdbosqlite35.lintian-overrides +++ witty-3.3.0/debian/libwtdbosqlite35.lintian-overrides @@ -0,0 +1,3 @@ +libwtdbosqlite35: package-name-doesnt-match-sonames libwtdbosqlite3-35 +libwtdbosqlite35: conflicts-with-version witty-dev (<< 3.1.0a-1~) +libwtdbosqlite35: no-symbols-control-file usr/lib/libwtdbosqlite3.so.3.3.0 --- witty-3.3.0.orig/debian/libwtdbomysql35.lintian-overrides +++ witty-3.3.0/debian/libwtdbomysql35.lintian-overrides @@ -0,0 +1,2 @@ +libwtdbomysql35: conflicts-with-version witty-dev (<< 3.1.0a-1~) +libwtdbomysql35: no-symbols-control-file usr/lib/libwtdbomysql.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.doc-base.dbo +++ witty-3.3.0/debian/libwt-doc.doc-base.dbo @@ -0,0 +1,14 @@ +Document: hands-on-wt-dbo +Title: A hands-on introduction to Wt::Dbo +Author: Koen Deforche +Abstract: Wt::Dbo is an object-relational mapping library distributed with Wt. + This is an introductory tutorial that shows how to develop + a simple blogging CMS +Section: Web Development + +Format: html +Index: /usr/share/doc/libwt-doc/tutorial/dbo.html +Files: /usr/share/doc/libwt-doc/tutorial/dbo.html + +Format: text +Files: /usr/share/doc/libwt-doc/tutorial/dbo.doc --- witty-3.3.0.orig/debian/libwtext35.install +++ witty-3.3.0/debian/libwtext35.install @@ -0,0 +1,2 @@ +usr/lib/libwtext.so.35 +usr/lib/libwtext.so.3.3.0 --- witty-3.3.0.orig/debian/rules +++ witty-3.3.0/debian/rules @@ -0,0 +1,196 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian.rules file for Wt +# Copyright 2008-2013 by Pau Garcia i Quiles +# Based on the dh-make-generated rules file + +include /usr/share/dpatch/dpatch.make + +version=3.3.0 +major=3 + +# Default g++ in Ubuntu Maverick is broken (LP #647597) +WORKAROUND_CXX=g++ +WORKAROUND_CC=gcc +DISTRO=$(shell lsb_release -sc) +ifeq (maverick, $(DISTRO)) + WORKAROUND_CXX=g++-4.5 + WORKAROUND_CC=gcc-4.5 +endif + +# enable the hardening wrapper +DEB_BUILD_HARDENING = 1 +# but disable PIE +DEB_BUILD_HARDENING_PIE = 0 +export DEB_BUILD_HARDENING DEB_BUILD_HARDENING_PIE + +# Workaround needed due to bug in CMake +# http://wiki.debian.org/Hardening +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + +CMAKEVERSION:=$(shell cmake --version | grep -o -P \(\\d\\.\\d\) | tr -d '\n') + +build-static/Makefile: patch-stamp + dh_testdir + mkdir -p build-static + cd build-static && cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \ + -DSTATIC_LIBRARY_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DDEBUG_LIB_POSTFIX="" \ + -DCMAKE_CXX_COMPILER=$(WORKAROUND_CXX) \ + -DCMAKE_CC_COMPILER=$(WORKAROUND_CC) \ + -DUSE_SYSTEM_SQLITE3:BOOL=ON \ + -DCONFIGDIR:PATH=/etc/wt/ \ + -DBUILD_TESTS:BOOL=OFF \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=1 \ + -DCONNECTOR_FCGI:BOOL=ON \ + -DSHARED_LIBS:BOOL=OFF \ + -DMULTI_THREADED:BOOL=ON \ + -DWT_CMAKE_FINDER_INSTALL_DIR:PATH=/share/cmake-$(CMAKEVERSION)/Modules \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DBUILD_EXAMPLES:BOOL=OFF \ + -DENABLE_EXT:BOOL=ON \ + -DINSTALL_EXAMPLES:BOOL=OFF \ + -DINSTALL_FINDWT_CMAKE_FILE:BOOL=OFF \ + -DWEBUSER:STRING=www-data \ + -DWEBGROUP:STRING=www-data + +build-shared/Makefile: patch-stamp + mkdir -p build-shared + cd build-shared && cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DDEBUG_LIB_POSTFIX="" \ + -DCMAKE_CXX_COMPILER=$(WORKAROUND_CXX) \ + -DCMAKE_CC_COMPILER=$(WORKAROUND_CC) \ + -DUSE_SYSTEM_SQLITE3:BOOL=ON \ + -DCONFIGDIR:PATH=/etc/wt/ \ + -DBUILD_TESTS:BOOL=OFF \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=1 \ + -DCONNECTOR_FCGI:BOOL=ON \ + -DSHARED_LIBS:BOOL=ON \ + -DMULTI_THREADED:BOOL=ON \ + -DWT_CMAKE_FINDER_INSTALL_DIR:PATH=/share/cmake-$(CMAKEVERSION)/Modules \ + -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DBUILD_EXAMPLES:BOOL=ON \ + -DENABLE_EXT:BOOL=ON \ + -DINSTALL_EXAMPLES:BOOL=ON \ + -DINSTALL_FINDWT_CMAKE_FILE:BOOL=OFF \ + -DWEBUSER:STRING=www-data \ + -DWEBGROUP:STRING=www-data + +build: build-stamp + +build-arch: build + +build-indep: build + +build-stamp: build-resources build-static/Makefile build-shared/Makefile + dh_testdir + cd build-static && $(MAKE) + cd build-shared && $(MAKE) && $(MAKE) doc + touch $@ + +build-resources: + mtasc -main -swf resources/WtSoundManager.swf \ + src/flash/WtSoundManager.as -version 8 -header 16:16:30 + ln -s /usr/share/javascript/jquery/jquery.min.js src/web/skeleton/ + mkdir -p resources/jPlayer + ln -s /usr/share/javascript/jquery/jquery.min.js resources/jPlayer/ + ln -s /usr/share/javascript/jquery-jplayer/Jplayer.swf resources/jPlayer/ + ln -s /usr/share/javascript/jquery-jplayer/jquery.jplayer.min.js resources/jPlayer + ln -s /usr/share/javascript/jquery-jplayer/skins/blue.monday resources/jPlayer/skin + touch $@ + +clean: unpatch + rm -rf build-static + rm -rf build-shared + rm -f src/web/skeleton/jquery.min.js + rm -rf resources/jPlayer + rm -f resources/WtSoundManager.swf + rm -f doc/wt.qch + rm -rf doc/html + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Commands to install the package into debian/tmp + cd build-static && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ + cd build-shared && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ + + mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/ + mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/witty-examples/ + + cp -R $(CURDIR)/doc/* $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/ + mv $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/html $(CURDIR)/debian/tmp/usr/share/doc/witty-examples/ + rmdir $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples + + cp -R $(CURDIR)/cmake $(CURDIR)/debian/tmp/usr/lib/Wt/ + cp -R $(CURDIR)/test $(CURDIR)/debian/tmp/usr/lib/Wt/ + chmod -x $(CURDIR)/debian/tmp/usr/lib/Wt/cmake/FindWt.cmake + chmod -x $(CURDIR)/debian/tmp/usr/lib/Wt/cmake/WtFindFirebirdSql.txt + chmod -x $(CURDIR)/debian/tmp/usr/lib/Wt/examples/widgetgallery/docroot/pics/sintel_trailer.jpg + #mv $(CURDIR)/debian/tmp/usr/lib/Wt/examples/widgetgallery/docroot/* $(CURDIR)/debian/tmp/usr/lib/Wt/examples/widgetgallery/ + chmod -x $(CURDIR)/debian/tmp/usr/lib/Wt/examples/feature/video/sintel_trailer.jpg + chmod -x $(CURDIR)/debian/tmp/usr/lib/Wt/examples/codeview/prettify/prettify.css + (cd $(CURDIR)/debian/tmp/usr/lib/Wt/examples/; for I in `find . -mindepth 1 -maxdepth 1 -type d`; do (cd $$I; ln -s /usr/share/Wt/resources); done) + (cd $(CURDIR)/debian/tmp/usr/lib/Wt/examples/feature; for I in `find . -mindepth 1 -maxdepth 1 -type d`; do (cd $$I; ln -s /usr/share/Wt/resources); done) + (cd $(CURDIR)/debian/tmp/usr/lib/Wt/examples/widgetgallery; rm resources; cd docroot; ln -s /usr/share/Wt/resources) + rm -f $(CURDIR)/debian/tmp/usr/share/Wt/resources/themes/default/stripes/generate.sh + rm -f $(CURDIR)/debian/tmp/usr/share/Wt/resources/themes/default/no-stripes/generate.sh + rm -f $(CURDIR)/debian/tmp/usr/share/Wt/resources/themes/polished/stripes/generate.sh + rm -f $(CURDIR)/debian/tmp/usr/share/Wt/resources/themes/polished/no-stripes/generate.sh + rm -f $(CURDIR)/debian/tmp/usr/lib/Wt/examples/run-example.cmake + rm -f $(CURDIR)/debian/tmp/usr/lib/Wt/examples/run-example.bat + chmod 644 debian/tmp/usr/share/Wt/resources/WtSoundManager.swf + +# rm $(CURDIR)/debian/tmp/usr/share/cmake-$(CMAKEVERSION)/Modules/FindWt.cmake + + cp $(CURDIR)/ReleaseNotes.html $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/ + + # Fix examples and tests to make them buildable standalone + patch -p1 -d debian/tmp/usr/lib/Wt < debian/patches/05_examples_cmake_dependencies.dpatch + patch -p1 -d debian/tmp/usr/lib/Wt < debian/patches/07_tests_cmake_dependencies.dpatch + + rm $(CURDIR)/debian/tmp/usr/lib/Wt/examples/wtwithqt/LICENSE + rm $(CURDIR)/debian/tmp/usr/lib/Wt/examples/wtwithqt/lib/LICENSE + +# Build architecture-independent files here. +binary-indep: install + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_installexamples + dh_install --sourcedir=debian/tmp/ + dh_install --sourcedir=debian/tmp/ + dh_installman + dh_lintian + dh_link + dh_strip --dbg-package=libwt-dbg + dh_compress -Xwt.doc -Xauth.doc -Xdbo.doc -XDoxyfile -X.html -X.C -X.h -X.txt -X.map -X.xml -X.js -X.csv -XWQApplication -X.qch -A + dh_makeshlibs -V + dh_shlibdeps -a -- -S$(CURDIR)/debian/tmp/usr/lib/ + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- witty-3.3.0.orig/debian/libwt-common.install +++ witty-3.3.0/debian/libwt-common.install @@ -0,0 +1,2 @@ +etc/wt/wt_config.xml +usr/share/Wt --- witty-3.3.0.orig/debian/libwtdbofirebird35.install +++ witty-3.3.0/debian/libwtdbofirebird35.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbofirebird.so.35 +usr/lib/libwtdbofirebird.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.doc-base.tutorial +++ witty-3.3.0/debian/libwt-doc.doc-base.tutorial @@ -0,0 +1,13 @@ +Document: hands-on-wt +Title: A hands-on introduction to Wt +Author: Pieter Libin, Koen Deforche, Wim Dumon +Abstract: This is an introductory tutorial that shows how to develop + web applications using the Wt libraries and application server. +Section: Web Development + +Format: html +Index: /usr/share/doc/libwt-doc/tutorial/wt.html +Files: /usr/share/doc/libwt-doc/tutorial/wt.html + +Format: text +Files: /usr/share/doc/libwt-doc/tutorial/wt.doc --- witty-3.3.0.orig/debian/watch +++ witty-3.3.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +opts=uversionmangle=s/-rc/~rc/g http://sf.net/witty/wt-(\d\.\d\.\d[-a-z0-9]*)\.tar\.gz --- witty-3.3.0.orig/debian/libwtdbopostgres-dev.lintian-overrides +++ witty-3.3.0/debian/libwtdbopostgres-dev.lintian-overrides @@ -0,0 +1 @@ +libwtdbopostgres-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtdbosqlite-dev.install +++ witty-3.3.0/debian/libwtdbosqlite-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbosqlite3.a +usr/lib/libwtdbosqlite3.so --- witty-3.3.0.orig/debian/libwt35.lintian-overrides +++ witty-3.3.0/debian/libwt35.lintian-overrides @@ -0,0 +1,2 @@ +libwt35: conflicts-with-version witty (<< 3.1.0a-1~) +libwt35: no-symbols-control-file usr/lib/libwt.so.3.3.0 --- witty-3.3.0.orig/debian/libwtdbo-dev.install +++ witty-3.3.0/debian/libwtdbo-dev.install @@ -0,0 +1,3 @@ +usr/lib/libwtdbo.a +usr/lib/libwtdbo.so +usr/include/Wt/Dbo/* --- witty-3.3.0.orig/debian/libwtdbopostgres-dev.install +++ witty-3.3.0/debian/libwtdbopostgres-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbopostgres.a +usr/lib/libwtdbopostgres.so --- witty-3.3.0.orig/debian/libwttest5.install +++ witty-3.3.0/debian/libwttest5.install @@ -0,0 +1,2 @@ +usr/lib/libwttest.so.5 +usr/lib/libwttest.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-doc.lintian-overrides +++ witty-3.3.0/debian/libwt-doc.lintian-overrides @@ -0,0 +1,2 @@ +libwt-doc: conflicts-with-version witty-doc (<< 3.1.0a-1~) +libwt-doc: embedded-javascript-library usr/share/doc/libwt-doc/reference/html/jquery.js --- witty-3.3.0.orig/debian/README.source +++ witty-3.3.0/debian/README.source @@ -0,0 +1,39 @@ +jQuery and jPlayer +================== + +Upstream's original tarball include jQuery and jPlayer. + +The Debian package does NOT use them: jQuery and jPlayer are replaced by the +Debian versions, which is the reason witty depends/build-depens on +libjs-jquery and libjs-jquery-jplayer. + + +dpatch +====== + +This package uses dpatch(1) to manage all modifications to the upstream source. +Changes are stored in the source package as dpatch format diffs, and applied +from debian/patches at build-time. + +To get the fully patched source after unpacking the source package, cd to the +root level of the source package and run: + + dpatch apply-all + +To add new patches, first apply all existing patches, and then run: + + dpatch-edit-patch + +Dpatch opens a new shell in a copy of the source tree. Edit the files +appropriately and then exit the shell, and dpatch will generate a file called +debian/patches/. To have new patches applied automatically during +build and with dpatch apply-all, add to debian/patches/00list. + +To reverse all patching, run: + + dpatch deapply-all + + -- Pau Garcia i Quiles , Tue, 09 December 2008 + +(this text is original by Jonathan Wiltshire , + Wed, 26 November 2008, for the webcpp package) --- witty-3.3.0.orig/debian/compat +++ witty-3.3.0/debian/compat @@ -0,0 +1 @@ +6 --- witty-3.3.0.orig/debian/witty-examples.doc-base.reference +++ witty-3.3.0/debian/witty-examples.doc-base.reference @@ -0,0 +1,9 @@ +Document: libwt-examples-reference +Title: Wt examples online documentation +Author: Emweb bvba +Abstract: This set of documents provides help for the examples bundled with Wt +Section: Web Development + +Format: html +Index: /usr/share/doc/witty-examples/html/index.html +Files: /usr/share/doc/witty-examples/html/*.html --- witty-3.3.0.orig/debian/libwtfcgi-dev.lintian-overrides +++ witty-3.3.0/debian/libwtfcgi-dev.lintian-overrides @@ -0,0 +1 @@ +libwtfcgi-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtdbomysql-dev.install +++ witty-3.3.0/debian/libwtdbomysql-dev.install @@ -0,0 +1,2 @@ +usr/lib/libwtdbomysql.a +usr/lib/libwtdbomysql.so --- witty-3.3.0.orig/debian/libwtfcgi35.lintian-overrides +++ witty-3.3.0/debian/libwtfcgi35.lintian-overrides @@ -0,0 +1,3 @@ +libwtfcgi35: conflicts-with-version witty (<< 3.1.0a-1~) +libwtfcgi35: no-symbols-control-file usr/lib/libwtfcgi.so.3.3.0 +libwtfcgi35: spelling-error-in-binary ./usr/lib/libwtfcgi.so.3.3.0 unkown unknown --- witty-3.3.0.orig/debian/TODO +++ witty-3.3.0/debian/TODO @@ -0,0 +1,14 @@ +- Use unoconv to convert the .odt to PDF and XHTML + It has to build-depend on unoconv and openoffice.org-writer, and it will + fail because it will block on the registration screen and no socket will + be opened, see http://www.oooforum.org/forum/viewtopic.phtml?t=33536 for a + possible solution (although complex!) + + /usr/lib/openoffice/basis3.2/share/registry/data/org/openoffice/Setup.xcu + + ... + + false --> CHANGE TO true + + ... + --- witty-3.3.0.orig/debian/libwttest-dev.lintian-overrides +++ witty-3.3.0/debian/libwttest-dev.lintian-overrides @@ -0,0 +1 @@ +libwttest-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/witty-examples.lintian-overrides +++ witty-3.3.0/debian/witty-examples.lintian-overrides @@ -0,0 +1,164 @@ +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/blog/css/comment.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/blog/css/comment_edit.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/blog/css/rss.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/composer/icons/paperclip.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/dragdrop/icons/blue-pill-small.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/dragdrop/icons/blue-pill.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/dragdrop/icons/red-pill-small.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/dragdrop/icons/red-pill.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/feature/video/sintel_trailer.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/filetreetable/icons/document.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/filetreetable/icons/yellow-folder-closed.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/filetreetable/icons/yellow-folder-open.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/form/icons/invalid.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/gitmodel/icons/git-blob.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/gitmodel/icons/git-tree.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/simplechat/icons/maximize.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/simplechat/icons/minimize.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/document.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/line-last.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/line-middle.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/line-trunk.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/nav-minus-line-last.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/nav-minus-line-middle.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/nav-plus-line-last.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/nav-plus-line-middle.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/yellow-folder-closed.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treelist/icons/yellow-folder-open.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview-dragdrop/icons/file.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview-dragdrop/icons/folder.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/cloudy01.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/flag_be.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/flag_fr.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/flag_ma.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/flag_sp.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/rain.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/snow.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/storm.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/sun01.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/treeview/icons/w_cloud.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/webgl/nowebgl.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/webgl/texture.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/Papa.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/Pennant_One.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/blue-pill-small.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/blue-pill.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/cloudy01.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/emweb.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/flag_be.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/flag_fr.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/flag_ma.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/flag_sp.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/house.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/rain.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/red-pill-small.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/red-pill.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/snow.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/storm.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/sun01.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/w_cloud.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/wt_powered.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/yellow-folder-closed.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/icons/yellow-folder-open.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/pics/emweb_small.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/widgetgallery/pics/sintel_trailer.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/emweb_large.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/emweb_powered.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/emweb_small.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/main_page_banner_small.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/main_page_banner_small2.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/old_wt_banner.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/wt_banner.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/wt_banner_right.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/emweb_large.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/emweb_powered.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/emweb_small.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/main_page_banner.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/main_page_banner_small.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/main_page_banner_small2.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/uiloog.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/wt_banner.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/wt_banner_right.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/wt_powered.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/clojure-logo.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/cpp-logo.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/cppclass.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/document.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/green-play.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/invalid.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/java-logo.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/javaclass.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/orange-play.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/package-folder-open.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/package.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/rss.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/ruby-logo-R.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/yellow-folder-closed.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/yellow-folder-open.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/icons/jython-logo.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/blog/css/oauth-google.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/feature/auth1/css/oauth-facebook.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/feature/auth1/css/oauth-google.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/feature/mediaplayer/sintel_trailer.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/feature/oauth/css/oauth-google.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/css/oauth-google.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman0.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman1.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman2.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman3.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman4.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman5.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman6.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman7.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman8.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangman9.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/hangman/icons/hangmanhurray.jpg +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/qrlogin/css/QRcode.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/qrlogin/css/oauth-google.png +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/tab_b.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/tab_l.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/jwt/tab_r.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/tab_b.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/tab_l.gif +witty-examples: image-file-in-usr-lib usr/lib/Wt/examples/wt-homepage/css/wt/tab_r.gif +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/blog/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/charts/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/codeview/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/composer/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/dialog/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/dragdrop/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/auth1/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/broadcast/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/dbo/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/mediaplayer/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/miniwebgl/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/multiple_servers/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/oauth/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/serverpush/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/socketnotifier/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/suggestionpopup/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/video/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/feature/widgetset/resources ../../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/filetreetable/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/form/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/gitmodel/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/hangman/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/hello/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/javascript/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/mandelbrot/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/mission/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/painting/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/planner/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/qrlogin/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/simplechat/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/style/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/treelist/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/treeview-dragdrop/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/treeview/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/webgl/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/widgetgallery/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/wt-homepage/resources ../../../../share/Wt/resources +witty-examples: package-contains-broken-symlink usr/lib/Wt/examples/wtwithqt/resources ../../../../share/Wt/resources +witty-examples: arch-dep-package-has-big-usr-share +witty-examples: embedded-javascript-library usr/share/doc/witty-examples/html/jquery.js --- witty-3.3.0.orig/debian/libwt35.install +++ witty-3.3.0/debian/libwt35.install @@ -0,0 +1,2 @@ +usr/lib/libwt.so.35 +usr/lib/libwt.so.3.3.0 --- witty-3.3.0.orig/debian/libwthttp35.install +++ witty-3.3.0/debian/libwthttp35.install @@ -0,0 +1,2 @@ +usr/lib/libwthttp.so.35 +usr/lib/libwthttp.so.3.3.0 --- witty-3.3.0.orig/debian/libwt-dev.lintian-overrides +++ witty-3.3.0/debian/libwt-dev.lintian-overrides @@ -0,0 +1 @@ +libwt-dev: conflicts-with-version witty-dev (<< 3.1.0a-1~) --- witty-3.3.0.orig/debian/libwtdbo35.lintian-overrides +++ witty-3.3.0/debian/libwtdbo35.lintian-overrides @@ -0,0 +1,2 @@ +libwtdbo35: conflicts-with-version witty-dev (<< 3.1.0a-1~) +libwtdbo35: no-symbols-control-file usr/lib/libwtdbo.so.3.3.0 --- witty-3.3.0.orig/debian/source/lintian-overrides +++ witty-3.3.0/debian/source/lintian-overrides @@ -0,0 +1 @@ +witty source: dbg-package-missing-depends witty-dbg --- witty-3.3.0.orig/debian/source/format +++ witty-3.3.0/debian/source/format @@ -0,0 +1 @@ +1.0 --- witty-3.3.0.orig/debian/dfsg-compliance/README +++ witty-3.3.0/debian/dfsg-compliance/README @@ -0,0 +1,12 @@ +Wt includes a pre-release of jQuery (1.4b1pre) in minified form. + +As this is not the "preferred modification form", upstream provided the +unminified file. + +Please note the Debian packages DO NOT use upstream's jQuery but the version +provided by libjs-jquery. The only reason the Debian packaging includes +jquery.js is for compliance with the Debian Free Software Guidelines. + + -- Pau Garcia i Quiles + Wt Debian maintainer + September 9th, 2012 --- witty-3.3.0.orig/debian/dfsg-compliance/jquery.js +++ witty-3.3.0/debian/dfsg-compliance/jquery.js @@ -0,0 +1,5535 @@ +/*! + * jQuery JavaScript Library v1.4b1pre + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://docs.jquery.com/License + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Tue Jan 12 10:59:50 2010 -0500 + */ +(function( window, undefined ) { + +// Define a local copy of jQuery +var jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context ); + }, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // Use the correct document accordingly with window argument (sandbox) + document = window.document, + + // A central reference to the root jQuery(document) + rootjQuery, + + // A simple way to check for HTML strings or ID strings + // (both of which we optimize for) + quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/, + + // Is it a simple selector + isSimple = /^.[^:#\[\.,]*$/, + + // Check if a string has a non-whitespace character in it + rnotwhite = /\S/, + + // Used for trimming whitespace + rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, + + // Keep a UserAgent string for use with jQuery.browser + userAgent = navigator.userAgent, + + // For matching the engine and version of the browser + browserMatch, + + // Has the ready events already been bound? + readyBound = false, + + // The functions to execute on DOM ready + readyList = [], + + // The ready event handler + DOMContentLoaded, + + // Save a reference to some core methods + toString = Object.prototype.toString, + hasOwnProperty = Object.prototype.hasOwnProperty, + push = Array.prototype.push, + slice = Array.prototype.slice, + indexOf = Array.prototype.indexOf; + +jQuery.fn = jQuery.prototype = { + init: function( selector, context ) { + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + match = quickExpr.exec( selector ); + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + doc = (context ? context.ownerDocument || context : document); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = buildFragment( [ match[1] ], [ doc ] ); + selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes; + } + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + if ( elem ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $("TAG") + } else if ( !context && /^\w+$/.test( selector ) ) { + this.selector = selector; + this.context = document; + selector = document.getElementsByTagName( selector ); + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return (context || rootjQuery).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return jQuery( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.isArray( selector ) ? + this.setArray( selector ) : + jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The current version of jQuery being used + jquery: "1.4b1pre", + + // The default length of a jQuery object is 0 + length: 0, + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + toArray: function() { + return slice.call( this, 0 ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems, name, selector ) { + // Build a new jQuery matched element set + var ret = jQuery( elems || null ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + (this.selector ? " " : "") + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }, + + // Force the current matched set of elements to become + // the specified array of elements (destroying the stack in the process) + // You should use pushStack() in order to do this, but maintain the stack + setArray: function( elems ) { + // Resetting the length to 0, then using the native Array push + // is a super-fast way to populate an object with array-like properties + this.length = 0; + push.apply( this, elems ); + + return this; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Attach the listeners + jQuery.bindReady(); + + // If the DOM is already ready + if ( jQuery.isReady ) { + // Execute the function immediately + fn.call( document, jQuery ); + + // Otherwise, remember the function for later + } else if ( readyList ) { + // Add the function to the wait list + readyList.push( fn ); + } + + return this; + }, + + eq: function( i ) { + return i === -1 ? + this.slice( i ) : + this.slice( i, +i + 1 ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || jQuery(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + // copy reference to target object + var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging object literal values or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) { + var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src + : jQuery.isArray(copy) ? [] : {}; + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + noConflict: function( deep ) { + window.$ = _$; + + if ( deep ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // Handle when the DOM is ready + ready: function() { + // Make sure that the DOM is not already loaded + if ( !jQuery.isReady ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 13 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If there are functions bound, to execute + if ( readyList ) { + // Execute all of them + var fn, i = 0; + while ( (fn = readyList[ i++ ]) ) { + fn.call( document, jQuery ); + } + + // Reset the list of functions + readyList = null; + } + + // Trigger any bound ready events + if ( jQuery.fn.triggerHandler ) { + jQuery( document ).triggerHandler( "ready" ); + } + } + }, + + bindReady: function() { + if ( readyBound ) { + return; + } + + readyBound = true; + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + return jQuery.ready(); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent("onreadystatechange", DOMContentLoaded); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return toString.call(obj) === "[object Function]"; + }, + + isArray: function( obj ) { + return toString.call(obj) === "[object Array]"; + }, + + isPlainObject: function( obj ) { + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { + return false; + } + + // Not own constructor property must be Object + if ( obj.constructor + && !hasOwnProperty.call(obj, "constructor") + && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwnProperty.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + for ( var name in obj ) { + return false; + } + return true; + }, + + noop: function() {}, + + // Evalulates a script in a global context + globalEval: function( data ) { + if ( data && rnotwhite.test(data) ) { + // Inspired by code by Andrea Giammarchi + // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html + var head = document.getElementsByTagName("head")[0] || document.documentElement, + script = document.createElement("script"); + + script.type = "text/javascript"; + + if ( jQuery.support.scriptEval ) { + script.appendChild( document.createTextNode( data ) ); + } else { + script.text = data; + } + + // Use insertBefore instead of appendChild to circumvent an IE6 bug. + // This arises when a base node is used (#2709). + head.insertBefore( script, head.firstChild ); + head.removeChild( script ); + } + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction(object); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( var value = object[0]; + i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {} + } + } + + return object; + }, + + trim: function( text ) { + return (text || "").replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( array, results ) { + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // The extra typeof function check is to prevent crashes + // in Safari 2 (See: #3039) + if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }, + + inArray: function( elem, array ) { + if ( array.indexOf ) { + return array.indexOf( elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; + }, + + merge: function( first, second ) { + var i = first.length, j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var ret = []; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + if ( !inv !== !callback( elems[ i ], i ) ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var ret = [], value; + + // Go through the array, translating each of the items to their + // new value (or values). + for ( var i = 0, length = elems.length; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + return ret.concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + proxy: function( fn, proxy, thisObject ) { + if ( arguments.length === 2 ) { + if ( typeof proxy === "string" ) { + thisObject = fn; + fn = thisObject[ proxy ]; + proxy = undefined; + + } else if ( proxy && !jQuery.isFunction( proxy ) ) { + thisObject = proxy; + proxy = undefined; + } + } + + if ( !proxy && fn ) { + proxy = function() { + return fn.apply( thisObject || this, arguments ); + }; + } + + // Set the guid of unique handler to the same of original handler, so it can be removed + if ( fn ) { + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + } + + // So proxy can be declared as an argument + return proxy; + }, + + // Use of jQuery.browser is frowned upon. + // More details: http://docs.jquery.com/Utilities/jQuery.browser + uaMatch: function( ua ) { + var ret = { browser: "" }; + + ua = ua.toLowerCase(); + + if ( /webkit/.test( ua ) ) { + ret = { browser: "webkit", version: /webkit[\/ ]([\w.]+)/ }; + + } else if ( /opera/.test( ua ) ) { + ret = { browser: "opera", version: /version/.test( ua ) ? /version[\/ ]([\w.]+)/ : /opera[\/ ]([\w.]+)/ }; + + } else if ( /msie/.test( ua ) ) { + ret = { browser: "msie", version: /msie ([\w.]+)/ }; + + } else if ( /mozilla/.test( ua ) && !/compatible/.test( ua ) ) { + ret = { browser: "mozilla", version: /rv:([\w.]+)/ }; + } + + ret.version = (ret.version && ret.version.exec( ua ) || [0, "0"])[1]; + + return ret; + }, + + browser: {} +}); + +browserMatch = jQuery.uaMatch( userAgent ); +if ( browserMatch.browser ) { + jQuery.browser[ browserMatch.browser ] = true; + jQuery.browser.version = browserMatch.version; +} + +// Deprecated, use jQuery.browser.webkit instead +if ( jQuery.browser.webkit ) { + jQuery.browser.safari = true; +} + +if ( indexOf ) { + jQuery.inArray = function( elem, array ) { + return indexOf.call( array, elem ); + }; +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); + +// Cleanup functions for the document ready method +if ( document.addEventListener ) { + DOMContentLoaded = function() { + document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + jQuery.ready(); + }; + +} else if ( document.attachEvent ) { + DOMContentLoaded = function() { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( document.readyState === "complete" ) { + document.detachEvent( "onreadystatechange", DOMContentLoaded ); + jQuery.ready(); + } + }; +} + +// The DOM ready check for Internet Explorer +function doScrollCheck() { + if ( jQuery.isReady ) { + return; + } + + try { + // If IE is used, use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + document.documentElement.doScroll("left"); + } catch( error ) { + setTimeout( doScrollCheck, 1 ); + return; + } + + // and execute any waiting functions + jQuery.ready(); +} + +if ( indexOf ) { + jQuery.inArray = function( elem, array ) { + return indexOf.call( array, elem ); + }; +} + +function evalScript( i, elem ) { + if ( elem.src ) { + jQuery.ajax({ + url: elem.src, + async: false, + dataType: "script" + }); + } else { + jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); + } + + if ( elem.parentNode ) { + elem.parentNode.removeChild( elem ); + } +} + +// Mutifunctional method to get and set values to a collection +// The value/s can be optionally by executed if its a function +function access( elems, key, value, exec, fn, pass ) { + var length = elems.length; + + // Setting many attributes + if ( typeof key === "object" ) { + for ( var k in key ) { + access( elems, k, key[k], exec, fn, value ); + } + return elems; + } + + // Setting one attribute + if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = exec && jQuery.isFunction(value); + + for ( var i = 0; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + + return elems; + } + + // Getting an attribute + return length ? fn( elems[0], key ) : null; +} + +function now() { + return (new Date).getTime(); +} +var rclass = /[\n\t]/g, + rspace = /\s+/, + rreturn = /\r/g, + rspecialurl = /href|src|style/, + rtype = /(button|input)/i, + rfocusable = /(button|input|object|select|textarea)/i, + rclickable = /^(a|area)$/i, + rradiocheck = /radio|checkbox/; + +jQuery.fn.extend({ + attr: function( name, value ) { + return access( this, name, value, true, jQuery.attr ); + }, + + removeAttr: function( name, fn ) { + return this.each(function(){ + jQuery.attr( this, name, "" ); + if ( this.nodeType === 1 ) { + this.removeAttribute( name ); + } + }); + }, + + addClass: function( value ) { + if ( jQuery.isFunction(value) ) { + return this.each(function(i) { + var self = jQuery(this); + self.addClass( value.call(this, i, self.attr("class")) ); + }); + } + + if ( value && typeof value === "string" ) { + var classNames = (value || "").split( rspace ); + + for ( var i = 0, l = this.length; i < l; i++ ) { + var elem = this[i]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className ) { + elem.className = value; + + } else { + var className = " " + elem.className + " "; + for ( var c = 0, cl = classNames.length; c < cl; c++ ) { + if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) { + elem.className += " " + classNames[c]; + } + } + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + if ( jQuery.isFunction(value) ) { + return this.each(function(i) { + var self = jQuery(this); + self.removeClass( value.call(this, i, self.attr("class")) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + var classNames = (value || "").split(rspace); + + for ( var i = 0, l = this.length; i < l; i++ ) { + var elem = this[i]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + var className = (" " + elem.className + " ").replace(rclass, " "); + for ( var c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[c] + " ", " "); + } + elem.className = className.substring(1, className.length - 1); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function(i) { + var self = jQuery(this); + self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, i = 0, self = jQuery(this), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery.data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " "; + for ( var i = 0, l = this.length; i < l; i++ ) { + if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + if ( value === undefined ) { + var elem = this[0]; + + if ( elem ) { + if ( jQuery.nodeName( elem, "option" ) ) { + return (elem.attributes.value || {}).specified ? elem.value : elem.text; + } + + // We need to handle select boxes special + if ( jQuery.nodeName( elem, "select" ) ) { + var index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type === "select-one"; + + // Nothing was selected + if ( index < 0 ) { + return null; + } + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + if ( option.selected ) { + // Get the specifc value for the option + value = jQuery(option).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + } + + // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified + if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) { + return elem.getAttribute("value") === null ? "on" : elem.value; + } + + + // Everything else, we just grab the value + return (elem.value || "").replace(rreturn, ""); + + } + + return undefined; + } + + var isFunction = jQuery.isFunction(value); + + return this.each(function(i) { + var self = jQuery(this), val = value; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call(this, i, self.val()); + } + + // Typecast each time if the value is a Function and the appended + // value is therefore different each time. + if ( typeof val === "number" ) { + val += ""; + } + + if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) { + this.checked = jQuery.inArray( self.val(), val ) >= 0; + + } else if ( jQuery.nodeName( this, "select" ) ) { + var values = jQuery.makeArray(val); + + jQuery( "option", this ).each(function() { + this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; + }); + + if ( !values.length ) { + this.selectedIndex = -1; + } + + } else { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + attrFn: { + val: true, + css: true, + html: true, + text: true, + data: true, + width: true, + height: true, + offset: true + }, + + attr: function( elem, name, value, pass ) { + // don't set attributes on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { + return undefined; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery(elem)[name](value); + } + + var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ), + // Whether we are setting (or getting) + set = value !== undefined; + + // Try to normalize/fix the name + name = notxml && jQuery.props[ name ] || name; + + // Only do all the following if this is a node (faster for style) + if ( elem.nodeType === 1 ) { + // These attributes require special treatment + var special = rspecialurl.test( name ); + + // Safari mis-reports the default selected property of an option + // Accessing the parent's selectedIndex property fixes it + if ( name === "selected" && !jQuery.support.optSelected ) { + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + + // If applicable, access the attribute via the DOM 0 way + if ( name in elem && notxml && !special ) { + if ( set ) { + // We can't allow the type property to be changed (since it causes problems in IE) + if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) { + throw "type property can't be changed"; + } + + elem[ name ] = value; + } + + // browsers index elements by id/name on forms, give priority to attributes. + if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) { + return elem.getAttributeNode( name ).nodeValue; + } + + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + if ( name === "tabIndex" ) { + var attributeNode = elem.getAttributeNode( "tabIndex" ); + + return attributeNode && attributeNode.specified ? + attributeNode.value : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + undefined; + } + + return elem[ name ]; + } + + if ( !jQuery.support.style && notxml && name === "style" ) { + if ( set ) { + elem.style.cssText = "" + value; + } + + return elem.style.cssText; + } + + if ( set ) { + // convert the value to a string (all browsers do this but IE) see #1070 + elem.setAttribute( name, "" + value ); + } + + var attr = !jQuery.support.hrefNormalized && notxml && special ? + // Some attributes require a special call on IE + elem.getAttribute( name, 2 ) : + elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return attr === null ? undefined : attr; + } + + // elem is actually elem.style ... set the style + // Using attr for specific style information is now deprecated. Use style insead. + return jQuery.style( elem, name, value ); + } +}); +(function() { + + jQuery.support = {}; + + var root = document.documentElement, + script = document.createElement("script"), + div = document.createElement("div"), + id = "script" + now(); + + div.style.display = "none"; + div.innerHTML = "
a"; + + var all = div.getElementsByTagName("*"), + a = div.getElementsByTagName("a")[0]; + + // Can't get basic test support + if ( !all || !all.length || !a ) { + return; + } + + jQuery.support = { + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: div.firstChild.nodeType === 3, + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + tbody: !div.getElementsByTagName("tbody").length, + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName("link").length, + + // Get the style information from getAttribute + // (IE uses .cssText insted) + style: /red/.test( a.getAttribute("style") ), + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + hrefNormalized: a.getAttribute("href") === "/a", + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + opacity: /^0.55$/.test( a.style.opacity ), + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + cssFloat: !!a.style.cssFloat, + + // Make sure that if no value is specified for a checkbox + // that it defaults to "on". + // (WebKit defaults to "" instead) + checkOn: div.getElementsByTagName("input")[0].value === "on", + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected, + + // Will be defined later + scriptEval: false, + noCloneEvent: true, + boxModel: null + }; + + script.type = "text/javascript"; + try { + script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); + } catch(e) {} + + root.insertBefore( script, root.firstChild ); + + // Make sure that the execution of code works by injecting a script + // tag with appendChild/createTextNode + // (IE doesn't support this, fails, and uses .text instead) + if ( window[ id ] ) { + jQuery.support.scriptEval = true; + delete window[ id ]; + } + + root.removeChild( script ); + + if ( div.attachEvent && div.fireEvent ) { + div.attachEvent("onclick", function click() { + // Cloning a node shouldn't copy over any + // bound event handlers (IE does this) + jQuery.support.noCloneEvent = false; + div.detachEvent("onclick", click); + }); + div.cloneNode(true).fireEvent("onclick"); + } + + // Figure out if the W3C box model works as expected + // document.body must exist before we can do this + // TODO: This timeout is temporary until I move ready into core.js. + jQuery(function() { + var div = document.createElement("div"); + div.style.width = div.style.paddingLeft = "1px"; + + document.body.appendChild( div ); + jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; + document.body.removeChild( div ).style.display = 'none'; + div = null; + }); + + // Technique from Juriy Zaytsev + // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ + var eventSupported = function( eventName ) { + var el = document.createElement("div"); + eventName = "on" + eventName; + + var isSupported = (eventName in el); + if ( !isSupported ) { + el.setAttribute(eventName, "return;"); + isSupported = typeof el[eventName] === "function"; + } + el = null; + + return isSupported; + }; + + jQuery.support.submitBubbles = eventSupported("submit"); + jQuery.support.changeBubbles = eventSupported("change"); + + // release memory in IE + root = script = div = all = a = null; +})(); + +jQuery.props = { + "for": "htmlFor", + "class": "className", + readonly: "readOnly", + maxlength: "maxLength", + cellspacing: "cellSpacing", + rowspan: "rowSpan", + colspan: "colSpan", + tabindex: "tabIndex", + usemap: "useMap", + frameborder: "frameBorder" +}; +var expando = "jQuery" + now(), uuid = 0, windowData = {}; +var emptyObject = {}; + +jQuery.extend({ + cache: {}, + + expando:expando, + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "embed": true, + "object": true, + "applet": true + }, + + data: function( elem, name, data ) { + if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { + return; + } + + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ], cache = jQuery.cache, thisCache; + + // Handle the case where there's no name immediately + if ( !name && !id ) { + return null; + } + + // Compute a unique ID for the element + if ( !id ) { + id = ++uuid; + } + + // Avoid generating a new cache unless none exists and we + // want to manipulate it. + if ( typeof name === "object" ) { + elem[ expando ] = id; + thisCache = cache[ id ] = jQuery.extend(true, {}, name); + } else if ( cache[ id ] ) { + thisCache = cache[ id ]; + } else if ( typeof data === "undefined" ) { + thisCache = emptyObject; + } else { + thisCache = cache[ id ] = {}; + } + + // Prevent overriding the named cache with undefined values + if ( data !== undefined ) { + elem[ expando ] = id; + thisCache[ name ] = data; + } + + return typeof name === "string" ? thisCache[ name ] : thisCache; + }, + + removeData: function( elem, name ) { + if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { + return; + } + + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ]; + + // If we want to remove a specific section of the element's data + if ( name ) { + if ( thisCache ) { + // Remove the section of cache data + delete thisCache[ name ]; + + // If we've removed all the data, remove the element's cache + if ( jQuery.isEmptyObject(thisCache) ) { + jQuery.removeData( elem ); + } + } + + // Otherwise, we want to remove all of the element's data + } else { + // Clean up the element expando + try { + delete elem[ expando ]; + } catch( e ) { + // IE has trouble directly removing the expando + // but it's ok with using removeAttribute + if ( elem.removeAttribute ) { + elem.removeAttribute( expando ); + } + } + + // Completely remove the data cache + delete cache[ id ]; + } + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + if ( typeof key === "undefined" && this.length ) { + return jQuery.data( this[0] ); + + } else if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + if ( data === undefined && this.length ) { + data = jQuery.data( this[0], key ); + } + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + } else { + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() { + jQuery.data( this, key, value ); + }); + } + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); +var fcleanup = function( nm ) { + return nm.replace(/[^\w\s\.\|`]/g, function( ch ) { + return "\\" + ch; + }); +}; + +/* + * A number of helper functions used for managing events. + * Many of the ideas behind this code originated from + * Dean Edwards' addEvent library. + */ +jQuery.event = { + + // Bind an event to an element + // Original by Dean Edwards + add: function( elem, types, handler, data ) { + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // For whatever reason, IE has trouble passing the window object + // around, causing it to be cloned in the process + if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) { + elem = window; + } + + // Make sure that the function being executed has a unique ID + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // if data is passed, bind to handler + if ( data !== undefined ) { + // Create temporary function pointer to original handler + var fn = handler; + + // Create unique handler function, wrapped around original handler + handler = jQuery.proxy( fn ); + + // Store data in unique handler + handler.data = data; + } + + // Init the element's event structure + var events = jQuery.data( elem, "events" ) || jQuery.data( elem, "events", {} ), + handle = jQuery.data( elem, "handle" ), eventHandle; + + if ( !handle ) { + eventHandle = function() { + // Handle the second event of a trigger and when + // an event is called after a page has unloaded + return typeof jQuery !== "undefined" && !jQuery.event.triggered ? + jQuery.event.handle.apply( eventHandle.elem, arguments ) : + undefined; + }; + + handle = jQuery.data( elem, "handle", eventHandle ); + } + + // Add elem as a property of the handle function + // This is to prevent a memory leak with non-native + // event in IE. + handle.elem = elem; + + // Handle multiple events separated by a space + // jQuery(...).bind("mouseover mouseout", fn); + types = types.split( /\s+/ ); + var type, i=0; + while ( (type = types[ i++ ]) ) { + // Namespaced event handlers + var namespaces = type.split("."); + type = namespaces.shift(); + handler.type = namespaces.slice(0).sort().join("."); + + // Get the current list of functions bound to this event + var handlers = events[ type ], + special = this.special[ type ] || {}; + + + + // Init the event handler queue + if ( !handlers ) { + handlers = events[ type ] = {}; + + // Check for a special event handler + // Only use addEventListener/attachEvent if the special + // events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, handler) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, handle, false ); + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, handle ); + } + } + } + + if ( special.add ) { + var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); + if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { + modifiedHandler.guid = modifiedHandler.guid || handler.guid; + handler = modifiedHandler; + } + } + + // Add the function to the element's handler list + handlers[ handler.guid ] = handler; + + // Keep track of which events have been used, for global triggering + this.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + global: {}, + + // Detach an event or set of events from an element + remove: function( elem, types, handler ) { + // don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + var events = jQuery.data( elem, "events" ), ret, type, fn; + + if ( events ) { + // Unbind all events for the element + if ( types === undefined || (typeof types === "string" && types.charAt(0) === ".") ) { + for ( type in events ) { + this.remove( elem, type + (types || "") ); + } + } else { + // types is actually an event object here + if ( types.type ) { + handler = types.handler; + types = types.type; + } + + // Handle multiple events separated by a space + // jQuery(...).unbind("mouseover mouseout", fn); + types = types.split(/\s+/); + var i = 0; + while ( (type = types[ i++ ]) ) { + // Namespaced event handlers + var namespaces = type.split("."); + type = namespaces.shift(); + var all = !namespaces.length, + cleaned = jQuery.map( namespaces.slice(0).sort(), fcleanup ), + namespace = new RegExp("(^|\\.)" + cleaned.join("\\.(?:.*\\.)?") + "(\\.|$)"), + special = this.special[ type ] || {}; + + if ( events[ type ] ) { + // remove the given handler for the given type + if ( handler ) { + fn = events[ type ][ handler.guid ]; + delete events[ type ][ handler.guid ]; + + // remove all handlers for the given type + } else { + for ( var handle in events[ type ] ) { + // Handle the removal of namespaced events + if ( all || namespace.test( events[ type ][ handle ].type ) ) { + delete events[ type ][ handle ]; + } + } + } + + if ( special.remove ) { + special.remove.call( elem, namespaces, fn); + } + + // remove generic event handler if no more handlers exist + for ( ret in events[ type ] ) { + break; + } + if ( !ret ) { + if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, jQuery.data( elem, "handle" ), false ); + } else if ( elem.detachEvent ) { + elem.detachEvent( "on" + type, jQuery.data( elem, "handle" ) ); + } + } + ret = null; + delete events[ type ]; + } + } + } + } + + // Remove the expando if it's no longer used + for ( ret in events ) { + break; + } + if ( !ret ) { + var handle = jQuery.data( elem, "handle" ); + if ( handle ) { + handle.elem = null; + } + jQuery.removeData( elem, "events" ); + jQuery.removeData( elem, "handle" ); + } + } + }, + + // bubbling is internal + trigger: function( event, data, elem /*, bubbling */ ) { + // Event object or event type + var type = event.type || event, + bubbling = arguments[3]; + + if ( !bubbling ) { + event = typeof event === "object" ? + // jQuery.Event object + event[expando] ? event : + // Object literal + jQuery.extend( jQuery.Event(type), event ) : + // Just the event type (string) + jQuery.Event(type); + + if ( type.indexOf("!") >= 0 ) { + event.type = type = type.slice(0, -1); + event.exclusive = true; + } + + // Handle a global trigger + if ( !elem ) { + // Don't bubble custom events when global (to avoid too much overhead) + event.stopPropagation(); + + // Only trigger if we've ever bound an event for it + if ( this.global[ type ] ) { + jQuery.each( jQuery.cache, function() { + if ( this.events && this.events[type] ) { + jQuery.event.trigger( event, data, this.handle.elem ); + } + }); + } + } + + // Handle triggering a single element + + // don't do events on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { + return undefined; + } + + // Clean up in case it is reused + event.result = undefined; + event.target = elem; + + // Clone the incoming data, if any + data = jQuery.makeArray( data ); + data.unshift( event ); + } + + event.currentTarget = elem; + + // Trigger the event, it is assumed that "handle" is a function + var handle = jQuery.data( elem, "handle" ); + if ( handle ) { + handle.apply( elem, data ); + } + + var nativeFn, nativeHandler; + try { + if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) { + nativeFn = elem[ type ]; + nativeHandler = elem[ "on" + type ]; + } + // prevent IE from throwing an error for some elements with some event types, see #3533 + } catch (e) {} + + var isClick = jQuery.nodeName(elem, "a") && type === "click"; + + // Trigger the native events (except for clicks on links) + if ( !bubbling && nativeFn && !event.isDefaultPrevented() && !isClick ) { + this.triggered = true; + try { + elem[ type ](); + // prevent IE from throwing an error for some hidden elements + } catch (e) {} + + // Handle triggering native .onfoo handlers + } else if ( nativeHandler && elem[ "on" + type ].apply( elem, data ) === false ) { + event.result = false; + } + + this.triggered = false; + + if ( !event.isPropagationStopped() ) { + var parent = elem.parentNode || elem.ownerDocument; + if ( parent ) { + jQuery.event.trigger( event, data, parent, true ); + } + } + }, + + handle: function( event ) { + // returned undefined or false + var all, handlers; + + event = arguments[0] = jQuery.event.fix( event || window.event ); + event.currentTarget = this; + + // Namespaced event handlers + var namespaces = event.type.split("."); + event.type = namespaces.shift(); + + // Cache this now, all = true means, any handler + all = !namespaces.length && !event.exclusive; + + var namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); + + handlers = ( jQuery.data(this, "events") || {} )[ event.type ]; + + for ( var j in handlers ) { + var handler = handlers[ j ]; + + // Filter the functions by class + if ( all || namespace.test(handler.type) ) { + // Pass in a reference to the handler function itself + // So that we can later remove it + event.handler = handler; + event.data = handler.data; + + var ret = handler.apply( this, arguments ); + + if ( ret !== undefined ) { + event.result = ret; + if ( ret === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + + if ( event.isImmediatePropagationStopped() ) { + break; + } + + } + } + + return event.result; + }, + + props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), + + fix: function( event ) { + if ( event[ expando ] ) { + return event; + } + + // store a copy of the original event object + // and "clone" to set read-only properties + var originalEvent = event; + event = jQuery.Event( originalEvent ); + + for ( var i = this.props.length, prop; i; ) { + prop = this.props[ --i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Fix target property, if necessary + if ( !event.target ) { + event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either + } + + // check if target is a textnode (safari) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && event.fromElement ) { + event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement; + } + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && event.clientX != null ) { + var doc = document.documentElement, body = document.body; + event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0); + event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0); + } + + // Add which for key events + if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) { + event.which = event.charCode || event.keyCode; + } + + // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs) + if ( !event.metaKey && event.ctrlKey ) { + event.metaKey = event.ctrlKey; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && event.button !== undefined ) { + event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) )); + } + + return event; + }, + + // Deprecated, use jQuery.guid instead + guid: 1E8, + + // Deprecated, use jQuery.proxy instead + proxy: jQuery.proxy, + + special: { + ready: { + // Make sure the ready event is setup + setup: jQuery.bindReady, + teardown: jQuery.noop + }, + + live: { + add: function( proxy, data, namespaces, live ) { + jQuery.extend( proxy, data || {} ); + + proxy.guid += data.selector + data.live; + jQuery.event.add( this, data.live, liveHandler, data ); + + }, + + remove: function( namespaces ) { + if ( namespaces.length ) { + var remove = 0, name = new RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)"); + + jQuery.each( (jQuery.data(this, "events").live || {}), function() { + if ( name.test(this.type) ) { + remove++; + } + }); + + if ( remove < 1 ) { + jQuery.event.remove( this, namespaces[0], liveHandler ); + } + } + }, + special: {} + }, + beforeunload: { + setup: function( data, namespaces, fn ) { + // We only want to do this special case on windows + if ( this.setInterval ) { + this.onbeforeunload = fn; + } + + return false; + }, + teardown: function( namespaces, fn ) { + if ( this.onbeforeunload === fn ) { + this.onbeforeunload = null; + } + } + } + } +}; + +jQuery.Event = function( src ) { + // Allow instantiation without the 'new' keyword + if ( !this.preventDefault ) { + return new jQuery.Event( src ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + // Event type + } else { + this.type = src; + } + + // timeStamp is buggy for some events on Firefox(#3843) + // So we won't rely on the native value + this.timeStamp = now(); + + // Mark it as fixed + this[ expando ] = true; +}; + +function returnFalse() { + return false; +} +function returnTrue() { + return true; +} + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + preventDefault: function() { + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + } + // otherwise set the returnValue property of the original event to false (IE) + e.returnValue = false; + }, + stopPropagation: function() { + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse +}; + +// Checks if an event happened on an element within another element +// Used in jQuery.event.special.mouseenter and mouseleave handlers +var withinElement = function( event ) { + // Check if mouse(over|out) are still within the same parent element + var parent = event.relatedTarget; + + // Traverse up the tree + while ( parent && parent !== this ) { + // Firefox sometimes assigns relatedTarget a XUL element + // which we cannot access the parentNode property of + try { + parent = parent.parentNode; + + // assuming we've left the element since we most likely mousedover a xul element + } catch(e) { + break; + } + } + + if ( parent !== this ) { + // set the correct event type + event.type = event.data; + + // handle event if we actually just moused on to a non sub-element + jQuery.event.handle.apply( this, arguments ); + } + +}, + +// In case of event delegation, we only need to rename the event.type, +// liveHandler will take care of the rest. +delegate = function( event ) { + event.type = event.data; + jQuery.event.handle.apply( this, arguments ); +}; + +// Create mouseenter and mouseleave events +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + setup: function( data ) { + jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig ); + }, + teardown: function( data ) { + jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement ); + } + }; +}); + +// submit delegation +if ( !jQuery.support.submitBubbles ) { + +jQuery.event.special.submit = { + setup: function( data, namespaces, fn ) { + if ( this.nodeName.toLowerCase() !== "form" ) { + jQuery.event.add(this, "click.specialSubmit." + fn.guid, function( e ) { + var elem = e.target, type = elem.type; + + if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { + return trigger( "submit", this, arguments ); + } + }); + + jQuery.event.add(this, "keypress.specialSubmit." + fn.guid, function( e ) { + var elem = e.target, type = elem.type; + + if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { + return trigger( "submit", this, arguments ); + } + }); + + } else { + return false; + } + }, + + remove: function( namespaces, fn ) { + jQuery.event.remove( this, "click.specialSubmit" + (fn ? "."+fn.guid : "") ); + jQuery.event.remove( this, "keypress.specialSubmit" + (fn ? "."+fn.guid : "") ); + } +}; + +} + +// change delegation, happens here so we have bind. +if ( !jQuery.support.changeBubbles ) { + +var formElems = /textarea|input|select/i; + +function getVal( elem ) { + var type = elem.type, val = elem.value; + + if ( type === "radio" || type === "checkbox" ) { + val = elem.checked; + + } else if ( type === "select-multiple" ) { + val = elem.selectedIndex > -1 ? + jQuery.map( elem.options, function( elem ) { + return elem.selected; + }).join("-") : + ""; + + } else if ( elem.nodeName.toLowerCase() === "select" ) { + val = elem.selectedIndex; + } + + return val; +} + +function testChange( e ) { + var elem = e.target, data, val; + + if ( !formElems.test( elem.nodeName ) || elem.readOnly ) { + return; + } + + data = jQuery.data( elem, "_change_data" ); + val = getVal(elem); + + if ( val === data ) { + return; + } + + // the current data will be also retrieved by beforeactivate + if ( e.type !== "focusout" || elem.type !== "radio" ) { + jQuery.data( elem, "_change_data", val ); + } + + if ( elem.type !== "select" && (data != null || val) ) { + e.type = "change"; + return jQuery.event.trigger( e, arguments[1], this ); + } +} + +jQuery.event.special.change = { + filters: { + focusout: testChange, + + click: function( e ) { + var elem = e.target, type = elem.type; + + if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) { + return testChange.call( this, e ); + } + }, + + // Change has to be called before submit + // Keydown will be called before keypress, which is used in submit-event delegation + keydown: function( e ) { + var elem = e.target, type = elem.type; + + if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") || + (e.keyCode === 32 && (type === "checkbox" || type === "radio")) || + type === "select-multiple" ) { + return testChange.call( this, e ); + } + }, + + // Beforeactivate happens also before the previous element is blurred + // with this event you can't trigger a change event, but you can store + // information/focus[in] is not needed anymore + beforeactivate: function( e ) { + var elem = e.target; + + if ( elem.nodeName.toLowerCase() === "input" && elem.type === "radio" ) { + jQuery.data( elem, "_change_data", getVal(elem) ); + } + } + }, + setup: function( data, namespaces, fn ) { + for ( var type in changeFilters ) { + jQuery.event.add( this, type + ".specialChange." + fn.guid, changeFilters[type] ); + } + + return formElems.test( this.nodeName ); + }, + remove: function( namespaces, fn ) { + for ( var type in changeFilters ) { + jQuery.event.remove( this, type + ".specialChange" + (fn ? "."+fn.guid : ""), changeFilters[type] ); + } + + return formElems.test( this.nodeName ); + } +}; + +var changeFilters = jQuery.event.special.change.filters; + +} + +function trigger( type, elem, args ) { + args[0].type = type; + return jQuery.event.handle.apply( elem, args ); +} + +// Create "bubbling" focus and blur events +if ( document.addEventListener ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + jQuery.event.special[ fix ] = { + setup: function() { + this.addEventListener( orig, handler, true ); + }, + teardown: function() { + this.removeEventListener( orig, handler, true ); + } + }; + + function handler( e ) { + e = jQuery.event.fix( e ); + e.type = fix; + return jQuery.event.handle.call( this, e ); + } + }); +} + +jQuery.each(["bind", "one"], function( i, name ) { + jQuery.fn[ name ] = function( type, data, fn ) { + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( jQuery.isFunction( data ) ) { + thisObject = fn; + fn = data; + data = undefined; + } + + var handler = name === "one" ? jQuery.proxy( fn, function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }) : fn; + + return type === "unload" && name !== "one" ? + this.one( type, data, fn, thisObject ) : + this.each(function() { + jQuery.event.add( this, type, handler, data ); + }); + }; +}); + +jQuery.fn.extend({ + unbind: function( type, fn ) { + // Handle object literals + if ( typeof type === "object" && !type.preventDefault ) { + for ( var key in type ) { + this.unbind(key, type[key]); + } + return this; + } + + return this.each(function() { + jQuery.event.remove( this, type, fn ); + }); + }, + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + + triggerHandler: function( type, data ) { + if ( this[0] ) { + var event = jQuery.Event( type ); + event.preventDefault(); + event.stopPropagation(); + jQuery.event.trigger( event, data, this[0] ); + return event.result; + } + }, + + toggle: function( fn ) { + // Save reference to arguments for access in closure + var args = arguments, i = 1; + + // link all the functions, so any of them can unbind this click handler + while ( i < args.length ) { + jQuery.proxy( fn, args[ i++ ] ); + } + + return this.click( jQuery.proxy( fn, function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + })); + }, + + hover: function( fnOver, fnOut ) { + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + }, + + live: function( type, data, fn ) { + if ( jQuery.isFunction( data ) ) { + fn = data; + data = undefined; + } + + jQuery( this.context ).bind( liveConvert( type, this.selector ), { + data: data, selector: this.selector, live: type + }, fn ); + + return this; + }, + + die: function( type, fn ) { + jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); + return this; + } +}); + +function liveHandler( event ) { + var stop = true, elems = [], selectors = [], args = arguments, + related, match, fn, elem, j, i, data, + live = jQuery.extend({}, jQuery.data( this, "events" ).live); + + for ( j in live ) { + fn = live[j]; + if ( fn.live === event.type || + fn.altLive && jQuery.inArray(event.type, fn.altLive) > -1 ) { + + data = fn.data; + if ( !(data.beforeFilter && data.beforeFilter[event.type] && + !data.beforeFilter[event.type](event)) ) { + selectors.push( fn.selector ); + } + } else { + delete live[j]; + } + } + + match = jQuery( event.target ).closest( selectors, event.currentTarget ); + + for ( i = 0, l = match.length; i < l; i++ ) { + for ( j in live ) { + fn = live[j]; + elem = match[i].elem; + related = null; + + if ( match[i].selector === fn.selector ) { + // Those two events require additional checking + if ( fn.live === "mouseenter" || fn.live === "mouseleave" ) { + related = jQuery( event.relatedTarget ).closest( fn.selector )[0]; + } + + if ( !related || related !== elem ) { + elems.push({ elem: elem, fn: fn }); + } + } + } + } + + for ( i = 0, l = elems.length; i < l; i++ ) { + match = elems[i]; + event.currentTarget = match.elem; + event.data = match.fn.data; + if ( match.fn.apply( match.elem, args ) === false ) { + stop = false; + break; + } + } + + return stop; +} + +function liveConvert( type, selector ) { + return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "&")].join("."); +} + +jQuery.each( ("blur focus load resize scroll unload click dblclick " + + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + + "change select submit keydown keypress keyup error").split(" "), function( i, name ) { + + // Handle event binding + jQuery.fn[ name ] = function( fn ) { + return fn ? this.bind( name, fn ) : this.trigger( name ); + }; + + if ( jQuery.fnAttr ) { + jQuery.fnAttr[ name ] = true; + } +}); + +// Prevent memory leaks in IE +// Window isn't included so as not to unbind existing unload events +// More info: +// - http://isaacschlueter.com/2006/10/msie-memory-leaks/ +if ( window.attachEvent && !window.addEventListener ) { + window.attachEvent("onunload", function() { + for ( var id in jQuery.cache ) { + if ( jQuery.cache[ id ].handle ) { + // Try/Catch is to handle iframes being unloaded, see #4280 + try { + jQuery.event.remove( jQuery.cache[ id ].handle.elem ); + } catch(e) {} + } + } + }); +} +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){ + +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, + done = 0, + toString = Object.prototype.toString, + hasDuplicate = false, + baseHasDuplicate = true; + +// Here we check if the JavaScript engine is using some sort of +// optimization where it does not always call our comparision +// function. If that is the case, discard the hasDuplicate value. +// Thus far that includes Google Chrome. +[0, 0].sort(function() { + baseHasDuplicate = false; + return 0; +}); + +var Sizzle = function( selector, context, results, seed ) { + results = results || []; + context = context || document; + + var origContext = context; + + if ( context.nodeType !== 1 && context.nodeType !== 9 ) { + return []; + } + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + var m, set, checkSet, extra, ret, cur, pop, i, + prune = true, + contextXML = Sizzle.isXML( context ), + parts = [], + soFar = selector; + + // Reset the position of the chunker regexp (start from head) + do { + chunker.exec( "" ); + m = chunker.exec( soFar ); + + if ( m ) { + soFar = m[3]; + + parts.push( m[1] ); + + if ( m[2] ) { + extra = m[3]; + break; + } + } + } while ( m ); + + if ( parts.length > 1 && origPOS.exec( selector ) ) { + + if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { + set = posProcess( parts[0] + parts[1], context ); + + } else { + set = Expr.relative[ parts[0] ] ? + [ context ] : + Sizzle( parts.shift(), context ); + + while ( parts.length ) { + selector = parts.shift(); + + if ( Expr.relative[ selector ] ) { + selector += parts.shift(); + } + + set = posProcess( selector, set ); + } + } + + } else { + // Take a shortcut and set the context if the root selector is an ID + // (but not if it'll be faster if the inner selector is an ID) + if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && + Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { + + ret = Sizzle.find( parts.shift(), context, contextXML ); + context = ret.expr ? + Sizzle.filter( ret.expr, ret.set )[0] : + ret.set[0]; + } + + if ( context ) { + ret = seed ? + { expr: parts.pop(), set: makeArray(seed) } : + Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); + + set = ret.expr ? + Sizzle.filter( ret.expr, ret.set ) : + ret.set; + + if ( parts.length > 0 ) { + checkSet = makeArray( set ); + + } else { + prune = false; + } + + while ( parts.length ) { + cur = parts.pop(); + pop = cur; + + if ( !Expr.relative[ cur ] ) { + cur = ""; + } else { + pop = parts.pop(); + } + + if ( pop == null ) { + pop = context; + } + + Expr.relative[ cur ]( checkSet, pop, contextXML ); + } + + } else { + checkSet = parts = []; + } + } + + if ( !checkSet ) { + checkSet = set; + } + + if ( !checkSet ) { + Sizzle.error( cur || selector ); + } + + if ( toString.call(checkSet) === "[object Array]" ) { + if ( !prune ) { + results.push.apply( results, checkSet ); + + } else if ( context && context.nodeType === 1 ) { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) { + results.push( set[i] ); + } + } + + } else { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && checkSet[i].nodeType === 1 ) { + results.push( set[i] ); + } + } + } + + } else { + makeArray( checkSet, results ); + } + + if ( extra ) { + Sizzle( extra, origContext, results, seed ); + Sizzle.uniqueSort( results ); + } + + return results; +}; + +Sizzle.uniqueSort = function( results ) { + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; + +Sizzle.matches = function( expr, set ) { + return Sizzle( expr, null, null, set ); +}; + +Sizzle.matchesSelector = function( node, expr ) { + return Sizzle( expr, null, null, [node] ).length > 0; +}; + +Sizzle.find = function( expr, context, isXML ) { + var set; + + if ( !expr ) { + return []; + } + + for ( var i = 0, l = Expr.order.length; i < l; i++ ) { + var match, + type = Expr.order[i]; + + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { + var left = match[1]; + match.splice( 1, 1 ); + + if ( left.substr( left.length - 1 ) !== "\\" ) { + match[1] = (match[1] || "").replace(/\\/g, ""); + set = Expr.find[ type ]( match, context, isXML ); + + if ( set != null ) { + expr = expr.replace( Expr.match[ type ], "" ); + break; + } + } + } + } + + if ( !set ) { + set = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( "*" ) : + []; + } + + return { set: set, expr: expr }; +}; + +Sizzle.filter = function( expr, set, inplace, not ) { + var match, anyFound, + old = expr, + result = [], + curLoop = set, + isXMLFilter = set && set[0] && Sizzle.isXML( set[0] ); + + while ( expr && set.length ) { + for ( var type in Expr.filter ) { + if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { + var found, item, + filter = Expr.filter[ type ], + left = match[1]; + + anyFound = false; + + match.splice(1,1); + + if ( left.substr( left.length - 1 ) === "\\" ) { + continue; + } + + if ( curLoop === result ) { + result = []; + } + + if ( Expr.preFilter[ type ] ) { + match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); + + if ( !match ) { + anyFound = found = true; + + } else if ( match === true ) { + continue; + } + } + + if ( match ) { + for ( var i = 0; (item = curLoop[i]) != null; i++ ) { + if ( item ) { + found = filter( item, match, i, curLoop ); + var pass = not ^ !!found; + + if ( inplace && found != null ) { + if ( pass ) { + anyFound = true; + + } else { + curLoop[i] = false; + } + + } else if ( pass ) { + result.push( item ); + anyFound = true; + } + } + } + } + + if ( found !== undefined ) { + if ( !inplace ) { + curLoop = result; + } + + expr = expr.replace( Expr.match[ type ], "" ); + + if ( !anyFound ) { + return []; + } + + break; + } + } + } + + // Improper expression + if ( expr === old ) { + if ( anyFound == null ) { + Sizzle.error( expr ); + + } else { + break; + } + } + + old = expr; + } + + return curLoop; +}; + +Sizzle.error = function( msg ) { + throw "Syntax error, unrecognized expression: " + msg; +}; + +var Expr = Sizzle.selectors = { + order: [ "ID", "NAME", "TAG" ], + + match: { + ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, + ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/, + TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, + CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, + POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, + PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ + }, + + leftMatch: {}, + + attrMap: { + "class": "className", + "for": "htmlFor" + }, + + attrHandle: { + href: function( elem ) { + return elem.getAttribute( "href" ); + } + }, + + relative: { + "+": function(checkSet, part){ + var isPartStr = typeof part === "string", + isTag = isPartStr && !/\W/.test( part ), + isPartStrNotTag = isPartStr && !isTag; + + if ( isTag ) { + part = part.toLowerCase(); + } + + for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { + if ( (elem = checkSet[i]) ) { + while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} + + checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? + elem || false : + elem === part; + } + } + + if ( isPartStrNotTag ) { + Sizzle.filter( part, checkSet, true ); + } + }, + + ">": function( checkSet, part ) { + var elem, + isPartStr = typeof part === "string", + i = 0, + l = checkSet.length; + + if ( isPartStr && !/\W/.test( part ) ) { + part = part.toLowerCase(); + + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + var parent = elem.parentNode; + checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; + } + } + + } else { + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + checkSet[i] = isPartStr ? + elem.parentNode : + elem.parentNode === part; + } + } + + if ( isPartStr ) { + Sizzle.filter( part, checkSet, true ); + } + } + }, + + "": function(checkSet, part, isXML){ + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !/\W/.test(part) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML ); + }, + + "~": function( checkSet, part, isXML ) { + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !/\W/.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML ); + } + }, + + find: { + ID: function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }, + + NAME: function( match, context ) { + if ( typeof context.getElementsByName !== "undefined" ) { + var ret = [], + results = context.getElementsByName( match[1] ); + + for ( var i = 0, l = results.length; i < l; i++ ) { + if ( results[i].getAttribute("name") === match[1] ) { + ret.push( results[i] ); + } + } + + return ret.length === 0 ? null : ret; + } + }, + + TAG: function( match, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( match[1] ); + } + } + }, + preFilter: { + CLASS: function( match, curLoop, inplace, result, not, isXML ) { + match = " " + match[1].replace(/\\/g, "") + " "; + + if ( isXML ) { + return match; + } + + for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { + if ( elem ) { + if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) { + if ( !inplace ) { + result.push( elem ); + } + + } else if ( inplace ) { + curLoop[i] = false; + } + } + } + + return false; + }, + + ID: function( match ) { + return match[1].replace(/\\/g, ""); + }, + + TAG: function( match, curLoop ) { + return match[1].toLowerCase(); + }, + + CHILD: function( match ) { + if ( match[1] === "nth" ) { + if ( !match[2] ) { + Sizzle.error( match[0] ); + } + + match[2] = match[2].replace(/^\+|\s*/g, ''); + + // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' + var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec( + match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || + !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); + + // calculate the numbers (first)n+(last) including if they are negative + match[2] = (test[1] + (test[2] || 1)) - 0; + match[3] = test[3] - 0; + } + else if ( match[2] ) { + Sizzle.error( match[0] ); + } + + // TODO: Move to normal caching system + match[0] = done++; + + return match; + }, + + ATTR: function( match, curLoop, inplace, result, not, isXML ) { + var name = match[1].replace(/\\/g, ""); + + if ( !isXML && Expr.attrMap[name] ) { + match[1] = Expr.attrMap[name]; + } + + // Handle if an un-quoted value was used + match[4] = match[4] || match[5] || ""; + + if ( match[2] === "~=" ) { + match[4] = " " + match[4] + " "; + } + + return match; + }, + + PSEUDO: function( match, curLoop, inplace, result, not ) { + if ( match[1] === "not" ) { + // If we're dealing with a complex expression, or a simple one + if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { + match[3] = Sizzle(match[3], null, null, curLoop); + + } else { + var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); + + if ( !inplace ) { + result.push.apply( result, ret ); + } + + return false; + } + + } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { + return true; + } + + return match; + }, + + POS: function( match ) { + match.unshift( true ); + + return match; + } + }, + + filters: { + enabled: function( elem ) { + return elem.disabled === false && elem.type !== "hidden"; + }, + + disabled: function( elem ) { + return elem.disabled === true; + }, + + checked: function( elem ) { + return elem.checked === true; + }, + + selected: function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + elem.parentNode.selectedIndex; + + return elem.selected === true; + }, + + parent: function( elem ) { + return !!elem.firstChild; + }, + + empty: function( elem ) { + return !elem.firstChild; + }, + + has: function( elem, i, match ) { + return !!Sizzle( match[3], elem ).length; + }, + + header: function( elem ) { + return (/h\d/i).test( elem.nodeName ); + }, + + text: function( elem ) { + return "text" === elem.type; + }, + radio: function( elem ) { + return "radio" === elem.type; + }, + + checkbox: function( elem ) { + return "checkbox" === elem.type; + }, + + file: function( elem ) { + return "file" === elem.type; + }, + password: function( elem ) { + return "password" === elem.type; + }, + + submit: function( elem ) { + return "submit" === elem.type; + }, + + image: function( elem ) { + return "image" === elem.type; + }, + + reset: function( elem ) { + return "reset" === elem.type; + }, + + button: function( elem ) { + return "button" === elem.type || elem.nodeName.toLowerCase() === "button"; + }, + + input: function( elem ) { + return (/input|select|textarea|button/i).test( elem.nodeName ); + } + }, + setFilters: { + first: function( elem, i ) { + return i === 0; + }, + + last: function( elem, i, match, array ) { + return i === array.length - 1; + }, + + even: function( elem, i ) { + return i % 2 === 0; + }, + + odd: function( elem, i ) { + return i % 2 === 1; + }, + + lt: function( elem, i, match ) { + return i < match[3] - 0; + }, + + gt: function( elem, i, match ) { + return i > match[3] - 0; + }, + + nth: function( elem, i, match ) { + return match[3] - 0 === i; + }, + + eq: function( elem, i, match ) { + return match[3] - 0 === i; + } + }, + filter: { + PSEUDO: function( elem, match, i, array ) { + var name = match[1], + filter = Expr.filters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + + } else if ( name === "contains" ) { + return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0; + + } else if ( name === "not" ) { + var not = match[3]; + + for ( var j = 0, l = not.length; j < l; j++ ) { + if ( not[j] === elem ) { + return false; + } + } + + return true; + + } else { + Sizzle.error( name ); + } + }, + + CHILD: function( elem, match ) { + var type = match[1], + node = elem; + + switch ( type ) { + case "only": + case "first": + while ( (node = node.previousSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + if ( type === "first" ) { + return true; + } + + node = elem; + + case "last": + while ( (node = node.nextSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + return true; + + case "nth": + var first = match[2], + last = match[3]; + + if ( first === 1 && last === 0 ) { + return true; + } + + var doneName = match[0], + parent = elem.parentNode; + + if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { + var count = 0; + + for ( node = parent.firstChild; node; node = node.nextSibling ) { + if ( node.nodeType === 1 ) { + node.nodeIndex = ++count; + } + } + + parent.sizcache = doneName; + } + + var diff = elem.nodeIndex - last; + + if ( first === 0 ) { + return diff === 0; + + } else { + return ( diff % first === 0 && diff / first >= 0 ); + } + } + }, + + ID: function( elem, match ) { + return elem.nodeType === 1 && elem.getAttribute("id") === match; + }, + + TAG: function( elem, match ) { + return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match; + }, + + CLASS: function( elem, match ) { + return (" " + (elem.className || elem.getAttribute("class")) + " ") + .indexOf( match ) > -1; + }, + + ATTR: function( elem, match ) { + var name = match[1], + result = Expr.attrHandle[ name ] ? + Expr.attrHandle[ name ]( elem ) : + elem[ name ] != null ? + elem[ name ] : + elem.getAttribute( name ), + value = result + "", + type = match[2], + check = match[4]; + + return result == null ? + type === "!=" : + type === "=" ? + value === check : + type === "*=" ? + value.indexOf(check) >= 0 : + type === "~=" ? + (" " + value + " ").indexOf(check) >= 0 : + !check ? + value && result !== false : + type === "!=" ? + value !== check : + type === "^=" ? + value.indexOf(check) === 0 : + type === "$=" ? + value.substr(value.length - check.length) === check : + type === "|=" ? + value === check || value.substr(0, check.length + 1) === check + "-" : + false; + }, + + POS: function( elem, match, i, array ) { + var name = match[2], + filter = Expr.setFilters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + } + } + } +}; + +var origPOS = Expr.match.POS, + fescape = function(all, num){ + return "\\" + (num - 0 + 1); + }; + +for ( var type in Expr.match ) { + Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); + Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) ); +} + +var makeArray = function( array, results ) { + array = Array.prototype.slice.call( array, 0 ); + + if ( results ) { + results.push.apply( results, array ); + return results; + } + + return array; +}; + +// Perform a simple check to determine if the browser is capable of +// converting a NodeList to an array using builtin methods. +// Also verifies that the returned array holds DOM nodes +// (which is not the case in the Blackberry browser) +try { + Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType; + +// Provide a fallback method if it does not work +} catch( e ) { + makeArray = function( array, results ) { + var i = 0, + ret = results || []; + + if ( toString.call(array) === "[object Array]" ) { + Array.prototype.push.apply( ret, array ); + + } else { + if ( typeof array.length === "number" ) { + for ( var l = array.length; i < l; i++ ) { + ret.push( array[i] ); + } + + } else { + for ( ; array[i]; i++ ) { + ret.push( array[i] ); + } + } + } + + return ret; + }; +} + +var sortOrder, siblingCheck; + +if ( document.documentElement.compareDocumentPosition ) { + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { + return a.compareDocumentPosition ? -1 : 1; + } + + return a.compareDocumentPosition(b) & 4 ? -1 : 1; + }; + +} else { + sortOrder = function( a, b ) { + var al, bl, + ap = [], + bp = [], + aup = a.parentNode, + bup = b.parentNode, + cur = aup; + + // The nodes are identical, we can exit early + if ( a === b ) { + hasDuplicate = true; + return 0; + + // If the nodes are siblings (or identical) we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + + // If no parents were found then the nodes are disconnected + } else if ( !aup ) { + return -1; + + } else if ( !bup ) { + return 1; + } + + // Otherwise they're somewhere else in the tree so we need + // to build up a full list of the parentNodes for comparison + while ( cur ) { + ap.unshift( cur ); + cur = cur.parentNode; + } + + cur = bup; + + while ( cur ) { + bp.unshift( cur ); + cur = cur.parentNode; + } + + al = ap.length; + bl = bp.length; + + // Start walking down the tree looking for a discrepancy + for ( var i = 0; i < al && i < bl; i++ ) { + if ( ap[i] !== bp[i] ) { + return siblingCheck( ap[i], bp[i] ); + } + } + + // We ended someplace up the tree so do a sibling check + return i === al ? + siblingCheck( a, bp[i], -1 ) : + siblingCheck( ap[i], b, 1 ); + }; + + siblingCheck = function( a, b, ret ) { + if ( a === b ) { + return ret; + } + + var cur = a.nextSibling; + + while ( cur ) { + if ( cur === b ) { + return -1; + } + + cur = cur.nextSibling; + } + + return 1; + }; +} + +// Utility function for retreiving the text value of an array of DOM nodes +Sizzle.getText = function( elems ) { + var ret = "", elem; + + for ( var i = 0; elems[i]; i++ ) { + elem = elems[i]; + + // Get the text from text nodes and CDATA nodes + if ( elem.nodeType === 3 || elem.nodeType === 4 ) { + ret += elem.nodeValue; + + // Traverse everything else, except comment nodes + } else if ( elem.nodeType !== 8 ) { + ret += Sizzle.getText( elem.childNodes ); + } + } + + return ret; +}; + +// Check to see if the browser returns elements by name when +// querying by getElementById (and provide a workaround) +(function(){ + // We're going to inject a fake input element with a specified name + var form = document.createElement("div"), + id = "script" + (new Date()).getTime(), + root = document.documentElement; + + form.innerHTML = ""; + + // Inject it into the root element, check its status, and remove it quickly + root.insertBefore( form, root.firstChild ); + + // The workaround has to do additional checks after a getElementById + // Which slows things down for other browsers (hence the branching) + if ( document.getElementById( id ) ) { + Expr.find.ID = function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + + return m ? + m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? + [m] : + undefined : + []; + } + }; + + Expr.filter.ID = function( elem, match ) { + var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); + + return elem.nodeType === 1 && node && node.nodeValue === match; + }; + } + + root.removeChild( form ); + + // release memory in IE + root = form = null; +})(); + +(function(){ + // Check to see if the browser returns only elements + // when doing getElementsByTagName("*") + + // Create a fake element + var div = document.createElement("div"); + div.appendChild( document.createComment("") ); + + // Make sure no comments are found + if ( div.getElementsByTagName("*").length > 0 ) { + Expr.find.TAG = function( match, context ) { + var results = context.getElementsByTagName( match[1] ); + + // Filter out possible comments + if ( match[1] === "*" ) { + var tmp = []; + + for ( var i = 0; results[i]; i++ ) { + if ( results[i].nodeType === 1 ) { + tmp.push( results[i] ); + } + } + + results = tmp; + } + + return results; + }; + } + + // Check to see if an attribute returns normalized href attributes + div.innerHTML = ""; + + if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && + div.firstChild.getAttribute("href") !== "#" ) { + + Expr.attrHandle.href = function( elem ) { + return elem.getAttribute( "href", 2 ); + }; + } + + // release memory in IE + div = null; +})(); + +if ( document.querySelectorAll ) { + (function(){ + var oldSizzle = Sizzle, + div = document.createElement("div"), + id = "__sizzle__"; + + div.innerHTML = "

"; + + // Safari can't handle uppercase or unicode characters when + // in quirks mode. + if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { + return; + } + + Sizzle = function( query, context, extra, seed ) { + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + context.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; + + for ( var prop in oldSizzle ) { + Sizzle[ prop ] = oldSizzle[ prop ]; + } + + // release memory in IE + div = null; + })(); +} + +(function(){ + var html = document.documentElement, + matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector, + pseudoWorks = false; + + try { + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( document.documentElement, "[test!='']:sizzle" ); + + } catch( pseudoError ) { + pseudoWorks = true; + } + + if ( matches ) { + Sizzle.matchesSelector = function( node, expr ) { + // Make sure that attribute selectors are quoted + expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); + + if ( !Sizzle.isXML( node ) ) { + try { + if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) { + return matches.call( node, expr ); + } + } catch(e) {} + } + + return Sizzle(expr, null, null, [node]).length > 0; + }; + } +})(); + +(function(){ + var div = document.createElement("div"); + + div.innerHTML = "
"; + + // Opera can't find a second classname (in 9.6) + // Also, make sure that getElementsByClassName actually exists + if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { + return; + } + + // Safari caches class attributes, doesn't catch changes (in 3.2) + div.lastChild.className = "e"; + + if ( div.getElementsByClassName("e").length === 1 ) { + return; + } + + Expr.order.splice(1, 0, "CLASS"); + Expr.find.CLASS = function( match, context, isXML ) { + if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { + return context.getElementsByClassName(match[1]); + } + }; + + // release memory in IE + div = null; +})(); + +function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 && !isXML ){ + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( elem.nodeName.toLowerCase() === cur ) { + match = elem; + break; + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 ) { + if ( !isXML ) { + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( typeof cur !== "string" ) { + if ( elem === cur ) { + match = true; + break; + } + + } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { + match = elem; + break; + } + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +if ( document.documentElement.contains ) { + Sizzle.contains = function( a, b ) { + return a !== b && (a.contains ? a.contains(b) : true); + }; + +} else if ( document.documentElement.compareDocumentPosition ) { + Sizzle.contains = function( a, b ) { + return !!(a.compareDocumentPosition(b) & 16); + }; + +} else { + Sizzle.contains = function() { + return false; + }; +} + +Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +var posProcess = function( selector, context ) { + var match, + tmpSet = [], + later = "", + root = context.nodeType ? [context] : context; + + // Position selectors must be done after the filter + // And so must :not(positional) so we move all PSEUDOs to the end + while ( (match = Expr.match.PSEUDO.exec( selector )) ) { + later += match[0]; + selector = selector.replace( Expr.match.PSEUDO, "" ); + } + + selector = Expr.relative[selector] ? selector + "*" : selector; + + for ( var i = 0, l = root.length; i < l; i++ ) { + Sizzle( selector, root[i], tmpSet ); + } + + return Sizzle.filter( later, tmpSet ); +}; + +// EXPOSE +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.filters; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})(); +var runtil = /Until$/, + rparentsprev = /^(?:parents|prevUntil|prevAll)/, + // Note: This RegExp should be improved, or likely pulled from Sizzle + rmultiselector = /,/, + slice = Array.prototype.slice; + +// Implement the identical functionality for filter and not +var winnow = function( elements, qualifier, keep ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep(elements, function( elem, i ) { + return !!qualifier.call( elem, i, elem ) === keep; + }); + + } else if ( qualifier.nodeType ) { + return jQuery.grep(elements, function( elem, i ) { + return (elem === qualifier) === keep; + }); + + } else if ( typeof qualifier === "string" ) { + var filtered = jQuery.grep(elements, function( elem ) { + return elem.nodeType === 1; + }); + + if ( isSimple.test( qualifier ) ) { + return jQuery.filter(qualifier, filtered, !keep); + } else { + qualifier = jQuery.filter( qualifier, elements ); + } + } + + return jQuery.grep(elements, function( elem, i ) { + return (jQuery.inArray( elem, qualifier ) >= 0) === keep; + }); +}; + +jQuery.fn.extend({ + find: function( selector ) { + var ret = this.pushStack( "", "find", selector ), length = 0; + + for ( var i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( var n = length; n < ret.length; n++ ) { + for ( var r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }, + + has: function( target ) { + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector, false), "not", selector); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }, + + is: function( selector ) { + return !!selector && jQuery.filter( selector, this ).length > 0; + }, + + closest: function( selectors, context ) { + if ( jQuery.isArray( selectors ) ) { + var ret = [], cur = this[0], match, matches = {}, selector; + + if ( cur && selectors.length ) { + for ( var i = 0, l = selectors.length; i < l; i++ ) { + selector = selectors[i]; + + if ( !matches[selector] ) { + matches[selector] = jQuery.expr.match.POS.test( selector ) ? + jQuery( selector, context || this.context ) : + selector; + } + } + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( selector in matches ) { + match = matches[selector]; + + if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) { + ret.push({ selector: selector, elem: cur }); + delete matches[selector]; + } + } + cur = cur.parentNode; + } + } + + return ret; + } + + var pos = jQuery.expr.match.POS.test( selectors ) ? + jQuery( selectors, context || this.context ) : null; + + return this.map(function( i, cur ) { + while ( cur && cur.ownerDocument && cur !== context ) { + if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) { + return cur; + } + cur = cur.parentNode; + } + return null; + }); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + if ( !elem || typeof elem === "string" ) { + return jQuery.inArray( this[0], + // If it receives a string, the selector is used + // If it receives nothing, the siblings are used + elem ? jQuery( elem ) : this.parent().children() ); + } + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context || this.context ) : + jQuery.makeArray( selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( set[0] && (set[0].setInterval || set[0].nodeType === 9 || (set[0].parentNode && set[0].parentNode.nodeType !== 11)) ? + jQuery.unique( all ) : + all ); + }, + + andSelf: function() { + return this.add( this.prevObject ); + } +}); + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return jQuery.nth( elem, 2, "nextSibling" ); + }, + prev: function( elem ) { + return jQuery.nth( elem, 2, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( elem.parentNode.firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.makeArray( elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, slice.call(arguments).join(",") ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return jQuery.find.matches(expr, elems); + }, + + dir: function( elem, dir, until ) { + var matched = [], cur = elem[dir]; + while ( cur && cur.nodeType !== 9 && (until === undefined || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + nth: function( cur, result, dir, elem ) { + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); +var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g, + rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, + rtagName = /<([\w:]+)/, + rtbody = /"; + }, + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
", "
" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + col: [ 2, "", "
" ], + area: [ 1, "", "" ], + _default: [ 0, "", "" ] + }; + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// IE can't serialize and