Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@freestar/pubfig-adslot-react-component

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freestar/pubfig-adslot-react-component - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0-beta.1

2

dist/index.js

@@ -1,1 +0,1 @@

module.exports=function(){var t={228:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},858:function(t){t.exports=function(t){if(Array.isArray(t))return t}},506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},926:function(t){function e(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,c,"next",t)}function c(t){e(a,o,i,u,c,"throw",t)}u(void 0)}))}}},575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},913:function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}},713:function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},754:function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e},205:function(t,e,r){var n=r(489);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},884:function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}},521:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},585:function(t,e,r){var n=r(8),o=r(506);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},489:function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e},38:function(t,e,r){var n=r(858),o=r(884),i=r(379),a=r(521);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()}},8:function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},379:function(t,e,r){var n=r(228);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},757:function(t,e,r){t.exports=r(666)},907:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return T}});var n=r(757),o=r.n(n),i=r(926),a=r.n(i),u=r(575),c=r.n(u),s=r(913),f=r.n(s),l=r(506),p=r.n(l),h=r(205),d=r.n(h),y=r(585),g=r.n(y),v=r(754),b=r.n(v),_=r(713),w=r.n(_),m=require("react"),j=r.n(m),x=require("prop-types"),O=r.n(x),k=r(38),A=r.n(k),S=r(307),P=r.n(S),L=r(254),E=r.n(L);function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach((function(e){w()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var z=new(function(){function t(){c()(this,t),this.pageKeyValuePairs={},this.mappingConfig={},this.keyValueConfigMappings=[],this.keyValueConfigMappingLocation=""}var e,r,n;return f()(t,[{key:"fetchKeyValueConfigMapping",value:(n=a()(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:if(200===(r=t.sent).status){t.next=7;break}return n="An error has occurred fetching keyValueConfigMapping: ".concat(r.status),console.log(n),t.abrupt("return",[]);case 7:return t.prev=7,t.next=10,r.json();case 10:return this.mappingConfig=t.sent,t.abrupt("return",this.mappingConfig.mappings);case 14:return t.prev=14,t.t0=t.catch(7),console.log("An error has occurred fetching keyValueConfigMapping",t.t0),t.abrupt("return",[]);case 19:case"end":return t.stop()}}),t,this,[[7,14]])}))),function(t){return n.apply(this,arguments)})},{key:"init",value:(r=a()(o().mark((function t(e,r){var n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.freestarReactCompontentLoaded=window.freestarReactCompontentLoaded||!1,this.loaded=window.freestarReactCompontentLoaded,this.logEnabled=window.location.search.indexOf("fslog")>-1||!!window.freestarReactCompontentLogEnabled&&window.freestarReactCompontentLogEnabled,this.loaded){t.next=22;break}if(this.loaded=window.freestarReactCompontentLoaded=!0,this.keyValueConfigMappingLocation=r,n=window.location.search.indexOf("fsdebug")>-1?"/qa":"",i="https://a.pub.network/".concat(e).concat(n,"/pubfig.min.js"),window.freestar=window.freestar||{},window.freestar.hitTime=Date.now(),window.freestar.queue=window.freestar.queue||[],window.freestar.config=window.freestar.config||{},window.freestar.config.enabled_slots=window.freestar.config.enabled_slots||[],(a=document.createElement("script")).src=i,a.async=!0,this.log(0,"========== LOADING Pubfig =========="),document.body.appendChild(a),!r||0!==this.keyValueConfigMappings.length){t.next=22;break}return t.next=21,this.fetchKeyValueConfigMapping(r);case 21:this.keyValueConfigMappings=t.sent;case 22:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"log",value:function(t){var e="Pubfig React Plugin ",r="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";if(this.logEnabled){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(n=console).info.apply(n,["%c".concat(e),r].concat(i))}}},{key:"getMappedPlacementName",value:(e=a()(o().mark((function t(e,r){var n,i,a,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=C(C({},this.pageKeyValuePairs),r),!this.keyValueConfigMappingLocation||0!==this.keyValueConfigMappings.length){t.next=5;break}return t.next=4,this.fetchKeyValueConfigMapping(this.keyValueConfigMappingLocation);case 4:this.keyValueConfigMappings=t.sent;case 5:if(!(i=this.keyValueConfigMappings.filter((function(t){var e=t.keyValuePairs||{};for(var r in e)if(e.hasOwnProperty(r)){var o=Array.isArray(n[r])?E()(n[r]):n[r],i=Array.isArray(e[r])?E()(e[r]):e[r];if(!P()(o,i))return!1}return!0}))).length){t.next=12;break}return(a=E()(i,(function(t){return t.keyValuePairs.length}))).reverse(),u=a[0],c=u.placementMap,t.abrupt("return",c[e]||e);case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"newAdSlot",value:function(t,e,r,n,i,u,c){var s=this;window.freestar.queue.push(a()(o().mark((function a(){var f,l;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i){o.next=7;break}return o.next=3,s.getMappedPlacementName(t,n);case 3:t=o.sent,window.freestar.newAdSlots({slotId:t,placementName:t,targeting:n},r),o.next=12;break;case 7:f=window.googletag.defineSlot(i,u,t).addService(window.googletag.pubads()),c&&(l=c.reduce((function(t,e){return t.addSize(e.viewport,e.slot)}),window.googletag.sizeMapping()).build(),f.defineSizeMapping(l)),n&&Object.entries(n).forEach((function(t){var e=A()(t,2),r=e[0],n=e[1];f.setTargeting(r,n)})),window.googletag.display(f),window.googletag.pubads().refresh([f]);case 12:return e&&e(t),o.abrupt("return",f);case 14:case"end":return o.stop()}}),a)}))))}},{key:"deleteAdSlot",value:function(t,e,r,n){var i=this;window.freestar.queue.push(a()(o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=7;break}return o.next=3,i.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.deleteAdSlots({placementName:t}),o.next=8;break;case 7:window.googletag.destroySlots([n]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),a)}))))}},{key:"refreshAdSlot",value:function(t,e,r,n){var i=this;window.freestar.queue.push(a()(o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=7;break}return o.next=3,i.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.freestarReloadAdSlot(t),o.next=8;break;case 7:window.googletag.pubads().refresh([n]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),a)}))))}},{key:"setPageTargeting",value:function(t,e){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.googletag.pubads().setTargeting(t,e)})),this.pageKeyValuePairs[t]=e}},{key:"clearPageTargeting",value:function(t){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){t?window.googletag.pubads().clearTargeting(t):window.googletag.pubads().clearTargeting()})),t?delete this.pageKeyValuePairs[t]:this.pageKeyValuePairs={}}}]),t}());var R=function(t){d()(u,t);var e,r,n,i=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b()(r);if(n){var o=b()(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return g()(this,t)});function u(t){var e;c()(this,u);var r=t.placementName;return e=i.call(this,t),w()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""})),e.state={placementName:r},e}return f()(u,[{key:"componentDidMount",value:(e=a()(o().mark((function t(){var e,r,n,i,a,u,c,s,f,l,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,r=e.placementName,n=e.onNewAdSlotsHook,i=e.channel,a=e.targeting,u=e.keyValueConfigMappingURL,c=e.publisher,s=this.props,f=s.adUnitPath,l=s.slotSize,p=s.sizeMapping,t.next=4,z.init(c,u);case 4:return t.t0=this,t.next=7,z.getMappedPlacementName(r,a);case 7:t.t1=t.sent,t.t2={placementName:t.t1},t.t0.setState.call(t.t0,t.t2),this.adSlot=z.newAdSlot(r,n,i,a,f,l,p);case 11:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.placementName,r=t.onDeleteAdSlotsHook,n=t.targeting;z.deleteAdSlot(e,n,r,this.adSlot)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,r=e.placementName,n=e.onAdRefreshHook,o=e.targeting;t.adRefresh!==this.props.adRefresh&&z.refreshAdSlot(r,o,n,this.adSlot)}},{key:"render",value:function(){var t=this.props;return t.placementName,t.targeting,t.placementMappingLocation,j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.placementName}))}}]),u}(m.Component);R.setPageTargeting=function(t,e){z.setPageTargeting(t,e)},R.clearPageTargeting=function(t){z.clearPageTargeting(t)},R.propTypes={publisher:O().string.isRequired,placementName:O().string.isRequired,targeting:O().object,channel:O().string,classList:O().array,adRefresh:O().number,onNewAdSlotsHook:O().func,onDeleteAdSlotsHook:O().func,onAdRefreshHook:O().func,adUnitPath:O().string,slotSize:O().oneOfType([O().array,O().string]),sizeMapping:O().arrayOf(O().shape({viewport:O().array,slot:O().array})),keyValueConfigMappingURL:O().string},R.defaultProps={publisher:"",placementName:"",targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null};var T=R},307:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",_="[object ArrayBuffer]",w="[object DataView]",m=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[a]=x[_]=x[u]=x[w]=x[c]=x[s]=x[f]=x[l]=x[p]=x[h]=x[y]=x[g]=x[v]=x[b]=!1;var O="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,A=O||k||Function("return this")(),S=e&&!e.nodeType&&e,P=S&&t&&!t.nodeType&&t,L=P&&P.exports===S,E=L&&O.process,M=function(){try{return E&&E.binding&&E.binding("util")}catch(t){}}(),C=M&&M.isTypedArray;function z(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function T(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var N,V,F,U=Array.prototype,D=Function.prototype,I=Object.prototype,$=A["__core-js_shared__"],q=D.toString,G=I.hasOwnProperty,H=(N=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",B=I.toString,K=RegExp("^"+q.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=L?A.Buffer:void 0,Y=A.Symbol,J=A.Uint8Array,Q=I.propertyIsEnumerable,X=U.splice,Z=Y?Y.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=W?W.isBuffer:void 0,rt=(V=Object.keys,F=Object,function(t){return V(F(t))}),nt=Pt(A,"DataView"),ot=Pt(A,"Map"),it=Pt(A,"Promise"),at=Pt(A,"Set"),ut=Pt(A,"WeakMap"),ct=Pt(Object,"create"),st=Ct(nt),ft=Ct(ot),lt=Ct(it),pt=Ct(at),ht=Ct(ut),dt=Y?Y.prototype:void 0,yt=dt?dt.valueOf:void 0;function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _t(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new bt;++e<r;)this.add(t[e])}function wt(t){var e=this.__data__=new vt(t);this.size=e.size}function mt(t,e){for(var r=t.length;r--;)if(zt(t[r][0],e))return r;return-1}function jt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=G.call(t,Z),r=t[Z];try{t[Z]=void 0;var n=!0}catch(t){}var o=B.call(t);return n&&(e?t[Z]=r:delete t[Z]),o}(t):function(t){return B.call(t)}(t)}function xt(t){return Dt(t)&&jt(t)==i}function Ot(t,e,r,n,o){return t===e||(null==t||null==e||!Dt(t)&&!Dt(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var d=Tt(t),b=Tt(e),m=d?a:Et(t),j=b?a:Et(e),x=(m=m==i?h:m)==h,O=(j=j==i?h:j)==h,k=m==j;if(k&&Nt(t)){if(!Nt(e))return!1;d=!0,x=!1}if(k&&!x)return f||(f=new wt),d||It(t)?kt(t,e,r,n,o,f):function(t,e,r,n,o,i,a){switch(r){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!i(new J(t),new J(e)));case u:case c:case p:return zt(+t,+e);case s:return t.name==e.name&&t.message==e.message;case y:case v:return t==e+"";case l:var f=R;case g:var h=1&n;if(f||(f=T),t.size!=e.size&&!h)return!1;var d=a.get(t);if(d)return d==e;n|=2,a.set(t,e);var b=kt(f(t),f(e),n,o,i,a);return a.delete(t),b;case"[object Symbol]":if(yt)return yt.call(t)==yt.call(e)}return!1}(t,e,m,r,n,o,f);if(!(1&r)){var A=x&&G.call(t,"__wrapped__"),S=O&&G.call(e,"__wrapped__");if(A||S){var P=A?t.value():t,L=S?e.value():e;return f||(f=new wt),o(P,L,r,n,f)}}return!!k&&(f||(f=new wt),function(t,e,r,n,o,i){var a=1&r,u=At(t),c=u.length;if(c!=At(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:G.call(e,f)))return!1}var l=i.get(t);if(l&&i.get(e))return l==e;var p=!0;i.set(t,e),i.set(e,t);for(var h=a;++s<c;){var d=t[f=u[s]],y=e[f];if(n)var g=a?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(!(void 0===g?d===y||o(d,y,r,n,i):g)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,f))}(t,e,r,n,Ot,o))}function kt(t,e,r,n,o,i){var a=1&r,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,p=2&r?new _t:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var h=t[f],d=e[f];if(n)var y=a?n(d,h,f,e,t,i):n(h,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(p){if(!z(e,(function(t,e){if(a=e,!p.has(a)&&(h===t||o(h,t,r,n,i)))return p.push(e);var a}))){l=!1;break}}else if(h!==d&&!o(h,d,r,n,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function At(t){return function(t,e,r){var n=e(t);return Tt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,$t,Lt)}function St(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ut(t)||function(t){return!!H&&H in t}(t))&&(Vt(t)?K:m).test(Ct(t))}(r)?r:void 0}gt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(ct){var r=e[t];return r===n?void 0:r}return G.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:G.call(e,t)},gt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ct&&void 0===e?n:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=mt(e,t);return!(r<0||(r==e.length-1?e.pop():X.call(e,r,1),--this.size,0))},vt.prototype.get=function(t){var e=this.__data__,r=mt(e,t);return r<0?void 0:e[r][1]},vt.prototype.has=function(t){return mt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var r=this.__data__,n=mt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(ot||vt),string:new gt}},bt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return St(this,t).get(t)},bt.prototype.has=function(t){return St(this,t).has(t)},bt.prototype.set=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},_t.prototype.add=_t.prototype.push=function(t){return this.__data__.set(t,n),this},_t.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.clear=function(){this.__data__=new vt,this.size=0},wt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},wt.prototype.get=function(t){return this.__data__.get(t)},wt.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!ot||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new bt(n)}return r.set(t,e),this.size=r.size,this};var Lt=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var u=e[n];c=u,Q.call(t,c)&&(a[i++]=u)}var c;return a}(tt(t)))}:function(){return[]},Et=jt;function Mt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Ct(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(nt&&Et(new nt(new ArrayBuffer(1)))!=w||ot&&Et(new ot)!=l||it&&Et(it.resolve())!=d||at&&Et(new at)!=g||ut&&Et(new ut)!=b)&&(Et=function(t){var e=jt(t),r=e==h?t.constructor:void 0,n=r?Ct(r):"";if(n)switch(n){case st:return w;case ft:return l;case lt:return d;case pt:return g;case ht:return b}return e});var Rt=xt(function(){return arguments}())?xt:function(t){return Dt(t)&&G.call(t,"callee")&&!Q.call(t,"callee")},Tt=Array.isArray,Nt=et||function(){return!1};function Vt(t){if(!Ut(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ft(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Dt(t){return null!=t&&"object"==typeof t}var It=C?function(t){return function(e){return t(e)}}(C):function(t){return Dt(t)&&Ft(t.length)&&!!x[jt(t)]};function $t(t){return null!=(e=t)&&Ft(e.length)&&!Vt(e)?function(t,e){var r=Tt(t),n=!r&&Rt(t),o=!r&&!n&&Nt(t),i=!r&&!n&&!o&&It(t),a=r||n||o||i,u=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var s in t)!e&&!G.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Mt(s,c))||u.push(s);return u}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||I))return rt(t);var e,r,n=[];for(var o in Object(t))G.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t);var e}t.exports=function(t,e){return Ot(t,e)}},254:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",_="[object WeakMap]",w="[object ArrayBuffer]",m="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,O=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,S=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,L={};L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[i]=L[a]=L[w]=L[u]=L[m]=L[c]=L[s]=L[f]=L[l]=L[p]=L[h]=L[y]=L[g]=L[v]=L[_]=!1;var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,M="object"==typeof self&&self&&self.Object===Object&&self,C=E||M||Function("return this")(),z=e&&!e.nodeType&&e,R=z&&t&&!t.nodeType&&t,T=R&&R.exports===z&&E.process,N=function(){try{return T&&T.binding("util")}catch(t){}}(),V=N&&N.isTypedArray;function F(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function U(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function D(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function I(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function $(t){return function(e){return t(e)}}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var B,K,W,Y=Array.prototype,J=Function.prototype,Q=Object.prototype,X=C["__core-js_shared__"],Z=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",tt=J.toString,et=Q.hasOwnProperty,rt=Q.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=C.Symbol,it=C.Uint8Array,at=Q.propertyIsEnumerable,ut=Y.splice,ct=ot?ot.isConcatSpreadable:void 0,st=(K=Object.keys,W=Object,function(t){return K(W(t))}),ft=Math.max,lt=Gt(C,"DataView"),pt=Gt(C,"Map"),ht=Gt(C,"Promise"),dt=Gt(C,"Set"),yt=Gt(C,"WeakMap"),gt=Gt(Object,"create"),vt=te(lt),bt=te(pt),_t=te(ht),wt=te(dt),mt=te(yt),jt=ot?ot.prototype:void 0,xt=jt?jt.valueOf:void 0,Ot=jt?jt.toString:void 0;function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Lt(t){this.__data__=new At(t)}function Et(t,e){for(var r=t.length;r--;)if(ne(t[r][0],e))return r;return-1}kt.prototype.clear=function(){this.__data__=gt?gt(null):{}},kt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},kt.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===n?void 0:r}return et.call(e,t)?e[t]:void 0},kt.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:et.call(e,t)},kt.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?n:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=Et(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=Et(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return Et(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new kt,map:new(pt||At),string:new kt}},St.prototype.delete=function(t){return qt(this,t).delete(t)},St.prototype.get=function(t){return qt(this,t).get(t)},St.prototype.has=function(t){return qt(this,t).has(t)},St.prototype.set=function(t,e){return qt(this,t).set(t,e),this},Pt.prototype.add=Pt.prototype.push=function(t){return this.__data__.set(t,n),this},Pt.prototype.has=function(t){return this.__data__.has(t)},Lt.prototype.clear=function(){this.__data__=new At},Lt.prototype.delete=function(t){return this.__data__.delete(t)},Lt.prototype.get=function(t){return this.__data__.get(t)},Lt.prototype.has=function(t){return this.__data__.has(t)},Lt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!pt||n.length<199)return n.push([t,e]),this;r=this.__data__=new St(n)}return r.set(t,e),this};var Mt,Ct=(Mt=function(t,e){return t&&Rt(t,e,he)},function(t,e){if(null==t)return t;if(!ae(t))return Mt(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&!1!==e(o[n],n,o););return t});function zt(t,e,r,n,o){var i=-1,a=t.length;for(r||(r=Bt),o||(o=[]);++i<a;){var u=t[i];e>0&&r(u)?e>1?zt(u,e-1,r,n,o):D(o,u):n||(o[o.length]=u)}return o}var Rt=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),a=i.length;a--;){var u=i[++n];if(!1===e(o[u],u,o))break}return t};function Tt(t,e){for(var r=0,n=(e=Yt(e,t)?[e]:Dt(e)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0}function Nt(t,e){return null!=t&&e in Object(t)}function Vt(t,e,r,n,o){return t===e||(null==t||null==e||!se(t)&&!fe(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var d=ie(t),_=ie(e),j=a,x=a;d||(j=(j=Ht(t))==i?h:j),_||(x=(x=Ht(e))==i?h:x);var O=j==h&&!q(t),k=x==h&&!q(e),A=j==x;if(A&&!O)return f||(f=new Lt),d||pe(t)?$t(t,e,r,n,o,f):function(t,e,r,n,o,i,a){switch(r){case m:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!n(new it(t),new it(e)));case u:case c:case p:return ne(+t,+e);case s:return t.name==e.name&&t.message==e.message;case y:case v:return t==e+"";case l:var f=G;case g:var h=2&i;if(f||(f=H),t.size!=e.size&&!h)return!1;var d=a.get(t);if(d)return d==e;i|=1,a.set(t,e);var _=$t(f(t),f(e),n,o,i,a);return a.delete(t),_;case b:if(xt)return xt.call(t)==xt.call(e)}return!1}(t,e,j,r,n,o,f);if(!(2&o)){var S=O&&et.call(t,"__wrapped__"),P=k&&et.call(e,"__wrapped__");if(S||P){var L=S?t.value():t,E=P?e.value():e;return f||(f=new Lt),r(L,E,n,o,f)}}return!!A&&(f||(f=new Lt),function(t,e,r,n,o,i){var a=2&o,u=he(t),c=u.length;if(c!=he(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:et.call(e,f)))return!1}var l=i.get(t);if(l&&i.get(e))return l==e;var p=!0;i.set(t,e),i.set(e,t);for(var h=a;++s<c;){var d=t[f=u[s]],y=e[f];if(n)var g=a?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(!(void 0===g?d===y||r(d,y,n,o,i):g)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,f))}(t,e,Vt,r,n,o))}function Ft(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ie(t)?function(t,e){return Yt(t)&&Jt(e)?Qt(Zt(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:Tt(t,e);return void 0===n?void 0:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){for(var n,o=-1,i=(e=Yt(e,t)?[e]:Dt(e)).length;++o<i;){var a=Zt(e[o]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}return n||!!(i=t?t.length:0)&&ce(i)&&Kt(a,i)&&(ie(t)||oe(t))}(t,e,Nt)}(r,t):Vt(e,n,void 0,3)}}(t[0],t[1]):1==(r=function(t){for(var e=he(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Jt(o)]}return e}(e=t)).length&&r[0][2]?Qt(r[0][0],r[0][1]):function(t){return t===e||function(t,e,r,n){var o=r.length,i=o;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var u=(a=r[o])[0],c=t[u],s=a[1];if(a[2]){if(void 0===c&&!(u in t))return!1}else{var f,l=new Lt;if(!(void 0===f?Vt(s,c,n,3,l):f))return!1}}return!0}(t,0,r)}:Yt(n=t)?(o=Zt(n),function(t){return null==t?void 0:t[o]}):function(t){return function(e){return Tt(e,t)}}(n);var e,r,n,o}function Ut(t,e,r){var n=-1;return e=U(e.length?e:[de],$(Ft)),function(t,e){var n=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,u=r.length;++n<a;){var c=It(o[n],i[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(function(t,e){var r=-1,n=ae(t)?Array(t.length):[];return Ct(t,(function(t,o,i){n[++r]=e(t)})),n}(t,(function(t,r,o){return{criteria:U(e,(function(e){return e(t)})),index:++n,value:t}})))}function Dt(t){return ie(t)?t:Xt(t)}function It(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=le(t),a=void 0!==e,u=null===e,c=e==e,s=le(e);if(!u&&!s&&!i&&t>e||i&&a&&c&&!u&&!s||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!s&&t<e||s&&r&&o&&!n&&!i||u&&r&&o||!a&&o||!c)return-1}return 0}function $t(t,e,r,n,o,i){var a=2&o,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,p=1&o?new Pt:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var h=t[f],d=e[f];if(n)var y=a?n(d,h,f,e,t,i):n(h,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(p){if(!I(e,(function(t,e){if(!p.has(e)&&(h===t||r(h,t,n,o,i)))return p.add(e)}))){l=!1;break}}else if(h!==d&&!r(h,d,n,o,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function qt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Gt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!se(t)||function(t){return!!Z&&Z in t}(t))&&(ue(t)||q(t)?nt:S).test(te(t))}(r)?r:void 0}var Ht=function(t){return rt.call(t)};function Bt(t){return ie(t)||oe(t)||!!(ct&&t&&t[ct])}function Kt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function Wt(t,e,r){if(!se(r))return!1;var n=typeof e;return!!("number"==n?ae(r)&&Kt(e,r.length):"string"==n&&e in r)&&ne(r[e],t)}function Yt(t,e){if(ie(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!le(t))||x.test(t)||!j.test(t)||null!=e&&t in Object(e)}function Jt(t){return t==t&&!se(t)}function Qt(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}(lt&&Ht(new lt(new ArrayBuffer(1)))!=m||pt&&Ht(new pt)!=l||ht&&Ht(ht.resolve())!=d||dt&&Ht(new dt)!=g||yt&&Ht(new yt)!=_)&&(Ht=function(t){var e=rt.call(t),r=e==h?t.constructor:void 0,n=r?te(r):void 0;if(n)switch(n){case vt:return m;case bt:return l;case _t:return d;case wt:return g;case mt:return _}return e});var Xt=re((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return Ot?Ot.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return O.test(t)&&r.push(""),t.replace(k,(function(t,e,n,o){r.push(n?o.replace(A,"$1"):e||t)})),r}));function Zt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function te(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ee=function(t,e){return e=ft(void 0===e?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=ft(r.length-e,0),i=Array(o);++n<o;)i[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i,F(t,this,a)}}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Wt(t,e[0],e[1])?e=[]:r>2&&Wt(e[0],e[1],e[2])&&(e=[e[0]]),Ut(t,zt(e,1),[])}));function re(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(re.Cache||St),r}function ne(t,e){return t===e||t!=t&&e!=e}function oe(t){return function(t){return fe(t)&&ae(t)}(t)&&et.call(t,"callee")&&(!at.call(t,"callee")||rt.call(t)==i)}re.Cache=St;var ie=Array.isArray;function ae(t){return null!=t&&ce(t.length)&&!ue(t)}function ue(t){var e=se(t)?rt.call(t):"";return e==f||"[object GeneratorFunction]"==e}function ce(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function se(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&rt.call(t)==b}var pe=V?$(V):function(t){return fe(t)&&ce(t.length)&&!!L[rt.call(t)]};function he(t){return ae(t)?function(t,e){var r=ie(t)||oe(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!et.call(t,i)||o&&("length"==i||Kt(i,n))||r.push(i);return r}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Q))return st(t);var e,r,n=[];for(var o in Object(t))et.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t)}function de(t){return t}t.exports=ee},666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new P(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function g(){}function v(){}function b(){}var _={};_[i]=function(){return this};var w=Object.getPrototypeOf,m=w&&w(w(L([])));m&&m!==r&&n.call(m,i)&&(_=m);var j=b.prototype=g.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:E}}function E(){return{value:e,done:!0}}return v.prototype=j.constructor=b,b.constructor=v,v.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},x(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(j),c(j,u,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n](o,o.exports,r),o.loaded=!0,o.exports}return r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(907)}();
module.exports=function(){var t={228:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},858:function(t){t.exports=function(t){if(Array.isArray(t))return t}},506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},926:function(t){function e(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=t.apply(r,n);function u(t){e(i,o,a,u,c,"next",t)}function c(t){e(i,o,a,u,c,"throw",t)}u(void 0)}))}}},575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},913:function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}},713:function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},754:function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e},205:function(t,e,r){var n=r(489);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},884:function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}},521:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},585:function(t,e,r){var n=r(8),o=r(506);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},489:function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e},38:function(t,e,r){var n=r(858),o=r(884),a=r(379),i=r(521);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},8:function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},379:function(t,e,r){var n=r(228);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},757:function(t,e,r){t.exports=r(666)},907:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return R}});var n=r(757),o=r.n(n),a=r(926),i=r.n(a),u=r(575),c=r.n(u),s=r(913),f=r.n(s),l=r(506),p=r.n(l),h=r(205),d=r.n(h),g=r(585),y=r.n(g),v=r(754),b=r.n(v),w=r(713),_=r.n(w),m=require("react"),j=r.n(m),A=require("prop-types"),k=r.n(A),x=r(38),O=r.n(x),S=r(307),P=r.n(S),M=r(254),E=r.n(M);function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var z=new(function(){function t(){c()(this,t),this.pageKeyValuePairs={},this.mappingConfig={},this.keyValueConfigMappings=[],this.keyValueConfigMappingLocation="",this.newAdSlotQueue=[],this.adSlotsMap={}}var e,r,n,a;return f()(t,[{key:"fetchKeyValueConfigMapping",value:(a=i()(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:if(200===(r=t.sent).status){t.next=7;break}return n="An error has occurred fetching keyValueConfigMapping: ".concat(r.status),console.log(n),t.abrupt("return",[]);case 7:return t.prev=7,t.next=10,r.json();case 10:return this.mappingConfig=t.sent,t.abrupt("return",this.mappingConfig.mappings);case 14:return t.prev=14,t.t0=t.catch(7),console.log("An error has occurred fetching keyValueConfigMapping",t.t0),t.abrupt("return",[]);case 19:case"end":return t.stop()}}),t,this,[[7,14]])}))),function(t){return a.apply(this,arguments)})},{key:"init",value:(n=i()(o().mark((function t(e,r){var n,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.freestarReactCompontentLoaded=window.freestarReactCompontentLoaded||!1,this.loaded=window.freestarReactCompontentLoaded,this.logEnabled=window.location.search.indexOf("fslog")>-1||!!window.freestarReactCompontentLogEnabled&&window.freestarReactCompontentLogEnabled,this.loaded){t.next=22;break}if(this.loaded=window.freestarReactCompontentLoaded=!0,this.keyValueConfigMappingLocation=r,n=window.location.search.indexOf("fsdebug")>-1?"/qa":"",a="https://a.pub.network/".concat(e).concat(n,"/pubfig.min.js"),window.freestar=window.freestar||{},window.freestar.hitTime=Date.now(),window.freestar.queue=window.freestar.queue||[],window.freestar.config=window.freestar.config||{},window.freestar.config.enabled_slots=window.freestar.config.enabled_slots||[],(i=document.createElement("script")).src=a,i.async=!0,this.log(0,"========== LOADING Pubfig =========="),document.body.appendChild(i),!r||0!==this.keyValueConfigMappings.length){t.next=22;break}return t.next=21,this.fetchKeyValueConfigMapping(r);case 21:this.keyValueConfigMappings=t.sent;case 22:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"log",value:function(t){var e="Pubfig React Plugin ",r="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";if(this.logEnabled){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];(n=console).info.apply(n,["%c".concat(e),r].concat(a))}}},{key:"getMappedPlacementName",value:(r=i()(o().mark((function t(e,r){var n,a,i,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=N(N({},this.pageKeyValuePairs),r),!this.keyValueConfigMappingLocation||0!==this.keyValueConfigMappings.length){t.next=5;break}return t.next=4,this.fetchKeyValueConfigMapping(this.keyValueConfigMappingLocation);case 4:this.keyValueConfigMappings=t.sent;case 5:if(!(a=this.keyValueConfigMappings.filter((function(t){var e=t.keyValuePairs||{};for(var r in e)if(e.hasOwnProperty(r)){var o=Array.isArray(n[r])?E()(n[r]):n[r],a=Array.isArray(e[r])?E()(e[r]):e[r];if(!P()(o,a))return!1}return!0}))).length){t.next=12;break}return(i=E()(a,(function(t){return t.keyValuePairs.length}))).reverse(),u=i[0],c=u.placementMap,t.abrupt("return",c[e]||e);case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"queueNewAdSlot",value:function(t,e,r,n,o,a,i){var u={placementName:t,onNewAdSlotsHook:e,channel:r,targeting:n,adUnitPath:o,slotSize:a,sizeMappings:i};this.newAdSlotQueue.push(u)}},{key:"flushQueuedNewAdSlots",value:(e=i()(o().mark((function t(){var e,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r in e=this.buildAdMap(),this.newDirectGAMAdSlots(e.directGamAds),this.newPubfigAdSlots(null,e.nonChannelAds),e.channelAdMap)this.newPubfigAdSlots(r,e.channelAdMap[r]);case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"buildAdMap",value:function(){var t=this.newAdSlotQueue;return this.newAdSlotQueue=[],t.reduce(function(){var t=i()(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.channel){t.next=7;break}if(!r.adUnitPath){t.next=4;break}return e.directGamAds.push(r),t.abrupt("return",e);case 4:return e.channelAdMap.channel||(e.channelAdMap.channel=[]),e.channelAdMap.channel.push({slotId:r.placementName,placementName:r.placementName,targeting:r.targeting,callback:r.onNewAdSlotsHook}),t.abrupt("return",e);case 7:return e.nonChannelAds.push({slotId:r.placementName,placementName:r.placementName,targeting:r.targeting,callback:r.onNewAdSlotsHook}),t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}())}},{key:"newPubfigAdSlots",value:function(t,e){window.freestar.queue.push(i()(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:window.freestar.newAdSlots(e,t),e.forEach((function(t){t.callback&&t.callback(t.placementName)}));case 2:case"end":return r.stop()}}),r)}))))}},{key:"newDirectGAMAdSlots",value:function(t){var e=this;window.freestar.queue.push(i()(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=[],t.forEach((function(t){var r=window.googletag.defineSlot(t.adUnitPath,t.slotSize,t.placementName).addService(window.googletag.pubads());if(t.sizeMappings){var o=t.sizeMappings.reduce((function(t,e){return t.addSize(e.viewport,e.slot)}),window.googletag.sizeMapping()).build();r.defineSizeMapping(o)}targeting&&Object.entries(targeting).forEach((function(t){var e=O()(t,2),n=e[0],o=e[1];r.setTargeting(n,o)})),window.googletag.display(r),n.push(r),e.adSlotsMap[adslot.getAdUnitPath()]=r})),window.googletag.pubads().refresh(n),t.forEach((function(t){t.onNewAdSlotsHook&&t.onNewAdSlotsHook(t.placementName)}));case 4:case"end":return r.stop()}}),r)}))))}},{key:"newAdSlot",value:function(t,e,r,n,a,u,c,s){var f=this;s?this.queueNewAdSlot(t,e,r,n,a,u,c):window.freestar.queue.push(i()(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a?f.newDirectGAMAdSlots([{adUnitPath:a,slotSize:u,placementName:t,sizeMappings:c,targeting:n}]):f.newPubfigAdSlots(r,[{slotId:t,placementName:t,targeting:n}]);case 1:case"end":return e.stop()}}),e)}))))}},{key:"deleteAdSlot",value:function(t,e,r,n){var a=this;window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=7;break}return o.next=3,a.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.deleteAdSlots({placementName:t}),o.next=8;break;case 7:window.googletag.destroySlots([a.adSlotsMap[n]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"refreshAdSlot",value:function(t,e,r,n){var a=this;window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=7;break}return o.next=3,a.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.freestarReloadAdSlot(t),o.next=8;break;case 7:window.googletag.pubads().refresh([a.adSlotsMap[n]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"setPageTargeting",value:function(t,e){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.googletag.pubads().setTargeting(t,e)})),this.pageKeyValuePairs[t]=e}},{key:"clearPageTargeting",value:function(t){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){t?window.googletag.pubads().clearTargeting(t):window.googletag.pubads().clearTargeting()})),t?delete this.pageKeyValuePairs[t]:this.pageKeyValuePairs={}}},{key:"trackPageview",value:function(){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.freestar.trackPageview()}))}}]),t}());var C=function(t){d()(u,t);var e,r,n,a=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b()(r);if(n){var o=b()(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y()(this,t)});function u(t){var e;c()(this,u);var r=t.placementName;return e=a.call(this,t),_()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""})),e.state={placementName:r},e}return f()(u,[{key:"componentDidMount",value:(e=i()(o().mark((function t(){var e,r,n,a,i,u,c,s,f,l,p,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,r=e.placementName,n=e.onNewAdSlotsHook,a=e.channel,i=e.targeting,u=e.keyValueConfigMappingURL,c=e.publisher,s=e.queue,f=this.props,l=f.adUnitPath,p=f.slotSize,h=f.sizeMapping,t.next=4,z.init(c,u);case 4:return t.next=6,z.getMappedPlacementName(r,i);case 6:d=t.sent,this.setState({placementName:d}),z.newAdSlot(d,n,a,i,l,p,h,s);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.placementName,r=t.onDeleteAdSlotsHook,n=t.targeting,o=t.adUnitPath;z.deleteAdSlot(e,n,r,o)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,r=e.placementName,n=e.onAdRefreshHook,o=e.targeting,a=e.adUnitPath;t.adRefresh!==this.props.adRefresh&&z.refreshAdSlot(r,o,n,a),t.queue!=this.props.queue&&!0===t.queue&&z.flushQueuedNewAdSlots()}},{key:"render",value:function(){var t=this.props;return t.placementName,t.targeting,t.placementMappingLocation,j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.placementName}))}}]),u}(m.Component);C.setPageTargeting=function(t,e){z.setPageTargeting(t,e)},C.clearPageTargeting=function(t){z.clearPageTargeting(t)},C.trackPageview=function(){z.trackPageview()},C.propTypes={publisher:k().string.isRequired,placementName:k().string.isRequired,targeting:k().object,channel:k().string,classList:k().array,adRefresh:k().number,onNewAdSlotsHook:k().func,onDeleteAdSlotsHook:k().func,onAdRefreshHook:k().func,adUnitPath:k().string,slotSize:k().oneOfType([k().array,k().string]),sizeMapping:k().arrayOf(k().shape({viewport:k().array,slot:k().array})),keyValueConfigMappingURL:k().string,queue:k().bool},C.defaultProps={publisher:"",placementName:"",targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null,queue:!1};var R=C},307:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",m=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[a]=A[i]=A[w]=A[u]=A[_]=A[c]=A[s]=A[f]=A[l]=A[p]=A[h]=A[g]=A[y]=A[v]=A[b]=!1;var k="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,O=k||x||Function("return this")(),S=e&&!e.nodeType&&e,P=S&&t&&!t.nodeType&&t,M=P&&P.exports===S,E=M&&k.process,L=function(){try{return E&&E.binding&&E.binding("util")}catch(t){}}(),N=L&&L.isTypedArray;function z(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function C(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var T,q,V,U=Array.prototype,D=Function.prototype,F=Object.prototype,I=O["__core-js_shared__"],$=D.toString,G=F.hasOwnProperty,H=(T=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",B=F.toString,K=RegExp("^"+$.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=M?O.Buffer:void 0,W=O.Symbol,Y=O.Uint8Array,J=F.propertyIsEnumerable,X=U.splice,Z=W?W.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,rt=(q=Object.keys,V=Object,function(t){return q(V(t))}),nt=Pt(O,"DataView"),ot=Pt(O,"Map"),at=Pt(O,"Promise"),it=Pt(O,"Set"),ut=Pt(O,"WeakMap"),ct=Pt(Object,"create"),st=Nt(nt),ft=Nt(ot),lt=Nt(at),pt=Nt(it),ht=Nt(ut),dt=W?W.prototype:void 0,gt=dt?dt.valueOf:void 0;function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new bt;++e<r;)this.add(t[e])}function _t(t){var e=this.__data__=new vt(t);this.size=e.size}function mt(t,e){for(var r=t.length;r--;)if(zt(t[r][0],e))return r;return-1}function jt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=G.call(t,Z),r=t[Z];try{t[Z]=void 0;var n=!0}catch(t){}var o=B.call(t);return n&&(e?t[Z]=r:delete t[Z]),o}(t):function(t){return B.call(t)}(t)}function At(t){return Dt(t)&&jt(t)==a}function kt(t,e,r,n,o){return t===e||(null==t||null==e||!Dt(t)&&!Dt(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var d=Rt(t),b=Rt(e),m=d?i:Et(t),j=b?i:Et(e),A=(m=m==a?h:m)==h,k=(j=j==a?h:j)==h,x=m==j;if(x&&Tt(t)){if(!Tt(e))return!1;d=!0,A=!1}if(x&&!A)return f||(f=new _t),d||Ft(t)?xt(t,e,r,n,o,f):function(t,e,r,n,o,a,i){switch(r){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!a(new Y(t),new Y(e)));case u:case c:case p:return zt(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=C;case y:var h=1&n;if(f||(f=R),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;n|=2,i.set(t,e);var b=xt(f(t),f(e),n,o,a,i);return i.delete(t),b;case"[object Symbol]":if(gt)return gt.call(t)==gt.call(e)}return!1}(t,e,m,r,n,o,f);if(!(1&r)){var O=A&&G.call(t,"__wrapped__"),S=k&&G.call(e,"__wrapped__");if(O||S){var P=O?t.value():t,M=S?e.value():e;return f||(f=new _t),o(P,M,r,n,f)}}return!!x&&(f||(f=new _t),function(t,e,r,n,o,a){var i=1&r,u=Ot(t),c=u.length;if(c!=Ot(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:G.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(n)var y=i?n(g,d,f,e,t,a):n(d,g,f,t,e,a);if(!(void 0===y?d===g||o(d,g,r,n,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,r,n,o,f))}(t,e,r,n,kt,o))}function xt(t,e,r,n,o,a){var i=1&r,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=2&r?new wt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(n)var g=i?n(d,h,f,e,t,a):n(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!z(e,(function(t,e){if(i=e,!p.has(i)&&(h===t||o(h,t,r,n,a)))return p.push(e);var i}))){l=!1;break}}else if(h!==d&&!o(h,d,r,n,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function Ot(t){return function(t,e,r){var n=e(t);return Rt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,It,Mt)}function St(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ut(t)||function(t){return!!H&&H in t}(t))&&(qt(t)?K:m).test(Nt(t))}(r)?r:void 0}yt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},yt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yt.prototype.get=function(t){var e=this.__data__;if(ct){var r=e[t];return r===n?void 0:r}return G.call(e,t)?e[t]:void 0},yt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:G.call(e,t)},yt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ct&&void 0===e?n:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=mt(e,t);return!(r<0||(r==e.length-1?e.pop():X.call(e,r,1),--this.size,0))},vt.prototype.get=function(t){var e=this.__data__,r=mt(e,t);return r<0?void 0:e[r][1]},vt.prototype.has=function(t){return mt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var r=this.__data__,n=mt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ot||vt),string:new yt}},bt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return St(this,t).get(t)},bt.prototype.has=function(t){return St(this,t).has(t)},bt.prototype.set=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},wt.prototype.add=wt.prototype.push=function(t){return this.__data__.set(t,n),this},wt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new vt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!ot||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new bt(n)}return r.set(t,e),this.size=r.size,this};var Mt=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,o=null==e?0:e.length,a=0,i=[];++n<o;){var u=e[n];c=u,J.call(t,c)&&(i[a++]=u)}var c;return i}(tt(t)))}:function(){return[]},Et=jt;function Lt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(nt&&Et(new nt(new ArrayBuffer(1)))!=_||ot&&Et(new ot)!=l||at&&Et(at.resolve())!=d||it&&Et(new it)!=y||ut&&Et(new ut)!=b)&&(Et=function(t){var e=jt(t),r=e==h?t.constructor:void 0,n=r?Nt(r):"";if(n)switch(n){case st:return _;case ft:return l;case lt:return d;case pt:return y;case ht:return b}return e});var Ct=At(function(){return arguments}())?At:function(t){return Dt(t)&&G.call(t,"callee")&&!J.call(t,"callee")},Rt=Array.isArray,Tt=et||function(){return!1};function qt(t){if(!Ut(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Dt(t){return null!=t&&"object"==typeof t}var Ft=N?function(t){return function(e){return t(e)}}(N):function(t){return Dt(t)&&Vt(t.length)&&!!A[jt(t)]};function It(t){return null!=(e=t)&&Vt(e.length)&&!qt(e)?function(t,e){var r=Rt(t),n=!r&&Ct(t),o=!r&&!n&&Tt(t),a=!r&&!n&&!o&&Ft(t),i=r||n||o||a,u=i?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var s in t)!e&&!G.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Lt(s,c))||u.push(s);return u}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||F))return rt(t);var e,r,n=[];for(var o in Object(t))G.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t);var e}t.exports=function(t,e){return kt(t,e)}},254:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",m="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,k=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,S=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[i]=M[_]=M[u]=M[m]=M[c]=M[s]=M[f]=M[l]=M[p]=M[h]=M[g]=M[y]=M[v]=M[w]=!1;var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=E||L||Function("return this")(),z=e&&!e.nodeType&&e,C=z&&t&&!t.nodeType&&t,R=C&&C.exports===z&&E.process,T=function(){try{return R&&R.binding("util")}catch(t){}}(),q=T&&T.isTypedArray;function V(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function U(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function D(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function F(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function I(t){return function(e){return t(e)}}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var B,K,Q,W=Array.prototype,Y=Function.prototype,J=Object.prototype,X=N["__core-js_shared__"],Z=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",tt=Y.toString,et=J.hasOwnProperty,rt=J.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=N.Symbol,at=N.Uint8Array,it=J.propertyIsEnumerable,ut=W.splice,ct=ot?ot.isConcatSpreadable:void 0,st=(K=Object.keys,Q=Object,function(t){return K(Q(t))}),ft=Math.max,lt=Gt(N,"DataView"),pt=Gt(N,"Map"),ht=Gt(N,"Promise"),dt=Gt(N,"Set"),gt=Gt(N,"WeakMap"),yt=Gt(Object,"create"),vt=te(lt),bt=te(pt),wt=te(ht),_t=te(dt),mt=te(gt),jt=ot?ot.prototype:void 0,At=jt?jt.valueOf:void 0,kt=jt?jt.toString:void 0;function xt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Mt(t){this.__data__=new Ot(t)}function Et(t,e){for(var r=t.length;r--;)if(ne(t[r][0],e))return r;return-1}xt.prototype.clear=function(){this.__data__=yt?yt(null):{}},xt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xt.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return et.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:et.call(e,t)},xt.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},Ot.prototype.clear=function(){this.__data__=[]},Ot.prototype.delete=function(t){var e=this.__data__,r=Et(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},Ot.prototype.get=function(t){var e=this.__data__,r=Et(e,t);return r<0?void 0:e[r][1]},Ot.prototype.has=function(t){return Et(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new xt,map:new(pt||Ot),string:new xt}},St.prototype.delete=function(t){return $t(this,t).delete(t)},St.prototype.get=function(t){return $t(this,t).get(t)},St.prototype.has=function(t){return $t(this,t).has(t)},St.prototype.set=function(t,e){return $t(this,t).set(t,e),this},Pt.prototype.add=Pt.prototype.push=function(t){return this.__data__.set(t,n),this},Pt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.clear=function(){this.__data__=new Ot},Mt.prototype.delete=function(t){return this.__data__.delete(t)},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!pt||n.length<199)return n.push([t,e]),this;r=this.__data__=new St(n)}return r.set(t,e),this};var Lt,Nt=(Lt=function(t,e){return t&&Ct(t,e,he)},function(t,e){if(null==t)return t;if(!ie(t))return Lt(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&!1!==e(o[n],n,o););return t});function zt(t,e,r,n,o){var a=-1,i=t.length;for(r||(r=Bt),o||(o=[]);++a<i;){var u=t[a];e>0&&r(u)?e>1?zt(u,e-1,r,n,o):D(o,u):n||(o[o.length]=u)}return o}var Ct=function(t,e,r){for(var n=-1,o=Object(t),a=r(t),i=a.length;i--;){var u=a[++n];if(!1===e(o[u],u,o))break}return t};function Rt(t,e){for(var r=0,n=(e=Wt(e,t)?[e]:Dt(e)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0}function Tt(t,e){return null!=t&&e in Object(t)}function qt(t,e,r,n,o){return t===e||(null==t||null==e||!se(t)&&!fe(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var d=ae(t),w=ae(e),j=i,A=i;d||(j=(j=Ht(t))==a?h:j),w||(A=(A=Ht(e))==a?h:A);var k=j==h&&!$(t),x=A==h&&!$(e),O=j==A;if(O&&!k)return f||(f=new Mt),d||pe(t)?It(t,e,r,n,o,f):function(t,e,r,n,o,a,i){switch(r){case m:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!n(new at(t),new at(e)));case u:case c:case p:return ne(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=G;case y:var h=2&a;if(f||(f=H),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;a|=1,i.set(t,e);var w=It(f(t),f(e),n,o,a,i);return i.delete(t),w;case b:if(At)return At.call(t)==At.call(e)}return!1}(t,e,j,r,n,o,f);if(!(2&o)){var S=k&&et.call(t,"__wrapped__"),P=x&&et.call(e,"__wrapped__");if(S||P){var M=S?t.value():t,E=P?e.value():e;return f||(f=new Mt),r(M,E,n,o,f)}}return!!O&&(f||(f=new Mt),function(t,e,r,n,o,a){var i=2&o,u=he(t),c=u.length;if(c!=he(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:et.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(n)var y=i?n(g,d,f,e,t,a):n(d,g,f,t,e,a);if(!(void 0===y?d===g||r(d,g,n,o,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,r,n,o,f))}(t,e,qt,r,n,o))}function Vt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ae(t)?function(t,e){return Wt(t)&&Yt(e)?Jt(Zt(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:Rt(t,e);return void 0===n?void 0:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){for(var n,o=-1,a=(e=Wt(e,t)?[e]:Dt(e)).length;++o<a;){var i=Zt(e[o]);if(!(n=null!=t&&r(t,i)))break;t=t[i]}return n||!!(a=t?t.length:0)&&ce(a)&&Kt(i,a)&&(ae(t)||oe(t))}(t,e,Tt)}(r,t):qt(e,n,void 0,3)}}(t[0],t[1]):1==(r=function(t){for(var e=he(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Yt(o)]}return e}(e=t)).length&&r[0][2]?Jt(r[0][0],r[0][1]):function(t){return t===e||function(t,e,r,n){var o=r.length,a=o;if(null==t)return!a;for(t=Object(t);o--;){var i=r[o];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){var u=(i=r[o])[0],c=t[u],s=i[1];if(i[2]){if(void 0===c&&!(u in t))return!1}else{var f,l=new Mt;if(!(void 0===f?qt(s,c,n,3,l):f))return!1}}return!0}(t,0,r)}:Wt(n=t)?(o=Zt(n),function(t){return null==t?void 0:t[o]}):function(t){return function(e){return Rt(e,t)}}(n);var e,r,n,o}function Ut(t,e,r){var n=-1;return e=U(e.length?e:[de],I(Vt)),function(t,e){var n=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,a=e.criteria,i=o.length,u=r.length;++n<i;){var c=Ft(o[n],a[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(function(t,e){var r=-1,n=ie(t)?Array(t.length):[];return Nt(t,(function(t,o,a){n[++r]=e(t)})),n}(t,(function(t,r,o){return{criteria:U(e,(function(e){return e(t)})),index:++n,value:t}})))}function Dt(t){return ae(t)?t:Xt(t)}function Ft(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,a=le(t),i=void 0!==e,u=null===e,c=e==e,s=le(e);if(!u&&!s&&!a&&t>e||a&&i&&c&&!u&&!s||n&&i&&c||!r&&c||!o)return 1;if(!n&&!a&&!s&&t<e||s&&r&&o&&!n&&!a||u&&r&&o||!i&&o||!c)return-1}return 0}function It(t,e,r,n,o,a){var i=2&o,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=1&o?new Pt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(n)var g=i?n(d,h,f,e,t,a):n(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!F(e,(function(t,e){if(!p.has(e)&&(h===t||r(h,t,n,o,a)))return p.add(e)}))){l=!1;break}}else if(h!==d&&!r(h,d,n,o,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function $t(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Gt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!se(t)||function(t){return!!Z&&Z in t}(t))&&(ue(t)||$(t)?nt:S).test(te(t))}(r)?r:void 0}var Ht=function(t){return rt.call(t)};function Bt(t){return ae(t)||oe(t)||!!(ct&&t&&t[ct])}function Kt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function Qt(t,e,r){if(!se(r))return!1;var n=typeof e;return!!("number"==n?ie(r)&&Kt(e,r.length):"string"==n&&e in r)&&ne(r[e],t)}function Wt(t,e){if(ae(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!le(t))||A.test(t)||!j.test(t)||null!=e&&t in Object(e)}function Yt(t){return t==t&&!se(t)}function Jt(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}(lt&&Ht(new lt(new ArrayBuffer(1)))!=m||pt&&Ht(new pt)!=l||ht&&Ht(ht.resolve())!=d||dt&&Ht(new dt)!=y||gt&&Ht(new gt)!=w)&&(Ht=function(t){var e=rt.call(t),r=e==h?t.constructor:void 0,n=r?te(r):void 0;if(n)switch(n){case vt:return m;case bt:return l;case wt:return d;case _t:return y;case mt:return w}return e});var Xt=re((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return kt?kt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return k.test(t)&&r.push(""),t.replace(x,(function(t,e,n,o){r.push(n?o.replace(O,"$1"):e||t)})),r}));function Zt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function te(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ee=function(t,e){return e=ft(void 0===e?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=ft(r.length-e,0),a=Array(o);++n<o;)a[n]=r[e+n];n=-1;for(var i=Array(e+1);++n<e;)i[n]=r[n];return i[e]=a,V(t,this,i)}}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Qt(t,e[0],e[1])?e=[]:r>2&&Qt(e[0],e[1],e[2])&&(e=[e[0]]),Ut(t,zt(e,1),[])}));function re(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i),i};return r.cache=new(re.Cache||St),r}function ne(t,e){return t===e||t!=t&&e!=e}function oe(t){return function(t){return fe(t)&&ie(t)}(t)&&et.call(t,"callee")&&(!it.call(t,"callee")||rt.call(t)==a)}re.Cache=St;var ae=Array.isArray;function ie(t){return null!=t&&ce(t.length)&&!ue(t)}function ue(t){var e=se(t)?rt.call(t):"";return e==f||"[object GeneratorFunction]"==e}function ce(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function se(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&rt.call(t)==b}var pe=q?I(q):function(t){return fe(t)&&ce(t.length)&&!!M[rt.call(t)]};function he(t){return ie(t)?function(t,e){var r=ae(t)||oe(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var a in t)!e&&!et.call(t,a)||o&&("length"==a||Kt(a,n))||r.push(a);return r}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||J))return st(t);var e,r,n=[];for(var o in Object(t))et.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t)}function de(t){return t}t.exports=ee},666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new P(n||[]);return a._invoke=function(t,e,r){var n=l;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=x(i,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",g={};function y(){}function v(){}function b(){}var w={};w[a]=function(){return this};var _=Object.getPrototypeOf,m=_&&_(_(M([])));m&&m!==r&&n.call(m,a)&&(w=m);var j=b.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,u){var c=f(t[o],t,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function M(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:E}}function E(){return{value:e,done:!0}}return v.prototype=j.constructor=b,b.constructor=v,v.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},A(k.prototype),k.prototype[i]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},A(j),c(j,u,"Generator"),j[a]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n](o,o.exports,r),o.loaded=!0,o.exports}return r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(907)}();

@@ -9,3 +9,3 @@ {

],
"version": "2.1.0",
"version": "3.0.0-beta.1",
"main": "dist/index.js",

@@ -22,4 +22,4 @@ "private": false,

"peerDependencies": {
"react": "^15.7.0 || ^16.0",
"prop-types": "^15.7.2 "
"prop-types": "^15.7.2 ",
"react": "^15.7.0 || ^16.0"
},

@@ -46,3 +46,4 @@ "dependencies": {

"scripts": {
"build": "webpack"
"build": "webpack",
"test": "echo No Tests Configured"
},

@@ -49,0 +50,0 @@ "eslintConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc