From 9bb221dcff20a3ca44cd53e8f6015fa653a96b20 Mon Sep 17 00:00:00 2001 From: carsonxu <459452372@qq.com> Date: Tue, 4 Jul 2017 22:16:39 +0800 Subject: [PATCH] update --- demo/demo.js | 390 ++++++++---- demo/index.html | 2 +- dist/cos-js-sdk-v5.js | 9 +- dist/cos-js-sdk-v5.js.map | 1 - lib/request.js | 34 +- package.json | 2 +- src/advance.js | 121 ++-- src/base.js | 1192 ++++++++++++++++--------------------- src/util.js | 50 +- webpack.config.js | 1 - 10 files changed, 895 insertions(+), 907 deletions(-) delete mode 100644 dist/cos-js-sdk-v5.js.map diff --git a/demo/demo.js b/demo/demo.js index 8d82584..dcb1c90 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -26,27 +26,37 @@ var cos = new COS({ }); var pre = document.querySelector('.result'); -var log = { - info: function (text, color) { - console.log(text); - if (typeof text === 'object') { - try { - text = JSON.stringify(text); - } catch (e) { - } +var logger = function (text, color) { + if (typeof text === 'object') { + try { + text = JSON.stringify(text); + } catch (e) { } - var div = document.createElement('div'); - div.innerText = text; - color && (div.style.color = color); - pre.append(div); - pre.style.display = 'block'; - pre.scrollTop = pre.scrollHeight; - }, - error: function (text) { - log.info(text, 'red'); - }, + } + var div = document.createElement('div'); + div.innerText = text; + color && (div.style.color = color); + pre.append(div); + pre.style.display = 'block'; + pre.scrollTop = pre.scrollHeight; +}; +console._log = console.log; +console._error = console.error; +console.log = function (text) { + console._log.apply(console._log, arguments); + logger(text); +}; +console.error = function (text) { + console._error.apply(console._error, arguments); + logger(text, 'red'); }; +function getService() { + cos.getService(function (err, data) { + return console.log(err || data); + }); +} + function getAuth() { var AppId = config.AppId; var Bucket = config.Bucket; @@ -60,7 +70,17 @@ function getAuth() { method: 'get', pathname: '/' + key }, function (auth) { - log.info('http://' + Bucket + '-' + AppId + '.' + config.Region + '.myqcloud.com' + '/' + key + '?sign=' + encodeURIComponent(auth)); + console.log('http://' + Bucket + '-' + AppId + '.' + config.Region + '.myqcloud.com' + '/' + key + '?sign=' + encodeURIComponent(auth)); + }); +} + +function putBucket() { + cos.putBucket({ + Bucket: 'testnew', + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -69,10 +89,8 @@ function getBucket() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -81,10 +99,8 @@ function headBucket() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -97,12 +113,21 @@ function putBucketACL() { // GrantRead: 'uin="1001", uin="1002"', // ACL: 'public-read-write', // ACL: 'public-read', - ACL: 'private' - }, function (err, data) { - if (err) { - return log.error(err); + // ACL: 'private', + AccessControlPolicy: { + "Owner": { + "ID": 'qcs::cam::uin/459452372:uin/459452372' // 459452372 是 QQ 号 + }, + "Grants": [{ + "Grantee": { + "ID": "qcs::cam::uin/10002:uin/10002", // 10002 是 QQ 号 + }, + "Permission": "READ" + }] } - log.info(JSON.stringify(data, null, ' ')); + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -111,30 +136,27 @@ function getBucketACL() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(data.AccessControlList.Grant); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } function putBucketCORS() { - // 该接口存在问题,Content-MD5 错误 cos.putBucketCORS({ Bucket: config.Bucket, Region: config.Region, - CORSRules: [{ - "AllowedOrigin": ["*"], - "AllowedMethod": ["GET", "POST", "PUT", "DELETE", "HEAD"], - "AllowedHeader": ["origin", "accept", "content-type", "authorzation"], - "ExposeHeader": ["ETag"], - "MaxAgeSeconds": "600" - }] - }, function (err, data) { - if (err) { - return log.error(err); + CORSConfiguration: { + CORSRule: [{ + "AllowedOrigin": ["*"], + "AllowedMethod": ["GET", "POST", "PUT", "DELETE", "HEAD"], + "AllowedHeader": ["origin", "accept", "content-type", "authorzation"], + "ExposeHeader": ["ETag"], + "MaxAgeSeconds": "600" + }] } - log.info(JSON.stringify(data, null, ' ')); + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -143,10 +165,54 @@ function getBucketCORS() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function deleteBucketCORS() { + cos.deleteBucketCORS({ + Bucket: config.Bucket, + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function putBucketTagging() { + cos.putBucketTagging({ + Bucket: config.Bucket, + Region: config.Region, + Tagging: { + TagSet: [ + {Key: "k1", Value: "v1"}, + {Key: "k2", Value: "v2"} + ] } - log.info(JSON.stringify(data, null, ' ')); + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function getBucketTagging() { + cos.getBucketTagging({ + Bucket: config.Bucket, + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function deleteBucketTagging() { + cos.deleteBucketTagging({ + Bucket: config.Bucket, + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -161,7 +227,7 @@ function putBucketPolicy() { cos.putBucketPolicy({ Policy: { "version": "2.0", - "principal": {"qcs": ["qcs::cam::uin/909600000:uin/909600000"]}, // 这里的 909600000 是 QQ 号 + "principal": {"qcs": ["qcs::cam::uin/10001:uin/10001"]}, // 这里的 10001 是 QQ 号 "statement": [ { "effect": "allow", @@ -185,11 +251,18 @@ function putBucketPolicy() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - log.error(err); - } else { - getBucketPolicy(); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function getBucketPolicy() { + cos.getBucketPolicy({ + Bucket: config.Bucket, + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -198,54 +271,78 @@ function getBucketLocation() { Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function putBucketLifecycle() { + cos.putBucketLifecycle({ + Bucket: config.Bucket, + Region: config.Region, + LifecycleConfiguration: { + Rules: [{ + 'ID': 1, + 'Prefix': 'test', + 'Status': 'Enabled', + 'Transition': { + 'Date': '2016-10-31T00:00:00+08:00', + 'StorageClass': 'Standard_IA' + } + }] } - log.info(JSON.stringify(data, null, ' ')); + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } -function deleteBucket() { - cos.deleteBucket({ - Bucket: 'testnew', +function getBucketLifecycle() { + cos.getBucketLifecycle({ + Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } -function getBucketPolicy() { - cos.getBucketPolicy({ +function deleteBucketLifecycle() { + cos.deleteBucketLifecycle({ Bucket: config.Bucket, Region: config.Region }, function (err, data) { - if (err) { - log.error(err); - } else { - log.info(JSON.stringify(data, null, ' ')); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); + }); +} + +function deleteBucket() { + cos.deleteBucket({ + Bucket: 'testnew', + Region: config.Region + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } function putObject() { + // 创建测试文件 + var filename = '1mb.zip'; var blob = util.createFile({type: 'image/png', size: 1024 * 1024}); + // 调用方法 cos.putObject({ - Bucket: config.Bucket, + Bucket: config.Bucket, /* 必须 */ Region: config.Region, - Key: '1mb.zip', - Body: blob, + Key: filename, /* 必须 */ onProgress: function (progressData) { - log.info(JSON.stringify(progressData)); + console.log(JSON.stringify(progressData)); }, + Body: blob }, function (err, data) { - if (err) { - log.error(err); - } else { - log.info(JSON.stringify(data, null, ' ')); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -263,11 +360,8 @@ function putObjectCopy() { Key: '1mb.copy.zip', CopySource: Bucket + '-' + AppId + '.' + config.Region + '.myqcloud.com/1mb.zip', }, function (err, data) { - if (err) { - log.error(err); - } else { - log.info(JSON.stringify(data, null, ' ')); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -277,10 +371,8 @@ function getObject() { Region: config.Region, Key: '1mb.zip' }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -290,10 +382,8 @@ function headObject() { Region: config.Region, Key: '1mb.zip' }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -307,12 +397,21 @@ function putObjectACL() { // GrantRead: 'uin="1001", uin="1002"', // ACL: 'public-read-write', // ACL: 'public-read', - ACL: 'private' - }, function (err, data) { - if (err) { - return log.error(err); + // ACL: 'private', + AccessControlPolicy: { + "Owner": { + "ID": 'qcs::cam::uin/10001:uin/10001' // 10001 是 QQ 号 + }, + "Grants": [{ + "Grantee": { + "ID": "qcs::cam::uin/10002:uin/10002", // 10002 是 QQ 号 + }, + "Permission": "READ" + }] } - log.info(JSON.stringify(data, null, ' ')); + }, function (err, data) { + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -322,10 +421,8 @@ function getObjectACL() { Region: config.Region, Key: '1mb.zip' }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -335,11 +432,8 @@ function deleteObject() { Region: config.Region, Key: '1mb.zip' }, function (err, data) { - if (err) { - return log.error(err); - } - - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -352,10 +446,8 @@ function deleteMultipleObject() { {Key: '3mb.zip'}, ] }, function (err, data) { - if (err) { - return log.error(err); - } - log.info(JSON.stringify(data, null, ' ')); + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -363,14 +455,18 @@ function abortUploadTask() { cos.abortUploadTask({ Bucket: config.Bucket, /* 必须 */ Region: config.Region, /* 必须 */ + // 格式1,删除单个上传任务 + // Level: 'task', + // Key: '10mb.zip', + // UploadId: '14985543913e4e2642e31db217b9a1a3d9b3cd6cf62abfda23372c8d36ffa38585492681e3', + // 格式2,删除单个文件所有未完成上传任务 + Level: 'file', Key: '10mb.zip', - Level: 'bucket', + // 格式3,删除 Bucket 下所有未完成上传任务 + // Level: 'bucket', }, function (err, data) { - if (err) { - log.error(err); - } else { - log.info(JSON.stringify(data, null, ' ')); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } @@ -384,39 +480,77 @@ function sliceUploadFile() { AsyncLimit: 3, /* 非必须 */ Body: blob, onHashProgress: function (progressData) { - log.info(JSON.stringify(progressData)); + console.log(JSON.stringify(progressData)); }, onProgress: function (progressData) { - log.info(JSON.stringify(progressData)); + console.log(JSON.stringify(progressData)); }, }, function (err, data) { - if (err) { - log.error(err); - } else { - log.info(JSON.stringify(data, null, ' ')); - } + if (err) return console.log(err); + console.log(JSON.stringify(data, null, ' ')); }); } +// getService(); +// getAuth(); +// putBucket(); +// getBucket(); +// headBucket(); +// putBucketACL(); +// getBucketACL(); +// putBucketCORS(); +// getBucketCORS(); +// deleteBucketCORS(); +// putBucketTagging(); +// getBucketTagging(); +// deleteBucketTagging(); +// putBucketPolicy(); +// getBucketPolicy(); +// getBucketLocation(); +// getBucketLifecycle(); +// putBucketLifecycle(); +// deleteBucketLifecycle(); +// deleteBucket(); +// putObject(); +// putObjectCopy(); +// getObject(); +// headObject(); +// putObjectACL(); +// getObjectACL(); +// deleteObject(); +// deleteMultipleObject(); +// abortUploadTask(); +// sliceUploadFile(); + + (function () { var list = [ + // 'getService', 'getAuth', + // 'putBucket', 'getBucket', 'headBucket', // 'putBucketACL', // 'getBucketACL', // 'putBucketCORS', // 'getBucketCORS', + // 'deleteBucketCORS', + // 'putBucketTagging', + // 'getBucketTagging', + // 'deleteBucketTagging', // 'putBucketPolicy', // 'getBucketPolicy', // 'getBucketLocation', + // 'getBucketLifecycle', + // 'putBucketLifecycle', + // 'deleteBucketLifecycle', 'deleteBucket', 'putObject', 'putObjectCopy', 'getObject', 'headObject', // 'putObjectACL', - 'getObjectACL', + // 'getObjectACL', 'deleteObject', // 'deleteMultipleObject', // 'abortUploadTask', diff --git a/demo/index.html b/demo/index.html index 7e3c12c..a6a0dcc 100644 --- a/demo/index.html +++ b/demo/index.html @@ -12,7 +12,7 @@ h1 { font-weight: normal; color:#333;} a { color: #006eff; background-color: transparent; padding: 8px 16px; line-height: 1.3; display: inline-block; text-align: center; margin: 0 8px 8px 0; border: 1px solid #006eff; font-size: 14px; text-decoration: none; } a:hover { color: #fff; background-color: #006eff; } - .result {display:none;line-height:1.3;font-size: 13px;font-family:monospace;border:1px solid #006eff;margin:0;min-height:100px;max-height:300px;overflow:auto;box-sizing:border-box;padding:5px;} + .result {display:none;line-height:1.3;font-size: 13px;font-family:monospace;border:1px solid #006eff;margin:0;height:200px;overflow:auto;box-sizing:border-box;padding:5px;} diff --git a/dist/cos-js-sdk-v5.js b/dist/cos-js-sdk-v5.js index e381e99..19108f4 100644 --- a/dist/cos-js-sdk-v5.js +++ b/dist/cos-js-sdk-v5.js @@ -1,12 +1,11 @@ -!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=71)}([function(t,e,n){function r(t,e){var n=o(t);return null==e?n:i(n,e)}var i=n(116),o=n(117);t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(52),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(t){t.end()}var a=n(17),s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var u=n(11);u.inherits=n(6);var c=n(45),l=n(30);u.inherits(r,c);for(var f=s(l.prototype),p=0;p1)for(var n=1;n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),o.alloc(+t)}function g(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;cs&&(n=s-u),c=n;c>=0;c--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return j(r)}function j(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function B(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,r,52,8),n+8}function q(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function G(t){return $.toByteArray(q(t))}function V(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t){return t!==t}/*! +!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=71)}([function(t,e,n){function r(t,e){var n=o(t);return null==e?n:i(n,e)}var i=n(116),o=n(117);t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(52),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(t){t.end()}var a=n(17),s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var u=n(11);u.inherits=n(7);var c=n(45),l=n(30);u.inherits(r,c);for(var f=s(l.prototype),p=0;p=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),o.alloc(+t)}function g(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;cs&&(n=s-u),c=n;c>=0;c--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return k(r)}function k(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function B(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,r,52,8),n+8}function q(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function Y(t){return $.toByteArray(q(t))}function V(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t){return t!==t}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var $=n(73),Q=n(74),J=n(44);e.Buffer=o,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){L(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(82),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==s||e==u||e==a||e==c}var i=n(12),o=n(1),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(3),i=r.Symbol;t.exports=i},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1||"deleteMultipleObject"===t||"multipartList"===t?n&&r:!(t.indexOf("Object")>-1||t.indexOf("multipart")>-1||"sliceUploadFile"===t||"abortUploadTask"===t)||n&&r&&i},m=function(t,e){return function(n,r){if(r=r||function(){},"getService"!==t){if(!v(t,n))return void r({error:"lack of required params"});if(n.Key&&0===n.Key.indexOf("/"))return void r({error:'params Key can not start width "/"'});var i,o=n.Bucket;if(o&&o.indexOf("-")>-1){var a=o.split("-");i=a[1],o=a[0],n.AppId=i,n.Bucket=o}}var s=e.call(this,n,r);return"getAuth"===t?s:void 0}},b=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,w={apiWrapper:m,getAuth:c,xml2json:l,json2xml:f,md5:i,clearKey:p,getFileSHA:d,getFileMd5:y,extend:r,binaryBase64:g,fileSlice:b};t.exports=w}).call(e,n(9).Buffer)},function(t,e,n){e=t.exports=n(45),e.Stream=e,e.Readable=e,e.Writable=n(30),e.Duplex=n(4),e.Transform=n(48),e.PassThrough=n(84)},function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return a(t,e,n)}var o=n(9),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=i),r(a,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=a(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){S(e,t)}}function o(t){return D.from(t)}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)||D.isBuffer(t)}function s(){}function u(t,e){I=I||n(4),t=t||{},this.objectMode=!!t.objectMode,e instanceof I&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){v(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function c(t){if(I=I||n(4),!(L.call(c,this)||this instanceof I))return new c(t);this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),R.call(this)}function l(t,e){var n=new Error("write after end");t.emit("error",n),C(e,n)}function f(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),C(r,o),i=!1),i}function p(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=D.from(e,n)),e}function h(t,e,n,r,i,o){if(!n){var a=p(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length-1?r:C;c.WritableState=u;var k=n(11);k.inherits=n(6);var O={deprecate:n(83)},R=n(46),D=n(29).Buffer,P=n(47);k.inherits(c,R),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var L;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!L.call(this,t)||t&&t._writableState instanceof u}})):L=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var r=this._writableState,i=!1,u=a(t)&&!r.objectMode;return u&&!D.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),u?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=s),r.ended?l(this,n):(u||f(this,r,t,n))&&(r.pendingcb++,i=h(this,r,u,t,e,n)),i},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||A(this,r,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=P.destroy,c.prototype._undestroy=P.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(7),n(18).setImmediate)},function(t,e,n){function r(t){if(t&&!u(t))throw new Error("Unknown encoding: "+t)}function i(t){return t.toString(this.encoding)}function o(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function a(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var s=n(9).Buffer,u=s.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),r(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),e+=t.toString(this.encoding,0,i);var i=e.length-1,r=e.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},c.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},c.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||i.test(t))&&t>-1&&t%1==0&&t0?("string"==typeof e||Object.getPrototypeOf(e)===B.prototype||a.objectMode||(e=r(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?c(t,a,e,!1):v(t,a)):c(t,a,e,!1))):i||(a.reading=!1)}return f(a)}function c(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&y(t)),v(t,e)}function l(t,e){var n;return i(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(t){return!t.ended&&(t.needReadable||t.length=K?t=K:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function d(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,y(t)}}function y(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(U("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?O(g,t):g(t))}function g(t){U("emit readable"),t.emit("readable"),E(t)}function v(t,e){e.readingMore||(e.readingMore=!0,O(m,t,e))}function m(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var r;return to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}function C(t,e){var n=B.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,O(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function k(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return U("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):y(this),null;if(0===(t=h(t,e))&&e.ended)return 0===e.length&&I(this),null;var r=e.needReadable;U("need readable",r),(0===e.length||e.length-t0?T(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==i&&this.emit("data",i),i},s.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(t,n){function r(t,e){U("onunpipe"),t===p&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,a())}function i(){U("onend"),t.end()}function a(){U("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",g),t.removeListener("error",u),t.removeListener("unpipe",r),p.removeListener("end",i),p.removeListener("end",f),p.removeListener("data",s),v=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function s(e){U("ondata"),m=!1,!1!==t.write(e)||m||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==k(h.pipes,t))&&!v&&(U("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,m=!0),p.pause())}function u(e){U("onerror",e),f(),t.removeListener("error",u),0===P(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){U("onfinish"),t.removeListener("close",c),f()}function f(){U("unpipe"),p.unpipe(t)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,U("pipe count=%d opts=%j",h.pipesCount,n);var d=(!n||!1!==n.end)&&t!==e.stdout&&t!==e.stderr,y=d?i:f;h.endEmitted?O(y):p.once("end",y),t.on("unpipe",r);var g=b(p);t.on("drain",g);var v=!1,m=!1;return p.on("data",s),o(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",p),h.flowing||(U("pipe resume"),p.resume()),t},s.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o",y&&(g+=h);else if(y&&1===this.children.length&&null!=this.children[0].value)g+=">",g+=this.children[0].value,g+="",g+=h;else{for(g+=">",y&&(g+=h),x=this.children,u=0,f=x.length;u",y&&(g+=h)}return g},n.prototype.att=function(t,e){return this.attribute(t,e)},n.prototype.ins=function(t,e){return this.instruction(t,e)},n.prototype.a=function(t,e){return this.attribute(t,e)},n.prototype.i=function(t,e){return this.instruction(t,e)},n}(r)}).call(this)},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(22),o=n(139),a=n(140),s=n(141),u=n(142),c=n(143);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){function r(t,e,n,a,s){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!==t&&e!==e:i(t,e,n,a,r,s))}var i=n(156),o=n(15);t.exports=r},function(t,e,n){function r(t,e,n,r,c,l){var f=n&s,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,g=!0,v=n&u?new i:void 0;for(l.set(t,e),l.set(e,t);++y",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(8),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c;n(0),c=n(1),e=n(68),r=n(69),i=n(189),a=n(190),o=n(191),s=n(192),u=n(67),t.exports=function(){function t(t,e,n){var r,i;this.documentObject=t,this.stringify=this.documentObject.stringify,this.children=[],c(e)&&(r=e,e=r.pubID,n=r.sysID),null==n&&(i=[e,n],n=i[0],e=i[1]),null!=e&&(this.pubID=this.stringify.dtdPubID(e)),null!=n&&(this.sysID=this.stringify.dtdSysID(n))}return t.prototype.element=function(t,e){var n;return n=new o(this,t,e),this.children.push(n),this},t.prototype.attList=function(t,e,n,r,o){var a;return a=new i(this,t,e,n,r,o),this.children.push(a),this},t.prototype.entity=function(t,e){var n;return n=new a(this,!1,t,e),this.children.push(n),this},t.prototype.pEntity=function(t,e){var n;return n=new a(this,!0,t,e),this.children.push(n),this},t.prototype.notation=function(t,e){var n;return n=new s(this,t,e),this.children.push(n),this},t.prototype.cdata=function(t){var n;return n=new e(this,t),this.children.push(n),this},t.prototype.comment=function(t){var e;return e=new r(this,t),this.children.push(e),this},t.prototype.instruction=function(t,e){var n;return n=new u(this,t,e),this.children.push(n),this},t.prototype.root=function(){return this.documentObject.root()},t.prototype.document=function(){return this.documentObject},t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l,f,p,h,d;if(u=(null!=t?t.pretty:void 0)||!1,i=null!=(l=null!=t?t.indent:void 0)?l:" ",s=null!=(f=null!=t?t.offset:void 0)?f:0,a=null!=(p=null!=t?t.newline:void 0)?p:"\n",e||(e=0),d=new Array(e+s+1).join(i),c="",u&&(c+=d),c+="0){for(c+=" [",u&&(c+=a),h=this.children,r=0,o=h.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s=t.length;o=r(t),a=new f(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,n){for(var r,i=[],o=e;ou?u:a+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h>1,l=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=d,a/=256,c-=8);t[n+h-d]|=128*y}},function(t,e){var n=function(t){function e(t,e){return t<>>32-e}function n(t,e){var n,r,i,o,a;return i=2147483648&t,o=2147483648&e,n=1073741824&t,r=1073741824&e,a=(1073741823&t)+(1073741823&e),n&r?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function r(t,e,n){return t&e|~t&n}function i(t,e,n){return t&n|e&~n}function o(t,e,n){return t^e^n}function a(t,e,n){return e^(t|~n)}function s(t,i,o,a,s,u,c){return t=n(t,n(n(r(i,o,a),s),c)),n(e(t,u),i)}function u(t,r,o,a,s,u,c){return t=n(t,n(n(i(r,o,a),s),c)),n(e(t,u),r)}function c(t,r,i,a,s,u,c){return t=n(t,n(n(o(r,i,a),s),c)),n(e(t,u),r)}function l(t,r,i,o,s,u,c){return t=n(t,n(n(a(r,i,o),s),c)),n(e(t,u),r)}function f(t){var e,n,r="",i="";for(n=0;n<=3;n++)e=t>>>8*n&255,i="0"+e.toString(16),r+=i.substr(i.length-2,2);return r}var p,h,d,y,g,v,m,b,w,_=Array();for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t),_=function(t){for(var e,n=t.length,r=n+8,i=(r-r%64)/64,o=16*(i+1),a=Array(o-1),s=0,u=0;u>>29,a}(t),v=1732584193,m=4023233417,b=2562383102,w=271733878,p=0;p<_.length;p+=16)h=v,d=m,y=b,g=w,v=s(v,m,b,w,_[p+0],7,3614090360),w=s(w,v,m,b,_[p+1],12,3905402710),b=s(b,w,v,m,_[p+2],17,606105819),m=s(m,b,w,v,_[p+3],22,3250441966),v=s(v,m,b,w,_[p+4],7,4118548399),w=s(w,v,m,b,_[p+5],12,1200080426),b=s(b,w,v,m,_[p+6],17,2821735955),m=s(m,b,w,v,_[p+7],22,4249261313),v=s(v,m,b,w,_[p+8],7,1770035416),w=s(w,v,m,b,_[p+9],12,2336552879),b=s(b,w,v,m,_[p+10],17,4294925233),m=s(m,b,w,v,_[p+11],22,2304563134),v=s(v,m,b,w,_[p+12],7,1804603682),w=s(w,v,m,b,_[p+13],12,4254626195),b=s(b,w,v,m,_[p+14],17,2792965006),m=s(m,b,w,v,_[p+15],22,1236535329),v=u(v,m,b,w,_[p+1],5,4129170786),w=u(w,v,m,b,_[p+6],9,3225465664),b=u(b,w,v,m,_[p+11],14,643717713),m=u(m,b,w,v,_[p+0],20,3921069994),v=u(v,m,b,w,_[p+5],5,3593408605),w=u(w,v,m,b,_[p+10],9,38016083),b=u(b,w,v,m,_[p+15],14,3634488961),m=u(m,b,w,v,_[p+4],20,3889429448),v=u(v,m,b,w,_[p+9],5,568446438),w=u(w,v,m,b,_[p+14],9,3275163606),b=u(b,w,v,m,_[p+3],14,4107603335),m=u(m,b,w,v,_[p+8],20,1163531501),v=u(v,m,b,w,_[p+13],5,2850285829),w=u(w,v,m,b,_[p+2],9,4243563512),b=u(b,w,v,m,_[p+7],14,1735328473),m=u(m,b,w,v,_[p+12],20,2368359562),v=c(v,m,b,w,_[p+5],4,4294588738),w=c(w,v,m,b,_[p+8],11,2272392833),b=c(b,w,v,m,_[p+11],16,1839030562),m=c(m,b,w,v,_[p+14],23,4259657740),v=c(v,m,b,w,_[p+1],4,2763975236),w=c(w,v,m,b,_[p+4],11,1272893353),b=c(b,w,v,m,_[p+7],16,4139469664),m=c(m,b,w,v,_[p+10],23,3200236656),v=c(v,m,b,w,_[p+13],4,681279174),w=c(w,v,m,b,_[p+0],11,3936430074),b=c(b,w,v,m,_[p+3],16,3572445317),m=c(m,b,w,v,_[p+6],23,76029189),v=c(v,m,b,w,_[p+9],4,3654602809),w=c(w,v,m,b,_[p+12],11,3873151461),b=c(b,w,v,m,_[p+15],16,530742520),m=c(m,b,w,v,_[p+2],23,3299628645),v=l(v,m,b,w,_[p+0],6,4096336452),w=l(w,v,m,b,_[p+7],10,1126891415),b=l(b,w,v,m,_[p+14],15,2878612391),m=l(m,b,w,v,_[p+5],21,4237533241),v=l(v,m,b,w,_[p+12],6,1700485571),w=l(w,v,m,b,_[p+3],10,2399980690),b=l(b,w,v,m,_[p+10],15,4293915773),m=l(m,b,w,v,_[p+1],21,2240044497),v=l(v,m,b,w,_[p+8],6,1873313359),w=l(w,v,m,b,_[p+15],10,4264355552),b=l(b,w,v,m,_[p+6],15,2734768916),m=l(m,b,w,v,_[p+13],21,1309151649),v=l(v,m,b,w,_[p+4],6,4149444226),w=l(w,v,m,b,_[p+11],10,3174756917),b=l(b,w,v,m,_[p+2],15,718787259),m=l(m,b,w,v,_[p+9],21,3951481745),v=n(v,h),m=n(m,d),b=n(b,y),w=n(w,g);return(f(v)+f(m)+f(b)+f(w)).toLowerCase()};t.exports=n},function(t,e,n){var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0);if(e=s*o,i=t.min(4*e,i),e){for(var u=0;uc;c++){if(16>c)o[c]=0|t[e+c];else{var l=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=l<<1|l>>>31}l=(r<<5|r>>>27)+u+o[c],l=20>c?l+(1518500249+(i&a|~i&s)):40>c?l+(1859775393+(i^a^s)):60>c?l+((i&a|i&s|a&s)-1894007588):l+((i^a^s)-899497514),u=s,s=a,a=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(e),t.HmacSHA1=i._createHmacHelper(e)}(),function(){var t=r,e=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(t,n){t=this._hasher=new t.init,"string"==typeof n&&(n=e.parse(n));var r=t.blockSize,i=4*r;n.sigBytes>i&&(n=t.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,u=a.words,c=0;c>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&o+.75*l>>6*(3-l)&63));var f=r.charAt(64);if(f)for(;i.length%4;)i.push(f);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=r.charAt(64);if(i){var o=t.indexOf(i);-1!=o&&(e=o)}for(var a=[],s=0,u=0;u>>6-u%4*2;a[s>>>2]|=(c|l)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.exports=r},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,u,c,l,f,p,h=function(t,e){function n(){this.constructor=t}for(var r in e)d.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};l=n(78),o=n(16),r=n(89),t=n(195),u=n(196),f=n(18).setImmediate,a=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e){var n,r,i;for(n=0,r=t.length;n=0||t.indexOf(">")>=0||t.indexOf("<")>=0},p=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.processors=u,e.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}},e.ValidationError=function(t){function e(t){this.message=t}return h(e,t),e}(Error),e.Builder=function(){function t(t){var n,r,i;this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i)}return t.prototype.buildObject=function(t){var n,i,o,a,s;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(t).length&&this.options.rootName===e.defaults[.2].rootName?(s=Object.keys(t)[0],t=t[s]):s=this.options.rootName,o=function(t){return function(e,r){var a,s,u,l,f,h;if("object"!=typeof r)t.options.cdata&&c(r)?e.raw(p(r)):e.txt(r);else for(f in r)if(d.call(r,f))if(s=r[f],f===n){if("object"==typeof s)for(a in s)h=s[a],e=e.att(a,h)}else if(f===i)e=t.options.cdata&&c(s)?e.raw(p(s)):e.txt(s);else if(Array.isArray(s))for(l in s)d.call(s,l)&&(u=s[l],e="string"==typeof u?t.options.cdata&&c(u)?e.ele(f).raw(p(u)).up():e.ele(f,u).up():o(e.ele(f),u).up());else"object"==typeof s?e=o(e.ele(f),s).up():"string"==typeof s&&t.options.cdata&&c(s)?e=e.ele(f).raw(p(s)).up():(null==s&&(s=""),e=e.ele(f,s.toString()).up());return e}}(this),a=r.create(s,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(a,t).end(this.options.renderOpts)},t}(),e.Parser=function(n){function r(t){this.parseString=y(this.parseString,this),this.reset=y(this.reset,this),this.assignOrPush=y(this.assignOrPush,this),this.processAsync=y(this.processAsync,this);var n,r,i;if(!(this instanceof e.Parser))return new e.Parser(t);this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return h(r,n),r.prototype.processAsync=function(){var t,e;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),f(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},r.prototype.assignOrPush=function(t,e,n){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(n)):this.options.explicitArray?t[e]=[n]:t[e]=n},r.prototype.reset=function(){var t,e,n,r;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(t){return function(e){if(t.saxParser.resume(),!t.saxParser.errThrown)return t.saxParser.errThrown=!0,t.emit("error",e)}}(this),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(n){return function(i){var o,a,u,c,l;if(u={},u[e]="",!n.options.ignoreAttrs){l=i.attributes;for(o in l)d.call(l,o)&&(t in u||n.options.mergeAttrs||(u[t]={}),a=n.options.attrValueProcessors?s(n.options.attrValueProcessors,i.attributes[o]):i.attributes[o],c=n.options.attrNameProcessors?s(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(u,c,a):u[t][c]=a)}return u["#name"]=n.options.tagNameProcessors?s(n.options.tagNameProcessors,i.name):i.name,n.options.xmlns&&(u[n.options.xmlnskey]={uri:i.uri,local:i.local}),r.push(u)}}(this),this.saxParser.onclosetag=function(t){return function(){var n,i,o,u,c,l,f,p,h,y,g;if(f=r.pop(),l=f["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete f["#name"],!0===f.cdata&&(n=f.cdata,delete f.cdata),y=r[r.length-1],f[e].match(/^\s*$/)&&!n?(i=f[e],delete f[e]):(t.options.trim&&(f[e]=f[e].trim()),t.options.normalize&&(f[e]=f[e].replace(/\s{2,}/g," ").trim()),f[e]=t.options.valueProcessors?s(t.options.valueProcessors,f[e]):f[e],1===Object.keys(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])),a(f)&&(f=""!==t.options.emptyTag?t.options.emptyTag:i),null!=t.options.validator){g="/"+function(){var t,e,n;for(n=[],t=0,e=r.length;t0&&(c[t.options.childkey]=f),f=c;return r.length>0?t.assignOrPush(y,l,f):(t.options.explicitRoot&&(h=f,f={},f[l]=h),t.resultObject=f,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],i={"#name":"__text__"},i[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){return function(t){var e;if(e=n(t))return e.cdata=!0}}()},r.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,f(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},r}(o.EventEmitter),e.parseString=function(t,n,r){var i,o,a;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),a=new e.Parser(o),a.parseString(t,i)}}).call(this)},function(t,e,n){(function(t){!function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);var i=this;o(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=z.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(N)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),d(i,"onready")}function i(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,i=0,o=k.length;in)switch(k[i]){case"textNode":g(t);break;case"cdata":y(t,"oncdata",t.cdata),t.cdata="";break;case"script":y(t,"onscript",t.script),t.script="";break;default:m(t,"Max buffer length exceeded: "+k[i])}r=Math.max(r,a)}var s=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=s+t.position}function o(t){for(var e=0,n=k.length;e"===t||c(t)}function p(t,e){return t.test(e)}function h(t,e){return!p(t,e)}function d(t,e,n){t[e]&&t[e](n)}function y(t,e,n){t.textNode&&g(t),d(t,e,n)}function g(t){t.textNode=v(t.opt,t.textNode),t.textNode&&d(t,"ontext",t.textNode),t.textNode=""}function v(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function m(t,e){return g(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,d(t,"onerror",e),t}function b(t){return t.sawRoot&&!t.closedRoot&&w(t,"Unclosed root tag"),t.state!==z.BEGIN&&t.state!==z.BEGIN_WHITESPACE&&t.state!==z.TEXT&&m(t,"Unexpected end"),g(t),t.c="",t.closed=!0,d(t,"onend"),r.call(t,t.strict,t.opt),t}function w(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&m(t,e)}function _(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,y(t,"onopentagstart",n)}function x(t,e){var n=t.indexOf(":"),r=n<0?["",t]:t.split(":"),i=r[0],o=r[1];return e&&"xmlns"===t&&(i="xmlns",o=""),{prefix:i,local:o}}function E(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))return void(t.attribName=t.attribValue="");if(t.opt.xmlns){var e=x(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==L)w(t,"xml: prefix must be bound to "+L+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==B)w(t,"xmlns: prefix must be bound to "+B+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,y(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function T(t,e){if(t.opt.xmlns){var n=t.tag,r=x(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(w(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){y(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=z.SCRIPT);y(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;w(t,"Unexpected close tag")}if(e<0)return w(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=z.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,y(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];y(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=z.TEXT}function S(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),i=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),i=e.toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(w(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function C(t,e){"<"===e?(t.state=z.OPEN_WAKA,t.startTagPosition=t.position):c(e)||(w(t,"Non-whitespace before first tag."),t.textNode=e,t.state=z.TEXT)}function I(t,e){var n="";return e"===r?(y(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=z.TEXT):l(r)?(e.state=z.SGML_DECL_QUOTED,e.sgmlDecl+=r):e.sgmlDecl+=r;continue;case z.SGML_DECL_QUOTED:r===e.q&&(e.state=z.SGML_DECL,e.q=""),e.sgmlDecl+=r;continue;case z.DOCTYPE:">"===r?(e.state=z.TEXT,y(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=r,"["===r?e.state=z.DOCTYPE_DTD:l(r)&&(e.state=z.DOCTYPE_QUOTED,e.q=r));continue;case z.DOCTYPE_QUOTED:e.doctype+=r,r===e.q&&(e.q="",e.state=z.DOCTYPE);continue;case z.DOCTYPE_DTD:e.doctype+=r,"]"===r?e.state=z.DOCTYPE:l(r)&&(e.state=z.DOCTYPE_DTD_QUOTED,e.q=r);continue;case z.DOCTYPE_DTD_QUOTED:e.doctype+=r,r===e.q&&(e.state=z.DOCTYPE_DTD,e.q="");continue;case z.COMMENT:"-"===r?e.state=z.COMMENT_ENDING:e.comment+=r;continue;case z.COMMENT_ENDING:"-"===r?(e.state=z.COMMENT_ENDED,e.comment=v(e.opt,e.comment),e.comment&&y(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+r,e.state=z.COMMENT);continue;case z.COMMENT_ENDED:">"!==r?(w(e,"Malformed comment"),e.comment+="--"+r,e.state=z.COMMENT):e.state=z.TEXT;continue;case z.CDATA:"]"===r?e.state=z.CDATA_ENDING:e.cdata+=r;continue;case z.CDATA_ENDING:"]"===r?e.state=z.CDATA_ENDING_2:(e.cdata+="]"+r,e.state=z.CDATA);continue;case z.CDATA_ENDING_2:">"===r?(e.cdata&&y(e,"oncdata",e.cdata),y(e,"onclosecdata"),e.cdata="",e.state=z.TEXT):"]"===r?e.cdata+="]":(e.cdata+="]]"+r,e.state=z.CDATA);continue;case z.PROC_INST:"?"===r?e.state=z.PROC_INST_ENDING:c(r)?e.state=z.PROC_INST_BODY:e.procInstName+=r;continue;case z.PROC_INST_BODY:if(!e.procInstBody&&c(r))continue;"?"===r?e.state=z.PROC_INST_ENDING:e.procInstBody+=r;continue;case z.PROC_INST_ENDING:">"===r?(y(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=z.TEXT):(e.procInstBody+="?"+r,e.state=z.PROC_INST_BODY);continue;case z.OPEN_TAG:p(U,r)?e.tagName+=r:(_(e),">"===r?T(e):"/"===r?e.state=z.OPEN_TAG_SLASH:(c(r)||w(e,"Invalid character in tag name"),e.state=z.ATTRIB));continue;case z.OPEN_TAG_SLASH:">"===r?(T(e,!0),A(e)):(w(e,"Forward-slash in opening tag not followed by >"),e.state=z.ATTRIB);continue;case z.ATTRIB:if(c(r))continue;">"===r?T(e):"/"===r?e.state=z.OPEN_TAG_SLASH:p(M,r)?(e.attribName=r,e.attribValue="",e.state=z.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case z.ATTRIB_NAME:"="===r?e.state=z.ATTRIB_VALUE:">"===r?(w(e,"Attribute without value"),e.attribValue=e.attribName,E(e),T(e)):c(r)?e.state=z.ATTRIB_NAME_SAW_WHITE:p(U,r)?e.attribName+=r:w(e,"Invalid attribute name");continue;case z.ATTRIB_NAME_SAW_WHITE:if("="===r)e.state=z.ATTRIB_VALUE;else{if(c(r))continue;w(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",y(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===r?T(e):p(M,r)?(e.attribName=r,e.state=z.ATTRIB_NAME):(w(e,"Invalid attribute name"),e.state=z.ATTRIB)}continue;case z.ATTRIB_VALUE:if(c(r))continue;l(r)?(e.q=r,e.state=z.ATTRIB_VALUE_QUOTED):(w(e,"Unquoted attribute value"),e.state=z.ATTRIB_VALUE_UNQUOTED,e.attribValue=r);continue;case z.ATTRIB_VALUE_QUOTED:if(r!==e.q){"&"===r?e.state=z.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=r;continue}E(e),e.q="",e.state=z.ATTRIB_VALUE_CLOSED;continue;case z.ATTRIB_VALUE_CLOSED:c(r)?e.state=z.ATTRIB:">"===r?T(e):"/"===r?e.state=z.OPEN_TAG_SLASH:p(M,r)?(w(e,"No whitespace between attributes"),e.attribName=r,e.attribValue="",e.state=z.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case z.ATTRIB_VALUE_UNQUOTED:if(!f(r)){"&"===r?e.state=z.ATTRIB_VALUE_ENTITY_U:e.attribValue+=r;continue}E(e),">"===r?T(e):e.state=z.ATTRIB;continue;case z.CLOSE_TAG:if(e.tagName)">"===r?A(e):p(U,r)?e.tagName+=r:e.script?(e.script+=""===r?A(e):w(e,"Invalid characters in closing tag");continue;case z.TEXT_ENTITY:case z.ATTRIB_VALUE_ENTITY_Q:case z.ATTRIB_VALUE_ENTITY_U:var s,u;switch(e.state){case z.TEXT_ENTITY:s=z.TEXT,u="textNode";break;case z.ATTRIB_VALUE_ENTITY_Q:s=z.ATTRIB_VALUE_QUOTED,u="attribValue";break;case z.ATTRIB_VALUE_ENTITY_U:s=z.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===r?(e[u]+=S(e),e.entity="",e.state=s):p(e.entity.length?q:F,r)?e.entity+=r:(w(e,"Invalid character in entity name"),e[u]+="&"+e.entity+r,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}}return e.position>=e.bufferCheckPosition&&i(e),e}e.parser=function(t,e){return new r(t,e)},e.SAXParser=r,e.SAXStream=u,e.createStream=s,e.MAX_BUFFER_LENGTH=65536;var k=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),r.prototype={end:function(){b(this)},write:j,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var O;try{O=n(79).Stream}catch(t){O=function(){}}var R=e.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});u.prototype=Object.create(O.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var r=n(31).StringDecoder;this._decoder=new r("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===R.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),O.prototype.on.call(n,t,e)};var D="[CDATA[",P="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",N={xml:L,xmlns:B},M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,U=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,z=0;e.STATE={BEGIN:z++,BEGIN_WHITESPACE:z++,TEXT:z++,TEXT_ENTITY:z++,OPEN_WAKA:z++,SGML_DECL:z++,SGML_DECL_QUOTED:z++,DOCTYPE:z++,DOCTYPE_QUOTED:z++,DOCTYPE_DTD:z++,DOCTYPE_DTD_QUOTED:z++,COMMENT_STARTING:z++,COMMENT:z++,COMMENT_ENDING:z++,COMMENT_ENDED:z++,CDATA:z++,CDATA_ENDING:z++,CDATA_ENDING_2:z++,PROC_INST:z++,PROC_INST_BODY:z++,PROC_INST_ENDING:z++,OPEN_TAG:z++,OPEN_TAG_SLASH:z++,ATTRIB:z++,ATTRIB_NAME:z++,ATTRIB_NAME_SAW_WHITE:z++,ATTRIB_VALUE:z++,ATTRIB_VALUE_QUOTED:z++,ATTRIB_VALUE_CLOSED:z++,ATTRIB_VALUE_UNQUOTED:z++,ATTRIB_VALUE_ENTITY_Q:z++,ATTRIB_VALUE_ENTITY_U:z++,CLOSE_TAG:z++,CLOSE_TAG_SAW_WHITE:z++,SCRIPT:z++,SCRIPT_ENDING:z++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var H in e.STATE)e.STATE[e.STATE[H]]=H;z=e.STATE,/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ -String.fromCodePoint||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,r,i=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o1114111||e(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(o+1===a||i.length>16384)&&(s+=t.apply(null,i),i.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(e)}).call(e,n(9).Buffer)},function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n(16).EventEmitter;n(6)(r,i),r.Readable=n(28),r.Writable=n(85),r.Duplex=n(86),r.Transform=n(87),r.PassThrough=n(88),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){l||(l=!0,t.end())}function a(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var l=!1;return c.on("error",s),t.on("error",s),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(29).Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),p=!n&&!r&&!l&&c(t),h=n||r||l||p,d=h?i(t.length,String):[],y=d.length;for(var g in t)!e&&!f.call(t,g)||h&&("length"==g||l&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,y))||d.push(g);return d}var i=n(106),o=n(36),a=n(2),s=n(37),u=n(34),c=n(39),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n/))throw new Error("Invalid CDATA text: "+t);return this.assertLegalChar(t)},t.prototype.comment=function(t){if(t=""+t||"",t.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if(t=""+t||"",t.match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(t=""+t||"",!t.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(t=""+t||"",!t.match(/^[A-Za-z](?:[A-Za-z0-9._-]|-)*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,n;if(e=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,n=t.match(e))throw new Error("Invalid character ("+n+") in string: "+t+" at index "+n.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/-1}var i=n(23);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(23);t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(22);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){n(0),t.exports=function(){function t(t,e,n){if(this.stringify=t.stringify,null==e)throw new Error("Missing notation name");if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(8),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(8),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){function r(t,e){D.call(this,{Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,method:"HEAD"},function(t,n){if(t){var r=t.statusCode;return r&&404==r?e(null,{BucketExist:!1,BucketAuth:!1}):r&&403==r?e(null,{BucketExist:!0,BucketAuth:!1}):e(t)}return e(null,{BucketExist:!0,BucketAuth:!0})})}function i(t,e){var n={};n.prefix=t.Prefix,n.delimiter=t.Delimiter,n.marker=t.Marker,n["max-keys"]=t.MaxKeys,n["encoding-type"]=t.EncodingType,D.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,qs:n},function(t,n){if(t)return e(t);n=n||{};var r=n.ListBucketResult.Contents||[],i=n.ListBucketResult.CommonPrefixes||[];return r instanceof Array||(r=[r]),i instanceof Array||(i=[i]),n.ListBucketResult.Contents=r,n.ListBucketResult.CommonPrefixes=i,e(null,n.ListBucketResult||{})})}function o(t,e){D.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId},function(t,n){return t&&204!==t.statusCode?e(t):e(null,{DeleteBucketSuccess:!0})})}function a(t,e){D.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?acl"},function(t,n){if(t)return e(t);n=n||{};var r=n.AccessControlPolicy.AccessControlList.Grant||[];return r instanceof Array||(r=[r]),n.AccessControlPolicy.AccessControlList.Grant=r,e(null,n.AccessControlPolicy||{})})}function s(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,D.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?acl",headers:n},function(t,n){return t?e(t):e(null,{BucketGrantSuccess:!0})})}function u(t,e){D.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?cors"},function(t,n){if(t)return e(t);n=n||{},n.CORSConfiguration=n.CORSConfiguration||{};var r=n.CORSConfiguration.CORSRule||[];r instanceof Array||(r=[r]);for(var i=0,o=r.length;i-1&&(n[r]=t[r]);D.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0,body:t.Body,onProgress:t.onProgress},function(t,n){return t?e(t):(n=n||{},n&&n.headers&&n.headers.etag?e(null,{ETag:n.headers.etag}):e(null,n))})}function w(t,e){D.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key},function(t,n){if(t){var r=t.statusCode;return r&&204==r?e(null,{DeleteObjectSuccess:!0}):r&&404==r?e(null,{BucketNotFound:!0}):e(t)}return e(null,{DeleteObjectSuccess:!0})})}function _(t,e){D.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl"},function(t,n){if(t)return e(t);n=n||{};var r=n.AccessControlPolicy.AccessControlList.Grant||[];return r instanceof Array||(r=[r]),n.AccessControlPolicy.AccessControlList.Grant=r,e(null,n.AccessControlPolicy||{})})}function x(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,D.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl",headers:n,needHeaders:!0},function(t,n){return t?e(t):e(null,{PutObjectACLSuccess:!0})})}function E(t,e){var n={};n.Origin=t.Origin,n["Access-Control-Request-Method"]=t.AccessControlRequestMethod,n["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,D.call(this,{method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0},function(t,n){if(t)return t.statusCode&&403==t.statusCode?e(null,{OptionsForbidden:!0}):e(t);n=n||{};var r=n.headers||{},i={};return i.AccessControlAllowOrigin=r["access-control-allow-origin"],i.AccessControlAllowMethods=r["access-control-allow-methods"],i.AccessControlAllowHeaders=r["access-control-allow-headers"],i.AccessControlExposeHeaders=r["access-control-expose-headers"],i.AccessControlMaxAge=r["access-control-max-age"],e(null,i)})}function T(t,e){var n={};n["x-cos-copy-source"]=t.CopySource,n["x-cos-metadata-directive"]=t.MetadataDirective,n["x-cos-copy-source-If-Modified-Since"]=t.CopySourceIfModifiedSince,n["x-cos-copy-source-If-Unmodified-Since"]=t.CopySourceIfUnmodifiedSince,n["x-cos-copy-source-If-Match"]=t.CopySourceIfMatch,n["x-cos-copy-source-If-None-Match"]=t.CopySourceIfNoneMatch,n["x-cos-storage-class"]=t.StorageClass,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Type"]=t.ContentType,n.Expect=t.Expect,n.Expires=t.Expires;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);D.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0},function(t,n){return t?e(t):(n=n||{},e(null,n.CopyObjectResult||{}))})}function A(t,e){var n={};n["Content-Type"]="application/xml";var r=t.Objects||{},i=t.Quiet,o={Delete:{Object:r,Quiet:i||!1}},a=B.json2xml(o);D.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:a,action:"/?delete",headers:n,needHeaders:!0},function(t,n){if(t)return e(t);n=n||{};var r=n.DeleteResult.Deleted||[],i=n.DeleteResult.Error||[];return r instanceof Array||(r=[r]),i instanceof Array||(i=[i]),n.DeleteResult.Error=i,n.DeleteResult.Deleted=r,e(null,n.DeleteResult||{})})}function S(t,e){var n={};n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Type"]=t.ContentType,n.Expires=t.Expires,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["x-cos-storage-class"]=t.StorageClass;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);D.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?uploads",headers:n,needHeaders:!0},function(t,n){return t?e(t):(n=n||{},n&&n.InitiateMultipartUploadResult?e(null,n.InitiateMultipartUploadResult):e(null,n))})}function C(t,e){var n={};n.Expect=t.Expect;var r=t.PartNumber,i=t.UploadId,o="?partNumber="+r+"&uploadId="+i;D.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:o,headers:n,needHeaders:!0,body:t.Body||null,onProgress:t.onProgress},function(t,n){return t?e(t):(n=n||{},n.headers=n.headers||{},e(null,{ETag:n.headers.etag||""}))})}function I(t,e){var n={};n["Content-Type"]="application/xml";for(var r=t.UploadId,i="?uploadId="+r,o=t.Parts,a=0,s=o.length;a0&&c>u&&(c=u);for(var l=0;l=0?(f=y.substr(0,g),p=y.substr(g+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?i(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r0&&e-1 in t))}function e(t){var e=N[t]={};return I.each(t.match(B)||[],function(t,n){e[n]=!0}),e}function n(){P.addEventListener?(P.removeEventListener("DOMContentLoaded",r,!1),window.removeEventListener("load",r,!1)):(P.detachEvent("onreadystatechange",r),window.detachEvent("onload",r))}function r(){(P.addEventListener||"load"===event.type||"complete"===P.readyState)&&(n(),I.ready())}function i(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(q,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?I.parseJSON(n):n)}catch(t){}I.data(t,e,n)}else n=void 0}return n}function o(t){var e;for(e in t)if(("data"!==e||!I.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function a(t,e,n,r){if(I.acceptData(t)){var i,o,a=I.expando,s=t.nodeType,u=s?I.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=m.pop()||I.guid++:a),u[c]||(u[c]=s?{}:{toJSON:I.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=I.extend(u[c],e):u[c].data=I.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[I.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[I.camelCase(e)]):i=o,i}}function s(t,e,n){if(I.acceptData(t)){var r,i,a=t.nodeType,s=a?I.cache:t,u=a?t[I.expando]:I.expando;if(s[u]){if(e&&(r=n?s[u]:s[u].data)){I.isArray(e)?e=e.concat(I.map(e,I.camelCase)):e in r?e=[e]:(e=I.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!o(r):!I.isEmptyObject(r))return}(n||(delete s[u].data,o(s[u])))&&(a?I.cleanData([t],!0):S.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}function u(){return!0}function c(){return!1}function l(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(B)||[];if(I.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function f(t,e,n,r){function i(s){var u;return o[s]=!0,I.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===at;return i(e.dataTypes[0])||!o["*"]&&i("*")}function p(t,e){var n,r,i=I.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&I.extend(!0,t,n),t}function h(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function d(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function y(t,e,n,r){var i;if(I.isArray(e))I.each(e,function(e,i){n||ct.test(t)?r(t,i):y(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==I.type(e))r(t,e);else for(i in e)y(t+"["+i+"]",e[i],n,r)}function g(){try{return new window.XMLHttpRequest}catch(t){}}function v(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}var m=[],b=m.slice,w=m.concat,_=m.push,x=m.indexOf,E={},T=E.toString,A=E.hasOwnProperty,S={},C="1.11.1 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event-alias,-wrap",I=function(t,e){return new I.fn.init(t,e)},j=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,k=/^-ms-/,O=/-([\da-z])/gi,R=function(t,e){return e.toUpperCase()};I.fn=I.prototype={jquery:C,constructor:I,selector:"",length:0,toArray:function(){return b.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:b.call(this)},pushStack:function(t){var e=I.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return I.each(this,t,e)},map:function(t){return this.pushStack(I.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==I.type(t)||t.nodeType||I.isWindow(t))return!1;try{if(t.constructor&&!A.call(t,"constructor")&&!A.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(S.ownLast)for(e in t)return A.call(t,e);for(e in t);return void 0===e||A.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?E[T.call(t)]||"object":typeof t},globalEval:function(t){t&&I.trim(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(k,"ms-").replace(O,R)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(e,n,r){var i=0,o=e.length,a=t(e);if(r){if(a)for(;i)[^>]*|#([\w-]*))$/;(I.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:L.exec(t))||!n[1]&&e)return!e||e.jquery?(e||D).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof I?e[0]:e,I.merge(this,I.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:P,!0)),rsingleTag.test(n[1])&&I.isPlainObject(e))for(n in e)I.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=P.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return D.find(t);this.length=1,this[0]=r}return this.context=P,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):I.isFunction(t)?void 0!==D.ready?D.ready(t):t(I):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),I.makeArray(t,this))}).prototype=I.fn,D=I(P);var B=/\S+/g,N={};I.Callbacks=function(t){t="string"==typeof t?N[t]||e(t):I.extend({},t);var n,r,i,o,a,s,u=[],c=!t.once&&[],l=function(e){for(r=t.memory&&e,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&a-1;)u.splice(r,1),n&&(r<=o&&o--,r<=a&&a--)}),this},has:function(t){return t?I.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=c=r=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,r||f.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):l(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},I.extend({Deferred:function(t){var e=[["resolve","done",I.Callbacks("once memory"),"resolved"],["reject","fail",I.Callbacks("once memory"),"rejected"],["notify","progress",I.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return I.Deferred(function(n){I.each(e,function(e,o){var a=I.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&I.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?I.extend(t,r):r}},i={};return r.pipe=r.then,I.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=b.call(arguments),a=o.length,s=1!==a||t&&I.isFunction(t.promise)?a:0,u=1===s?t:I.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?b.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(M.resolveWith(P,[I]),I.fn.triggerHandler&&(I(P).triggerHandler("ready"),I(P).off("ready")))}}}),I.ready.promise=function(t){if(!M)if(M=I.Deferred(),"complete"===P.readyState)setTimeout(I.ready);else if(P.addEventListener)P.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1);else{P.attachEvent("onreadystatechange",r),window.attachEvent("onload",r);var e=!1;try{e=null==window.frameElement&&P.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!I.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}n(),I.ready()}}()}return M.promise(t)};var U;for(U in I(S))break;S.ownLast="0"!==U,S.inlineBlockNeedsLayout=!1,I(function(){var t,e,n,r;(n=P.getElementsByTagName("body")[0])&&n.style&&(e=P.createElement("div"),r=P.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",S.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=P.createElement("div");if(null==S.deleteExpando){S.deleteExpando=!0;try{delete t.test}catch(t){S.deleteExpando=!1}}t=null}(),I.acceptData=function(t){var e=I.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;I.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?I.cache[t[I.expando]]:t[I.expando])&&!o(t)},data:function(t,e,n){return a(t,e,n)},removeData:function(t,e){return s(t,e)},_data:function(t,e,n){return a(t,e,n,!0)},_removeData:function(t,e){return s(t,e,!0)}}),I.fn.extend({data:function(t,e){var n,r,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=I.data(a),1===a.nodeType&&!I._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=I.camelCase(r.slice(5)),i(a,r,o[r])));I._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){I.data(this,t)}):arguments.length>1?this.each(function(){I.data(this,t,e)}):a?i(a,t,I.data(a,t)):void 0},removeData:function(t){return this.each(function(){I.removeData(this,t)})}}),I.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=I._data(t,e),n&&(!r||I.isArray(n)?r=I._data(t,e,I.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=I.queue(t,e),r=n.length,i=n.shift(),o=I._queueHooks(t,e),a=function(){I.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return I._data(t,n)||I._data(t,n,{empty:I.Callbacks("once memory").add(function(){I._removeData(t,e+"queue"),I._removeData(t,n)})})}}),I.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length=0&&(h=p.split("."),p=h.shift(),h.sort()),o=p.indexOf(":")<0&&"on"+p,t=t[I.expando]?t:new I.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:I.makeArray(e,[t]),u=I.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!I.isWindow(n)){for(s=u.delegateType||p,W.test(s+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(n.ownerDocument||P)&&f.push(c.defaultView||c.parentWindow||window)}for(l=0;(a=f[l++])&&!t.isPropagationStopped();)t.type=l>1?s:u.bindType||p,i=(I._data(a,"events")||{})[t.type]&&I._data(a,"handle"),i&&i.apply(a,e),(i=o&&a[o])&&i.apply&&I.acceptData(a)&&(t.result=i.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),e))&&I.acceptData(n)&&o&&n[p]&&!I.isWindow(n)){c=n[o],c&&(n[o]=null),I.event.triggered=p;try{n[p]()}catch(t){}I.event.triggered=void 0,c&&(n[o]=c)}return t.result}},dispatch:function(t){t=I.event.fix(t);var e,n,r,i,o,a=[],s=b.call(arguments),u=(I._data(this,"events")||{})[t.type]||[],c=I.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=I.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((I.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o=0:I.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s0?4:0,i=t>=200&&t<300||304===t,n&&(w=h(p,T,n)),w=d(p,w,T,i),i?(p.ifModified&&(_=T.getResponseHeader("Last-Modified"),_&&(I.lastModified[o]=_),(_=T.getResponseHeader("etag"))&&(I.etag[o]=_)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=w.state,l=w.data,f=w.error,i=!f)):(f=E,!t&&E||(E="error",t<0&&(t=0))),T.status=t,T.statusText=(e||E)+"",i?v.resolveWith(y,[l,E,T]):v.rejectWith(y,[T,E,f]),T.statusCode(b),b=void 0,u&&g.trigger(i?"ajaxSuccess":"ajaxError",[T,p,i?l:f]),m.fireWith(y,[T,E]),u&&(g.trigger("ajaxComplete",[T,p]),--I.active||I.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,p=I.ajaxSetup({},e),y=p.context||p,g=p.context&&(y.nodeType||y.jquery)?I(y):I.event,v=I.Deferred(),m=I.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x=0,E="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!l)for(l={};e=tt.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=_[n]=_[n]||t,w[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)b[e]=[b[e],t[e]];else T.always(t[T.status]);return this},abort:function(t){var e=t||E;return c&&c.abort(e),n(0,e),this}};if(v.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,p.url=((t||p.url||Q)+"").replace(J,"").replace(rt,$[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=I.trim(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain&&(r=it.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===$[1]&&r[2]===$[2]&&(r[3]||("http:"===r[1]?"80":"443"))===($[3]||("http:"===$[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=I.param(p.data,p.traditional)),f(ot,p,e,T),2===x)return T;u=p.global,u&&0==I.active++&&I.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!nt.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(V.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Z.test(o)?o.replace(Z,"$1_="+G++):o+(V.test(o)?"&":"?")+"_="+G++)),p.ifModified&&(I.lastModified[o]&&T.setRequestHeader("If-Modified-Since",I.lastModified[o]),I.etag[o]&&T.setRequestHeader("If-None-Match",I.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&T.setRequestHeader("Content-Type",p.contentType);for(i in p.headers)T.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(y,T,p)||2===x))return T.abort();E="abort";for(i in{success:1,error:1,complete:1})T[i](p[i]);if(c=f(at,p,e,T)){T.readyState=1,u&&g.trigger("ajaxSend",[T,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){T.abort("timeout")},p.timeout));try{x=1,c.send(w,n)}catch(t){if(!(x<2))throw t;n(-1,t)}}else n(-1,"No Transport");return T},getJSON:function(t,e,n){return I.get(t,e,n,"json")},getScript:function(t,e){return I.get(t,void 0,e,"script")}}),I.each(["get","post"],function(t,e){I[e]=function(t,n,r,i){return I.isFunction(n)&&(i=i||r,r=n,n=void 0),I.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),I.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){I.fn[e]=function(t){return this.on(e,t)}}),I._evalUrl=function(t){return I.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};var ut=/%20/g,ct=/\[\]$/,lt=/\r?\n/g,ft=/^(?:submit|button|image|reset|file)$/i,pt=/^(?:input|select|textarea|keygen)/i;I.param=function(t,e){var n,r=[],i=function(t,e){e=I.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=I.ajaxSettings&&I.ajaxSettings.traditional),I.isArray(t)||t.jquery&&!I.isPlainObject(t))I.each(t,function(){i(this.name,this.value)});else for(n in t)y(n,t[n],e,i);return r.join("&").replace(ut,"+")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=I.prop(this,"elements");return t?I.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!I(this).is(":disabled")&&pt.test(this.nodeName)&&!ft.test(t)&&(this.checked||!rcheckableType.test(t))}).map(function(t,e){var n=I(this).val();return null==n?null:I.isArray(n)?I.map(n,function(t){return{name:e.name,value:t.replace(lt,"\r\n")}}):{name:e.name,value:n.replace(lt,"\r\n")}}).get()}}),I.ajaxSettings.xhr=void 0!==window.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&g()||v()}:g;var ht=0,dt={},yt=I.ajaxSettings.xhr();window.ActiveXObject&&I(window).on("unload",function(){for(var t in dt)dt[t](void 0,!0)}),S.cors=!!yt&&"withCredentials"in yt,yt=S.ajax=!!yt,yt&&I.ajaxTransport(function(t){if(!t.crossDomain||S.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++ht;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.upload&&t.progress&&(o.upload.onprogress=t.progress),o.send(t.hasContent&&(t.body||t.data)||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete dt[a],e=void 0,o.onreadystatechange=I.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=dt[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return I.globalEval(t),t}}}),I.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),I.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=P.head||I("head")[0]||P.documentElement;return{send:function(r,i){e=P.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var gt=[],vt=/(=)\?(?=&|$)|\?\?/;return I.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=gt.pop()||I.expando+"_"+G++;return this[t]=!0,t}}),I.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(vt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=I.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(vt,"$1"+r):!1!==t.jsonp&&(t.url+=(V.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||I.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=window[r],window[r]=function(){o=arguments},n.always(function(){window[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,gt.push(r)),o&&I.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),I.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||P;var r=rsingleTag.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=I.buildFragment([t],e,i),i&&i.length&&I(i).remove(),I.merge([],r.childNodes))},I}(),o=function(t,e){if(t=i.extend(!0,{headers:{},qs:{}},t),t.type=t.method,delete t.method,t.onProgress&&(t.progress=t.onProgress,delete t.onProgress),t.qs){var n=r.stringify(t.qs);n&&(t.url+=(-1===t.url.indexOf("?")?"?":"&")+n),delete t.qs}if(t.json&&(t.data=JSON.stringify(t.json),delete t.json,t.headers["Content-Type"]="application/json"),t.body&&t.body.constructor!==window.File&&t.body.constructor!==window.Blob&&(t.data=t.body,delete t.body),t.headers){var o=t.headers;delete t.headers,t.beforeSend=function(t){for(var e in o)o.hasOwnProperty(e)&&"content-length"!==e.toLowerCase()&&"user-agent"!==e.toLowerCase()&&"origin"!==e.toLowerCase()&&"host"!==e.toLowerCase()&&t.setRequestHeader(e,o[e])}}var a=function(t){var e={};return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){if(t){var n=t.indexOf(":"),r=t.substr(0,n).trim().toLowerCase(),i=t.substr(n+1).trim();e[r]=i}}),{statusCode:t.status,statusMessage:t.statusText,headers:e}};t.success=function(t,n,r){e(null,a(r),t)},t.error=function(t){e(t.statusText,a(t),t.responseText)},t.dataType="text",i.ajax(t)};t.exports=o},function(t,e,n){"use strict";e.decode=e.parse=n(203),e.encode=e.stringify=n(204)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),r(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,i){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(i){var o=encodeURIComponent(r(i))+n;return Array.isArray(t[i])?t[i].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[i]))}).join(e):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(t)):""}},function(t,e,n){function r(t,e){var n,r,o=new h,a=t.Bucket,u=t.Region,l=t.Key,f=t.Body,p=t.SliceSize||y,d=t.AsyncLimit||1,g=t.StorageClass||"Standard",v=this,m=t.onProgress,b=t.onHashProgress;o.all("error",function(t){return e(t)}),o.all("upload_complete",function(t){e(null,t)}),o.all("upload_slice_complete",function(t){c.call(v,{Bucket:a,Region:u,Key:l,UploadId:t.UploadId,SliceList:t.SliceList},function(t,e){if(t)return o.emit("error",t);o.emit("upload_complete",e)})}),o.all("get_upload_data_finish",function(t){var e={};t.PartList.forEach(function(t){e[t.PartNumber]=t});for(var i=[],c=1;c<=n;c++){var h=e[c];i.push({PartNumber:c,ETag:h?h.ETag:"",Uploaded:!!h})}s.call(v,{Bucket:a,Region:u,Key:l,Body:f,FileSize:r,SliceSize:p,AsyncLimit:d,UploadId:t.UploadId,SliceList:i,onProgress:m},function(t,e){if(t)return o.emit("error",t);o.emit("upload_slice_complete",e)})}),o.all("get_file_size_finish",function(){i.call(v,{Bucket:a,Region:u,Key:l,StorageClass:g,Body:f,FileSize:r,SliceSize:p,onHashProgress:b},function(t,e){if(t)return o.emit("error",t);o.emit("get_upload_data_finish",e)})}),r=f.size,n=Math.ceil(r/p),o.emit("get_file_size_finish")}function i(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=(t.StorageClass,this),s={},u=t.FileSize,c=t.SliceSize,l=Math.ceil(u/c),f=0,y=0,g=0,v=0,m=0,b=function(e){var n=function(){g=0;var e=Date.now(),n=parseInt((y-m)/(e-v)*100)/100||0,r=parseInt(f/l*100)/100||0;if(v=e,m=y,t.onHashProgress&&"function"==typeof t.onHashProgress)try{t.onHashProgress({loaded:y,total:u,speed:n,percent:r})}catch(t){}};if(e)g&&(clearTimeout(g),g=0,n());else{if(g)return;setTimeout(n,100)}},w=function(e,n,r){if(s[n])return s[n];var i=c*(n-1),o=Math.min(i+c,u),a=o-i,l=d.fileSlice.call(t.Body,i,o);("sha1"===e?d.getFileSHA:d.getFileMd5)(l,function(t,e){if(t)return r(t,"");var i='"'+e+'"';s[n]=i,f+=1,y+=a,r(t,{PartNumber:n,ETag:i,Size:a}),b()})},_=function(t,e){var n=t.length;if(0===n)return e(null,!0);if(n>l)return e(null,!1);if(n>1){if(Math.max(t[0].Size,t[1].Size)!==c)return e(null,!1)}var r=function(i){if(i=d?a%s||s:s),!t.Uploaded}),m=function(){var t,e=Date.now(),n=y,r=function(){if(t=0,h&&"function"==typeof h){var r=Date.now(),i=parseInt((y-n)/(r-e)*100)/100||0,o=parseInt(y/a*100)/100||0;e=r,n=y;try{h({loaded:y,total:a,speed:i,percent:o})}catch(t){}}};return function(e){if(e)clearTimeout(t),r();else{if(t)return;t=setTimeout(r,100)}}}();p.mapLimit(v,c,function(t,e){var c=t.PartNumber,p=(t.ETag,Math.min(a,t.PartNumber*s)-(t.PartNumber-1)*s),h=0;u.call(g,{Bucket:n,Region:r,Key:i,SliceSize:s,FileSize:a,PartNumber:c,UploadId:o,Body:f,SliceList:l,onProgress:function(t){y+=t.loaded-h,h=t.loaded,m()}},function(n,r){n?y-=h:(y+=p-h,t.ETag=r.ETag),m(!0),e(n||null,r)})},function(t,n){if(t)return e(t);e(null,{datas:n,UploadId:o,SliceList:l})})}function u(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.FileSize,s=t.Body,u=1*t.PartNumber,c=t.SliceSize,l=t.SliceList,f=this,h=c*(u-1),y=c,g=h+c;g>a&&(g=a,y=g-h);var v=d.fileSlice.call(s,h,g),m=l[1*u-1].ETag;p.retry(3,function(e){f.multipartUpload({Bucket:n,Region:r,Key:i,ContentLength:y,ContentSha1:m,PartNumber:u,UploadId:o,Body:v,onProgress:t.onProgress},function(t,n){return t?e(t):e(null,n)})},function(t,n){return e(t,n)})}function c(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.SliceList,s=this,u=a.map(function(t){return{PartNumber:t.PartNumber,ETag:t.ETag}});s.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:o,Parts:u},function(t,n){if(t)return e(t);e(null,n)})}function l(t,e){var n=t.Bucket,r=t.Region,i=t.Key,a=t.UploadId,s=t.Level||"task",u=t.AsyncLimit||1,c=this,l=new h;if(l.all("error",function(t){return e(t)}),l.all("get_abort_array",function(t){f.call(c,{Bucket:n,Region:r,Key:i,AsyncLimit:u,AbortArray:t},function(t,n){if(t)return e(t);e(null,n)})}),"task"===s){if(!a)return e("abort_upload_task_no_id");if(!i)return e("abort_upload_task_no_key");l.emit("get_abort_array",[{Key:i,UploadId:a}])}else if("file"===s){if(!i)return e("abort_upload_task_no_key");o.call(c,{Bucket:n,Region:r,Key:i},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])})}else o.call(c,{Bucket:n,Region:r},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])})}function f(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.AbortArray,a=t.AsyncLimit,s=this;p.mapLimit(o,a,function(t,e){if(i&&i!=t.Key)return e(null,{KeyNotMatch:!0});var o=t.UploadId||t.UploadID;s.multipartAbort({Bucket:n,Region:r,Key:t.Key,UploadId:o},function(i,a){var s={Bucket:n,Region:r,Key:t.Key,UploadId:o};return i?e(null,{error:i,task:s}):e(null,{error:!1,task:s})})},function(t,n){if(t)return e(t);for(var r=[],i=[],o=0,a=n.length;o-1&&t%1==0&&t<=Ie}function w(t){return null!=t&&b(t.length)&&!m(t)}function _(){}function x(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function E(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&ti?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=r?t:tt(t,e,n)}function nt(t,e){for(var n=t.length;n--&&$(e,t[n],0)>-1;);return n}function rt(t,e){for(var n=-1,r=t.length;++n-1;);return n}function it(t){return t.split("")}function ot(t){return _n.test(t)}function at(t){return t.match(kn)||[]}function st(t){return ot(t)?at(t):it(t)}function ut(t){return null==t?"":Z(t)}function ct(t,e,n){if((t=ut(t))&&(n||void 0===e))return t.replace(On,"");if(!t||!(e=Z(e)))return t;var r=st(t),i=st(e);return et(r,rt(r,i),nt(r,i)+1).join("")}function lt(t){return t=t.toString().replace(Ln,""),t=t.match(Rn)[2].replace(" ",""),t=t?t.split(Dn):[],t=t.map(function(t){return ct(t.replace(Pn,""))})}function ft(t,e){var n={};Y(t,function(t,e){function r(e,n){var r=Q(i,function(t){return e[t]});r.push(n),h(t).apply(null,r)}var i,o=p(t),a=!o&&1===t.length||o&&0===t.length;if(Ne(t))i=t.slice(0,-1),t=t[t.length-1],n[e]=i.concat(i.length>0?r:t);else if(a)n[e]=t;else{if(i=lt(t),0===t.length&&!o&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");o||i.pop(),n[e]=i.concat(r)}}),gn(n,e)}function pt(){this.head=this.tail=null,this.length=0}function ht(t,e){t.length=1,t.head=t.tail=e}function dt(t,e,n){function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(c.started=!0,Ne(t)||(t=[t]),0===t.length&&c.idle())return ce(function(){c.drain()});for(var r=0,i=t.length;r=0&&s.splice(o,1),i.callback.apply(i,arguments),null!=e&&c.error(e,i.data)}a<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var o=h(t),a=0,s=[],u=!1,c={_tasks:new pt,concurrency:e,payload:n,saturated:_,unsaturated:_,buffer:e/4,empty:_,drain:_,error:_,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){c.drain=_,c._tasks.empty()},unshift:function(t,e){r(t,!0,e)},remove:function(t){c._tasks.remove(t)},process:function(){if(!u){for(u=!0;!c.paused&&a2&&(i=o(arguments,1)),r[e]=i,n(t)})},function(t){n(t,r)})}function Ft(t,e){Ut(un,t,e)}function qt(t,e,n){Ut(M(e),t,n)}function zt(t,e){if(e=x(e||_),!Ne(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;nr?1:0}var i=h(e);cn(t,function(t,e){i(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Q(e.sort(r),Ot("value")))})}function Qt(t,e,n){var r=h(t);return ae(function(i,o){function a(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),u=!0,o(r)}var s,u=!1;i.push(function(){u||(o.apply(null,arguments),clearTimeout(s))}),s=setTimeout(a,e),r.apply(null,i)})}function Jt(t,e,n,r){for(var i=-1,o=mr(vr((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function Zt(t,e,n,r){var i=h(n);fn(Jt(0,t,1),e,i,r)}function te(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=Ne(t)?[]:{}),r=x(r||_);var i=h(n);un(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function ee(t,e){var n,r=null;e=e||_,Vn(t,function(t,e){h(t)(function(t,i){n=arguments.length>2?o(arguments,1):i,r=t,e(!t)})},function(){e(r,n)})}function ne(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function re(t,e,n){n=N(n||_);var r=h(e);if(!t())return n(null);var i=function(e){if(e)return n(e);if(t())return r(i);var a=o(arguments,1);n.apply(null,[null].concat(a))};r(i)}function ie(t,e,n){re(function(){return!t.apply(this,arguments)},e,n)}var oe,ae=function(t){return function(){var e=o(arguments),n=e.pop();t.call(this,e,n)}},se="function"==typeof t&&t,ue="object"==typeof n&&"function"==typeof n.nextTick;oe=se?t:ue?n.nextTick:s;var ce=u(oe),le="function"==typeof Symbol,fe="object"==typeof r&&r&&r.Object===Object&&r,pe="object"==typeof self&&self&&self.Object===Object&&self,he=fe||pe||Function("return this")(),de=he.Symbol,ye=Object.prototype,ge=ye.hasOwnProperty,ve=ye.toString,me=de?de.toStringTag:void 0,be=Object.prototype,we=be.toString,_e="[object Null]",xe="[object Undefined]",Ee=de?de.toStringTag:void 0,Te="[object AsyncFunction]",Ae="[object Function]",Se="[object GeneratorFunction]",Ce="[object Proxy]",Ie=9007199254740991,je={},ke="function"==typeof Symbol&&Symbol.iterator,Oe=function(t){return ke&&t[ke]&&t[ke]()},Re="[object Arguments]",De=Object.prototype,Pe=De.hasOwnProperty,Le=De.propertyIsEnumerable,Be=A(function(){return arguments}())?A:function(t){return T(t)&&Pe.call(t,"callee")&&!Le.call(t,"callee")},Ne=Array.isArray,Me="object"==typeof e&&e&&!e.nodeType&&e,Ue=Me&&"object"==typeof i&&i&&!i.nodeType&&i,Fe=Ue&&Ue.exports===Me,qe=Fe?he.Buffer:void 0,ze=qe?qe.isBuffer:void 0,He=ze||S,Ke=9007199254740991,We=/^(?:0|[1-9]\d*)$/,Ye={};Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Arguments]"]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object Boolean]"]=Ye["[object DataView]"]=Ye["[object Date]"]=Ye["[object Error]"]=Ye["[object Function]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye["[object Object]"]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object WeakMap]"]=!1;var Ge="object"==typeof e&&e&&!e.nodeType&&e,Ve=Ge&&"object"==typeof i&&i&&!i.nodeType&&i,Xe=Ve&&Ve.exports===Ge,$e=Xe&&fe.process,Qe=function(){try{return $e&&$e.binding("util")}catch(t){}}(),Je=Qe&&Qe.isTypedArray,Ze=Je?function(t){return function(e){return t(e)}}(Je):I,tn=Object.prototype,en=tn.hasOwnProperty,nn=Object.prototype,rn=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),on=Object.prototype,an=on.hasOwnProperty,sn=F(U,1/0),un=function(t,e,n){(w(t)?q:sn)(t,h(e),n)},cn=z(H),ln=d(cn),fn=K(H),pn=F(fn,1),hn=d(pn),dn=function(t){var e=o(arguments,1);return function(){var n=o(arguments);return t.apply(null,e.concat(n))}},yn=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}(),gn=function(t,e,n){function r(t,e){v.push(function(){u(t,e)})}function i(){if(0===v.length&&0===d)return n(null,p);for(;v.length&&d2&&(r=o(arguments,1)),e){var i={};Y(p,function(t,e){i[e]=t}),i[t]=r,y=!0,g=Object.create(null),n(e,i)}else p[t]=r,s(t)});d++;var i=h(e[e.length-1]);e.length>1?i(p,r):i(r)}}function c(e){var n=[];return Y(t,function(t,r){Ne(t)&&$(t,e,0)>=0&&n.push(r)}),n}"function"==typeof e&&(n=e,e=null),n=x(n||_);var l=R(t),f=l.length;if(!f)return n(null);e||(e=f);var p={},d=0,y=!1,g=Object.create(null),v=[],m=[],b={};Y(t,function(e,n){if(!Ne(e))return r(n,[e]),void m.push(n);var i=e.slice(0,e.length-1),o=i.length;if(0===o)return r(n,e),void m.push(n);b[n]=o,W(i,function(s){if(!t[s])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+s+"` in "+i.join(", "));a(s,function(){0===--o&&r(n,e)})})}),function(){for(var t,e=0;m.length;)t=m.pop(),e++,W(c(t),function(t){0==--b[t]&&m.push(t)});if(e!==f)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),i()},vn="[object Symbol]",mn=1/0,bn=de?de.prototype:void 0,wn=bn?bn.toString:void 0,_n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),xn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",En="\\ud83c[\\udffb-\\udfff]",Tn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",Cn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Tn,An].join("|")+")[\\ufe0e\\ufe0f]?"+Sn+")*",In="[\\ufe0e\\ufe0f]?"+Sn+Cn,jn="(?:"+["[^\\ud800-\\udfff]"+xn+"?",xn,Tn,An,"[\\ud800-\\udfff]"].join("|")+")",kn=RegExp(En+"(?="+En+")|"+jn+In,"g"),On=/^\s+|\s+$/g,Rn=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Dn=/,/,Pn=/(=.+)?(\s*)$/,Ln=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},pt.prototype.empty=function(){for(;this.head;)this.shift();return this},pt.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},pt.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},pt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ht(this,t)},pt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ht(this,t)},pt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pt.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,n=0;n=i.priority;)i=i.next;for(var o=0,a=t.length;o0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){L(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a1)for(var n=1;n0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(82),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==s||e==u||e==a||e==c}var i=n(12),o=n(1),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(3),i=r.Symbol;t.exports=i},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1||"deleteMultipleObject"===t||"multipartList"===t?n&&r:!(t.indexOf("Object")>-1||t.indexOf("multipart")>-1||"sliceUploadFile"===t||"abortUploadTask"===t)||n&&r&&i},x=function(t,e){var n={gz:"cn-south",tj:"cn-north",sh:"cn-east",cd:"cn-southwest"};return function(r,i){if(i=i||function(){},"getService"!==t&&"abortUploadTask"!==t){if(!_(t,r))return void i({error:"lack of required params"});if(r.Key&&0===r.Key.indexOf("/"))return void i({error:'params Key can not start width "/"'});if(r.Region&&n[r.Region])return void i({error:"Region error, it should be "+n[r.Region]});var o,a=r.Bucket;if(a&&a.indexOf("-")>-1){var s=a.split("-");o=s[1],a=s[0],r.AppId=o,r.Bucket=a}}var u=e.call(this,r,i);return"getAuth"===t?u:void 0}},E=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,A={apiWrapper:x,getAuth:h,xml2json:d,json2xml:y,md5:u,clearKey:g,getFileSHA:m,getFileMd5:b,extend:i,isArray:o,each:a,map:s,clone:r,binaryBase64:w,fileSlice:E};t.exports=A}).call(e,n(6).Buffer)},function(t,e,n){e=t.exports=n(45),e.Stream=e,e.Readable=e,e.Writable=n(30),e.Duplex=n(4),e.Transform=n(48),e.PassThrough=n(84)},function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return a(t,e,n)}var o=n(6),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=i),r(a,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=a(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){S(e,t)}}function o(t){return D.from(t)}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)||D.isBuffer(t)}function s(){}function u(t,e){I=I||n(4),t=t||{},this.objectMode=!!t.objectMode,e instanceof I&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){v(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function c(t){if(I=I||n(4),!(L.call(c,this)||this instanceof I))return new c(t);this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),O.call(this)}function l(t,e){var n=new Error("write after end");t.emit("error",n),C(e,n)}function f(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),C(r,o),i=!1),i}function p(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=D.from(e,n)),e}function h(t,e,n,r,i,o){if(!n){var a=p(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length-1?r:C;c.WritableState=u;var j=n(11);j.inherits=n(7);var R={deprecate:n(83)},O=n(46),D=n(29).Buffer,P=n(47);j.inherits(c,O),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var L;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!L.call(this,t)||t&&t._writableState instanceof u}})):L=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var r=this._writableState,i=!1,u=a(t)&&!r.objectMode;return u&&!D.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),u?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=s),r.ended?l(this,n):(u||f(this,r,t,n))&&(r.pendingcb++,i=h(this,r,u,t,e,n)),i},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||T(this,r,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=P.destroy,c.prototype._undestroy=P.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(8),n(18).setImmediate)},function(t,e,n){function r(t){if(t&&!u(t))throw new Error("Unknown encoding: "+t)}function i(t){return t.toString(this.encoding)}function o(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function a(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var s=n(6).Buffer,u=s.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),r(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),e+=t.toString(this.encoding,0,i);var i=e.length-1,r=e.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},c.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},c.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||i.test(t))&&t>-1&&t%1==0&&t0?("string"==typeof e||Object.getPrototypeOf(e)===B.prototype||a.objectMode||(e=r(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?c(t,a,e,!1):v(t,a)):c(t,a,e,!1))):i||(a.reading=!1)}return f(a)}function c(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&y(t)),v(t,e)}function l(t,e){var n;return i(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(t){return!t.ended&&(t.needReadable||t.length=K?t=K:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function d(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,y(t)}}function y(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(U("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?R(g,t):g(t))}function g(t){U("emit readable"),t.emit("readable"),E(t)}function v(t,e){e.readingMore||(e.readingMore=!0,R(m,t,e))}function m(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=T(t,e.buffer,e.decoder),n}function T(t,e,n){var r;return to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}function C(t,e){var n=B.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,R(k,e,t))}function k(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return U("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):y(this),null;if(0===(t=h(t,e))&&e.ended)return 0===e.length&&I(this),null;var r=e.needReadable;U("need readable",r),(0===e.length||e.length-t0?A(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==i&&this.emit("data",i),i},s.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(t,n){function r(t,e){U("onunpipe"),t===p&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,a())}function i(){U("onend"),t.end()}function a(){U("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",g),t.removeListener("error",u),t.removeListener("unpipe",r),p.removeListener("end",i),p.removeListener("end",f),p.removeListener("data",s),v=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function s(e){U("ondata"),m=!1,!1!==t.write(e)||m||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==j(h.pipes,t))&&!v&&(U("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,m=!0),p.pause())}function u(e){U("onerror",e),f(),t.removeListener("error",u),0===P(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){U("onfinish"),t.removeListener("close",c),f()}function f(){U("unpipe"),p.unpipe(t)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,U("pipe count=%d opts=%j",h.pipesCount,n);var d=(!n||!1!==n.end)&&t!==e.stdout&&t!==e.stderr,y=d?i:f;h.endEmitted?R(y):p.once("end",y),t.on("unpipe",r);var g=b(p);t.on("drain",g);var v=!1,m=!1;return p.on("data",s),o(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",p),h.flowing||(U("pipe resume"),p.resume()),t},s.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o",y&&(g+=h);else if(y&&1===this.children.length&&null!=this.children[0].value)g+=">",g+=this.children[0].value,g+="",g+=h;else{for(g+=">",y&&(g+=h),x=this.children,u=0,f=x.length;u",y&&(g+=h)}return g},n.prototype.att=function(t,e){return this.attribute(t,e)},n.prototype.ins=function(t,e){return this.instruction(t,e)},n.prototype.a=function(t,e){return this.attribute(t,e)},n.prototype.i=function(t,e){return this.instruction(t,e)},n}(r)}).call(this)},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(22),o=n(139),a=n(140),s=n(141),u=n(142),c=n(143);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){function r(t,e,n,a,s){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!==t&&e!==e:i(t,e,n,a,r,s))}var i=n(156),o=n(15);t.exports=r},function(t,e,n){function r(t,e,n,r,c,l){var f=n&s,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,g=!0,v=n&u?new i:void 0;for(l.set(t,e),l.set(e,t);++y",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(9),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c;n(0),c=n(1),e=n(68),r=n(69),i=n(189),a=n(190),o=n(191),s=n(192),u=n(67),t.exports=function(){function t(t,e,n){var r,i;this.documentObject=t,this.stringify=this.documentObject.stringify,this.children=[],c(e)&&(r=e,e=r.pubID,n=r.sysID),null==n&&(i=[e,n],n=i[0],e=i[1]),null!=e&&(this.pubID=this.stringify.dtdPubID(e)),null!=n&&(this.sysID=this.stringify.dtdSysID(n))}return t.prototype.element=function(t,e){var n;return n=new o(this,t,e),this.children.push(n),this},t.prototype.attList=function(t,e,n,r,o){var a;return a=new i(this,t,e,n,r,o),this.children.push(a),this},t.prototype.entity=function(t,e){var n;return n=new a(this,!1,t,e),this.children.push(n),this},t.prototype.pEntity=function(t,e){var n;return n=new a(this,!0,t,e),this.children.push(n),this},t.prototype.notation=function(t,e){var n;return n=new s(this,t,e),this.children.push(n),this},t.prototype.cdata=function(t){var n;return n=new e(this,t),this.children.push(n),this},t.prototype.comment=function(t){var e;return e=new r(this,t),this.children.push(e),this},t.prototype.instruction=function(t,e){var n;return n=new u(this,t,e),this.children.push(n),this},t.prototype.root=function(){return this.documentObject.root()},t.prototype.document=function(){return this.documentObject},t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l,f,p,h,d;if(u=(null!=t?t.pretty:void 0)||!1,i=null!=(l=null!=t?t.indent:void 0)?l:" ",s=null!=(f=null!=t?t.offset:void 0)?f:0,a=null!=(p=null!=t?t.newline:void 0)?p:"\n",e||(e=0),d=new Array(e+s+1).join(i),c="",u&&(c+=d),c+="0){for(c+=" [",u&&(c+=a),h=this.children,r=0,o=h.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s=t.length;o=r(t),a=new f(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,n){for(var r,i=[],o=e;ou?u:a+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h>1,l=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=d,a/=256,c-=8);t[n+h-d]|=128*y}},function(t,e){var n=function(t){function e(t,e){return t<>>32-e}function n(t,e){var n,r,i,o,a;return i=2147483648&t,o=2147483648&e,n=1073741824&t,r=1073741824&e,a=(1073741823&t)+(1073741823&e),n&r?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function r(t,e,n){return t&e|~t&n}function i(t,e,n){return t&n|e&~n}function o(t,e,n){return t^e^n}function a(t,e,n){return e^(t|~n)}function s(t,i,o,a,s,u,c){return t=n(t,n(n(r(i,o,a),s),c)),n(e(t,u),i)}function u(t,r,o,a,s,u,c){return t=n(t,n(n(i(r,o,a),s),c)),n(e(t,u),r)}function c(t,r,i,a,s,u,c){return t=n(t,n(n(o(r,i,a),s),c)),n(e(t,u),r)}function l(t,r,i,o,s,u,c){return t=n(t,n(n(a(r,i,o),s),c)),n(e(t,u),r)}function f(t){var e,n,r="",i="";for(n=0;n<=3;n++)e=t>>>8*n&255,i="0"+e.toString(16),r+=i.substr(i.length-2,2);return r}var p,h,d,y,g,v,m,b,w,_=Array();for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t),_=function(t){for(var e,n=t.length,r=n+8,i=(r-r%64)/64,o=16*(i+1),a=Array(o-1),s=0,u=0;u>>29,a}(t),v=1732584193,m=4023233417,b=2562383102,w=271733878,p=0;p<_.length;p+=16)h=v,d=m,y=b,g=w,v=s(v,m,b,w,_[p+0],7,3614090360),w=s(w,v,m,b,_[p+1],12,3905402710),b=s(b,w,v,m,_[p+2],17,606105819),m=s(m,b,w,v,_[p+3],22,3250441966),v=s(v,m,b,w,_[p+4],7,4118548399),w=s(w,v,m,b,_[p+5],12,1200080426),b=s(b,w,v,m,_[p+6],17,2821735955),m=s(m,b,w,v,_[p+7],22,4249261313),v=s(v,m,b,w,_[p+8],7,1770035416),w=s(w,v,m,b,_[p+9],12,2336552879),b=s(b,w,v,m,_[p+10],17,4294925233),m=s(m,b,w,v,_[p+11],22,2304563134),v=s(v,m,b,w,_[p+12],7,1804603682),w=s(w,v,m,b,_[p+13],12,4254626195),b=s(b,w,v,m,_[p+14],17,2792965006),m=s(m,b,w,v,_[p+15],22,1236535329),v=u(v,m,b,w,_[p+1],5,4129170786),w=u(w,v,m,b,_[p+6],9,3225465664),b=u(b,w,v,m,_[p+11],14,643717713),m=u(m,b,w,v,_[p+0],20,3921069994),v=u(v,m,b,w,_[p+5],5,3593408605),w=u(w,v,m,b,_[p+10],9,38016083),b=u(b,w,v,m,_[p+15],14,3634488961),m=u(m,b,w,v,_[p+4],20,3889429448),v=u(v,m,b,w,_[p+9],5,568446438),w=u(w,v,m,b,_[p+14],9,3275163606),b=u(b,w,v,m,_[p+3],14,4107603335),m=u(m,b,w,v,_[p+8],20,1163531501),v=u(v,m,b,w,_[p+13],5,2850285829),w=u(w,v,m,b,_[p+2],9,4243563512),b=u(b,w,v,m,_[p+7],14,1735328473),m=u(m,b,w,v,_[p+12],20,2368359562),v=c(v,m,b,w,_[p+5],4,4294588738),w=c(w,v,m,b,_[p+8],11,2272392833),b=c(b,w,v,m,_[p+11],16,1839030562),m=c(m,b,w,v,_[p+14],23,4259657740),v=c(v,m,b,w,_[p+1],4,2763975236),w=c(w,v,m,b,_[p+4],11,1272893353),b=c(b,w,v,m,_[p+7],16,4139469664),m=c(m,b,w,v,_[p+10],23,3200236656),v=c(v,m,b,w,_[p+13],4,681279174),w=c(w,v,m,b,_[p+0],11,3936430074),b=c(b,w,v,m,_[p+3],16,3572445317),m=c(m,b,w,v,_[p+6],23,76029189),v=c(v,m,b,w,_[p+9],4,3654602809),w=c(w,v,m,b,_[p+12],11,3873151461),b=c(b,w,v,m,_[p+15],16,530742520),m=c(m,b,w,v,_[p+2],23,3299628645),v=l(v,m,b,w,_[p+0],6,4096336452),w=l(w,v,m,b,_[p+7],10,1126891415),b=l(b,w,v,m,_[p+14],15,2878612391),m=l(m,b,w,v,_[p+5],21,4237533241),v=l(v,m,b,w,_[p+12],6,1700485571),w=l(w,v,m,b,_[p+3],10,2399980690),b=l(b,w,v,m,_[p+10],15,4293915773),m=l(m,b,w,v,_[p+1],21,2240044497),v=l(v,m,b,w,_[p+8],6,1873313359),w=l(w,v,m,b,_[p+15],10,4264355552),b=l(b,w,v,m,_[p+6],15,2734768916),m=l(m,b,w,v,_[p+13],21,1309151649),v=l(v,m,b,w,_[p+4],6,4149444226),w=l(w,v,m,b,_[p+11],10,3174756917),b=l(b,w,v,m,_[p+2],15,718787259),m=l(m,b,w,v,_[p+9],21,3951481745),v=n(v,h),m=n(m,d),b=n(b,y),w=n(w,g);return(f(v)+f(m)+f(b)+f(w)).toLowerCase()};t.exports=n},function(t,e,n){var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0);if(e=s*o,i=t.min(4*e,i),e){for(var u=0;uc;c++){if(16>c)o[c]=0|t[e+c];else{var l=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=l<<1|l>>>31}l=(r<<5|r>>>27)+u+o[c],l=20>c?l+(1518500249+(i&a|~i&s)):40>c?l+(1859775393+(i^a^s)):60>c?l+((i&a|i&s|a&s)-1894007588):l+((i^a^s)-899497514),u=s,s=a,a=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(e),t.HmacSHA1=i._createHmacHelper(e)}(),function(){var t=r,e=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(t,n){t=this._hasher=new t.init,"string"==typeof n&&(n=e.parse(n));var r=t.blockSize,i=4*r;n.sigBytes>i&&(n=t.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,u=a.words,c=0;c>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&o+.75*l>>6*(3-l)&63));var f=r.charAt(64);if(f)for(;i.length%4;)i.push(f);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=r.charAt(64);if(i){var o=t.indexOf(i);-1!=o&&(e=o)}for(var a=[],s=0,u=0;u>>6-u%4*2;a[s>>>2]|=(c|l)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.exports=r},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,u,c,l,f,p,h=function(t,e){function n(){this.constructor=t}for(var r in e)d.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};l=n(78),o=n(16),r=n(89),t=n(195),u=n(196),f=n(18).setImmediate,a=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e){var n,r,i;for(n=0,r=t.length;n=0||t.indexOf(">")>=0||t.indexOf("<")>=0},p=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.processors=u,e.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}},e.ValidationError=function(t){function e(t){this.message=t}return h(e,t),e}(Error),e.Builder=function(){function t(t){var n,r,i;this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i)}return t.prototype.buildObject=function(t){var n,i,o,a,s;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(t).length&&this.options.rootName===e.defaults[.2].rootName?(s=Object.keys(t)[0],t=t[s]):s=this.options.rootName,o=function(t){return function(e,r){var a,s,u,l,f,h;if("object"!=typeof r)t.options.cdata&&c(r)?e.raw(p(r)):e.txt(r);else for(f in r)if(d.call(r,f))if(s=r[f],f===n){if("object"==typeof s)for(a in s)h=s[a],e=e.att(a,h)}else if(f===i)e=t.options.cdata&&c(s)?e.raw(p(s)):e.txt(s);else if(Array.isArray(s))for(l in s)d.call(s,l)&&(u=s[l],e="string"==typeof u?t.options.cdata&&c(u)?e.ele(f).raw(p(u)).up():e.ele(f,u).up():o(e.ele(f),u).up());else"object"==typeof s?e=o(e.ele(f),s).up():"string"==typeof s&&t.options.cdata&&c(s)?e=e.ele(f).raw(p(s)).up():(null==s&&(s=""),e=e.ele(f,s.toString()).up());return e}}(this),a=r.create(s,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(a,t).end(this.options.renderOpts)},t}(),e.Parser=function(n){function r(t){this.parseString=y(this.parseString,this),this.reset=y(this.reset,this),this.assignOrPush=y(this.assignOrPush,this),this.processAsync=y(this.processAsync,this);var n,r,i;if(!(this instanceof e.Parser))return new e.Parser(t);this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return h(r,n),r.prototype.processAsync=function(){var t,e;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),f(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},r.prototype.assignOrPush=function(t,e,n){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(n)):this.options.explicitArray?t[e]=[n]:t[e]=n},r.prototype.reset=function(){var t,e,n,r;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(t){return function(e){if(t.saxParser.resume(),!t.saxParser.errThrown)return t.saxParser.errThrown=!0,t.emit("error",e)}}(this),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(n){return function(i){var o,a,u,c,l;if(u={},u[e]="",!n.options.ignoreAttrs){l=i.attributes;for(o in l)d.call(l,o)&&(t in u||n.options.mergeAttrs||(u[t]={}),a=n.options.attrValueProcessors?s(n.options.attrValueProcessors,i.attributes[o]):i.attributes[o],c=n.options.attrNameProcessors?s(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(u,c,a):u[t][c]=a)}return u["#name"]=n.options.tagNameProcessors?s(n.options.tagNameProcessors,i.name):i.name,n.options.xmlns&&(u[n.options.xmlnskey]={uri:i.uri,local:i.local}),r.push(u)}}(this),this.saxParser.onclosetag=function(t){return function(){var n,i,o,u,c,l,f,p,h,y,g;if(f=r.pop(),l=f["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete f["#name"],!0===f.cdata&&(n=f.cdata,delete f.cdata),y=r[r.length-1],f[e].match(/^\s*$/)&&!n?(i=f[e],delete f[e]):(t.options.trim&&(f[e]=f[e].trim()),t.options.normalize&&(f[e]=f[e].replace(/\s{2,}/g," ").trim()),f[e]=t.options.valueProcessors?s(t.options.valueProcessors,f[e]):f[e],1===Object.keys(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])),a(f)&&(f=""!==t.options.emptyTag?t.options.emptyTag:i),null!=t.options.validator){g="/"+function(){var t,e,n;for(n=[],t=0,e=r.length;t0&&(c[t.options.childkey]=f),f=c;return r.length>0?t.assignOrPush(y,l,f):(t.options.explicitRoot&&(h=f,f={},f[l]=h),t.resultObject=f,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],i={"#name":"__text__"},i[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){return function(t){var e;if(e=n(t))return e.cdata=!0}}()},r.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,f(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},r}(o.EventEmitter),e.parseString=function(t,n,r){var i,o,a;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),a=new e.Parser(o),a.parseString(t,i)}}).call(this)},function(t,e,n){(function(t){!function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);var i=this;o(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=z.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(N)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),d(i,"onready")}function i(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,i=0,o=j.length;in)switch(j[i]){case"textNode":g(t);break;case"cdata":y(t,"oncdata",t.cdata),t.cdata="";break;case"script":y(t,"onscript",t.script),t.script="";break;default:m(t,"Max buffer length exceeded: "+j[i])}r=Math.max(r,a)}var s=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=s+t.position}function o(t){for(var e=0,n=j.length;e"===t||c(t)}function p(t,e){return t.test(e)}function h(t,e){return!p(t,e)}function d(t,e,n){t[e]&&t[e](n)}function y(t,e,n){t.textNode&&g(t),d(t,e,n)}function g(t){t.textNode=v(t.opt,t.textNode),t.textNode&&d(t,"ontext",t.textNode),t.textNode=""}function v(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function m(t,e){return g(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,d(t,"onerror",e),t}function b(t){return t.sawRoot&&!t.closedRoot&&w(t,"Unclosed root tag"),t.state!==z.BEGIN&&t.state!==z.BEGIN_WHITESPACE&&t.state!==z.TEXT&&m(t,"Unexpected end"),g(t),t.c="",t.closed=!0,d(t,"onend"),r.call(t,t.strict,t.opt),t}function w(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&m(t,e)}function _(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,y(t,"onopentagstart",n)}function x(t,e){var n=t.indexOf(":"),r=n<0?["",t]:t.split(":"),i=r[0],o=r[1];return e&&"xmlns"===t&&(i="xmlns",o=""),{prefix:i,local:o}}function E(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))return void(t.attribName=t.attribValue="");if(t.opt.xmlns){var e=x(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==L)w(t,"xml: prefix must be bound to "+L+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==B)w(t,"xmlns: prefix must be bound to "+B+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,y(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function A(t,e){if(t.opt.xmlns){var n=t.tag,r=x(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(w(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){y(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=z.SCRIPT);y(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;w(t,"Unexpected close tag")}if(e<0)return w(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=z.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,y(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];y(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=z.TEXT}function S(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),i=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),i=e.toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(w(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function C(t,e){"<"===e?(t.state=z.OPEN_WAKA,t.startTagPosition=t.position):c(e)||(w(t,"Non-whitespace before first tag."),t.textNode=e,t.state=z.TEXT)}function I(t,e){var n="";return e"===r?(y(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=z.TEXT):l(r)?(e.state=z.SGML_DECL_QUOTED,e.sgmlDecl+=r):e.sgmlDecl+=r;continue;case z.SGML_DECL_QUOTED:r===e.q&&(e.state=z.SGML_DECL,e.q=""),e.sgmlDecl+=r;continue;case z.DOCTYPE:">"===r?(e.state=z.TEXT,y(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=r,"["===r?e.state=z.DOCTYPE_DTD:l(r)&&(e.state=z.DOCTYPE_QUOTED,e.q=r));continue;case z.DOCTYPE_QUOTED:e.doctype+=r,r===e.q&&(e.q="",e.state=z.DOCTYPE);continue;case z.DOCTYPE_DTD:e.doctype+=r,"]"===r?e.state=z.DOCTYPE:l(r)&&(e.state=z.DOCTYPE_DTD_QUOTED,e.q=r);continue;case z.DOCTYPE_DTD_QUOTED:e.doctype+=r,r===e.q&&(e.state=z.DOCTYPE_DTD,e.q="");continue;case z.COMMENT:"-"===r?e.state=z.COMMENT_ENDING:e.comment+=r;continue;case z.COMMENT_ENDING:"-"===r?(e.state=z.COMMENT_ENDED,e.comment=v(e.opt,e.comment),e.comment&&y(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+r,e.state=z.COMMENT);continue;case z.COMMENT_ENDED:">"!==r?(w(e,"Malformed comment"),e.comment+="--"+r,e.state=z.COMMENT):e.state=z.TEXT;continue;case z.CDATA:"]"===r?e.state=z.CDATA_ENDING:e.cdata+=r;continue;case z.CDATA_ENDING:"]"===r?e.state=z.CDATA_ENDING_2:(e.cdata+="]"+r,e.state=z.CDATA);continue;case z.CDATA_ENDING_2:">"===r?(e.cdata&&y(e,"oncdata",e.cdata),y(e,"onclosecdata"),e.cdata="",e.state=z.TEXT):"]"===r?e.cdata+="]":(e.cdata+="]]"+r,e.state=z.CDATA);continue;case z.PROC_INST:"?"===r?e.state=z.PROC_INST_ENDING:c(r)?e.state=z.PROC_INST_BODY:e.procInstName+=r;continue;case z.PROC_INST_BODY:if(!e.procInstBody&&c(r))continue;"?"===r?e.state=z.PROC_INST_ENDING:e.procInstBody+=r;continue;case z.PROC_INST_ENDING:">"===r?(y(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=z.TEXT):(e.procInstBody+="?"+r,e.state=z.PROC_INST_BODY);continue;case z.OPEN_TAG:p(U,r)?e.tagName+=r:(_(e),">"===r?A(e):"/"===r?e.state=z.OPEN_TAG_SLASH:(c(r)||w(e,"Invalid character in tag name"),e.state=z.ATTRIB));continue;case z.OPEN_TAG_SLASH:">"===r?(A(e,!0),T(e)):(w(e,"Forward-slash in opening tag not followed by >"),e.state=z.ATTRIB);continue;case z.ATTRIB:if(c(r))continue;">"===r?A(e):"/"===r?e.state=z.OPEN_TAG_SLASH:p(M,r)?(e.attribName=r,e.attribValue="",e.state=z.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case z.ATTRIB_NAME:"="===r?e.state=z.ATTRIB_VALUE:">"===r?(w(e,"Attribute without value"),e.attribValue=e.attribName,E(e),A(e)):c(r)?e.state=z.ATTRIB_NAME_SAW_WHITE:p(U,r)?e.attribName+=r:w(e,"Invalid attribute name");continue;case z.ATTRIB_NAME_SAW_WHITE:if("="===r)e.state=z.ATTRIB_VALUE;else{if(c(r))continue;w(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",y(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===r?A(e):p(M,r)?(e.attribName=r,e.state=z.ATTRIB_NAME):(w(e,"Invalid attribute name"),e.state=z.ATTRIB)}continue;case z.ATTRIB_VALUE:if(c(r))continue;l(r)?(e.q=r,e.state=z.ATTRIB_VALUE_QUOTED):(w(e,"Unquoted attribute value"),e.state=z.ATTRIB_VALUE_UNQUOTED,e.attribValue=r);continue;case z.ATTRIB_VALUE_QUOTED:if(r!==e.q){"&"===r?e.state=z.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=r;continue}E(e),e.q="",e.state=z.ATTRIB_VALUE_CLOSED;continue;case z.ATTRIB_VALUE_CLOSED:c(r)?e.state=z.ATTRIB:">"===r?A(e):"/"===r?e.state=z.OPEN_TAG_SLASH:p(M,r)?(w(e,"No whitespace between attributes"),e.attribName=r,e.attribValue="",e.state=z.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case z.ATTRIB_VALUE_UNQUOTED:if(!f(r)){"&"===r?e.state=z.ATTRIB_VALUE_ENTITY_U:e.attribValue+=r;continue}E(e),">"===r?A(e):e.state=z.ATTRIB;continue;case z.CLOSE_TAG:if(e.tagName)">"===r?T(e):p(U,r)?e.tagName+=r:e.script?(e.script+=""===r?T(e):w(e,"Invalid characters in closing tag");continue;case z.TEXT_ENTITY:case z.ATTRIB_VALUE_ENTITY_Q:case z.ATTRIB_VALUE_ENTITY_U:var s,u;switch(e.state){case z.TEXT_ENTITY:s=z.TEXT,u="textNode";break;case z.ATTRIB_VALUE_ENTITY_Q:s=z.ATTRIB_VALUE_QUOTED,u="attribValue";break;case z.ATTRIB_VALUE_ENTITY_U:s=z.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===r?(e[u]+=S(e),e.entity="",e.state=s):p(e.entity.length?q:F,r)?e.entity+=r:(w(e,"Invalid character in entity name"),e[u]+="&"+e.entity+r,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}}return e.position>=e.bufferCheckPosition&&i(e),e}e.parser=function(t,e){return new r(t,e)},e.SAXParser=r,e.SAXStream=u,e.createStream=s,e.MAX_BUFFER_LENGTH=65536;var j=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),r.prototype={end:function(){b(this)},write:k,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var R;try{R=n(79).Stream}catch(t){R=function(){}}var O=e.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});u.prototype=Object.create(R.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var r=n(31).StringDecoder;this._decoder=new r("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===O.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),R.prototype.on.call(n,t,e)};var D="[CDATA[",P="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",N={xml:L,xmlns:B},M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,U=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,z=0;e.STATE={BEGIN:z++,BEGIN_WHITESPACE:z++,TEXT:z++,TEXT_ENTITY:z++,OPEN_WAKA:z++,SGML_DECL:z++,SGML_DECL_QUOTED:z++,DOCTYPE:z++,DOCTYPE_QUOTED:z++,DOCTYPE_DTD:z++,DOCTYPE_DTD_QUOTED:z++,COMMENT_STARTING:z++,COMMENT:z++,COMMENT_ENDING:z++,COMMENT_ENDED:z++,CDATA:z++,CDATA_ENDING:z++,CDATA_ENDING_2:z++,PROC_INST:z++,PROC_INST_BODY:z++,PROC_INST_ENDING:z++,OPEN_TAG:z++,OPEN_TAG_SLASH:z++,ATTRIB:z++,ATTRIB_NAME:z++,ATTRIB_NAME_SAW_WHITE:z++,ATTRIB_VALUE:z++,ATTRIB_VALUE_QUOTED:z++,ATTRIB_VALUE_CLOSED:z++,ATTRIB_VALUE_UNQUOTED:z++,ATTRIB_VALUE_ENTITY_Q:z++,ATTRIB_VALUE_ENTITY_U:z++,CLOSE_TAG:z++,CLOSE_TAG_SAW_WHITE:z++,SCRIPT:z++,SCRIPT_ENDING:z++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var H in e.STATE)e.STATE[e.STATE[H]]=H;z=e.STATE,/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ +String.fromCodePoint||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,r,i=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o1114111||e(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(o+1===a||i.length>16384)&&(s+=t.apply(null,i),i.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(e)}).call(e,n(6).Buffer)},function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n(16).EventEmitter;n(7)(r,i),r.Readable=n(28),r.Writable=n(85),r.Duplex=n(86),r.Transform=n(87),r.PassThrough=n(88),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){l||(l=!0,t.end())}function a(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var l=!1;return c.on("error",s),t.on("error",s),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(29).Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),p=!n&&!r&&!l&&c(t),h=n||r||l||p,d=h?i(t.length,String):[],y=d.length;for(var g in t)!e&&!f.call(t,g)||h&&("length"==g||l&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,y))||d.push(g);return d}var i=n(106),o=n(36),a=n(2),s=n(37),u=n(34),c=n(39),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n/))throw new Error("Invalid CDATA text: "+t);return this.assertLegalChar(t)},t.prototype.comment=function(t){if(t=""+t||"",t.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if(t=""+t||"",t.match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(t=""+t||"",!t.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(t=""+t||"",!t.match(/^[A-Za-z](?:[A-Za-z0-9._-]|-)*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,n;if(e=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,n=t.match(e))throw new Error("Invalid character ("+n+") in string: "+t+" at index "+n.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/-1}var i=n(23);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(23);t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(22);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){n(0),t.exports=function(){function t(t,e,n){if(this.stringify=t.stringify,null==e)throw new Error("Missing notation name");if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(9),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(9),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){(function(t){function r(t,e){"function"==typeof t&&(e=t,t={}),U.call(this,{url:"http://service.cos.myqcloud.com",method:"GET"},function(t,n){if(t)return e(t);if((n=n||{})&&n.ListAllMyBucketsResult&&n.ListAllMyBucketsResult.Buckets&&n.ListAllMyBucketsResult.Buckets.Bucket){var r=n.ListAllMyBucketsResult.Buckets.Bucket||[];r instanceof Array||(r=[r]),n.ListAllMyBucketsResult.Buckets=r}return e(null,n.ListAllMyBucketsResult)})}function i(t,e){U.call(this,{Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,method:"HEAD"},function(t,n){if(t){var r=t.statusCode;return r&&404==r?e(null,{BucketExist:!1,BucketAuth:!1},n):r&&403==r?e(null,{BucketExist:!0,BucketAuth:!1},n):e(t,{},n)}e(null,{BucketExist:!0,BucketAuth:!0},n)})}function o(t,e){var n={};n.prefix=t.Prefix,n.delimiter=t.Delimiter,n.marker=t.Marker,n["max-keys"]=t.MaxKeys,n["encoding-type"]=t.EncodingType,U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,qs:n},function(t,n){if(t)return e(t);n=n||{};var r=n.ListBucketResult.Contents||[],i=n.ListBucketResult.CommonPrefixes||[];r instanceof Array||(r=[r]),i instanceof Array||(i=[i]),n.ListBucketResult.Contents=r,n.ListBucketResult.CommonPrefixes=i,e(null,n.ListBucketResult||{})})}function a(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl;var r=this.AppId||"";U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,headers:n},function(n,i){if(n)return e(n);e(null,{Location:M({bucket:t.Bucket,region:t.Region,appId:r}),statusCode:i.statusCode})})}function s(t,e){U.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{DeleteBucketSuccess:!0})})}function u(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?acl"},function(t,n){if(t)return e(t);n=n||{};var r=z.clone(n.AccessControlPolicy.AccessControlList.Grant||[]);r instanceof Array||(r=[r]),delete n.AccessControlPolicy.AccessControlList.Grant,n.AccessControlPolicy.AccessControlList.Grants=r,e(null,n.AccessControlPolicy||{})})}function c(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl;var r="";if(t.AccessControlPolicy){var i=z.clone(t.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=z.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},r=z.json2xml({AccessControlPolicy:i}),n["Content-MD5"]=z.binaryBase64(z.md5(r)),n["Content-Type"]="application/xml"}U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?acl",headers:n,body:r},function(t,n){if(t)return e(t);e(null,{PutBucketAclSuccess:!0})})}function l(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?cors"},function(t,n){if(t)return e(t);var r=n.CORSConfiguration||{},i=r.CORSRules||r.CORSRule||[];i=z.clone(z.isArray(i)?i:[i]),z.each(i,function(t){z.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(e,n){var r=e+"s",i=t[r]||t[e]||[];delete t[e],t[r]=z.isArray(i)?i:[i]})}),e(null,{CORSRules:i})})}function f(t,e){var n=t.CORSConfiguration||{},r=n.CORSRules||t.CORSRules||[];r=z.clone(z.isArray(r)?r:[r]),z.each(r,function(t){z.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(e,n){var r=e+"s",i=t[r]||t[e]||[];delete t[r],t[e]=z.isArray(i)?i:[i]})});var i=z.json2xml({CORSConfiguration:{CORSRule:r}}),o={};o["Content-MD5"]=z.binaryBase64(z.md5(i)),o["Content-Type"]="application/xml",U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:i,action:"/?cors",headers:o,needHeaders:!0},function(t,n){if(t)return e(t);e(null,{PutBucketCorsSuccess:!0})})}function p(t,e){U.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?cors",needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{DeleteBucketCorsSuccess:!0})})}function h(t,e){var n={},r=t.Policy,i=r;try{"string"==typeof r?r=JSON.parse(i):i=JSON.stringify(r)}catch(t){e("Policy format error")}n["Content-Type"]="application/json",n["Content-MD5"]=z.binaryBase64(z.md5(i)),U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?policy",body:r,headers:n,json:!0,needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{PutBucketPolicySuccess:!0})})}function d(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?location"},function(t,n){if(t)return e(t);e(null,n||{})})}function y(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?policy",rawBody:!0},function(t,n){if(t)return e(t.statusCode&&403===t.statusCode?{ErrorStatus:"Access Denied"}:t.statusCode&&405===t.statusCode?{ErrorStatus:"Method Not Allowed"}:t.statusCode&&404===t.statusCode?{ErrorStatus:"Policy Not Found"}:t);var r={};try{r=JSON.parse(n.body)}catch(t){}e(null,{Policy:r})})}function g(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?tagging"},function(t,n){if(t)return e(t);var r=[];try{r=n.Tagging.TagSet.Tag||[]}catch(t){}r=z.clone(z.isArray(r)?r:[r]),e(null,{TagSet:r})})}function v(t,e){var n=t.Tagging||{},r=n.TagSet||t.TagSet||t.Tags||[];r=z.clone(z.isArray(r)?r:[r]);var i=z.json2xml({Tagging:{TagSet:{Tag:r}}}),o={};o["Content-Type"]="application/xml",o["Content-MD5"]=z.binaryBase64(z.md5(i)),U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:i,action:"/?tagging",headers:o,needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{PutBucketTaggingSuccess:!0})})}function m(t,e){U.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?tagging",needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{DeleteBucketTaggingSuccess:!0})})}function b(t,e){var n=t.LifecycleConfiguration||{},r=n.Rules||t.Rules||[];r=z.clone(r);var i=z.json2xml({LifecycleConfiguration:{Rule:r}}),o={};o["Content-Type"]="application/xml",o["Content-MD5"]=z.binaryBase64(z.md5(i)),U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:i,action:"/?lifecycle",headers:o,needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{PutBucketLifecycleSuccess:!0})})}function w(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?lifecycle"},function(t,n){if(t)return e(t);var r=[];try{r=n.LifecycleConfiguration.Rule||[]}catch(t){}r=z.clone(z.isArray(r)?r:[r]),e(null,{Rules:r})})}function _(t,e){U.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,action:"/?lifecycle",needHeaders:!0},function(t,n){if(t&&204!==t.statusCode)return e(t);e(null,{DeleteBucketLifecycleSuccess:!0})})}function x(t,e){var n={};n["If-Modified-Since"]=t.IfModifiedSince,U.call(this,{method:"HEAD",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0},function(t,r){if(t){var i=t.statusCode;return n["If-Modified-Since"]&&i&&304==i?e(null,{NotModified:!0}):e(t)}r=r||{},e(null,r.headers)})}function E(t,e){var n={},r={};n.Range=t.Range,n["If-Modified-Since"]=t.IfModifiedSince,n["If-Unmodified-Since"]=t.IfUnmodifiedSince,n["If-Match"]=t.IfMatch,n["If-None-Match"]=t.IfNoneMatch,r["response-content-type"]=t.ResponseContentType,r["response-content-language"]=t.ResponseContentLanguage,r["response-expires"]=t.ResponseExpires,r["response-cache-control"]=t.ResponseCacheControl,r["response-content-disposition"]=t.ResponseContentDisposition,r["response-content-encoding"]=t.ResponseContentEncoding,U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,qs:r,needHeaders:!0,rawBody:!0},function(t,r){if(t){var i=t.statusCode;return n["If-Modified-Since"]&&i&&304==i?e(null,{NotModified:!0}):e(t)}r=r||{},e(null,r.headers||{})})}function A(t,e){var n={};n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-MD5"]=t.ContentMD5,n["Content-Length"]=t.ContentLength,n["Content-Type"]=t.ContentType,n.Expect=t.Expect,n.Expires=t.Expires,n["x-cos-content-sha1"]=t.ContentSha1,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["x-cos-storage-class"]=t.StorageClass;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0,body:t.Body,onProgress:t.onProgress},function(t,n){return t?e(t):(n=n||{})&&n.headers&&n.headers.etag?e(null,{ETag:n.headers.etag}):void e(null,n)})}function T(t,e){U.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key},function(t,n){if(t){var r=t.statusCode;return r&&204==r?e(null,{DeleteObjectSuccess:!0}):r&&404==r?e(null,{BucketNotFound:!0}):e(t)}e(null,{DeleteObjectSuccess:!0})})}function S(t,e){U.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl"},function(t,n){if(t)return e(t);n=n||{};var r=n.AccessControlPolicy.AccessControlList.Grant||[];r instanceof Array||(r=[r]),delete n.AccessControlPolicy.AccessControlList.Grant,n.AccessControlPolicy.AccessControlList.Grants=r,e(null,n.AccessControlPolicy||{})})}function C(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl;var r="";if(t.AccessControlPolicy){var i=z.clone(t.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=z.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},r=z.json2xml({AccessControlPolicy:i}),n["Content-MD5"]=z.binaryBase64(z.md5(r)),n["Content-Type"]="application/xml"}U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl",headers:n,needHeaders:!0,body:r},function(t,n){if(t)return e(t);e(null,{PutObjectAclSuccess:!0})})}function I(t,e){var n={};n.Origin=t.Origin,n["Access-Control-Request-Method"]=t.AccessControlRequestMethod,n["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,U.call(this,{method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0},function(t,n){if(t)return t.statusCode&&403==t.statusCode?e(null,{OptionsForbidden:!0}):e(t);n=n||{};var r=n.headers||{},i={};i.AccessControlAllowOrigin=r["access-control-allow-origin"],i.AccessControlAllowMethods=r["access-control-allow-methods"],i.AccessControlAllowHeaders=r["access-control-allow-headers"],i.AccessControlExposeHeaders=r["access-control-expose-headers"],i.AccessControlMaxAge=r["access-control-max-age"],e(null,i)})}function k(t,e){var n={};n["x-cos-copy-source"]=t.CopySource,n["x-cos-metadata-directive"]=t.MetadataDirective,n["x-cos-copy-source-If-Modified-Since"]=t.CopySourceIfModifiedSince,n["x-cos-copy-source-If-Unmodified-Since"]=t.CopySourceIfUnmodifiedSince,n["x-cos-copy-source-If-Match"]=t.CopySourceIfMatch,n["x-cos-copy-source-If-None-Match"]=t.CopySourceIfNoneMatch,n["x-cos-storage-class"]=t.StorageClass,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Length"]=t.ContentLength,n["Content-Type"]=t.ContentType,n.Expect=t.Expect,n.Expires=t.Expires,n["x-cos-content-sha1"]=t.ContentSha1;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n,needHeaders:!0},function(t,n){if(t)return e(t);n=n||{},e(null,n.CopyObjectResult||{})})}function j(e,n){var r={};r["Content-Type"]="application/xml";var i=e.Objects||{},o=e.Quiet,a={Delete:{Object:i,Quiet:o||!1}},s=z.json2xml(a);r["Content-MD5"]=z.binaryBase64(z.md5(s)),r["Content-Length"]=t.byteLength(s,"utf8"),U.call(this,{method:"POST",Bucket:e.Bucket,Region:e.Region,AppId:e.AppId,body:s,action:"/?delete",headers:r,needHeaders:!0},function(t,e){if(t)return n(t);e=e||{};var r=e.DeleteResult.Deleted||[],i=e.DeleteResult.Error||[];r instanceof Array||(r=[r]),i instanceof Array||(i=[i]),e.DeleteResult.Error=i,e.DeleteResult.Deleted=r,n(null,e.DeleteResult||{})})}function R(t,e){var n={};n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Type"]=t.ContentType,n.Expires=t.Expires,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["x-cos-storage-class"]=t.StorageClass;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);U.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?uploads",headers:n,needHeaders:!0},function(t,n){return t?e(t):(n=n||{})&&n.InitiateMultipartUploadResult?e(null,n.InitiateMultipartUploadResult):void e(null,n)})}function O(t,e){var n={};n["Content-Length"]=t.ContentLength,n.Expect=t.Expect,n["x-cos-content-sha1"]=t.ContentSha1;var r=t.PartNumber,i=t.UploadId,o="?partNumber="+r+"&uploadId="+i;U.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:o,headers:n,needHeaders:!0,inputStream:t.Body||null,onProgress:t.onProgress},function(t,n){if(t)return e(t);n=n||{},n.headers=n.headers||{},e(null,{ETag:n.headers.etag||""})})}function D(e,n){var r={};r["Content-Type"]="application/xml";for(var i=e.UploadId,o="?uploadId="+i,a=e.Parts,s=0,u=a.length;s0&&c>u&&(c=u);for(var l=0;l=0?(f=y.substr(0,g),p=y.substr(g+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?i(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r0&&e-1 in t))}function e(t){var e=N[t]={};return I.each(t.match(B)||[],function(t,n){e[n]=!0}),e}function n(){P.addEventListener?(P.removeEventListener("DOMContentLoaded",r,!1),window.removeEventListener("load",r,!1)):(P.detachEvent("onreadystatechange",r),window.detachEvent("onload",r))}function r(){(P.addEventListener||"load"===event.type||"complete"===P.readyState)&&(n(),I.ready())}function i(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(q,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?I.parseJSON(n):n)}catch(t){}I.data(t,e,n)}else n=void 0}return n}function o(t){var e;for(e in t)if(("data"!==e||!I.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function a(t,e,n,r){if(I.acceptData(t)){var i,o,a=I.expando,s=t.nodeType,u=s?I.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=m.pop()||I.guid++:a),u[c]||(u[c]=s?{}:{toJSON:I.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=I.extend(u[c],e):u[c].data=I.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[I.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[I.camelCase(e)]):i=o,i}}function s(t,e,n){if(I.acceptData(t)){var r,i,a=t.nodeType,s=a?I.cache:t,u=a?t[I.expando]:I.expando;if(s[u]){if(e&&(r=n?s[u]:s[u].data)){I.isArray(e)?e=e.concat(I.map(e,I.camelCase)):e in r?e=[e]:(e=I.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!o(r):!I.isEmptyObject(r))return}(n||(delete s[u].data,o(s[u])))&&(a?I.cleanData([t],!0):S.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}function u(){return!0}function c(){return!1}function l(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(B)||[];if(I.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function f(t,e,n,r){function i(s){var u;return o[s]=!0,I.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===at;return i(e.dataTypes[0])||!o["*"]&&i("*")}function p(t,e){var n,r,i=I.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&I.extend(!0,t,n),t}function h(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function d(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function y(t,e,n,r){var i;if(I.isArray(e))I.each(e,function(e,i){n||ct.test(t)?r(t,i):y(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==I.type(e))r(t,e);else for(i in e)y(t+"["+i+"]",e[i],n,r)}function g(){try{return new window.XMLHttpRequest}catch(t){}}function v(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}var m=[],b=m.slice,w=m.concat,_=m.push,x=m.indexOf,E={},A=E.toString,T=E.hasOwnProperty,S={},C="1.11.1 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event-alias,-wrap",I=function(t,e){return new I.fn.init(t,e)},k=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,j=/^-ms-/,R=/-([\da-z])/gi,O=function(t,e){return e.toUpperCase()};I.fn=I.prototype={jquery:C,constructor:I,selector:"",length:0,toArray:function(){return b.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:b.call(this)},pushStack:function(t){var e=I.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return I.each(this,t,e)},map:function(t){return this.pushStack(I.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==I.type(t)||t.nodeType||I.isWindow(t))return!1;try{if(t.constructor&&!T.call(t,"constructor")&&!T.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(S.ownLast)for(e in t)return T.call(t,e);for(e in t);return void 0===e||T.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?E[A.call(t)]||"object":typeof t},globalEval:function(t){t&&I.trim(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(j,"ms-").replace(R,O)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(e,n,r){var i=0,o=e.length,a=t(e);if(r){if(a)for(;i)[^>]*|#([\w-]*))$/;(I.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:L.exec(t))||!n[1]&&e)return!e||e.jquery?(e||D).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof I?e[0]:e,I.merge(this,I.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:P,!0)),rsingleTag.test(n[1])&&I.isPlainObject(e))for(n in e)I.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=P.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return D.find(t);this.length=1,this[0]=r}return this.context=P,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):I.isFunction(t)?void 0!==D.ready?D.ready(t):t(I):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),I.makeArray(t,this))}).prototype=I.fn,D=I(P);var B=/\S+/g,N={};I.Callbacks=function(t){t="string"==typeof t?N[t]||e(t):I.extend({},t);var n,r,i,o,a,s,u=[],c=!t.once&&[],l=function(e){for(r=t.memory&&e,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&a-1;)u.splice(r,1),n&&(r<=o&&o--,r<=a&&a--)}),this},has:function(t){return t?I.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=c=r=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,r||f.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):l(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},I.extend({Deferred:function(t){var e=[["resolve","done",I.Callbacks("once memory"),"resolved"],["reject","fail",I.Callbacks("once memory"),"rejected"],["notify","progress",I.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return I.Deferred(function(n){I.each(e,function(e,o){var a=I.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&I.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?I.extend(t,r):r}},i={};return r.pipe=r.then,I.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=b.call(arguments),a=o.length,s=1!==a||t&&I.isFunction(t.promise)?a:0,u=1===s?t:I.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?b.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(M.resolveWith(P,[I]),I.fn.triggerHandler&&(I(P).triggerHandler("ready"),I(P).off("ready")))}}}),I.ready.promise=function(t){if(!M)if(M=I.Deferred(),"complete"===P.readyState)setTimeout(I.ready);else if(P.addEventListener)P.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1);else{P.attachEvent("onreadystatechange",r),window.attachEvent("onload",r);var e=!1;try{e=null==window.frameElement&&P.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!I.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}n(),I.ready()}}()}return M.promise(t)};var U;for(U in I(S))break;S.ownLast="0"!==U,S.inlineBlockNeedsLayout=!1,I(function(){var t,e,n,r;(n=P.getElementsByTagName("body")[0])&&n.style&&(e=P.createElement("div"),r=P.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",S.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=P.createElement("div");if(null==S.deleteExpando){S.deleteExpando=!0;try{delete t.test}catch(t){S.deleteExpando=!1}}t=null}(),I.acceptData=function(t){var e=I.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;I.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?I.cache[t[I.expando]]:t[I.expando])&&!o(t)},data:function(t,e,n){return a(t,e,n)},removeData:function(t,e){return s(t,e)},_data:function(t,e,n){return a(t,e,n,!0)},_removeData:function(t,e){return s(t,e,!0)}}),I.fn.extend({data:function(t,e){var n,r,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=I.data(a),1===a.nodeType&&!I._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=I.camelCase(r.slice(5)),i(a,r,o[r])));I._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){I.data(this,t)}):arguments.length>1?this.each(function(){I.data(this,t,e)}):a?i(a,t,I.data(a,t)):void 0},removeData:function(t){return this.each(function(){I.removeData(this,t)})}}),I.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=I._data(t,e),n&&(!r||I.isArray(n)?r=I._data(t,e,I.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=I.queue(t,e),r=n.length,i=n.shift(),o=I._queueHooks(t,e),a=function(){I.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return I._data(t,n)||I._data(t,n,{empty:I.Callbacks("once memory").add(function(){I._removeData(t,e+"queue"),I._removeData(t,n)})})}}),I.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length=0&&(h=p.split("."),p=h.shift(),h.sort()),o=p.indexOf(":")<0&&"on"+p,t=t[I.expando]?t:new I.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:I.makeArray(e,[t]),u=I.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!I.isWindow(n)){for(s=u.delegateType||p,G.test(s+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(n.ownerDocument||P)&&f.push(c.defaultView||c.parentWindow||window)}for(l=0;(a=f[l++])&&!t.isPropagationStopped();)t.type=l>1?s:u.bindType||p,i=(I._data(a,"events")||{})[t.type]&&I._data(a,"handle"),i&&i.apply(a,e),(i=o&&a[o])&&i.apply&&I.acceptData(a)&&(t.result=i.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),e))&&I.acceptData(n)&&o&&n[p]&&!I.isWindow(n)){c=n[o],c&&(n[o]=null),I.event.triggered=p;try{n[p]()}catch(t){}I.event.triggered=void 0,c&&(n[o]=c)}return t.result}},dispatch:function(t){t=I.event.fix(t);var e,n,r,i,o,a=[],s=b.call(arguments),u=(I._data(this,"events")||{})[t.type]||[],c=I.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=I.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((I.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o=0:I.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s0?4:0,i=t>=200&&t<300||304===t,n&&(w=h(p,A,n)),w=d(p,w,A,i),i?(p.ifModified&&(_=A.getResponseHeader("Last-Modified"),_&&(I.lastModified[o]=_),(_=A.getResponseHeader("etag"))&&(I.etag[o]=_)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=w.state,l=w.data,f=w.error,i=!f)):(f=E,!t&&E||(E="error",t<0&&(t=0))),A.status=t,A.statusText=(e||E)+"",i?v.resolveWith(y,[l,E,A]):v.rejectWith(y,[A,E,f]),A.statusCode(b),b=void 0,u&&g.trigger(i?"ajaxSuccess":"ajaxError",[A,p,i?l:f]),m.fireWith(y,[A,E]),u&&(g.trigger("ajaxComplete",[A,p]),--I.active||I.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,p=I.ajaxSetup({},e),y=p.context||p,g=p.context&&(y.nodeType||y.jquery)?I(y):I.event,v=I.Deferred(),m=I.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x=0,E="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!l)for(l={};e=tt.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=_[n]=_[n]||t,w[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)b[e]=[b[e],t[e]];else A.always(t[A.status]);return this},abort:function(t){var e=t||E;return c&&c.abort(e),n(0,e),this}};if(v.promise(A).complete=m.add,A.success=A.done,A.error=A.fail,p.url=((t||p.url||Q)+"").replace(J,"").replace(rt,$[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=I.trim(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain&&(r=it.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===$[1]&&r[2]===$[2]&&(r[3]||("http:"===r[1]?"80":"443"))===($[3]||("http:"===$[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=I.param(p.data,p.traditional)),f(ot,p,e,A),2===x)return A;u=p.global,u&&0==I.active++&&I.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!nt.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(V.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Z.test(o)?o.replace(Z,"$1_="+Y++):o+(V.test(o)?"&":"?")+"_="+Y++)),p.ifModified&&(I.lastModified[o]&&A.setRequestHeader("If-Modified-Since",I.lastModified[o]),I.etag[o]&&A.setRequestHeader("If-None-Match",I.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&A.setRequestHeader("Content-Type",p.contentType);for(i in p.headers)A.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(y,A,p)||2===x))return A.abort();E="abort";for(i in{success:1,error:1,complete:1})A[i](p[i]);if(c=f(at,p,e,A)){A.readyState=1,u&&g.trigger("ajaxSend",[A,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){A.abort("timeout")},p.timeout));try{x=1,c.send(w,n)}catch(t){if(!(x<2))throw t;n(-1,t)}}else n(-1,"No Transport");return A},getJSON:function(t,e,n){return I.get(t,e,n,"json")},getScript:function(t,e){return I.get(t,void 0,e,"script")}}),I.each(["get","post"],function(t,e){I[e]=function(t,n,r,i){return I.isFunction(n)&&(i=i||r,r=n,n=void 0),I.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),I.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){I.fn[e]=function(t){return this.on(e,t)}}),I._evalUrl=function(t){return I.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};var ut=/%20/g,ct=/\[\]$/,lt=/\r?\n/g,ft=/^(?:submit|button|image|reset|file)$/i,pt=/^(?:input|select|textarea|keygen)/i;I.param=function(t,e){var n,r=[],i=function(t,e){e=I.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=I.ajaxSettings&&I.ajaxSettings.traditional),I.isArray(t)||t.jquery&&!I.isPlainObject(t))I.each(t,function(){i(this.name,this.value)});else for(n in t)y(n,t[n],e,i);return r.join("&").replace(ut,"+")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=I.prop(this,"elements");return t?I.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!I(this).is(":disabled")&&pt.test(this.nodeName)&&!ft.test(t)&&(this.checked||!rcheckableType.test(t))}).map(function(t,e){var n=I(this).val();return null==n?null:I.isArray(n)?I.map(n,function(t){return{name:e.name,value:t.replace(lt,"\r\n")}}):{name:e.name,value:n.replace(lt,"\r\n")}}).get()}}),I.ajaxSettings.xhr=void 0!==window.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&g()||v()}:g;var ht=0,dt={},yt=I.ajaxSettings.xhr();window.ActiveXObject&&I(window).on("unload",function(){for(var t in dt)dt[t](void 0,!0)}),S.cors=!!yt&&"withCredentials"in yt,yt=S.ajax=!!yt,yt&&I.ajaxTransport(function(t){if(!t.crossDomain||S.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++ht;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.upload&&t.progress&&(o.upload.onprogress=t.progress),o.send(t.hasContent&&(t.body||t.data)||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete dt[a],e=void 0,o.onreadystatechange=I.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=dt[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return I.globalEval(t),t}}}),I.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),I.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=P.head||I("head")[0]||P.documentElement;return{send:function(r,i){e=P.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var gt=[],vt=/(=)\?(?=&|$)|\?\?/;return I.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=gt.pop()||I.expando+"_"+Y++;return this[t]=!0,t}}),I.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(vt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=I.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(vt,"$1"+r):!1!==t.jsonp&&(t.url+=(V.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||I.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=window[r],window[r]=function(){o=arguments},n.always(function(){window[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,gt.push(r)),o&&I.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),I.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||P;var r=rsingleTag.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=I.buildFragment([t],e,i),i&&i.length&&I(i).remove(),I.merge([],r.childNodes))},I}(),o=function(t,e){if(t=i.extend(!0,{headers:{},qs:{}},t),t.type=t.method,delete t.method,t.headers){var n=t.headers;delete t.headers,t.beforeSend=function(t){for(var e in n)n.hasOwnProperty(e)&&"content-length"!==e.toLowerCase()&&"user-agent"!==e.toLowerCase()&&"origin"!==e.toLowerCase()&&"host"!==e.toLowerCase()&&t.setRequestHeader(e,n[e])}}if(t.onProgress&&(t.progress=t.onProgress,delete t.onProgress),t.qs){var o=r.stringify(t.qs);o&&(t.url+=(-1===t.url.indexOf("?")?"?":"&")+o),delete t.qs}t.json&&(t.data=JSON.stringify(t.json),delete t.json,t.headers["Content-Type"]="application/json"),t.body&&t.body.constructor!==window.File&&t.body.constructor!==window.Blob&&(t.data=t.body,delete t.body);var a=function(t){var e={};return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){if(t){var n=t.indexOf(":"),r=t.substr(0,n).trim().toLowerCase(),i=t.substr(n+1).trim();e[r]=i}}),{statusCode:t.status,statusMessage:t.statusText,headers:e}};t.success=function(t,n,r){e(null,a(r),t)},t.error=function(t){e(t.statusText,a(t),t.responseText)},t.dataType="text",i.ajax(t)};t.exports=o},function(t,e,n){"use strict";e.decode=e.parse=n(203),e.encode=e.stringify=n(204)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),r(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,i){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(i){var o=encodeURIComponent(r(i))+n;return Array.isArray(t[i])?t[i].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[i]))}).join(e):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(t)):""}},function(t,e,n){function r(t,e){var n,r,o=new h,a=t.Bucket,u=t.Region,l=t.Key,f=t.Body,p=t.SliceSize||y,d=t.AsyncLimit||1,g=t.StorageClass||"Standard",v=this;g=null;var m=t.onProgress,b=t.onHashProgress;o.all("error",function(t){return e(t)}),o.all("upload_complete",function(t){e(null,t)}),o.all("upload_slice_complete",function(t){c.call(v,{Bucket:a,Region:u,Key:l,UploadId:t.UploadId,SliceList:t.SliceList},function(t,e){if(t)return o.emit("error",t);o.emit("upload_complete",e)})}),o.all("get_upload_data_finish",function(t){var e={};t.PartList.forEach(function(t){e[t.PartNumber]=t});for(var i=[],c=1;c<=n;c++){var h=e[c];i.push({PartNumber:c,ETag:h?h.ETag:"",Uploaded:!!h})}s.call(v,{Bucket:a,Region:u,Key:l,Body:f,FileSize:r,SliceSize:p,AsyncLimit:d,UploadId:t.UploadId,SliceList:i,onProgress:m},function(t,e){if(t)return o.emit("error",t);o.emit("upload_slice_complete",e)})}),o.all("get_file_size_finish",function(){i.call(v,{Bucket:a,Region:u,Key:l,StorageClass:g,Body:f,FileSize:r,SliceSize:p,onHashProgress:b,CacheControl:t.CacheControl,ContentDisposition:t.ContentDisposition,ContentEncoding:t.ContentEncoding,ContentType:t.ContentType,ACL:t.ACL,GrantRead:t.GrantRead,GrantWrite:t.GrantWrite,GrantFullControl:t.GrantFullControl},function(t,e){if(t)return o.emit("error",t);o.emit("get_upload_data_finish",e)})}),r=f.size,n=Math.ceil(r/p),o.emit("get_file_size_finish")}function i(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.StorageClass,s=this,u={},c=t.FileSize,l=t.SliceSize,f=Math.ceil(c/l),y=0,g=0,v=0,m=0,b=0,w=function(e){var n=function(){v=0;var e=Date.now(),n=parseInt((g-b)/(e-m)*100)/100||0,r=parseInt(y/f*100)/100||0;if(m=e,b=g,t.onHashProgress&&"function"==typeof t.onHashProgress)try{t.onHashProgress({loaded:g,total:c,speed:n,percent:r})}catch(t){}};if(e)v&&(clearTimeout(v),v=0,n());else{if(v)return;setTimeout(n,100)}},_=function(e,n,r){if(u[n])return u[n];var i=l*(n-1),o=Math.min(i+l,c),a=o-i,s=d.fileSlice.call(t.Body,i,o);("sha1"===e?d.getFileSHA:d.getFileMd5)(s,function(t,e){if(t)return r(t,"");var i='"'+e+'"';u[n]=i,y+=1,g+=a,r(t,{PartNumber:n,ETag:i,Size:a}),w()})},x=function(t,e){var n=t.length;if(0===n)return e(null,!0);if(n>f)return e(null,!1);if(n>1){if(Math.max(t[0].Size,t[1].Size)!==l)return e(null,!1)}var r=function(i){if(i=d?a%s||s:s),!t.Uploaded}),m=function(){var t,e=Date.now(),n=y,r=function(){if(t=0,h&&"function"==typeof h){var r=Date.now(),i=parseInt((y-n)/(r-e)*100)/100||0,o=parseInt(y/a*100)/100||0;e=r,n=y;try{h({loaded:y,total:a,speed:i,percent:o})}catch(t){}}};return function(e){if(e)clearTimeout(t),r();else{if(t)return;t=setTimeout(r,100)}}}();p.mapLimit(v,c,function(t,e){var c=t.PartNumber,p=(t.ETag,Math.min(a,t.PartNumber*s)-(t.PartNumber-1)*s),h=0;u.call(g,{Bucket:n,Region:r,Key:i,SliceSize:s,FileSize:a,PartNumber:c,UploadId:o,Body:f,SliceList:l,onProgress:function(t){y+=t.loaded-h,h=t.loaded,m()}},function(n,r){n?y-=h:(y+=p-h,t.ETag=r.ETag),m(!0),e(n||null,r)})},function(t,n){if(t)return e(t);e(null,{datas:n,UploadId:o,SliceList:l})})}function u(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.FileSize,s=t.Body,u=1*t.PartNumber,c=t.SliceSize,l=t.SliceList,f=this,h=c*(u-1),y=c,g=h+c;g>a&&(g=a,y=g-h);var v=d.fileSlice.call(s,h,g),m=l[1*u-1].ETag;p.retry(3,function(e){f.multipartUpload({Bucket:n,Region:r,Key:i,ContentLength:y,ContentSha1:m,PartNumber:u,UploadId:o,Body:v,onProgress:t.onProgress},function(t,n){return t?e(t):e(null,n)})},function(t,n){return e(t,n)})}function c(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.SliceList,s=this,u=a.map(function(t){return{PartNumber:t.PartNumber,ETag:t.ETag}});s.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:o,Parts:u},function(t,n){if(t)return e(t);e(null,n)})}function l(t,e){var n=t.Bucket,r=t.Region,i=t.Key,a=t.UploadId,s=t.Level||"task",u=t.AsyncLimit||1,c=this,l=new h;if(l.all("error",function(t){return e(t)}),l.all("get_abort_array",function(t){f.call(c,{Bucket:n,Region:r,Key:i,AsyncLimit:u,AbortArray:t},function(t,n){if(t)return e(t);e(null,n)})}),"bucket"===s)o.call(c,{Bucket:n,Region:r},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])});else if("file"===s){if(!i)return e("abort_upload_task_no_key");o.call(c,{Bucket:n,Region:r,Key:i},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])})}else{if("task"!==s)return e("abort_unknown_level");if(!a)return e("abort_upload_task_no_id");if(!i)return e("abort_upload_task_no_key");l.emit("get_abort_array",[{Key:i,UploadId:a}])}}function f(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.AbortArray,a=t.AsyncLimit,s=this;p.mapLimit(o,a,function(t,e){if(i&&i!=t.Key)return e(null,{KeyNotMatch:!0});var o=t.UploadId||t.UploadID;s.multipartAbort({Bucket:n,Region:r,Key:t.Key,UploadId:o},function(i,a){var s={Bucket:n,Region:r,Key:t.Key,UploadId:o};return i?e(null,{error:i,task:s}):e(null,{error:!1,task:s})})},function(t,n){if(t)return e(t);for(var r=[],i=[],o=0,a=n.length;o-1&&t%1==0&&t<=Ie}function w(t){return null!=t&&b(t.length)&&!m(t)}function _(){}function x(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function E(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&ti?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=r?t:tt(t,e,n)}function nt(t,e){for(var n=t.length;n--&&$(e,t[n],0)>-1;);return n}function rt(t,e){for(var n=-1,r=t.length;++n-1;);return n}function it(t){return t.split("")}function ot(t){return _n.test(t)}function at(t){return t.match(jn)||[]}function st(t){return ot(t)?at(t):it(t)}function ut(t){return null==t?"":Z(t)}function ct(t,e,n){if((t=ut(t))&&(n||void 0===e))return t.replace(Rn,"");if(!t||!(e=Z(e)))return t;var r=st(t),i=st(e);return et(r,rt(r,i),nt(r,i)+1).join("")}function lt(t){return t=t.toString().replace(Ln,""),t=t.match(On)[2].replace(" ",""),t=t?t.split(Dn):[],t=t.map(function(t){return ct(t.replace(Pn,""))})}function ft(t,e){var n={};W(t,function(t,e){function r(e,n){var r=Q(i,function(t){return e[t]});r.push(n),h(t).apply(null,r)}var i,o=p(t),a=!o&&1===t.length||o&&0===t.length;if(Ne(t))i=t.slice(0,-1),t=t[t.length-1],n[e]=i.concat(i.length>0?r:t);else if(a)n[e]=t;else{if(i=lt(t),0===t.length&&!o&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");o||i.pop(),n[e]=i.concat(r)}}),gn(n,e)}function pt(){this.head=this.tail=null,this.length=0}function ht(t,e){t.length=1,t.head=t.tail=e}function dt(t,e,n){function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(c.started=!0,Ne(t)||(t=[t]),0===t.length&&c.idle())return ce(function(){c.drain()});for(var r=0,i=t.length;r=0&&s.splice(o,1),i.callback.apply(i,arguments),null!=e&&c.error(e,i.data)}a<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var o=h(t),a=0,s=[],u=!1,c={_tasks:new pt,concurrency:e,payload:n,saturated:_,unsaturated:_,buffer:e/4,empty:_,drain:_,error:_,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){c.drain=_,c._tasks.empty()},unshift:function(t,e){r(t,!0,e)},remove:function(t){c._tasks.remove(t)},process:function(){if(!u){for(u=!0;!c.paused&&a2&&(i=o(arguments,1)),r[e]=i,n(t)})},function(t){n(t,r)})}function Ft(t,e){Ut(un,t,e)}function qt(t,e,n){Ut(M(e),t,n)}function zt(t,e){if(e=x(e||_),!Ne(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;nr?1:0}var i=h(e);cn(t,function(t,e){i(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Q(e.sort(r),Rt("value")))})}function Qt(t,e,n){var r=h(t);return ae(function(i,o){function a(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),u=!0,o(r)}var s,u=!1;i.push(function(){u||(o.apply(null,arguments),clearTimeout(s))}),s=setTimeout(a,e),r.apply(null,i)})}function Jt(t,e,n,r){for(var i=-1,o=mr(vr((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function Zt(t,e,n,r){var i=h(n);fn(Jt(0,t,1),e,i,r)}function te(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=Ne(t)?[]:{}),r=x(r||_);var i=h(n);un(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function ee(t,e){var n,r=null;e=e||_,Vn(t,function(t,e){h(t)(function(t,i){n=arguments.length>2?o(arguments,1):i,r=t,e(!t)})},function(){e(r,n)})}function ne(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function re(t,e,n){n=N(n||_);var r=h(e);if(!t())return n(null);var i=function(e){if(e)return n(e);if(t())return r(i);var a=o(arguments,1);n.apply(null,[null].concat(a))};r(i)}function ie(t,e,n){re(function(){return!t.apply(this,arguments)},e,n)}var oe,ae=function(t){return function(){var e=o(arguments),n=e.pop();t.call(this,e,n)}},se="function"==typeof t&&t,ue="object"==typeof n&&"function"==typeof n.nextTick;oe=se?t:ue?n.nextTick:s;var ce=u(oe),le="function"==typeof Symbol,fe="object"==typeof r&&r&&r.Object===Object&&r,pe="object"==typeof self&&self&&self.Object===Object&&self,he=fe||pe||Function("return this")(),de=he.Symbol,ye=Object.prototype,ge=ye.hasOwnProperty,ve=ye.toString,me=de?de.toStringTag:void 0,be=Object.prototype,we=be.toString,_e="[object Null]",xe="[object Undefined]",Ee=de?de.toStringTag:void 0,Ae="[object AsyncFunction]",Te="[object Function]",Se="[object GeneratorFunction]",Ce="[object Proxy]",Ie=9007199254740991,ke={},je="function"==typeof Symbol&&Symbol.iterator,Re=function(t){return je&&t[je]&&t[je]()},Oe="[object Arguments]",De=Object.prototype,Pe=De.hasOwnProperty,Le=De.propertyIsEnumerable,Be=T(function(){return arguments}())?T:function(t){return A(t)&&Pe.call(t,"callee")&&!Le.call(t,"callee")},Ne=Array.isArray,Me="object"==typeof e&&e&&!e.nodeType&&e,Ue=Me&&"object"==typeof i&&i&&!i.nodeType&&i,Fe=Ue&&Ue.exports===Me,qe=Fe?he.Buffer:void 0,ze=qe?qe.isBuffer:void 0,He=ze||S,Ke=9007199254740991,Ge=/^(?:0|[1-9]\d*)$/,We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var Ye="object"==typeof e&&e&&!e.nodeType&&e,Ve=Ye&&"object"==typeof i&&i&&!i.nodeType&&i,Xe=Ve&&Ve.exports===Ye,$e=Xe&&fe.process,Qe=function(){try{return $e&&$e.binding("util")}catch(t){}}(),Je=Qe&&Qe.isTypedArray,Ze=Je?function(t){return function(e){return t(e)}}(Je):I,tn=Object.prototype,en=tn.hasOwnProperty,nn=Object.prototype,rn=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),on=Object.prototype,an=on.hasOwnProperty,sn=F(U,1/0),un=function(t,e,n){(w(t)?q:sn)(t,h(e),n)},cn=z(H),ln=d(cn),fn=K(H),pn=F(fn,1),hn=d(pn),dn=function(t){var e=o(arguments,1);return function(){var n=o(arguments);return t.apply(null,e.concat(n))}},yn=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}(),gn=function(t,e,n){function r(t,e){v.push(function(){u(t,e)})}function i(){if(0===v.length&&0===d)return n(null,p);for(;v.length&&d2&&(r=o(arguments,1)),e){var i={};W(p,function(t,e){i[e]=t}),i[t]=r,y=!0,g=Object.create(null),n(e,i)}else p[t]=r,s(t)});d++;var i=h(e[e.length-1]);e.length>1?i(p,r):i(r)}}function c(e){var n=[];return W(t,function(t,r){Ne(t)&&$(t,e,0)>=0&&n.push(r)}),n}"function"==typeof e&&(n=e,e=null),n=x(n||_);var l=O(t),f=l.length;if(!f)return n(null);e||(e=f);var p={},d=0,y=!1,g=Object.create(null),v=[],m=[],b={};W(t,function(e,n){if(!Ne(e))return r(n,[e]),void m.push(n);var i=e.slice(0,e.length-1),o=i.length;if(0===o)return r(n,e),void m.push(n);b[n]=o,G(i,function(s){if(!t[s])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+s+"` in "+i.join(", "));a(s,function(){0===--o&&r(n,e)})})}),function(){for(var t,e=0;m.length;)t=m.pop(),e++,G(c(t),function(t){0==--b[t]&&m.push(t)});if(e!==f)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),i()},vn="[object Symbol]",mn=1/0,bn=de?de.prototype:void 0,wn=bn?bn.toString:void 0,_n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),xn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",En="\\ud83c[\\udffb-\\udfff]",An="(?:\\ud83c[\\udde6-\\uddff]){2}",Tn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",Cn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",An,Tn].join("|")+")[\\ufe0e\\ufe0f]?"+Sn+")*",In="[\\ufe0e\\ufe0f]?"+Sn+Cn,kn="(?:"+["[^\\ud800-\\udfff]"+xn+"?",xn,An,Tn,"[\\ud800-\\udfff]"].join("|")+")",jn=RegExp(En+"(?="+En+")|"+kn+In,"g"),Rn=/^\s+|\s+$/g,On=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Dn=/,/,Pn=/(=.+)?(\s*)$/,Ln=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},pt.prototype.empty=function(){for(;this.head;)this.shift();return this},pt.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},pt.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},pt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ht(this,t)},pt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ht(this,t)},pt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pt.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,n=0;n=i.priority;)i=i.next;for(var o=0,a=t.length;o=31}function i(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var i=0,o=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r),t}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function s(){var t;try{t=e.storage.debug}catch(t){}return t}e=t.exports=n(210),e.log=o,e.formatArgs=i,e.save=a,e.load=s,e.useColors=r,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(s())},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function i(t){function n(){}function i(){var t=i,n=+new Date,o=n-(c||n);t.diff=o,t.prev=c,t.curr=n,c=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var i=e.formatters[r];if("function"==typeof i){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a)),(i.log||e.log||console.log.bind(console)).apply(t,a)}n.enabled=!1,i.enabled=!0;var o=e.enabled(t)?i:n;return o.namespace=t,o}function o(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,i=0;i1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t=31}function i(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var i=0,o=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r),t}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function s(){var t;try{t=e.storage.debug}catch(t){}return t}e=t.exports=n(210),e.log=o,e.formatArgs=i,e.save=a,e.load=s,e.useColors=r,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(s())},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function i(t){function n(){}function i(){var t=i,n=+new Date,o=n-(c||n);t.diff=o,t.prev=c,t.curr=n,c=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var i=e.formatters[r];if("function"==typeof i){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a)),(i.log||e.log||console.log.bind(console)).apply(t,a)}n.enabled=!1,i.enabled=!0;var o=e.enabled(t)?i:n;return o.namespace=t,o}function o(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,i=0;i1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t true\n *\n * circle instanceof Shape;\n * // => true\n */\nfunction create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n}\n\nmodule.exports = create;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar freeGlobal = __webpack_require__(52);\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n\n\n/**/\n\nvar processNextTick = __webpack_require__(17);\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = __webpack_require__(11);\nutil.inherits = __webpack_require__(6);\n/**/\n\nvar Readable = __webpack_require__(45);\nvar Writable = __webpack_require__(30);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n processNextTick(cb, err);\n};\n\nfunction forEach(xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsNative = __webpack_require__(91),\n getValue = __webpack_require__(96);\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLRaw, XMLText, isEmpty, isFunction, isObject,\n hasProp = {}.hasOwnProperty;\n\n isObject = __webpack_require__(1);\n\n isFunction = __webpack_require__(19);\n\n isEmpty = __webpack_require__(118);\n\n XMLElement = null;\n\n XMLCData = null;\n\n XMLComment = null;\n\n XMLDeclaration = null;\n\n XMLDocType = null;\n\n XMLRaw = null;\n\n XMLText = null;\n\n module.exports = XMLNode = (function() {\n function XMLNode(parent) {\n this.parent = parent;\n this.options = this.parent.options;\n this.stringify = this.parent.stringify;\n if (XMLElement === null) {\n XMLElement = __webpack_require__(59);\n XMLCData = __webpack_require__(68);\n XMLComment = __webpack_require__(69);\n XMLDeclaration = __webpack_require__(57);\n XMLDocType = __webpack_require__(70);\n XMLRaw = __webpack_require__(193);\n XMLText = __webpack_require__(194);\n }\n }\n\n XMLNode.prototype.element = function(name, attributes, text) {\n var childNode, item, j, k, key, lastChild, len, len1, ref, val;\n lastChild = null;\n if (attributes == null) {\n attributes = {};\n }\n attributes = attributes.valueOf();\n if (!isObject(attributes)) {\n ref = [attributes, text], text = ref[0], attributes = ref[1];\n }\n if (name != null) {\n name = name.valueOf();\n }\n if (Array.isArray(name)) {\n for (j = 0, len = name.length; j < len; j++) {\n item = name[j];\n lastChild = this.element(item);\n }\n } else if (isFunction(name)) {\n lastChild = this.element(name.apply());\n } else if (isObject(name)) {\n for (key in name) {\n if (!hasProp.call(name, key)) continue;\n val = name[key];\n if (isFunction(val)) {\n val = val.apply();\n }\n if ((isObject(val)) && (isEmpty(val))) {\n val = null;\n }\n if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) {\n lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);\n } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && key.indexOf(this.stringify.convertPIKey) === 0) {\n lastChild = this.instruction(key.substr(this.stringify.convertPIKey.length), val);\n } else if (!this.options.separateArrayItems && Array.isArray(val)) {\n for (k = 0, len1 = val.length; k < len1; k++) {\n item = val[k];\n childNode = {};\n childNode[key] = item;\n lastChild = this.element(childNode);\n }\n } else if (isObject(val)) {\n lastChild = this.element(key);\n lastChild.element(val);\n } else {\n lastChild = this.element(key, val);\n }\n }\n } else {\n if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) {\n lastChild = this.text(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) {\n lastChild = this.cdata(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) {\n lastChild = this.comment(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) {\n lastChild = this.raw(text);\n } else {\n lastChild = this.node(name, attributes, text);\n }\n }\n if (lastChild == null) {\n throw new Error(\"Could not create any elements with: \" + name);\n }\n return lastChild;\n };\n\n XMLNode.prototype.insertBefore = function(name, attributes, text) {\n var child, i, removed;\n if (this.isRoot) {\n throw new Error(\"Cannot insert elements at root level\");\n }\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i);\n child = this.parent.element(name, attributes, text);\n Array.prototype.push.apply(this.parent.children, removed);\n return child;\n };\n\n XMLNode.prototype.insertAfter = function(name, attributes, text) {\n var child, i, removed;\n if (this.isRoot) {\n throw new Error(\"Cannot insert elements at root level\");\n }\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i + 1);\n child = this.parent.element(name, attributes, text);\n Array.prototype.push.apply(this.parent.children, removed);\n return child;\n };\n\n XMLNode.prototype.remove = function() {\n var i, ref;\n if (this.isRoot) {\n throw new Error(\"Cannot remove the root element\");\n }\n i = this.parent.children.indexOf(this);\n [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref = [])), ref;\n return this.parent;\n };\n\n XMLNode.prototype.node = function(name, attributes, text) {\n var child, ref;\n if (name != null) {\n name = name.valueOf();\n }\n if (attributes == null) {\n attributes = {};\n }\n attributes = attributes.valueOf();\n if (!isObject(attributes)) {\n ref = [attributes, text], text = ref[0], attributes = ref[1];\n }\n child = new XMLElement(this, name, attributes);\n if (text != null) {\n child.text(text);\n }\n this.children.push(child);\n return child;\n };\n\n XMLNode.prototype.text = function(value) {\n var child;\n child = new XMLText(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.cdata = function(value) {\n var child;\n child = new XMLCData(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.comment = function(value) {\n var child;\n child = new XMLComment(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.raw = function(value) {\n var child;\n child = new XMLRaw(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.declaration = function(version, encoding, standalone) {\n var doc, xmldec;\n doc = this.document();\n xmldec = new XMLDeclaration(doc, version, encoding, standalone);\n doc.xmldec = xmldec;\n return doc.root();\n };\n\n XMLNode.prototype.doctype = function(pubID, sysID) {\n var doc, doctype;\n doc = this.document();\n doctype = new XMLDocType(doc, pubID, sysID);\n doc.doctype = doctype;\n return doctype;\n };\n\n XMLNode.prototype.up = function() {\n if (this.isRoot) {\n throw new Error(\"The root node has no parent. Use doc() if you need to get the document object.\");\n }\n return this.parent;\n };\n\n XMLNode.prototype.root = function() {\n var child;\n if (this.isRoot) {\n return this;\n }\n child = this.parent;\n while (!child.isRoot) {\n child = child.parent;\n }\n return child;\n };\n\n XMLNode.prototype.document = function() {\n return this.root().documentObject;\n };\n\n XMLNode.prototype.end = function(options) {\n return this.document().toString(options);\n };\n\n XMLNode.prototype.prev = function() {\n var i;\n if (this.isRoot) {\n throw new Error(\"Root node has no siblings\");\n }\n i = this.parent.children.indexOf(this);\n if (i < 1) {\n throw new Error(\"Already at the first node\");\n }\n return this.parent.children[i - 1];\n };\n\n XMLNode.prototype.next = function() {\n var i;\n if (this.isRoot) {\n throw new Error(\"Root node has no siblings\");\n }\n i = this.parent.children.indexOf(this);\n if (i === -1 || i === this.parent.children.length - 1) {\n throw new Error(\"Already at the last node\");\n }\n return this.parent.children[i + 1];\n };\n\n XMLNode.prototype.importXMLBuilder = function(xmlbuilder) {\n var clonedRoot;\n clonedRoot = xmlbuilder.root().clone();\n clonedRoot.parent = this;\n clonedRoot.isRoot = false;\n this.children.push(clonedRoot);\n return this;\n };\n\n XMLNode.prototype.ele = function(name, attributes, text) {\n return this.element(name, attributes, text);\n };\n\n XMLNode.prototype.nod = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLNode.prototype.txt = function(value) {\n return this.text(value);\n };\n\n XMLNode.prototype.dat = function(value) {\n return this.cdata(value);\n };\n\n XMLNode.prototype.com = function(value) {\n return this.comment(value);\n };\n\n XMLNode.prototype.doc = function() {\n return this.document();\n };\n\n XMLNode.prototype.dec = function(version, encoding, standalone) {\n return this.declaration(version, encoding, standalone);\n };\n\n XMLNode.prototype.dtd = function(pubID, sysID) {\n return this.doctype(pubID, sysID);\n };\n\n XMLNode.prototype.e = function(name, attributes, text) {\n return this.element(name, attributes, text);\n };\n\n XMLNode.prototype.n = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLNode.prototype.t = function(value) {\n return this.text(value);\n };\n\n XMLNode.prototype.d = function(value) {\n return this.cdata(value);\n };\n\n XMLNode.prototype.c = function(value) {\n return this.comment(value);\n };\n\n XMLNode.prototype.r = function(value) {\n return this.raw(value);\n };\n\n XMLNode.prototype.u = function() {\n return this.up();\n };\n\n return XMLNode;\n\n })();\n\n}).call(this);\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(73)\nvar ieee754 = __webpack_require__(74)\nvar isArray = __webpack_require__(44)\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports) {\n\nvar g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9).Buffer))\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(20),\n getRawTag = __webpack_require__(92),\n objectToString = __webpack_require__(93);\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isFunction = __webpack_require__(19),\n isLength = __webpack_require__(33);\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar arrayLikeKeys = __webpack_require__(105),\n baseKeys = __webpack_require__(56),\n isArrayLike = __webpack_require__(13);\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports) {\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(window, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\n__webpack_require__(82);\nexports.setImmediate = setImmediate;\nexports.clearImmediate = clearImmediate;\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(12),\n isObject = __webpack_require__(1);\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar root = __webpack_require__(3);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports) {\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar listCacheClear = __webpack_require__(134),\n listCacheDelete = __webpack_require__(135),\n listCacheGet = __webpack_require__(136),\n listCacheHas = __webpack_require__(137),\n listCacheSet = __webpack_require__(138);\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar eq = __webpack_require__(21);\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(5);\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isKeyable = __webpack_require__(152);\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isSymbol = __webpack_require__(43);\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(Buffer) {\r\n\r\nvar md5 = __webpack_require__(75);\r\nvar CryptoJS = __webpack_require__(76);\r\nvar xml2js = __webpack_require__(77);\r\nvar xmlParser = new xml2js.Parser({explicitArray: false, ignoreAttrs: true});\r\nvar xmlBuilder = new xml2js.Builder();\r\n\r\n\r\n//测试用的key后面可以去掉\r\nvar getAuth = function (opt) {\r\n\r\n opt = opt || {};\r\n\r\n var SecretId = opt.SecretId;\r\n var SecretKey = opt.SecretKey;\r\n var method = (opt.method || 'get').toLowerCase();\r\n var pathname = opt.pathname || '/';\r\n var queryParams = opt.params || '';\r\n var headers = opt.headers || '';\r\n\r\n if (!SecretId) return console.error('lack of param SecretId');\r\n if (!SecretKey) return console.error('lack of param SecretKey');\r\n\r\n var getObjectKeys = function (obj) {\r\n var list = [];\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n list.push(key);\r\n }\r\n }\r\n return list.sort();\r\n };\r\n\r\n var obj2str = function (obj) {\r\n var i, key, val;\r\n var list = [];\r\n var keyList = Object.keys(obj);\r\n for (i = 0; i < keyList.length; i++) {\r\n key = keyList[i];\r\n val = obj[key] || '';\r\n key = key.toLowerCase();\r\n key = encodeURIComponent(key);\r\n list.push(key + '=' + encodeURIComponent(val));\r\n }\r\n return list.join('&');\r\n };\r\n\r\n // 签名有效起止时间\r\n var now = parseInt(new Date().getTime() / 1000) - 1;\r\n var expired = now;\r\n\r\n if (opt.expires === undefined) {\r\n expired += 600; // 签名过期时间为当前 + 600s\r\n } else {\r\n expired += (opt.expires * 1) || 0;\r\n }\r\n\r\n // 要用到的 Authorization 参数列表\r\n var qSignAlgorithm = 'sha1';\r\n var qAk = SecretId;\r\n var qSignTime = now + ';' + expired;\r\n var qKeyTime = now + ';' + expired;\r\n var qHeaderList = getObjectKeys(headers).join(';').toLowerCase();\r\n var qUrlParamList = getObjectKeys(queryParams).join(';').toLowerCase();\r\n\r\n // 签名算法说明文档:https://www.qcloud.com/document/product/436/7778\r\n // 步骤一:计算 SignKey\r\n var signKey = CryptoJS.HmacSHA1(qKeyTime, SecretKey).toString();\r\n\r\n // 步骤二:构成 FormatString\r\n var formatString = [method, pathname, obj2str(queryParams), obj2str(headers), ''].join('\\n');\r\n\r\n // 步骤三:计算 StringToSign\r\n var stringToSign = ['sha1', qSignTime, CryptoJS.SHA1(formatString).toString(), ''].join('\\n');\r\n\r\n // 步骤四:计算 Signature\r\n var qSignature = CryptoJS.HmacSHA1(stringToSign, signKey).toString();\r\n\r\n // 步骤五:构造 Authorization\r\n var authorization = [\r\n 'q-sign-algorithm=' + qSignAlgorithm,\r\n 'q-ak=' + qAk,\r\n 'q-sign-time=' + qSignTime,\r\n 'q-key-time=' + qKeyTime,\r\n 'q-header-list=' + qHeaderList,\r\n 'q-url-param-list=' + qUrlParamList,\r\n 'q-signature=' + qSignature\r\n ].join('&');\r\n\r\n return authorization;\r\n\r\n};\r\n\r\n// XML 对象转 JSON 对象\r\nvar xml2json = function (bodyStr) {\r\n var d = {};\r\n xmlParser.parseString(bodyStr, function (err, result) {\r\n d = result;\r\n });\r\n\r\n return d;\r\n};\r\n\r\n// JSON 对象转 XML 对象\r\nvar json2xml = function (json) {\r\n var xml = xmlBuilder.buildObject(json);\r\n return xml;\r\n};\r\n\r\n// 清除对象里值为的 undefined 或 null 的属性\r\nvar clearKey = function (obj) {\r\n var retObj = {};\r\n for (var key in obj) {\r\n if (obj[key] !== undefined && obj[key] !== null) {\r\n retObj[key] = obj[key];\r\n }\r\n }\r\n return retObj;\r\n};\r\n\r\nvar readAsBinaryString = function (blob, callback) {\r\n var readFun;\r\n if (FileReader.prototype.readAsBinaryString) {\r\n readFun = FileReader.prototype.readAsBinaryString;\r\n } else if (FileReader.prototype.readAsArrayBuffer) { // 在 ie11 添加 readAsBinaryString 兼容\r\n readFun = function (fileData) {\r\n var binary = \"\";\r\n var pt = this;\r\n var reader = new FileReader();\r\n reader.onload = function (e) {\r\n var bytes = new Uint8Array(reader.result);\r\n var length = bytes.byteLength;\r\n for (var i = 0; i < length; i++) {\r\n binary += String.fromCharCode(bytes[i]);\r\n }\r\n callback(binary);\r\n };\r\n reader.readAsArrayBuffer(fileData);\r\n };\r\n } else {\r\n console.error('FileReader not support readAsBinaryString');\r\n }\r\n readFun.call(this, blob);\r\n}\r\n\r\n// 获取文件 sha1 值\r\nvar getFileSHA = function (blob, callback) {\r\n readAsBinaryString(blob, function (content) {\r\n CryptoJS.SHA1(content).toString();\r\n });\r\n};\r\n\r\n// 获取文件 md5 值\r\nvar getFileMd5 = function (blob, callback) {\r\n readAsBinaryString(blob, function (content) {\r\n md5(content);\r\n });\r\n};\r\n\r\n// 简单的属性复制方法\r\nfunction extend(target, source) {\r\n for (var method in source) {\r\n if (!target[method]) {\r\n target[method] = source[method];\r\n }\r\n }\r\n return target;\r\n}\r\n\r\nvar binaryBase64 = function (str) {\r\n var i, len, char, arr = [];\r\n for (i = 0, len = str.length / 2; i < len; i++) {\r\n char = parseInt(str[i * 2] + str[i * 2 + 1], 16);\r\n arr.push(char);\r\n }\r\n return new Buffer(arr).toString('base64');\r\n};\r\n\r\nvar checkParams = function (apiName, params) {\r\n var bucket = params.Bucket;\r\n var region = params.Region;\r\n var object = params.Key;\r\n if (apiName.indexOf('Bucket') > -1 || apiName === 'deleteMultipleObject' || apiName === 'multipartList') {\r\n return bucket && region;\r\n }\r\n if (apiName.indexOf('Object') > -1 || apiName.indexOf('multipart') > -1 || apiName === 'sliceUploadFile' || apiName === 'abortUploadTask') {\r\n return bucket && region && object;\r\n }\r\n return true;\r\n};\r\n\r\n\r\nvar apiWrapper = function (apiName, apiFn) {\r\n return function (params, callback) {\r\n callback = callback || function () { };\r\n if (apiName !== 'getService') {\r\n // 判断参数是否完整\r\n if (!checkParams(apiName, params)) {\r\n callback({error: 'lack of required params'});\r\n return;\r\n }\r\n // 优化 Key 参数\r\n if (params.Key && params.Key.indexOf('/') === 0) {\r\n callback({error: 'params Key can not start width \"/\"'});\r\n return;\r\n }\r\n // 兼容带有 AppId 的 Bucket\r\n var appId, bucket = params.Bucket;\r\n if (bucket && bucket.indexOf('-') > -1) {\r\n var arr = bucket.split('-');\r\n appId = arr[1];\r\n bucket = arr[0];\r\n params.AppId = appId;\r\n params.Bucket = bucket;\r\n }\r\n }\r\n var res = apiFn.call(this, params, callback);\r\n if (apiName === 'getAuth') {\r\n return res;\r\n } else {\r\n return;\r\n }\r\n }\r\n};\r\n\r\nvar fileSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;\r\n\r\nvar util = {\r\n apiWrapper: apiWrapper,\r\n getAuth: getAuth,\r\n xml2json: xml2json,\r\n json2xml: json2xml,\r\n md5: md5,\r\n clearKey: clearKey,\r\n getFileSHA: getFileSHA,\r\n getFileMd5: getFileMd5,\r\n extend: extend,\r\n binaryBase64: binaryBase64,\r\n fileSlice: fileSlice,\r\n};\r\n\r\n\r\nmodule.exports = util;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9).Buffer))\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports = module.exports = __webpack_require__(45);\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(30);\nexports.Duplex = __webpack_require__(4);\nexports.Transform = __webpack_require__(48);\nexports.PassThrough = __webpack_require__(84);\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(9)\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process, setImmediate) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n\n\n/**/\n\nvar processNextTick = __webpack_require__(17);\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = __webpack_require__(11);\nutil.inherits = __webpack_require__(6);\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(83)\n};\n/**/\n\n/**/\nvar Stream = __webpack_require__(46);\n/**/\n\n/**/\nvar Buffer = __webpack_require__(29).Buffer;\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Object.prototype.toString.call(obj) === '[object Uint8Array]' || Buffer.isBuffer(obj);\n}\n/**/\n\nvar destroyImpl = __webpack_require__(47);\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(4);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(4);\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = _isUint8Array(chunk) && !state.objectMode;\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n processNextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n processNextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequestCount = 0;\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n processNextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) processNextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(18).setImmediate))\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(9).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports) {\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports) {\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports) {\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports) {\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsArguments = __webpack_require__(107),\n isObjectLike = __webpack_require__(15);\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(3),\n stubFalse = __webpack_require__(108);\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports) {\n\nmodule.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tif(!module.children) module.children = [];\r\n\t\tObject.defineProperty(module, \"loaded\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.l;\r\n\t\t\t}\r\n\t\t});\r\n\t\tObject.defineProperty(module, \"id\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.i;\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n};\r\n\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsTypedArray = __webpack_require__(109),\n baseUnary = __webpack_require__(110),\n nodeUtil = __webpack_require__(111);\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(5),\n root = __webpack_require__(3);\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar mapCacheClear = __webpack_require__(144),\n mapCacheDelete = __webpack_require__(151),\n mapCacheGet = __webpack_require__(153),\n mapCacheHas = __webpack_require__(154),\n mapCacheSet = __webpack_require__(155);\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArray = __webpack_require__(2),\n isSymbol = __webpack_require__(43);\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(12),\n isObjectLike = __webpack_require__(15);\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n/**/\n\nvar processNextTick = __webpack_require__(17);\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(44);\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = __webpack_require__(16).EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = __webpack_require__(46);\n/**/\n\n// TODO(bmeurer): Change this back to const once hole checks are\n// properly optimized away early in Ignition+TurboFan.\n/**/\nvar Buffer = __webpack_require__(29).Buffer;\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Object.prototype.toString.call(obj) === '[object Uint8Array]' || Buffer.isBuffer(obj);\n}\n/**/\n\n/**/\nvar util = __webpack_require__(11);\nutil.inherits = __webpack_require__(6);\n/**/\n\n/**/\nvar debugUtil = __webpack_require__(80);\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = __webpack_require__(81);\nvar destroyImpl = __webpack_require__(47);\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') {\n return emitter.prependListener(event, fn);\n } else {\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n }\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(4);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = __webpack_require__(31).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(4);\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && Object.getPrototypeOf(chunk) !== Buffer.prototype && !state.objectMode) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = __webpack_require__(31).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], self.emit.bind(self, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach(xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(16).EventEmitter;\n\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**/\n\nvar processNextTick = __webpack_require__(17);\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n processNextTick(emitErrorNT, this, err);\n }\n return;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n processNextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(4);\n\n/**/\nvar util = __webpack_require__(11);\nutil.inherits = __webpack_require__(6);\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction TransformState(stream) {\n this.afterTransform = function (er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n this.writeencoding = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return stream.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined) stream.push(data);\n\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.once('prefinish', function () {\n if (typeof this._flush === 'function') this._flush(function (er, data) {\n done(stream, er, data);\n });else done(stream);\n });\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data !== null && data !== undefined) stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (ts.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseAssignValue = __webpack_require__(50),\n eq = __webpack_require__(21);\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar defineProperty = __webpack_require__(51);\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(5);\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports) {\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar assignValue = __webpack_require__(49),\n baseAssignValue = __webpack_require__(50);\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar eq = __webpack_require__(21),\n isArrayLike = __webpack_require__(13),\n isIndex = __webpack_require__(34),\n isObject = __webpack_require__(1);\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isPrototype = __webpack_require__(35),\n nativeKeys = __webpack_require__(112);\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLDeclaration, XMLNode, create, isObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n create = __webpack_require__(0);\n\n isObject = __webpack_require__(1);\n\n XMLNode = __webpack_require__(8);\n\n module.exports = XMLDeclaration = (function(superClass) {\n extend(XMLDeclaration, superClass);\n\n function XMLDeclaration(parent, version, encoding, standalone) {\n var ref;\n XMLDeclaration.__super__.constructor.call(this, parent);\n if (isObject(version)) {\n ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone;\n }\n if (!version) {\n version = '1.0';\n }\n this.version = this.stringify.xmlVersion(version);\n if (encoding != null) {\n this.encoding = this.stringify.xmlEncoding(encoding);\n }\n if (standalone != null) {\n this.standalone = this.stringify.xmlStandalone(standalone);\n }\n }\n\n XMLDeclaration.prototype.toString = function(options, level) {\n var indent, newline, offset, pretty, r, ref, ref1, ref2, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n if (pretty) {\n r += space;\n }\n r += '';\n if (pretty) {\n r += newline;\n }\n return r;\n };\n\n return XMLDeclaration;\n\n })(XMLNode);\n\n}).call(this);\n\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DataView = __webpack_require__(119),\n Map = __webpack_require__(40),\n Promise = __webpack_require__(120),\n Set = __webpack_require__(121),\n WeakMap = __webpack_require__(122),\n baseGetTag = __webpack_require__(12),\n toSource = __webpack_require__(53);\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLAttribute, XMLElement, XMLNode, XMLProcessingInstruction, create, every, isFunction, isObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n create = __webpack_require__(0);\n\n isObject = __webpack_require__(1);\n\n isFunction = __webpack_require__(19);\n\n every = __webpack_require__(123);\n\n XMLNode = __webpack_require__(8);\n\n XMLAttribute = __webpack_require__(188);\n\n XMLProcessingInstruction = __webpack_require__(67);\n\n module.exports = XMLElement = (function(superClass) {\n extend(XMLElement, superClass);\n\n function XMLElement(parent, name, attributes) {\n XMLElement.__super__.constructor.call(this, parent);\n if (name == null) {\n throw new Error(\"Missing element name\");\n }\n this.name = this.stringify.eleName(name);\n this.children = [];\n this.instructions = [];\n this.attributes = {};\n if (attributes != null) {\n this.attribute(attributes);\n }\n }\n\n XMLElement.prototype.clone = function() {\n var att, attName, clonedSelf, i, len, pi, ref, ref1;\n clonedSelf = create(XMLElement.prototype, this);\n if (clonedSelf.isRoot) {\n clonedSelf.documentObject = null;\n }\n clonedSelf.attributes = {};\n ref = this.attributes;\n for (attName in ref) {\n if (!hasProp.call(ref, attName)) continue;\n att = ref[attName];\n clonedSelf.attributes[attName] = att.clone();\n }\n clonedSelf.instructions = [];\n ref1 = this.instructions;\n for (i = 0, len = ref1.length; i < len; i++) {\n pi = ref1[i];\n clonedSelf.instructions.push(pi.clone());\n }\n clonedSelf.children = [];\n this.children.forEach(function(child) {\n var clonedChild;\n clonedChild = child.clone();\n clonedChild.parent = clonedSelf;\n return clonedSelf.children.push(clonedChild);\n });\n return clonedSelf;\n };\n\n XMLElement.prototype.attribute = function(name, value) {\n var attName, attValue;\n if (name != null) {\n name = name.valueOf();\n }\n if (isObject(name)) {\n for (attName in name) {\n if (!hasProp.call(name, attName)) continue;\n attValue = name[attName];\n this.attribute(attName, attValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n if (!this.options.skipNullAttributes || (value != null)) {\n this.attributes[name] = new XMLAttribute(this, name, value);\n }\n }\n return this;\n };\n\n XMLElement.prototype.removeAttribute = function(name) {\n var attName, i, len;\n if (name == null) {\n throw new Error(\"Missing attribute name\");\n }\n name = name.valueOf();\n if (Array.isArray(name)) {\n for (i = 0, len = name.length; i < len; i++) {\n attName = name[i];\n delete this.attributes[attName];\n }\n } else {\n delete this.attributes[name];\n }\n return this;\n };\n\n XMLElement.prototype.instruction = function(target, value) {\n var i, insTarget, insValue, instruction, len;\n if (target != null) {\n target = target.valueOf();\n }\n if (value != null) {\n value = value.valueOf();\n }\n if (Array.isArray(target)) {\n for (i = 0, len = target.length; i < len; i++) {\n insTarget = target[i];\n this.instruction(insTarget);\n }\n } else if (isObject(target)) {\n for (insTarget in target) {\n if (!hasProp.call(target, insTarget)) continue;\n insValue = target[insTarget];\n this.instruction(insTarget, insValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n instruction = new XMLProcessingInstruction(this, target, value);\n this.instructions.push(instruction);\n }\n return this;\n };\n\n XMLElement.prototype.toString = function(options, level) {\n var att, child, i, indent, instruction, j, len, len1, name, newline, offset, pretty, r, ref, ref1, ref2, ref3, ref4, ref5, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n ref3 = this.instructions;\n for (i = 0, len = ref3.length; i < len; i++) {\n instruction = ref3[i];\n r += instruction.toString(options, level);\n }\n if (pretty) {\n r += space;\n }\n r += '<' + this.name;\n ref4 = this.attributes;\n for (name in ref4) {\n if (!hasProp.call(ref4, name)) continue;\n att = ref4[name];\n r += att.toString(options);\n }\n if (this.children.length === 0 || every(this.children, function(e) {\n return e.value === '';\n })) {\n r += '/>';\n if (pretty) {\n r += newline;\n }\n } else if (pretty && this.children.length === 1 && (this.children[0].value != null)) {\n r += '>';\n r += this.children[0].value;\n r += '';\n r += newline;\n } else {\n r += '>';\n if (pretty) {\n r += newline;\n }\n ref5 = this.children;\n for (j = 0, len1 = ref5.length; j < len1; j++) {\n child = ref5[j];\n r += child.toString(options, level + 1);\n }\n if (pretty) {\n r += space;\n }\n r += '';\n if (pretty) {\n r += newline;\n }\n }\n return r;\n };\n\n XMLElement.prototype.att = function(name, value) {\n return this.attribute(name, value);\n };\n\n XMLElement.prototype.ins = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLElement.prototype.a = function(name, value) {\n return this.attribute(name, value);\n };\n\n XMLElement.prototype.i = function(target, value) {\n return this.instruction(target, value);\n };\n\n return XMLElement;\n\n })(XMLNode);\n\n}).call(this);\n\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ListCache = __webpack_require__(22),\n stackClear = __webpack_require__(139),\n stackDelete = __webpack_require__(140),\n stackGet = __webpack_require__(141),\n stackHas = __webpack_require__(142),\n stackSet = __webpack_require__(143);\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsEqualDeep = __webpack_require__(156),\n isObjectLike = __webpack_require__(15);\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar SetCache = __webpack_require__(157),\n arraySome = __webpack_require__(160),\n cacheHas = __webpack_require__(161);\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(1);\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports) {\n\n/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar castPath = __webpack_require__(66),\n toKey = __webpack_require__(26);\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArray = __webpack_require__(2),\n isKey = __webpack_require__(42),\n stringToPath = __webpack_require__(176),\n toString = __webpack_require__(179);\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLProcessingInstruction, create;\n\n create = __webpack_require__(0);\n\n module.exports = XMLProcessingInstruction = (function() {\n function XMLProcessingInstruction(parent, target, value) {\n this.stringify = parent.stringify;\n if (target == null) {\n throw new Error(\"Missing instruction target\");\n }\n this.target = this.stringify.insTarget(target);\n if (value) {\n this.value = this.stringify.insValue(value);\n }\n }\n\n XMLProcessingInstruction.prototype.clone = function() {\n return create(XMLProcessingInstruction.prototype, this);\n };\n\n XMLProcessingInstruction.prototype.toString = function(options, level) {\n var indent, newline, offset, pretty, r, ref, ref1, ref2, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n if (pretty) {\n r += space;\n }\n r += '';\n if (pretty) {\n r += newline;\n }\n return r;\n };\n\n return XMLProcessingInstruction;\n\n })();\n\n}).call(this);\n\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLCData, XMLNode, create,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n create = __webpack_require__(0);\n\n XMLNode = __webpack_require__(8);\n\n module.exports = XMLCData = (function(superClass) {\n extend(XMLCData, superClass);\n\n function XMLCData(parent, text) {\n XMLCData.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing CDATA text\");\n }\n this.text = this.stringify.cdata(text);\n }\n\n XMLCData.prototype.clone = function() {\n return create(XMLCData.prototype, this);\n };\n\n XMLCData.prototype.toString = function(options, level) {\n var indent, newline, offset, pretty, r, ref, ref1, ref2, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n if (pretty) {\n r += space;\n }\n r += '';\n if (pretty) {\n r += newline;\n }\n return r;\n };\n\n return XMLCData;\n\n })(XMLNode);\n\n}).call(this);\n\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLComment, XMLNode, create,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n create = __webpack_require__(0);\n\n XMLNode = __webpack_require__(8);\n\n module.exports = XMLComment = (function(superClass) {\n extend(XMLComment, superClass);\n\n function XMLComment(parent, text) {\n XMLComment.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing comment text\");\n }\n this.text = this.stringify.comment(text);\n }\n\n XMLComment.prototype.clone = function() {\n return create(XMLComment.prototype, this);\n };\n\n XMLComment.prototype.toString = function(options, level) {\n var indent, newline, offset, pretty, r, ref, ref1, ref2, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n if (pretty) {\n r += space;\n }\n r += '';\n if (pretty) {\n r += newline;\n }\n return r;\n };\n\n return XMLComment;\n\n })(XMLNode);\n\n}).call(this);\n\n\n/***/ }),\n/* 70 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.9.1\n(function() {\n var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLProcessingInstruction, create, isObject;\n\n create = __webpack_require__(0);\n\n isObject = __webpack_require__(1);\n\n XMLCData = __webpack_require__(68);\n\n XMLComment = __webpack_require__(69);\n\n XMLDTDAttList = __webpack_require__(189);\n\n XMLDTDEntity = __webpack_require__(190);\n\n XMLDTDElement = __webpack_require__(191);\n\n XMLDTDNotation = __webpack_require__(192);\n\n XMLProcessingInstruction = __webpack_require__(67);\n\n module.exports = XMLDocType = (function() {\n function XMLDocType(parent, pubID, sysID) {\n var ref, ref1;\n this.documentObject = parent;\n this.stringify = this.documentObject.stringify;\n this.children = [];\n if (isObject(pubID)) {\n ref = pubID, pubID = ref.pubID, sysID = ref.sysID;\n }\n if (sysID == null) {\n ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1];\n }\n if (pubID != null) {\n this.pubID = this.stringify.dtdPubID(pubID);\n }\n if (sysID != null) {\n this.sysID = this.stringify.dtdSysID(sysID);\n }\n }\n\n XMLDocType.prototype.element = function(name, value) {\n var child;\n child = new XMLDTDElement(this, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n var child;\n child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.entity = function(name, value) {\n var child;\n child = new XMLDTDEntity(this, false, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.pEntity = function(name, value) {\n var child;\n child = new XMLDTDEntity(this, true, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.notation = function(name, value) {\n var child;\n child = new XMLDTDNotation(this, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.cdata = function(value) {\n var child;\n child = new XMLCData(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.comment = function(value) {\n var child;\n child = new XMLComment(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.instruction = function(target, value) {\n var child;\n child = new XMLProcessingInstruction(this, target, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.root = function() {\n return this.documentObject.root();\n };\n\n XMLDocType.prototype.document = function() {\n return this.documentObject;\n };\n\n XMLDocType.prototype.toString = function(options, level) {\n var child, i, indent, len, newline, offset, pretty, r, ref, ref1, ref2, ref3, space;\n pretty = (options != null ? options.pretty : void 0) || false;\n indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' ';\n offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0;\n newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\\n';\n level || (level = 0);\n space = new Array(level + offset + 1).join(indent);\n r = '';\n if (pretty) {\n r += space;\n }\n r += ' 0) {\n r += ' [';\n if (pretty) {\n r += newline;\n }\n ref3 = this.children;\n for (i = 0, len = ref3.length; i < len; i++) {\n child = ref3[i];\n r += child.toString(options, level + 1);\n }\n r += ']';\n }\n r += '>';\n if (pretty) {\n r += newline;\n }\n return r;\n };\n\n XMLDocType.prototype.ele = function(name, value) {\n return this.element(name, value);\n };\n\n XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue);\n };\n\n XMLDocType.prototype.ent = function(name, value) {\n return this.entity(name, value);\n };\n\n XMLDocType.prototype.pent = function(name, value) {\n return this.pEntity(name, value);\n };\n\n XMLDocType.prototype.not = function(name, value) {\n return this.notation(name, value);\n };\n\n XMLDocType.prototype.dat = function(value) {\n return this.cdata(value);\n };\n\n XMLDocType.prototype.com = function(value) {\n return this.comment(value);\n };\n\n XMLDocType.prototype.ins = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLDocType.prototype.up = function() {\n return this.root();\n };\n\n XMLDocType.prototype.doc = function() {\n return this.document();\n };\n\n return XMLDocType;\n\n })();\n\n}).call(this);\n\n\n/***/ }),\n/* 71 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar COS = __webpack_require__(72);\r\nmodule.exports = COS;\n\n/***/ }),\n/* 72 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n\r\nvar util = __webpack_require__(27);\r\nvar base = __webpack_require__(197);\r\nvar advance = __webpack_require__(205);\r\nvar pkg = __webpack_require__(212);\r\n\r\n// 对外暴露的类\r\nvar COS = function (options) {\r\n options = options || {};\r\n this.AppId = options.AppId;\r\n this.SecretId = options.SecretId;\r\n this.SecretKey = options.SecretKey;\r\n this.getAuthorization = options.getAuthorization;\r\n};\r\nutil.extend(COS.prototype, base);\r\nutil.extend(COS.prototype, advance);\r\n\r\nCOS.getAuthorization = util.getAuth;\r\nCOS.version = pkg.version;\r\n\r\nmodule.exports = window.COS = COS;\r\n\n\n/***/ }),\n/* 73 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction placeHoldersCount (b64) {\n var len = b64.length\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // the number of equal signs (place holders)\n // if there are two placeholders, than the two characters before it\n // represent one byte\n // if there is only one, then the three characters before it represent 2 bytes\n // this is just a cheap hack to not do indexOf twice\n return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0\n}\n\nfunction byteLength (b64) {\n // base64 is 4/3 + up to two characters of the original data\n return (b64.length * 3 / 4) - placeHoldersCount(b64)\n}\n\nfunction toByteArray (b64) {\n var i, l, tmp, placeHolders, arr\n var len = b64.length\n placeHolders = placeHoldersCount(b64)\n\n arr = new Arr((len * 3 / 4) - placeHolders)\n\n // if there are placeholders, only get up to the last complete 4 chars\n l = placeHolders > 0 ? len - 4 : len\n\n var L = 0\n\n for (i = 0; i < l; i += 4) {\n tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]\n arr[L++] = (tmp >> 16) & 0xFF\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n if (placeHolders === 2) {\n tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[L++] = tmp & 0xFF\n } else if (placeHolders === 1) {\n tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var output = ''\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n output += lookup[tmp >> 2]\n output += lookup[(tmp << 4) & 0x3F]\n output += '=='\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + (uint8[len - 1])\n output += lookup[tmp >> 10]\n output += lookup[(tmp >> 4) & 0x3F]\n output += lookup[(tmp << 2) & 0x3F]\n output += '='\n }\n\n parts.push(output)\n\n return parts.join('')\n}\n\n\n/***/ }),\n/* 74 */\n/***/ (function(module, exports) {\n\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n/***/ }),\n/* 75 */\n/***/ (function(module, exports) {\n\n/**\n *\n * MD5 (Message-Digest Algorithm)\n * http://www.webtoolkit.info/\n *\n **/\n\nvar md5 = function (string) {\n\n function RotateLeft(lValue, iShiftBits) {\n return (lValue<>>(32-iShiftBits));\n }\n\n function AddUnsigned(lX,lY) {\n var lX4,lY4,lX8,lY8,lResult;\n lX8 = (lX & 0x80000000);\n lY8 = (lY & 0x80000000);\n lX4 = (lX & 0x40000000);\n lY4 = (lY & 0x40000000);\n lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);\n if (lX4 & lY4) {\n return (lResult ^ 0x80000000 ^ lX8 ^ lY8);\n }\n if (lX4 | lY4) {\n if (lResult & 0x40000000) {\n return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);\n } else {\n return (lResult ^ 0x40000000 ^ lX8 ^ lY8);\n }\n } else {\n return (lResult ^ lX8 ^ lY8);\n }\n }\n\n function F(x,y,z) { return (x & y) | ((~x) & z); }\n function G(x,y,z) { return (x & z) | (y & (~z)); }\n function H(x,y,z) { return (x ^ y ^ z); }\n function I(x,y,z) { return (y ^ (x | (~z))); }\n\n function FF(a,b,c,d,x,s,ac) {\n a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));\n return AddUnsigned(RotateLeft(a, s), b);\n };\n\n function GG(a,b,c,d,x,s,ac) {\n a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));\n return AddUnsigned(RotateLeft(a, s), b);\n };\n\n function HH(a,b,c,d,x,s,ac) {\n a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));\n return AddUnsigned(RotateLeft(a, s), b);\n };\n\n function II(a,b,c,d,x,s,ac) {\n a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));\n return AddUnsigned(RotateLeft(a, s), b);\n };\n\n function ConvertToWordArray(string) {\n var lWordCount;\n var lMessageLength = string.length;\n var lNumberOfWords_temp1=lMessageLength + 8;\n var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;\n var lNumberOfWords = (lNumberOfWords_temp2+1)*16;\n var lWordArray=Array(lNumberOfWords-1);\n var lBytePosition = 0;\n var lByteCount = 0;\n while ( lByteCount < lMessageLength ) {\n lWordCount = (lByteCount-(lByteCount % 4))/4;\n lBytePosition = (lByteCount % 4)*8;\n lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<>>29;\n return lWordArray;\n };\n\n function WordToHex(lValue) {\n var WordToHexValue=\"\",WordToHexValue_temp=\"\",lByte,lCount;\n for (lCount = 0;lCount<=3;lCount++) {\n lByte = (lValue>>>(lCount*8)) & 255;\n WordToHexValue_temp = \"0\" + lByte.toString(16);\n WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);\n }\n return WordToHexValue;\n };\n\n function Utf8Encode(string) {\n string = string.replace(/\\r\\n/g,\"\\n\");\n var utftext = \"\";\n\n for (var n = 0; n < string.length; n++) {\n\n var c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n }\n else if((c > 127) && (c < 2048)) {\n utftext += String.fromCharCode((c >> 6) | 192);\n utftext += String.fromCharCode((c & 63) | 128);\n }\n else {\n utftext += String.fromCharCode((c >> 12) | 224);\n utftext += String.fromCharCode(((c >> 6) & 63) | 128);\n utftext += String.fromCharCode((c & 63) | 128);\n }\n\n }\n\n return utftext;\n };\n\n var x=Array();\n var k,AA,BB,CC,DD,a,b,c,d;\n var S11=7, S12=12, S13=17, S14=22;\n var S21=5, S22=9 , S23=14, S24=20;\n var S31=4, S32=11, S33=16, S34=23;\n var S41=6, S42=10, S43=15, S44=21;\n\n string = Utf8Encode(string);\n\n x = ConvertToWordArray(string);\n\n a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;\n\n for (k=0;k>>2]|=(q[b>>>2]>>>24-8*(b%4)&255)<<24-8*((f+b)%4);else if(65535>>2]=q[b>>>2];else c.push.apply(c,q);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<\r\n 32-8*(c%4);a.length=g.ceil(c/4)},clone:function(){var a=k.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],b=0;b>>2]>>>24-8*(f%4)&255;b.push((d>>>4).toString(16));b.push((d&15).toString(16))}return b.join(\"\")},parse:function(a){for(var c=a.length,b=[],f=0;f>>3]|=parseInt(a.substr(f,\r\n 2),16)<<24-4*(f%8);return new p.init(b,c/2)}},j=b.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var b=[],f=0;f>>2]>>>24-8*(f%4)&255));return b.join(\"\")},parse:function(a){for(var c=a.length,b=[],f=0;f>>2]|=(a.charCodeAt(f)&255)<<24-8*(f%4);return new p.init(b,c)}},h=b.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(c){throw Error(\"Malformed UTF-8 data\");}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},\r\n r=d.BufferedBlockAlgorithm=k.extend({reset:function(){this._data=new p.init;this._nDataBytes=0},_append:function(a){\"string\"==typeof a&&(a=h.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,b=c.words,f=c.sigBytes,d=this.blockSize,e=f/(4*d),e=a?g.ceil(e):g.max((e|0)-this._minBufferSize,0);a=e*d;f=g.min(4*a,f);if(a){for(var k=0;ka;a++){if(16>a)m[a]=d[e+a]|0;else{var c=m[a-3]^m[a-8]^m[a-14]^m[a-16];m[a]=c<<1|c>>>31}c=(n<<5|n>>>27)+l+m[a];c=20>a?c+((j&h|~j&g)+1518500249):40>a?c+((j^h^g)+1859775393):60>a?c+((j&h|j&g|h&g)-1894007588):c+((j^h^\r\ng)-899497514);l=g;g=h;h=j<<30|j>>>2;j=n;n=c}b[0]=b[0]+n|0;b[1]=b[1]+j|0;b[2]=b[2]+h|0;b[3]=b[3]+g|0;b[4]=b[4]+l|0},_doFinalize:function(){var d=this._data,e=d.words,b=8*this._nDataBytes,g=8*d.sigBytes;e[g>>>5]|=128<<24-g%32;e[(g+64>>>9<<4)+14]=Math.floor(b/4294967296);e[(g+64>>>9<<4)+15]=b;d.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var e=d.clone.call(this);e._hash=this._hash.clone();return e}});g.SHA1=d._createHelper(l);g.HmacSHA1=d._createHmacHelper(l)})();\r\n(function(){var g=CryptoJS,l=g.enc.Utf8;g.algo.HMAC=g.lib.Base.extend({init:function(e,d){e=this._hasher=new e.init;\"string\"==typeof d&&(d=l.parse(d));var g=e.blockSize,k=4*g;d.sigBytes>k&&(d=e.finalize(d));d.clamp();for(var p=this._oKey=d.clone(),b=this._iKey=d.clone(),n=p.words,j=b.words,h=0;h>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\r\n var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\r\n\r\n var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\r\n\r\n for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\r\n base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\r\n }\r\n }\r\n\r\n // Add padding\r\n var paddingChar = map.charAt(64);\r\n if (paddingChar) {\r\n while (base64Chars.length % 4) {\r\n base64Chars.push(paddingChar);\r\n }\r\n }\r\n\r\n return base64Chars.join('');\r\n },\r\n\r\n /**\r\n * Converts a Base64 string to a word array.\r\n *\r\n * @param {string} base64Str The Base64 string.\r\n *\r\n * @return {WordArray} The word array.\r\n *\r\n * @static\r\n *\r\n * @example\r\n *\r\n * var wordArray = CryptoJS.enc.Base64.parse(base64String);\r\n */\r\n parse: function (base64Str) {\r\n // Shortcuts\r\n var base64StrLength = base64Str.length;\r\n var map = this._map;\r\n\r\n // Ignore padding\r\n var paddingChar = map.charAt(64);\r\n if (paddingChar) {\r\n var paddingIndex = base64Str.indexOf(paddingChar);\r\n if (paddingIndex != -1) {\r\n base64StrLength = paddingIndex;\r\n }\r\n }\r\n\r\n // Convert\r\n var words = [];\r\n var nBytes = 0;\r\n for (var i = 0; i < base64StrLength; i++) {\r\n if (i % 4) {\r\n var bits1 = map.indexOf(base64Str.charAt(i - 1)) << ((i % 4) * 2);\r\n var bits2 = map.indexOf(base64Str.charAt(i)) >>> (6 - (i % 4) * 2);\r\n words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8);\r\n nBytes++;\r\n }\r\n }\r\n\r\n return WordArray.create(words, nBytes);\r\n },\r\n\r\n _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\r\n };\r\n}());\r\n\r\nif(true){\r\n module.exports = CryptoJS;\r\n}else{\r\n window.CryptoJS = CryptoJS;\r\n}\r\n\n\n/***/ }),\n/* 77 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n \"use strict\";\n var bom, builder, escapeCDATA, events, isEmpty, processName, processors, requiresCDATA, sax, setImmediate, wrapCDATA,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty,\n bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };\n\n sax = __webpack_require__(78);\n\n events = __webpack_require__(16);\n\n builder = __webpack_require__(89);\n\n bom = __webpack_require__(195);\n\n processors = __webpack_require__(196);\n\n setImmediate = __webpack_require__(18).setImmediate;\n\n isEmpty = function(thing) {\n return typeof thing === \"object\" && (thing != null) && Object.keys(thing).length === 0;\n };\n\n processName = function(processors, processedName) {\n var i, len, process;\n for (i = 0, len = processors.length; i < len; i++) {\n process = processors[i];\n processedName = process(processedName);\n }\n return processedName;\n };\n\n requiresCDATA = function(entry) {\n return entry.indexOf('&') >= 0 || entry.indexOf('>') >= 0 || entry.indexOf('<') >= 0;\n };\n\n wrapCDATA = function(entry) {\n return \"\";\n };\n\n escapeCDATA = function(entry) {\n return entry.replace(']]>', ']]]]>');\n };\n\n exports.processors = processors;\n\n exports.defaults = {\n \"0.1\": {\n explicitCharkey: false,\n trim: true,\n normalize: true,\n normalizeTags: false,\n attrkey: \"@\",\n charkey: \"#\",\n explicitArray: false,\n ignoreAttrs: false,\n mergeAttrs: false,\n explicitRoot: false,\n validator: null,\n xmlns: false,\n explicitChildren: false,\n childkey: '@@',\n charsAsChildren: false,\n includeWhiteChars: false,\n async: false,\n strict: true,\n attrNameProcessors: null,\n attrValueProcessors: null,\n tagNameProcessors: null,\n valueProcessors: null,\n emptyTag: ''\n },\n \"0.2\": {\n explicitCharkey: false,\n trim: false,\n normalize: false,\n normalizeTags: false,\n attrkey: \"$\",\n charkey: \"_\",\n explicitArray: true,\n ignoreAttrs: false,\n mergeAttrs: false,\n explicitRoot: true,\n validator: null,\n xmlns: false,\n explicitChildren: false,\n preserveChildrenOrder: false,\n childkey: '$$',\n charsAsChildren: false,\n includeWhiteChars: false,\n async: false,\n strict: true,\n attrNameProcessors: null,\n attrValueProcessors: null,\n tagNameProcessors: null,\n valueProcessors: null,\n rootName: 'root',\n xmldec: {\n 'version': '1.0',\n 'encoding': 'UTF-8',\n 'standalone': true\n },\n doctype: null,\n renderOpts: {\n 'pretty': true,\n 'indent': ' ',\n 'newline': '\\n'\n },\n headless: false,\n chunkSize: 10000,\n emptyTag: '',\n cdata: false\n }\n };\n\n exports.ValidationError = (function(superClass) {\n extend(ValidationError, superClass);\n\n function ValidationError(message) {\n this.message = message;\n }\n\n return ValidationError;\n\n })(Error);\n\n exports.Builder = (function() {\n function Builder(opts) {\n var key, ref, value;\n this.options = {};\n ref = exports.defaults[\"0.2\"];\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this.options[key] = value;\n }\n for (key in opts) {\n if (!hasProp.call(opts, key)) continue;\n value = opts[key];\n this.options[key] = value;\n }\n }\n\n Builder.prototype.buildObject = function(rootObj) {\n var attrkey, charkey, render, rootElement, rootName;\n attrkey = this.options.attrkey;\n charkey = this.options.charkey;\n if ((Object.keys(rootObj).length === 1) && (this.options.rootName === exports.defaults['0.2'].rootName)) {\n rootName = Object.keys(rootObj)[0];\n rootObj = rootObj[rootName];\n } else {\n rootName = this.options.rootName;\n }\n render = (function(_this) {\n return function(element, obj) {\n var attr, child, entry, index, key, value;\n if (typeof obj !== 'object') {\n if (_this.options.cdata && requiresCDATA(obj)) {\n element.raw(wrapCDATA(obj));\n } else {\n element.txt(obj);\n }\n } else {\n for (key in obj) {\n if (!hasProp.call(obj, key)) continue;\n child = obj[key];\n if (key === attrkey) {\n if (typeof child === \"object\") {\n for (attr in child) {\n value = child[attr];\n element = element.att(attr, value);\n }\n }\n } else if (key === charkey) {\n if (_this.options.cdata && requiresCDATA(child)) {\n element = element.raw(wrapCDATA(child));\n } else {\n element = element.txt(child);\n }\n } else if (Array.isArray(child)) {\n for (index in child) {\n if (!hasProp.call(child, index)) continue;\n entry = child[index];\n if (typeof entry === 'string') {\n if (_this.options.cdata && requiresCDATA(entry)) {\n element = element.ele(key).raw(wrapCDATA(entry)).up();\n } else {\n element = element.ele(key, entry).up();\n }\n } else {\n element = render(element.ele(key), entry).up();\n }\n }\n } else if (typeof child === \"object\") {\n element = render(element.ele(key), child).up();\n } else {\n if (typeof child === 'string' && _this.options.cdata && requiresCDATA(child)) {\n element = element.ele(key).raw(wrapCDATA(child)).up();\n } else {\n if (child == null) {\n child = '';\n }\n element = element.ele(key, child.toString()).up();\n }\n }\n }\n }\n return element;\n };\n })(this);\n rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, {\n headless: this.options.headless,\n allowSurrogateChars: this.options.allowSurrogateChars\n });\n return render(rootElement, rootObj).end(this.options.renderOpts);\n };\n\n return Builder;\n\n })();\n\n exports.Parser = (function(superClass) {\n extend(Parser, superClass);\n\n function Parser(opts) {\n this.parseString = bind(this.parseString, this);\n this.reset = bind(this.reset, this);\n this.assignOrPush = bind(this.assignOrPush, this);\n this.processAsync = bind(this.processAsync, this);\n var key, ref, value;\n if (!(this instanceof exports.Parser)) {\n return new exports.Parser(opts);\n }\n this.options = {};\n ref = exports.defaults[\"0.2\"];\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this.options[key] = value;\n }\n for (key in opts) {\n if (!hasProp.call(opts, key)) continue;\n value = opts[key];\n this.options[key] = value;\n }\n if (this.options.xmlns) {\n this.options.xmlnskey = this.options.attrkey + \"ns\";\n }\n if (this.options.normalizeTags) {\n if (!this.options.tagNameProcessors) {\n this.options.tagNameProcessors = [];\n }\n this.options.tagNameProcessors.unshift(processors.normalize);\n }\n this.reset();\n }\n\n Parser.prototype.processAsync = function() {\n var chunk, err, error1;\n try {\n if (this.remaining.length <= this.options.chunkSize) {\n chunk = this.remaining;\n this.remaining = '';\n this.saxParser = this.saxParser.write(chunk);\n return this.saxParser.close();\n } else {\n chunk = this.remaining.substr(0, this.options.chunkSize);\n this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length);\n this.saxParser = this.saxParser.write(chunk);\n return setImmediate(this.processAsync);\n }\n } catch (error1) {\n err = error1;\n if (!this.saxParser.errThrown) {\n this.saxParser.errThrown = true;\n return this.emit(err);\n }\n }\n };\n\n Parser.prototype.assignOrPush = function(obj, key, newValue) {\n if (!(key in obj)) {\n if (!this.options.explicitArray) {\n return obj[key] = newValue;\n } else {\n return obj[key] = [newValue];\n }\n } else {\n if (!(obj[key] instanceof Array)) {\n obj[key] = [obj[key]];\n }\n return obj[key].push(newValue);\n }\n };\n\n Parser.prototype.reset = function() {\n var attrkey, charkey, ontext, stack;\n this.removeAllListeners();\n this.saxParser = sax.parser(this.options.strict, {\n trim: false,\n normalize: false,\n xmlns: this.options.xmlns\n });\n this.saxParser.errThrown = false;\n this.saxParser.onerror = (function(_this) {\n return function(error) {\n _this.saxParser.resume();\n if (!_this.saxParser.errThrown) {\n _this.saxParser.errThrown = true;\n return _this.emit(\"error\", error);\n }\n };\n })(this);\n this.saxParser.onend = (function(_this) {\n return function() {\n if (!_this.saxParser.ended) {\n _this.saxParser.ended = true;\n return _this.emit(\"end\", _this.resultObject);\n }\n };\n })(this);\n this.saxParser.ended = false;\n this.EXPLICIT_CHARKEY = this.options.explicitCharkey;\n this.resultObject = null;\n stack = [];\n attrkey = this.options.attrkey;\n charkey = this.options.charkey;\n this.saxParser.onopentag = (function(_this) {\n return function(node) {\n var key, newValue, obj, processedKey, ref;\n obj = {};\n obj[charkey] = \"\";\n if (!_this.options.ignoreAttrs) {\n ref = node.attributes;\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n if (!(attrkey in obj) && !_this.options.mergeAttrs) {\n obj[attrkey] = {};\n }\n newValue = _this.options.attrValueProcessors ? processName(_this.options.attrValueProcessors, node.attributes[key]) : node.attributes[key];\n processedKey = _this.options.attrNameProcessors ? processName(_this.options.attrNameProcessors, key) : key;\n if (_this.options.mergeAttrs) {\n _this.assignOrPush(obj, processedKey, newValue);\n } else {\n obj[attrkey][processedKey] = newValue;\n }\n }\n }\n obj[\"#name\"] = _this.options.tagNameProcessors ? processName(_this.options.tagNameProcessors, node.name) : node.name;\n if (_this.options.xmlns) {\n obj[_this.options.xmlnskey] = {\n uri: node.uri,\n local: node.local\n };\n }\n return stack.push(obj);\n };\n })(this);\n this.saxParser.onclosetag = (function(_this) {\n return function() {\n var cdata, emptyStr, err, error1, key, node, nodeName, obj, objClone, old, s, xpath;\n obj = stack.pop();\n nodeName = obj[\"#name\"];\n if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) {\n delete obj[\"#name\"];\n }\n if (obj.cdata === true) {\n cdata = obj.cdata;\n delete obj.cdata;\n }\n s = stack[stack.length - 1];\n if (obj[charkey].match(/^\\s*$/) && !cdata) {\n emptyStr = obj[charkey];\n delete obj[charkey];\n } else {\n if (_this.options.trim) {\n obj[charkey] = obj[charkey].trim();\n }\n if (_this.options.normalize) {\n obj[charkey] = obj[charkey].replace(/\\s{2,}/g, \" \").trim();\n }\n obj[charkey] = _this.options.valueProcessors ? processName(_this.options.valueProcessors, obj[charkey]) : obj[charkey];\n if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n obj = obj[charkey];\n }\n }\n if (isEmpty(obj)) {\n obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;\n }\n if (_this.options.validator != null) {\n xpath = \"/\" + ((function() {\n var i, len, results;\n results = [];\n for (i = 0, len = stack.length; i < len; i++) {\n node = stack[i];\n results.push(node[\"#name\"]);\n }\n return results;\n })()).concat(nodeName).join(\"/\");\n try {\n obj = _this.options.validator(xpath, s && s[nodeName], obj);\n } catch (error1) {\n err = error1;\n _this.emit(\"error\", err);\n }\n }\n if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {\n if (!_this.options.preserveChildrenOrder) {\n node = {};\n if (_this.options.attrkey in obj) {\n node[_this.options.attrkey] = obj[_this.options.attrkey];\n delete obj[_this.options.attrkey];\n }\n if (!_this.options.charsAsChildren && _this.options.charkey in obj) {\n node[_this.options.charkey] = obj[_this.options.charkey];\n delete obj[_this.options.charkey];\n }\n if (Object.getOwnPropertyNames(obj).length > 0) {\n node[_this.options.childkey] = obj;\n }\n obj = node;\n } else if (s) {\n s[_this.options.childkey] = s[_this.options.childkey] || [];\n objClone = {};\n for (key in obj) {\n if (!hasProp.call(obj, key)) continue;\n objClone[key] = obj[key];\n }\n s[_this.options.childkey].push(objClone);\n delete obj[\"#name\"];\n if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n obj = obj[charkey];\n }\n }\n }\n if (stack.length > 0) {\n return _this.assignOrPush(s, nodeName, obj);\n } else {\n if (_this.options.explicitRoot) {\n old = obj;\n obj = {};\n obj[nodeName] = old;\n }\n _this.resultObject = obj;\n _this.saxParser.ended = true;\n return _this.emit(\"end\", _this.resultObject);\n }\n };\n })(this);\n ontext = (function(_this) {\n return function(text) {\n var charChild, s;\n s = stack[stack.length - 1];\n if (s) {\n s[charkey] += text;\n if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\n/g, '').trim() !== '')) {\n s[_this.options.childkey] = s[_this.options.childkey] || [];\n charChild = {\n '#name': '__text__'\n };\n charChild[charkey] = text;\n if (_this.options.normalize) {\n charChild[charkey] = charChild[charkey].replace(/\\s{2,}/g, \" \").trim();\n }\n s[_this.options.childkey].push(charChild);\n }\n return s;\n }\n };\n })(this);\n this.saxParser.ontext = ontext;\n return this.saxParser.oncdata = (function(_this) {\n return function(text) {\n var s;\n s = ontext(text);\n if (s) {\n return s.cdata = true;\n }\n };\n })(this);\n };\n\n Parser.prototype.parseString = function(str, cb) {\n var err, error1;\n if ((cb != null) && typeof cb === \"function\") {\n this.on(\"end\", function(result) {\n this.reset();\n return cb(null, result);\n });\n this.on(\"error\", function(err) {\n this.reset();\n return cb(err);\n });\n }\n try {\n str = str.toString();\n if (str.trim() === '') {\n this.emit(\"end\", null);\n return true;\n }\n str = bom.stripBOM(str);\n if (this.options.async) {\n this.remaining = str;\n setImmediate(this.processAsync);\n return this.saxParser;\n }\n return this.saxParser.write(str).close();\n } catch (error1) {\n err = error1;\n if (!(this.saxParser.errThrown || this.saxParser.ended)) {\n this.emit('error', err);\n return this.saxParser.errThrown = true;\n } else if (this.saxParser.ended) {\n throw err;\n }\n }\n };\n\n return Parser;\n\n })(events.EventEmitter);\n\n exports.parseString = function(str, a, b) {\n var cb, options, parser;\n if (b != null) {\n if (typeof b === 'function') {\n cb = b;\n }\n if (typeof a === 'object') {\n options = a;\n }\n } else {\n if (typeof a === 'function') {\n cb = a;\n }\n options = {};\n }\n parser = new exports.Parser(options);\n return parser.parseString(str, cb);\n };\n\n}).call(this);\n\n\n/***/ }),\n/* 78 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(Buffer) {;(function (sax) { // wrapper for non-node envs\n sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\n sax.SAXParser = SAXParser\n sax.SAXStream = SAXStream\n sax.createStream = createStream\n\n // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.\n // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),\n // since that's the earliest that a buffer overrun could occur. This way, checks are\n // as rare as required, but as often as necessary to ensure never crossing this bound.\n // Furthermore, buffers are only tested at most once per write(), so passing a very\n // large string into write() might have undesirable effects, but this is manageable by\n // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme\n // edge case, result in creating at most one complete copy of the string passed in.\n // Set to Infinity to have unlimited buffers.\n sax.MAX_BUFFER_LENGTH = 64 * 1024\n\n var buffers = [\n 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',\n 'procInstName', 'procInstBody', 'entity', 'attribName',\n 'attribValue', 'cdata', 'script'\n ]\n\n sax.EVENTS = [\n 'text',\n 'processinginstruction',\n 'sgmldeclaration',\n 'doctype',\n 'comment',\n 'opentagstart',\n 'attribute',\n 'opentag',\n 'closetag',\n 'opencdata',\n 'cdata',\n 'closecdata',\n 'error',\n 'end',\n 'ready',\n 'script',\n 'opennamespace',\n 'closenamespace'\n ]\n\n function SAXParser (strict, opt) {\n if (!(this instanceof SAXParser)) {\n return new SAXParser(strict, opt)\n }\n\n var parser = this\n clearBuffers(parser)\n parser.q = parser.c = ''\n parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH\n parser.opt = opt || {}\n parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags\n parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'\n parser.tags = []\n parser.closed = parser.closedRoot = parser.sawRoot = false\n parser.tag = parser.error = null\n parser.strict = !!strict\n parser.noscript = !!(strict || parser.opt.noscript)\n parser.state = S.BEGIN\n parser.strictEntities = parser.opt.strictEntities\n parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)\n parser.attribList = []\n\n // namespaces form a prototype chain.\n // it always points at the current tag,\n // which protos to its parent tag.\n if (parser.opt.xmlns) {\n parser.ns = Object.create(rootNS)\n }\n\n // mostly just for error reporting\n parser.trackPosition = parser.opt.position !== false\n if (parser.trackPosition) {\n parser.position = parser.line = parser.column = 0\n }\n emit(parser, 'onready')\n }\n\n if (!Object.create) {\n Object.create = function (o) {\n function F () {}\n F.prototype = o\n var newf = new F()\n return newf\n }\n }\n\n if (!Object.keys) {\n Object.keys = function (o) {\n var a = []\n for (var i in o) if (o.hasOwnProperty(i)) a.push(i)\n return a\n }\n }\n\n function checkBufferLength (parser) {\n var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)\n var maxActual = 0\n for (var i = 0, l = buffers.length; i < l; i++) {\n var len = parser[buffers[i]].length\n if (len > maxAllowed) {\n // Text/cdata nodes can get big, and since they're buffered,\n // we can get here under normal conditions.\n // Avoid issues by emitting the text node now,\n // so at least it won't get any bigger.\n switch (buffers[i]) {\n case 'textNode':\n closeText(parser)\n break\n\n case 'cdata':\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n break\n\n case 'script':\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n break\n\n default:\n error(parser, 'Max buffer length exceeded: ' + buffers[i])\n }\n }\n maxActual = Math.max(maxActual, len)\n }\n // schedule the next check for the earliest possible buffer overrun.\n var m = sax.MAX_BUFFER_LENGTH - maxActual\n parser.bufferCheckPosition = m + parser.position\n }\n\n function clearBuffers (parser) {\n for (var i = 0, l = buffers.length; i < l; i++) {\n parser[buffers[i]] = ''\n }\n }\n\n function flushBuffers (parser) {\n closeText(parser)\n if (parser.cdata !== '') {\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n }\n if (parser.script !== '') {\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n }\n }\n\n SAXParser.prototype = {\n end: function () { end(this) },\n write: write,\n resume: function () { this.error = null; return this },\n close: function () { return this.write(null) },\n flush: function () { flushBuffers(this) }\n }\n\n var Stream\n try {\n Stream = __webpack_require__(79).Stream\n } catch (ex) {\n Stream = function () {}\n }\n\n var streamWraps = sax.EVENTS.filter(function (ev) {\n return ev !== 'error' && ev !== 'end'\n })\n\n function createStream (strict, opt) {\n return new SAXStream(strict, opt)\n }\n\n function SAXStream (strict, opt) {\n if (!(this instanceof SAXStream)) {\n return new SAXStream(strict, opt)\n }\n\n Stream.apply(this)\n\n this._parser = new SAXParser(strict, opt)\n this.writable = true\n this.readable = true\n\n var me = this\n\n this._parser.onend = function () {\n me.emit('end')\n }\n\n this._parser.onerror = function (er) {\n me.emit('error', er)\n\n // if didn't throw, then means error was handled.\n // go ahead and clear error, so we can write again.\n me._parser.error = null\n }\n\n this._decoder = null\n\n streamWraps.forEach(function (ev) {\n Object.defineProperty(me, 'on' + ev, {\n get: function () {\n return me._parser['on' + ev]\n },\n set: function (h) {\n if (!h) {\n me.removeAllListeners(ev)\n me._parser['on' + ev] = h\n return h\n }\n me.on(ev, h)\n },\n enumerable: true,\n configurable: false\n })\n })\n }\n\n SAXStream.prototype = Object.create(Stream.prototype, {\n constructor: {\n value: SAXStream\n }\n })\n\n SAXStream.prototype.write = function (data) {\n if (typeof Buffer === 'function' &&\n typeof Buffer.isBuffer === 'function' &&\n Buffer.isBuffer(data)) {\n if (!this._decoder) {\n var SD = __webpack_require__(31).StringDecoder\n this._decoder = new SD('utf8')\n }\n data = this._decoder.write(data)\n }\n\n this._parser.write(data.toString())\n this.emit('data', data)\n return true\n }\n\n SAXStream.prototype.end = function (chunk) {\n if (chunk && chunk.length) {\n this.write(chunk)\n }\n this._parser.end()\n return true\n }\n\n SAXStream.prototype.on = function (ev, handler) {\n var me = this\n if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {\n me._parser['on' + ev] = function () {\n var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)\n args.splice(0, 0, ev)\n me.emit.apply(me, args)\n }\n }\n\n return Stream.prototype.on.call(me, ev, handler)\n }\n\n // this really needs to be replaced with character classes.\n // XML allows all manner of ridiculous numbers and digits.\n var CDATA = '[CDATA['\n var DOCTYPE = 'DOCTYPE'\n var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'\n var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'\n var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }\n\n // http://www.w3.org/TR/REC-xml/#NT-NameStartChar\n // This implementation works on strings, a single character at a time\n // as such, it cannot ever support astral-plane characters (10000-EFFFF)\n // without a significant breaking change to either this parser, or the\n // JavaScript language. Implementation of an emoji-capable xml parser\n // is left as an exercise for the reader.\n var nameStart = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n\n var nameBody = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n var entityStart = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n var entityBody = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n function isWhitespace (c) {\n return c === ' ' || c === '\\n' || c === '\\r' || c === '\\t'\n }\n\n function isQuote (c) {\n return c === '\"' || c === '\\''\n }\n\n function isAttribEnd (c) {\n return c === '>' || isWhitespace(c)\n }\n\n function isMatch (regex, c) {\n return regex.test(c)\n }\n\n function notMatch (regex, c) {\n return !isMatch(regex, c)\n }\n\n var S = 0\n sax.STATE = {\n BEGIN: S++, // leading byte order mark or whitespace\n BEGIN_WHITESPACE: S++, // leading whitespace\n TEXT: S++, // general stuff\n TEXT_ENTITY: S++, // & and such.\n OPEN_WAKA: S++, // <\n SGML_DECL: S++, // \n SCRIPT: S++, //