Skip to content

Instantly share code, notes, and snippets.

@joemaller
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaller/6f1a1814d28d8aebd88a to your computer and use it in GitHub Desktop.
Save joemaller/6f1a1814d28d8aebd88a to your computer and use it in GitHub Desktop.
AutoFill bookmarklet - For quickly populating web forms for testing.

To install, just copy this url into a bookmark:

javascript:(function(){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='https://rawgit.com/joemaller/6f1a1814d28d8aebd88a/raw/autofill.js';document.getElementsByTagName('head')[0].appendChild(s);})()

Lightly tested, seems to work most everywhere.

!function e(t,n,a){function r(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return r(n?n:e)},c,c.exports,e,t,n,a)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<a.length;o++)r(a[o]);return r}({1:[function(e){"use strict";var t=e("jquery"),n=e("chance"),a=new n,r=function(e){var n=t(e),r=n.attr("type"),i=n.attr("name"),o=n.attr("id"),s=/e[-_.]?mail/i;if(s.test(r)||s.test(i)||s.test(o))return n.val(a.email());var u=/(url|web\s?(site|page)?)/i;if("url"===r||u.test(i)||u.test(o))return n.val(a.url());var l=/((mobile|tele)[- ]?)?phone/i;return n.val(l.test(i)||l.test(o)?a.phone():a.name({middle:a.bool()}))};t("input").not("[type=submit]").each(function(e,t){r(t)}),t("select").each(function(e,n){var r=t(n).find("option").length;t(n).find("option").eq(a.integer({min:1,max:r-1})).prop("selected",!0)}),t("textarea").each(function(){t(this).val(a.paragraph())})},{chance:6,jquery:7}],2:[function(e,t,n){function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);var r,i=typeof e;if("number"===i)r=e>0?e>>>0:0;else if("string"===i)"base64"===t&&(e=S(e)),r=a.byteLength(e,t);else{if("object"!==i||null===e)throw new TypeError("must start with number, buffer, array or string");"Buffer"===e.type&&I(e.data)&&(e=e.data),r=+e.length>0?Math.floor(+e.length):0}if(this.length>F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");var o;a.TYPED_ARRAY_SUPPORT?o=a._augment(new Uint8Array(r)):(o=this,o.length=r,o._isBuffer=!0);var s;if(a.TYPED_ARRAY_SUPPORT&&"number"==typeof e.byteLength)o._set(e);else if(A(e))if(a.isBuffer(e))for(s=0;r>s;s++)o[s]=e.readUInt8(s);else for(s=0;r>s;s++)o[s]=(e[s]%256+256)%256;else if("string"===i)o.write(e,0,t);else if("number"===i&&!a.TYPED_ARRAY_SUPPORT&&!n)for(s=0;r>s;s++)o[s]=0;return o}function r(e,t,n,a){n=Number(n)||0;var r=e.length-n;a?(a=Number(a),a>r&&(a=r)):a=r;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;a>o;o++){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[n+o]=s}return o}function i(e,t,n,a){var r=L(M(t),e,n,a);return r}function o(e,t,n,a){var r=L(D(t),e,n,a);return r}function s(e,t,n,a){return o(e,t,n,a)}function u(e,t,n,a){var r=L(k(t),e,n,a);return r}function l(e,t,n,a){var r=L(N(t),e,n,a,2);return r}function c(e,t,n){return P.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function h(e,t,n){var a="",r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)e[i]<=127?(a+=B(r)+String.fromCharCode(e[i]),r=""):r+="%"+e[i].toString(16);return a+B(r)}function f(e,t,n){var a="";n=Math.min(e.length,n);for(var r=t;n>r;r++)a+=String.fromCharCode(e[r]);return a}function d(e,t,n){return f(e,t,n)}function p(e,t,n){var a=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>a)&&(n=a);for(var r="",i=t;n>i;i++)r+=E(e[i]);return r}function m(e,t,n){for(var a=e.slice(t,n),r="",i=0;i<a.length;i+=2)r+=String.fromCharCode(a[i]+256*a[i+1]);return r}function b(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function g(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||o>t)throw new TypeError("value is out of bounds");if(n+r>e.length)throw new TypeError("index out of range")}function v(e,t,n,a){0>t&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);i>r;r++)e[n+r]=(t&255<<8*(a?r:1-r))>>>8*(a?r:1-r)}function y(e,t,n,a){0>t&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);i>r;r++)e[n+r]=t>>>8*(a?r:3-r)&255}function x(e,t,n,a,r,i){if(t>r||i>t)throw new TypeError("value is out of bounds");if(n+a>e.length)throw new TypeError("index out of range")}function w(e,t,n,a,r){return r||x(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),R.write(e,t,n,a,23,4),n+4}function C(e,t,n,a,r){return r||x(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),R.write(e,t,n,a,52,8),n+8}function S(e){for(e=T(e).replace(_,"");e.length%4!==0;)e+="=";return e}function T(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function A(e){return I(e)||a.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function E(e){return 16>e?"0"+e.toString(16):e.toString(16)}function M(e){for(var t=[],n=0;n<e.length;n++){var a=e.charCodeAt(n);if(127>=a)t.push(a);else{var r=n;a>=55296&&57343>=a&&n++;for(var i=encodeURIComponent(e.slice(r,n+1)).substr(1).split("%"),o=0;o<i.length;o++)t.push(parseInt(i[o],16))}}return t}function D(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function N(e){for(var t,n,a,r=[],i=0;i<e.length;i++)t=e.charCodeAt(i),n=t>>8,a=t%256,r.push(a),r.push(n);return r}function k(e){return P.toByteArray(e)}function L(e,t,n,a,r){r&&(a-=a%r);for(var i=0;a>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function B(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var P=e("base64-js"),R=e("ieee754"),I=e("is-array");n.Buffer=a,n.SlowBuffer=a,n.INSPECT_MAX_BYTES=50,a.poolSize=8192;var F=1073741823;a.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);o>i&&e[i]===t[i];i++);return i!==o&&(n=e[i],r=t[i]),r>n?-1:n>r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!I(e))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===e.length)return new a(0);if(1===e.length)return e[0];var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new a(t),i=0;for(n=0;n<e.length;n++){var o=e[n];o.copy(r,i),i+=o.length}return r},a.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"ascii":case"binary":case"raw":n=e.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;case"hex":n=e.length>>>1;break;case"utf8":case"utf-8":n=M(e).length;break;case"base64":n=k(e).length;break;default:n=e.length}return n},a.prototype.length=void 0,a.prototype.parent=void 0,a.prototype.toString=function(e,t,n){var a=!1;if(t>>>=0,n=void 0===n||1/0===n?this.length:n>>>0,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return p(this,t,n);case"utf8":case"utf-8":return h(this,t,n);case"ascii":return f(this,t,n);case"binary":return d(this,t,n);case"base64":return c(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,t,n);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return 0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return a.compare(this,e)},a.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},a.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},a.prototype.write=function(e,t,n,a){if(isFinite(t))isFinite(n)||(a=n,n=void 0);else{var c=a;a=t,t=n,n=c}t=Number(t)||0;var h=this.length-t;n?(n=Number(n),n>h&&(n=h)):n=h,a=String(a||"utf8").toLowerCase();var f;switch(a){case"hex":f=r(this,e,t,n);break;case"utf8":case"utf-8":f=i(this,e,t,n);break;case"ascii":f=o(this,e,t,n);break;case"binary":f=s(this,e,t,n);break;case"base64":f=u(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=l(this,e,t,n);break;default:throw new TypeError("Unknown encoding: "+a)}return f},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;if(e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e),a.TYPED_ARRAY_SUPPORT)return a._augment(this.subarray(e,t));for(var r=t-e,i=new a(r,void 0,!0),o=0;r>o;o++)i[o]=this[o+e];return i},a.prototype.readUInt8=function(e,t){return t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readInt8=function(e,t){return t||b(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||b(e,4,this.length),R.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||b(e,4,this.length),R.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||b(e,8,this.length),R.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||b(e,8,this.length),R.read(this,e,!1,52,8)},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):v(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):v(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):y(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):y(this,e,t,!1),t+4},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):v(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):v(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):y(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||g(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):y(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==i.length){if(n>r)throw new TypeError("sourceEnd < sourceStart");if(0>t||t>=e.length)throw new TypeError("targetStart out of bounds");if(0>n||n>=i.length)throw new TypeError("sourceStart out of bounds");if(0>r||r>i.length)throw new TypeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(1e3>o||!a.TYPED_ARRAY_SUPPORT)for(var s=0;o>s;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+o),t)}},a.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new TypeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new TypeError("start out of bounds");if(0>n||n>this.length)throw new TypeError("end out of bounds");var a;if("number"==typeof e)for(a=t;n>a;a++)this[a]=e;else{var r=M(e.toString()),i=r.length;for(a=t;n>a;a++)this[a]=r[a%i]}return this}},a.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(a.TYPED_ARRAY_SUPPORT)return new a(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var H=a.prototype;a._augment=function(e){return e.constructor=a,e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=H.get,e.set=H.set,e.write=H.write,e.toString=H.toString,e.toLocaleString=H.toString,e.toJSON=H.toJSON,e.equals=H.equals,e.compare=H.compare,e.copy=H.copy,e.slice=H.slice,e.readUInt8=H.readUInt8,e.readUInt16LE=H.readUInt16LE,e.readUInt16BE=H.readUInt16BE,e.readUInt32LE=H.readUInt32LE,e.readUInt32BE=H.readUInt32BE,e.readInt8=H.readInt8,e.readInt16LE=H.readInt16LE,e.readInt16BE=H.readInt16BE,e.readInt32LE=H.readInt32LE,e.readInt32BE=H.readInt32BE,e.readFloatLE=H.readFloatLE,e.readFloatBE=H.readFloatBE,e.readDoubleLE=H.readDoubleLE,e.readDoubleBE=H.readDoubleBE,e.writeUInt8=H.writeUInt8,e.writeUInt16LE=H.writeUInt16LE,e.writeUInt16BE=H.writeUInt16BE,e.writeUInt32LE=H.writeUInt32LE,e.writeUInt32BE=H.writeUInt32BE,e.writeInt8=H.writeInt8,e.writeInt16LE=H.writeInt16LE,e.writeInt16BE=H.writeInt16BE,e.writeInt32LE=H.writeInt32LE,e.writeInt32BE=H.writeInt32BE,e.writeFloatLE=H.writeFloatLE,e.writeFloatBE=H.writeFloatBE,e.writeDoubleLE=H.writeDoubleLE,e.writeDoubleBE=H.writeDoubleBE,e.fill=H.fill,e.inspect=H.inspect,e.toArrayBuffer=H.toArrayBuffer,e};var _=/[^+\/0-9A-z]/g},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(e,t,n){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===o?62:t===s?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function n(e){function n(e){l[h++]=e}var a,r,o,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new i(3*e.length/4-u),o=u>0?e.length-4:e.length;var h=0;for(a=0,r=0;o>a;a+=4,r+=3)s=t(e.charAt(a))<<18|t(e.charAt(a+1))<<12|t(e.charAt(a+2))<<6|t(e.charAt(a+3)),n((16711680&s)>>16),n((65280&s)>>8),n(255&s);return 2===u?(s=t(e.charAt(a))<<2|t(e.charAt(a+1))>>4,n(255&s)):1===u&&(s=t(e.charAt(a))<<10|t(e.charAt(a+1))<<4|t(e.charAt(a+2))>>2,n(s>>8&255),n(255&s)),l}function r(e){function t(e){return a.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var r,i,o,s=e.length%3,u="";for(r=0,o=e.length-s;o>r;r+=3)i=(e[r]<<16)+(e[r+1]<<8)+e[r+2],u+=n(i);switch(s){case 1:i=e[e.length-1],u+=t(i>>2),u+=t(i<<4&63),u+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],u+=t(i>>10),u+=t(i>>4&63),u+=t(i<<2&63),u+="="}return u}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);e.toByteArray=n,e.fromByteArray=r}("undefined"==typeof n?this.base64js={}:n)},{}],4:[function(e,t,n){n.read=function(e,t,n,a,r){var i,o,s=8*r-a-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?r-1:0,f=n?-1:1,d=e[t+h];for(h+=f,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+h],h+=f,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=f,c-=8);if(0===i)i=1-l;else{if(i===u)return o?0/0:1/0*(d?-1:1);o+=Math.pow(2,a),i-=l}return(d?-1:1)*o*Math.pow(2,i-a)},n.write=function(e,t,n,a,r,i){var o,s,u,l=8*i-r-1,c=(1<<l)-1,h=c>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+h>=1?f/u:f*Math.pow(2,1-h),t*u>=2&&(o++,u/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(t*u-1)*Math.pow(2,r),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;e[n+d]=255&s,d+=p,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*m}},{}],5:[function(e,t){var n=Array.isArray,a=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==a.call(e)}},{}],6:[function(e,t,n){(function(e){!function(){function a(e){if(!(this instanceof a))return new a(e);if("function"==typeof e)return this.random=e,this;var t;arguments.length&&(this.seed=0);for(var n=0;n<arguments.length;n++){if(t=0,"string"==typeof arguments[n])for(var r=0;r<arguments[n].length;r++)t+=(arguments[n].length-r)*arguments[n].charCodeAt(r);else t=arguments[n];this.seed+=(arguments.length-n)*t}return this.mt=this.mersenne_twister(this.seed),this.random=function(){return this.mt.random(this.seed)},this}function r(e,t){if(e||(e={}),t)for(var n in t)"undefined"==typeof e[n]&&(e[n]=t[n]);return e}function i(e,t){if(e)throw new RangeError(t)}function o(e){return function(){return this.natural(e)}}function s(e,t){for(var n,a=x(e),r=0,i=a.length;i>r;r++)n=a[r],t[n]=e[n]||t[n]}function u(e,t){for(var n=0,a=e.length;a>n;n++)t[n]=e[n]}function l(e,t){var n=Array.isArray(e),a=t||(n?new Array(e.length):{});return n?u(e,a):s(e,a),a}var c=9007199254740992,h=-c,f="0123456789",d="abcdefghijklmnopqrstuvwxyz",p=d.toUpperCase(),m=f+"abcdef",b=Array.prototype.slice;a.prototype.VERSION="0.7.3";var g=function(){throw new Error("No Base64 encoder available.")};!function(){"function"==typeof btoa?g=btoa:"function"==typeof e&&(g=function(t){return new e(t).toString("base64")})}(),a.prototype.bool=function(e){return e=r(e,{likelihood:50}),i(e.likelihood<0||e.likelihood>100,"Chance: Likelihood accepts values from 0 to 100."),100*this.random()<e.likelihood},a.prototype.character=function(e){e=r(e);var t,n,a="!@#$%^&*()[]";return i(e.alpha&&e.symbols,"Chance: Cannot specify both alpha and symbols."),t="lower"===e.casing?d:"upper"===e.casing?p:d+p,n=e.pool?e.pool:e.alpha?t:e.symbols?a:t+f+a,n.charAt(this.natural({max:n.length-1}))},a.prototype.floating=function(e){var t;e=r(e,{fixed:4});var n=Math.pow(10,e.fixed);i(e.fixed&&e.precision,"Chance: Cannot specify both fixed and precision.");var a=c/n,o=-a;i(e.min&&e.fixed&&e.min<o,"Chance: Min specified is out of range with fixed. Min should be, at least, "+o),i(e.max&&e.fixed&&e.max>a,"Chance: Max specified is out of range with fixed. Max should be, at most, "+a),e=r(e,{min:o,max:a}),t=this.integer({min:e.min*n,max:e.max*n});var s=(t/n).toFixed(e.fixed);return parseFloat(s)},a.prototype.integer=function(e){return e=r(e,{min:h,max:c}),i(e.min>e.max,"Chance: Min cannot be greater than Max."),Math.floor(this.random()*(e.max-e.min+1)+e.min)},a.prototype.natural=function(e){return e=r(e,{min:0,max:c}),this.integer(e)},a.prototype.string=function(e){e=r(e);var t=e.length||this.natural({min:5,max:20}),n=e.pool,a=this.n(this.character,t,{pool:n});return a.join("")},a.prototype.capitalize=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},a.prototype.mixin=function(e){for(var t in e)a.prototype[t]=e[t];return this},a.prototype.unique=function(e,t,n){n=r(n,{comparator:function(e,t){return-1!==e.indexOf(t)}});for(var a,i=[],o=0,s=50*t,u=b.call(arguments,2);i.length<t;)if(a=e.apply(this,u),n.comparator(i,a)||(i.push(a),o=0),++o>s)throw new RangeError("Chance: num is likely too large for sample set");return i},a.prototype.n=function(e,t){"undefined"==typeof t&&(t=1);var n=t,a=[],r=b.call(arguments,2);for(n=Math.max(0,n),null;n--;null)a.push(e.apply(this,r));return a},a.prototype.pad=function(e,t,n){return n=n||"0",e+="",e.length>=t?e:new Array(t-e.length+1).join(n)+e},a.prototype.pick=function(e,t){if(0===e.length)throw new RangeError("Chance: Cannot pick() from an empty array");return t&&1!==t?this.shuffle(e).slice(0,t):e[this.natural({max:e.length-1})]},a.prototype.shuffle=function(e){for(var t=e.slice(0),n=[],a=0,r=Number(t.length),i=0;r>i;i++)a=this.natural({max:t.length-1}),n[i]=t[a],t.splice(a,1);return n},a.prototype.weighted=function(e,t){if(e.length!==t.length)throw new RangeError("Chance: length of array and weights must match");for(var n=t.length-1;n>=0;--n)t[n]<=0&&(e.splice(n,1),t.splice(n,1));if(t.some(function(e){return 1>e})){var a=t.reduce(function(e,t){return e>t?t:e},t[0]),r=1/a;t=t.map(function(e){return e*r})}var i,o=t.reduce(function(e,t){return e+t},0),s=this.natural({min:1,max:o}),u=0;return t.some(function(t,n){return u+t>=s?(i=e[n],!0):(u+=t,!1)}),i},a.prototype.paragraph=function(e){e=r(e);var t=e.sentences||this.natural({min:3,max:7}),n=this.n(this.sentence,t);return n.join(" ")},a.prototype.sentence=function(e){e=r(e);var t,n=e.words||this.natural({min:12,max:18}),a=this.n(this.word,n);return t=a.join(" "),t=this.capitalize(t)+"."},a.prototype.syllable=function(e){e=r(e);for(var t,n=e.length||this.natural({min:2,max:3}),a="bcdfghjklmnprstvwz",i="aeiou",o=a+i,s="",u=0;n>u;u++)t=this.character(0===u?{pool:o}:-1===a.indexOf(t)?{pool:a}:{pool:i}),s+=t;return s},a.prototype.word=function(e){e=r(e),i(e.syllables&&e.length,"Chance: Cannot specify both syllables AND length.");var t=e.syllables||this.natural({min:1,max:3}),n="";if(e.length){do n+=this.syllable();while(n.length<e.length);n=n.substring(0,e.length)}else for(var a=0;t>a;a++)n+=this.syllable();return n},a.prototype.age=function(e){e=r(e);var t;switch(e.type){case"child":t={min:1,max:12};break;case"teen":t={min:13,max:19};break;case"adult":t={min:18,max:65};break;case"senior":t={min:65,max:100};break;case"all":t={min:1,max:100};break;default:t={min:18,max:65}}return this.natural(t)},a.prototype.birthday=function(e){return e=r(e,{year:(new Date).getFullYear()-this.age(e)}),this.date(e)},a.prototype.cpf=function(){var e=this.n(this.natural,9,{max:9}),t=2*e[8]+3*e[7]+4*e[6]+5*e[5]+6*e[4]+7*e[3]+8*e[2]+9*e[1]+10*e[0];t=11-t%11,t>=10&&(t=0);var n=2*t+3*e[8]+4*e[7]+5*e[6]+6*e[5]+7*e[4]+8*e[3]+9*e[2]+10*e[1]+11*e[0];return n=11-n%11,n>=10&&(n=0),""+e[0]+e[1]+e[2]+"."+e[3]+e[4]+e[5]+"."+e[6]+e[7]+e[8]+"-"+t+n},a.prototype.first=function(e){return e=r(e,{gender:this.gender()}),this.pick(this.get("firstNames")[e.gender.toLowerCase()])},a.prototype.gender=function(){return this.pick(["Male","Female"])},a.prototype.last=function(){return this.pick(this.get("lastNames"))},a.prototype.name=function(e){e=r(e);var t,n=this.first(e),a=this.last();return t=e.middle?n+" "+this.first(e)+" "+a:e.middle_initial?n+" "+this.character({alpha:!0,casing:"upper"})+". "+a:n+" "+a,e.prefix&&(t=this.prefix(e)+" "+t),e.suffix&&(t=t+" "+this.suffix(e)),t},a.prototype.name_prefixes=function(e){e=e||"all",e=e.toLowerCase();var t=[{name:"Doctor",abbreviation:"Dr."}];return("male"===e||"all"===e)&&t.push({name:"Mister",abbreviation:"Mr."}),("female"===e||"all"===e)&&(t.push({name:"Miss",abbreviation:"Miss"}),t.push({name:"Misses",abbreviation:"Mrs."})),t},a.prototype.prefix=function(e){return this.name_prefix(e)},a.prototype.name_prefix=function(e){return e=r(e,{gender:"all"}),e.full?this.pick(this.name_prefixes(e.gender)).name:this.pick(this.name_prefixes(e.gender)).abbreviation},a.prototype.ssn=function(e){e=r(e,{ssnFour:!1,dashes:!0});var t,n="1234567890",a=e.dashes?"-":"";return t=e.ssnFour?this.string({pool:n,length:4}):this.string({pool:n,length:3})+a+this.string({pool:n,length:2})+a+this.string({pool:n,length:4})},a.prototype.name_suffixes=function(){var e=[{name:"Doctor of Osteopathic Medicine",abbreviation:"D.O."},{name:"Doctor of Philosophy",abbreviation:"Ph.D."},{name:"Esquire",abbreviation:"Esq."},{name:"Junior",abbreviation:"Jr."},{name:"Juris Doctor",abbreviation:"J.D."},{name:"Master of Arts",abbreviation:"M.A."},{name:"Master of Business Administration",abbreviation:"M.B.A."},{name:"Master of Science",abbreviation:"M.S."},{name:"Medical Doctor",abbreviation:"M.D."},{name:"Senior",abbreviation:"Sr."},{name:"The Third",abbreviation:"III"},{name:"The Fourth",abbreviation:"IV"}];return e},a.prototype.suffix=function(e){return this.name_suffix(e)},a.prototype.name_suffix=function(e){return e=r(e),e.full?this.pick(this.name_suffixes()).name:this.pick(this.name_suffixes()).abbreviation},a.prototype.android_id=function(){return"APA91"+this.string({pool:"0123456789abcefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_",length:178})},a.prototype.apple_token=function(){return this.string({pool:"abcdef1234567890",length:64})},a.prototype.wp8_anid2=function(){return g(this.hash({length:32}))},a.prototype.wp7_anid=function(){return"A="+this.guid().replace(/-/g,"").toUpperCase()+"&E="+this.hash({length:3})+"&W="+this.integer({min:0,max:9})},a.prototype.bb_pin=function(){return this.hash({length:8})},a.prototype.color=function(e){function t(e,t){return[e,e,e].join(t||"")}e=r(e,{format:this.pick(["hex","shorthex","rgb","0x"]),grayscale:!1,casing:"lower"});var n,a=e.grayscale;if("hex"===e.format)n="#"+(a?t(this.hash({length:2})):this.hash({length:6}));else if("shorthex"===e.format)n="#"+(a?t(this.hash({length:1})):this.hash({length:3}));else if("rgb"===e.format)n=a?"rgb("+t(this.natural({max:255}),",")+")":"rgb("+this.natural({max:255})+","+this.natural({max:255})+","+this.natural({max:255})+")";else{if("0x"!==e.format)throw new Error('Invalid format provided. Please provide one of "hex", "shorthex", "rgb" or "0x".');n="0x"+(a?t(this.hash({length:2})):this.hash({length:6}))}return"upper"===e.casing&&(n=n.toUpperCase()),n},a.prototype.domain=function(e){return e=r(e),this.word()+"."+(e.tld||this.tld())},a.prototype.email=function(e){return e=r(e),this.word({length:e.length})+"@"+(e.domain||this.domain())},a.prototype.fbid=function(){return parseInt("10000"+this.natural({max:1e11}),10)},a.prototype.google_analytics=function(){var e=this.pad(this.natural({max:999999}),6),t=this.pad(this.natural({max:99}),2);return"UA-"+e+"-"+t},a.prototype.hashtag=function(){return"#"+this.word()},a.prototype.ip=function(){return this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})},a.prototype.ipv6=function(){var e=this.n(this.hash,8,{length:4});return e.join(":")},a.prototype.klout=function(){return this.natural({min:1,max:99})},a.prototype.tlds=function(){return["com","org","edu","gov","co.uk","net","io"]},a.prototype.tld=function(){return this.pick(this.tlds())},a.prototype.twitter=function(){return"@"+this.word()},a.prototype.url=function(e){e=r(e,{protocol:"http",domain:this.domain(e),domain_prefix:"",path:this.word(),extensions:[]});var t=e.extensions.length>0?"."+this.pick(e.extensions):"",n=e.domain_prefix?e.domain_prefix+"."+e.domain:e.domain;return e.protocol+"://"+n+"/"+e.path+t},a.prototype.address=function(e){return e=r(e),this.natural({min:5,max:2e3})+" "+this.street(e)},a.prototype.altitude=function(e){return e=r(e,{fixed:5,max:8848}),this.floating({min:0,max:e.max,fixed:e.fixed})},a.prototype.areacode=function(e){e=r(e,{parens:!0});var t=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:8}).toString()+this.natural({min:0,max:9}).toString();return e.parens?"("+t+")":t},a.prototype.city=function(){return this.capitalize(this.word({syllables:3}))},a.prototype.coordinates=function(e){return e=r(e),this.latitude(e)+", "+this.longitude(e)},a.prototype.countries=function(){return this.get("countries")},a.prototype.country=function(e){e=r(e);var t=this.pick(this.countries());return e.full?t.name:t.abbreviation},a.prototype.depth=function(e){return e=r(e,{fixed:5,min:-2550}),this.floating({min:e.min,max:0,fixed:e.fixed})},a.prototype.geohash=function(e){return e=r(e,{length:7}),this.string({length:e.length,pool:"0123456789bcdefghjkmnpqrstuvwxyz"})},a.prototype.geojson=function(e){return e=r(e),this.latitude(e)+", "+this.longitude(e)+", "+this.altitude(e)},a.prototype.latitude=function(e){return e=r(e,{fixed:5,min:-90,max:90}),this.floating({min:e.min,max:e.max,fixed:e.fixed})},a.prototype.longitude=function(e){return e=r(e,{fixed:5,min:-180,max:180}),this.floating({min:e.min,max:e.max,fixed:e.fixed})},a.prototype.phone=function(e){var t,n=this,a=function(e){var t=[];return e.sections.forEach(function(e){t.push(n.string({pool:"0123456789",length:e}))}),e.area+t.join(" ")};e=r(e,{formatted:!0,country:"us",mobile:!1}),e.formatted||(e.parens=!1);var i;switch(e.country){case"fr":e.mobile?(t=this.pick(["06","07"])+n.string({pool:"0123456789",length:8}),i=e.formatted?t.match(/../g).join(" "):t):(t=this.pick(["01"+this.pick(["30","34","39","40","41","42","43","44","45","46","47","48","49","53","55","56","58","60","64","69","70","72","73","74","75","76","77","78","79","80","81","82","83"])+n.string({pool:"0123456789",length:6}),"02"+this.pick(["14","18","22","23","28","29","30","31","32","33","34","35","36","37","38","40","41","43","44","45","46","47","48","49","50","51","52","53","54","56","57","61","62","69","72","76","77","78","85","90","96","97","98","99"])+n.string({pool:"0123456789",length:6}),"03"+this.pick(["10","20","21","22","23","24","25","26","27","28","29","39","44","45","51","52","54","55","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","80","81","82","83","84","85","86","87","88","89","90"])+n.string({pool:"0123456789",length:6}),"04"+this.pick(["11","13","15","20","22","26","27","30","32","34","37","42","43","44","50","56","57","63","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","88","89","90","91","92","93","94","95","97","98"])+n.string({pool:"0123456789",length:6}),"05"+this.pick(["08","16","17","19","24","31","32","33","34","35","40","45","46","47","49","53","55","56","57","58","59","61","62","63","64","65","67","79","81","82","86","87","90","94"])+n.string({pool:"0123456789",length:6}),"09"+n.string({pool:"0123456789",length:8})]),i=e.formatted?t.match(/../g).join(" "):t);break;case"uk":e.mobile?(t=this.pick([{area:"07"+this.pick(["4","5","7","8","9"]),sections:[2,6]},{area:"07624 ",sections:[6]}]),i=e.formatted?a(t):a(t).replace(" ","")):(t=this.pick([{area:"01"+this.character({pool:"234569"})+"1 ",sections:[3,4]},{area:"020 "+this.character({pool:"378"}),sections:[3,4]},{area:"023 "+this.character({pool:"89"}),sections:[3,4]},{area:"024 7",sections:[3,4]},{area:"028 "+this.pick(["25","28","37","71","82","90","92","95"]),sections:[2,4]},{area:"012"+this.pick(["04","08","54","76","97","98"])+" ",sections:[5]},{area:"013"+this.pick(["63","64","84","86"])+" ",sections:[5]},{area:"014"+this.pick(["04","20","60","61","80","88"])+" ",sections:[5]},{area:"015"+this.pick(["24","27","62","66"])+" ",sections:[5]},{area:"016"+this.pick(["06","29","35","47","59","95"])+" ",sections:[5]},{area:"017"+this.pick(["26","44","50","68"])+" ",sections:[5]},{area:"018"+this.pick(["27","37","84","97"])+" ",sections:[5]},{area:"019"+this.pick(["00","05","35","46","49","63","95"])+" ",sections:[5]}]),i=e.formatted?a(t):a(t).replace(" ","","g"));break;case"us":var o=this.areacode(e).toString(),s=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:9}).toString()+this.natural({min:0,max:9}).toString(),u=this.natural({min:1e3,max:9999}).toString();i=e.formatted?o+" "+s+"-"+u:o+s+u}return i},a.prototype.postal=function(){var e=this.character({pool:"XVTSRPNKLMHJGECBA"}),t=e+this.natural({max:9})+this.character({alpha:!0,casing:"upper"}),n=this.natural({max:9})+this.character({alpha:!0,casing:"upper"})+this.natural({max:9});
return t+" "+n},a.prototype.provinces=function(){return this.get("provinces")},a.prototype.province=function(e){return e&&e.full?this.pick(this.provinces()).name:this.pick(this.provinces()).abbreviation},a.prototype.state=function(e){return e&&e.full?this.pick(this.states(e)).name:this.pick(this.states(e)).abbreviation},a.prototype.states=function(e){e=r(e);var t,n=this.get("us_states_and_dc"),a=this.get("territories"),i=this.get("armed_forces");return t=n,e.territories&&(t=t.concat(a)),e.armed_forces&&(t=t.concat(i)),t},a.prototype.street=function(e){e=r(e);var t=this.word({syllables:2});return t=this.capitalize(t),t+=" ",t+=e.short_suffix?this.street_suffix().abbreviation:this.street_suffix().name},a.prototype.street_suffix=function(){return this.pick(this.street_suffixes())},a.prototype.street_suffixes=function(){return this.get("street_suffixes")},a.prototype.zip=function(e){var t=this.n(this.natural,5,{max:9});return e&&e.plusfour===!0&&(t.push("-"),t=t.concat(this.n(this.natural,4,{max:9}))),t.join("")},a.prototype.ampm=function(){return this.bool()?"am":"pm"},a.prototype.date=function(e){var t,n;if(e&&(e.min||e.max)){e=r(e,{american:!0,string:!1});var a="undefined"!=typeof e.min?e.min.getTime():1,i="undefined"!=typeof e.max?e.max.getTime():864e13;n=new Date(this.natural({min:a,max:i}))}else{var o=this.month({raw:!0});e=r(e,{year:parseInt(this.year(),10),month:o.numeric-1,day:this.natural({min:1,max:o.days}),hour:this.hour(),minute:this.minute(),second:this.second(),millisecond:this.millisecond(),american:!0,string:!1}),n=new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}return t=e.american?n.getMonth()+1+"/"+n.getDate()+"/"+n.getFullYear():n.getDate()+"/"+(n.getMonth()+1)+"/"+n.getFullYear(),e.string?t:n},a.prototype.hammertime=function(e){return this.date(e).getTime()},a.prototype.hour=function(e){return e=r(e,{min:1,max:e&&e.twentyfour?24:12}),i(e.min<1,"Chance: Min cannot be less than 1."),i(e.twentyfour&&e.max>24,"Chance: Max cannot be greater than 24 for twentyfour option."),i(!e.twentyfour&&e.max>12,"Chance: Max cannot be greater than 12."),i(e.min>e.max,"Chance: Min cannot be greater than Max."),this.natural({min:e.min,max:e.max})},a.prototype.millisecond=function(){return this.natural({max:999})},a.prototype.minute=a.prototype.second=function(e){return e=r(e,{min:0,max:59}),i(e.min<0,"Chance: Min cannot be less than 0."),i(e.max>59,"Chance: Max cannot be greater than 59."),i(e.min>e.max,"Chance: Min cannot be greater than Max."),this.natural({min:e.min,max:e.max})},a.prototype.month=function(e){e=r(e,{min:1,max:12}),i(e.min<1,"Chance: Min cannot be less than 1."),i(e.max>12,"Chance: Max cannot be greater than 12."),i(e.min>e.max,"Chance: Min cannot be greater than Max.");var t=this.pick(this.months().slice(e.min-1,e.max));return e.raw?t:t.name},a.prototype.months=function(){return this.get("months")},a.prototype.second=function(){return this.natural({max:59})},a.prototype.timestamp=function(){return this.natural({min:1,max:parseInt((new Date).getTime()/1e3,10)})},a.prototype.year=function(e){return e=r(e,{min:(new Date).getFullYear()}),e.max="undefined"!=typeof e.max?e.max:e.min+100,this.natural(e).toString()},a.prototype.cc=function(e){e=r(e);var t,n,a;return t=this.cc_type(e.type?{name:e.type,raw:!0}:{raw:!0}),n=t.prefix.split(""),a=t.length-t.prefix.length-1,n=n.concat(this.n(this.integer,a,{min:0,max:9})),n.push(this.luhn_calculate(n.join(""))),n.join("")},a.prototype.cc_types=function(){return this.get("cc_types")},a.prototype.cc_type=function(e){e=r(e);var t=this.cc_types(),n=null;if(e.name){for(var a=0;a<t.length;a++)if(t[a].name===e.name||t[a].short_name===e.name){n=t[a];break}if(null===n)throw new Error("Credit card type '"+e.name+"'' is not supported")}else n=this.pick(t);return e.raw?n:n.name},a.prototype.currency_types=function(){return this.get("currency_types")},a.prototype.currency=function(){return this.pick(this.currency_types())},a.prototype.currency_pair=function(e){var t=this.unique(this.currency,2,{comparator:function(e,t){return e.reduce(function(e,n){return e||n.code===t.code},!1)}});return e?t[0]+"/"+t[1]:t},a.prototype.dollar=function(e){e=r(e,{max:1e4,min:0});var t=this.floating({min:e.min,max:e.max,fixed:2}).toString(),n=t.split(".")[1];return void 0===n?t+=".00":n.length<2&&(t+="0"),0>t?"-$"+t.replace("-",""):"$"+t},a.prototype.exp=function(e){e=r(e);var t={};return t.year=this.exp_year(),t.month=t.year===(new Date).getFullYear()?this.exp_month({future:!0}):this.exp_month(),e.raw?t:t.month+"/"+t.year},a.prototype.exp_month=function(e){e=r(e);var t,n,a=(new Date).getMonth();if(e.future){do t=this.month({raw:!0}).numeric,n=parseInt(t,10);while(a>n)}else t=this.month({raw:!0}).numeric;return t},a.prototype.exp_year=function(){return this.year({max:(new Date).getFullYear()+10})},a.prototype.d4=o({min:1,max:4}),a.prototype.d6=o({min:1,max:6}),a.prototype.d8=o({min:1,max:8}),a.prototype.d10=o({min:1,max:10}),a.prototype.d12=o({min:1,max:12}),a.prototype.d20=o({min:1,max:20}),a.prototype.d30=o({min:1,max:30}),a.prototype.d100=o({min:1,max:100}),a.prototype.rpg=function(e,t){if(t=r(t),null===e)throw new Error("A type of die roll must be included");var n=e.toLowerCase().split("d"),a=[];if(2!==n.length||!parseInt(n[0],10)||!parseInt(n[1],10))throw new Error("Invalid format provided. Please provide #d# where the first # is the number of dice to roll, the second # is the max of each die");for(var i=n[0];i>0;i--)a[i-1]=this.natural({min:1,max:n[1]});return"undefined"!=typeof t.sum&&t.sum?a.reduce(function(e,t){return e+t}):a},a.prototype.guid=function(e){e=r(e,{version:5});var t="abcdef1234567890",n="ab89",a=this.string({pool:t,length:8})+"-"+this.string({pool:t,length:4})+"-"+e.version+this.string({pool:t,length:3})+"-"+this.string({pool:n,length:1})+this.string({pool:t,length:3})+"-"+this.string({pool:t,length:12});return a},a.prototype.hash=function(e){e=r(e,{length:40,casing:"lower"});var t="upper"===e.casing?m.toUpperCase():m;return this.string({pool:t,length:e.length})},a.prototype.luhn_check=function(e){var t=e.toString(),n=+t.substring(t.length-1);return n===this.luhn_calculate(+t.substring(0,t.length-1))},a.prototype.luhn_calculate=function(e){for(var t,n=e.toString().split("").reverse(),a=0,r=0,i=n.length;i>r;++r)t=+n[r],r%2===0&&(t*=2,t>9&&(t-=9)),a+=t;return 9*a%10};var v={firstNames:{male:["James","John","Robert","Michael","William","David","Richard","Joseph","Charles","Thomas","Christopher","Daniel","Matthew","George","Donald","Anthony","Paul","Mark","Edward","Steven","Kenneth","Andrew","Brian","Joshua","Kevin","Ronald","Timothy","Jason","Jeffrey","Frank","Gary","Ryan","Nicholas","Eric","Stephen","Jacob","Larry","Jonathan","Scott","Raymond","Justin","Brandon","Gregory","Samuel","Benjamin","Patrick","Jack","Henry","Walter","Dennis","Jerry","Alexander","Peter","Tyler","Douglas","Harold","Aaron","Jose","Adam","Arthur","Zachary","Carl","Nathan","Albert","Kyle","Lawrence","Joe","Willie","Gerald","Roger","Keith","Jeremy","Terry","Harry","Ralph","Sean","Jesse","Roy","Louis","Billy","Austin","Bruce","Eugene","Christian","Bryan","Wayne","Russell","Howard","Fred","Ethan","Jordan","Philip","Alan","Juan","Randy","Vincent","Bobby","Dylan","Johnny","Phillip","Victor","Clarence","Ernest","Martin","Craig","Stanley","Shawn","Travis","Bradley","Leonard","Earl","Gabriel","Jimmy","Francis","Todd","Noah","Danny","Dale","Cody","Carlos","Allen","Frederick","Logan","Curtis","Alex","Joel","Luis","Norman","Marvin","Glenn","Tony","Nathaniel","Rodney","Melvin","Alfred","Steve","Cameron","Chad","Edwin","Caleb","Evan","Antonio","Lee","Herbert","Jeffery","Isaac","Derek","Ricky","Marcus","Theodore","Elijah","Luke","Jesus","Eddie","Troy","Mike","Dustin","Ray","Adrian","Bernard","Leroy","Angel","Randall","Wesley","Ian","Jared","Mason","Hunter","Calvin","Oscar","Clifford","Jay","Shane","Ronnie","Barry","Lucas","Corey","Manuel","Leo","Tommy","Warren","Jackson","Isaiah","Connor","Don","Dean","Jon","Julian","Miguel","Bill","Lloyd","Charlie","Mitchell","Leon","Jerome","Darrell","Jeremiah","Alvin","Brett","Seth","Floyd","Jim","Blake","Micheal","Gordon","Trevor","Lewis","Erik","Edgar","Vernon","Devin","Gavin","Jayden","Chris","Clyde","Tom","Derrick","Mario","Brent","Marc","Herman","Chase","Dominic","Ricardo","Franklin","Maurice","Max","Aiden","Owen","Lester","Gilbert","Elmer","Gene","Francisco","Glen","Cory","Garrett","Clayton","Sam","Jorge","Chester","Alejandro","Jeff","Harvey","Milton","Cole","Ivan","Andre","Duane","Landon"],female:["Mary","Emma","Elizabeth","Minnie","Margaret","Ida","Alice","Bertha","Sarah","Annie","Clara","Ella","Florence","Cora","Martha","Laura","Nellie","Grace","Carrie","Maude","Mabel","Bessie","Jennie","Gertrude","Julia","Hattie","Edith","Mattie","Rose","Catherine","Lillian","Ada","Lillie","Helen","Jessie","Louise","Ethel","Lula","Myrtle","Eva","Frances","Lena","Lucy","Edna","Maggie","Pearl","Daisy","Fannie","Josephine","Dora","Rosa","Katherine","Agnes","Marie","Nora","May","Mamie","Blanche","Stella","Ellen","Nancy","Effie","Sallie","Nettie","Della","Lizzie","Flora","Susie","Maud","Mae","Etta","Harriet","Sadie","Caroline","Katie","Lydia","Elsie","Kate","Susan","Mollie","Alma","Addie","Georgia","Eliza","Lulu","Nannie","Lottie","Amanda","Belle","Charlotte","Rebecca","Ruth","Viola","Olive","Amelia","Hannah","Jane","Virginia","Emily","Matilda","Irene","Kathryn","Esther","Willie","Henrietta","Ollie","Amy","Rachel","Sara","Estella","Theresa","Augusta","Ora","Pauline","Josie","Lola","Sophia","Leona","Anne","Mildred","Ann","Beulah","Callie","Lou","Delia","Eleanor","Barbara","Iva","Louisa","Maria","Mayme","Evelyn","Estelle","Nina","Betty","Marion","Bettie","Dorothy","Luella","Inez","Lela","Rosie","Allie","Millie","Janie","Cornelia","Victoria","Ruby","Winifred","Alta","Celia","Christine","Beatrice","Birdie","Harriett","Mable","Myra","Sophie","Tillie","Isabel","Sylvia","Carolyn","Isabelle","Leila","Sally","Ina","Essie","Bertie","Nell","Alberta","Katharine","Lora","Rena","Mina","Rhoda","Mathilda","Abbie","Eula","Dollie","Hettie","Eunice","Fanny","Ola","Lenora","Adelaide","Christina","Lelia","Nelle","Sue","Johanna","Lilly","Lucinda","Minerva","Lettie","Roxie","Cynthia","Helena","Hilda","Hulda","Bernice","Genevieve","Jean","Cordelia","Marian","Francis","Jeanette","Adeline","Gussie","Leah","Lois","Lura","Mittie","Hallie","Isabella","Olga","Phoebe","Teresa","Hester","Lida","Lina","Winnie","Claudia","Marguerite","Vera","Cecelia","Bess","Emilie","John","Rosetta","Verna","Myrtie","Cecilia","Elva","Olivia","Ophelia","Georgie","Elnora","Violet","Adele","Lily","Linnie","Loretta","Madge","Polly","Virgie","Eugenia","Lucile","Lucille","Mabelle","Rosalie"]},lastNames:["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White","Harris","Martin","Thompson","Garcia","Martinez","Robinson","Clark","Rodriguez","Lewis","Lee","Walker","Hall","Allen","Young","Hernandez","King","Wright","Lopez","Hill","Scott","Green","Adams","Baker","Gonzalez","Nelson","Carter","Mitchell","Perez","Roberts","Turner","Phillips","Campbell","Parker","Evans","Edwards","Collins","Stewart","Sanchez","Morris","Rogers","Reed","Cook","Morgan","Bell","Murphy","Bailey","Rivera","Cooper","Richardson","Cox","Howard","Ward","Torres","Peterson","Gray","Ramirez","James","Watson","Brooks","Kelly","Sanders","Price","Bennett","Wood","Barnes","Ross","Henderson","Coleman","Jenkins","Perry","Powell","Long","Patterson","Hughes","Flores","Washington","Butler","Simmons","Foster","Gonzales","Bryant","Alexander","Russell","Griffin","Diaz","Hayes","Myers","Ford","Hamilton","Graham","Sullivan","Wallace","Woods","Cole","West","Jordan","Owens","Reynolds","Fisher","Ellis","Harrison","Gibson","McDonald","Cruz","Marshall","Ortiz","Gomez","Murray","Freeman","Wells","Webb","Simpson","Stevens","Tucker","Porter","Hunter","Hicks","Crawford","Henry","Boyd","Mason","Morales","Kennedy","Warren","Dixon","Ramos","Reyes","Burns","Gordon","Shaw","Holmes","Rice","Robertson","Hunt","Black","Daniels","Palmer","Mills","Nichols","Grant","Knight","Ferguson","Rose","Stone","Hawkins","Dunn","Perkins","Hudson","Spencer","Gardner","Stephens","Payne","Pierce","Berry","Matthews","Arnold","Wagner","Willis","Ray","Watkins","Olson","Carroll","Duncan","Snyder","Hart","Cunningham","Bradley","Lane","Andrews","Ruiz","Harper","Fox","Riley","Armstrong","Carpenter","Weaver","Greene","Lawrence","Elliott","Chavez","Sims","Austin","Peters","Kelley","Franklin","Lawson","Fields","Gutierrez","Ryan","Schmidt","Carr","Vasquez","Castillo","Wheeler","Chapman","Oliver","Montgomery","Richards","Williamson","Johnston","Banks","Meyer","Bishop","McCoy","Howell","Alvarez","Morrison","Hansen","Fernandez","Garza","Harvey","Little","Burton","Stanley","Nguyen","George","Jacobs","Reid","Kim","Fuller","Lynch","Dean","Gilbert","Garrett","Romero","Welch","Larson","Frazier","Burke","Hanson","Day","Mendoza","Moreno","Bowman","Medina","Fowler","Brewer","Hoffman","Carlson","Silva","Pearson","Holland","Douglas","Fleming","Jensen","Vargas","Byrd","Davidson","Hopkins","May","Terry","Herrera","Wade","Soto","Walters","Curtis","Neal","Caldwell","Lowe","Jennings","Barnett","Graves","Jimenez","Horton","Shelton","Barrett","Obrien","Castro","Sutton","Gregory","McKinney","Lucas","Miles","Craig","Rodriquez","Chambers","Holt","Lambert","Fletcher","Watts","Bates","Hale","Rhodes","Pena","Beck","Newman","Haynes","McDaniel","Mendez","Bush","Vaughn","Parks","Dawson","Santiago","Norris","Hardy","Love","Steele","Curry","Powers","Schultz","Barker","Guzman","Page","Munoz","Ball","Keller","Chandler","Weber","Leonard","Walsh","Lyons","Ramsey","Wolfe","Schneider","Mullins","Benson","Sharp","Bowen","Daniel","Barber","Cummings","Hines","Baldwin","Griffith","Valdez","Hubbard","Salazar","Reeves","Warner","Stevenson","Burgess","Santos","Tate","Cross","Garner","Mann","Mack","Moss","Thornton","Dennis","McGee","Farmer","Delgado","Aguilar","Vega","Glover","Manning","Cohen","Harmon","Rodgers","Robbins","Newton","Todd","Blair","Higgins","Ingram","Reese","Cannon","Strickland","Townsend","Potter","Goodwin","Walton","Rowe","Hampton","Ortega","Patton","Swanson","Joseph","Francis","Goodman","Maldonado","Yates","Becker","Erickson","Hodges","Rios","Conner","Adkins","Webster","Norman","Malone","Hammond","Flowers","Cobb","Moody","Quinn","Blake","Maxwell","Pope","Floyd","Osborne","Paul","McCarthy","Guerrero","Lindsey","Estrada","Sandoval","Gibbs","Tyler","Gross","Fitzgerald","Stokes","Doyle","Sherman","Saunders","Wise","Colon","Gill","Alvarado","Greer","Padilla","Simon","Waters","Nunez","Ballard","Schwartz","McBride","Houston","Christensen","Klein","Pratt","Briggs","Parsons","McLaughlin","Zimmerman","French","Buchanan","Moran","Copeland","Roy","Pittman","Brady","McCormick","Holloway","Brock","Poole","Frank","Logan","Owen","Bass","Marsh","Drake","Wong","Jefferson","Park","Morton","Abbott","Sparks","Patrick","Norton","Huff","Clayton","Massey","Lloyd","Figueroa","Carson","Bowers","Roberson","Barton","Tran","Lamb","Harrington","Casey","Boone","Cortez","Clarke","Mathis","Singleton","Wilkins","Cain","Bryan","Underwood","Hogan","McKenzie","Collier","Luna","Phelps","McGuire","Allison","Bridges","Wilkerson","Nash","Summers","Atkins"],countries:[{name:"Afghanistan",abbreviation:"AF"},{name:"Albania",abbreviation:"AL"},{name:"Algeria",abbreviation:"DZ"},{name:"American Samoa",abbreviation:"AS"},{name:"Andorra",abbreviation:"AD"},{name:"Angola",abbreviation:"AO"},{name:"Anguilla",abbreviation:"AI"},{name:"Antarctica",abbreviation:"AQ"},{name:"Antigua and Barbuda",abbreviation:"AG"},{name:"Argentina",abbreviation:"AR"},{name:"Armenia",abbreviation:"AM"},{name:"Aruba",abbreviation:"AW"},{name:"Australia",abbreviation:"AU"},{name:"Austria",abbreviation:"AT"},{name:"Azerbaijan",abbreviation:"AZ"},{name:"Bahamas",abbreviation:"BS"},{name:"Bahrain",abbreviation:"BH"},{name:"Bangladesh",abbreviation:"BD"},{name:"Barbados",abbreviation:"BB"},{name:"Belarus",abbreviation:"BY"},{name:"Belgium",abbreviation:"BE"},{name:"Belize",abbreviation:"BZ"},{name:"Benin",abbreviation:"BJ"},{name:"Bermuda",abbreviation:"BM"},{name:"Bhutan",abbreviation:"BT"},{name:"Bolivia",abbreviation:"BO"},{name:"Bosnia and Herzegovina",abbreviation:"BA"},{name:"Botswana",abbreviation:"BW"},{name:"Bouvet Island",abbreviation:"BV"},{name:"Brazil",abbreviation:"BR"},{name:"British Antarctic Territory",abbreviation:"BQ"},{name:"British Indian Ocean Territory",abbreviation:"IO"},{name:"British Virgin Islands",abbreviation:"VG"},{name:"Brunei",abbreviation:"BN"},{name:"Bulgaria",abbreviation:"BG"},{name:"Burkina Faso",abbreviation:"BF"},{name:"Burundi",abbreviation:"BI"},{name:"Cambodia",abbreviation:"KH"},{name:"Cameroon",abbreviation:"CM"},{name:"Canada",abbreviation:"CA"},{name:"Canton and Enderbury Islands",abbreviation:"CT"},{name:"Cape Verde",abbreviation:"CV"},{name:"Cayman Islands",abbreviation:"KY"},{name:"Central African Republic",abbreviation:"CF"},{name:"Chad",abbreviation:"TD"},{name:"Chile",abbreviation:"CL"},{name:"China",abbreviation:"CN"},{name:"Christmas Island",abbreviation:"CX"},{name:"Cocos [Keeling] Islands",abbreviation:"CC"},{name:"Colombia",abbreviation:"CO"},{name:"Comoros",abbreviation:"KM"},{name:"Congo - Brazzaville",abbreviation:"CG"},{name:"Congo - Kinshasa",abbreviation:"CD"},{name:"Cook Islands",abbreviation:"CK"},{name:"Costa Rica",abbreviation:"CR"},{name:"Croatia",abbreviation:"HR"},{name:"Cuba",abbreviation:"CU"},{name:"Cyprus",abbreviation:"CY"},{name:"Czech Republic",abbreviation:"CZ"},{name:"Côte d’Ivoire",abbreviation:"CI"},{name:"Denmark",abbreviation:"DK"},{name:"Djibouti",abbreviation:"DJ"},{name:"Dominica",abbreviation:"DM"},{name:"Dominican Republic",abbreviation:"DO"},{name:"Dronning Maud Land",abbreviation:"NQ"},{name:"East Germany",abbreviation:"DD"},{name:"Ecuador",abbreviation:"EC"},{name:"Egypt",abbreviation:"EG"},{name:"El Salvador",abbreviation:"SV"},{name:"Equatorial Guinea",abbreviation:"GQ"},{name:"Eritrea",abbreviation:"ER"},{name:"Estonia",abbreviation:"EE"},{name:"Ethiopia",abbreviation:"ET"},{name:"Falkland Islands",abbreviation:"FK"},{name:"Faroe Islands",abbreviation:"FO"},{name:"Fiji",abbreviation:"FJ"},{name:"Finland",abbreviation:"FI"},{name:"France",abbreviation:"FR"},{name:"French Guiana",abbreviation:"GF"},{name:"French Polynesia",abbreviation:"PF"},{name:"French Southern Territories",abbreviation:"TF"},{name:"French Southern and Antarctic Territories",abbreviation:"FQ"},{name:"Gabon",abbreviation:"GA"},{name:"Gambia",abbreviation:"GM"},{name:"Georgia",abbreviation:"GE"},{name:"Germany",abbreviation:"DE"},{name:"Ghana",abbreviation:"GH"},{name:"Gibraltar",abbreviation:"GI"},{name:"Greece",abbreviation:"GR"},{name:"Greenland",abbreviation:"GL"},{name:"Grenada",abbreviation:"GD"},{name:"Guadeloupe",abbreviation:"GP"},{name:"Guam",abbreviation:"GU"},{name:"Guatemala",abbreviation:"GT"},{name:"Guernsey",abbreviation:"GG"},{name:"Guinea",abbreviation:"GN"},{name:"Guinea-Bissau",abbreviation:"GW"},{name:"Guyana",abbreviation:"GY"},{name:"Haiti",abbreviation:"HT"},{name:"Heard Island and McDonald Islands",abbreviation:"HM"},{name:"Honduras",abbreviation:"HN"},{name:"Hong Kong SAR China",abbreviation:"HK"},{name:"Hungary",abbreviation:"HU"},{name:"Iceland",abbreviation:"IS"},{name:"India",abbreviation:"IN"},{name:"Indonesia",abbreviation:"ID"},{name:"Iran",abbreviation:"IR"},{name:"Iraq",abbreviation:"IQ"},{name:"Ireland",abbreviation:"IE"},{name:"Isle of Man",abbreviation:"IM"},{name:"Israel",abbreviation:"IL"},{name:"Italy",abbreviation:"IT"},{name:"Jamaica",abbreviation:"JM"},{name:"Japan",abbreviation:"JP"},{name:"Jersey",abbreviation:"JE"},{name:"Johnston Island",abbreviation:"JT"},{name:"Jordan",abbreviation:"JO"},{name:"Kazakhstan",abbreviation:"KZ"},{name:"Kenya",abbreviation:"KE"},{name:"Kiribati",abbreviation:"KI"},{name:"Kuwait",abbreviation:"KW"},{name:"Kyrgyzstan",abbreviation:"KG"},{name:"Laos",abbreviation:"LA"},{name:"Latvia",abbreviation:"LV"},{name:"Lebanon",abbreviation:"LB"},{name:"Lesotho",abbreviation:"LS"},{name:"Liberia",abbreviation:"LR"},{name:"Libya",abbreviation:"LY"},{name:"Liechtenstein",abbreviation:"LI"},{name:"Lithuania",abbreviation:"LT"},{name:"Luxembourg",abbreviation:"LU"},{name:"Macau SAR China",abbreviation:"MO"},{name:"Macedonia",abbreviation:"MK"},{name:"Madagascar",abbreviation:"MG"},{name:"Malawi",abbreviation:"MW"},{name:"Malaysia",abbreviation:"MY"},{name:"Maldives",abbreviation:"MV"},{name:"Mali",abbreviation:"ML"},{name:"Malta",abbreviation:"MT"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Martinique",abbreviation:"MQ"},{name:"Mauritania",abbreviation:"MR"},{name:"Mauritius",abbreviation:"MU"},{name:"Mayotte",abbreviation:"YT"},{name:"Metropolitan France",abbreviation:"FX"},{name:"Mexico",abbreviation:"MX"},{name:"Micronesia",abbreviation:"FM"},{name:"Midway Islands",abbreviation:"MI"},{name:"Moldova",abbreviation:"MD"},{name:"Monaco",abbreviation:"MC"},{name:"Mongolia",abbreviation:"MN"},{name:"Montenegro",abbreviation:"ME"},{name:"Montserrat",abbreviation:"MS"},{name:"Morocco",abbreviation:"MA"},{name:"Mozambique",abbreviation:"MZ"},{name:"Myanmar [Burma]",abbreviation:"MM"},{name:"Namibia",abbreviation:"NA"},{name:"Nauru",abbreviation:"NR"},{name:"Nepal",abbreviation:"NP"},{name:"Netherlands",abbreviation:"NL"},{name:"Netherlands Antilles",abbreviation:"AN"},{name:"Neutral Zone",abbreviation:"NT"},{name:"New Caledonia",abbreviation:"NC"},{name:"New Zealand",abbreviation:"NZ"},{name:"Nicaragua",abbreviation:"NI"},{name:"Niger",abbreviation:"NE"},{name:"Nigeria",abbreviation:"NG"},{name:"Niue",abbreviation:"NU"},{name:"Norfolk Island",abbreviation:"NF"},{name:"North Korea",abbreviation:"KP"},{name:"North Vietnam",abbreviation:"VD"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Norway",abbreviation:"NO"},{name:"Oman",abbreviation:"OM"},{name:"Pacific Islands Trust Territory",abbreviation:"PC"},{name:"Pakistan",abbreviation:"PK"},{name:"Palau",abbreviation:"PW"},{name:"Palestinian Territories",abbreviation:"PS"},{name:"Panama",abbreviation:"PA"},{name:"Panama Canal Zone",abbreviation:"PZ"},{name:"Papua New Guinea",abbreviation:"PG"},{name:"Paraguay",abbreviation:"PY"},{name:"People's Democratic Republic of Yemen",abbreviation:"YD"},{name:"Peru",abbreviation:"PE"},{name:"Philippines",abbreviation:"PH"},{name:"Pitcairn Islands",abbreviation:"PN"},{name:"Poland",abbreviation:"PL"},{name:"Portugal",abbreviation:"PT"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Qatar",abbreviation:"QA"},{name:"Romania",abbreviation:"RO"},{name:"Russia",abbreviation:"RU"},{name:"Rwanda",abbreviation:"RW"},{name:"Réunion",abbreviation:"RE"},{name:"Saint Barthélemy",abbreviation:"BL"},{name:"Saint Helena",abbreviation:"SH"},{name:"Saint Kitts and Nevis",abbreviation:"KN"},{name:"Saint Lucia",abbreviation:"LC"},{name:"Saint Martin",abbreviation:"MF"},{name:"Saint Pierre and Miquelon",abbreviation:"PM"},{name:"Saint Vincent and the Grenadines",abbreviation:"VC"},{name:"Samoa",abbreviation:"WS"},{name:"San Marino",abbreviation:"SM"},{name:"Saudi Arabia",abbreviation:"SA"},{name:"Senegal",abbreviation:"SN"},{name:"Serbia",abbreviation:"RS"},{name:"Serbia and Montenegro",abbreviation:"CS"},{name:"Seychelles",abbreviation:"SC"},{name:"Sierra Leone",abbreviation:"SL"},{name:"Singapore",abbreviation:"SG"},{name:"Slovakia",abbreviation:"SK"},{name:"Slovenia",abbreviation:"SI"},{name:"Solomon Islands",abbreviation:"SB"},{name:"Somalia",abbreviation:"SO"},{name:"South Africa",abbreviation:"ZA"},{name:"South Georgia and the South Sandwich Islands",abbreviation:"GS"},{name:"South Korea",abbreviation:"KR"},{name:"Spain",abbreviation:"ES"},{name:"Sri Lanka",abbreviation:"LK"},{name:"Sudan",abbreviation:"SD"},{name:"Suriname",abbreviation:"SR"},{name:"Svalbard and Jan Mayen",abbreviation:"SJ"},{name:"Swaziland",abbreviation:"SZ"},{name:"Sweden",abbreviation:"SE"},{name:"Switzerland",abbreviation:"CH"},{name:"Syria",abbreviation:"SY"},{name:"São Tomé and Príncipe",abbreviation:"ST"},{name:"Taiwan",abbreviation:"TW"},{name:"Tajikistan",abbreviation:"TJ"},{name:"Tanzania",abbreviation:"TZ"},{name:"Thailand",abbreviation:"TH"},{name:"Timor-Leste",abbreviation:"TL"},{name:"Togo",abbreviation:"TG"},{name:"Tokelau",abbreviation:"TK"},{name:"Tonga",abbreviation:"TO"},{name:"Trinidad and Tobago",abbreviation:"TT"},{name:"Tunisia",abbreviation:"TN"},{name:"Turkey",abbreviation:"TR"},{name:"Turkmenistan",abbreviation:"TM"},{name:"Turks and Caicos Islands",abbreviation:"TC"},{name:"Tuvalu",abbreviation:"TV"},{name:"U.S. Minor Outlying Islands",abbreviation:"UM"},{name:"U.S. Miscellaneous Pacific Islands",abbreviation:"PU"},{name:"U.S. Virgin Islands",abbreviation:"VI"},{name:"Uganda",abbreviation:"UG"},{name:"Ukraine",abbreviation:"UA"},{name:"Union of Soviet Socialist Republics",abbreviation:"SU"},{name:"United Arab Emirates",abbreviation:"AE"},{name:"United Kingdom",abbreviation:"GB"},{name:"United States",abbreviation:"US"},{name:"Unknown or Invalid Region",abbreviation:"ZZ"},{name:"Uruguay",abbreviation:"UY"},{name:"Uzbekistan",abbreviation:"UZ"},{name:"Vanuatu",abbreviation:"VU"},{name:"Vatican City",abbreviation:"VA"},{name:"Venezuela",abbreviation:"VE"},{name:"Vietnam",abbreviation:"VN"},{name:"Wake Island",abbreviation:"WK"},{name:"Wallis and Futuna",abbreviation:"WF"},{name:"Western Sahara",abbreviation:"EH"},{name:"Yemen",abbreviation:"YE"},{name:"Zambia",abbreviation:"ZM"},{name:"Zimbabwe",abbreviation:"ZW"},{name:"Åland Islands",abbreviation:"AX"}],provinces:[{name:"Alberta",abbreviation:"AB"},{name:"British Columbia",abbreviation:"BC"},{name:"Manitoba",abbreviation:"MB"},{name:"New Brunswick",abbreviation:"NB"},{name:"Newfoundland and Labrador",abbreviation:"NL"},{name:"Nova Scotia",abbreviation:"NS"},{name:"Ontario",abbreviation:"ON"},{name:"Prince Edward Island",abbreviation:"PE"},{name:"Quebec",abbreviation:"QC"},{name:"Saskatchewan",abbreviation:"SK"},{name:"Northwest Territories",abbreviation:"NT"},{name:"Nunavut",abbreviation:"NU"},{name:"Yukon",abbreviation:"YT"}],us_states_and_dc:[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District of Columbia",abbreviation:"DC"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}],territories:[{name:"American Samoa",abbreviation:"AS"},{name:"Federated States of Micronesia",abbreviation:"FM"},{name:"Guam",abbreviation:"GU"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Virgin Islands, U.S.",abbreviation:"VI"}],armed_forces:[{name:"Armed Forces Europe",abbreviation:"AE"},{name:"Armed Forces Pacific",abbreviation:"AP"},{name:"Armed Forces the Americas",abbreviation:"AA"}],street_suffixes:[{name:"Avenue",abbreviation:"Ave"},{name:"Boulevard",abbreviation:"Blvd"},{name:"Center",abbreviation:"Ctr"},{name:"Circle",abbreviation:"Cir"},{name:"Court",abbreviation:"Ct"},{name:"Drive",abbreviation:"Dr"},{name:"Extension",abbreviation:"Ext"},{name:"Glen",abbreviation:"Gln"},{name:"Grove",abbreviation:"Grv"},{name:"Heights",abbreviation:"Hts"},{name:"Highway",abbreviation:"Hwy"},{name:"Junction",abbreviation:"Jct"},{name:"Key",abbreviation:"Key"},{name:"Lane",abbreviation:"Ln"},{name:"Loop",abbreviation:"Loop"},{name:"Manor",abbreviation:"Mnr"},{name:"Mill",abbreviation:"Mill"},{name:"Park",abbreviation:"Park"},{name:"Parkway",abbreviation:"Pkwy"},{name:"Pass",abbreviation:"Pass"},{name:"Path",abbreviation:"Path"},{name:"Pike",abbreviation:"Pike"},{name:"Place",abbreviation:"Pl"},{name:"Plaza",abbreviation:"Plz"},{name:"Point",abbreviation:"Pt"},{name:"Ridge",abbreviation:"Rdg"},{name:"River",abbreviation:"Riv"},{name:"Road",abbreviation:"Rd"},{name:"Square",abbreviation:"Sq"},{name:"Street",abbreviation:"St"},{name:"Terrace",abbreviation:"Ter"},{name:"Trail",abbreviation:"Trl"},{name:"Turnpike",abbreviation:"Tpke"},{name:"View",abbreviation:"Vw"},{name:"Way",abbreviation:"Way"}],months:[{name:"January",short_name:"Jan",numeric:"01",days:31},{name:"February",short_name:"Feb",numeric:"02",days:28},{name:"March",short_name:"Mar",numeric:"03",days:31},{name:"April",short_name:"Apr",numeric:"04",days:30},{name:"May",short_name:"May",numeric:"05",days:31},{name:"June",short_name:"Jun",numeric:"06",days:30},{name:"July",short_name:"Jul",numeric:"07",days:31},{name:"August",short_name:"Aug",numeric:"08",days:31},{name:"September",short_name:"Sep",numeric:"09",days:30},{name:"October",short_name:"Oct",numeric:"10",days:31},{name:"November",short_name:"Nov",numeric:"11",days:30},{name:"December",short_name:"Dec",numeric:"12",days:31}],cc_types:[{name:"American Express",short_name:"amex",prefix:"34",length:15},{name:"Bankcard",short_name:"bankcard",prefix:"5610",length:16},{name:"China UnionPay",short_name:"chinaunion",prefix:"62",length:16},{name:"Diners Club Carte Blanche",short_name:"dccarte",prefix:"300",length:14},{name:"Diners Club enRoute",short_name:"dcenroute",prefix:"2014",length:15},{name:"Diners Club International",short_name:"dcintl",prefix:"36",length:14},{name:"Diners Club United States & Canada",short_name:"dcusc",prefix:"54",length:16},{name:"Discover Card",short_name:"discover",prefix:"6011",length:16},{name:"InstaPayment",short_name:"instapay",prefix:"637",length:16},{name:"JCB",short_name:"jcb",prefix:"3528",length:16},{name:"Laser",short_name:"laser",prefix:"6304",length:16},{name:"Maestro",short_name:"maestro",prefix:"5018",length:16},{name:"Mastercard",short_name:"mc",prefix:"51",length:16},{name:"Solo",short_name:"solo",prefix:"6334",length:16},{name:"Switch",short_name:"switch",prefix:"4903",length:16},{name:"Visa",short_name:"visa",prefix:"4",length:16},{name:"Visa Electron",short_name:"electron",prefix:"4026",length:16}],currency_types:[{code:"AED",name:"United Arab Emirates Dirham"},{code:"AFN",name:"Afghanistan Afghani"},{code:"ALL",name:"Albania Lek"},{code:"AMD",name:"Armenia Dram"},{code:"ANG",name:"Netherlands Antilles Guilder"},{code:"AOA",name:"Angola Kwanza"},{code:"ARS",name:"Argentina Peso"},{code:"AUD",name:"Australia Dollar"},{code:"AWG",name:"Aruba Guilder"},{code:"AZN",name:"Azerbaijan New Manat"},{code:"BAM",name:"Bosnia and Herzegovina Convertible Marka"},{code:"BBD",name:"Barbados Dollar"},{code:"BDT",name:"Bangladesh Taka"},{code:"BGN",name:"Bulgaria Lev"},{code:"BHD",name:"Bahrain Dinar"},{code:"BIF",name:"Burundi Franc"},{code:"BMD",name:"Bermuda Dollar"},{code:"BND",name:"Brunei Darussalam Dollar"},{code:"BOB",name:"Bolivia Boliviano"},{code:"BRL",name:"Brazil Real"},{code:"BSD",name:"Bahamas Dollar"},{code:"BTN",name:"Bhutan Ngultrum"},{code:"BWP",name:"Botswana Pula"},{code:"BYR",name:"Belarus Ruble"},{code:"BZD",name:"Belize Dollar"},{code:"CAD",name:"Canada Dollar"},{code:"CDF",name:"Congo/Kinshasa Franc"},{code:"CHF",name:"Switzerland Franc"},{code:"CLP",name:"Chile Peso"},{code:"CNY",name:"China Yuan Renminbi"},{code:"COP",name:"Colombia Peso"},{code:"CRC",name:"Costa Rica Colon"},{code:"CUC",name:"Cuba Convertible Peso"},{code:"CUP",name:"Cuba Peso"},{code:"CVE",name:"Cape Verde Escudo"},{code:"CZK",name:"Czech Republic Koruna"},{code:"DJF",name:"Djibouti Franc"},{code:"DKK",name:"Denmark Krone"},{code:"DOP",name:"Dominican Republic Peso"},{code:"DZD",name:"Algeria Dinar"},{code:"EGP",name:"Egypt Pound"},{code:"ERN",name:"Eritrea Nakfa"},{code:"ETB",name:"Ethiopia Birr"},{code:"EUR",name:"Euro Member Countries"},{code:"FJD",name:"Fiji Dollar"},{code:"FKP",name:"Falkland Islands (Malvinas) Pound"},{code:"GBP",name:"United Kingdom Pound"},{code:"GEL",name:"Georgia Lari"},{code:"GGP",name:"Guernsey Pound"},{code:"GHS",name:"Ghana Cedi"},{code:"GIP",name:"Gibraltar Pound"},{code:"GMD",name:"Gambia Dalasi"},{code:"GNF",name:"Guinea Franc"},{code:"GTQ",name:"Guatemala Quetzal"},{code:"GYD",name:"Guyana Dollar"},{code:"HKD",name:"Hong Kong Dollar"},{code:"HNL",name:"Honduras Lempira"},{code:"HRK",name:"Croatia Kuna"},{code:"HTG",name:"Haiti Gourde"},{code:"HUF",name:"Hungary Forint"},{code:"IDR",name:"Indonesia Rupiah"},{code:"ILS",name:"Israel Shekel"},{code:"IMP",name:"Isle of Man Pound"},{code:"INR",name:"India Rupee"},{code:"IQD",name:"Iraq Dinar"},{code:"IRR",name:"Iran Rial"},{code:"ISK",name:"Iceland Krona"},{code:"JEP",name:"Jersey Pound"},{code:"JMD",name:"Jamaica Dollar"},{code:"JOD",name:"Jordan Dinar"},{code:"JPY",name:"Japan Yen"},{code:"KES",name:"Kenya Shilling"},{code:"KGS",name:"Kyrgyzstan Som"},{code:"KHR",name:"Cambodia Riel"},{code:"KMF",name:"Comoros Franc"},{code:"KPW",name:"Korea (North) Won"},{code:"KRW",name:"Korea (South) Won"},{code:"KWD",name:"Kuwait Dinar"},{code:"KYD",name:"Cayman Islands Dollar"},{code:"KZT",name:"Kazakhstan Tenge"},{code:"LAK",name:"Laos Kip"},{code:"LBP",name:"Lebanon Pound"},{code:"LKR",name:"Sri Lanka Rupee"},{code:"LRD",name:"Liberia Dollar"},{code:"LSL",name:"Lesotho Loti"},{code:"LTL",name:"Lithuania Litas"},{code:"LYD",name:"Libya Dinar"},{code:"MAD",name:"Morocco Dirham"},{code:"MDL",name:"Moldova Leu"},{code:"MGA",name:"Madagascar Ariary"},{code:"MKD",name:"Macedonia Denar"},{code:"MMK",name:"Myanmar (Burma) Kyat"},{code:"MNT",name:"Mongolia Tughrik"},{code:"MOP",name:"Macau Pataca"},{code:"MRO",name:"Mauritania Ouguiya"},{code:"MUR",name:"Mauritius Rupee"},{code:"MVR",name:"Maldives (Maldive Islands) Rufiyaa"},{code:"MWK",name:"Malawi Kwacha"},{code:"MXN",name:"Mexico Peso"},{code:"MYR",name:"Malaysia Ringgit"},{code:"MZN",name:"Mozambique Metical"},{code:"NAD",name:"Namibia Dollar"},{code:"NGN",name:"Nigeria Naira"},{code:"NIO",name:"Nicaragua Cordoba"},{code:"NOK",name:"Norway Krone"},{code:"NPR",name:"Nepal Rupee"},{code:"NZD",name:"New Zealand Dollar"},{code:"OMR",name:"Oman Rial"},{code:"PAB",name:"Panama Balboa"},{code:"PEN",name:"Peru Nuevo Sol"},{code:"PGK",name:"Papua New Guinea Kina"},{code:"PHP",name:"Philippines Peso"},{code:"PKR",name:"Pakistan Rupee"},{code:"PLN",name:"Poland Zloty"},{code:"PYG",name:"Paraguay Guarani"},{code:"QAR",name:"Qatar Riyal"},{code:"RON",name:"Romania New Leu"},{code:"RSD",name:"Serbia Dinar"},{code:"RUB",name:"Russia Ruble"},{code:"RWF",name:"Rwanda Franc"},{code:"SAR",name:"Saudi Arabia Riyal"},{code:"SBD",name:"Solomon Islands Dollar"},{code:"SCR",name:"Seychelles Rupee"},{code:"SDG",name:"Sudan Pound"},{code:"SEK",name:"Sweden Krona"},{code:"SGD",name:"Singapore Dollar"},{code:"SHP",name:"Saint Helena Pound"},{code:"SLL",name:"Sierra Leone Leone"},{code:"SOS",name:"Somalia Shilling"},{code:"SPL",name:"Seborga Luigino"},{code:"SRD",name:"Suriname Dollar"},{code:"STD",name:"São Tomé and Príncipe Dobra"},{code:"SVC",name:"El Salvador Colon"},{code:"SYP",name:"Syria Pound"},{code:"SZL",name:"Swaziland Lilangeni"},{code:"THB",name:"Thailand Baht"},{code:"TJS",name:"Tajikistan Somoni"},{code:"TMT",name:"Turkmenistan Manat"},{code:"TND",name:"Tunisia Dinar"},{code:"TOP",name:"Tonga Pa'anga"},{code:"TRY",name:"Turkey Lira"},{code:"TTD",name:"Trinidad and Tobago Dollar"},{code:"TVD",name:"Tuvalu Dollar"},{code:"TWD",name:"Taiwan New Dollar"},{code:"TZS",name:"Tanzania Shilling"},{code:"UAH",name:"Ukraine Hryvnia"},{code:"UGX",name:"Uganda Shilling"},{code:"USD",name:"United States Dollar"},{code:"UYU",name:"Uruguay Peso"},{code:"UZS",name:"Uzbekistan Som"},{code:"VEF",name:"Venezuela Bolivar"},{code:"VND",name:"Viet Nam Dong"},{code:"VUV",name:"Vanuatu Vatu"},{code:"WST",name:"Samoa Tala"},{code:"XAF",name:"Communauté Financière Africaine (BEAC) CFA Franc BEAC"},{code:"XCD",name:"East Caribbean Dollar"},{code:"XDR",name:"International Monetary Fund (IMF) Special Drawing Rights"},{code:"XOF",name:"Communauté Financière Africaine (BCEAO) Franc"},{code:"XPF",name:"Comptoirs Français du Pacifique (CFP) Franc"},{code:"YER",name:"Yemen Rial"},{code:"ZAR",name:"South Africa Rand"},{code:"ZMW",name:"Zambia Kwacha"},{code:"ZWD",name:"Zimbabwe Dollar"}]},y=Object.prototype.hasOwnProperty,x=Object.keys||function(e){var t=[];
for(var n in e)y.call(e,n)&&t.push(n);return t};a.prototype.get=function(e){return l(v[e])},a.prototype.mac_address=function(e){e=r(e),e.separator||(e.separator=e.networkVersion?".":":");var t="ABCDEF1234567890",n="";return n=e.networkVersion?this.n(this.string,3,{pool:t,length:4}).join(e.separator):this.n(this.string,6,{pool:t,length:2}).join(e.separator)},a.prototype.normal=function(e){e=r(e,{mean:0,dev:1});var t,n,a,i,o=e.mean,s=e.dev;do n=2*this.random()-1,a=2*this.random()-1,t=n*n+a*a;while(t>=1);return i=n*Math.sqrt(-2*Math.log(t)/t),s*i+o},a.prototype.radio=function(e){e=r(e,{side:"?"});var t="";switch(e.side.toLowerCase()){case"east":case"e":t="W";break;case"west":case"w":t="K";break;default:t=this.character({pool:"KW"})}return t+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})},a.prototype.set=function(e,t){"string"==typeof e?v[e]=t:v=l(e,v)},a.prototype.tv=function(e){return this.radio(e)},a.prototype.cnpj=function(){var e=this.n(this.natural,8,{max:9}),t=2+6*e[7]+7*e[6]+8*e[5]+9*e[4]+2*e[3]+3*e[2]+4*e[1]+5*e[0];t=11-t%11,t>=10&&(t=0);var n=2*t+3+7*e[7]+8*e[6]+9*e[5]+2*e[4]+3*e[3]+4*e[2]+5*e[1]+6*e[0];return n=11-n%11,n>=10&&(n=0),""+e[0]+e[1]+"."+e[2]+e[3]+e[4]+"."+e[5]+e[6]+e[7]+"/0001-"+t+n},a.prototype.mersenne_twister=function(e){return new w(e)};var w=function(e){void 0===e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)};w.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},w.prototype.init_by_array=function(e,t){var n,a,r=1,i=0;for(this.init_genrand(19650218),n=this.N>t?this.N:t;n;n--)a=this.mt[r-1]^this.mt[r-1]>>>30,this.mt[r]=(this.mt[r]^(1664525*((4294901760&a)>>>16)<<16)+1664525*(65535&a))+e[i]+i,this.mt[r]>>>=0,r++,i++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),i>=t&&(i=0);for(n=this.N-1;n;n--)a=this.mt[r-1]^this.mt[r-1]>>>30,this.mt[r]=(this.mt[r]^(1566083941*((4294901760&a)>>>16)<<16)+1566083941*(65535&a))-r,this.mt[r]>>>=0,r++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1);this.mt[0]=2147483648},w.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0},w.prototype.genrand_int31=function(){return this.genrand_int32()>>>1},w.prototype.genrand_real1=function(){return this.genrand_int32()*(1/4294967295)},w.prototype.random=function(){return this.genrand_int32()*(1/4294967296)},w.prototype.genrand_real3=function(){return(this.genrand_int32()+.5)*(1/4294967296)},w.prototype.genrand_res53=function(){var e=this.genrand_int32()>>>5,t=this.genrand_int32()>>>6;return(67108864*e+t)*(1/9007199254740992)},"undefined"!=typeof n&&("undefined"!=typeof t&&t.exports&&(n=t.exports=a),n.Chance=a),"function"==typeof define&&define.amd&&define([],function(){return a}),"undefined"!=typeof importScripts&&(chance=new a),"object"==typeof window&&"object"==typeof window.document&&(window.Chance=a,window.chance=new a)}()}).call(this,e("buffer").Buffer)},{buffer:2}],7:[function(e,t){!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=Q.type(e);return"function"===n||Q.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function a(e,t,n){if(Q.isFunction(t))return Q.grep(e,function(e,a){return!!t.call(e,a,e)!==n});if(t.nodeType)return Q.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return Q.filter(t,e,n);t=Q.filter(t,e)}return Q.grep(e,function(e){return z.call(t,e)>=0!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function i(e){var t=pt[e]={};return Q.each(e.match(dt)||[],function(e,n){t[n]=!0}),t}function o(){X.removeEventListener("DOMContentLoaded",o,!1),e.removeEventListener("load",o,!1),Q.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+s.uid++}function u(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace(xt,"-$1").toLowerCase(),n=e.getAttribute(a),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:yt.test(n)?Q.parseJSON(n):n}catch(r){}vt.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function h(){try{return X.activeElement}catch(e){}}function f(e,t){return Q.nodeName(e,"table")&&Q.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function p(e){var t=Ft.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n=0,a=e.length;a>n;n++)gt.set(e[n],"globalEval",!t||gt.get(t[n],"globalEval"))}function b(e,t){var n,a,r,i,o,s,u,l;if(1===t.nodeType){if(gt.hasData(e)&&(i=gt.access(e),o=gt.set(t,i),l=i.events)){delete o.handle,o.events={};for(r in l)for(n=0,a=l[r].length;a>n;n++)Q.event.add(t,r,l[r][n])}vt.hasData(e)&&(s=vt.access(e),u=Q.extend({},s),vt.set(t,u))}}function g(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Q.nodeName(e,t)?Q.merge([e],n):n}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Tt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function y(t,n){var a,r=Q(n.createElement(t)).appendTo(n.body),i=e.getDefaultComputedStyle&&(a=e.getDefaultComputedStyle(r[0]))?a.display:Q.css(r[0],"display");return r.detach(),i}function x(e){var t=X,n=Ot[e];return n||(n=y(e,t),"none"!==n&&n||(jt=(jt||Q("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=jt[0].contentDocument,t.write(),t.close(),n=y(e,t),jt.detach()),Ot[e]=n),n}function w(e,t,n){var a,r,i,o,s=e.style;return n=n||Wt(e),n&&(o=n.getPropertyValue(t)||n[t]),n&&(""!==o||Q.contains(e.ownerDocument,e)||(o=Q.style(e,t)),Ut.test(o)&&Gt.test(t)&&(a=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=a,s.minWidth=r,s.maxWidth=i)),void 0!==o?o+"":o}function C(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),a=t,r=Vt.length;r--;)if(t=Vt[r]+n,t in e)return t;return a}function T(e,t,n){var a=Kt.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function A(e,t,n,a,r){for(var i=n===(a?"border":"content")?4:"width"===t?1:0,o=0;4>i;i+=2)"margin"===n&&(o+=Q.css(e,n+Ct[i],!0,r)),a?("content"===n&&(o-=Q.css(e,"padding"+Ct[i],!0,r)),"margin"!==n&&(o-=Q.css(e,"border"+Ct[i]+"Width",!0,r))):(o+=Q.css(e,"padding"+Ct[i],!0,r),"padding"!==n&&(o+=Q.css(e,"border"+Ct[i]+"Width",!0,r)));return o}function E(e,t,n){var a=!0,r="width"===t?e.offsetWidth:e.offsetHeight,i=Wt(e),o="border-box"===Q.css(e,"boxSizing",!1,i);if(0>=r||null==r){if(r=w(e,t,i),(0>r||null==r)&&(r=e.style[t]),Ut.test(r))return r;a=o&&($.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+A(e,t,n||(o?"border":"content"),a,i)+"px"}function M(e,t){for(var n,a,r,i=[],o=0,s=e.length;s>o;o++)a=e[o],a.style&&(i[o]=gt.get(a,"olddisplay"),n=a.style.display,t?(i[o]||"none"!==n||(a.style.display=""),""===a.style.display&&St(a)&&(i[o]=gt.access(a,"olddisplay",x(a.nodeName)))):(r=St(a),"none"===n&&r||gt.set(a,"olddisplay",r?n:Q.css(a,"display"))));for(o=0;s>o;o++)a=e[o],a.style&&(t&&"none"!==a.style.display&&""!==a.style.display||(a.style.display=t?i[o]||"":"none"));return e}function D(e,t,n,a,r){return new D.prototype.init(e,t,n,a,r)}function N(){return setTimeout(function(){$t=void 0}),$t=Q.now()}function k(e,t){var n,a=0,r={height:e};for(t=t?1:0;4>a;a+=2-t)n=Ct[a],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function L(e,t,n){for(var a,r=(nn[t]||[]).concat(nn["*"]),i=0,o=r.length;o>i;i++)if(a=r[i].call(n,t,e))return a}function B(e,t,n){var a,r,i,o,s,u,l,c,h=this,f={},d=e.style,p=e.nodeType&&St(e),m=gt.get(e,"fxshow");n.queue||(s=Q._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,Q.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=Q.css(e,"display"),c="none"===l?gt.get(e,"olddisplay")||x(e.nodeName):l,"inline"===c&&"none"===Q.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(a in t)if(r=t[a],Zt.exec(r)){if(delete t[a],i=i||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!m||void 0===m[a])continue;p=!0}f[a]=m&&m[a]||Q.style(e,a)}else l=void 0;if(Q.isEmptyObject(f))"inline"===("none"===l?x(e.nodeName):l)&&(d.display=l);else{m?"hidden"in m&&(p=m.hidden):m=gt.access(e,"fxshow",{}),i&&(m.hidden=!p),p?Q(e).show():h.done(function(){Q(e).hide()}),h.done(function(){var t;gt.remove(e,"fxshow");for(t in f)Q.style(e,t,f[t])});for(a in f)o=L(p?m[a]:0,a,h),a in m||(m[a]=o.start,p&&(o.end=o.start,o.start="width"===a||"height"===a?1:0))}}function P(e,t){var n,a,r,i,o;for(n in e)if(a=Q.camelCase(n),r=t[a],i=e[n],Q.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==a&&(e[a]=i,delete e[n]),o=Q.cssHooks[a],o&&"expand"in o){i=o.expand(i),delete e[a];for(n in i)n in e||(e[n]=i[n],t[n]=r)}else t[a]=r}function R(e,t,n){var a,r,i=0,o=tn.length,s=Q.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var t=$t||N(),n=Math.max(0,l.startTime+l.duration-t),a=n/l.duration||0,i=1-a,o=0,u=l.tweens.length;u>o;o++)l.tweens[o].run(i);return s.notifyWith(e,[l,i,n]),1>i&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Q.extend({},t),opts:Q.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:$t||N(),duration:n.duration,tweens:[],createTween:function(t,n){var a=Q.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(a),a},stop:function(t){var n=0,a=t?l.tweens.length:0;if(r)return this;for(r=!0;a>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(P(c,l.opts.specialEasing);o>i;i++)if(a=tn[i].call(l,e,c,l.opts))return a;return Q.map(c,L,l),Q.isFunction(l.opts.start)&&l.opts.start.call(e,l),Q.fx.timer(Q.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function I(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var a,r=0,i=t.toLowerCase().match(dt)||[];if(Q.isFunction(n))for(;a=i[r++];)"+"===a[0]?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(n)):(e[a]=e[a]||[]).push(n)}}function F(e,t,n,a){function r(s){var u;return i[s]=!0,Q.each(e[s]||[],function(e,s){var l=s(t,n,a);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),u}var i={},o=e===xn;return r(t.dataTypes[0])||!i["*"]&&r("*")}function H(e,t){var n,a,r=Q.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:a||(a={}))[n]=t[n]);return a&&Q.extend(!0,e,a),e}function _(e,t,n){for(var a,r,i,o,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){u.unshift(r);break}if(u[0]in n)i=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){i=r;break}o||(o=r)}i=i||o}return i?(i!==u[0]&&u.unshift(i),n[i]):void 0}function j(e,t,n,a){var r,i,o,s,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(o=l[u+" "+i]||l["* "+i],!o)for(r in l)if(s=r.split(" "),s[1]===i&&(o=l[u+" "+s[0]]||l["* "+s[0]])){o===!0?o=l[r]:l[r]!==!0&&(i=s[0],c.unshift(s[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function O(e,t,n,a){var r;if(Q.isArray(t))Q.each(t,function(t,r){n||An.test(e)?a(e,r):O(e+"["+("object"==typeof r?t:"")+"]",r,n,a)});else if(n||"object"!==Q.type(t))a(e,t);else for(r in t)O(e+"["+r+"]",t[r],n,a)}function G(e){return Q.isWindow(e)?e:9===e.nodeType&&e.defaultView}var U=[],W=U.slice,q=U.concat,K=U.push,z=U.indexOf,J={},Y=J.toString,V=J.hasOwnProperty,$={},X=e.document,Z="2.1.3",Q=function(e,t){return new Q.fn.init(e,t)},et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,tt=/^-ms-/,nt=/-([\da-z])/gi,at=function(e,t){return t.toUpperCase()};Q.fn=Q.prototype={jquery:Z,constructor:Q,selector:"",length:0,toArray:function(){return W.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:W.call(this)},pushStack:function(e){var t=Q.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Q.each(this,e,t)},map:function(e){return this.pushStack(Q.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:U.sort,splice:U.splice},Q.extend=Q.fn.extend=function(){var e,t,n,a,r,i,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||Q.isFunction(o)||(o={}),s===u&&(o=this,s--);u>s;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],a=e[t],o!==a&&(l&&a&&(Q.isPlainObject(a)||(r=Q.isArray(a)))?(r?(r=!1,i=n&&Q.isArray(n)?n:[]):i=n&&Q.isPlainObject(n)?n:{},o[t]=Q.extend(l,i,a)):void 0!==a&&(o[t]=a));return o},Q.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Q.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Q.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==Q.type(e)||e.nodeType||Q.isWindow(e)?!1:e.constructor&&!V.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?J[Y.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Q.trim(e),e&&(1===e.indexOf("use strict")?(t=X.createElement("script"),t.text=e,X.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(tt,"ms-").replace(nt,at)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,a){var r,i=0,o=e.length,s=n(e);if(a){if(s)for(;o>i&&(r=t.apply(e[i],a),r!==!1);i++);else for(i in e)if(r=t.apply(e[i],a),r===!1)break}else if(s)for(;o>i&&(r=t.call(e[i],i,e[i]),r!==!1);i++);else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(et,"")},makeArray:function(e,t){var a=t||[];return null!=e&&(n(Object(e))?Q.merge(a,"string"==typeof e?[e]:e):K.call(a,e)),a},inArray:function(e,t,n){return null==t?-1:z.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;n>a;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a,r=[],i=0,o=e.length,s=!n;o>i;i++)a=!t(e[i],i),a!==s&&r.push(e[i]);return r},map:function(e,t,a){var r,i=0,o=e.length,s=n(e),u=[];if(s)for(;o>i;i++)r=t(e[i],i,a),null!=r&&u.push(r);else for(i in e)r=t(e[i],i,a),null!=r&&u.push(r);return q.apply([],u)},guid:1,proxy:function(e,t){var n,a,r;return"string"==typeof t&&(n=e[t],t=e,e=n),Q.isFunction(e)?(a=W.call(arguments,2),r=function(){return e.apply(t||this,a.concat(W.call(arguments)))},r.guid=e.guid=e.guid||Q.guid++,r):void 0},now:Date.now,support:$}),Q.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){J["[object "+t+"]"]=t.toLowerCase()});var rt=function(e){function t(e,t,n,a){var r,i,o,s,u,l,h,d,p,m;if((t?t.ownerDocument||t:O)!==B&&L(t),t=t||B,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!a&&R){if(11!==s&&(r=vt.exec(e)))if(o=r[1]){if(9===s){if(i=t.getElementById(o),!i||!i.parentNode)return n;if(i.id===o)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(o))&&_(t,i)&&i.id===o)return n.push(i),n}else{if(r[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((o=r[3])&&w.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(o)),n}if(w.qsa&&(!I||!I.test(e))){if(d=h=j,p=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=A(e),(h=t.getAttribute("id"))?d=h.replace(xt,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=l.length;u--;)l[u]=d+f(l[u]);p=yt.test(e)&&c(t.parentNode)||t,m=l.join(",")}if(m)try{return Z.apply(n,p.querySelectorAll(m)),n}catch(b){}finally{h||t.removeAttribute("id")}}}return M(e.replace(ut,"$1"),t,n,a)}function n(){function e(n,a){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=a}var t=[];return e}function a(e){return e[j]=!0,e}function r(e){var t=B.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),a=e.length;a--;)C.attrHandle[n[a]]=t}function o(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return a(function(t){return t=+t,a(function(n,a){for(var r,i=e([],n.length,t),o=i.length;o--;)n[r=i[o]]&&(n[r]=!(a[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function f(e){for(var t=0,n=e.length,a="";n>t;t++)a+=e[t].value;return a}function d(e,t,n){var a=t.dir,r=n&&"parentNode"===a,i=U++;return t.first?function(t,n,i){for(;t=t[a];)if(1===t.nodeType||r)return e(t,n,i)}:function(t,n,o){var s,u,l=[G,i];if(o){for(;t=t[a];)if((1===t.nodeType||r)&&e(t,n,o))return!0}else for(;t=t[a];)if(1===t.nodeType||r){if(u=t[j]||(t[j]={}),(s=u[a])&&s[0]===G&&s[1]===i)return l[2]=s[2];if(u[a]=l,l[2]=e(t,n,o))return!0}}}function p(e){return e.length>1?function(t,n,a){for(var r=e.length;r--;)if(!e[r](t,n,a))return!1;return!0}:e[0]}function m(e,n,a){for(var r=0,i=n.length;i>r;r++)t(e,n[r],a);return a}function b(e,t,n,a,r){for(var i,o=[],s=0,u=e.length,l=null!=t;u>s;s++)(i=e[s])&&(!n||n(i,a,r))&&(o.push(i),l&&t.push(s));return o}function g(e,t,n,r,i,o){return r&&!r[j]&&(r=g(r)),i&&!i[j]&&(i=g(i,o)),a(function(a,o,s,u){var l,c,h,f=[],d=[],p=o.length,g=a||m(t||"*",s.nodeType?[s]:s,[]),v=!e||!a&&t?g:b(g,f,e,s,u),y=n?i||(a?e:p||r)?[]:o:v;if(n&&n(v,y,s,u),r)for(l=b(y,d),r(l,[],s,u),c=l.length;c--;)(h=l[c])&&(y[d[c]]=!(v[d[c]]=h));if(a){if(i||e){if(i){for(l=[],c=y.length;c--;)(h=y[c])&&l.push(v[c]=h);i(null,y=[],l,u)}for(c=y.length;c--;)(h=y[c])&&(l=i?et(a,h):f[c])>-1&&(a[l]=!(o[l]=h))}}else y=b(y===o?y.splice(p,y.length):y),i?i(null,o,y,u):Z.apply(o,y)})}function v(e){for(var t,n,a,r=e.length,i=C.relative[e[0].type],o=i||C.relative[" "],s=i?1:0,u=d(function(e){return e===t},o,!0),l=d(function(e){return et(t,e)>-1},o,!0),c=[function(e,n,a){var r=!i&&(a||n!==D)||((t=n).nodeType?u(e,n,a):l(e,n,a));return t=null,r}];r>s;s++)if(n=C.relative[e[s].type])c=[d(p(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[j]){for(a=++s;r>a&&!C.relative[e[a].type];a++);return g(s>1&&p(c),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ut,"$1"),n,a>s&&v(e.slice(s,a)),r>a&&v(e=e.slice(a)),r>a&&f(e))}c.push(n)}return p(c)}function y(e,n){var r=n.length>0,i=e.length>0,o=function(a,o,s,u,l){var c,h,f,d=0,p="0",m=a&&[],g=[],v=D,y=a||i&&C.find.TAG("*",l),x=G+=null==v?1:Math.random()||.1,w=y.length;for(l&&(D=o!==B&&o);p!==w&&null!=(c=y[p]);p++){if(i&&c){for(h=0;f=e[h++];)if(f(c,o,s)){u.push(c);break}l&&(G=x)}r&&((c=!f&&c)&&d--,a&&m.push(c))}if(d+=p,r&&p!==d){for(h=0;f=n[h++];)f(m,g,o,s);if(a){if(d>0)for(;p--;)m[p]||g[p]||(g[p]=$.call(u));g=b(g)}Z.apply(u,g),l&&!a&&g.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(G=x,D=v),m};return r?a(o):o}var x,w,C,S,T,A,E,M,D,N,k,L,B,P,R,I,F,H,_,j="sizzle"+1*new Date,O=e.document,G=0,U=0,W=n(),q=n(),K=n(),z=function(e,t){return e===t&&(k=!0),0},J=1<<31,Y={}.hasOwnProperty,V=[],$=V.pop,X=V.push,Z=V.push,Q=V.slice,et=function(e,t){for(var n=0,a=e.length;a>n;n++)if(e[n]===t)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",at="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=at.replace("w","w#"),it="\\["+nt+"*("+at+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+at+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ht=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),dt=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+at+")"),CLASS:new RegExp("^\\.("+at+")"),TAG:new RegExp("^("+at.replace("w","w*")+")"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,bt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Ct=function(e,t,n){var a="0x"+t-65536;return a!==a||n?t:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},St=function(){L()};try{Z.apply(V=Q.call(O.childNodes),O.childNodes),V[O.childNodes.length].nodeType}catch(Tt){Z={apply:V.length?function(e,t){X.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}w=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},L=t.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:O;return a!==B&&9===a.nodeType&&a.documentElement?(B=a,P=a.documentElement,n=a.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",St,!1):n.attachEvent&&n.attachEvent("onunload",St)),R=!T(a),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(a.getElementsByClassName),w.getById=r(function(e){return P.appendChild(e).id=j,!a.getElementsByName||!a.getElementsByName(j).length}),w.getById?(C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&R){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(wt,Ct);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(wt,Ct);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,a=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&a.push(n);return a}return i},C.find.CLASS=w.getElementsByClassName&&function(e,t){return R?t.getElementsByClassName(e):void 0},F=[],I=[],(w.qsa=gt.test(a.querySelectorAll))&&(r(function(e){P.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+nt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||I.push("\\["+nt+"*(?:value|"+tt+")"),e.querySelectorAll("[id~="+j+"-]").length||I.push("~="),e.querySelectorAll(":checked").length||I.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||I.push(".#.+[+~]")}),r(function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&I.push("name"+nt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),I.push(",.*:")})),(w.matchesSelector=gt.test(H=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&r(function(e){w.disconnectedMatch=H.call(e,"div"),H.call(e,"[s!='']:x"),F.push("!=",ot)}),I=I.length&&new RegExp(I.join("|")),F=F.length&&new RegExp(F.join("|")),t=gt.test(P.compareDocumentPosition),_=t||gt.test(P.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return k=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===a||e.ownerDocument===O&&_(O,e)?-1:t===a||t.ownerDocument===O&&_(O,t)?1:N?et(N,e)-et(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return k=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!i||!s)return e===a?-1:t===a?1:i?-1:s?1:N?et(N,e)-et(N,t):0;if(i===s)return o(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[r]===l[r];)r++;return r?o(u[r],l[r]):u[r]===O?-1:l[r]===O?1:0},a):B},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==B&&L(e),n=n.replace(ht,"='$1']"),!(!w.matchesSelector||!R||F&&F.test(n)||I&&I.test(n)))try{var a=H.call(e,n);if(a||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return a}catch(r){}return t(n,B,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==B&&L(e),_(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==B&&L(e);var n=C.attrHandle[t.toLowerCase()],a=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!R):void 0;return void 0!==a?a:w.attributes||!R?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],a=0,r=0;if(k=!w.detectDuplicates,N=!w.sortStable&&e.slice(0),e.sort(z),k){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return N=null,e},S=t.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=S(t);return n},C=t.selectors={cacheLength:50,createPseudo:a,match:pt,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(wt,Ct),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Ct),"~="===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 pt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ft.test(n)&&(t=A(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(wt,Ct).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+nt+")"+e+"("+nt+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,a){return function(r){var i=t.attr(r,e);return null==i?"!="===n:n?(i+="","="===n?i===a:"!="===n?i!==a:"^="===n?a&&0===i.indexOf(a):"*="===n?a&&i.indexOf(a)>-1:"$="===n?a&&i.slice(-a.length)===a:"~="===n?(" "+i.replace(st," ")+" ").indexOf(a)>-1:"|="===n?i===a||i.slice(0,a.length+1)===a+"-":!1):!0}},CHILD:function(e,t,n,a,r){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===a&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,h,f,d,p,m=i!==o?"nextSibling":"previousSibling",b=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(b){if(i){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?b.firstChild:b.lastChild],o&&v){for(c=b[j]||(b[j]={}),l=c[e]||[],d=l[0]===G&&l[1],f=l[0]===G&&l[2],h=d&&b.childNodes[d];h=++d&&h&&h[m]||(f=d=0)||p.pop();)if(1===h.nodeType&&++f&&h===t){c[e]=[G,d,f];break}}else if(v&&(l=(t[j]||(t[j]={}))[e])&&l[0]===G)f=l[1];else for(;(h=++d&&h&&h[m]||(f=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++f||(v&&((h[j]||(h[j]={}))[e]=[G,f]),h!==t)););return f-=r,f===a||f%a===0&&f/a>=0}}},PSEUDO:function(e,n){var r,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[j]?i(n):i.length>1?(r=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?a(function(e,t){for(var a,r=i(e,n),o=r.length;o--;)a=et(e,r[o]),e[a]=!(t[a]=r[o])}):function(e){return i(e,0,r)}):i}},pseudos:{not:a(function(e){var t=[],n=[],r=E(e.replace(ut,"$1"));return r[j]?a(function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:a(function(e){return function(n){return t(e,n).length>0}}),contains:a(function(e){return e=e.replace(wt,Ct),function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:a(function(e){return dt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,Ct).toLowerCase(),function(t){var n;do if(n=R?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===P},focus:function(e){return e===B.activeElement&&(!B.hasFocus||B.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!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!C.pseudos.empty(e)},header:function(e){return bt.test(e.nodeName)},input:function(e){return mt.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:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var a=0>n?n+t:n;--a>=0;)e.push(a);return e}),gt:l(function(e,t,n){for(var a=0>n?n+t:n;++a<t;)e.push(a);return e})}},C.pseudos.nth=C.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})C.pseudos[x]=u(x);return h.prototype=C.filters=C.pseudos,C.setFilters=new h,A=t.tokenize=function(e,n){var a,r,i,o,s,u,l,c=q[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=C.preFilter;s;){(!a||(r=lt.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(i=[])),a=!1,(r=ct.exec(s))&&(a=r.shift(),i.push({value:a,type:r[0].replace(ut," ")}),s=s.slice(a.length));for(o in C.filter)!(r=pt[o].exec(s))||l[o]&&!(r=l[o](r))||(a=r.shift(),i.push({value:a,type:o,matches:r}),s=s.slice(a.length));if(!a)break}return n?s.length:s?t.error(e):q(e,u).slice(0)},E=t.compile=function(e,t){var n,a=[],r=[],i=K[e+" "];if(!i){for(t||(t=A(e)),n=t.length;n--;)i=v(t[n]),i[j]?a.push(i):r.push(i);i=K(e,y(r,a)),i.selector=e}return i},M=t.select=function(e,t,n,a){var r,i,o,s,u,l="function"==typeof e&&e,h=!a&&A(e=l.selector||e);if(n=n||[],1===h.length){if(i=h[0]=h[0].slice(0),i.length>2&&"ID"===(o=i[0]).type&&w.getById&&9===t.nodeType&&R&&C.relative[i[1].type]){if(t=(C.find.ID(o.matches[0].replace(wt,Ct),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=pt.needsContext.test(e)?0:i.length;r--&&(o=i[r],!C.relative[s=o.type]);)if((u=C.find[s])&&(a=u(o.matches[0].replace(wt,Ct),yt.test(i[0].type)&&c(t.parentNode)||t))){if(i.splice(r,1),e=a.length&&f(i),!e)return Z.apply(n,a),n;break}}return(l||E(e,h))(a,t,!R,n,yt.test(e)&&c(t.parentNode)||t),n},w.sortStable=j.split("").sort(z).join("")===j,w.detectDuplicates=!!k,L(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(B.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||i(tt,function(e,t,n){var a;return n?void 0:e[t]===!0?t.toLowerCase():(a=e.getAttributeNode(t))&&a.specified?a.value:null}),t}(e);Q.find=rt,Q.expr=rt.selectors,Q.expr[":"]=Q.expr.pseudos,Q.unique=rt.uniqueSort,Q.text=rt.getText,Q.isXMLDoc=rt.isXML,Q.contains=rt.contains;var it=Q.expr.match.needsContext,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;Q.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?Q.find.matchesSelector(a,e)?[a]:[]:Q.find.matches(e,Q.grep(t,function(e){return 1===e.nodeType}))},Q.fn.extend({find:function(e){var t,n=this.length,a=[],r=this;if("string"!=typeof e)return this.pushStack(Q(e).filter(function(){for(t=0;n>t;t++)if(Q.contains(r[t],this))return!0}));for(t=0;n>t;t++)Q.find(e,r[t],a);return a=this.pushStack(n>1?Q.unique(a):a),a.selector=this.selector?this.selector+" "+e:e,a},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&it.test(e)?Q(e):e||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=Q.fn.init=function(e,t){var n,a;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:lt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ut).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Q?t[0]:t,Q.merge(this,Q.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:X,!0)),ot.test(n[1])&&Q.isPlainObject(t))for(n in t)Q.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return a=X.getElementById(n[2]),a&&a.parentNode&&(this.length=1,this[0]=a),this.context=X,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Q.isFunction(e)?"undefined"!=typeof ut.ready?ut.ready(e):e(Q):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Q.makeArray(e,this))};ct.prototype=Q.fn,ut=Q(X);var ht=/^(?:parents|prev(?:Until|All))/,ft={children:!0,contents:!0,next:!0,prev:!0};Q.extend({dir:function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&Q(e).is(n))break;a.push(e)}return a},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Q.fn.extend({has:function(e){var t=Q(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Q.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,i=[],o=it.test(e)||"string"!=typeof e?Q(e,t||this.context):0;r>a;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Q.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?Q.unique(i):i)},index:function(e){return e?"string"==typeof e?z.call(Q(e),this[0]):z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Q.unique(Q.merge(this.get(),Q(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Q.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Q.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Q.dir(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return Q.dir(e,"nextSibling")},prevAll:function(e){return Q.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Q.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Q.dir(e,"previousSibling",n)},siblings:function(e){return Q.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Q.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Q.merge([],e.childNodes)}},function(e,t){Q.fn[e]=function(n,a){var r=Q.map(this,t,n);return"Until"!==e.slice(-5)&&(a=n),a&&"string"==typeof a&&(r=Q.filter(a,r)),this.length>1&&(ft[e]||Q.unique(r),ht.test(e)&&r.reverse()),this.pushStack(r)}});var dt=/\S+/g,pt={};Q.Callbacks=function(e){e="string"==typeof e?pt[e]||i(e):Q.extend({},e);var t,n,a,r,o,s,u=[],l=!e.once&&[],c=function(i){for(t=e.memory&&i,n=!0,s=r||0,r=0,o=u.length,a=!0;u&&o>s;s++)if(u[s].apply(i[0],i[1])===!1&&e.stopOnFalse){t=!1;break}a=!1,u&&(l?l.length&&c(l.shift()):t?u=[]:h.disable())},h={add:function(){if(u){var n=u.length;!function i(t){Q.each(t,function(t,n){var a=Q.type(n);"function"===a?e.unique&&h.has(n)||u.push(n):n&&n.length&&"string"!==a&&i(n)})}(arguments),a?o=u.length:t&&(r=n,c(t))}return this},remove:function(){return u&&Q.each(arguments,function(e,t){for(var n;(n=Q.inArray(t,u,n))>-1;)u.splice(n,1),a&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?Q.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=l=t=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,t||h.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!u||n&&!l||(t=t||[],t=[e,t.slice?t.slice():t],a?l.push(t):c(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},Q.extend({Deferred:function(e){var t=[["resolve","done",Q.Callbacks("once memory"),"resolved"],["reject","fail",Q.Callbacks("once memory"),"rejected"],["notify","progress",Q.Callbacks("memory")]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Q.Deferred(function(n){Q.each(t,function(t,i){var o=Q.isFunction(e[t])&&e[t];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&Q.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===a?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Q.extend(e,a):a}},r={};return a.pipe=a.then,Q.each(t,function(e,i){var o=i[2],s=i[3];a[i[1]]=o.add,s&&o.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[i[0]]=function(){return r[i[0]+"With"](this===r?a:this,arguments),this},r[i[0]+"With"]=o.fireWith}),a.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,a,r=0,i=W.call(arguments),o=i.length,s=1!==o||e&&Q.isFunction(e.promise)?o:0,u=1===s?e:Q.Deferred(),l=function(e,n,a){return function(r){n[e]=this,a[e]=arguments.length>1?W.call(arguments):r,a===t?u.notifyWith(n,a):--s||u.resolveWith(n,a)}};if(o>1)for(t=new Array(o),n=new Array(o),a=new Array(o);o>r;r++)i[r]&&Q.isFunction(i[r].promise)?i[r].promise().done(l(r,a,i)).fail(u.reject).progress(l(r,n,t)):--s;return s||u.resolveWith(a,i),u.promise()}});var mt;Q.fn.ready=function(e){return Q.ready.promise().done(e),this},Q.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Q.readyWait++:Q.ready(!0)},ready:function(e){(e===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,e!==!0&&--Q.readyWait>0||(mt.resolveWith(X,[Q]),Q.fn.triggerHandler&&(Q(X).triggerHandler("ready"),Q(X).off("ready"))))}}),Q.ready.promise=function(t){return mt||(mt=Q.Deferred(),"complete"===X.readyState?setTimeout(Q.ready):(X.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",o,!1))),mt.promise(t)},Q.ready.promise();var bt=Q.access=function(e,t,n,a,r,i,o){var s=0,u=e.length,l=null==n;if("object"===Q.type(n)){r=!0;for(s in n)Q.access(e,t,s,n[s],!0,i,o)}else if(void 0!==a&&(r=!0,Q.isFunction(a)||(o=!0),l&&(o?(t.call(e,a),t=null):(l=t,t=function(e,t,n){return l.call(Q(e),n)})),t))for(;u>s;s++)t(e[s],n,o?a:a.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):u?t(e[0],n):i};Q.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=Q.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=s.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(a){t[this.expando]=n,Q.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var a,r=this.key(e),i=this.cache[r];if("string"==typeof t)i[t]=n;else if(Q.isEmptyObject(i))Q.extend(this.cache[r],t);else for(a in t)i[a]=t[a];return i},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var a;return void 0===t||t&&"string"==typeof t&&void 0===n?(a=this.get(e,t),void 0!==a?a:this.get(e,Q.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a,r,i=this.key(e),o=this.cache[i];if(void 0===t)this.cache[i]={};else{Q.isArray(t)?a=t.concat(t.map(Q.camelCase)):(r=Q.camelCase(t),t in o?a=[t,r]:(a=r,a=a in o?[a]:a.match(dt)||[])),n=a.length;for(;n--;)delete o[a[n]]}},hasData:function(e){return!Q.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var gt=new s,vt=new s,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;Q.extend({hasData:function(e){return vt.hasData(e)||gt.hasData(e)},data:function(e,t,n){return vt.access(e,t,n)},removeData:function(e,t){vt.remove(e,t)},_data:function(e,t,n){return gt.access(e,t,n)},_removeData:function(e,t){gt.remove(e,t)}}),Q.fn.extend({data:function(e,t){var n,a,r,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(r=vt.get(i),1===i.nodeType&&!gt.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(a=o[n].name,0===a.indexOf("data-")&&(a=Q.camelCase(a.slice(5)),u(i,a,r[a])));gt.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){vt.set(this,e)}):bt(this,function(t){var n,a=Q.camelCase(e);if(i&&void 0===t){if(n=vt.get(i,e),void 0!==n)return n;if(n=vt.get(i,a),void 0!==n)return n;if(n=u(i,a,void 0),void 0!==n)return n}else this.each(function(){var n=vt.get(this,a);vt.set(this,a,t),-1!==e.indexOf("-")&&void 0!==n&&vt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){vt.remove(this,e)})}}),Q.extend({queue:function(e,t,n){var a;return e?(t=(t||"fx")+"queue",a=gt.get(e,t),n&&(!a||Q.isArray(n)?a=gt.access(e,t,Q.makeArray(n)):a.push(n)),a||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Q.queue(e,t),a=n.length,r=n.shift(),i=Q._queueHooks(e,t),o=function(){Q.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,o,i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return gt.get(e,n)||gt.access(e,n,{empty:Q.Callbacks("once memory").add(function(){gt.remove(e,[t+"queue",n])})})}}),Q.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Q.queue(this[0],e):void 0===t?this:this.each(function(){var n=Q.queue(this,e,t);Q._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Q.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Q.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,a=1,r=Q.Deferred(),i=this,o=this.length,s=function(){--a||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=gt.get(i[o],e+"queueHooks"),n&&n.empty&&(a++,n.empty.add(s));return s(),r.promise(t)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ct=["Top","Right","Bottom","Left"],St=function(e,t){return e=t||e,"none"===Q.css(e,"display")||!Q.contains(e.ownerDocument,e)},Tt=/^(?:checkbox|radio)$/i;!function(){var e=X.createDocumentFragment(),t=e.appendChild(X.createElement("div")),n=X.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),$.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",$.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var At="undefined";$.focusinBubbles="onfocusin"in e;var Et=/^key/,Mt=/^(?:mouse|pointer|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=/^([^.]*)(?:\.(.+)|)$/;Q.event={global:{},add:function(e,t,n,a,r){var i,o,s,u,l,c,h,f,d,p,m,b=gt.get(e);if(b)for(n.handler&&(i=n,n=i.handler,r=i.selector),n.guid||(n.guid=Q.guid++),(u=b.events)||(u=b.events={}),(o=b.handle)||(o=b.handle=function(t){return typeof Q!==At&&Q.event.triggered!==t.type?Q.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(dt)||[""],l=t.length;l--;)s=Nt.exec(t[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d&&(h=Q.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=Q.event.special[d]||{},c=Q.extend({type:d,origType:m,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&Q.expr.match.needsContext.test(r),namespace:p.join(".")},i),(f=u[d])||(f=u[d]=[],f.delegateCount=0,h.setup&&h.setup.call(e,a,p,o)!==!1||e.addEventListener&&e.addEventListener(d,o,!1)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),Q.event.global[d]=!0)},remove:function(e,t,n,a,r){var i,o,s,u,l,c,h,f,d,p,m,b=gt.hasData(e)&&gt.get(e);if(b&&(u=b.events)){for(t=(t||"").match(dt)||[""],l=t.length;l--;)if(s=Nt.exec(t[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d){for(h=Q.event.special[d]||{},d=(a?h.delegateType:h.bindType)||d,f=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=f.length;i--;)c=f[i],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(f.splice(i,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(e,c));o&&!f.length&&(h.teardown&&h.teardown.call(e,p,b.handle)!==!1||Q.removeEvent(e,d,b.handle),delete u[d])}else for(d in u)Q.event.remove(e,d+t[l],n,a,!0);Q.isEmptyObject(u)&&(delete b.handle,gt.remove(e,"events"))}},trigger:function(t,n,a,r){var i,o,s,u,l,c,h,f=[a||X],d=V.call(t,"type")?t.type:t,p=V.call(t,"namespace")?t.namespace.split("."):[];if(o=s=a=a||X,3!==a.nodeType&&8!==a.nodeType&&!Dt.test(d+Q.event.triggered)&&(d.indexOf(".")>=0&&(p=d.split("."),d=p.shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[Q.expando]?t:new Q.Event(d,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),n=null==n?[t]:Q.makeArray(n,[t]),h=Q.event.special[d]||{},r||!h.trigger||h.trigger.apply(a,n)!==!1)){if(!r&&!h.noBubble&&!Q.isWindow(a)){for(u=h.delegateType||d,Dt.test(u+d)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(a.ownerDocument||X)&&f.push(s.defaultView||s.parentWindow||e)}for(i=0;(o=f[i++])&&!t.isPropagationStopped();)t.type=i>1?u:h.bindType||d,c=(gt.get(o,"events")||{})[t.type]&&gt.get(o,"handle"),c&&c.apply(o,n),c=l&&o[l],c&&c.apply&&Q.acceptData(o)&&(t.result=c.apply(o,n),t.result===!1&&t.preventDefault());return t.type=d,r||t.isDefaultPrevented()||h._default&&h._default.apply(f.pop(),n)!==!1||!Q.acceptData(a)||l&&Q.isFunction(a[d])&&!Q.isWindow(a)&&(s=a[l],s&&(a[l]=null),Q.event.triggered=d,a[d](),Q.event.triggered=void 0,s&&(a[l]=s)),t.result}},dispatch:function(e){e=Q.event.fix(e);var t,n,a,r,i,o=[],s=W.call(arguments),u=(gt.get(this,"events")||{})[e.type]||[],l=Q.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(o=Q.event.handlers.call(this,e,u),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,a=((Q.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s),void 0!==a&&(e.result=a)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,i,o=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(a=[],n=0;s>n;n++)i=t[n],r=i.selector+" ",void 0===a[r]&&(a[r]=i.needsContext?Q(r,this).index(u)>=0:Q.find(r,this,null,[u]).length),a[r]&&a.push(i);a.length&&o.push({elem:u,handlers:a})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||X,a=n.documentElement,r=n.body,e.pageX=t.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[Q.expando])return e;var t,n,a,r=e.type,i=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Mt.test(r)?this.mouseHooks:Et.test(r)?this.keyHooks:{}),a=o.props?this.props.concat(o.props):this.props,e=new Q.Event(i),t=a.length;t--;)n=a[t],e[n]=i[n];return e.target||(e.target=X),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==h()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Q.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return Q.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,a){var r=Q.extend(new Q.Event,n,{type:e,isSimulated:!0,originalEvent:{}});a?Q.event.trigger(r,null,t):Q.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},Q.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Q.Event=function(e,t){return this instanceof Q.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?l:c):this.type=e,t&&Q.extend(this,t),this.timeStamp=e&&e.timeStamp||Q.now(),void(this[Q.expando]=!0)):new Q.Event(e,t)},Q.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=l,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Q.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Q.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,a=this,r=e.relatedTarget,i=e.handleObj;return(!r||r!==a&&!Q.contains(a,r))&&(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),$.focusinBubbles||Q.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Q.event.simulate(t,e.target,Q.event.fix(e),!0)};Q.event.special[t]={setup:function(){var a=this.ownerDocument||this,r=gt.access(a,t);r||a.addEventListener(e,n,!0),gt.access(a,t,(r||0)+1)},teardown:function(){var a=this.ownerDocument||this,r=gt.access(a,t)-1;r?gt.access(a,t,r):(a.removeEventListener(e,n,!0),gt.remove(a,t))}}}),Q.fn.extend({on:function(e,t,n,a,r){var i,o;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==a?(a=t,n=t=void 0):null==a&&("string"==typeof t?(a=n,n=void 0):(a=n,n=t,t=void 0)),a===!1)a=c;else if(!a)return this;return 1===r&&(i=a,a=function(e){return Q().off(e),i.apply(this,arguments)},a.guid=i.guid||(i.guid=Q.guid++)),this.each(function(){Q.event.add(this,e,a,n,t)})},one:function(e,t,n,a){return this.on(e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)return a=e.handleObj,Q(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=c),this.each(function(){Q.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Q.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Q.event.trigger(e,t,n,!0):void 0}});var kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Lt=/<([\w:]+)/,Bt=/<|&#?\w+;/,Pt=/<(?:script|style|link)/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^$|\/(?:java|ecma)script/i,Ft=/^true\/(.*)/,Ht=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,_t={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};_t.optgroup=_t.option,_t.tbody=_t.tfoot=_t.colgroup=_t.caption=_t.thead,_t.th=_t.td,Q.extend({clone:function(e,t,n){var a,r,i,o,s=e.cloneNode(!0),u=Q.contains(e.ownerDocument,e);if(!($.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Q.isXMLDoc(e)))for(o=g(s),i=g(e),a=0,r=i.length;r>a;a++)v(i[a],o[a]);if(t)if(n)for(i=i||g(e),o=o||g(s),a=0,r=i.length;r>a;a++)b(i[a],o[a]);else b(e,s);return o=g(s,"script"),o.length>0&&m(o,!u&&g(e,"script")),s},buildFragment:function(e,t,n,a){for(var r,i,o,s,u,l,c=t.createDocumentFragment(),h=[],f=0,d=e.length;d>f;f++)if(r=e[f],r||0===r)if("object"===Q.type(r))Q.merge(h,r.nodeType?[r]:r);else if(Bt.test(r)){for(i=i||c.appendChild(t.createElement("div")),o=(Lt.exec(r)||["",""])[1].toLowerCase(),s=_t[o]||_t._default,i.innerHTML=s[1]+r.replace(kt,"<$1></$2>")+s[2],l=s[0];l--;)i=i.lastChild;Q.merge(h,i.childNodes),i=c.firstChild,i.textContent=""}else h.push(t.createTextNode(r));for(c.textContent="",f=0;r=h[f++];)if((!a||-1===Q.inArray(r,a))&&(u=Q.contains(r.ownerDocument,r),i=g(c.appendChild(r),"script"),u&&m(i),n))for(l=0;r=i[l++];)It.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,a,r,i=Q.event.special,o=0;void 0!==(n=e[o]);o++){if(Q.acceptData(n)&&(r=n[gt.expando],r&&(t=gt.cache[r]))){if(t.events)for(a in t.events)i[a]?Q.event.remove(n,a):Q.removeEvent(n,a,t.handle);gt.cache[r]&&delete gt.cache[r]}delete vt.cache[n[vt.expando]]}}}),Q.fn.extend({text:function(e){return bt(this,function(e){return void 0===e?Q.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 this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,a=e?Q.filter(e,this):this,r=0;null!=(n=a[r]);r++)t||1!==n.nodeType||Q.cleanData(g(n)),n.parentNode&&(t&&Q.contains(n.ownerDocument,n)&&m(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Q.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Q.clone(this,e,t)})},html:function(e){return bt(this,function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pt.test(e)&&!_t[(Lt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(kt,"<$1></$2>");try{for(;a>n;n++)t=this[n]||{},1===t.nodeType&&(Q.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Q.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=q.apply([],e);var n,a,r,i,o,s,u=0,l=this.length,c=this,h=l-1,f=e[0],m=Q.isFunction(f);if(m||l>1&&"string"==typeof f&&!$.checkClone&&Rt.test(f))return this.each(function(n){var a=c.eq(n);m&&(e[0]=f.call(this,n,a.html())),a.domManip(e,t)});if(l&&(n=Q.buildFragment(e,this[0].ownerDocument,!1,this),a=n.firstChild,1===n.childNodes.length&&(n=a),a)){for(r=Q.map(g(n,"script"),d),i=r.length;l>u;u++)o=n,u!==h&&(o=Q.clone(o,!0,!0),i&&Q.merge(r,g(o,"script"))),t.call(this[u],o,u);if(i)for(s=r[r.length-1].ownerDocument,Q.map(r,p),u=0;i>u;u++)o=r[u],It.test(o.type||"")&&!gt.access(o,"globalEval")&&Q.contains(s,o)&&(o.src?Q._evalUrl&&Q._evalUrl(o.src):Q.globalEval(o.textContent.replace(Ht,"")))}return this}}),Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Q.fn[e]=function(e){for(var n,a=[],r=Q(e),i=r.length-1,o=0;i>=o;o++)n=o===i?this:this.clone(!0),Q(r[o])[t](n),K.apply(a,n.get());return this.pushStack(a)}});var jt,Ot={},Gt=/^margin/,Ut=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),Wt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var t=e.getComputedStyle(o,null);n="1%"!==t.top,a="4px"===t.width,r.removeChild(i)}var n,a,r=X.documentElement,i=X.createElement("div"),o=X.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",$.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),e.getComputedStyle&&Q.extend($,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==a&&t(),a},reliableMarginRight:function(){var t,n=o.appendChild(X.createElement("div"));return n.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(e.getComputedStyle(n,null).marginRight),r.removeChild(i),o.removeChild(n),t}}))}(),Q.swap=function(e,t,n,a){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];r=n.apply(e,a||[]);for(i in t)e.style[i]=o[i];return r};var qt=/^(none|table(?!-c[ea]).+)/,Kt=new RegExp("^("+wt+")(.*)$","i"),zt=new RegExp("^([+-])=("+wt+")","i"),Jt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","O","Moz","ms"];Q.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=w(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,o,s=Q.camelCase(t),u=e.style;return t=Q.cssProps[s]||(Q.cssProps[s]=S(u,s)),o=Q.cssHooks[t]||Q.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,a))?r:u[t]:(i=typeof n,"string"===i&&(r=zt.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(Q.css(e,t)),i="number"),null!=n&&n===n&&("number"!==i||Q.cssNumber[s]||(n+="px"),$.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,a))||(u[t]=n)),void 0)}},css:function(e,t,n,a){var r,i,o,s=Q.camelCase(t);return t=Q.cssProps[s]||(Q.cssProps[s]=S(e.style,s)),o=Q.cssHooks[t]||Q.cssHooks[s],o&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=w(e,t,a)),"normal"===r&&t in Yt&&(r=Yt[t]),""===n||n?(i=parseFloat(r),n===!0||Q.isNumeric(i)?i||0:r):r}}),Q.each(["height","width"],function(e,t){Q.cssHooks[t]={get:function(e,n,a){return n?qt.test(Q.css(e,"display"))&&0===e.offsetWidth?Q.swap(e,Jt,function(){return E(e,t,a)}):E(e,t,a):void 0},set:function(e,n,a){var r=a&&Wt(e);return T(e,n,a?A(e,t,a,"border-box"===Q.css(e,"boxSizing",!1,r),r):0)}}}),Q.cssHooks.marginRight=C($.reliableMarginRight,function(e,t){return t?Q.swap(e,{display:"inline-block"},w,[e,"marginRight"]):void 0}),Q.each({margin:"",padding:"",border:"Width"},function(e,t){Q.cssHooks[e+t]={expand:function(n){for(var a=0,r={},i="string"==typeof n?n.split(" "):[n];4>a;a++)r[e+Ct[a]+t]=i[a]||i[a-2]||i[0];return r}},Gt.test(e)||(Q.cssHooks[e+t].set=T)}),Q.fn.extend({css:function(e,t){return bt(this,function(e,t,n){var a,r,i={},o=0;if(Q.isArray(t)){for(a=Wt(e),r=t.length;r>o;o++)i[t[o]]=Q.css(e,t[o],!1,a);
return i}return void 0!==n?Q.style(e,t,n):Q.css(e,t)},e,t,arguments.length>1)},show:function(){return M(this,!0)},hide:function(){return M(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){St(this)?Q(this).show():Q(this).hide()})}}),Q.Tween=D,D.prototype={constructor:D,init:function(e,t,n,a,r,i){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=i||(Q.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.pos=t=this.options.duration?Q.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Q.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Q.fx.step[e.prop]?Q.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Q.cssProps[e.prop]]||Q.cssHooks[e.prop])?Q.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Q.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Q.fx=D.prototype.init,Q.fx.step={};var $t,Xt,Zt=/^(?:toggle|show|hide)$/,Qt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),en=/queueHooks$/,tn=[B],nn={"*":[function(e,t){var n=this.createTween(e,t),a=n.cur(),r=Qt.exec(t),i=r&&r[3]||(Q.cssNumber[e]?"":"px"),o=(Q.cssNumber[e]||"px"!==i&&+a)&&Qt.exec(Q.css(n.elem,e)),s=1,u=20;if(o&&o[3]!==i){i=i||o[3],r=r||[],o=+a||1;do s=s||".5",o/=s,Q.style(n.elem,e,o+i);while(s!==(s=n.cur()/a)&&1!==s&&--u)}return r&&(o=n.start=+o||+a||0,n.unit=i,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};Q.Animation=Q.extend(R,{tweener:function(e,t){Q.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,a=0,r=e.length;r>a;a++)n=e[a],nn[n]=nn[n]||[],nn[n].unshift(t)},prefilter:function(e,t){t?tn.unshift(e):tn.push(e)}}),Q.speed=function(e,t,n){var a=e&&"object"==typeof e?Q.extend({},e):{complete:n||!n&&t||Q.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Q.isFunction(t)&&t};return a.duration=Q.fx.off?0:"number"==typeof a.duration?a.duration:a.duration in Q.fx.speeds?Q.fx.speeds[a.duration]:Q.fx.speeds._default,(null==a.queue||a.queue===!0)&&(a.queue="fx"),a.old=a.complete,a.complete=function(){Q.isFunction(a.old)&&a.old.call(this),a.queue&&Q.dequeue(this,a.queue)},a},Q.fn.extend({fadeTo:function(e,t,n,a){return this.filter(St).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(e,t,n,a){var r=Q.isEmptyObject(e),i=Q.speed(t,n,a),o=function(){var t=R(this,Q.extend({},e),i);(r||gt.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||i.queue===!1?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var a=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=Q.timers,o=gt.get(this);if(r)o[r]&&o[r].stop&&a(o[r]);else for(r in o)o[r]&&o[r].stop&&en.test(r)&&a(o[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));(t||!n)&&Q.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=gt.get(this),a=n[e+"queue"],r=n[e+"queueHooks"],i=Q.timers,o=a?a.length:0;for(n.finish=!0,Q.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;o>t;t++)a[t]&&a[t].finish&&a[t].finish.call(this);delete n.finish})}}),Q.each(["toggle","show","hide"],function(e,t){var n=Q.fn[t];Q.fn[t]=function(e,a,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(k(t,!0),e,a,r)}}),Q.each({slideDown:k("show"),slideUp:k("hide"),slideToggle:k("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Q.fn[e]=function(e,n,a){return this.animate(t,e,n,a)}}),Q.timers=[],Q.fx.tick=function(){var e,t=0,n=Q.timers;for($t=Q.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Q.fx.stop(),$t=void 0},Q.fx.timer=function(e){Q.timers.push(e),e()?Q.fx.start():Q.timers.pop()},Q.fx.interval=13,Q.fx.start=function(){Xt||(Xt=setInterval(Q.fx.tick,Q.fx.interval))},Q.fx.stop=function(){clearInterval(Xt),Xt=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(e,t){return e=Q.fx?Q.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var a=setTimeout(t,e);n.stop=function(){clearTimeout(a)}})},function(){var e=X.createElement("input"),t=X.createElement("select"),n=t.appendChild(X.createElement("option"));e.type="checkbox",$.checkOn=""!==e.value,$.optSelected=n.selected,t.disabled=!0,$.optDisabled=!n.disabled,e=X.createElement("input"),e.value="t",e.type="radio",$.radioValue="t"===e.value}();var an,rn,on=Q.expr.attrHandle;Q.fn.extend({attr:function(e,t){return bt(this,Q.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Q.removeAttr(this,e)})}}),Q.extend({attr:function(e,t,n){var a,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute===At?Q.prop(e,t,n):(1===i&&Q.isXMLDoc(e)||(t=t.toLowerCase(),a=Q.attrHooks[t]||(Q.expr.match.bool.test(t)?rn:an)),void 0===n?a&&"get"in a&&null!==(r=a.get(e,t))?r:(r=Q.find.attr(e,t),null==r?void 0:r):null!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void Q.removeAttr(e,t))},removeAttr:function(e,t){var n,a,r=0,i=t&&t.match(dt);if(i&&1===e.nodeType)for(;n=i[r++];)a=Q.propFix[n]||n,Q.expr.match.bool.test(n)&&(e[a]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!$.radioValue&&"radio"===t&&Q.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),rn={set:function(e,t,n){return t===!1?Q.removeAttr(e,n):e.setAttribute(n,n),n}},Q.each(Q.expr.match.bool.source.match(/\w+/g),function(e,t){var n=on[t]||Q.find.attr;on[t]=function(e,t,a){var r,i;return a||(i=on[t],on[t]=r,r=null!=n(e,t,a)?t.toLowerCase():null,on[t]=i),r}});var sn=/^(?:input|select|textarea|button)$/i;Q.fn.extend({prop:function(e,t){return bt(this,Q.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Q.propFix[e]||e]})}}),Q.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var a,r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return i=1!==o||!Q.isXMLDoc(e),i&&(t=Q.propFix[t]||t,r=Q.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(e,n,t))?a:e[t]=n:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||sn.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),$.optSelected||(Q.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Q.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Q.propFix[this.toLowerCase()]=this});var un=/[\t\r\n\f]/g;Q.fn.extend({addClass:function(e){var t,n,a,r,i,o,s="string"==typeof e&&e,u=0,l=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(dt)||[];l>u;u++)if(n=this[u],a=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):" ")){for(i=0;r=t[i++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");o=Q.trim(a),n.className!==o&&(n.className=o)}return this},removeClass:function(e){var t,n,a,r,i,o,s=0===arguments.length||"string"==typeof e&&e,u=0,l=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(dt)||[];l>u;u++)if(n=this[u],a=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):"")){for(i=0;r=t[i++];)for(;a.indexOf(" "+r+" ")>=0;)a=a.replace(" "+r+" "," ");o=e?Q.trim(a):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(Q.isFunction(e)?function(n){Q(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,a=0,r=Q(this),i=e.match(dt)||[];t=i[a++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(n===At||"boolean"===n)&&(this.className&&gt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":gt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;a>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(un," ").indexOf(t)>=0)return!0;return!1}});var ln=/\r/g;Q.fn.extend({val:function(e){var t,n,a,r=this[0];{if(arguments.length)return a=Q.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=a?e.call(this,n,Q(this).val()):e,null==r?r="":"number"==typeof r?r+="":Q.isArray(r)&&(r=Q.map(r,function(e){return null==e?"":e+""})),t=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=Q.valHooks[r.type]||Q.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(ln,""):null==n?"":n)}}}),Q.extend({valHooks:{option:{get:function(e){var t=Q.find.attr(e,"value");return null!=t?t:Q.trim(Q.text(e))}},select:{get:function(e){for(var t,n,a=e.options,r=e.selectedIndex,i="select-one"===e.type||0>r,o=i?null:[],s=i?r+1:a.length,u=0>r?s:i?r:0;s>u;u++)if(n=a[u],!(!n.selected&&u!==r||($.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Q.nodeName(n.parentNode,"optgroup"))){if(t=Q(n).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,a,r=e.options,i=Q.makeArray(t),o=r.length;o--;)a=r[o],(a.selected=Q.inArray(a.value,i)>=0)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),Q.each(["radio","checkbox"],function(){Q.valHooks[this]={set:function(e,t){return Q.isArray(t)?e.checked=Q.inArray(Q(e).val(),t)>=0:void 0}},$.checkOn||(Q.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Q.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Q.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Q.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var cn=Q.now(),hn=/\?/;Q.parseJSON=function(e){return JSON.parse(e+"")},Q.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(a){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Q.error("Invalid XML: "+e),t};var fn=/#.*$/,dn=/([?&])_=[^&]*/,pn=/^(.*?):[ \t]*([^\r\n]*)$/gm,mn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,bn=/^(?:GET|HEAD)$/,gn=/^\/\//,vn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,yn={},xn={},wn="*/".concat("*"),Cn=e.location.href,Sn=vn.exec(Cn.toLowerCase())||[];Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn,type:"GET",isLocal:mn.test(Sn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Q.parseJSON,"text xml":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,Q.ajaxSettings),t):H(Q.ajaxSettings,e)},ajaxPrefilter:I(yn),ajaxTransport:I(xn),ajax:function(e,t){function n(e,t,n,o){var u,c,g,v,x,C=t;2!==y&&(y=2,s&&clearTimeout(s),a=void 0,i=o||"",w.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(v=_(h,w,n)),v=j(h,v,w,u),u?(h.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(Q.lastModified[r]=x),x=w.getResponseHeader("etag"),x&&(Q.etag[r]=x)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=v.state,c=v.data,g=v.error,u=!g)):(g=C,(e||!C)&&(C="error",0>e&&(e=0))),w.status=e,w.statusText=(t||C)+"",u?p.resolveWith(f,[c,C,w]):p.rejectWith(f,[w,C,g]),w.statusCode(b),b=void 0,l&&d.trigger(u?"ajaxSuccess":"ajaxError",[w,h,u?c:g]),m.fireWith(f,[w,C]),l&&(d.trigger("ajaxComplete",[w,h]),--Q.active||Q.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var a,r,i,o,s,u,l,c,h=Q.ajaxSetup({},t),f=h.context||h,d=h.context&&(f.nodeType||f.jquery)?Q(f):Q.event,p=Q.Deferred(),m=Q.Callbacks("once memory"),b=h.statusCode||{},g={},v={},y=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!o)for(o={};t=pn.exec(i);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=v[n]=v[n]||e,g[e]=t),this},overrideMimeType:function(e){return y||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>y)for(t in e)b[t]=[b[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return a&&a.abort(t),n(0,t),this}};if(p.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,h.url=((e||h.url||Cn)+"").replace(fn,"").replace(gn,Sn[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=Q.trim(h.dataType||"*").toLowerCase().match(dt)||[""],null==h.crossDomain&&(u=vn.exec(h.url.toLowerCase()),h.crossDomain=!(!u||u[1]===Sn[1]&&u[2]===Sn[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(Sn[3]||("http:"===Sn[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Q.param(h.data,h.traditional)),F(yn,h,t,w),2===y)return w;l=Q.event&&h.global,l&&0===Q.active++&&Q.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!bn.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(hn.test(r)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=dn.test(r)?r.replace(dn,"$1_="+cn++):r+(hn.test(r)?"&":"?")+"_="+cn++)),h.ifModified&&(Q.lastModified[r]&&w.setRequestHeader("If-Modified-Since",Q.lastModified[r]),Q.etag[r]&&w.setRequestHeader("If-None-Match",Q.etag[r])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",h.contentType),w.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+wn+"; q=0.01":""):h.accepts["*"]);for(c in h.headers)w.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(h.beforeSend.call(f,w,h)===!1||2===y))return w.abort();x="abort";for(c in{success:1,error:1,complete:1})w[c](h[c]);if(a=F(xn,h,t,w)){w.readyState=1,l&&d.trigger("ajaxSend",[w,h]),h.async&&h.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},h.timeout));try{y=1,a.send(g,n)}catch(C){if(!(2>y))throw C;n(-1,C)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return Q.get(e,t,n,"json")},getScript:function(e,t){return Q.get(e,void 0,t,"script")}}),Q.each(["get","post"],function(e,t){Q[t]=function(e,n,a,r){return Q.isFunction(n)&&(r=r||a,a=n,n=void 0),Q.ajax({url:e,type:t,dataType:r,data:n,success:a})}}),Q._evalUrl=function(e){return Q.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Q.fn.extend({wrapAll:function(e){var t;return Q.isFunction(e)?this.each(function(t){Q(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Q(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 this.each(Q.isFunction(e)?function(t){Q(this).wrapInner(e.call(this,t))}:function(){var t=Q(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Q.isFunction(e);return this.each(function(n){Q(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,"body")||Q(this).replaceWith(this.childNodes)}).end()}}),Q.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Q.expr.filters.visible=function(e){return!Q.expr.filters.hidden(e)};var Tn=/%20/g,An=/\[\]$/,En=/\r?\n/g,Mn=/^(?:submit|button|image|reset|file)$/i,Dn=/^(?:input|select|textarea|keygen)/i;Q.param=function(e,t){var n,a=[],r=function(e,t){t=Q.isFunction(t)?t():null==t?"":t,a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(e)||e.jquery&&!Q.isPlainObject(e))Q.each(e,function(){r(this.name,this.value)});else for(n in e)O(n,e[n],t,r);return a.join("&").replace(Tn,"+")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Q.prop(this,"elements");return e?Q.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Q(this).is(":disabled")&&Dn.test(this.nodeName)&&!Mn.test(e)&&(this.checked||!Tt.test(e))}).map(function(e,t){var n=Q(this).val();return null==n?null:Q.isArray(n)?Q.map(n,function(e){return{name:t.name,value:e.replace(En,"\r\n")}}):{name:t.name,value:n.replace(En,"\r\n")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Nn=0,kn={},Ln={0:200,1223:204},Bn=Q.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in kn)kn[e]()}),$.cors=!!Bn&&"withCredentials"in Bn,$.ajax=Bn=!!Bn,Q.ajaxTransport(function(e){var t;return $.cors||Bn&&!e.crossDomain?{send:function(n,a){var r,i=e.xhr(),o=++Nn;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)i[r]=e.xhrFields[r];e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)i.setRequestHeader(r,n[r]);t=function(e){return function(){t&&(delete kn[o],t=i.onload=i.onerror=null,"abort"===e?i.abort():"error"===e?a(i.status,i.statusText):a(Ln[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:void 0,i.getAllResponseHeaders()))}},i.onload=t(),i.onerror=t("error"),t=kn[o]=t("abort");try{i.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}:void 0}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Q.globalEval(e),e}}}),Q.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Q.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(a,r){t=Q("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),X.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Pn=[],Rn=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pn.pop()||Q.expando+"_"+cn++;return this[e]=!0,e}}),Q.ajaxPrefilter("json jsonp",function(t,n,a){var r,i,o,s=t.jsonp!==!1&&(Rn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=Q.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Rn,"$1"+r):t.jsonp!==!1&&(t.url+=(hn.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||Q.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=e[r],e[r]=function(){o=arguments},a.always(function(){e[r]=i,t[r]&&(t.jsonpCallback=n.jsonpCallback,Pn.push(r)),o&&Q.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),Q.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||X;var a=ot.exec(e),r=!n&&[];return a?[t.createElement(a[1])]:(a=Q.buildFragment([e],t,r),r&&r.length&&Q(r).remove(),Q.merge([],a.childNodes))};var In=Q.fn.load;Q.fn.load=function(e,t,n){if("string"!=typeof e&&In)return In.apply(this,arguments);var a,r,i,o=this,s=e.indexOf(" ");return s>=0&&(a=Q.trim(e.slice(s)),e=e.slice(0,s)),Q.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&Q.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){i=arguments,o.html(a?Q("<div>").append(Q.parseHTML(e)).find(a):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},Q.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Q.fn[t]=function(e){return this.on(t,e)}}),Q.expr.filters.animated=function(e){return Q.grep(Q.timers,function(t){return e===t.elem}).length};var Fn=e.document.documentElement;Q.offset={setOffset:function(e,t,n){var a,r,i,o,s,u,l,c=Q.css(e,"position"),h=Q(e),f={};"static"===c&&(e.style.position="relative"),s=h.offset(),i=Q.css(e,"top"),u=Q.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(i+u).indexOf("auto")>-1,l?(a=h.position(),o=a.top,r=a.left):(o=parseFloat(i)||0,r=parseFloat(u)||0),Q.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):h.css(f)}},Q.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Q.offset.setOffset(this,e,t)});var t,n,a=this[0],r={top:0,left:0},i=a&&a.ownerDocument;if(i)return t=i.documentElement,Q.contains(t,a)?(typeof a.getBoundingClientRect!==At&&(r=a.getBoundingClientRect()),n=G(i),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,n=this[0],a={top:0,left:0};return"fixed"===Q.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Q.nodeName(e[0],"html")||(a=e.offset()),a.top+=Q.css(e[0],"borderTopWidth",!0),a.left+=Q.css(e[0],"borderLeftWidth",!0)),{top:t.top-a.top-Q.css(n,"marginTop",!0),left:t.left-a.left-Q.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Fn;e&&!Q.nodeName(e,"html")&&"static"===Q.css(e,"position");)e=e.offsetParent;return e||Fn})}}),Q.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var a="pageYOffset"===n;Q.fn[t]=function(r){return bt(this,function(t,r,i){var o=G(t);return void 0===i?o?o[n]:t[r]:void(o?o.scrollTo(a?e.pageXOffset:i,a?i:e.pageYOffset):t[r]=i)},t,r,arguments.length,null)}}),Q.each(["top","left"],function(e,t){Q.cssHooks[t]=C($.pixelPosition,function(e,n){return n?(n=w(e,t),Ut.test(n)?Q(e).position()[t]+"px":n):void 0})}),Q.each({Height:"height",Width:"width"},function(e,t){Q.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,a){Q.fn[a]=function(a,r){var i=arguments.length&&(n||"boolean"!=typeof a),o=n||(a===!0||r===!0?"margin":"border");return bt(this,function(t,n,a){var r;return Q.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?Q.css(t,n,o):Q.style(t,n,a,o)},t,i?a:void 0,i,null)}})}),Q.fn.size=function(){return this.length},Q.fn.andSelf=Q.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Q});var Hn=e.jQuery,_n=e.$;return Q.noConflict=function(t){return e.$===Q&&(e.$=_n),t&&e.jQuery===Q&&(e.jQuery=Hn),Q},typeof t===At&&(e.jQuery=e.$=Q),Q})},{}]},{},[1]);
'use strict';
// This script is meant to be pulled into a bookmarklet. Create a bookmark with the following
// code snippet as the address.
//
// javascript:(function(){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='https://gist.githubusercontent.com/joemaller/6f1a1814d28d8aebd88a/raw/autofill.js';document.getElementsByTagName('head')[0].appendChild(s);})()
var $ = require('jquery');
var Chance = require('chance');
var chance = new Chance();
/**
* All the logic is in here. This attempts
* to enter proper information for email,
* urls, names, addresses, etc.
*/
var fillify = function(input) {
var $input = $(input);
var type = $input.attr('type').toLowerCase();
var name = $input.attr('name').toLowerCase();
// email
var mail_regex = /e[-_.]?mail/i;
if (mail_regex.test(type) || mail_regex.test(name)) {
return $input.val(chance.email());
}
// urls
var url_regex = /(url|web\s?(site|page)?)/i;
if (type === 'url' || url_regex.test(name)) {
return $input.val(chance.url());
}
// phone numbers
var phone_regex = /((mobile|tele)[- ]?)?phone/i;
if (phone_regex.test(name)) {
return $input.val(chance.phone());
}
// Everything else gets a name for now
return $input.val(chance.name({middle: chance.bool()}));
};
/**
* Get all inputs that aren't submit buttons
*/
$('input').not('[type=submit]').each(function(i, e) {
fillify(e);
});
/**
* Choose a random option from selects (skip zeroth option)
*/
$('select').each(function(i, e) {
// var optCount = e.length;
var optCount = $(e).find('option').length;
$(e)
.find('option')
.eq(chance.integer({min: 1, max: optCount - 1}))
.prop('selected', true);
});
/**
* Fill textareas with random paragraphs
*/
$('textarea').each(function(i, e) {
$(this).val(chance.paragraph());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment