You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mercury-parser/dist/mercury.web.js

11 lines
314 KiB
JavaScript

var Mercury=function(){"use strict";function e(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function t(e){return e&&e.__esModule?e.default:e}function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if($t===setTimeout)return setTimeout(e,0);if(($t===r||!$t)&&setTimeout)return $t=setTimeout,setTimeout(e,0);try{return $t(e,0)}catch(t){try{return $t.call(null,e,0)}catch(t){return $t.call(this,e,0)}}}function o(e){if(Vt===clearTimeout)return clearTimeout(e);if((Vt===i||!Vt)&&clearTimeout)return Vt=clearTimeout,clearTimeout(e);try{return Vt(e)}catch(t){try{return Vt.call(null,e)}catch(t){return Vt.call(this,e)}}}function s(){Jt&&Kt&&(Jt=!1,Kt.length?Xt=Kt.concat(Xt):Zt=-1,Xt.length&&u())}function u(){if(!Jt){var e=a(s);Jt=!0;for(var t=Xt.length;t;){for(Kt=Xt,Xt=[];++Zt<t;)Kt&&Kt[Zt].run();Zt=-1,t=Xt.length}Kt=null,Jt=!1,o(e)}}function c(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Xt.push(new l(e,t)),1!==Xt.length||Jt||a(u)}function l(e,t){this.fun=e,this.array=t}function f(){}function h(e){throw new Error("process.binding is not supported")}function d(){return"/"}function p(e){throw new Error("process.chdir is not supported")}function m(){return 0}function g(e){var t=.001*vn.call(gn),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],r-=e[1],r<0&&(n--,r+=1e9)),[n,r]}function v(){var e=new Date,t=e-yn;return t/1e3}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function b(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function A(e,t,n){if(e&&As.isObject(e)&&e instanceof b)return e;var r=new b;return r.parse(e,t,n),r}function _(e){return As.isString(e)&&(e=A(e)),e instanceof b?e.format():b.prototype.format.call(e)}function w(e,t){return A(e,!1,!0).resolve(t)}function x(e,t){return e?A(e,!1,!0).resolveObject(t):t}function M(e,t){var n,r=k(e);return t&&Ks.test(r)?T(e):null!==(n=r.match(Xs))?{method:n[1],url:n[2],version:{major:parseInt(n[3],10),minor:parseInt(n[4],10)},headers:T(e)}:null!==(n=r.match(Js))?{version:{major:parseInt(n[1],10),minor:parseInt(n[2],10)},statusCode:parseInt(n[3],10),statusMessage:n[4],headers:T(e)}:T(e)}function T(e){var t,n,r,i={},a=Vs(e),o=a();for(Ks.test(o)&&(o=a());o;)" "!==o[0]&&"\t"!==o[0]?(n&&E(n,r,i),t=o.indexOf(":"),n=o.substr(0,t),r=o.substr(t+1).trim(),o=a()):(r+=" "+o.trim(),o=a());return n&&E(n,r,i),i}function S(e){return e&&e._header&&(e=e._header),e&&"function"==typeof e.toString?e.toString().trim():""}function k(e){return e.slice(0,e.indexOf("\r\n"))}function E(e,t,n){switch(e=e.toLowerCase()){case"set-cookie":void 0!==n[e]?n[e].push(t):n[e]=[t];break;case"content-type":case"content-length":case"user-agent":case"referer":case"host":case"authorization":case"proxy-authorization":case"if-modified-since":case"if-unmodified-since":case"from":case"location":case"max-forwards":case"retry-after":case"etag":case"last-modified":case"server":case"age":case"expires":void 0===n[e]&&(n[e]=t);break;default:"string"==typeof n[e]?n[e]+=", "+t:n[e]=t}}function C(e,t){if("function"!=typeof t)throw new Error("Bad callback given: "+t);if(!e)throw new Error("No options given");var n=e.onResponse;if(e="string"==typeof e?{uri:e}:JSON.parse(JSON.stringify(e)),e.onResponse=n,e.verbose&&(C.log=j()),e.url&&(e.uri=e.url,delete e.url),!e.uri&&""!==e.uri)throw new Error("options.uri is a required argument");if("string"!=typeof e.uri)throw new Error("options.uri must be a string");for(var r=["proxy","_redirectsFollowed","maxRedirects","followRedirect"],i=0;i<r.length;i++)if(e[r[i]])throw new Error("options."+r[i]+" is not supported");if(e.callback=t,e.method=e.method||"GET",e.headers=e.headers||{},e.body=e.body||null,e.timeout=e.timeout||C.DEFAULT_TIMEOUT,e.headers.host)throw new Err
this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&v.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var o=v.call(i,"catchLoc"),s=v.call(i,"finallyLoc");if(o&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?this.next=i.finallyLoc:this.complete(a),k},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),h(n),k}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:p(e),resultName:t,nextLoc:n},k}}}("object"==typeof Gt?Gt:"object"==typeof window?window:"object"==typeof self?self:this)}),_n="object"==typeof Gt?Gt:"object"==typeof window?window:"object"==typeof self?self:void 0,wn=_n.regeneratorRuntime&&Object.getOwnPropertyNames(_n).indexOf("regeneratorRuntime")>=0,xn=wn&&_n.regeneratorRuntime;_n.regeneratorRuntime=void 0;var Mn=An;if(wn)_n.regeneratorRuntime=xn;else try{delete _n.regeneratorRuntime}catch(e){_n.regeneratorRuntime=void 0}var Tn=Mn,Sn=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),kn=n(function(e){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)}),En=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Cn=En,On=function(e,t,n){if(Cn(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Dn=function(e){return"object"==typeof e?null!==e:"function"==typeof e},jn=Dn,Pn=function(e){if(!jn(e))throw TypeError(e+" is not an object!");return e},Nn=function(e){try{return!!e()}catch(e){return!0}},zn=!Nn(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Ln=Dn,Rn=Sn.document,Wn=Ln(Rn)&&Ln(Rn.createElement),qn=function(e){return Wn?Rn.createElement(e):{}},Bn=!zn&&!Nn(function(){return 7!=Object.defineProperty(qn("div"),"a",{get:function(){return 7}}).a}),Yn=Dn,Hn=function(e,t){if(!Yn(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Yn(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Yn(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Yn(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Fn=Pn,In=Bn,Un=Hn,Gn=Object.defineProperty,$n=zn?Object.defineProperty:function(e,t,n){if(Fn(e),t=Un(t,!0),Fn(n),In)try{return Gn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e},Vn={f:$n},Kn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xn=Vn,Jn=Kn
r.parentNode.removeChild(r));return e}function D(e,t,n){var r,i,a,o,s=e.style;return n=n||st(e),n&&(o=n.getPropertyValue(t)||n[t],""!==o||pe.contains(e.ownerDocument,e)||(o=pe.style(e,t)),!he.pixelMarginRight()&&ot.test(o)&&at.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function j(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function P(e){if(e in ht)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if(e=ft[n]+t,e in ht)return e}function N(e,t,n){var r=Be.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function z(e,t,n,r,i){var a,o=0;for(a=n===(r?"border":"content")?4:"width"===t?1:0;a<4;a+=2)"margin"===n&&(o+=pe.css(e,n+Ye[a],!0,i)),r?("content"===n&&(o-=pe.css(e,"padding"+Ye[a],!0,i)),"margin"!==n&&(o-=pe.css(e,"border"+Ye[a]+"Width",!0,i))):(o+=pe.css(e,"padding"+Ye[a],!0,i),"padding"!==n&&(o+=pe.css(e,"border"+Ye[a]+"Width",!0,i)));return o}function L(e,t,n){var r,i=!0,a=st(e),o="border-box"===pe.css(e,"boxSizing",!1,a);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),r<=0||null==r){if(r=D(e,t,a),(r<0||null==r)&&(r=e.style[t]),ot.test(r))return r;i=o&&(he.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+z(e,t,n||(o?"border":"content"),i,a)+"px"}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function W(){pt&&(e.requestAnimationFrame(W),pe.fx.tick())}function q(){return e.setTimeout(function(){dt=void 0}),dt=pe.now()}function B(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Ye[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Y(e,t,n){for(var r,i=(I.tweeners[t]||[]).concat(I.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function H(e,t,n){var r,i,a,o,s,u,c,l,f="width"in t||"height"in t,h=this,d={},p=e.style,m=e.nodeType&&He(e),v=ze.get(e,"fxshow");n.queue||(o=pe._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,pe.queue(e,"fx").length||o.empty.fire()})}));for(r in t)if(i=t[r],mt.test(i)){if(delete t[r],a=a||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}d[r]=v&&v[r]||pe.style(e,r)}if(u=!pe.isEmptyObject(t),u||!pe.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=v&&v.display,null==c&&(c=ze.get(e,"display")),l=pe.css(e,"display"),"none"===l&&(c?l=c:(g([e],!0),c=e.style.display||c,l=pe.css(e,"display"),g([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===pe.css(e,"float")&&(u||(h.done(function(){p.display=c}),null==c&&(l=p.display,c="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(v?"hidden"in v&&(m=v.hidden):v=ze.access(e,"fxshow",{display:c}),a&&(v.hidden=!m),m&&g([e],!0),h.done(function(){m||g([e]),ze.remove(e,"fxshow");for(r in d)pe.style(e,r,d[r])})),u=Y(m?v[r]:0,r,h),r in v||(v[r]=u.start,m&&(u.end=u.start,u.start=0))}}function F(e,t){var n,r,i,a,o;for(n in e)if(r=pe.camelCase(n),i=t[r],a=e[n],pe.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=pe.cssHooks[r],o&&"expand"in o){a=o.expand(a),delete e[r];for(n in a)n in e||(e[n]=a[n],t[n]=i)}else t[r]=i}function I(e,t,n){var r,i,a=0,o=I.prefilters.length,s=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=dt||q(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,a=1-r,o=0,u=c.tweens.length;o<u;o++)c.tweens[o].run(a);return s.notifyWith(e,[c,a,n]),a<1&&u?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},s
})},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&pe(e);if(!we.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?pe.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?oe.call(pe(e),this[0]):oe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ae(e,"parentNode")},parentsUntil:function(e,t,n){return Ae(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return Ae(e,"nextSibling")},prevAll:function(e){return Ae(e,"previousSibling")},nextUntil:function(e,t,n){return Ae(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ae(e,"previousSibling",n)},siblings:function(e){return _e((e.parentNode||{}).firstChild,e)},children:function(e){return _e(e.firstChild)},contents:function(e){return e.contentDocument||pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ce[e]||pe.uniqueSort(i),Ee.test(e)&&i.reverse()),this.pushStack(i)}});var Oe=/[^\x20\t\r\n\f]+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,c=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&e.stopOnFalse&&(u=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},l={add:function(){return a&&(n&&!t&&(u=a.length-1,s.push(n)),function t(n){pe.each(n,function(n,r){pe.isFunction(r)?e.unique&&l.has(r)||a.push(r):r&&r.length&&"string"!==pe.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},pe.extend({Deferred:function(t){var n=[["notify","progress",pe.Callbacks("memory"),pe.Callbacks("memory"),2],["resolve","done",pe.Callbacks("once memory"),pe.Callbacks("once memory"),0,"resolved"],["reject","fail",pe.Callbacks("once memory"),pe.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return pe.Deferred(function(t){pe.each(n,function(n,r){var i=pe.isFunction(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function a(t,n,r,i){return function(){var c=this,l=arguments,f=function(){var e,f;if(!(t<o)){if(e=r.apply(c,l),e===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,pe.isFunction(f)?i?f.call(e,a(o,n,s,i),a(o,n,u,i)):(o++,f.call(e,a(o,n,s,i),a(o,n,u,i),a(o,n,s,n.notifyWith))):(r!==s&&(c=void 0,l=[e]),(i||n.resolveWith)(c,l))}},h=i?f:function(){try{f()}catch(e){pe.Deferred.exceptionHook&&pe.Deferred.exceptionHook(e,h.stackTrace),t+1>=o&&(r!==u&&(c=void 0,l=[e]),n.rejectWith(c,l))}};t?h():(pe.Deferred.getStackHook&&(h.stackTrace=pe.Deferred.getStackHook()),e.setTimeout(h))}}var o=0;return pe.Deferred(function(e){n[0][3].a
if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(_t,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:U(pe.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],u=o?a+1:i.length;for(r=a<0?u:o?a:0;r<u;r++)if(n=i[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!pe.nodeName(n.parentNode,"optgroup"))){if(t=pe(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=pe.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=pe.inArray(pe.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},he.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt=/^(?:focusinfocus|focusoutblur)$/;pe.extend(pe.event,{trigger:function(t,n,r,i){var a,o,s,u,c,l,f,h=[r||te],d=ce.call(t,"type")?t.type:t,p=ce.call(t,"namespace")?t.namespace.split("."):[];if(o=s=r=r||te,3!==r.nodeType&&8!==r.nodeType&&!wt.test(d+pe.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),c=d.indexOf(":")<0&&"on"+d,t=t[pe.expando]?t:new pe.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),f=pe.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!pe.isWindow(r)){for(u=f.delegateType||d,wt.test(u+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(r.ownerDocument||te)&&h.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=h[a++])&&!t.isPropagationStopped();)t.type=a>1?u:f.bindType||d,l=(ze.get(o,"events")||{})[t.type]&&ze.get(o,"handle"),l&&l.apply(o,n),l=c&&o[c],l&&l.apply&&Ne(o)&&(t.result=l.apply(o,n),t.result===!1&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!Ne(r)||c&&pe.isFunction(r[d])&&!pe.isWindow(r)&&(s=r[c],s&&(r[c]=null),pe.event.triggered=d,r[d](),pe.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t)}}),pe.fn.extend({trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}}),pe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.focusin="onfocusin"in e,he.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ze.access(r,t);i||r.addEventListener(e,n,!0),ze.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ze.access(r,t)-1;i?ze.access(r,t,i):(r.removeEventListener(e,n,!0),ze.remove(r,t))}}});var xt=e.location,Mt=pe.now(),Tt=/\?/;pe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||pe.error("In
for(var t,n=pf(rf(e)),r=[],i=0;n.length>i;)Yl(xf,t=n[i++])||t==bf||t==Ul||r.push(t);return r},Wf=function(e){for(var t,n=e===Tf,r=pf(n?Mf:rf(e)),i=[],a=0;r.length>a;)!Yl(xf,t=r[a++])||n&&!Yl(Tf,t)||i.push(xf[t]);return i};Sf||(mf=function(){if(this instanceof mf)throw TypeError("Symbol is not a constructor!");var e=Kl(arguments.length>0?arguments[0]:void 0),t=function(n){this===Tf&&t.call(Mf,n),Yl(this,bf)&&Yl(this[bf],e)&&(this[bf][e]=!1),Cf(this,e,of(1,n))};return Hl&&Ef&&Cf(Tf,e,{configurable:!0,set:t}),Of(e)},Il(mf[yf],"toString",function(){return this._k}),cf.f=Lf,lf.f=jf,Wu.f=uf.f=Rf,Zr.f=zf,Xr.f=Wf,Hl&&!gi&&Il(Tf,"propertyIsEnumerable",zf,!0),Jl.f=function(e){return Of(Xl(e))}),Fl(Fl.G+Fl.W+Fl.F*!Sf,{Symbol:mf});for(var qf="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Bf=0;qf.length>Bf;)Xl(qf[Bf++]);for(var qf=ff(Xl.store),Bf=0;qf.length>Bf;)Zl(qf[Bf++]);Fl(Fl.S+Fl.F*!Sf,"Symbol",{for:function(e){return Yl(wf,e+="")?wf[e]:wf[e]=mf(e)},keyFor:function(e){if(Df(e))return Ql(wf,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){Ef=!0},useSimple:function(){Ef=!1}}),Fl(Fl.S+Fl.F*!Sf,"Object",{create:Nf,defineProperty:jf,defineProperties:Pf,getOwnPropertyDescriptor:Lf,getOwnPropertyNames:Rf,getOwnPropertySymbols:Wf}),gf&&Fl(Fl.S+Fl.F*(!Sf||Gl(function(){var e=mf();return"[null]"!=vf([e])||"{}"!=vf({a:e})||"{}"!=vf(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Df(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&tf(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Df(t))return t}),r[1]=t,vf.apply(gf,r)}}}),mf[yf][Af]||Zn(mf[yf],Af,mf[yf].valueOf),Vl(mf,"Symbol"),Vl(Math,"Math",!0),Vl(Bl.JSON,"JSON",!0),pl("asyncIterator"),pl("observable");var Yf=kn.Symbol,Hf=n(function(e){e.exports={default:Yf,__esModule:!0}}),Ff=n(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=sl,i=n(r),a=Hf,o=n(a),s="function"==typeof o.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};t.default="function"==typeof o.default&&"symbol"===s(i.default)?function(e){return"undefined"==typeof e?"undefined":s(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":"undefined"==typeof e?"undefined":s(e)}}),If=t(Ff),Uf=new RegExp("https?://","i"),Gf=new RegExp(".(png|gif|jpe?g)","i"),$f=["script","style","form"].join(","),Vf={create:function(e,t,n){var r=this;return ps(Tn.mark(function i(){var a,o;return Tn.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=void 0,!t){i.next=6;break}o={statusMessage:"OK",statusCode:200,headers:{"content-type":"text/html","content-length":500}},a={body:t,response:o},i.next=9;break;case 6:return i.next=8,Nu(e,n);case 8:a=i.sent;case 9:if(!a.error){i.next=12;break}return a.failed=!0,i.abrupt("return",a);case 12:return i.abrupt("return",r.generateDoc(a));case 13:case"end":return i.stop()}},i,r)}))()},generateDoc:function(e){var t=e.body,n=e.response,r=n.headers["content-type"];if(!r.includes("html")&&!r.includes("text"))throw new Error("Content does not appear to be text.");var i=Is.load(t);if(0===i.root().children().length)throw new Error("No children, likely a bad parse.");return i=X(i),i=$e(i),i=Xe(i)}},Kf=ar,Xf=kn,Jf=Nn,Zf=function(e,t){var n=(Xf.Object||{})[e]||Object[e],r={};r[e]=t(n),Kf(Kf.S+Kf.F*Jf(function(){n(1)}),"Object",r)},Qf=ei,eh=Vr;Zf("keys",function(){return function(e){return eh(Qf(e))}});var th=kn.Object.keys,nh=n(function(e){e.exports={default:th,__esModule:!0}}),rh=t(nh),ih=function(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})},ah={domain:"blogspot.com",content:{selectors:[".post-content noscript"],clean:[],transforms:{noscript:"div"}},author:{selectors:[".post-author-name"]},title:{selectors:[".post h2.title"]},date_published:{selectors:["span.publishdate"]}},oh={domain:"nymag.com",content:{se
this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(e){return ye(e)?366:365}function ye(e){return e%4===0&&e%100!==0||e%400===0}function be(){return ye(this.year())}function Ae(e,t,n,r,i,a,o){var s=new Date(e,t,n,r,i,a,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n,i=(7+_e(e,0,r).getUTCDay()-t)%7;return-i+r-1}function xe(e,t,n,r,i){var a,o,s=(7+n-r)%7,u=we(e,r,i),c=1+7*(t-1)+s+u;return c<=0?(a=e-1,o=ve(a)+c):c>ve(e)?(a=e+1,o=c-ve(e)):(a=e,o=c),{year:a,dayOfYear:o}}function Me(e,t,n){var r,i,a=we(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?(i=e.year()-1,r=o+Te(i,t,n)):o>Te(e.year(),t,n)?(r=o-Te(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Te(e,t,n){var r=we(e,t,n),i=we(e+1,t,n);return(ve(e)-r+i)/7}function Se(e){return Me(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function Ee(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function je(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Ne(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ze(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Le(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(i=hi.call(this._weekdaysParse,o),i!==-1?i:null):"ddd"===t?(i=hi.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=hi.call(this._minWeekdaysParse,o),i!==-1?i:null):"dddd"===t?(i=hi.call(this._weekdaysParse,o),i!==-1?i:(i=hi.call(this._shortWeekdaysParse,o),i!==-1?i:(i=hi.call(this._minWeekdaysParse,o),i!==-1?i:null))):"ddd"===t?(i=hi.call(this._shortWeekdaysParse,o),i!==-1?i:(i=hi.call(this._weekdaysParse,o),i!==-1?i:(i=hi.call(this._minWeekdaysParse,o),i!==-1?i:null))):(i=hi.call(this._minWeekdaysParse,o),i!==-1?i:(i=hi.call(this._weekdaysParse,o),i!==-1?i:(i=hi.call(this._shortWeekdaysParse,o),i!==-1?i:null)))}function Re(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Le.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function We(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function qe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._we
e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var Wi=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),qi=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Bi=function(){return Date.now?Date.now():+new Date};kt("Z",":"),kt("ZZ",""),Q("Z",Zr),Q("ZZ",Zr),re(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Et(Zr,e)});var Yi=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Hi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ht.fn=Mt.prototype;var Ii=Gt(1,"add"),Ui=Gt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gi=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),En("gggg","weekYear"),En("ggggg","weekYear"),En("GGGG","isoWeekYear"),En("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),Q("G",Xr),Q("g",Xr),Q("GG",Fr,qr),Q("gg",Fr,qr),Q("GGGG",$r,Yr),Q("gggg",$r,Yr),Q("GGGGG",Vr,Hr),Q("ggggg",Vr,Hr),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),ie(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),R("quarter","Q"),B("quarter",7),Q("Q",Wr),re("Q",function(e,t){t[ii]=3*(w(e)-1)}),V("D",["DD",2],"Do","date"),R("date","D"),B("date",9),Q("D",Fr),Q("DD",Fr,qr),Q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),re(["D","DD"],ai),re("Do",function(e,t){t[ai]=w(e.match(Fr)[0],10)});var $i=H("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),B("dayOfYear",4),Q("DDD",Gr),Q("DDDD",Br),re(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),V("m",["mm",2],0,"minute"),R("minute","m"),B("minute",14),Q("m",Fr),Q("mm",Fr,qr),re(["m","mm"],si);var Vi=H("Minutes",!1);V("s",["ss",2],0,"second"),R("second","s"),B("second",15),Q("s",Fr),Q("ss",Fr,qr),re(["s","ss"],ui);var Ki=H("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),B("millisecond",16),Q("S",Gr,Wr),Q("SS",Gr,qr),Q("SSS",Gr,Br);var Xi;for(Xi="SSSS";Xi.length<=9;Xi+="S")Q(Xi,Kr);for(Xi="S";Xi.length<=9;Xi+="S")re(Xi,Rn);var Ji=H("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var Zi=b.prototype;Zi.add=Ii,Zi.calendar=Kt,Zi.clone=Xt,Zi.diff=rn,Zi.endOf=vn,Zi.format=cn,Zi.from=ln,Zi.fromNow=fn,Zi.to=hn,Zi.toNow=dn,Zi.get=U,Zi.invalidAt=Sn,Zi.isAfter=Jt,Zi.isBefore=Zt,Zi.isBetween=Qt,Zi.isSame=en,Zi.isSameOrAfter=tn,Zi.isSameOrBefore=nn,Zi.isValid=Mn,Zi.lang=Gi,Zi.locale=pn,Zi.localeData=mn,Zi.max=qi,Zi.min=Wi,Zi.parsingFlags=Tn,Zi.set=G,Zi.startOf=gn,Zi.subtract=Ui,Zi.toArray=_n,Zi.toObject=wn,Zi.toDate=An,Zi.toISOString=sn,Zi.inspect=un,Zi.toJSON=xn,Zi.toString=on,Zi.unix=bn,Zi.valueOf=yn,Zi.creationData=kn,Zi.year=yi,Zi.isLeapYear=be,Zi.weekYear=Cn,Zi.isoWeekYear=On,Zi.quarter=Zi.quarters=zn,Zi.month=he,Zi.daysInMonth=de,Zi.week=Zi.weeks=Ce,Zi.isoWeek=Zi.isoWeeks=Oe,Zi.weeksInYear=jn,Zi.isoWeeksInYear=Dn,Zi.date=$i,Zi.day=Zi.days=We,Zi.weekda
}),e})}),id=tt,ad=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],od=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sd=["Su","Mo","Tu","We","Th","Fr","Sa"],ud=["January","February","March","April","May","June","July","August","September","October","November","December"],cd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ld="AM",fd="PM",hd="am",dd="pm",pd=new RegExp(ad.join("|"),"i"),md=new RegExp(od.join("|"),"i"),gd=new RegExp("\\b("+sd.join("|")+")\\b","i"),vd=new RegExp(ud.join("|"),"i"),yd=new RegExp(cd.join("|"),"i"),bd=/(\d+)(st|nd|rd|th)\b/i,Ad=/(\d{1,4})([\/\.\-])(\d{1,2})[\/\.\-](\d{1,4})/,_d=/((\+|\-)\d\d:?\d\d)$/,wd="("+[ld,fd].join("|")+")",xd="("+[hd,dd].join("|")+")",Md=new RegExp(xd),Td=new RegExp(wd),Sd=new RegExp("0\\d\\:\\d{1,2}\\:\\d{1,2}(\\s*)"+wd,"i"),kd=new RegExp("0\\d\\:\\d{1,2}(\\s*)"+wd,"i"),Ed=new RegExp("0\\d(\\s*)"+wd,"i"),Cd=new RegExp("\\d{1,2}\\:\\d{1,2}\\:\\d{1,2}(\\s*)"+wd,"i"),Od=new RegExp("\\d{1,2}\\:\\d{1,2}(\\s*)"+wd,"i"),Dd=new RegExp("\\d{1,2}(\\s*)"+wd,"i"),jd=/\d{2}:\d{2}:\d{2}\.\d{3}/,Pd=/\d{2}:\d{2}:\d{2}\.\d{2}/,Nd=/\d{2}:\d{2}:\d{2}\.\d{1}/,zd=/0\d:\d{2}:\d{2}/,Ld=/0\d:\d{2}/,Rd=/\d{1,2}:\d{2}:\d{2}/,Wd=/\d{1,2}:\d{2}:\d{2}\.\d{3}/,qd=/\d{1,2}:\d{2}:\d{2}\.\d{2}/,Bd=/\d{1,2}:\d{2}:\d{2}\.\d{1}/,Yd=/\d{1,2}:\d{2}/,Hd=/\d{4}/,Fd=/0\d/,Id=/\d{1,2}/,Ud=/\d{2}/,Gd=/^([1-9])\/([1-9]|0[1-9])$/,$d=/^([1-9])\/(1[012])$/,Vd=/^(0[1-9]|[12][0-9]|3[01])\/([1-9])$/,Kd=/^(0[1-9]|[12][0-9]|3[01])\/(1[012]|0[1-9])$/,Xd=/^([1-9])\/([1-9][0-9])$/,Jd=/^(0[1-9]|1[012])\/([1-9][0-9])$/,Zd=/([\/][M]|[M][\/]|[MM]|[MMMM])/,Qd=/\b(at)\b/i,ep=/\d{13}/,tp=/\d{10}/,np={"/":"MDY",".":"DMY","-":"YMD"},rp=id,ip=rp;"undefined"!=typeof window&&window.moment&&(window.moment.parseFormat=rp);var ap=n(function(e,t){(function(){function n(e,t,n){for(var r=(n||0)-1,i=e?e.length:0;++r<i;)if(e[r]===t)return r;return-1}function r(e,t){var r=typeof t;if(e=e.cache,"boolean"==r||null==t)return e[t]?0:-1;"number"!=r&&"string"!=r&&(r="object");var i="number"==r?t:b+t;return e=(e=e[r])&&e[i],"object"==r?e&&n(e,t)>-1?0:-1:e?0:-1}function i(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:b+e,i=t[n]||(t[n]={});"object"==n?(i[r]||(i[r]=[])).push(e):i[r]=!0}}function a(e){return e.charCodeAt(0)}function o(e,t){for(var n=e.criteria,r=t.criteria,i=-1,a=n.length;++i<a;){var o=n[i],s=r[i];if(o!==s){if(o>s||"undefined"==typeof o)return 1;if(o<s||"undefined"==typeof s)return-1}}return e.index-t.index}function s(e){var t=-1,n=e.length,r=e[0],a=e[n/2|0],o=e[n-1];if(r&&"object"==typeof r&&a&&"object"==typeof a&&o&&"object"==typeof o)return!1;var s=l();s.false=s.null=s.true=s.undefined=!1;var u=l();for(u.array=e,u.cache=s,u.push=i;++t<n;)u.push(e[t]);return u}function u(e){return"\\"+K[e]}function c(){return g.pop()||[]}function l(){return v.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function f(e){e.length=0,g.length<_&&g.push(e)}function h(e){var t=e.cache;t&&h(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,v.length<_&&v.push(e)}function d(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,a=Array(i<0?0:i);++r<i;)a[r]=e[t+r];return a}function p(e){function t(e){return e&&"object"==typeof e&&!Zn(e)&&Nn.call(e,"__wrapped__")?e:new i(e)}function i(e,t){this.__chain__=!!t,this.__wrapped__=e}function g(e){function t(){if(r){var e=d(r);zn.apply(e,arguments)}if(this instanceof t){var a=_(n.prototype),o=n.apply(a,e||arguments);return Oe(o)?o:a}return n.apply(i,e||arguments)}var n=e[0],r=e[2],i=e[4];return Jn(t,e),t}function v(e,t,n,r,i){if(n){var a=n(e);if("undefined"!=typeof a)return a}var o=Oe(e);if(!o)return e;var s=kn.call(e);if(!U[s])return e;var u=Kn[s];switch(s){case W:case q:return new u(+e);case Y:case I:return new u(e);case F:return a=u(e.source,k.exec(e)),a.lastIndex=e.lastIndex,a}var l=Zn(e);if(t){var h=!r;r||(r=c()),i||(i=c());for(var p=r.length;p--;)if
return e[t]})),a=ut(n.map(function(e){return t[e]})),o=ut(n.map(function(t){return Math.pow(e[t],2)})),s=ut(n.map(function(e){return Math.pow(t[e],2)})),u=ut(n.map(function(n){return e[n]*t[n]})),c=u-i*a/r,l=Math.sqrt((o-Math.pow(i,2)/r)*(s-Math.pow(a,2)/r));return 0===l?0:c/l},fp=function(e,t){return e=ct(e),t=ct(t),op.intersection(e,t).length/op.union(e,t).length},hp=function(e,t){e=ct(e),t=ct(t);var n=op.intersection(e,t).length;return n/(e.length+t.length-n)},dp={jarowinkler:sp,levenshtein:up,ngram:cp,pearson:lp,jaccard:fp,tanimoto:hp},pp={author:Ze,lead_image_url:Qe,dek:et,date_published:at,content:ot,title:st},mp={defaultOpts:{stripUnlikelyCandidates:!0,weightNodes:!0,cleanConditionally:!0},extract:function(e,t){var n=e.$,r=e.html,i=e.title,a=e.url;t=hi({},this.defaultOpts,t),n=n||Is.load(r);var o=this.getContentNode(n,i,a,t);if(He(o))return this.cleanAndReturnNode(o,n);var s=!0,u=!1,c=void 0;try{for(var l,f=Tu($u(t).filter(function(e){return t[e]===!0}));!(s=(l=f.next()).done);s=!0){var h=l.value;if(t[h]=!1,n=Is.load(r),o=this.getContentNode(n,i,a,t),He(o))break}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}return this.cleanAndReturnNode(o,n)},getContentNode:function(e,t,n,r){return ot(dt(e,r),{$:e,cleanConditionally:r.cleanConditionally,title:t,url:n})},cleanAndReturnNode:function(e,t){return e?W(t.html(e)):null}},gp=["tweetmeme-title","dc.title","rbtitle","headline","title"],vp=["og:title"],yp=[".hentry .entry-title","h1#articleHeader","h1.articleHeader","h1.article",".instapaper_title","#meebo-title"],bp=["article h1","#entry-title",".entry-title","#entryTitle","#entrytitle",".entryTitle",".entrytitle","#articleTitle",".articleTitle","post post-title","h1.title","h2.article","h1","html head title","title"],Ap={extract:function(e){var t=e.$,n=e.url,r=e.metaCache,i=void 0;return(i=Re(t,gp,r))?st(i,{url:n,$:t}):(i=qe(t,yp))?st(i,{url:n,$:t}):(i=Re(t,vp,r))?st(i,{url:n,$:t}):(i=qe(t,bp),i?st(i,{url:n,$:t}):"")}},_p=["byl","clmst","dc.author","dcsext.author","dc.creator","rbauthors","authors"],wp=300,xp=[".entry .entry-author",".author.vcard .fn",".author .vcard .fn",".byline.vcard .fn",".byline .vcard .fn",".byline .by .author",".byline .by",".byline .author",".post-author.vcard",".post-author .vcard","a[rel=author]","#by_author",".by_author","#entryAuthor",".entryAuthor",".byline a[href*=author]","#author .authorname",".author .authorname","#author",".author",".articleauthor",".ArticleAuthor",".byline"],Mp=/^[\n\s]*By/i,Tp=[["#byline",Mp],[".byline",Mp]],Sp={extract:function(e){var t=e.$,n=e.metaCache,r=void 0;if(r=Re(t,_p,n),r&&r.length<wp)return Ze(r);if(r=qe(t,xp,2),r&&r.length<wp)return Ze(r);var i=!0,a=!1,o=void 0;try{for(var s,u=Tu(Tp);!(i=(s=u.next()).done);i=!0){var c=s.value,l=ku(c,2),f=l[0],h=l[1],d=t(f);if(1===d.length){var p=d.text();if(h.test(p))return Ze(p)}}}catch(e){a=!0,o=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}return null}},kp=["article:published_time","displaydate","dc.date","dc.date.issued","rbpubdate","publish_date","pub_date","pagedate","pubdate","revision_date","doc_date","date_created","content_create_date","lastmodified","created","date"],Ep=[".hentry .dtstamp.published",".hentry .published",".hentry .dtstamp.updated",".hentry .updated",".single .published",".meta .published",".meta .postDate",".entry-date",".byline .date",".postmetadata .date",".article_datetime",".date-header",".story-date",".dateStamp","#story .datetime",".dateline",".pubdate"],Cp="(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)",Op=[new RegExp("/(20\\d{2}/\\d{2}/\\d{2})/","i"),new RegExp("(20\\d{2}-[01]\\d-[0-3]\\d)","i"),new RegExp("/(20\\d{2}/"+Cp+"/[0-3]\\d)/","i")],Dp={extract:function(e){var t=e.$,n=e.url,r=e.metaCache,i=void 0;return(i=Re(t,kp,r,!1))?at(i):(i=qe(t,Ep))?at(i):(i=q(n,Op),i?at(i):null)}},jp={extract:function(){return null}},Pp=["og:image","twitter:image","image_src"],Np=["link[rel=image_src]"],zp=["upload","wp-content","large","photo","wp-image"],Lp=new RegExp(zp.join("|"),"i"),Rp=["spacer","sprite","blank","throbber","gradient","tile","bg","ba