-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
1 lines (1 loc) · 4.73 KB
/
bundle.js
File metadata and controls
1 lines (1 loc) · 4.73 KB
1
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=13)}({0:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},13:function(t,e,n){"use strict";n.r(e);var r,i=n(2),o=n.n(i),a={android:function(){return navigator.userAgent.match(/Android/i)},blackberry:function(){return navigator.userAgent.match(/BlackBerry/i)},ios:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},opera:function(){return navigator.userAgent.match(/Opera Mini/i)},windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return a.android()||a.blackberry()||a.ios()||a.opera()||a.windows()}},u=a;var c={init:function(t){r=Math.max(document.documentElement.clientWidth,window.innerWidth||0);var e=d3.select(".state-wrapper").selectAll("div").data(t).enter().append("div").attr("class","state-item");e.append("div").attr("class","state-name").text((function(t){return t.State}));var n=["Mortgage Loan","Coronavirus","Rush Limbaugh","Melania Trump","Canada","Japan","Armed Forces","Democrats","Philippines","India","Republicans","Africa","Cuba","United States Army","Marines","Asia","Italy","France","NOAA","Senate","Youngstown"],i=e.selectAll(".entity").data((function(t){var e=t,r=Object.keys(t).map((function(t){return{cat:t,value:e[t]}})).sort((function(t,e){return e.value-t.value})).filter((function(t){return"State"!=t.cat}));return(r=r.filter((function(t){return-1==n.indexOf(t.cat)}))).slice(0,10)})).enter().append("p").attr("class","entity").append("span").text((function(t){return t.cat}));i.on("mouseover",(function(t){var e=t.cat;i.classed("selected",(function(t){return t.cat==e}))})),e.each((function(t){0==d3.select(this).node().offsetLeft&&d3.select(this).selectAll(".entity").filter((function(t,e){if(0==e||4==e||9==e||19==e)return t})).append("span").attr("class","label").text((function(t,e){return 0==e?r<600?"#1":"Most-search Topic":1==e?"#5":2==e?"#10":"#20"}))}))},resize:function(){r=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}},f=d3.select("body"),s=0;function l(){var t=f.node().offsetWidth;s!==t&&(s=t,c.resize())}f.classed("is-mobile",u.any()),window.addEventListener("resize",o()(l,150)),d3.csv("assets/data/state_indexed_4.csv",(function(t){c.init(t)}))},2:function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,f=u||c||Function("return this")(),s=Object.prototype.toString,l=Math.max,d=Math.min,p=function(){return f.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==s.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var u=i.test(t);return u||o.test(t)?a(t.slice(2),u?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,a,u,c,f=0,s=!1,b=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=r,o=i;return r=i=void 0,f=e,a=t.apply(o,n)}function g(t){return f=t,u=setTimeout(j,e),s?h(t):a}function w(t){var n=t-c;return void 0===c||n>=e||n<0||b&&t-f>=o}function j(){var t=p();if(w(t))return x(t);u=setTimeout(j,function(t){var n=e-(t-c);return b?d(n,o-(t-f)):n}(t))}function x(t){return u=void 0,y&&r?h(t):(r=i=void 0,a)}function O(){var t=p(),n=w(t);if(r=arguments,i=this,c=t,n){if(void 0===u)return g(c);if(b)return u=setTimeout(j,e),h(c)}return void 0===u&&(u=setTimeout(j,e)),a}return e=m(e)||0,v(n)&&(s=!!n.leading,o=(b="maxWait"in n)?l(m(n.maxWait)||0,e):o,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=c=i=u=void 0},O.flush=function(){return void 0===u?a:x(p())},O}}).call(this,n(0))}});