From ea42656c1ff08c4f326e6869dab2f8566cdecf1b Mon Sep 17 00:00:00 2001 From: Anderson Zorrer Dalmina Date: Wed, 29 Aug 2018 11:40:59 -0300 Subject: [PATCH 1/3] Install Jivochat script --- dist/CNAME | 1 - dist/README.md | 62 - dist/about.html | 7 + dist/assets/scripts/main.js | 20695 ++++++++++++++++++++++++++- dist/assets/styles/main.css | 20453 +++++++++++++++++++++++++- dist/components/footer.html | 102 + dist/components/header.html | 101 + dist/contact.html | 7 + dist/crossdomain.xml | 25 - dist/humans.txt | 30 - dist/index.html | 7 + src/templates/layouts/default.html | 7 + 12 files changed, 41350 insertions(+), 147 deletions(-) delete mode 100755 dist/CNAME delete mode 100644 dist/README.md create mode 100644 dist/components/footer.html create mode 100644 dist/components/header.html delete mode 100755 dist/crossdomain.xml delete mode 100644 dist/humans.txt diff --git a/dist/CNAME b/dist/CNAME deleted file mode 100755 index 3c55b23..0000000 --- a/dist/CNAME +++ /dev/null @@ -1 +0,0 @@ -coderockr.com diff --git a/dist/README.md b/dist/README.md deleted file mode 100644 index cc94344..0000000 --- a/dist/README.md +++ /dev/null @@ -1,62 +0,0 @@ -coderockr -==================== - -## Setup -### Requirements - -Node `"^8.2.1"` (use nvm [here](https://github.com/creationix/nvm)) - -Yarn `"^1.3.2"` (install [here](https://yarnpkg.com)) - -### Structure folder - -``` -coderockr -├── .babelrc -├── .eslintignore -├── .eslintrc -├── .gitignore -├── CNAME -├── crossdomain.xml -├── gh-pages.sh -├── gulpfile.js -├── humans.txt -├── package.json -├── README.md -├── robots.txt -├── webpack.config.js -├── dist -└── src - └── assets - │ └── fonts - │ └── images - │ └── scripts - │ └── styles - └── templates - └── components - └── layouts - └── page.html -``` - -### Install dependencies - -```bash -yarn -``` - -### Run - -```bash -yarn start -``` - -### Build - -```bash -./build.sh -``` - -### Deploy to Github Pages (https://github.com/Coderockr/coderockr.github.com) -```bash -./deploy.sh -``` diff --git a/dist/about.html b/dist/about.html index 91a3865..91fb75b 100644 --- a/dist/about.html +++ b/dist/about.html @@ -670,5 +670,12 @@

VOCÊ

+ + + + diff --git a/dist/assets/scripts/main.js b/dist/assets/scripts/main.js index 5b146ff..1ca570d 100644 --- a/dist/assets/scripts/main.js +++ b/dist/assets/scripts/main.js @@ -1,4 +1,465 @@ -!function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var i=n(2),o=s(i);n(3);var r=n(4),a=(s(r),n(8)),l=s(a),c=n(7),u=s(c);n(6),n(5);var d=n(9),p=s(d),f={init:function(){var e=(0,o.default)(".wrap").attr("id");switch(e){case"home":f.initVideo(),f.initTestimonials();break;case"contact":f.initForm(),f.initMap()}},common:function(){!function(e,t,n,s,i,o,r){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,o=t.createElement(n),r=t.getElementsByTagName(n)[0],o.async=1,o.src=s,r.parentNode.insertBefore(o,r)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-584603-6","auto"),ga("send","pageview"),o.default.easing.jswing=o.default.easing.swing,o.default.extend(o.default.easing,{def:"easeOutQuad",easeInOutExpo:function(e,t,n,s,i){return 0==t?n:t==i?n+s:(t/=i/2)<1?s/2*Math.pow(2,10*(t-1))+n:s/2*(-Math.pow(2,-10*--t)+2)+n}}),(0,o.default)("*[data-autoscroll]").click(function(){var e=(0,o.default)(this.hash);if(e=e.length?e:(0,o.default)("[name="+this.hash.slice(1)+"]"),e.length)return(0,o.default)("html,body").animate({scrollTop:e.offset().top},1500,"easeInOutExpo"),!1}),(0,o.default)(".menu-trigger").on("click",function(e){e.preventDefault(),(0,o.default)("#main-content").addClass("move-out"),(0,o.default)("#menu-mobile").addClass("is-visible"),(0,o.default)(".shadow-layer").addClass("is-visible")}),(0,o.default)(".close-menu").on("click",function(e){e.preventDefault(),(0,o.default)("#main-content").removeClass("move-out"),(0,o.default)("#menu-mobile").removeClass("is-visible"),(0,o.default)(".shadow-layer").removeClass("is-visible")}),(0,o.default)("#menu-mobile a").on("click",function(e){(0,o.default)(".close-menu").click()})},initTestimonials:function(){function e(e){var t=(0,o.default)(e.activeFrame.html).find("header").height()+29;(0,o.default)(".fotorama__nav").css("top",t+"px")}function t(t){var n=(0,o.default)(t.activeFrame.html).height();t.resize({height:n}),e(t)}var n=(0,o.default)(".fotorama").fotorama({autoplay:!1,shadows:!1,width:"100%",arrows:"always",height:(0,o.default)(".testimonial").height(),keyboard:!0,loop:!0,click:!0,preload:3}),s=n.data("fotorama");e(s),(0,o.default)(window).resize(function(){t(s)}),(0,o.default)(".fotorama").on("fotorama:showend ",function(e,n,s){t(n)}),(0,o.default)(".fotorama").on("fotorama:show ",function(t,n,s){e(n)})},initVideo:function(){var e=l.default.setup();e[0].source({type:"video",title:"Example title",poster:"assets/images/video-cover.jpg",sources:[{src:"assets/images/video.mp4",type:"video/mp4"}]})},initForm:function(){(0,o.default)("[name='phone']").mask("99 9999-9999?9",{placeholder:" "}).focusout(function(e){var t,n,s;t=e.currentTarget?e.currentTarget:e.srcElement,n=t.value.replace(/\D/g,""),s=(0,o.default)(t),s.unmask(),n.length>10?s.mask("99 99999-999?9"):s.mask("99 9999-9999?9")});var e=document.getElementById("deadline");u.default.create(e,{start:[6],connect:[!0,!1],step:1,range:{min:[1],max:[13]}}),e.noUiSlider.on("update",function(e,t){var n="1.00"==e[t]?" Mês":" Meses",s=e[t].replace(".00",n).replace("13 Meses","12+ Meses");(0,o.default)(".deadline label").html(s)});var t=document.getElementById("budget");u.default.create(t,{start:[30,60],connect:!0,step:1,range:{min:[0],"60%":[100,100],"62.5%":[125,125],"65%":[150,150],"67.5%":[175,175],"70%":[200,200],"72.5%":[225,225],"75%":[250,250],"77.5%":[275,275],"80%":[300,300],"82.5%":[325,325],"85%":[350,350],"87.5%":[375,375],"90%":[400,400],"92.5%":[425,425],"95%":[450,450],"97.5%":[475,475],max:[500]}}),t.noUiSlider.on("change",function(e,n){e[n]<30&&t.noUiSlider.set(30)}),t.noUiSlider.on("update",function(e,t){var n=e[0].replace(".00",""),s=e[1].replace(".00",""),i="R$ ";"500"==n?i="Acima de 500K":i+=n+"K a "+s+"K",(0,o.default)(".budget label").html(i)});(0,o.default)("[name=contactForm]").validate({errorPlacement:function(e,t){},rules:{name:"required",email:{required:!0,email:!0},phone:"required","needs[]":"required",features:"required"},submitHandler:function(e,t){var n,s=[],i={success:{type:"success",title:"Recebemos suas informações!",text:"Em breve entraremos em contato."},error:{type:"error",title:"Não foi possível processar suas informações :(",text:"Por favor, tente novamente."}};(0,o.default)("[name='needs[]']:checked").each(function(e){s[e]=(0,o.default)(this).next().html()}),n=o.default.ajax({type:"POST",dataType:"json",url:"https://e5kp5ek8ni.execute-api.us-east-1.amazonaws.com/prod/contato",contentType:"application/json",data:JSON.stringify({name:(0,o.default)("[name=name]").val(),email:(0,o.default)("[name=email]").val(),company:(0,o.default)("[name=company]").val(),phone:(0,o.default)("[name=phone]").val(),phase:(0,o.default)("[name=phase]:checked").next().html(),needs:s.join(", "),features_description:(0,o.default)("[name=features]").val(),deadline:(0,o.default)(".deadline .slider label").html(),budget:(0,o.default)(".budget .slider label").html(),description:(0,o.default)("[name=details]").val()}),success:function(e){e?f.sweetAlert(i.success):f.sweetAlert(i.error)},error:function(e,t,n){f.sweetAlert(i.error)}})}})},sweetAlert:function(e){(0,p.default)({type:e.type,title:e.title,html:e.text,showCloseButton:!0}).catch(p.default.noop)},initMap:function(){var e=new google.maps.Map(document.getElementById("map"),{zoom:16,center:new google.maps.LatLng(-26.3009,-48.8463),zoomControl:!1,disableDoubleClickZoom:!0,mapTypeControl:!1,scaleControl:!1,scrollwheel:!1,panControl:!0,streetViewControl:!1,overviewMapControl:!0,mapTypeId:"roadmap",styles:[{elementType:"labels.text.fill",featureType:"administrative",stylers:[{color:"#444444"}]},{featureType:"landscape",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape.man_made",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"simplified"}]},{elementType:"labels",featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{saturation:-100},{lightness:45}]},{elementType:"labels.icon",featureType:"road.arterial",stylers:[{visibility:"off"}]},{featureType:"road.highway",stylers:[{visibility:"simplified"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#46bcec"},{visibility:"on"}]}]});!function(){new google.maps.Marker({position:new google.maps.LatLng(-26.3012,-48.8508),icon:"../assets/images/pin.svg",map:e})}()}};(0,o.default)(document).ready(function(e){f.init(),f.common()})},function(e,t,n){var s,i;/*! +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; +/******/ +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + var _globals = __webpack_require__(2); + + var _globals2 = _interopRequireDefault(_globals); + + __webpack_require__(3); + + var _fotorama = __webpack_require__(4); + + var _fotorama2 = _interopRequireDefault(_fotorama); + + var _plyr = __webpack_require__(8); + + var _plyr2 = _interopRequireDefault(_plyr); + + var _nouislider = __webpack_require__(7); + + var _nouislider2 = _interopRequireDefault(_nouislider); + + __webpack_require__(6); + + __webpack_require__(5); + + var _sweetalert = __webpack_require__(9); + + var _sweetalert2 = _interopRequireDefault(_sweetalert); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + 'use strict'; + + var Main = { + init: function init() { + + var page = (0, _globals2.default)('.wrap').attr('id'); + switch (page) { + case 'home': + Main.initVideo(); + Main.initTestimonials(); + break; + case 'contact': + Main.initForm(); + Main.initMap(); + break; + } + }, + + common: function common() { + (function (i, s, o, g, r, a, m) { + i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () { + (i[r].q = i[r].q || []).push(arguments); + }, i[r].l = 1 * new Date();a = s.createElement(o), m = s.getElementsByTagName(o)[0];a.async = 1;a.src = g;m.parentNode.insertBefore(a, m); + })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); + + ga('create', 'UA-584603-6', 'auto'); + ga('send', 'pageview'); + + // easeOutQuad + _globals2.default.easing['jswing'] = _globals2.default.easing['swing']; + + _globals2.default.extend(_globals2.default.easing, { + def: 'easeOutQuad', + easeInOutExpo: function easeInOutExpo(x, t, b, c, d) { + if (t == 0) return b; + if (t == d) return b + c; + if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; + return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b; + } + }); + + // autoscroll + (0, _globals2.default)('*[data-autoscroll]').click(function () { + var target = (0, _globals2.default)(this.hash); + + target = target.length ? target : (0, _globals2.default)('[name=' + this.hash.slice(1) + ']'); + + if (target.length) { + (0, _globals2.default)('html,body').animate({ scrollTop: target.offset().top }, 1500, 'easeInOutExpo'); + return false; + } + }); + + // open mobile menu + (0, _globals2.default)('.menu-trigger').on('click', function (event) { + event.preventDefault(); + (0, _globals2.default)('#main-content').addClass('move-out'); + (0, _globals2.default)('#menu-mobile').addClass('is-visible'); + (0, _globals2.default)('.shadow-layer').addClass('is-visible'); + }); + + // close mobile menu + (0, _globals2.default)('.close-menu').on('click', function (event) { + event.preventDefault(); + (0, _globals2.default)('#main-content').removeClass('move-out'); + (0, _globals2.default)('#menu-mobile').removeClass('is-visible'); + (0, _globals2.default)('.shadow-layer').removeClass('is-visible'); + }); + + (0, _globals2.default)('#menu-mobile a').on('click', function (event) { + (0, _globals2.default)('.close-menu').click(); + }); + }, + + initTestimonials: function initTestimonials() { + var $fotoramaDiv = (0, _globals2.default)('.fotorama').fotorama({ + autoplay: false, + shadows: false, + width: '100%', + arrows: 'always', + height: (0, _globals2.default)('.testimonial').height(), + keyboard: true, + loop: true, + click: true, + preload: 3 + }); + + var fotorama = $fotoramaDiv.data('fotorama'); + + function positioningFotoramaNav(fotorama) { + var margin = (0, _globals2.default)(fotorama.activeFrame.html).find('header').height() + 29; + (0, _globals2.default)('.fotorama__nav').css('top', margin + 'px'); + } + + function resizeFotorama(fotorama) { + var newHeight = (0, _globals2.default)(fotorama.activeFrame.html).height(); + fotorama.resize({ height: newHeight }); + positioningFotoramaNav(fotorama); + } + + positioningFotoramaNav(fotorama); + + (0, _globals2.default)(window).resize(function () { + resizeFotorama(fotorama); + }); + + (0, _globals2.default)('.fotorama').on('fotorama:showend ', function (e, fotorama, extra) { + resizeFotorama(fotorama); + }); + + (0, _globals2.default)('.fotorama').on('fotorama:show ', function (e, fotorama, extra) { + positioningFotoramaNav(fotorama); + }); + }, + + initVideo: function initVideo() { + var player = _plyr2.default.setup(); + + player[0].source({ + type: 'video', + title: 'Example title', + poster: 'assets/images/video-cover.jpg', + sources: [{ + src: 'assets/images/video.mp4', + type: 'video/mp4' + }] + }); + }, + + initForm: function initForm() { + (0, _globals2.default)('[name=\'phone\']').mask('99 9999-9999?9', { placeholder: ' ' }).focusout(function (event) { + var target, phone, element; + target = event.currentTarget ? event.currentTarget : event.srcElement; + phone = target.value.replace(/\D/g, ''); + element = (0, _globals2.default)(target); + element.unmask(); + if (phone.length > 10) { + element.mask('99 99999-999?9'); + } else { + element.mask('99 9999-9999?9'); + } + }); + + var deadline = document.getElementById('deadline'); + + _nouislider2.default.create(deadline, { + start: [6], + connect: [true, false], + step: 1, + range: { + 'min': [1], + 'max': [13] + } + }); + + deadline.noUiSlider.on('update', function (values, handle) { + var sufix = values[handle] == '1.00' ? ' Mês' : ' Meses', + months = values[handle].replace('.00', sufix).replace('13 Meses', '12+ Meses'); + + (0, _globals2.default)('.deadline label').html(months); + }); + + var budget = document.getElementById('budget'); + + _nouislider2.default.create(budget, { + start: [30, 60], + connect: true, + step: 1, + range: { + 'min': [0], + '60%': [100, 100], + '62.5%': [125, 125], + '65%': [150, 150], + '67.5%': [175, 175], + '70%': [200, 200], + '72.5%': [225, 225], + '75%': [250, 250], + '77.5%': [275, 275], + '80%': [300, 300], + '82.5%': [325, 325], + '85%': [350, 350], + '87.5%': [375, 375], + '90%': [400, 400], + '92.5%': [425, 425], + '95%': [450, 450], + '97.5%': [475, 475], + 'max': [500] + } + }); + + budget.noUiSlider.on('change', function (values, handle) { + if (values[handle] < 30) { + budget.noUiSlider.set(30); + } + }); + + budget.noUiSlider.on('update', function (values, handle) { + var start = values[0].replace('.00', ''), + end = values[1].replace('.00', ''), + label = 'R$ '; + + if (start == '500') { + label = 'Acima de 500K'; + } else { + label += start + 'K a ' + end + 'K'; + } + + (0, _globals2.default)('.budget label').html(label); + }); + + var validator = (0, _globals2.default)('[name=contactForm]').validate({ + errorPlacement: function errorPlacement(error, element) {}, + 'rules': { + 'name': 'required', + 'email': { + 'required': true, + 'email': true + }, + 'phone': 'required', + 'needs[]': 'required', + 'features': 'required' + }, + submitHandler: function submitHandler(form, event) { + var needs = [], + xhrRunning, + message = { + success: { + type: 'success', + title: 'Recebemos suas informações!', + text: 'Em breve entraremos em contato.' + }, + error: { + type: 'error', + title: 'Não foi possível processar suas informações :(', + text: 'Por favor, tente novamente.' + } + }; + + (0, _globals2.default)('[name=\'needs[]\']:checked').each(function (i) { + needs[i] = (0, _globals2.default)(this).next().html(); + }); + + xhrRunning = _globals2.default.ajax({ + type: 'POST', + dataType: 'json', + url: 'https://e5kp5ek8ni.execute-api.us-east-1.amazonaws.com/prod/contato', + contentType: 'application/json', + data: JSON.stringify({ + name: (0, _globals2.default)('[name=name]').val(), + email: (0, _globals2.default)('[name=email]').val(), + company: (0, _globals2.default)('[name=company]').val(), + phone: (0, _globals2.default)('[name=phone]').val(), + phase: (0, _globals2.default)('[name=phase]:checked').next().html(), + needs: needs.join(', '), + features_description: (0, _globals2.default)('[name=features]').val(), + deadline: (0, _globals2.default)('.deadline .slider label').html(), + budget: (0, _globals2.default)('.budget .slider label').html(), + description: (0, _globals2.default)('[name=details]').val() + }), + success: function success(data) { + if (data) { + Main.sweetAlert(message.success); + } else { + Main.sweetAlert(message.error); + } + }, + error: function error(xhr, textStatus, thrownError) { + Main.sweetAlert(message.error); + } + }); + } + }); + }, + + sweetAlert: function sweetAlert(alert) { + (0, _sweetalert2.default)({ + 'type': alert.type, + 'title': alert.title, + 'html': alert.text, + showCloseButton: true + }).catch(_sweetalert2.default.noop); + }, + + initMap: function initMap() { + var map = new google.maps.Map(document.getElementById('map'), { + zoom: 16, + center: new google.maps.LatLng(-26.3009, -48.8463), + zoomControl: false, + disableDoubleClickZoom: true, + mapTypeControl: false, + scaleControl: false, + scrollwheel: false, + panControl: true, + streetViewControl: false, + overviewMapControl: true, + mapTypeId: 'roadmap', + styles: [{ + 'elementType': 'labels.text.fill', + 'featureType': 'administrative', + 'stylers': [{ + 'color': '#444444' + }] + }, { + 'featureType': 'landscape', + 'stylers': [{ + 'color': '#f2f2f2' + }] + }, { + 'featureType': 'landscape.man_made', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'poi', + 'stylers': [{ + 'visibility': 'simplified' + }] + }, { + 'elementType': 'labels', + 'featureType': 'poi', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'poi.attraction', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'poi.business', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'road', + 'stylers': [{ + 'saturation': -100 + }, { + 'lightness': 45 + }] + }, { + 'elementType': 'labels.icon', + 'featureType': 'road.arterial', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'road.highway', + 'stylers': [{ + 'visibility': 'simplified' + }] + }, { + 'featureType': 'transit', + 'stylers': [{ + 'visibility': 'off' + }] + }, { + 'featureType': 'water', + 'stylers': [{ + 'color': '#46bcec' + }, { + 'visibility': 'on' + }] + }] + }); + + (function () { + var marker = new google.maps.Marker({ + position: new google.maps.LatLng(-26.3012, -48.8508), + icon: '../assets/images/pin.svg', + map: map + }); + })(); + } + }; + + (0, _globals2.default)(document).ready(function ($) { + Main.init(); + Main.common(); + }); + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery JavaScript Library v3.2.1 * https://jquery.com/ * @@ -11,7 +472,532 @@ * * Date: 2017-03-20T18:59Z */ -!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";function r(e,t){t=t||re;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function a(e){var t=!!e&&"length"in e&&e.length,n=ye.type(e);return"function"!==n&&!ye.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function c(e,t,n){return ye.isFunction(t)?ye.grep(e,function(e,s){return!!t.call(e,s,e)!==n}):t.nodeType?ye.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ye.grep(e,function(e){return de.call(t,e)>-1!==n}):Ae.test(t)?ye.filter(t,e,n):(t=ye.filter(t,e),ye.grep(e,function(e){return de.call(t,e)>-1!==n&&1===e.nodeType}))}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var t={};return ye.each(e.match(Me)||[],function(e,n){t[n]=!0}),t}function p(e){return e}function f(e){throw e}function h(e,t,n,s){var i;try{e&&ye.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&ye.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(s))}catch(e){n.apply(void 0,[e])}}function m(){re.removeEventListener("DOMContentLoaded",m),n.removeEventListener("load",m),ye.ready()}function g(){this.expando=ye.expando+g.uid++}function v(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ue.test(e)?JSON.parse(e):e)}function b(e,t,n){var s;if(void 0===n&&1===e.nodeType)if(s="data-"+t.replace(Ve,"-$&").toLowerCase(),n=e.getAttribute(s),"string"==typeof n){try{n=v(n)}catch(e){}qe.set(e,t,n)}else n=void 0;return n}function y(e,t,n,s){var i,o=1,r=20,a=s?function(){return s.cur()}:function(){return ye.css(e,t,"")},l=a(),c=n&&n[3]||(ye.cssNumber[t]?"":"px"),u=(ye.cssNumber[t]||"px"!==c&&+l)&&We.exec(ye.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do o=o||".5",u/=o,ye.style(e,t,u+c);while(o!==(o=a()/l)&&1!==o&&--r)}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],s&&(s.unit=c,s.start=u,s.end=i)),i}function w(e){var t,n=e.ownerDocument,s=e.nodeName,i=Ye[s];return i?i:(t=n.body.appendChild(n.createElement(s)),i=ye.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Ye[s]=i,i)}function _(e,t){for(var n,s,i=[],o=0,r=e.length;o-1)i&&i.push(o);else if(c=ye.contains(o.ownerDocument,o),r=C(d.appendChild(o),"script"),c&&x(r),n)for(u=0;o=r[u++];)Je.test(o.type||"")&&n.push(o);return d}function k(){return!0}function S(){return!1}function T(){try{return re.activeElement}catch(e){}}function L(e,t,n,s,i,o){var r,a;if("object"==typeof t){"string"!=typeof n&&(s=s||n,n=void 0);for(a in t)L(e,a,n,s,t[a],o);return e}if(null==s&&null==i?(i=n,s=n=void 0):null==i&&("string"==typeof n?(i=s,s=void 0):(i=s,s=n,n=void 0)),i===!1)i=S;else if(!i)return e;return 1===o&&(r=i,i=function(e){return ye().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=ye.guid++)),e.each(function(){ye.event.add(this,t,i,s,n)})}function A(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?ye(">tbody",e)[0]||e:e}function I(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=lt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function R(e,t){var n,s,i,o,r,a,l,c;if(1===t.nodeType){if(je.hasData(e)&&(o=je.access(e),r=je.set(t,o),c=o.events)){delete r.handle,r.events={};for(i in c)for(n=0,s=c[i].length;n1&&"string"==typeof h&&!ve.checkClone&&at.test(h))return e.each(function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),D(o,t,n,s)});if(p&&(i=E(t,e[0].ownerDocument,!1,e,s),o=i.firstChild,1===i.childNodes.length&&(i=o),o||s)){for(a=ye.map(C(i,"script"),I),l=a.length;d=0&&n= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice + }; + + jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // 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 ( i === length ) { + 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 plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = Array.isArray( copy ) ) ) ) { + + if ( copyIsArray ) { + copyIsArray = false; + clone = src && Array.isArray( src ) ? src : []; + + } else { + clone = src && jQuery.isPlainObject( src ) ? src : {}; + } + + // 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( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isFunction: function( obj ) { + return jQuery.type( obj ) === "function"; + }, + + isWindow: function( obj ) { + return obj != null && obj === obj.window; + }, + + isNumeric: function( obj ) { + + // As of jQuery 3.0, isNumeric is limited to + // strings and numbers (primitives or objects) + // that can be coerced to finite numbers (gh-2662) + var type = jQuery.type( obj ); + return ( type === "number" || type === "string" ) && + + // parseFloat NaNs numeric-cast false positives ("") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + !isNaN( obj - parseFloat( obj ) ); + }, + + isPlainObject: function( obj ) { + var proto, Ctor; + + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { + return false; + } + + proto = getProto( obj ); + + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; + } + + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; + }, + + isEmptyObject: function( obj ) { + + /* eslint-disable no-unused-vars */ + // See https://github.com/eslint/eslint/issues/6125 + var name; + + for ( name in obj ) { + return false; + } + return true; + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; + }, + + // Evaluates a script in a global context + globalEval: function( code ) { + DOMEval( code ); + }, + + // Convert dashed to camelCase; used by the css and data modules + // Support: IE <=9 - 11, Edge 12 - 13 + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android <=4.0 only + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var tmp, args, proxy; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: Date.now, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support + } ); + + if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; + } + + // Populate the class2type map + jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), + function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); + } ); + + function isArrayLike( obj ) { + + // Support: real iOS 8.2 only (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; + } + var Sizzle = + /*! * Sizzle CSS Selector Engine v2.3.3 * https://sizzlejs.com/ * @@ -21,34 +1007,19703 @@ * * Date: 2016-08-08 */ -function(e){function t(e,t,n,s){var i,o,r,a,l,c,u,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!s&&((t?t.ownerDocument||t:q)!==P&&R(t),t=t||P,M)){if(11!==h&&(l=ve.exec(e)))if(i=l[1]){if(9===h){if(!(r=t.getElementById(i)))return n;if(r.id===i)return n.push(r),n}else if(p&&(r=p.getElementById(i))&&B(t,r)&&r.id===i)return n.push(r),n}else{if(l[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&C.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(C.qsa&&!$[e+" "]&&(!O||!O.test(e))){if(1!==h)p=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(_e,Ce):t.setAttribute("id",a=j),c=S(e),o=c.length;o--;)c[o]="#"+a+" "+f(c[o]);u=c.join(","),p=be.test(e)&&d(t.parentNode)||t}if(u)try{return J.apply(n,p.querySelectorAll(u)),n}catch(e){}finally{a===j&&t.removeAttribute("id")}}}return L(e.replace(ae,"$1"),t,n,s)}function n(){function e(n,s){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=s}var t=[];return e}function s(e){return e[j]=!0,e}function i(e){var t=P.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),s=n.length;s--;)x.attrHandle[n[s]]=t}function r(e,t){var n=t&&e,s=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(s)return s;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ee(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return s(function(t){return t=+t,s(function(n,s){for(var i,o=e([],n.length,t),r=o.length;r--;)n[i=o[r]]&&(n[i]=!(s[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function f(e){for(var t=0,n=e.length,s="";t1?function(t,n,s){for(var i=e.length;i--;)if(!e[i](t,n,s))return!1;return!0}:e[0]}function g(e,n,s){for(var i=0,o=n.length;i-1&&(s[c]=!(r[c]=d))}}else y=v(y===r?y.splice(h,y.length):y),o?o(null,r,y,l):J.apply(r,y)})}function y(e){for(var t,n,s,i=e.length,o=x.relative[e[0].type],r=o||x.relative[" "],a=o?1:0,l=h(function(e){return e===t},r,!0),c=h(function(e){return ee(t,e)>-1},r,!0),u=[function(e,n,s){var i=!o&&(s||n!==A)||((t=n).nodeType?l(e,n,s):c(e,n,s));return t=null,i}];a1&&m(u),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a0,o=e.length>0,r=function(s,r,a,l,c){var u,d,p,f=0,h="0",m=s&&[],g=[],b=A,y=s||o&&x.find.TAG("*",c),w=U+=null==b?1:Math.random()||.1,_=y.length;for(c&&(A=r===P||r||c);h!==_&&null!=(u=y[h]);h++){if(o&&u){for(d=0,r||u.ownerDocument===P||(R(u),a=!M);p=e[d++];)if(p(u,r||P,a)){l.push(u);break}c&&(U=w)}i&&((u=!p&&u)&&f--,s&&m.push(u))}if(f+=h,i&&h!==f){for(d=0;p=n[d++];)p(m,g,r,a);if(s){if(f>0)for(;h--;)m[h]||g[h]||(g[h]=K.call(l));g=v(g)}J.apply(l,g),c&&!s&&g.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(U=w,A=b),m};return i?s(r):r}var _,C,x,E,k,S,T,L,A,I,N,R,P,D,M,O,F,H,B,j="sizzle"+1*new Date,q=e.document,U=0,V=0,z=n(),W=n(),$=n(),G=function(e,t){return e===t&&(N=!0),0},X={}.hasOwnProperty,Y=[],K=Y.pop,Z=Y.push,J=Y.push,Q=Y.slice,ee=function(e,t){for(var n=0,s=e.length;n+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(oe),pe=new RegExp("^"+se+"$"),fe={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var s="0x"+t-65536;return s!==s||n?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},_e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ce=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},xe=function(){R()},Ee=h(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(Y=Q.call(q.childNodes),q.childNodes),Y[q.childNodes.length].nodeType}catch(e){J={apply:Y.length?function(e,t){Z.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,s=0;e[n++]=t[s++];);e.length=n-1}}}C=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},R=t.setDocument=function(e){var t,n,s=e?e.ownerDocument||e:q;return s!==P&&9===s.nodeType&&s.documentElement?(P=s,D=P.documentElement,M=!k(P),q!==P&&(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),C.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=i(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=ge.test(P.getElementsByClassName),C.getById=i(function(e){return D.appendChild(e).id=j,!P.getElementsByName||!P.getElementsByName(j).length}),C.getById?(x.filter.ID=function(e){var t=e.replace(ye,we);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var t=e.replace(ye,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n,s,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),s=0;o=i[s++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),x.find.TAG=C.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):C.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,s=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&s.push(n);return s}return o},x.find.CLASS=C.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&M)return t.getElementsByClassName(e)},F=[],O=[],(C.qsa=ge.test(P.querySelectorAll))&&(i(function(e){D.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+j+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||O.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=P.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(C.matchesSelector=ge.test(H=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(e){C.disconnectedMatch=H.call(e,"*"),H.call(e,"[s!='']:x"),F.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),t=ge.test(D.compareDocumentPosition),B=t||ge.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,s=t&&t.parentNode;return e===s||!(!s||1!==s.nodeType||!(n.contains?n.contains(s):e.compareDocumentPosition&&16&e.compareDocumentPosition(s)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return N=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!C.sortDetached&&t.compareDocumentPosition(e)===n?e===P||e.ownerDocument===q&&B(q,e)?-1:t===P||t.ownerDocument===q&&B(q,t)?1:I?ee(I,e)-ee(I,t):0:4&n?-1:1)}:function(e,t){if(e===t)return N=!0,0;var n,s=0,i=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!i||!o)return e===P?-1:t===P?1:i?-1:o?1:I?ee(I,e)-ee(I,t):0;if(i===o)return r(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[s]===l[s];)s++;return s?r(a[s],l[s]):a[s]===q?-1:l[s]===q?1:0},P):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==P&&R(e),n=n.replace(ue,"='$1']"),C.matchesSelector&&M&&!$[n+" "]&&(!F||!F.test(n))&&(!O||!O.test(n)))try{var s=H.call(e,n);if(s||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return s}catch(e){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&R(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&R(e);var n=x.attrHandle[t.toLowerCase()],s=n&&X.call(x.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==s?s:C.attributes||!M?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},t.escape=function(e){return(e+"").replace(_e,Ce)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],s=0,i=0;if(N=!C.detectDuplicates,I=!C.sortStable&&e.slice(0),e.sort(G),N){for(;t=e[i++];)t===e[i]&&(s=n.push(i));for(;s--;)e.splice(n[s],1)}return I=null,e},E=t.getText=function(e){var t,n="",s=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[s++];)n+=E(t);return n},x=t.selectors={cacheLength:50,createPseudo:s,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,we),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,s){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===s:"!="===n?o!==s:"^="===n?s&&0===o.indexOf(s):"*="===n?s&&o.indexOf(s)>-1:"$="===n?s&&o.slice(-s.length)===s:"~="===n?(" "+o.replace(re," ")+" ").indexOf(s)>-1:"|="===n&&(o===s||o.slice(0,s.length+1)===s+"-"))}},CHILD:function(e,t,n,s,i){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===s&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,h,m=o!==r?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(g){if(o){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[r?g.firstChild:g.lastChild],r&&b){for(p=g,d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],f=c[0]===U&&c[1],y=f&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[U,f,y];break}}else if(b&&(p=t,d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],f=c[0]===U&&c[1],y=f),y===!1)for(;(p=++f&&p&&p[m]||(y=f=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(b&&(d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),u[e]=[U,y]),p!==t)););return y-=i,y===s||y%s===0&&y/s>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[j]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?s(function(e,t){for(var s,i=o(e,n),r=i.length;r--;)s=ee(e,i[r]),e[s]=!(t[s]=i[r])}):function(e){return o(e,0,i)}):o}},pseudos:{not:s(function(e){var t=[],n=[],i=T(e.replace(ae,"$1"));return i[j]?s(function(e,t,n,s){for(var o,r=i(e,null,s,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))}):function(e,s,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:s(function(e){return function(n){return t(e,n).length>0}}),contains:s(function(e){return e=e.replace(ye,we),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:s(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,we).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n=0;)e.push(s);return e}),gt:u(function(e,t,n){for(var s=n<0?n+t:n;++s2&&"ID"===(r=o[0]).type&&9===t.nodeType&&M&&x.relative[o[1].type]){if(t=(x.find.ID(r.matches[0].replace(ye,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(r=o[i],!x.relative[a=r.type]);)if((l=x.find[a])&&(s=l(r.matches[0].replace(ye,we),be.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(i,1),e=s.length&&f(o),!e)return J.apply(n,s),n;break}}return(c||T(e,u))(s,t,!M,n,!t||be.test(e)&&d(t.parentNode)||t),n},C.sortStable=j.split("").sort(G).join("")===j,C.detectDuplicates=!!N,R(),C.sortDetached=i(function(e){return 1&e.compareDocumentPosition(P.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),C.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var s;if(!n)return e[t]===!0?t.toLowerCase():(s=e.getAttributeNode(t))&&s.specified?s.value:null}),t}(n);ye.find=Ee,ye.expr=Ee.selectors,ye.expr[":"]=ye.expr.pseudos,ye.uniqueSort=ye.unique=Ee.uniqueSort,ye.text=Ee.getText,ye.isXMLDoc=Ee.isXML,ye.contains=Ee.contains,ye.escapeSelector=Ee.escape;var ke=function(e,t,n){for(var s=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ye(e).is(n))break;s.push(e)}return s},Se=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=ye.expr.match.needsContext,Le=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ae=/^.[^:#\[\.,]*$/;ye.filter=function(e,t,n){var s=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===s.nodeType?ye.find.matchesSelector(s,e)?[s]:[]:ye.find.matches(e,ye.grep(t,function(e){return 1===e.nodeType}))},ye.fn.extend({find:function(e){var t,n,s=this.length,i=this;if("string"!=typeof e)return this.pushStack(ye(e).filter(function(){for(t=0;t1?ye.uniqueSort(n):n},filter:function(e){return this.pushStack(c(this,e||[],!1))},not:function(e){return this.pushStack(c(this,e||[],!0))},is:function(e){return!!c(this,"string"==typeof e&&Te.test(e)?ye(e):e||[],!1).length}});var Ie,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Re=ye.fn.init=function(e,t,n){var s,i;if(!e)return this;if(n=n||Ie,"string"==typeof e){if(s="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ne.exec(e),!s||!s[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof ye?t[0]:t,ye.merge(this,ye.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Le.test(s[1])&&ye.isPlainObject(t))for(s in t)ye.isFunction(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return i=re.getElementById(s[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye.isFunction(e)?void 0!==n.ready?n.ready(e):e(ye):ye.makeArray(e,this)};Re.prototype=ye.fn,Ie=ye(re);var Pe=/^(?:parents|prev(?:Until|All))/,De={children:!0,contents:!0,next:!0,prev:!0};ye.fn.extend({has:function(e){var t=ye(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&ye.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ye.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?de.call(ye(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ye.uniqueSort(ye.merge(this.get(),ye(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ye.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ke(e,"parentNode")},parentsUntil:function(e,t,n){return ke(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return ke(e,"nextSibling")},prevAll:function(e){return ke(e,"previousSibling")},nextUntil:function(e,t,n){return ke(e,"nextSibling",n)},prevUntil:function(e,t,n){return ke(e,"previousSibling",n)},siblings:function(e){return Se((e.parentNode||{}).firstChild,e)},children:function(e){return Se(e.firstChild)},contents:function(e){return l(e,"iframe")?e.contentDocument:(l(e,"template")&&(e=e.content||e),ye.merge([],e.childNodes))}},function(e,t){ye.fn[e]=function(n,s){var i=ye.map(this,t,n);return"Until"!==e.slice(-5)&&(s=n),s&&"string"==typeof s&&(i=ye.filter(s,i)),this.length>1&&(De[e]||ye.uniqueSort(i),Pe.test(e)&&i.reverse()),this.pushStack(i)}});var Me=/[^\x20\t\r\n\f]+/g;ye.Callbacks=function(e){e="string"==typeof e?d(e):ye.extend({},e);var t,n,s,i,o=[],r=[],a=-1,l=function(){for(i=i||e.once,s=t=!0;r.length;a=-1)for(n=r.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?ye.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=r=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=r=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],r.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!s}};return c},ye.extend({Deferred:function(e){var t=[["notify","progress",ye.Callbacks("memory"),ye.Callbacks("memory"),2],["resolve","done",ye.Callbacks("once memory"),ye.Callbacks("once memory"),0,"resolved"],["reject","fail",ye.Callbacks("once memory"),ye.Callbacks("once memory"),1,"rejected"]],s="pending",i={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return ye.Deferred(function(n){ye.each(t,function(t,s){var i=ye.isFunction(e[s[4]])&&e[s[4]];o[s[1]](function(){var e=i&&i.apply(this,arguments);e&&ye.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[s[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,s,i){function o(e,t,s,i){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e=r&&(s!==f&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(ye.Deferred.getStackHook&&(u.stackTrace=ye.Deferred.getStackHook()),n.setTimeout(u))}}var r=0;return ye.Deferred(function(n){t[0][3].add(o(0,n,ye.isFunction(i)?i:p,n.notifyWith)),t[1][3].add(o(0,n,ye.isFunction(e)?e:p)),t[2][3].add(o(0,n,ye.isFunction(s)?s:f))}).promise()},promise:function(e){return null!=e?ye.extend(e,i):i}},o={};return ye.each(t,function(e,n){var r=n[2],a=n[5];i[n[1]]=r.add,a&&r.add(function(){s=a},t[3-e][2].disable,t[0][2].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,s=Array(n),i=le.call(arguments),o=ye.Deferred(),r=function(e){return function(n){s[e]=this,i[e]=arguments.length>1?le.call(arguments):n,--t||o.resolveWith(s,i)}};if(t<=1&&(h(e,o.done(r(n)).resolve,o.reject,!t),"pending"===o.state()||ye.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)h(i[n],r(n),o.reject);return o.promise()}});var Oe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ye.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Oe.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ye.readyException=function(e){n.setTimeout(function(){throw e})};var Fe=ye.Deferred();ye.fn.ready=function(e){return Fe.then(e).catch(function(e){ye.readyException(e)}),this},ye.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--ye.readyWait:ye.isReady)||(ye.isReady=!0,e!==!0&&--ye.readyWait>0||Fe.resolveWith(re,[ye]))}}),ye.ready.then=Fe.then,"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll?n.setTimeout(ye.ready):(re.addEventListener("DOMContentLoaded",m),n.addEventListener("load",m));var He=function(e,t,n,s,i,o,r){var a=0,l=e.length,c=null==n;if("object"===ye.type(n)){i=!0;for(a in n)He(e,t,a,n[a],!0,o,r)}else if(void 0!==s&&(i=!0,ye.isFunction(s)||(r=!0),c&&(r?(t.call(e,s),t=null):(c=t,t=function(e,t,n){return c.call(ye(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){qe.remove(this,e)})}}),ye.extend({queue:function(e,t,n){var s;if(e)return t=(t||"fx")+"queue",s=je.get(e,t),n&&(!s||Array.isArray(n)?s=je.access(e,t,ye.makeArray(n)):s.push(n)),s||[]},dequeue:function(e,t){t=t||"fx";var n=ye.queue(e,t),s=n.length,i=n.shift(),o=ye._queueHooks(e,t),r=function(){ye.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),s--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,r,o)),!s&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return je.get(e,n)||je.access(e,n,{empty:ye.Callbacks("once memory").add(function(){je.remove(e,[t+"queue",n])})})}}),ye.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Je=/^$|\/(?:java|ecma)script/i,Qe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Qe.optgroup=Qe.option,Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead, -Qe.th=Qe.td;var et=/<|&#?\w+;/;!function(){var e=re.createDocumentFragment(),t=e.appendChild(re.createElement("div")),n=re.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ve.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",ve.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var tt=re.documentElement,nt=/^key/,st=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,it=/^([^.]*)(?:\.(.+)|)/;ye.event={global:{},add:function(e,t,n,s,i){var o,r,a,l,c,u,d,p,f,h,m,g=je.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&ye.find.matchesSelector(tt,i),n.guid||(n.guid=ye.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return"undefined"!=typeof ye&&ye.event.triggered!==t.type?ye.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Me)||[""],c=t.length;c--;)a=it.exec(t[c])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f&&(d=ye.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=ye.event.special[f]||{},u=ye.extend({type:f,origType:m,data:s,handler:n,guid:n.guid,selector:i,needsContext:i&&ye.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[f])||(p=l[f]=[],p.delegateCount=0,d.setup&&d.setup.call(e,s,h,r)!==!1||e.addEventListener&&e.addEventListener(f,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),ye.event.global[f]=!0)},remove:function(e,t,n,s,i){var o,r,a,l,c,u,d,p,f,h,m,g=je.hasData(e)&&je.get(e);if(g&&(l=g.events)){for(t=(t||"").match(Me)||[""],c=t.length;c--;)if(a=it.exec(t[c])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f){for(d=ye.event.special[f]||{},f=(s?d.delegateType:d.bindType)||f,p=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=p.length;o--;)u=p[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||s&&s!==u.selector&&("**"!==s||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));r&&!p.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||ye.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)ye.event.remove(e,f+t[c],n,s,!0);ye.isEmptyObject(l)&&je.remove(e,"handle events")}},dispatch:function(e){var t,n,s,i,o,r,a=ye.event.fix(e),l=new Array(arguments.length),c=(je.get(this,"events")||{})[a.type]||[],u=ye.event.special[a.type]||{};for(l[0]=a,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(o=[],r={},n=0;n-1:ye.find(i,this,null,[c]).length),r[i]&&o.push(s);o.length&&a.push({elem:c,handlers:o})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,rt=/\s*$/g;ye.extend({htmlPrefilter:function(e){return e.replace(ot,"<$1>")},clone:function(e,t,n){var s,i,o,r,a=e.cloneNode(!0),l=ye.contains(e.ownerDocument,e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ye.isXMLDoc(e)))for(r=C(a),o=C(e),s=0,i=o.length;s0&&x(r,!l&&C(e,"script")),a},cleanData:function(e){for(var t,n,s,i=ye.event.special,o=0;void 0!==(n=e[o]);o++)if(Be(n)){if(t=n[je.expando]){if(t.events)for(s in t.events)i[s]?ye.event.remove(n,s):ye.removeEvent(n,s,t.handle);n[je.expando]=void 0}n[qe.expando]&&(n[qe.expando]=void 0)}}}),ye.fn.extend({detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return He(this,function(e){return void 0===e?ye.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.appendChild(e)}})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ye.cleanData(C(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ye.clone(this,e,t)})},html:function(e){return He(this,function(e){var t=this[0]||{},n=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!Qe[(Ze.exec(e)||["",""])[1].toLowerCase()]){e=ye.htmlPrefilter(e);try{for(;n1)}}),ye.Tween=V,V.prototype={constructor:V,init:function(e,t,n,s,i,o){this.elem=e,this.prop=n,this.easing=i||ye.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=o||(ye.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=ye.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ye.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ye.fx.step[e.prop]?ye.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ye.cssProps[e.prop]]&&!ye.cssHooks[e.prop]?e.elem[e.prop]=e.now:ye.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ye.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ye.fx=V.prototype.init,ye.fx.step={};var yt,wt,_t=/^(?:toggle|show|hide)$/,Ct=/queueHooks$/;ye.Animation=ye.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,We.exec(t),n),n}]},tweener:function(e,t){ye.isFunction(e)?(t=e,e=["*"]):e=e.match(Me);for(var n,s=0,i=e.length;s1)},removeAttr:function(e){return this.each(function(){ye.removeAttr(this,e)})}}),ye.extend({attr:function(e,t,n){var s,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ye.prop(e,t,n):(1===o&&ye.isXMLDoc(e)||(i=ye.attrHooks[t.toLowerCase()]||(ye.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void ye.removeAttr(e,t):i&&"set"in i&&void 0!==(s=i.set(e,n,t))?s:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(s=i.get(e,t))?s:(s=ye.find.attr(e,t),null==s?void 0:s))},attrHooks:{type:{set:function(e,t){if(!ve.radioValue&&"radio"===t&&l(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,s=0,i=t&&t.match(Me);if(i&&1===e.nodeType)for(;n=i[s++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return t===!1?ye.removeAttr(e,n):e.setAttribute(n,n),n}},ye.each(ye.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Et[t]||ye.find.attr;Et[t]=function(e,t,s){var i,o,r=t.toLowerCase();return s||(o=Et[r],Et[r]=i,i=null!=n(e,t,s)?r:null,Et[r]=o),i}});var kt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;ye.fn.extend({prop:function(e,t){return He(this,ye.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ye.propFix[e]||e]})}}),ye.extend({prop:function(e,t,n){var s,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ye.isXMLDoc(e)||(t=ye.propFix[t]||t,i=ye.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(s=i.set(e,n,t))?s:e[t]=n:i&&"get"in i&&null!==(s=i.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=ye.find.attr(e,"tabindex");return t?parseInt(t,10):kt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ve.optSelected||(ye.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ye.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ye.propFix[this.toLowerCase()]=this}),ye.fn.extend({addClass:function(e){var t,n,s,i,o,r,a,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).addClass(e.call(this,t,J(this)))});if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(i=J(n),s=1===n.nodeType&&" "+Z(i)+" "){for(r=0;o=t[r++];)s.indexOf(" "+o+" ")<0&&(s+=o+" ");a=Z(s),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,s,i,o,r,a,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).removeClass(e.call(this,t,J(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(i=J(n),s=1===n.nodeType&&" "+Z(i)+" "){for(r=0;o=t[r++];)for(;s.indexOf(" "+o+" ")>-1;)s=s.replace(" "+o+" "," ");a=Z(s),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ye.isFunction(e)?this.each(function(n){ye(this).toggleClass(e.call(this,n,J(this),t),t)}):this.each(function(){var t,s,i,o;if("string"===n)for(s=0,i=ye(this),o=e.match(Me)||[];t=o[s++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=J(this),t&&je.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":je.get(this,"__className__")||""))})},hasClass:function(e){var t,n,s=0;for(t=" "+e+" ";n=this[s++];)if(1===n.nodeType&&(" "+Z(J(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;ye.fn.extend({val:function(e){var t,n,s,i=this[0];{if(arguments.length)return s=ye.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=s?e.call(this,n,ye(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=ye.map(i,function(e){return null==e?"":e+""})),t=ye.valHooks[this.type]||ye.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ye.valHooks[i.type]||ye.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Tt,""):null==n?"":n)}}}),ye.extend({valHooks:{option:{get:function(e){var t=ye.find.attr(e,"value");return null!=t?t:Z(ye.text(e))}},select:{get:function(e){var t,n,s,i=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],c=r?o+1:i.length;for(s=o<0?c:r?o:0;s-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ye.each(["radio","checkbox"],function(){ye.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ye.inArray(ye(e).val(),t)>-1}},ve.checkOn||(ye.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt=/^(?:focusinfocus|focusoutblur)$/;ye.extend(ye.event,{trigger:function(e,t,s,i){var o,r,a,l,c,u,d,p=[s||re],f=he.call(e,"type")?e.type:e,h=he.call(e,"namespace")?e.namespace.split("."):[];if(r=a=s=s||re,3!==s.nodeType&&8!==s.nodeType&&!Lt.test(f+ye.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,e=e[ye.expando]?e:new ye.Event(f,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=s),t=null==t?[e]:ye.makeArray(t,[e]),d=ye.event.special[f]||{},i||!d.trigger||d.trigger.apply(s,t)!==!1)){if(!i&&!d.noBubble&&!ye.isWindow(s)){for(l=d.delegateType||f,Lt.test(l+f)||(r=r.parentNode);r;r=r.parentNode)p.push(r),a=r;a===(s.ownerDocument||re)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:d.bindType||f,u=(je.get(r,"events")||{})[e.type]&&je.get(r,"handle"),u&&u.apply(r,t),u=c&&r[c],u&&u.apply&&Be(r)&&(e.result=u.apply(r,t),e.result===!1&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),t)!==!1||!Be(s)||c&&ye.isFunction(s[f])&&!ye.isWindow(s)&&(a=s[c],a&&(s[c]=null),ye.event.triggered=f,s[f](),ye.event.triggered=void 0,a&&(s[c]=a)),e.result}},simulate:function(e,t,n){var s=ye.extend(new ye.Event,n,{type:e,isSimulated:!0});ye.event.trigger(s,null,t)}}),ye.fn.extend({trigger:function(e,t){return this.each(function(){ye.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ye.event.trigger(e,t,n,!0)}}),ye.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ye.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ye.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ve.focusin="onfocusin"in n,ve.focusin||ye.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ye.event.simulate(t,e.target,ye.event.fix(e))};ye.event.special[t]={setup:function(){var s=this.ownerDocument||this,i=je.access(s,t);i||s.addEventListener(e,n,!0),je.access(s,t,(i||0)+1)},teardown:function(){var s=this.ownerDocument||this,i=je.access(s,t)-1;i?je.access(s,t,i):(s.removeEventListener(e,n,!0),je.remove(s,t))}}});var At=n.location,It=ye.now(),Nt=/\?/;ye.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ye.error("Invalid XML: "+e),t};var Rt=/\[\]$/,Pt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;ye.param=function(e,t){var n,s=[],i=function(e,t){var n=ye.isFunction(t)?t():t;s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!ye.isPlainObject(e))ye.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return s.join("&")},ye.fn.extend({serialize:function(){return ye.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ye.prop(this,"elements");return e?ye.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ye(this).is(":disabled")&&Mt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var n=ye(this).val();return null==n?null:Array.isArray(n)?ye.map(n,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:n.replace(Pt,"\r\n")}}).get()}});var Ot=/%20/g,Ft=/#.*$/,Ht=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Vt={},zt={},Wt="*/".concat("*"),$t=re.createElement("a");$t.href=At.href,ye.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:jt.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ye.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ne(ne(e,ye.ajaxSettings),t):ne(ye.ajaxSettings,e)},ajaxPrefilter:ee(Vt),ajaxTransport:ee(zt),ajax:function(e,t){function s(e,t,s,a){var c,p,f,w,_,C=t;u||(u=!0,l&&n.clearTimeout(l),i=void 0,r=a||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(w=se(h,x,s)),w=ie(h,w,x,c),c?(h.ifModified&&(_=x.getResponseHeader("Last-Modified"),_&&(ye.lastModified[o]=_),_=x.getResponseHeader("etag"),_&&(ye.etag[o]=_)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=w.state,p=w.data,f=w.error,c=!f)):(f=C,!e&&C||(C="error",e<0&&(e=0))),x.status=e,x.statusText=(t||C)+"",c?v.resolveWith(m,[p,C,x]):v.rejectWith(m,[x,C,f]),x.statusCode(y),y=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?p:f]),b.fireWith(m,[x,C]),d&&(g.trigger("ajaxComplete",[x,h]),--ye.active||ye.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,r,a,l,c,u,d,p,f,h=ye.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?ye(m):ye.event,v=ye.Deferred(),b=ye.Callbacks("once memory"),y=h.statusCode||{},w={},_={},C="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Bt.exec(r);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),s(0,t),this}};if(v.promise(x),h.url=((e||h.url||At.href)+"").replace(Ut,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Me)||[""],null==h.crossDomain){c=re.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=$t.protocol+"//"+$t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ye.param(h.data,h.traditional)),te(Vt,h,t,x),u)return x;d=ye.event&&h.global,d&&0===ye.active++&&ye.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!qt.test(h.type),o=h.url.replace(Ft,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(f=h.url.slice(o.length),h.data&&(o+=(Nt.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(Ht,"$1"),f=(Nt.test(o)?"&":"?")+"_="+It++ +f),h.url=o+f),h.ifModified&&(ye.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ye.lastModified[o]),ye.etag[o]&&x.setRequestHeader("If-None-Match",ye.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)x.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(m,x,h)===!1||u))return x.abort();if(C="abort",b.add(h.complete),x.done(h.success),x.fail(h.error),i=te(zt,h,t,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,h]),u)return x;h.async&&h.timeout>0&&(l=n.setTimeout(function(){x.abort("timeout")},h.timeout));try{u=!1,i.send(w,s)}catch(e){if(u)throw e;s(-1,e)}}else s(-1,"No Transport");return x},getJSON:function(e,t,n){return ye.get(e,t,n,"json")},getScript:function(e,t){return ye.get(e,void 0,t,"script")}}),ye.each(["get","post"],function(e,t){ye[t]=function(e,n,s,i){return ye.isFunction(n)&&(i=i||s,s=n,n=void 0),ye.ajax(ye.extend({url:e,type:t,dataType:i,data:n,success:s},ye.isPlainObject(e)&&e))}}),ye._evalUrl=function(e){return ye.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ye.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye.isFunction(e)&&(e=e.call(this[0])),t=ye(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye.isFunction(e)?this.each(function(t){ye(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ye(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye.isFunction(e);return this.each(function(n){ye(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ye(this).replaceWith(this.childNodes)}),this}}),ye.expr.pseudos.hidden=function(e){return!ye.expr.pseudos.visible(e)},ye.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length); -},ye.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Xt=ye.ajaxSettings.xhr();ve.cors=!!Xt&&"withCredentials"in Xt,ve.ajax=Xt=!!Xt,ye.ajaxTransport(function(e){var t,s;if(ve.cors||Xt&&!e.crossDomain)return{send:function(i,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)a.setRequestHeader(r,i[r]);t=function(e){return function(){t&&(t=s=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),s=a.onerror=t("error"),void 0!==a.onabort?a.onabort=s:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&s()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ye.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ye.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ye.globalEval(e),e}}}),ye.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ye.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(s,i){t=ye(" + + + + + +
+
+
+
+ + Coderockr Logo +
+

+ +55 47 3227-6359     + contato@coderockr.com +

+ +
+
+
+
+
+ +
+ + + + + + + + + + + + diff --git a/dist/components/header.html b/dist/components/header.html new file mode 100644 index 0000000..c6d09ee --- /dev/null +++ b/dist/components/header.html @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + diff --git a/dist/contact.html b/dist/contact.html index 8789572..e08441c 100644 --- a/dist/contact.html +++ b/dist/contact.html @@ -326,5 +326,12 @@

+ + + + diff --git a/dist/crossdomain.xml b/dist/crossdomain.xml deleted file mode 100755 index 18d2d71..0000000 --- a/dist/crossdomain.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/dist/humans.txt b/dist/humans.txt deleted file mode 100644 index 673afbb..0000000 --- a/dist/humans.txt +++ /dev/null @@ -1,30 +0,0 @@ -/* TEAM */ - CTO: Elton Luís Minetto - Contact: eminetto@coderockr.com - Twitter: @eminetto - - CEO: Julia Possamai - Contact: jpossamai@coderockr.com - Facebook: fb.me/juls.possamai - - Front-end Developer: Raony Marcondes - Contact: raony@coderockr.com - Facebook: fb.me/raonymarcondes - - Front-end Developer: Vinicius Dacal Lopes - Contact: vinicius@coderockr.com - Twitter: @vinicius_dacal - - Back-end Developer: Leandro Lugaresi - Contact: leandro@coderockr.com - Twitter: @leandrolugaresi - - Back-end Developer: Lucas Abreu - Contact: lucas@coderockr.com - Twitter: @LucasSantAbreu - -/* SITE */ - Last update: 2016/12/22 - Language: Portuguese - Doctype: HTML5 - IDE: Sublime Text diff --git a/dist/index.html b/dist/index.html index 77a7f37..45ce80d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -382,5 +382,12 @@

Elton Minetto - 28/06/2017

+ + + + diff --git a/src/templates/layouts/default.html b/src/templates/layouts/default.html index 3ccf6ae..354eea7 100644 --- a/src/templates/layouts/default.html +++ b/src/templates/layouts/default.html @@ -68,5 +68,12 @@ + + + + From 3e90936f957bd5159351a8802222bdafbd320791 Mon Sep 17 00:00:00 2001 From: Anderson Zorrer Dalmina Date: Wed, 29 Aug 2018 13:16:05 -0300 Subject: [PATCH 2/3] Run build.sh and add files --- dist/CNAME | 1 + dist/README.md | 62 + dist/assets/scripts/main.js | 20695 +--------------------------------- dist/assets/styles/main.css | 20453 +-------------------------------- dist/components/footer.html | 102 - dist/components/header.html | 101 - dist/crossdomain.xml | 25 + dist/humans.txt | 30 + 8 files changed, 147 insertions(+), 41322 deletions(-) create mode 100755 dist/CNAME create mode 100644 dist/README.md delete mode 100644 dist/components/footer.html delete mode 100644 dist/components/header.html create mode 100755 dist/crossdomain.xml create mode 100644 dist/humans.txt diff --git a/dist/CNAME b/dist/CNAME new file mode 100755 index 0000000..3c55b23 --- /dev/null +++ b/dist/CNAME @@ -0,0 +1 @@ +coderockr.com diff --git a/dist/README.md b/dist/README.md new file mode 100644 index 0000000..cc94344 --- /dev/null +++ b/dist/README.md @@ -0,0 +1,62 @@ +coderockr +==================== + +## Setup +### Requirements + +Node `"^8.2.1"` (use nvm [here](https://github.com/creationix/nvm)) + +Yarn `"^1.3.2"` (install [here](https://yarnpkg.com)) + +### Structure folder + +``` +coderockr +├── .babelrc +├── .eslintignore +├── .eslintrc +├── .gitignore +├── CNAME +├── crossdomain.xml +├── gh-pages.sh +├── gulpfile.js +├── humans.txt +├── package.json +├── README.md +├── robots.txt +├── webpack.config.js +├── dist +└── src + └── assets + │ └── fonts + │ └── images + │ └── scripts + │ └── styles + └── templates + └── components + └── layouts + └── page.html +``` + +### Install dependencies + +```bash +yarn +``` + +### Run + +```bash +yarn start +``` + +### Build + +```bash +./build.sh +``` + +### Deploy to Github Pages (https://github.com/Coderockr/coderockr.github.com) +```bash +./deploy.sh +``` diff --git a/dist/assets/scripts/main.js b/dist/assets/scripts/main.js index 1ca570d..5b146ff 100644 --- a/dist/assets/scripts/main.js +++ b/dist/assets/scripts/main.js @@ -1,465 +1,4 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; -/******/ -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.loaded = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - var _globals = __webpack_require__(2); - - var _globals2 = _interopRequireDefault(_globals); - - __webpack_require__(3); - - var _fotorama = __webpack_require__(4); - - var _fotorama2 = _interopRequireDefault(_fotorama); - - var _plyr = __webpack_require__(8); - - var _plyr2 = _interopRequireDefault(_plyr); - - var _nouislider = __webpack_require__(7); - - var _nouislider2 = _interopRequireDefault(_nouislider); - - __webpack_require__(6); - - __webpack_require__(5); - - var _sweetalert = __webpack_require__(9); - - var _sweetalert2 = _interopRequireDefault(_sweetalert); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - 'use strict'; - - var Main = { - init: function init() { - - var page = (0, _globals2.default)('.wrap').attr('id'); - switch (page) { - case 'home': - Main.initVideo(); - Main.initTestimonials(); - break; - case 'contact': - Main.initForm(); - Main.initMap(); - break; - } - }, - - common: function common() { - (function (i, s, o, g, r, a, m) { - i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () { - (i[r].q = i[r].q || []).push(arguments); - }, i[r].l = 1 * new Date();a = s.createElement(o), m = s.getElementsByTagName(o)[0];a.async = 1;a.src = g;m.parentNode.insertBefore(a, m); - })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); - - ga('create', 'UA-584603-6', 'auto'); - ga('send', 'pageview'); - - // easeOutQuad - _globals2.default.easing['jswing'] = _globals2.default.easing['swing']; - - _globals2.default.extend(_globals2.default.easing, { - def: 'easeOutQuad', - easeInOutExpo: function easeInOutExpo(x, t, b, c, d) { - if (t == 0) return b; - if (t == d) return b + c; - if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; - return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b; - } - }); - - // autoscroll - (0, _globals2.default)('*[data-autoscroll]').click(function () { - var target = (0, _globals2.default)(this.hash); - - target = target.length ? target : (0, _globals2.default)('[name=' + this.hash.slice(1) + ']'); - - if (target.length) { - (0, _globals2.default)('html,body').animate({ scrollTop: target.offset().top }, 1500, 'easeInOutExpo'); - return false; - } - }); - - // open mobile menu - (0, _globals2.default)('.menu-trigger').on('click', function (event) { - event.preventDefault(); - (0, _globals2.default)('#main-content').addClass('move-out'); - (0, _globals2.default)('#menu-mobile').addClass('is-visible'); - (0, _globals2.default)('.shadow-layer').addClass('is-visible'); - }); - - // close mobile menu - (0, _globals2.default)('.close-menu').on('click', function (event) { - event.preventDefault(); - (0, _globals2.default)('#main-content').removeClass('move-out'); - (0, _globals2.default)('#menu-mobile').removeClass('is-visible'); - (0, _globals2.default)('.shadow-layer').removeClass('is-visible'); - }); - - (0, _globals2.default)('#menu-mobile a').on('click', function (event) { - (0, _globals2.default)('.close-menu').click(); - }); - }, - - initTestimonials: function initTestimonials() { - var $fotoramaDiv = (0, _globals2.default)('.fotorama').fotorama({ - autoplay: false, - shadows: false, - width: '100%', - arrows: 'always', - height: (0, _globals2.default)('.testimonial').height(), - keyboard: true, - loop: true, - click: true, - preload: 3 - }); - - var fotorama = $fotoramaDiv.data('fotorama'); - - function positioningFotoramaNav(fotorama) { - var margin = (0, _globals2.default)(fotorama.activeFrame.html).find('header').height() + 29; - (0, _globals2.default)('.fotorama__nav').css('top', margin + 'px'); - } - - function resizeFotorama(fotorama) { - var newHeight = (0, _globals2.default)(fotorama.activeFrame.html).height(); - fotorama.resize({ height: newHeight }); - positioningFotoramaNav(fotorama); - } - - positioningFotoramaNav(fotorama); - - (0, _globals2.default)(window).resize(function () { - resizeFotorama(fotorama); - }); - - (0, _globals2.default)('.fotorama').on('fotorama:showend ', function (e, fotorama, extra) { - resizeFotorama(fotorama); - }); - - (0, _globals2.default)('.fotorama').on('fotorama:show ', function (e, fotorama, extra) { - positioningFotoramaNav(fotorama); - }); - }, - - initVideo: function initVideo() { - var player = _plyr2.default.setup(); - - player[0].source({ - type: 'video', - title: 'Example title', - poster: 'assets/images/video-cover.jpg', - sources: [{ - src: 'assets/images/video.mp4', - type: 'video/mp4' - }] - }); - }, - - initForm: function initForm() { - (0, _globals2.default)('[name=\'phone\']').mask('99 9999-9999?9', { placeholder: ' ' }).focusout(function (event) { - var target, phone, element; - target = event.currentTarget ? event.currentTarget : event.srcElement; - phone = target.value.replace(/\D/g, ''); - element = (0, _globals2.default)(target); - element.unmask(); - if (phone.length > 10) { - element.mask('99 99999-999?9'); - } else { - element.mask('99 9999-9999?9'); - } - }); - - var deadline = document.getElementById('deadline'); - - _nouislider2.default.create(deadline, { - start: [6], - connect: [true, false], - step: 1, - range: { - 'min': [1], - 'max': [13] - } - }); - - deadline.noUiSlider.on('update', function (values, handle) { - var sufix = values[handle] == '1.00' ? ' Mês' : ' Meses', - months = values[handle].replace('.00', sufix).replace('13 Meses', '12+ Meses'); - - (0, _globals2.default)('.deadline label').html(months); - }); - - var budget = document.getElementById('budget'); - - _nouislider2.default.create(budget, { - start: [30, 60], - connect: true, - step: 1, - range: { - 'min': [0], - '60%': [100, 100], - '62.5%': [125, 125], - '65%': [150, 150], - '67.5%': [175, 175], - '70%': [200, 200], - '72.5%': [225, 225], - '75%': [250, 250], - '77.5%': [275, 275], - '80%': [300, 300], - '82.5%': [325, 325], - '85%': [350, 350], - '87.5%': [375, 375], - '90%': [400, 400], - '92.5%': [425, 425], - '95%': [450, 450], - '97.5%': [475, 475], - 'max': [500] - } - }); - - budget.noUiSlider.on('change', function (values, handle) { - if (values[handle] < 30) { - budget.noUiSlider.set(30); - } - }); - - budget.noUiSlider.on('update', function (values, handle) { - var start = values[0].replace('.00', ''), - end = values[1].replace('.00', ''), - label = 'R$ '; - - if (start == '500') { - label = 'Acima de 500K'; - } else { - label += start + 'K a ' + end + 'K'; - } - - (0, _globals2.default)('.budget label').html(label); - }); - - var validator = (0, _globals2.default)('[name=contactForm]').validate({ - errorPlacement: function errorPlacement(error, element) {}, - 'rules': { - 'name': 'required', - 'email': { - 'required': true, - 'email': true - }, - 'phone': 'required', - 'needs[]': 'required', - 'features': 'required' - }, - submitHandler: function submitHandler(form, event) { - var needs = [], - xhrRunning, - message = { - success: { - type: 'success', - title: 'Recebemos suas informações!', - text: 'Em breve entraremos em contato.' - }, - error: { - type: 'error', - title: 'Não foi possível processar suas informações :(', - text: 'Por favor, tente novamente.' - } - }; - - (0, _globals2.default)('[name=\'needs[]\']:checked').each(function (i) { - needs[i] = (0, _globals2.default)(this).next().html(); - }); - - xhrRunning = _globals2.default.ajax({ - type: 'POST', - dataType: 'json', - url: 'https://e5kp5ek8ni.execute-api.us-east-1.amazonaws.com/prod/contato', - contentType: 'application/json', - data: JSON.stringify({ - name: (0, _globals2.default)('[name=name]').val(), - email: (0, _globals2.default)('[name=email]').val(), - company: (0, _globals2.default)('[name=company]').val(), - phone: (0, _globals2.default)('[name=phone]').val(), - phase: (0, _globals2.default)('[name=phase]:checked').next().html(), - needs: needs.join(', '), - features_description: (0, _globals2.default)('[name=features]').val(), - deadline: (0, _globals2.default)('.deadline .slider label').html(), - budget: (0, _globals2.default)('.budget .slider label').html(), - description: (0, _globals2.default)('[name=details]').val() - }), - success: function success(data) { - if (data) { - Main.sweetAlert(message.success); - } else { - Main.sweetAlert(message.error); - } - }, - error: function error(xhr, textStatus, thrownError) { - Main.sweetAlert(message.error); - } - }); - } - }); - }, - - sweetAlert: function sweetAlert(alert) { - (0, _sweetalert2.default)({ - 'type': alert.type, - 'title': alert.title, - 'html': alert.text, - showCloseButton: true - }).catch(_sweetalert2.default.noop); - }, - - initMap: function initMap() { - var map = new google.maps.Map(document.getElementById('map'), { - zoom: 16, - center: new google.maps.LatLng(-26.3009, -48.8463), - zoomControl: false, - disableDoubleClickZoom: true, - mapTypeControl: false, - scaleControl: false, - scrollwheel: false, - panControl: true, - streetViewControl: false, - overviewMapControl: true, - mapTypeId: 'roadmap', - styles: [{ - 'elementType': 'labels.text.fill', - 'featureType': 'administrative', - 'stylers': [{ - 'color': '#444444' - }] - }, { - 'featureType': 'landscape', - 'stylers': [{ - 'color': '#f2f2f2' - }] - }, { - 'featureType': 'landscape.man_made', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'poi', - 'stylers': [{ - 'visibility': 'simplified' - }] - }, { - 'elementType': 'labels', - 'featureType': 'poi', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'poi.attraction', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'poi.business', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'road', - 'stylers': [{ - 'saturation': -100 - }, { - 'lightness': 45 - }] - }, { - 'elementType': 'labels.icon', - 'featureType': 'road.arterial', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'road.highway', - 'stylers': [{ - 'visibility': 'simplified' - }] - }, { - 'featureType': 'transit', - 'stylers': [{ - 'visibility': 'off' - }] - }, { - 'featureType': 'water', - 'stylers': [{ - 'color': '#46bcec' - }, { - 'visibility': 'on' - }] - }] - }); - - (function () { - var marker = new google.maps.Marker({ - position: new google.maps.LatLng(-26.3012, -48.8508), - icon: '../assets/images/pin.svg', - map: map - }); - })(); - } - }; - - (0, _globals2.default)(document).ready(function ($) { - Main.init(); - Main.common(); - }); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! +!function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var i=n(2),o=s(i);n(3);var r=n(4),a=(s(r),n(8)),l=s(a),c=n(7),u=s(c);n(6),n(5);var d=n(9),p=s(d),f={init:function(){var e=(0,o.default)(".wrap").attr("id");switch(e){case"home":f.initVideo(),f.initTestimonials();break;case"contact":f.initForm(),f.initMap()}},common:function(){!function(e,t,n,s,i,o,r){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,o=t.createElement(n),r=t.getElementsByTagName(n)[0],o.async=1,o.src=s,r.parentNode.insertBefore(o,r)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-584603-6","auto"),ga("send","pageview"),o.default.easing.jswing=o.default.easing.swing,o.default.extend(o.default.easing,{def:"easeOutQuad",easeInOutExpo:function(e,t,n,s,i){return 0==t?n:t==i?n+s:(t/=i/2)<1?s/2*Math.pow(2,10*(t-1))+n:s/2*(-Math.pow(2,-10*--t)+2)+n}}),(0,o.default)("*[data-autoscroll]").click(function(){var e=(0,o.default)(this.hash);if(e=e.length?e:(0,o.default)("[name="+this.hash.slice(1)+"]"),e.length)return(0,o.default)("html,body").animate({scrollTop:e.offset().top},1500,"easeInOutExpo"),!1}),(0,o.default)(".menu-trigger").on("click",function(e){e.preventDefault(),(0,o.default)("#main-content").addClass("move-out"),(0,o.default)("#menu-mobile").addClass("is-visible"),(0,o.default)(".shadow-layer").addClass("is-visible")}),(0,o.default)(".close-menu").on("click",function(e){e.preventDefault(),(0,o.default)("#main-content").removeClass("move-out"),(0,o.default)("#menu-mobile").removeClass("is-visible"),(0,o.default)(".shadow-layer").removeClass("is-visible")}),(0,o.default)("#menu-mobile a").on("click",function(e){(0,o.default)(".close-menu").click()})},initTestimonials:function(){function e(e){var t=(0,o.default)(e.activeFrame.html).find("header").height()+29;(0,o.default)(".fotorama__nav").css("top",t+"px")}function t(t){var n=(0,o.default)(t.activeFrame.html).height();t.resize({height:n}),e(t)}var n=(0,o.default)(".fotorama").fotorama({autoplay:!1,shadows:!1,width:"100%",arrows:"always",height:(0,o.default)(".testimonial").height(),keyboard:!0,loop:!0,click:!0,preload:3}),s=n.data("fotorama");e(s),(0,o.default)(window).resize(function(){t(s)}),(0,o.default)(".fotorama").on("fotorama:showend ",function(e,n,s){t(n)}),(0,o.default)(".fotorama").on("fotorama:show ",function(t,n,s){e(n)})},initVideo:function(){var e=l.default.setup();e[0].source({type:"video",title:"Example title",poster:"assets/images/video-cover.jpg",sources:[{src:"assets/images/video.mp4",type:"video/mp4"}]})},initForm:function(){(0,o.default)("[name='phone']").mask("99 9999-9999?9",{placeholder:" "}).focusout(function(e){var t,n,s;t=e.currentTarget?e.currentTarget:e.srcElement,n=t.value.replace(/\D/g,""),s=(0,o.default)(t),s.unmask(),n.length>10?s.mask("99 99999-999?9"):s.mask("99 9999-9999?9")});var e=document.getElementById("deadline");u.default.create(e,{start:[6],connect:[!0,!1],step:1,range:{min:[1],max:[13]}}),e.noUiSlider.on("update",function(e,t){var n="1.00"==e[t]?" Mês":" Meses",s=e[t].replace(".00",n).replace("13 Meses","12+ Meses");(0,o.default)(".deadline label").html(s)});var t=document.getElementById("budget");u.default.create(t,{start:[30,60],connect:!0,step:1,range:{min:[0],"60%":[100,100],"62.5%":[125,125],"65%":[150,150],"67.5%":[175,175],"70%":[200,200],"72.5%":[225,225],"75%":[250,250],"77.5%":[275,275],"80%":[300,300],"82.5%":[325,325],"85%":[350,350],"87.5%":[375,375],"90%":[400,400],"92.5%":[425,425],"95%":[450,450],"97.5%":[475,475],max:[500]}}),t.noUiSlider.on("change",function(e,n){e[n]<30&&t.noUiSlider.set(30)}),t.noUiSlider.on("update",function(e,t){var n=e[0].replace(".00",""),s=e[1].replace(".00",""),i="R$ ";"500"==n?i="Acima de 500K":i+=n+"K a "+s+"K",(0,o.default)(".budget label").html(i)});(0,o.default)("[name=contactForm]").validate({errorPlacement:function(e,t){},rules:{name:"required",email:{required:!0,email:!0},phone:"required","needs[]":"required",features:"required"},submitHandler:function(e,t){var n,s=[],i={success:{type:"success",title:"Recebemos suas informações!",text:"Em breve entraremos em contato."},error:{type:"error",title:"Não foi possível processar suas informações :(",text:"Por favor, tente novamente."}};(0,o.default)("[name='needs[]']:checked").each(function(e){s[e]=(0,o.default)(this).next().html()}),n=o.default.ajax({type:"POST",dataType:"json",url:"https://e5kp5ek8ni.execute-api.us-east-1.amazonaws.com/prod/contato",contentType:"application/json",data:JSON.stringify({name:(0,o.default)("[name=name]").val(),email:(0,o.default)("[name=email]").val(),company:(0,o.default)("[name=company]").val(),phone:(0,o.default)("[name=phone]").val(),phase:(0,o.default)("[name=phase]:checked").next().html(),needs:s.join(", "),features_description:(0,o.default)("[name=features]").val(),deadline:(0,o.default)(".deadline .slider label").html(),budget:(0,o.default)(".budget .slider label").html(),description:(0,o.default)("[name=details]").val()}),success:function(e){e?f.sweetAlert(i.success):f.sweetAlert(i.error)},error:function(e,t,n){f.sweetAlert(i.error)}})}})},sweetAlert:function(e){(0,p.default)({type:e.type,title:e.title,html:e.text,showCloseButton:!0}).catch(p.default.noop)},initMap:function(){var e=new google.maps.Map(document.getElementById("map"),{zoom:16,center:new google.maps.LatLng(-26.3009,-48.8463),zoomControl:!1,disableDoubleClickZoom:!0,mapTypeControl:!1,scaleControl:!1,scrollwheel:!1,panControl:!0,streetViewControl:!1,overviewMapControl:!0,mapTypeId:"roadmap",styles:[{elementType:"labels.text.fill",featureType:"administrative",stylers:[{color:"#444444"}]},{featureType:"landscape",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape.man_made",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"simplified"}]},{elementType:"labels",featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{saturation:-100},{lightness:45}]},{elementType:"labels.icon",featureType:"road.arterial",stylers:[{visibility:"off"}]},{featureType:"road.highway",stylers:[{visibility:"simplified"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#46bcec"},{visibility:"on"}]}]});!function(){new google.maps.Marker({position:new google.maps.LatLng(-26.3012,-48.8508),icon:"../assets/images/pin.svg",map:e})}()}};(0,o.default)(document).ready(function(e){f.init(),f.common()})},function(e,t,n){var s,i;/*! * jQuery JavaScript Library v3.2.1 * https://jquery.com/ * @@ -472,532 +11,7 @@ * * Date: 2017-03-20T18:59Z */ - ( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - - // Pass this if window is not defined yet - } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - - // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 - // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode - // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common - // enough that all such attempts are guarded in a try block. - "use strict"; - - var arr = []; - - var document = window.document; - - var getProto = Object.getPrototypeOf; - - var slice = arr.slice; - - var concat = arr.concat; - - var push = arr.push; - - var indexOf = arr.indexOf; - - var class2type = {}; - - var toString = class2type.toString; - - var hasOwn = class2type.hasOwnProperty; - - var fnToString = hasOwn.toString; - - var ObjectFunctionString = fnToString.call( Object ); - - var support = {}; - - - - function DOMEval( code, doc ) { - doc = doc || document; - - var script = doc.createElement( "script" ); - - script.text = code; - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - /* global Symbol */ - // Defining this global in .eslintrc.json would create a danger of using the global - // unguarded in another place, it seems safer to define global only for this module - - - - var - version = "3.2.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android <=4.0 only - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }; - - jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice - }; - - jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // 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 ( i === length ) { - 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 plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - - if ( copyIsArray ) { - copyIsArray = false; - clone = src && Array.isArray( src ) ? src : []; - - } else { - clone = src && jQuery.isPlainObject( src ) ? src : {}; - } - - // 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( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isFunction: function( obj ) { - return jQuery.type( obj ) === "function"; - }, - - isWindow: function( obj ) { - return obj != null && obj === obj.window; - }, - - isNumeric: function( obj ) { - - // As of jQuery 3.0, isNumeric is limited to - // strings and numbers (primitives or objects) - // that can be coerced to finite numbers (gh-2662) - var type = jQuery.type( obj ); - return ( type === "number" || type === "string" ) && - - // parseFloat NaNs numeric-cast false positives ("") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - !isNaN( obj - parseFloat( obj ) ); - }, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - - /* eslint-disable no-unused-vars */ - // See https://github.com/eslint/eslint/issues/6125 - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; - }, - - // Evaluates a script in a global context - globalEval: function( code ) { - DOMEval( code ); - }, - - // Convert dashed to camelCase; used by the css and data modules - // Support: IE <=9 - 11, Edge 12 - 13 - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // Support: Android <=4.0 only - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var tmp, args, proxy; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: Date.now, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support - } ); - - if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; - } - - // Populate the class2type map - jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), - function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); - } ); - - function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; - } - var Sizzle = - /*! +!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";function r(e,t){t=t||re;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function a(e){var t=!!e&&"length"in e&&e.length,n=ye.type(e);return"function"!==n&&!ye.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function c(e,t,n){return ye.isFunction(t)?ye.grep(e,function(e,s){return!!t.call(e,s,e)!==n}):t.nodeType?ye.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ye.grep(e,function(e){return de.call(t,e)>-1!==n}):Ae.test(t)?ye.filter(t,e,n):(t=ye.filter(t,e),ye.grep(e,function(e){return de.call(t,e)>-1!==n&&1===e.nodeType}))}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var t={};return ye.each(e.match(Me)||[],function(e,n){t[n]=!0}),t}function p(e){return e}function f(e){throw e}function h(e,t,n,s){var i;try{e&&ye.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&ye.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(s))}catch(e){n.apply(void 0,[e])}}function m(){re.removeEventListener("DOMContentLoaded",m),n.removeEventListener("load",m),ye.ready()}function g(){this.expando=ye.expando+g.uid++}function v(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ue.test(e)?JSON.parse(e):e)}function b(e,t,n){var s;if(void 0===n&&1===e.nodeType)if(s="data-"+t.replace(Ve,"-$&").toLowerCase(),n=e.getAttribute(s),"string"==typeof n){try{n=v(n)}catch(e){}qe.set(e,t,n)}else n=void 0;return n}function y(e,t,n,s){var i,o=1,r=20,a=s?function(){return s.cur()}:function(){return ye.css(e,t,"")},l=a(),c=n&&n[3]||(ye.cssNumber[t]?"":"px"),u=(ye.cssNumber[t]||"px"!==c&&+l)&&We.exec(ye.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do o=o||".5",u/=o,ye.style(e,t,u+c);while(o!==(o=a()/l)&&1!==o&&--r)}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],s&&(s.unit=c,s.start=u,s.end=i)),i}function w(e){var t,n=e.ownerDocument,s=e.nodeName,i=Ye[s];return i?i:(t=n.body.appendChild(n.createElement(s)),i=ye.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Ye[s]=i,i)}function _(e,t){for(var n,s,i=[],o=0,r=e.length;o-1)i&&i.push(o);else if(c=ye.contains(o.ownerDocument,o),r=C(d.appendChild(o),"script"),c&&x(r),n)for(u=0;o=r[u++];)Je.test(o.type||"")&&n.push(o);return d}function k(){return!0}function S(){return!1}function T(){try{return re.activeElement}catch(e){}}function L(e,t,n,s,i,o){var r,a;if("object"==typeof t){"string"!=typeof n&&(s=s||n,n=void 0);for(a in t)L(e,a,n,s,t[a],o);return e}if(null==s&&null==i?(i=n,s=n=void 0):null==i&&("string"==typeof n?(i=s,s=void 0):(i=s,s=n,n=void 0)),i===!1)i=S;else if(!i)return e;return 1===o&&(r=i,i=function(e){return ye().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=ye.guid++)),e.each(function(){ye.event.add(this,t,i,s,n)})}function A(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?ye(">tbody",e)[0]||e:e}function I(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=lt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function R(e,t){var n,s,i,o,r,a,l,c;if(1===t.nodeType){if(je.hasData(e)&&(o=je.access(e),r=je.set(t,o),c=o.events)){delete r.handle,r.events={};for(i in c)for(n=0,s=c[i].length;n1&&"string"==typeof h&&!ve.checkClone&&at.test(h))return e.each(function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),D(o,t,n,s)});if(p&&(i=E(t,e[0].ownerDocument,!1,e,s),o=i.firstChild,1===i.childNodes.length&&(i=o),o||s)){for(a=ye.map(C(i,"script"),I),l=a.length;d=0&&n+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - disabledAncestor = addCombinator( - function( elem ) { - return elem.disabled === true && ("form" in elem || "label" in elem); - }, - { dir: "parentNode", next: "legend" } - ); - - // Optimize for push.apply( _, NodeList ) - try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; - } catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; - } - - function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - - // ID selector - if ( (m = match[1]) ) { - - // Document context - if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !compilerCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - - if ( nodeType !== 1 ) { - newContext = context; - newSelector = selector; - - // qSA looks outside Element context, which is not what we want - // Thanks to Andrew Dupont for this workaround technique - // Support: IE <=8 - // Exclude object elements - } else if ( context.nodeName.toLowerCase() !== "object" ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", (nid = expando) ); - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[i] = "#" + nid + " " + toSelector( groups[i] ); - } - newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); - } - - /** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ - function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; - } - - /** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ - function markFunction( fn ) { - fn[ expando ] = true; - return fn; - } - - /** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ - function assert( fn ) { - var el = document.createElement("fieldset"); - - try { - return !!fn( el ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - // release memory in IE - el = null; - } - } - - /** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ - function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } - } - - /** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ - function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; - } - - /** - * Returns a function to use in pseudos for input types - * @param {String} type - */ - function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; - } - - /** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ - function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; - } - - /** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ - function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - disabledAncestor( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; - } - - /** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ - function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); - } - - /** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ - function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; - } - - // Expose support vars for convenience - support = Sizzle.support = {}; - - /** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ - isXML = 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).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; - }; - - /** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ - setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( preferredDoc !== document && - (subWindow = document.defaultView) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( el ) { - el.className = "i"; - return !el.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( el ) { - el.appendChild( document.createComment("") ); - return !el.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); - - // ID filter and find - if ( support.getById ) { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( (elem = elems[i++]) ) { - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( el ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll(":enabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll(":disabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( el ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return document; - }; - - Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); - }; - - Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - !compilerCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; - }; - - Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); - }; - - Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; - }; - - Sizzle.escape = function( sel ) { - return (sel + "").replace( rcssescape, fcssescape ); - }; - - Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); - }; - - /** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ - Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; - }; - - /** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ - getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; - }; - - Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - // Use previously-cached element index if available - if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } - }; - - Expr.pseudos["nth"] = Expr.pseudos["eq"]; - - // Add button/input type pseudos - for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); - } - for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); - } - - // Easy API for creating new setFilters - function setFilters() {} - setFilters.prototype = Expr.filters = Expr.pseudos; - Expr.setFilters = new setFilters(); - - tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); - }; - - function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; - } - - function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( (oldCache = uniqueCache[ key ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - return false; - }; - } - - function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; - } - - function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; - } - - function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; - } - - function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); - } - - function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); - } - - function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context === document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - if ( !context && elem.ownerDocument !== document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; - } - - compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; - }; - - /** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against +function(e){function t(e,t,n,s){var i,o,r,a,l,c,u,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!s&&((t?t.ownerDocument||t:q)!==P&&R(t),t=t||P,M)){if(11!==h&&(l=ve.exec(e)))if(i=l[1]){if(9===h){if(!(r=t.getElementById(i)))return n;if(r.id===i)return n.push(r),n}else if(p&&(r=p.getElementById(i))&&B(t,r)&&r.id===i)return n.push(r),n}else{if(l[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&C.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(C.qsa&&!$[e+" "]&&(!O||!O.test(e))){if(1!==h)p=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(_e,Ce):t.setAttribute("id",a=j),c=S(e),o=c.length;o--;)c[o]="#"+a+" "+f(c[o]);u=c.join(","),p=be.test(e)&&d(t.parentNode)||t}if(u)try{return J.apply(n,p.querySelectorAll(u)),n}catch(e){}finally{a===j&&t.removeAttribute("id")}}}return L(e.replace(ae,"$1"),t,n,s)}function n(){function e(n,s){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=s}var t=[];return e}function s(e){return e[j]=!0,e}function i(e){var t=P.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),s=n.length;s--;)x.attrHandle[n[s]]=t}function r(e,t){var n=t&&e,s=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(s)return s;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ee(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return s(function(t){return t=+t,s(function(n,s){for(var i,o=e([],n.length,t),r=o.length;r--;)n[i=o[r]]&&(n[i]=!(s[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function f(e){for(var t=0,n=e.length,s="";t1?function(t,n,s){for(var i=e.length;i--;)if(!e[i](t,n,s))return!1;return!0}:e[0]}function g(e,n,s){for(var i=0,o=n.length;i-1&&(s[c]=!(r[c]=d))}}else y=v(y===r?y.splice(h,y.length):y),o?o(null,r,y,l):J.apply(r,y)})}function y(e){for(var t,n,s,i=e.length,o=x.relative[e[0].type],r=o||x.relative[" "],a=o?1:0,l=h(function(e){return e===t},r,!0),c=h(function(e){return ee(t,e)>-1},r,!0),u=[function(e,n,s){var i=!o&&(s||n!==A)||((t=n).nodeType?l(e,n,s):c(e,n,s));return t=null,i}];a1&&m(u),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a0,o=e.length>0,r=function(s,r,a,l,c){var u,d,p,f=0,h="0",m=s&&[],g=[],b=A,y=s||o&&x.find.TAG("*",c),w=U+=null==b?1:Math.random()||.1,_=y.length;for(c&&(A=r===P||r||c);h!==_&&null!=(u=y[h]);h++){if(o&&u){for(d=0,r||u.ownerDocument===P||(R(u),a=!M);p=e[d++];)if(p(u,r||P,a)){l.push(u);break}c&&(U=w)}i&&((u=!p&&u)&&f--,s&&m.push(u))}if(f+=h,i&&h!==f){for(d=0;p=n[d++];)p(m,g,r,a);if(s){if(f>0)for(;h--;)m[h]||g[h]||(g[h]=K.call(l));g=v(g)}J.apply(l,g),c&&!s&&g.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(U=w,A=b),m};return i?s(r):r}var _,C,x,E,k,S,T,L,A,I,N,R,P,D,M,O,F,H,B,j="sizzle"+1*new Date,q=e.document,U=0,V=0,z=n(),W=n(),$=n(),G=function(e,t){return e===t&&(N=!0),0},X={}.hasOwnProperty,Y=[],K=Y.pop,Z=Y.push,J=Y.push,Q=Y.slice,ee=function(e,t){for(var n=0,s=e.length;n+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(oe),pe=new RegExp("^"+se+"$"),fe={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var s="0x"+t-65536;return s!==s||n?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},_e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ce=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},xe=function(){R()},Ee=h(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(Y=Q.call(q.childNodes),q.childNodes),Y[q.childNodes.length].nodeType}catch(e){J={apply:Y.length?function(e,t){Z.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,s=0;e[n++]=t[s++];);e.length=n-1}}}C=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},R=t.setDocument=function(e){var t,n,s=e?e.ownerDocument||e:q;return s!==P&&9===s.nodeType&&s.documentElement?(P=s,D=P.documentElement,M=!k(P),q!==P&&(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),C.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=i(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=ge.test(P.getElementsByClassName),C.getById=i(function(e){return D.appendChild(e).id=j,!P.getElementsByName||!P.getElementsByName(j).length}),C.getById?(x.filter.ID=function(e){var t=e.replace(ye,we);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var t=e.replace(ye,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n,s,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),s=0;o=i[s++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),x.find.TAG=C.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):C.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,s=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&s.push(n);return s}return o},x.find.CLASS=C.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&M)return t.getElementsByClassName(e)},F=[],O=[],(C.qsa=ge.test(P.querySelectorAll))&&(i(function(e){D.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+j+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||O.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=P.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(C.matchesSelector=ge.test(H=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(e){C.disconnectedMatch=H.call(e,"*"),H.call(e,"[s!='']:x"),F.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),t=ge.test(D.compareDocumentPosition),B=t||ge.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,s=t&&t.parentNode;return e===s||!(!s||1!==s.nodeType||!(n.contains?n.contains(s):e.compareDocumentPosition&&16&e.compareDocumentPosition(s)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return N=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!C.sortDetached&&t.compareDocumentPosition(e)===n?e===P||e.ownerDocument===q&&B(q,e)?-1:t===P||t.ownerDocument===q&&B(q,t)?1:I?ee(I,e)-ee(I,t):0:4&n?-1:1)}:function(e,t){if(e===t)return N=!0,0;var n,s=0,i=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!i||!o)return e===P?-1:t===P?1:i?-1:o?1:I?ee(I,e)-ee(I,t):0;if(i===o)return r(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[s]===l[s];)s++;return s?r(a[s],l[s]):a[s]===q?-1:l[s]===q?1:0},P):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==P&&R(e),n=n.replace(ue,"='$1']"),C.matchesSelector&&M&&!$[n+" "]&&(!F||!F.test(n))&&(!O||!O.test(n)))try{var s=H.call(e,n);if(s||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return s}catch(e){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&R(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&R(e);var n=x.attrHandle[t.toLowerCase()],s=n&&X.call(x.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==s?s:C.attributes||!M?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},t.escape=function(e){return(e+"").replace(_e,Ce)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],s=0,i=0;if(N=!C.detectDuplicates,I=!C.sortStable&&e.slice(0),e.sort(G),N){for(;t=e[i++];)t===e[i]&&(s=n.push(i));for(;s--;)e.splice(n[s],1)}return I=null,e},E=t.getText=function(e){var t,n="",s=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[s++];)n+=E(t);return n},x=t.selectors={cacheLength:50,createPseudo:s,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,we),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,s){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===s:"!="===n?o!==s:"^="===n?s&&0===o.indexOf(s):"*="===n?s&&o.indexOf(s)>-1:"$="===n?s&&o.slice(-s.length)===s:"~="===n?(" "+o.replace(re," ")+" ").indexOf(s)>-1:"|="===n&&(o===s||o.slice(0,s.length+1)===s+"-"))}},CHILD:function(e,t,n,s,i){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===s&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,h,m=o!==r?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(g){if(o){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[r?g.firstChild:g.lastChild],r&&b){for(p=g,d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],f=c[0]===U&&c[1],y=f&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[U,f,y];break}}else if(b&&(p=t,d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],f=c[0]===U&&c[1],y=f),y===!1)for(;(p=++f&&p&&p[m]||(y=f=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(b&&(d=p[j]||(p[j]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),u[e]=[U,y]),p!==t)););return y-=i,y===s||y%s===0&&y/s>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[j]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?s(function(e,t){for(var s,i=o(e,n),r=i.length;r--;)s=ee(e,i[r]),e[s]=!(t[s]=i[r])}):function(e){return o(e,0,i)}):o}},pseudos:{not:s(function(e){var t=[],n=[],i=T(e.replace(ae,"$1"));return i[j]?s(function(e,t,n,s){for(var o,r=i(e,null,s,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))}):function(e,s,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:s(function(e){return function(n){return t(e,n).length>0}}),contains:s(function(e){return e=e.replace(ye,we),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:s(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,we).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n=0;)e.push(s);return e}),gt:u(function(e,t,n){for(var s=n<0?n+t:n;++s2&&"ID"===(r=o[0]).type&&9===t.nodeType&&M&&x.relative[o[1].type]){if(t=(x.find.ID(r.matches[0].replace(ye,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(r=o[i],!x.relative[a=r.type]);)if((l=x.find[a])&&(s=l(r.matches[0].replace(ye,we),be.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(i,1),e=s.length&&f(o),!e)return J.apply(n,s),n;break}}return(c||T(e,u))(s,t,!M,n,!t||be.test(e)&&d(t.parentNode)||t),n},C.sortStable=j.split("").sort(G).join("")===j,C.detectDuplicates=!!N,R(),C.sortDetached=i(function(e){return 1&e.compareDocumentPosition(P.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),C.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var s;if(!n)return e[t]===!0?t.toLowerCase():(s=e.getAttributeNode(t))&&s.specified?s.value:null}),t}(n);ye.find=Ee,ye.expr=Ee.selectors,ye.expr[":"]=ye.expr.pseudos,ye.uniqueSort=ye.unique=Ee.uniqueSort,ye.text=Ee.getText,ye.isXMLDoc=Ee.isXML,ye.contains=Ee.contains,ye.escapeSelector=Ee.escape;var ke=function(e,t,n){for(var s=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ye(e).is(n))break;s.push(e)}return s},Se=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=ye.expr.match.needsContext,Le=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ae=/^.[^:#\[\.,]*$/;ye.filter=function(e,t,n){var s=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===s.nodeType?ye.find.matchesSelector(s,e)?[s]:[]:ye.find.matches(e,ye.grep(t,function(e){return 1===e.nodeType}))},ye.fn.extend({find:function(e){var t,n,s=this.length,i=this;if("string"!=typeof e)return this.pushStack(ye(e).filter(function(){for(t=0;t1?ye.uniqueSort(n):n},filter:function(e){return this.pushStack(c(this,e||[],!1))},not:function(e){return this.pushStack(c(this,e||[],!0))},is:function(e){return!!c(this,"string"==typeof e&&Te.test(e)?ye(e):e||[],!1).length}});var Ie,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Re=ye.fn.init=function(e,t,n){var s,i;if(!e)return this;if(n=n||Ie,"string"==typeof e){if(s="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ne.exec(e),!s||!s[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof ye?t[0]:t,ye.merge(this,ye.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Le.test(s[1])&&ye.isPlainObject(t))for(s in t)ye.isFunction(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return i=re.getElementById(s[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye.isFunction(e)?void 0!==n.ready?n.ready(e):e(ye):ye.makeArray(e,this)};Re.prototype=ye.fn,Ie=ye(re);var Pe=/^(?:parents|prev(?:Until|All))/,De={children:!0,contents:!0,next:!0,prev:!0};ye.fn.extend({has:function(e){var t=ye(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&ye.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ye.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?de.call(ye(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ye.uniqueSort(ye.merge(this.get(),ye(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ye.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ke(e,"parentNode")},parentsUntil:function(e,t,n){return ke(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return ke(e,"nextSibling")},prevAll:function(e){return ke(e,"previousSibling")},nextUntil:function(e,t,n){return ke(e,"nextSibling",n)},prevUntil:function(e,t,n){return ke(e,"previousSibling",n)},siblings:function(e){return Se((e.parentNode||{}).firstChild,e)},children:function(e){return Se(e.firstChild)},contents:function(e){return l(e,"iframe")?e.contentDocument:(l(e,"template")&&(e=e.content||e),ye.merge([],e.childNodes))}},function(e,t){ye.fn[e]=function(n,s){var i=ye.map(this,t,n);return"Until"!==e.slice(-5)&&(s=n),s&&"string"==typeof s&&(i=ye.filter(s,i)),this.length>1&&(De[e]||ye.uniqueSort(i),Pe.test(e)&&i.reverse()),this.pushStack(i)}});var Me=/[^\x20\t\r\n\f]+/g;ye.Callbacks=function(e){e="string"==typeof e?d(e):ye.extend({},e);var t,n,s,i,o=[],r=[],a=-1,l=function(){for(i=i||e.once,s=t=!0;r.length;a=-1)for(n=r.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?ye.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=r=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=r=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],r.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!s}};return c},ye.extend({Deferred:function(e){var t=[["notify","progress",ye.Callbacks("memory"),ye.Callbacks("memory"),2],["resolve","done",ye.Callbacks("once memory"),ye.Callbacks("once memory"),0,"resolved"],["reject","fail",ye.Callbacks("once memory"),ye.Callbacks("once memory"),1,"rejected"]],s="pending",i={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return ye.Deferred(function(n){ye.each(t,function(t,s){var i=ye.isFunction(e[s[4]])&&e[s[4]];o[s[1]](function(){var e=i&&i.apply(this,arguments);e&&ye.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[s[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,s,i){function o(e,t,s,i){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e=r&&(s!==f&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(ye.Deferred.getStackHook&&(u.stackTrace=ye.Deferred.getStackHook()),n.setTimeout(u))}}var r=0;return ye.Deferred(function(n){t[0][3].add(o(0,n,ye.isFunction(i)?i:p,n.notifyWith)),t[1][3].add(o(0,n,ye.isFunction(e)?e:p)),t[2][3].add(o(0,n,ye.isFunction(s)?s:f))}).promise()},promise:function(e){return null!=e?ye.extend(e,i):i}},o={};return ye.each(t,function(e,n){var r=n[2],a=n[5];i[n[1]]=r.add,a&&r.add(function(){s=a},t[3-e][2].disable,t[0][2].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,s=Array(n),i=le.call(arguments),o=ye.Deferred(),r=function(e){return function(n){s[e]=this,i[e]=arguments.length>1?le.call(arguments):n,--t||o.resolveWith(s,i)}};if(t<=1&&(h(e,o.done(r(n)).resolve,o.reject,!t),"pending"===o.state()||ye.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)h(i[n],r(n),o.reject);return o.promise()}});var Oe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ye.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Oe.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ye.readyException=function(e){n.setTimeout(function(){throw e})};var Fe=ye.Deferred();ye.fn.ready=function(e){return Fe.then(e).catch(function(e){ye.readyException(e)}),this},ye.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--ye.readyWait:ye.isReady)||(ye.isReady=!0,e!==!0&&--ye.readyWait>0||Fe.resolveWith(re,[ye]))}}),ye.ready.then=Fe.then,"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll?n.setTimeout(ye.ready):(re.addEventListener("DOMContentLoaded",m),n.addEventListener("load",m));var He=function(e,t,n,s,i,o,r){var a=0,l=e.length,c=null==n;if("object"===ye.type(n)){i=!0;for(a in n)He(e,t,a,n[a],!0,o,r)}else if(void 0!==s&&(i=!0,ye.isFunction(s)||(r=!0),c&&(r?(t.call(e,s),t=null):(c=t,t=function(e,t,n){return c.call(ye(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){qe.remove(this,e)})}}),ye.extend({queue:function(e,t,n){var s;if(e)return t=(t||"fx")+"queue",s=je.get(e,t),n&&(!s||Array.isArray(n)?s=je.access(e,t,ye.makeArray(n)):s.push(n)),s||[]},dequeue:function(e,t){t=t||"fx";var n=ye.queue(e,t),s=n.length,i=n.shift(),o=ye._queueHooks(e,t),r=function(){ye.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),s--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,r,o)),!s&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return je.get(e,n)||je.access(e,n,{empty:ye.Callbacks("once memory").add(function(){je.remove(e,[t+"queue",n])})})}}),ye.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Je=/^$|\/(?:java|ecma)script/i,Qe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Qe.optgroup=Qe.option,Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead, +Qe.th=Qe.td;var et=/<|&#?\w+;/;!function(){var e=re.createDocumentFragment(),t=e.appendChild(re.createElement("div")),n=re.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ve.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",ve.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var tt=re.documentElement,nt=/^key/,st=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,it=/^([^.]*)(?:\.(.+)|)/;ye.event={global:{},add:function(e,t,n,s,i){var o,r,a,l,c,u,d,p,f,h,m,g=je.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&ye.find.matchesSelector(tt,i),n.guid||(n.guid=ye.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return"undefined"!=typeof ye&&ye.event.triggered!==t.type?ye.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Me)||[""],c=t.length;c--;)a=it.exec(t[c])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f&&(d=ye.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=ye.event.special[f]||{},u=ye.extend({type:f,origType:m,data:s,handler:n,guid:n.guid,selector:i,needsContext:i&&ye.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[f])||(p=l[f]=[],p.delegateCount=0,d.setup&&d.setup.call(e,s,h,r)!==!1||e.addEventListener&&e.addEventListener(f,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),ye.event.global[f]=!0)},remove:function(e,t,n,s,i){var o,r,a,l,c,u,d,p,f,h,m,g=je.hasData(e)&&je.get(e);if(g&&(l=g.events)){for(t=(t||"").match(Me)||[""],c=t.length;c--;)if(a=it.exec(t[c])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f){for(d=ye.event.special[f]||{},f=(s?d.delegateType:d.bindType)||f,p=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=p.length;o--;)u=p[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||s&&s!==u.selector&&("**"!==s||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));r&&!p.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||ye.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)ye.event.remove(e,f+t[c],n,s,!0);ye.isEmptyObject(l)&&je.remove(e,"handle events")}},dispatch:function(e){var t,n,s,i,o,r,a=ye.event.fix(e),l=new Array(arguments.length),c=(je.get(this,"events")||{})[a.type]||[],u=ye.event.special[a.type]||{};for(l[0]=a,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(o=[],r={},n=0;n-1:ye.find(i,this,null,[c]).length),r[i]&&o.push(s);o.length&&a.push({elem:c,handlers:o})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,rt=/\s*$/g;ye.extend({htmlPrefilter:function(e){return e.replace(ot,"<$1>")},clone:function(e,t,n){var s,i,o,r,a=e.cloneNode(!0),l=ye.contains(e.ownerDocument,e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ye.isXMLDoc(e)))for(r=C(a),o=C(e),s=0,i=o.length;s0&&x(r,!l&&C(e,"script")),a},cleanData:function(e){for(var t,n,s,i=ye.event.special,o=0;void 0!==(n=e[o]);o++)if(Be(n)){if(t=n[je.expando]){if(t.events)for(s in t.events)i[s]?ye.event.remove(n,s):ye.removeEvent(n,s,t.handle);n[je.expando]=void 0}n[qe.expando]&&(n[qe.expando]=void 0)}}}),ye.fn.extend({detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return He(this,function(e){return void 0===e?ye.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.appendChild(e)}})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ye.cleanData(C(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ye.clone(this,e,t)})},html:function(e){return He(this,function(e){var t=this[0]||{},n=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!Qe[(Ze.exec(e)||["",""])[1].toLowerCase()]){e=ye.htmlPrefilter(e);try{for(;n1)}}),ye.Tween=V,V.prototype={constructor:V,init:function(e,t,n,s,i,o){this.elem=e,this.prop=n,this.easing=i||ye.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=o||(ye.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=ye.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ye.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ye.fx.step[e.prop]?ye.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ye.cssProps[e.prop]]&&!ye.cssHooks[e.prop]?e.elem[e.prop]=e.now:ye.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ye.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ye.fx=V.prototype.init,ye.fx.step={};var yt,wt,_t=/^(?:toggle|show|hide)$/,Ct=/queueHooks$/;ye.Animation=ye.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,We.exec(t),n),n}]},tweener:function(e,t){ye.isFunction(e)?(t=e,e=["*"]):e=e.match(Me);for(var n,s=0,i=e.length;s1)},removeAttr:function(e){return this.each(function(){ye.removeAttr(this,e)})}}),ye.extend({attr:function(e,t,n){var s,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ye.prop(e,t,n):(1===o&&ye.isXMLDoc(e)||(i=ye.attrHooks[t.toLowerCase()]||(ye.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void ye.removeAttr(e,t):i&&"set"in i&&void 0!==(s=i.set(e,n,t))?s:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(s=i.get(e,t))?s:(s=ye.find.attr(e,t),null==s?void 0:s))},attrHooks:{type:{set:function(e,t){if(!ve.radioValue&&"radio"===t&&l(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,s=0,i=t&&t.match(Me);if(i&&1===e.nodeType)for(;n=i[s++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return t===!1?ye.removeAttr(e,n):e.setAttribute(n,n),n}},ye.each(ye.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Et[t]||ye.find.attr;Et[t]=function(e,t,s){var i,o,r=t.toLowerCase();return s||(o=Et[r],Et[r]=i,i=null!=n(e,t,s)?r:null,Et[r]=o),i}});var kt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;ye.fn.extend({prop:function(e,t){return He(this,ye.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ye.propFix[e]||e]})}}),ye.extend({prop:function(e,t,n){var s,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ye.isXMLDoc(e)||(t=ye.propFix[t]||t,i=ye.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(s=i.set(e,n,t))?s:e[t]=n:i&&"get"in i&&null!==(s=i.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=ye.find.attr(e,"tabindex");return t?parseInt(t,10):kt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ve.optSelected||(ye.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ye.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ye.propFix[this.toLowerCase()]=this}),ye.fn.extend({addClass:function(e){var t,n,s,i,o,r,a,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).addClass(e.call(this,t,J(this)))});if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(i=J(n),s=1===n.nodeType&&" "+Z(i)+" "){for(r=0;o=t[r++];)s.indexOf(" "+o+" ")<0&&(s+=o+" ");a=Z(s),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,s,i,o,r,a,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).removeClass(e.call(this,t,J(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(i=J(n),s=1===n.nodeType&&" "+Z(i)+" "){for(r=0;o=t[r++];)for(;s.indexOf(" "+o+" ")>-1;)s=s.replace(" "+o+" "," ");a=Z(s),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ye.isFunction(e)?this.each(function(n){ye(this).toggleClass(e.call(this,n,J(this),t),t)}):this.each(function(){var t,s,i,o;if("string"===n)for(s=0,i=ye(this),o=e.match(Me)||[];t=o[s++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=J(this),t&&je.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":je.get(this,"__className__")||""))})},hasClass:function(e){var t,n,s=0;for(t=" "+e+" ";n=this[s++];)if(1===n.nodeType&&(" "+Z(J(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;ye.fn.extend({val:function(e){var t,n,s,i=this[0];{if(arguments.length)return s=ye.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=s?e.call(this,n,ye(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=ye.map(i,function(e){return null==e?"":e+""})),t=ye.valHooks[this.type]||ye.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ye.valHooks[i.type]||ye.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Tt,""):null==n?"":n)}}}),ye.extend({valHooks:{option:{get:function(e){var t=ye.find.attr(e,"value");return null!=t?t:Z(ye.text(e))}},select:{get:function(e){var t,n,s,i=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],c=r?o+1:i.length;for(s=o<0?c:r?o:0;s-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ye.each(["radio","checkbox"],function(){ye.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ye.inArray(ye(e).val(),t)>-1}},ve.checkOn||(ye.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt=/^(?:focusinfocus|focusoutblur)$/;ye.extend(ye.event,{trigger:function(e,t,s,i){var o,r,a,l,c,u,d,p=[s||re],f=he.call(e,"type")?e.type:e,h=he.call(e,"namespace")?e.namespace.split("."):[];if(r=a=s=s||re,3!==s.nodeType&&8!==s.nodeType&&!Lt.test(f+ye.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,e=e[ye.expando]?e:new ye.Event(f,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=s),t=null==t?[e]:ye.makeArray(t,[e]),d=ye.event.special[f]||{},i||!d.trigger||d.trigger.apply(s,t)!==!1)){if(!i&&!d.noBubble&&!ye.isWindow(s)){for(l=d.delegateType||f,Lt.test(l+f)||(r=r.parentNode);r;r=r.parentNode)p.push(r),a=r;a===(s.ownerDocument||re)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:d.bindType||f,u=(je.get(r,"events")||{})[e.type]&&je.get(r,"handle"),u&&u.apply(r,t),u=c&&r[c],u&&u.apply&&Be(r)&&(e.result=u.apply(r,t),e.result===!1&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),t)!==!1||!Be(s)||c&&ye.isFunction(s[f])&&!ye.isWindow(s)&&(a=s[c],a&&(s[c]=null),ye.event.triggered=f,s[f](),ye.event.triggered=void 0,a&&(s[c]=a)),e.result}},simulate:function(e,t,n){var s=ye.extend(new ye.Event,n,{type:e,isSimulated:!0});ye.event.trigger(s,null,t)}}),ye.fn.extend({trigger:function(e,t){return this.each(function(){ye.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ye.event.trigger(e,t,n,!0)}}),ye.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ye.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ye.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ve.focusin="onfocusin"in n,ve.focusin||ye.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ye.event.simulate(t,e.target,ye.event.fix(e))};ye.event.special[t]={setup:function(){var s=this.ownerDocument||this,i=je.access(s,t);i||s.addEventListener(e,n,!0),je.access(s,t,(i||0)+1)},teardown:function(){var s=this.ownerDocument||this,i=je.access(s,t)-1;i?je.access(s,t,i):(s.removeEventListener(e,n,!0),je.remove(s,t))}}});var At=n.location,It=ye.now(),Nt=/\?/;ye.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ye.error("Invalid XML: "+e),t};var Rt=/\[\]$/,Pt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;ye.param=function(e,t){var n,s=[],i=function(e,t){var n=ye.isFunction(t)?t():t;s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!ye.isPlainObject(e))ye.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return s.join("&")},ye.fn.extend({serialize:function(){return ye.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ye.prop(this,"elements");return e?ye.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ye(this).is(":disabled")&&Mt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var n=ye(this).val();return null==n?null:Array.isArray(n)?ye.map(n,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:n.replace(Pt,"\r\n")}}).get()}});var Ot=/%20/g,Ft=/#.*$/,Ht=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Vt={},zt={},Wt="*/".concat("*"),$t=re.createElement("a");$t.href=At.href,ye.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:jt.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ye.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ne(ne(e,ye.ajaxSettings),t):ne(ye.ajaxSettings,e)},ajaxPrefilter:ee(Vt),ajaxTransport:ee(zt),ajax:function(e,t){function s(e,t,s,a){var c,p,f,w,_,C=t;u||(u=!0,l&&n.clearTimeout(l),i=void 0,r=a||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(w=se(h,x,s)),w=ie(h,w,x,c),c?(h.ifModified&&(_=x.getResponseHeader("Last-Modified"),_&&(ye.lastModified[o]=_),_=x.getResponseHeader("etag"),_&&(ye.etag[o]=_)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=w.state,p=w.data,f=w.error,c=!f)):(f=C,!e&&C||(C="error",e<0&&(e=0))),x.status=e,x.statusText=(t||C)+"",c?v.resolveWith(m,[p,C,x]):v.rejectWith(m,[x,C,f]),x.statusCode(y),y=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?p:f]),b.fireWith(m,[x,C]),d&&(g.trigger("ajaxComplete",[x,h]),--ye.active||ye.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,r,a,l,c,u,d,p,f,h=ye.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?ye(m):ye.event,v=ye.Deferred(),b=ye.Callbacks("once memory"),y=h.statusCode||{},w={},_={},C="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Bt.exec(r);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),s(0,t),this}};if(v.promise(x),h.url=((e||h.url||At.href)+"").replace(Ut,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Me)||[""],null==h.crossDomain){c=re.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=$t.protocol+"//"+$t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ye.param(h.data,h.traditional)),te(Vt,h,t,x),u)return x;d=ye.event&&h.global,d&&0===ye.active++&&ye.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!qt.test(h.type),o=h.url.replace(Ft,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(f=h.url.slice(o.length),h.data&&(o+=(Nt.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(Ht,"$1"),f=(Nt.test(o)?"&":"?")+"_="+It++ +f),h.url=o+f),h.ifModified&&(ye.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ye.lastModified[o]),ye.etag[o]&&x.setRequestHeader("If-None-Match",ye.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)x.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(m,x,h)===!1||u))return x.abort();if(C="abort",b.add(h.complete),x.done(h.success),x.fail(h.error),i=te(zt,h,t,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,h]),u)return x;h.async&&h.timeout>0&&(l=n.setTimeout(function(){x.abort("timeout")},h.timeout));try{u=!1,i.send(w,s)}catch(e){if(u)throw e;s(-1,e)}}else s(-1,"No Transport");return x},getJSON:function(e,t,n){return ye.get(e,t,n,"json")},getScript:function(e,t){return ye.get(e,void 0,t,"script")}}),ye.each(["get","post"],function(e,t){ye[t]=function(e,n,s,i){return ye.isFunction(n)&&(i=i||s,s=n,n=void 0),ye.ajax(ye.extend({url:e,type:t,dataType:i,data:n,success:s},ye.isPlainObject(e)&&e))}}),ye._evalUrl=function(e){return ye.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ye.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye.isFunction(e)&&(e=e.call(this[0])),t=ye(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye.isFunction(e)?this.each(function(t){ye(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ye(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye.isFunction(e);return this.each(function(n){ye(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ye(this).replaceWith(this.childNodes)}),this}}),ye.expr.pseudos.hidden=function(e){return!ye.expr.pseudos.visible(e)},ye.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length); +},ye.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Xt=ye.ajaxSettings.xhr();ve.cors=!!Xt&&"withCredentials"in Xt,ve.ajax=Xt=!!Xt,ye.ajaxTransport(function(e){var t,s;if(ve.cors||Xt&&!e.crossDomain)return{send:function(i,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)a.setRequestHeader(r,i[r]);t=function(e){return function(){t&&(t=s=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),s=a.onerror=t("error"),void 0!==a.onabort?a.onabort=s:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&s()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ye.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ye.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ye.globalEval(e),e}}}),ye.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ye.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(s,i){t=ye(" - - - - - -
-
-
-
- - Coderockr Logo -
-

- +55 47 3227-6359     - contato@coderockr.com -

- -
-
-
-
-
- -
- - - - - - - - - - - - diff --git a/dist/components/header.html b/dist/components/header.html deleted file mode 100644 index c6d09ee..0000000 --- a/dist/components/header.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - diff --git a/dist/crossdomain.xml b/dist/crossdomain.xml new file mode 100755 index 0000000..18d2d71 --- /dev/null +++ b/dist/crossdomain.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + diff --git a/dist/humans.txt b/dist/humans.txt new file mode 100644 index 0000000..673afbb --- /dev/null +++ b/dist/humans.txt @@ -0,0 +1,30 @@ +/* TEAM */ + CTO: Elton Luís Minetto + Contact: eminetto@coderockr.com + Twitter: @eminetto + + CEO: Julia Possamai + Contact: jpossamai@coderockr.com + Facebook: fb.me/juls.possamai + + Front-end Developer: Raony Marcondes + Contact: raony@coderockr.com + Facebook: fb.me/raonymarcondes + + Front-end Developer: Vinicius Dacal Lopes + Contact: vinicius@coderockr.com + Twitter: @vinicius_dacal + + Back-end Developer: Leandro Lugaresi + Contact: leandro@coderockr.com + Twitter: @leandrolugaresi + + Back-end Developer: Lucas Abreu + Contact: lucas@coderockr.com + Twitter: @LucasSantAbreu + +/* SITE */ + Last update: 2016/12/22 + Language: Portuguese + Doctype: HTML5 + IDE: Sublime Text From 86298e31343b8323362c54326513b653ebf44fd2 Mon Sep 17 00:00:00 2001 From: Anderson Zorrer Dalmina Date: Thu, 30 Aug 2018 09:59:18 -0300 Subject: [PATCH 3/3] Remove Leandro from team --- dist/about.html | 57 +-------------------------------------- src/templates/about.html | 58 +--------------------------------------- 2 files changed, 2 insertions(+), 113 deletions(-) diff --git a/dist/about.html b/dist/about.html index 91fb75b..a347dc6 100644 --- a/dist/about.html +++ b/dist/about.html @@ -260,62 +260,6 @@

JULIA POSSAMAI

-
  • -
    -
    -
    - Leandro Lugaresi -
    - -
    -
    -
    -

    LEANDRO LUGARESI

    - -
    -

    - Graduado em Análise e Desenvolvimento de Sistemas pela FTEC Bento Gonçalves. Trabalha com - o desenvolvimento em PHP desde 2011, e desde 2013 com Zend Framework 2 e Doctrine 2. Está - sempre buscando aprender mais sobre segurança, performance e modularidade em projetos web. - No seu tempo livre gosta de assistir séries e filmes, ficar ao ar livre, e aproveitar - os momentos com a sua namorada. -

    -
    -
    -
    - - - - - -
    -
  • @@ -639,6 +583,7 @@

    VOCÊ

    +
  • -
  • -
    -
    -
    - Leandro Lugaresi -
    - -
    -
    -
    -

    LEANDRO LUGARESI

    - -
    -

    - Graduado em Análise e Desenvolvimento de Sistemas pela FTEC Bento Gonçalves. Trabalha com - o desenvolvimento em PHP desde 2011, e desde 2013 com Zend Framework 2 e Doctrine 2. Está - sempre buscando aprender mais sobre segurança, performance e modularidade em projetos web. - No seu tempo livre gosta de assistir séries e filmes, ficar ao ar livre, e aproveitar - os momentos com a sua namorada. -

    -
    -
    -
    - - - - - -
    -
  • @@ -560,4 +504,4 @@

    VOCÊ

    {{> footer}} - \ No newline at end of file +