From ee4268af156b66045554cd9ba74c5ec99a15f020 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 3 Dec 2018 09:31:06 -0500 Subject: [PATCH] Add es6-promise polyfill to fix browsers lacking promise.finally This fixes an issue where projects could not be loaded on Edge --- static/js/polyfill.min.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/polyfill.min.js b/static/js/polyfill.min.js index eefc567b8..fb6b1e675 100644 --- a/static/js/polyfill.min.js +++ b/static/js/polyfill.min.js @@ -134,6 +134,11 @@ keys:l,values:l,entries:B,forEach:u}));"undefined"==typeof WeakSet&&(e.WeakSet=f */ !function(t){function r(o){if(n[o])return n[o].exports;var e=n[o]={i:o,l:!1,exports:{}};return t[o].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n={};r.m=t,r.c=n,r.i=function(t){return t},r.d=function(t,n,o){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=4)}([function(t,r,n){"use strict";var o=n(7)();t.exports=function(t){return t!==o&&null!==t}},function(t,r,n){"use strict";var o={object:!0,symbol:!0};t.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!o[typeof Symbol.iterator]&&(!!o[typeof Symbol.toPrimitive]&&!!o[typeof Symbol.toStringTag])}},function(t,r){t.exports=function(){return this}()},function(t,r,n){"use strict";var o,e,i,c,u=n(6),s=n(20),a=Object.create,f=Object.defineProperties,p=Object.defineProperty,l=Object.prototype,y=a(null);if("function"==typeof Symbol){o=Symbol;try{String(o()),c=!0}catch(t){}}var b=function(){var t=a(null);return function(r){for(var n,o,e=0;t[r+(e||"")];)++e;return r+=e||"",t[r]=!0,n="@@"+r,p(l,n,u.gs(null,function(t){o||(o=!0,p(this,n,u(t)),o=!1)})),n}}();i=function(t){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return e(t)},t.exports=e=function t(r){var n;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return c?o(r):(n=a(i.prototype),r=void 0===r?"":String(r),f(n,{__description__:u("",r),__name__:u("",b(r))}))},f(e,{for:u(function(t){return y[t]?y[t]:y[t]=e(String(t))}),keyFor:u(function(t){var r;s(t);for(r in y)if(y[r]===t)return r}),hasInstance:u("",o&&o.hasInstance||e("hasInstance")),isConcatSpreadable:u("",o&&o.isConcatSpreadable||e("isConcatSpreadable")),iterator:u("",o&&o.iterator||e("iterator")),match:u("",o&&o.match||e("match")),replace:u("",o&&o.replace||e("replace")),search:u("",o&&o.search||e("search")),species:u("",o&&o.species||e("species")),split:u("",o&&o.split||e("split")),toPrimitive:u("",o&&o.toPrimitive||e("toPrimitive")),toStringTag:u("",o&&o.toStringTag||e("toStringTag")),unscopables:u("",o&&o.unscopables||e("unscopables"))}),f(i.prototype,{constructor:u(e),toString:u("",function(){return this.__name__})}),f(e.prototype,{toString:u(function(){return"Symbol ("+s(this).__description__+")"}),valueOf:u(function(){return s(this)})}),p(e.prototype,e.toPrimitive,u("",function(){var t=s(this);return"symbol"==typeof t?t:t.toString()})),p(e.prototype,e.toStringTag,u("c","Symbol")),p(i.prototype,e.toStringTag,u("c",e.prototype[e.toStringTag])),p(i.prototype,e.toPrimitive,u("c",e.prototype[e.toPrimitive]))},function(t,r,n){"use strict";n(1)()||Object.defineProperty(n(2),"Symbol",{value:n(3),configurable:!0,enumerable:!1,writable:!0})},function(t,r,n){"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},function(t,r,n){"use strict";var o,e=n(8),i=n(15),c=n(11),u=n(17);o=t.exports=function(t,r){var n,o,c,s,a;return arguments.length<2||"string"!=typeof t?(s=r,r=t,t=null):s=arguments[2],null==t?(n=c=!0,o=!1):(n=u.call(t,"c"),o=u.call(t,"e"),c=u.call(t,"w")),a={value:r,configurable:n,enumerable:o,writable:c},s?e(i(s),a):a},o.gs=function(t,r,n){var o,s,a,f;return"string"!=typeof t?(a=n,n=r,r=t,t=null):a=arguments[3],null==r?r=void 0:c(r)?null==n?n=void 0:c(n)||(a=n,n=void 0):(a=r,r=n=void 0),null==t?(o=!0,s=!1):(o=u.call(t,"c"),s=u.call(t,"e")),f={get:r,set:n,configurable:o,enumerable:s},a?e(i(a),f):f}},function(t,r,n){"use strict";t.exports=function(){}},function(t,r,n){"use strict";t.exports=n(9)()?Object.assign:n(10)},function(t,r,n){"use strict";t.exports=function(){var t,r=Object.assign;return"function"==typeof r&&(t={foo:"raz"},r(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,r,n){"use strict";var o=n(12),e=n(16),i=Math.max;t.exports=function(t,r){var n,c,u,s=i(arguments.length,2);for(t=Object(e(t)),u=function(o){try{t[o]=r[o]}catch(t){n||(n=t)}},c=1;c-1}},function(t,r,n){"use strict";var o=n(5);t.exports=function(t){if(!o(t))throw new TypeError(t+" is not a symbol");return t}}]); +/** + * https://github.com/stefanpenner/es6-promise + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){B=t}function r(t){G=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof z?function(){z(a)}:c()}function s(){var t=0,e=new J(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t