This repository was archived by the owner on Feb 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
1 lines (1 loc) · 15.5 KB
/
main.js
File metadata and controls
1 lines (1 loc) · 15.5 KB
1
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){const r=n(4),o=()=>{const e=Math.floor(1e12*Math.random()),t=new URLSearchParams(window.location.search);return t.set("seed",e),window.history.replaceState({},"",`${location.pathname}?${t}`),e},i=e=>e.replace(/[\s\W]/g,""),a=e=>{const t=r(e);document.querySelector("#prediction-fragment").innerHTML=t.sentence,document.querySelector("#seed-link").innerHTML=`<a href="${window.location}">${e}</a>`,document.querySelector(".tweet-link").href=`https://twitter.com/share?text=Prediction: ${t.prediction}&url=${window.location}&hashtags=2020,predictions,thoughtleadership,${i(t.mrkt)},${i(t.noun)}`};window.onload=()=>{const e=new URLSearchParams(window.location.search).get("seed"),t=e||o();a(t),document.querySelector("#refresh").onclick=e=>(console.log("refresh"),e.preventDefault(),a(o()),!1)}},function(e,t,n){const r=n(5),o=n(6),i=(e,t)=>t[Math.floor(e*t.length)],a=(e,t)=>{if(console.log("S",e),t||(t=Math.random()),e.indexOf("[")<0)return e;if(e.match(/\[\d+-\d+\]/)){const n=e.match(/\[\d+-\d+\]/)[0].replace(/[\[\]]/g,"").split("-").map(e=>Number(e));return e.replace(/\[\d+-\d+\]/,n[0]+Math.floor(t*(n[1]-n[0])))}const n=e.match(/\[(.+)\]/)[0].split("|");return e.replace(/\[(.+)\]/,i(t,n)).replace(/[\[\]]/g,"")};e.exports=e=>{e||(e=Math.floor(1e7*Math.random()));const t=o(String(e)),n=i(t(),r.adjective),s=i(t(),r.noun),c=i(t(),r.marketsegment),u=i(t(),r.likelihood);let l=`${a(n,t())} ${a(s,t())} for ${a(c,t())}`,d=`${a(u,t())}`,f=`${d} ${l}.`;return f=f[0].toUpperCase()+f.substring(1),{sentence:f,prediction:l,preamble:d,seed:e,adj:n,noun:s,mrkt:c}}},function(e){e.exports=JSON.parse('{"likelihood":["Over the next [2-50] years we’ll see","As soon as [2021-2029] we may have to deal with","We could soon be confronted by","In the [short|long|medium] term we should expect","Investors will [get excited about|go crazy over]","[MBA courses|Post-grad diplomas|Undergraduate degrees] will include modules on","[WTO|UN|World Bank] reports suggest we will see","The Big 4 will put their weight behind","Silicon Valley investors will pivot to","Research will begin on","China will surpass the West on","Speculators will go [long|short] on","We may see","Policy makers anticipate the rise of","Regulators will [struggle with|clamp down on]","The intelligence community will raise concerns about","By the end of the [year|decade|month] everyone will be talking about","Get ready for"],"adjective":["woke","sleepy","geo-fenced","contactless","contentious","hyperactive","n-dimensional","frictionless","dynamic","concientious","fractal","predictive","deep-faked","3D printed","freemarket","aggressive","on-demand","blockchain-based","ethnographic","generative","hand cranked","illegal","black hat","luxury","DIY","robust","iconoclastic","hauntological","nationalised","rational","instagrammable","offshore","low-poly","gig economy","precarious","smart","scandalous","grey market","academic","underground","open source","hyper-local","farm-to-table","offline","air-gapped","post-structural","broken","self-indulgent","multi-user","flossin’","trans-national","placebo","distributed","tactical","hacktavist","budget","artisanal","tragic","decentralized","object oriented","authentic","experiential","data-driven","austerity","deep-dive","10x","short-term","just-in-time","minimum viable","best-in-class","sustainable","radical","micro-targetted","royalty-free","actionable","roaming","delta-neutral","sad","personal","omni-channel","pixel-perfect","glamorous","strategic","hyperscale"],"noun":["fintech","autonomous vehicles","apartheid","machine learning","neural networks","IPOs","social graphs","tele-conferencing","traffic jams","spectrum allocation","black box models","mesh networks","space buckets","piracy hubs","route planning","deep fakes","VR headsets","sovereign wealth funds","CRISPR editing","venture capital","ASMR videos","botnets","content farms","3D printers","micro mobility services","data modeling","micro-dosing","maker spaces","cryptocurrency","Twitch streams","edge computing","walled gardens","equity markets","tax havens","data mining","nootropics","CBD supplements","MOBAs","regime change","conceptronica","corporate art","lab grown meat","fixed-odds betting terminals","DNA sequencing","ICOs","nanobots","genome editing","cloning","experience design","sacrifice zones","isolation tanks","co-working spaces","outlet stores","knowledge graphs","bio-tech","edge analytics","body mods","Brexit policies","loot shooters","start-ups","gigafactories","surveillance","non-lethal weapons","PropTech","dark kitchens","delivery drones","mumblecore","middle-out compression","micro payments","futures contracts","wind farms","reunion tours","middleware","innovation","revenue streams","manifestos","e-commerce","big-data","merchandising","innovation workshops","strategy guides","datasets","object recognition algorithms","investment strategies","liquidity","credit default swaps","high-frequency trading","retirement schemes","pension plans","stock options","statistical arbitrage","computer-vision","finance","webinars","InfoSec","adversarial networks","shadow-IT"],"marketsegment":["millenials","boomers","shop keepers","stock brokers","cab drivers","the C suite","vegans","Londoners","the global south","bio-hackers","urban planners","guerilla gardeners","the dark web","activists","lobbyists","[pharmaceutical|car industry|marketing|advertising] executives","select-commitees","legal professionals","city traders","gen Xers","TERFs","software pirates","incels","climate activists","bureaucrats","spice zombies","WeChat influencers","patent trolls","Barry Homeowner","accelerationists","the 1%","remoaners","Scorpios","vape connoiseurs","Redditors","ComiCon attendees","the precariat","brexiteers","early-years education","Nando’s obsessives","white van man","thought leaders","freegans","hedge funds","forum mods","MI6","climate change deniers","pollsters","trend forecasters","stand-up comedians","art fair mavens","influencers","ultra-high net worth individuals","the 99%","[AOC|Richard Dawkins] stans","TikTok celebrities","“storytellers”","entrepreneurs","cannabis investors","SoundCloud rappers","carpark tycoons","sketchnoters","[FTSE 100|Fortune 500] companies","high-street retailers","focus groups","wellness gurus","preppers","survivalist enclaves","intentional communities","market makers","solar energy technicians","counselors","digital detox coaches","commercial drone pilots","developers","urban agriculture specialists","[Conservative|Labour|Lib Dem|Green] party members","touring funk bands","meteorologists","microbiologists","creatives","dentists","physical therapists","management analysts","compliance departments","litigators","executive assistants","data detectives","stay at home dads","[Guardian|Telegraph|FT|Sun|Daily Mail] readers","suburban book groups","HR departments","smart-city skeptics","failed states","futurists","data scientists","e-sports professionals","the degrowth movement","neo reactionaries","anarchists","sea-steaders","life coaches","[Freudian|Jungian] therapists"]}')},function(e,t,n){var r=n(7),o=n(8),i=n(9),a=n(10),s=n(11),c=n(12),u=n(13);u.alea=r,u.xor128=o,u.xorwow=i,u.xorshift7=a,u.xor4096=s,u.tychei=c,e.exports=u},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t,n=this,r=(t=4022871197,function(e){e=String(e);for(var n=0;n<e.length;n++){var r=.02519603282416938*(t+=e.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1),r=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function c(e,t){var n=new a(e),r=t&&t.state,o=n.next;return o.int32=function(){return 4294967296*n.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,r&&("object"==typeof r&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.alea=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=0|n.charCodeAt(r),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function c(e,t){var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.xor128=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=0|n.charCodeAt(r),r==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function c(e,t){var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.xorwow=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t=this;t.next=function(){var e,n,r=t.x,o=t.i;return e=r[o],n=(e^=e>>>7)^e<<24,n^=(e=r[o+1&7])^e>>>10,n^=(e=r[o+3&7])^e>>>3,n^=(e=r[o+4&7])^e<<7,e=r[o+7&7],n^=(e^=e<<13)^e<<9,r[o]=n,t.i=o+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n<t.length;++n)r[7&n]=r[7&n]<<15^t.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],e.x=r,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function c(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&(r.x&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.xorshift7=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t=this;t.next=function(){var e,n,r=t.w,o=t.X,i=t.i;return t.w=r=r+1640531527|0,n=o[i+34&127],e=o[i=i+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=o[i]=n^e,t.i=i,n+(r^r>>>16)|0},function(e,t){var n,r,o,i,a,s=[],c=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,c=Math.max(c,t.length)),o=0,i=-32;i<c;++i)t&&(r^=t.charCodeAt((i+32)%t.length)),0===i&&(a=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,i>=0&&(a=a+1640531527|0,o=0==(n=s[127&i]^=r+a)?o+1:0);for(o>=128&&(s[127&(t&&t.length||0)]=-1),o=127,i=512;i>0;--i)r=s[o+34&127],n=s[o=o+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[o]=r^n;e.w=a,e.X=s,e.i=o}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function c(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&(r.X&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.xor4096=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,o,i){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,o=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^o,o=o-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^o,t.a=o-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r<n.length+20;r++)t.b^=0|n.charCodeAt(r),t.next()}function s(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function c(e,t){var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&s(r,n),o.state=function(){return s(n,{})}),o}o&&o.exports?o.exports=c:n(0)&&n(2)?void 0===(r=function(){return c}.call(t,n,t,o))||(o.exports=r):this.tychei=c}(0,e,n(0))}).call(this,n(1)(e))},function(e,t,n){var r;!function(o,i,a){var s,c=256,u=6,l="random",d=a.pow(c,u),f=a.pow(2,52),h=2*f,p=c-1;function g(e,t,n){var r=[],p=x(function e(t,n){var r,o=[],i=typeof t;if(n&&"object"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"string"==i?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,b(i)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(c):(e=new Uint8Array(c),(o.crypto||o.msCrypto).getRandomValues(e)),b(e)}catch(e){var t=o.navigator,n=t&&t.plugins;return[+new Date,o,n,o.screen,b(i)]}}():e,3),r),g=new m(r),w=function(){for(var e=g.g(u),t=d,n=0;e<f;)e=(e+n)*c,t*=c,n=g.g(1);for(;e>=h;)e/=2,t/=2,n>>>=1;return(e+n)/t};return w.int32=function(){return 0|g.g(4)},w.quick=function(){return g.g(4)/4294967296},w.double=w,x(b(g.S),i),(t.pass||n||function(e,t,n,r){return r&&(r.S&&v(r,g),e.state=function(){return v(g,{})}),n?(a[l]=e,t):e})(w,p,"global"in t?t.global:this==a,t.state)}function m(e){var t,n=e.length,r=this,o=0,i=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);o<c;)a[o]=o++;for(o=0;o<c;o++)a[o]=a[i=p&i+e[o%n]+(t=a[o])],a[i]=t;(r.g=function(e){for(var t,n=0,o=r.i,i=r.j,a=r.S;e--;)t=a[o=p&o+1],n=n*c+a[p&(a[o]=a[i=p&i+t])+(a[i]=t)];return r.i=o,r.j=i,n})(c)}function v(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function x(e,t){for(var n,r=e+"",o=0;o<r.length;)t[p&o]=p&(n^=19*t[p&o])+r.charCodeAt(o++);return b(t)}function b(e){return String.fromCharCode.apply(0,e)}if(x(a.random(),i),e.exports){e.exports=g;try{s=n(14)}catch(e){}}else void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof self?self:this,[],Math)},function(e,t){}]);