devirt-corpus / real /tranco /twitch.tv__a9248b37.js
vasie's picture
Expand corpus to ~9.5k: 500 seeds x 19 obfuscation profiles + real samples
c930535
Raw
History Blame Contribute Delete
8.48 kB
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new t.Error).stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="99c75167-c1a7-4376-8788-d9b2b810f89c",t._sentryDebugIdIdentifier="sentry-dbid-99c75167-c1a7-4376-8788-d9b2b810f89c")}catch(t){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[79025],{579025:function(t,r,e){e.d(r,{r:function(){return i}});var n=function(t,r){var e,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function h(o){return function(h){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=r.call(t,a)}catch(t){o=[6,t],n=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,h])}}},i=function(){function t(r){var e=this;void 0===r&&(r=t.minComparator),this.compare=r,this.heapArray=[],this._limit=0,this.offer=this.add,this.element=this.peek,this.poll=this.pop,this._invertedCompare=function(t,r){return-1*e.compare(t,r)}}return t.getChildrenIndexOf=function(t){return[2*t+1,2*t+2]},t.getParentIndexOf=function(t){if(t<=0)return-1;var r=t%2?1:2;return Math.floor((t-r)/2)},t.getSiblingIndexOf=function(t){return t<=0?-1:t+(t%2?1:-1)},t.minComparator=function(t,r){return t>r?1:t<r?-1:0},t.maxComparator=function(t,r){return r>t?1:r<t?-1:0},t.minComparatorNumber=function(t,r){return t-r},t.maxComparatorNumber=function(t,r){return r-t},t.defaultIsEqual=function(t,r){return t===r},t.print=function(r){function e(r){var e=t.getParentIndexOf(r);return Math.floor(Math.log2(e+1))}function n(t,r){for(var e="";r>0;--r)e+=t;return e}for(var i=0,o=[],a=e(r.length-1)+2,h=0;i<r.length;){var p=e(i)+1;0===i&&(p=0);var u=String(r.get(i));u.length>h&&(h=u.length),o[p]=o[p]||[],o[p].push(u),i+=1}return o.map((function(t,r){var e=Math.pow(2,a-r)-1;return n(" ",Math.floor(e/2)*h)+t.map((function(t){var r=(h-t.length)/2;return n(" ",Math.ceil(r))+t+n(" ",Math.floor(r))})).join(n(" ",e*h))})).join("\n")},t.heapify=function(r,e){var n=new t(e);return n.heapArray=r,n.init(),n},t.heappop=function(r,e){var n=new t(e);return n.heapArray=r,n.pop()},t.heappush=function(r,e,n){var i=new t(n);i.heapArray=r,i.push(e)},t.heappushpop=function(r,e,n){var i=new t(n);return i.heapArray=r,i.pushpop(e)},t.heapreplace=function(r,e,n){var i=new t(n);return i.heapArray=r,i.replace(e)},t.heaptop=function(r,e,n){void 0===e&&(e=1);var i=new t(n);return i.heapArray=r,i.top(e)},t.heapbottom=function(r,e,n){void 0===e&&(e=1);var i=new t(n);return i.heapArray=r,i.bottom(e)},t.prototype.add=function(t){return this._sortNodeUp(this.heapArray.push(t)-1),this._applyLimit(),!0},t.prototype.addAll=function(t){var r,e=this.length;(r=this.heapArray).push.apply(r,t);for(var n=this.length;e<n;++e)this._sortNodeUp(e);return this._applyLimit(),!0},t.prototype.bottom=function(t){if(void 0===t&&(t=1),0===this.heapArray.length||t<=0)return[];if(1===this.heapArray.length)return[this.heapArray[0]];if(t>=this.heapArray.length){var r=this.heapArray.slice(0);return r.sort(this._invertedCompare),r}var e=this._bottomN(t);return e.sort(this._invertedCompare),e},t.prototype.check=function(){var t=this;return this.heapArray.find((function(r,e,n){return!!t.getChildrenOf(e).find((function(e){return t.compare(r,e)>0}))}))},t.prototype.clear=function(){this.heapArray=[]},t.prototype.clone=function(){var r=new t(this.comparator());return r.heapArray=this.toArray(),r._limit=this._limit,r},t.prototype.comparator=function(){return this.compare},t.prototype.contains=function(r,e){return void 0===e&&(e=t.defaultIsEqual),this.heapArray.findIndex((function(t){return e(t,r)}))>=0},t.prototype.init=function(t){t&&(this.heapArray=t.slice(0));for(var r=Math.floor(this.heapArray.length);r>=0;--r)this._sortNodeDown(r);this._applyLimit()},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.leafs=function(){if(0===this.heapArray.length)return[];var r=t.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(r+1)},Object.defineProperty(t.prototype,"length",{get:function(){return this.heapArray.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(t){this._limit=t,this._applyLimit()},enumerable:!0,configurable:!0}),t.prototype.peek=function(){return this.heapArray[0]},t.prototype.pop=function(){var t=this.heapArray.pop();return this.length>0&&void 0!==t?this.replace(t):t},t.prototype.push=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!(t.length<1)&&(1===t.length?this.add(t[0]):this.addAll(t))},t.prototype.pushpop=function(t){var r;return this.compare(this.heapArray[0],t)<0&&(t=(r=[this.heapArray[0],t])[0],this.heapArray[0]=r[1],this._sortNodeDown(0)),t},t.prototype.remove=function(r,e){if(void 0===e&&(e=t.defaultIsEqual),this.length>0){if(void 0===r)return this.pop(),!0;var n=this.heapArray.findIndex((function(t){return e(t,r)}));if(n>=0)return 0===n?this.pop():n===this.length-1?this.heapArray.pop():(this.heapArray.splice(n,1,this.heapArray.pop()),this._sortNodeUp(n),this._sortNodeDown(n)),!0}return!1},t.prototype.replace=function(t){var r=this.heapArray[0];return this.heapArray[0]=t,this._sortNodeDown(0),r},t.prototype.size=function(){return this.length},t.prototype.top=function(t){if(void 0===t&&(t=1),0===this.heapArray.length||t<=0)return[];if(1===this.heapArray.length||1===t)return[this.heapArray[0]];if(t>=this.heapArray.length){var r=this.heapArray.slice(0);return r.sort(this.compare),r}var e=this._topN(t);return e.sort(this.compare),e},t.prototype.toArray=function(){return this.heapArray.slice(0)},t.prototype.toString=function(){return this.heapArray.toString()},t.prototype.get=function(t){return this.heapArray[t]},t.prototype.getChildrenOf=function(r){var e=this;return t.getChildrenIndexOf(r).map((function(t){return e.heapArray[t]})).filter((function(t){return void 0!==t}))},t.prototype.getParentOf=function(r){var e=t.getParentIndexOf(r);return this.heapArray[e]},t.prototype[Symbol.iterator]=function(){return n(this,(function(t){switch(t.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return t.sent(),[3,0];case 2:return[2]}}))},t.prototype.iterator=function(){return this},t.prototype._applyLimit=function(){if(this._limit&&this._limit<this.heapArray.length)for(var t=this.heapArray.length-this._limit;t;)this.heapArray.pop(),--t},t.prototype._bottomN=function(r){var e=new t(this.compare);e.limit=r,e.init(this.heapArray.slice(-r));for(var n=this.heapArray.length-1-r,i=t.getParentIndexOf(n),o=[],a=n;a>i;--a)o.push(a);for(var h=this.heapArray;o.length;){a=o.shift();this.compare(h[a],e.peek())>0&&(e.replace(h[a]),a%2&&o.push(t.getParentIndexOf(a)))}return e.toArray()},t.prototype._moveNode=function(t,r){var e;e=[this.heapArray[r],this.heapArray[t]],this.heapArray[t]=e[0],this.heapArray[r]=e[1]},t.prototype._sortNodeDown=function(r){for(var e=this,n=r<this.heapArray.length-1,i=!1,o=this.heapArray[r],a=function(t,r){return e.compare(e.heapArray[r],e.heapArray[t])<0&&(t=r),t};n;){var h=t.getChildrenIndexOf(r),p=h.reduce(a,h[0]),u=this.heapArray[p];void 0!==u&&this.compare(o,u)>0?(this._moveNode(r,p),r=p,i=!0):n=!1}return i},t.prototype._sortNodeUp=function(r){for(var e=r>0,n=!1;e;){var i=t.getParentIndexOf(r);i>=0&&this.compare(this.heapArray[i],this.heapArray[r])>0?(this._moveNode(r,i),r=i,n=!0):e=!1}return n},t.prototype._topN=function(r){var e=new t(this._invertedCompare);e.limit=r;for(var n=[0],i=this.heapArray;n.length;){var o=n.shift();o<i.length&&(e.length<r?(e.push(i[o]),n.push.apply(n,t.getChildrenIndexOf(o))):this.compare(i[o],e.peek())<=0&&(e.replace(i[o]),n.push.apply(n,t.getChildrenIndexOf(o))))}return e.toArray()},t}()}}]);