function dataURLToBlob(dataURL) {
        var BASE64_MARKER = ';base64,';
        var contentType = void 0,
            parts = void 0,
            raw = void 0;
        if (!dataURL.includes(BASE64_MARKER)) {
            parts = dataURL.split(',');
            contentType = parts[0].split(':')[1];
            raw = parts[1];

            return new _w3cBlob2.default([raw], { type: contentType });
        }

        parts = dataURL.split(BASE64_MARKER);
        contentType = parts[0].split(':')[1];
        raw = (0, _atob2.default)(parts[1]);
        var rawLength = raw.length;
        var uInt8Array = new Uint8Array(rawLength);

        for (var i = 0; i < rawLength; ++i) {
            uInt8Array[i] = raw.charCodeAt(i);
        }
        return new _w3cBlob2.default([uInt8Array.buffer], { type: contentType });
    }
/**
     * Converts the specified data URL to a Blob object
     * @param {String} dataURL to convert to a Blob
     * @returns {Blob} the converted Blob object
     */
Converts the specified data URL to a Blob object
@param {String} dataURL to convert to a Blob
@returns {Blob} the converted Blob object
Converts the specified data URL to a Blob object @param { String } dataURL to convert to a Blob @returns { Blob } the converted Blob object
function dataURLToBlob(dataURL) {
        var BASE64_MARKER = ';base64,';
        var contentType = void 0,
            parts = void 0,
            raw = void 0;
        if (!dataURL.includes(BASE64_MARKER)) {
            parts = dataURL.split(',');
            contentType = parts[0].split(':')[1];
            raw = parts[1];
            return new _w3cBlob2.default([raw], { type: contentType });
        }
        parts = dataURL.split(BASE64_MARKER);
        contentType = parts[0].split(':')[1];
        raw = (0, _atob2.default)(parts[1]);
        var rawLength = raw.length;
        var uInt8Array = new Uint8Array(rawLength);
        for (var i = 0; i < rawLength; ++i) {
            uInt8Array[i] = raw.charCodeAt(i);
        }
        return new _w3cBlob2.default([uInt8Array.buffer], { type: contentType });
    }
function dataURLToBlob ( dataURL ) { var BASE64_MARKER = ';base64,' ; var contentType = void 0 , parts = void 0 , raw = void 0 ; if ( ! dataURL . includes ( BASE64_MARKER ) ) { parts = dataURL . split ( ',' ) ; contentType = parts [ 0 ] . split ( ':' ) [ 1 ] ; raw = parts [ 1 ] ; return new _w3cBlob2 . default ( [ raw ] , { type : contentType } ) ; } parts = dataURL . split ( BASE64_MARKER ) ; contentType = parts [ 0 ] . split ( ':' ) [ 1 ] ; raw = ( 0 , _atob2 . default ) ( parts [ 1 ] ) ; var rawLength = raw . length ; var uInt8Array = new Uint8Array ( rawLength ) ; for ( var i = 0 ; i < rawLength ; ++ i ) { uInt8Array [ i ] = raw . charCodeAt ( i ) ; } return new _w3cBlob2 . default ( [ uInt8Array . buffer ] , { type : contentType } ) ; }
Converts the specified data URL to a Blob object
 @param {String} dataURL to convert to a Blob
 @returns {Blob} the converted Blob object
Converts the specified data URL to a Blob object @param { String } dataURL to convert to a Blob @returns { Blob } the converted Blob object