use-on-demand
Version:
2 lines • 2.59 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f1848e6"],{"07d6":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},2440:function(t,e,n){var o,r=r||function(t){"use strict";if(!("undefined"===typeof t||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},o=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,a=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},i=/constructor/i.test(t.HTMLElement)||t.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},f="application/octet-stream",s=4e4,d=function(t){var e=function(){"string"===typeof t?n().revokeObjectURL(t):t.remove()};setTimeout(e,s)},l=function(t,e,n){e=[].concat(e);var o=e.length;while(o--){var r=t["on"+e[o]];if("function"===typeof r)try{r.call(t,n||t)}catch(a){u(a)}}},p=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},w=function(e,u,s){s||(e=p(e));var w,v=this,h=e.type,m=h===f,y=function(){l(v,"writestart progress write writeend".split(" "))},S=function(){if((c||m&&i)&&t.FileReader){var o=new FileReader;return o.onloadend=function(){var e=c?o.result:o.result.replace(/^data:[^;]*;/,"data:attachment/file;"),n=t.open(e,"_blank");n||(t.location.href=e),e=void 0,v.readyState=v.DONE,y()},o.readAsDataURL(e),void(v.readyState=v.INIT)}if(w||(w=n().createObjectURL(e)),m)t.location.href=w;else{var r=t.open(w,"_blank");r||(t.location.href=w)}v.readyState=v.DONE,y(),d(w)};if(v.readyState=v.INIT,r)return w=n().createObjectURL(e),void setTimeout((function(){o.href=w,o.download=u,a(o),y(),d(w),v.readyState=v.DONE}));S()},v=w.prototype,h=function(t,e,n){return new w(t,e||t.name||"download",n)};return"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=p(t)),navigator.msSaveOrOpenBlob(t,e)}:(v.abort=function(){},v.readyState=v.INIT=0,v.WRITING=1,v.DONE=2,v.error=v.onwritestart=v.onprogress=v.onwrite=v.onabort=v.onerror=v.onwriteend=null,h)}}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content);
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */t.exports?t.exports.saveAs=r:null!==n("07d6")&&null!==n("3c35")&&(o=function(){return r}.call(e,n,e,t),void 0===o||(t.exports=o))},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})}}]);