require=function e(t,n,r){function i(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var s=typeof require=="function"&&require;for(var o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";(function(e){function r(e,t,n){var r=0,i=[],s=0,o,u,p,d,v,m,g,y=!1,b=!1,w=[],E=[],S,x=!1;n=n||{},o=n.encoding||"UTF8",S=n.numRounds||1,p=h(t,o);if(S!==parseInt(S,10)||1>S)throw Error("numRounds must a integer >= 1");if("SHA-1"===e)v=512,m=B,g=j,d=160;else if(m=function(t,n){return F(t,n,e)},g=function(t,n,r,i){var s,o;if("SHA-224"===e||"SHA-256"===e)s=(n+65>>>9<<4)+15,o=16;else{if("SHA-384"!==e&&"SHA-512"!==e)throw Error("Unexpected error in SHA-2 implementation");s=(n+129>>>10<<5)+31,o=32}for(;t.length<=s;)t.push(0);t[n>>>5]|=128<<24-n%32,t[s]=n+r,r=t.length;for(n=0;n<r;n+=o)i=F(t.slice(n,n+o),i,e);if("SHA-224"===e)t=[i[0],i[1],i[2],i[3],i[4],i[5],i[6]];else if("SHA-256"===e)t=i;else if("SHA-384"===e)t=[i[0].a,i[0].b,i[1].a,i[1].b,i[2].a,i[2].b,i[3].a,i[3].b,i[4].a,i[4].b,i[5].a,i[5].b];else{if("SHA-512"!==e)throw Error("Unexpected error in SHA-2 implementation");t=[i[0].a,i[0].b,i[1].a,i[1].b,i[2].a,i[2].b,i[3].a,i[3].b,i[4].a,i[4].b,i[5].a,i[5].b,i[6].a,i[6].b,i[7].a,i[7].b]}return t},"SHA-224"===e)v=512,d=224;else if("SHA-256"===e)v=512,d=256;else if("SHA-384"===e)v=1024,d=384;else{if("SHA-512"!==e)throw Error("Chosen SHA variant is not supported");v=1024,d=512}u=H(e),this.setHMACKey=function(t,n,i){var s;if(!0===b)throw Error("HMAC key already set");if(!0===y)throw Error("Cannot set HMAC key after finalizing hash");if(!0===x)throw Error("Cannot set HMAC key after calling update");o=(i||{}).encoding||"UTF8",n=h(n,o)(t),t=n.binLen,n=n.value,s=v>>>3,i=s/4-1;if(s<t/8){for(n=g(n,t,0,H(e));n.length<=i;)n.push(0);n[i]&=4294967040}else if(s>t/8){for(;n.length<=i;)n.push(0);n[i]&=4294967040}for(t=0;t<=i;t+=1)w[t]=n[t]^909522486,E[t]=n[t]^1549556828;u=m(w,u),r=v,b=!0},this.update=function(e){var t,n,o,a=0,f=v>>>5;t=p(e,i,s),e=t.binLen,n=t.value,t=e>>>5;for(o=0;o<t;o+=f)a+v<=e&&(u=m(n.slice(o,o+f),u),a+=v);r+=a,i=n.slice(a>>>5),s=e%v,x=!0},this.getHash=function(t,n){var o,h,p;if(!0===b)throw Error("Cannot call getHash after setting HMAC key");p=c(n);switch(t){case"HEX":o=function(e){return a(e,p)};break;case"B64":o=function(e){return f(e,p)};break;case"BYTES":o=l;break;default:throw Error("format must be HEX, B64, or BYTES")}if(!1===y)for(u=g(i,s,r,u),h=1;h<S;h+=1)u=g(u,d,0,H(e));return y=!0,o(u)},this.getHMAC=function(t,n){var o,h,p;if(!1===b)throw Error("Cannot call getHMAC without first setting HMAC key");p=c(n);switch(t){case"HEX":o=function(e){return a(e,p)};break;case"B64":o=function(e){return f(e,p)};break;case"BYTES":o=l;break;default:throw Error("outputFormat must be HEX, B64, or BYTES")}return!1===y&&(h=g(i,s,r,u),u=m(E,H(e)),u=g(h,d,v,u)),y=!0,o(u)}}function i(e,t){this.a=e,this.b=t}function s(e,t,n){var r=e.length,i,s,o,u,a;t=t||[0],n=n||0,a=n>>>3;if(0!==r%2)throw Error("String of HEX type must be in byte increments");for(i=0;i<r;i+=2){s=parseInt(e.substr(i,2),16);if(isNaN(s))throw Error("String of HEX type contains invalid characters");u=(i>>>1)+a;for(o=u>>>2;t.length<=o;)t.push(0);t[o]|=s<<8*(3-u%4)}return{value:t,binLen:4*r+n}}function o(e,t,n){var r=[],i,s,o,u,r=t||[0];n=n||0,s=n>>>3;for(i=0;i<e.length;i+=1)t=e.charCodeAt(i),u=i+s,o=u>>>2,r.length<=o&&r.push(0),r[o]|=t<<8*(3-u%4);return{value:r,binLen:8*e.length+n}}function u(e,t,n){var r=[],i=0,s,o,u,a,f,l,r=t||[0];n=n||0,t=n>>>3;if(-1===e.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");o=e.indexOf("="),e=e.replace(/\=/g,"");if(-1!==o&&o<e.length)throw Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){f=e.substr(o,4);for(u=a=0;u<f.length;u+=1)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(f[u]),a|=s<<18-6*u;for(u=0;u<f.length-1;u+=1){l=i+t;for(s=l>>>2;r.length<=s;)r.push(0);r[s]|=(a>>>16-8*u&255)<<8*(3-l%4),i+=1}}return{value:r,binLen:8*i+n}}function a(e,t){var n="",r=4*e.length,i,s;for(i=0;i<r;i+=1)s=e[i>>>2]>>>8*(3-i%4),n+="0123456789abcdef".charAt(s>>>4&15)+"0123456789abcdef".charAt(s&15);return t.outputUpper?n.toUpperCase():n}function f(e,t){var n="",r=4*e.length,i,s,o;for(i=0;i<r;i+=3)for(o=i+1>>>2,s=e.length<=o?0:e[o],o=i+2>>>2,o=e.length<=o?0:e[o],o=(e[i>>>2]>>>8*(3-i%4)&255)<<16|(s>>>8*(3-(i+1)%4)&255)<<8|o>>>8*(3-(i+2)%4)&255,s=0;4>s;s+=1)8*i+6*s<=32*e.length?n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>>6*(3-s)&63):n+=t.b64Pad;return n}function l(e){var t="",n=4*e.length,r,i;for(r=0;r<n;r+=1)i=e[r>>>2]>>>8*(3-r%4)&255,t+=String.fromCharCode(i);return t}function c(e){var t={outputUpper:!1,b64Pad:"="};e=e||{},t.outputUpper=e.outputUpper||!1,!0===e.hasOwnProperty("b64Pad")&&(t.b64Pad=e.b64Pad);if("boolean"!=typeof t.outputUpper)throw Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw Error("Invalid b64Pad formatting option");return t}function h(e,t){var n;switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":n=s;break;case"TEXT":n=function(e,n,r){var i=[],s=[],o=0,u,a,f,l,c,i=n||[0];n=r||0,f=n>>>3;if("UTF8"===t)for(u=0;u<e.length;u+=1)for(r=e.charCodeAt(u),s=[],128>r?s.push(r):2048>r?(s.push(192|r>>>6),s.push(128|r&63)):55296>r||57344<=r?s.push(224|r>>>12,128|r>>>6&63,128|r&63):(u+=1,r=65536+((r&1023)<<10|e.charCodeAt(u)&1023),s.push(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|r&63)),a=0;a<s.length;a+=1){c=o+f;for(l=c>>>2;i.length<=l;)i.push(0);i[l]|=s[a]<<8*(3-c%4),o+=1}else if("UTF16BE"===t||"UTF16LE"===t)for(u=0;u<e.length;u+=1){r=e.charCodeAt(u),"UTF16LE"===t&&(a=r&255,r=a<<8|r>>>8),c=o+f;for(l=c>>>2;i.length<=l;)i.push(0);i[l]|=r<<8*(2-c%4),o+=2}return{value:i,binLen:8*o+n}};break;case"B64":n=u;break;case"BYTES":n=o;break;default:throw Error("format must be HEX, TEXT, B64, or BYTES")}return n}function p(e,t){return e<<t|e>>>32-t}function d(e,t){return e>>>t|e<<32-t}function v(e,t){var n=null,n=new i(e.a,e.b);return n=32>=t?new i(n.a>>>t|n.b<<32-t&4294967295,n.b>>>t|n.a<<32-t&4294967295):new i(n.b>>>t-32|n.a<<64-t&4294967295,n.a>>>t-32|n.b<<64-t&4294967295)}function m(e,t){var n=null;return n=32>=t?new i(e.a>>>t,e.b>>>t|e.a<<32-t&4294967295):new i(0,e.a>>>t-32)}function g(e,t,n){return e&t^~e&n}function y(e,t,n){return new i(e.a&t.a^~e.a&n.a,e.b&t.b^~e.b&n.b)}function b(e,t,n){return e&t^e&n^t&n}function w(e,t,n){return new i(e.a&t.a^e.a&n.a^t.a&n.a,e.b&t.b^e.b&n.b^t.b&n.b)}function E(e){return d(e,2)^d(e,13)^d(e,22)}function S(e){var t=v(e,28),n=v(e,34);return e=v(e,39),new i(t.a^n.a^e.a,t.b^n.b^e.b)}function x(e){return d(e,6)^d(e,11)^d(e,25)}function T(e){var t=v(e,14),n=v(e,18);return e=v(e,41),new i(t.a^n.a^e.a,t.b^n.b^e.b)}function N(e){return d(e,7)^d(e,18)^e>>>3}function C(e){var t=v(e,1),n=v(e,8);return e=m(e,7),new i(t.a^n.a^e.a,t.b^n.b^e.b)}function k(e){return d(e,17)^d(e,19)^e>>>10}function L(e){var t=v(e,19),n=v(e,61);return e=m(e,6),new i(t.a^n.a^e.a,t.b^n.b^e.b)}function A(e,t){var n=(e&65535)+(t&65535);return((e>>>16)+(t>>>16)+(n>>>16)&65535)<<16|n&65535}function O(e,t,n,r){var i=(e&65535)+(t&65535)+(n&65535)+(r&65535);return((e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)&65535)<<16|i&65535}function M(e,t,n,r,i){var s=(e&65535)+(t&65535)+(n&65535)+(r&65535)+(i&65535);return((e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(s>>>16)&65535)<<16|s&65535}function _(e,t){var n,r,s;return n=(e.b&65535)+(t.b&65535),r=(e.b>>>16)+(t.b>>>16)+(n>>>16),s=(r&65535)<<16|n&65535,n=(e.a&65535)+(t.a&65535)+(r>>>16),r=(e.a>>>16)+(t.a>>>16)+(n>>>16),new i((r&65535)<<16|n&65535,s)}function D(e,t,n,r){var s,o,u;return s=(e.b&65535)+(t.b&65535)+(n.b&65535)+(r.b&65535),o=(e.b>>>16)+(t.b>>>16)+(n.b>>>16)+(r.b>>>16)+(s>>>16),u=(o&65535)<<16|s&65535,s=(e.a&65535)+(t.a&65535)+(n.a&65535)+(r.a&65535)+(o>>>16),o=(e.a>>>16)+(t.a>>>16)+(n.a>>>16)+(r.a>>>16)+(s>>>16),new i((o&65535)<<16|s&65535,u)}function P(e,t,n,r,s){var o,u,a;return o=(e.b&65535)+(t.b&65535)+(n.b&65535)+(r.b&65535)+(s.b&65535),u=(e.b>>>16)+(t.b>>>16)+(n.b>>>16)+(r.b>>>16)+(s.b>>>16)+(o>>>16),a=(u&65535)<<16|o&65535,o=(e.a&65535)+(t.a&65535)+(n.a&65535)+(r.a&65535)+(s.a&65535)+(u>>>16),u=(e.a>>>16)+(t.a>>>16)+(n.a>>>16)+(r.a>>>16)+(s.a>>>16)+(o>>>16),new i((u&65535)<<16|o&65535,a)}function H(e){var t,n;if("SHA-1"===e)e=[1732584193,4023233417,2562383102,271733878,3285377520];else switch(t=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e){case"SHA-224":e=t;break;case"SHA-256":e=n;break;case"SHA-384":e=[new i(3418070365,t[0]),new i(1654270250,t[1]),new i(2438529370,t[2]),new i(355462360,t[3]),new i(1731405415,t[4]),new i(41048885895,t[5]),new i(3675008525,t[6]),new i(1203062813,t[7])];break;case"SHA-512":e=[new i(n[0],4089235720),new i(n[1],2227873595),new i(n[2],4271175723),new i(n[3],1595750129),new i(n[4],2917565137),new i(n[5],725511199),new i(n[6],4215389547),new i(n[7],327033209)];break;default:throw Error("Unknown SHA variant")}return e}function B(e,t){var n=[],r,i,s,o,u,a,f;r=t[0],i=t[1],s=t[2],o=t[3],u=t[4];for(f=0;80>f;f+=1)n[f]=16>f?e[f]:p(n[f-3]^n[f-8]^n[f-14]^n[f-16],1),a=20>f?M(p(r,5),i&s^~i&o,u,1518500249,n[f]):40>f?M(p(r,5),i^s^o,u,1859775393,n[f]):60>f?M(p(r,5),b(i,s,o),u,2400959708,n[f]):M(p(r,5),i^s^o,u,3395469782,n[f]),u=o,o=s,s=p(i,30),i=r,r=a;return t[0]=A(r,t[0]),t[1]=A(i,t[1]),t[2]=A(s,t[2]),t[3]=A(o,t[3]),t[4]=A(u,t[4]),t}function j(e,t,n,r){var i;for(i=(t+65>>>9<<4)+15;e.length<=i;)e.push(0);e[t>>>5]|=128<<24-t%32,e[i]=t+n,n=e.length;for(t=0;t<n;t+=16)r=B(e.slice(t,t+16),r);return r}function F(e,t,n){var r,s,o,u,a,f,l,c,h,p,d,v,m,H,B,j,F,U,z,W,X,V,$=[],J;if("SHA-224"===n||"SHA-256"===n)p=64,v=1,V=Number,m=A,H=O,B=M,j=N,F=k,U=E,z=x,X=b,W=g,J=I;else{if("SHA-384"!==n&&"SHA-512"!==n)throw Error("Unexpected error in SHA-2 implementation");p=80,v=2,V=i,m=_,H=D,B=P,j=C,F=L,U=S,z=T,X=w,W=y,J=q}n=t[0],r=t[1],s=t[2],o=t[3],u=t[4],a=t[5],f=t[6],l=t[7];for(d=0;d<p;d+=1)16>d?(h=d*v,c=e.length<=h?0:e[h],h=e.length<=h+1?0:e[h+1],$[d]=new V(c,h)):$[d]=H(F($[d-2]),$[d-7],j($[d-15]),$[d-16]),c=B(l,z(u),W(u,a,f),J[d],$[d]),h=m(U(n),X(n,r,s)),l=f,f=a,a=u,u=m(o,c),o=s,s=r,r=n,n=m(c,h);return t[0]=m(n,t[0]),t[1]=m(r,t[1]),t[2]=m(s,t[2]),t[3]=m(o,t[3]),t[4]=m(u,t[4]),t[5]=m(a,t[5]),t[6]=m(f,t[6]),t[7]=m(l,t[7]),t}var I,q;I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],q=[new i(I[0],3609767458),new i(I[1],602891725),new i(I[2],3964484399),new i(I[3],2173295548),new i(I[4],4081628472),new i(I[5],3053834265),new i(I[6],2937671579),new i(I[7],3664609560),new i(I[8],2734883394),new i(I[9],1164996542),new i(I[10],1323610764),new i(I[11],3590304994),new i(I[12],4068182383),new i(I[13],991336113),new i(I[14],633803317),new i(I[15],3479774868),new i(I[16],2666613458),new i(I[17],944711139),new i(I[18],2341262773),new i(I[19],2007800933),new i(I[20],1495990901),new i(I[21],1856431235),new i(I[22],3175218132),new i(I[23],2198950837),new i(I[24],3999719339),new i(I[25],766784016),new i(I[26],2566594879),new i(I[27],3203337956),new i(I[28],1034457026),new i(I[29],2466948901),new i(I[30],3758326383),new i(I[31],168717936),new i(I[32],1188179964),new i(I[33],1546045734),new i(I[34],1522805485),new i(I[35],2643833823),new i(I[36],2343527390),new i(I[37],1014477480),new i(I[38],1206759142),new i(I[39],344077627),new i(I[40],1290863460),new i(I[41],3158454273),new i(I[42],3505952657),new i(I[43],106217008),new i(I[44],3606008344),new i(I[45],1432725776),new i(I[46],1467031594),new i(I[47],851169720),new i(I[48],3100823752),new i(I[49],1363258195),new i(I[50],3750685593),new i(I[51],3785050280),new i(I[52],3318307427),new i(I[53],3812723403),new i(I[54],2003034995),new i(I[55],3602036899),new i(I[56],1575990012),new i(I[57],1125592928),new i(I[58],2716904306),new i(I[59],442776044),new i(I[60],593698344),new i(I[61],3733110249),new i(I[62],2999351573),new i(I[63],3815920427),new i(3391569614,3928383900),new i(3515267271,566280711),new i(3940187606,3454069534),new i(4118630271,4000239992),new i(116418474,1914138554),new i(174292421,2731055270),new i(289380356,3203993006),new i(460393269,320620315),new i(685471733,587496836),new i(852142971,1086792851),new i(1017036298,365543100),new i(1126000580,2618297676),new i(1288033470,3409855158),new i(1501505948,4234509866),new i(1607167915,987167468),new i(1816402316,1246189591)],"function"==typeof define&&define.amd?define(function(){return r}):"undefined"!=typeof n?"undefined"!=typeof t&&t.exports?t.exports=n=r:n=r:e.jsSHA=r})(this)},{}],2:[function(e,t,n){(function(e){if(typeof n=="object")t.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var r;try{r=window}catch(i){r=self}r.SparkMD5=e()}})(function(e){"use strict";function r(e,n,r,i,s,o){return n=t(t(n,e),t(i,o)),t(n<<s|n>>>32-s,r)}function i(e,t,n,i,s,o,u){return r(t&n|~t&i,e,t,s,o,u)}function s(e,t,n,i,s,o,u){return r(t&i|n&~i,e,t,s,o,u)}function o(e,t,n,i,s,o,u){return r(t^n^i,e,t,s,o,u)}function u(e,t,n,i,s,o,u){return r(n^(t|~i),e,t,s,o,u)}function a(e,n){var r=e[0],a=e[1],f=e[2],l=e[3];r=i(r,a,f,l,n[0],7,-680876936),l=i(l,r,a,f,n[1],12,-389564586),f=i(f,l,r,a,n[2],17,606105819),a=i(a,f,l,r,n[3],22,-1044525330),r=i(r,a,f,l,n[4],7,-176418897),l=i(l,r,a,f,n[5],12,1200080426),f=i(f,l,r,a,n[6],17,-1473231341),a=i(a,f,l,r,n[7],22,-45705983),r=i(r,a,f,l,n[8],7,1770035416),l=i(l,r,a,f,n[9],12,-1958414417),f=i(f,l,r,a,n[10],17,-42063),a=i(a,f,l,r,n[11],22,-1990404162),r=i(r,a,f,l,n[12],7,1804603682),l=i(l,r,a,f,n[13],12,-40341101),f=i(f,l,r,a,n[14],17,-1502002290),a=i(a,f,l,r,n[15],22,1236535329),r=s(r,a,f,l,n[1],5,-165796510),l=s(l,r,a,f,n[6],9,-1069501632),f=s(f,l,r,a,n[11],14,643717713),a=s(a,f,l,r,n[0],20,-373897302),r=s(r,a,f,l,n[5],5,-701558691),l=s(l,r,a,f,n[10],9,38016083),f=s(f,l,r,a,n[15],14,-660478335),a=s(a,f,l,r,n[4],20,-405537848),r=s(r,a,f,l,n[9],5,568446438),l=s(l,r,a,f,n[14],9,-1019803690),f=s(f,l,r,a,n[3],14,-187363961),a=s(a,f,l,r,n[8],20,1163531501),r=s(r,a,f,l,n[13],5,-1444681467),l=s(l,r,a,f,n[2],9,-51403784),f=s(f,l,r,a,n[7],14,1735328473),a=s(a,f,l,r,n[12],20,-1926607734),r=o(r,a,f,l,n[5],4,-378558),l=o(l,r,a,f,n[8],11,-2022574463),f=o(f,l,r,a,n[11],16,1839030562),a=o(a,f,l,r,n[14],23,-35309556),r=o(r,a,f,l,n[1],4,-1530992060),l=o(l,r,a,f,n[4],11,1272893353),f=o(f,l,r,a,n[7],16,-155497632),a=o(a,f,l,r,n[10],23,-1094730640),r=o(r,a,f,l,n[13],4,681279174),l=o(l,r,a,f,n[0],11,-358537222),f=o(f,l,r,a,n[3],16,-722521979),a=o(a,f,l,r,n[6],23,76029189),r=o(r,a,f,l,n[9],4,-640364487),l=o(l,r,a,f,n[12],11,-421815835),f=o(f,l,r,a,n[15],16,530742520),a=o(a,f,l,r,n[2],23,-995338651),r=u(r,a,f,l,n[0],6,-198630844),l=u(l,r,a,f,n[7],10,1126891415),f=u(f,l,r,a,n[14],15,-1416354905),a=u(a,f,l,r,n[5],21,-57434055),r=u(r,a,f,l,n[12],6,1700485571),l=u(l,r,a,f,n[3],10,-1894986606),f=u(f,l,r,a,n[10],15,-1051523),a=u(a,f,l,r,n[1],21,-2054922799),r=u(r,a,f,l,n[8],6,1873313359),l=u(l,r,a,f,n[15],10,-30611744),f=u(f,l,r,a,n[6],15,-1560198380),a=u(a,f,l,r,n[13],21,1309151649),r=u(r,a,f,l,n[4],6,-145523070),l=u(l,r,a,f,n[11],10,-1120210379),f=u(f,l,r,a,n[2],15,718787259),a=u(a,f,l,r,n[9],21,-343485551),e[0]=t(r,e[0]),e[1]=t(a,e[1]),e[2]=t(f,e[2]),e[3]=t(l,e[3])}function f(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function l(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function c(e){var t=e.length,n=[1732584193,-271733879,-1732584194,271733878],r,i,s,o,u,l;for(r=64;r<=t;r+=64)a(n,f(e.substring(r-64,r)));e=e.substring(r-64),i=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<i;r+=1)s[r>>2]|=e.charCodeAt(r)<<(r%4<<3);s[r>>2]|=128<<(r%4<<3);if(r>55){a(n,s);for(r=0;r<16;r+=1)s[r]=0}return o=t*8,o=o.toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(o[2],16),l=parseInt(o[1],16)||0,s[14]=u,s[15]=l,a(n,s),n}function h(e){var t=e.length,n=[1732584193,-271733879,-1732584194,271733878],r,i,s,o,u,f;for(r=64;r<=t;r+=64)a(n,l(e.subarray(r-64,r)));e=r-64<t?e.subarray(r-64):new Uint8Array(0),i=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<i;r+=1)s[r>>2]|=e[r]<<(r%4<<3);s[r>>2]|=128<<(r%4<<3);if(r>55){a(n,s);for(r=0;r<16;r+=1)s[r]=0}return o=t*8,o=o.toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(o[2],16),f=parseInt(o[1],16)||0,s[14]=u,s[15]=f,a(n,s),n}function p(e){var t="",r;for(r=0;r<4;r+=1)t+=n[e>>r*8+4&15]+n[e>>r*8&15];return t}function d(e){var t;for(t=0;t<e.length;t+=1)e[t]=p(e[t]);return e.join("")}function v(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function m(e,t){var n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r),s;for(s=0;s<n;s++)i[s]=e.charCodeAt(s);return t?i:r}function g(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function y(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function b(){this.reset()}var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return d(c("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function t(e,t){return e=e|0||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i=this.byteLength,s=t(n,i),o=i,u,a,f,l;return r!==e&&(o=t(r,i)),s>o?new ArrayBuffer(0):(u=o-s,a=new ArrayBuffer(u),f=new Uint8Array(a),l=new Uint8Array(this,s,u),f.set(l),a)}}(),b.prototype.append=function(e){return this.appendBinary(v(e)),this},b.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t=this._buff.length,n;for(n=64;n<=t;n+=64)a(this._hash,f(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},b.prototype.end=function(e){var t=this._buff,n=t.length,r,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s;for(r=0;r<n;r+=1)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);return this._finish(i,n),s=e?this._hash:d(this._hash),this.reset(),s},b.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},b.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},b.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},b.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},b.prototype._finish=function(e,t){var n=t,r,i,s;e[n>>2]|=128<<(n%4<<3);if(n>55){a(this._hash,e);for(n=0;n<16;n+=1)e[n]=0}r=this._length*8,r=r.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),s=parseInt(r[1],16)||0,e[14]=i,e[15]=s,a(this._hash,e)},b.hash=function(e,t){return b.hashBinary(v(e),t)},b.hashBinary=function(e,t){var n=c(e);return t?n:d(n)},b.ArrayBuffer=function(){this.reset()},b.ArrayBuffer.prototype.append=function(e){var t=y(this._buff.buffer,e,!0),n=t.length,r;this._length+=e.byteLength;for(r=64;r<=n;r+=64)a(this._hash,l(t.subarray(r-64,r)));return this._buff=r-64<n?new Uint8Array(t.buffer.slice(r-64)):new Uint8Array(0),this},b.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,s;for(i=0;i<n;i+=1)r[i>>2]|=t[i]<<(i%4<<3);return this._finish(r,n),s=e?this._hash:d(this._hash),this.reset(),s},b.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},b.ArrayBuffer.prototype.getState=function(){var e=b.prototype.getState.call(this);return e.buff=g(e.buff),e},b.ArrayBuffer.prototype.setState=function(e){return e.buff=m(e.buff,!0),b.prototype.setState.call(this,e)},b.ArrayBuffer.prototype.destroy=b.prototype.destroy,b.ArrayBuffer.prototype._finish=b.prototype._finish,b.ArrayBuffer.hash=function(e,t){var n=h(new Uint8Array(e));return t?n:d(n)},b})},{}],3:[function(e,t,n){window.ALY=t.exports=e("./lib/core"),e("./lib/http/xhr"),e("./lib/services/oss"),e("./lib/services/opensearch"),e("./lib/services/batchcompute"),ALY.ECS=ALY.Service.defineService("ecs",["2014-05-26"]),ALY.RDS=ALY.Service.defineService("rds",["2014-08-15"]),ALY.SLB=ALY.Service.defineService("slb",["2014-05-15"]),ALY.CDN=ALY.Service.defineService("cdn",["2014-11-11"]),ALY.STS=ALY.Service.defineService("sts",["2015-04-01"])},{"./lib/core":5,"./lib/http/xhr":8,"./lib/services/batchcompute":21,"./lib/services/opensearch":22,"./lib/services/oss":23}],4:[function(e,t,n){var r=e("./core");r.Config=r.util.inherit({constructor:function(t){t===undefined&&(t={}),r.util.each.call(this,this.keys,function(e,n){this.set(e,t[e],n)})},clear:function(){r.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",undefined),this.set("credentialProvider",undefined)},getCredentials:function(){return{accessKeyId:this.accessKeyId,secretAccessKey:this.secretAccessKey,securityToken:this.securityToken}},set:function(t,n,r){n===undefined?(r===undefined&&(r=this.keys[t]),typeof r=="function"?this[t]=r.call(this):this[t]=r):this[t]=n},keys:{accessKeyId:null,secretAccessKey:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{},maxRetries:undefined,maxRedirects:10,paramValidation:!0,sslEnabled:!0,computeChecksums:!0,securityToken:""}})},{"./core":5}],5:[function(e,t,n){var r={};t.exports=r,e("./util"),r.util.update(r,{VERSION:"1.0.0",ServiceInterface:{},Signers:{},XML:{}}),e("./service"),e("./config"),e("./http"),e("./sequential_executor"),e("./event_listeners"),e("./request"),e("./signers/request_signer"),e("./param_validator"),r.events=new r.SequentialExecutor},{"./config":4,"./event_listeners":6,"./http":7,"./param_validator":10,"./request":11,"./sequential_executor":12,"./service":13,"./signers/request_signer":30,"./util":33}],6:[function(e,t,n){var r=e("./core");e("./sequential_executor"),e("./service_interface/json"),e("./service_interface/query"),e("./service_interface/rest"),e("./service_interface/rest_json"),e("./service_interface/rest_xml"),e("./service_interface/pop"),e("./service_interface/top"),r.EventListeners={Core:{}},r.EventListeners={Core:(new r.SequentialExecutor).addNamedListeners(function(e,t){e("VALIDATE_PARAMETERS","validate",function(t){var n=t.service.api.operations[t.operation].input;(new r.ParamValidator).validate(n,t.params)}),e("SET_CONTENT_LENGTH","afterBuild",function(t){if(t.httpRequest.headers["Content-Length"]===undefined){var n=r.util.string.byteLength(t.httpRequest.body);t.httpRequest.headers["Content-Length"]=n}}),e("SET_HTTP_HOST","afterBuild",function(t){t.httpRequest.headers.Host=t.httpRequest.endpoint.host}),t("SIGN","sign",function(t,n){if(!t.service.api.signatureVersion)return n();var i=t.service.config.getCredentials();try{var s=r.util.date.getDate(),o=t.service.getSignerClass(t),u=new o(t.httpRequest,t.service.api.signingName);u.addAuthorization(i,s)}catch(a){t.response.error=a}n()}),e("VALIDATE_RESPONSE","validateResponse",function(t){this.service.successfulResponse(t,this)?(t.data={},t.error=null):(t.data=null,t.error=r.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(t,n){function i(e){t.httpResponse.stream=e,t.httpResponse._abortCallback=n,e.on("headers",function(i,s){t.request.emit("httpHeaders",[i,s,t]),t.request.httpRequest._streaming||(r.HttpClient.streamsApiVersion===2?e.on("readable",function(){var r=e.read();r!==null&&t.request.emit("httpData",[r,t])}):e.on("data",function(n){t.request.emit("httpData",[n,t])}))}),e.on("end",function(){t.request.emit("httpDone"),n()})}function s(e){e.on("sendProgress",function(n){t.request.emit("httpUploadProgress",[n,t])}),e.on("receiveProgress",function(n){t.request.emit("httpDownloadProgress",[n,t])})}function o(e){t.error=r.util.error(e,{code:"NetworkingError",region:t.request.httpRequest.region,hostname:t.request.httpRequest.endpoint.hostname,retryable:!0}),t.request.emit("httpError",[t.error,t],function(){n()})}t.error=null,t.data=null;var u=r.HttpClient.getInstance(),a=t.request.service.config.httpOptions||{};this.httpRequest.debug();var f=u.handleRequest(this.httpRequest,a,i,o);s(f)}),e("HTTP_HEADERS","httpHeaders",function(t,n,i){i.httpResponse.statusCode=t,i.httpResponse.headers=n,i.httpResponse.body=new r.util.Buffer(""),i.httpResponse.buffers=[],i.httpResponse.numBytes=0}),e("HTTP_DATA","httpData",function(t,n){if(t){if(r.util.isNode()){n.httpResponse.numBytes+=t.length;var i=n.httpResponse.headers["content-length"],s={loaded:n.httpResponse.numBytes,total:i};n.request.emit("httpDownloadProgress",[s,n])}n.httpResponse.buffers.push(new r.util.Buffer(t))}}),e("HTTP_DONE","httpDone",function(t){if(t.httpResponse.buffers&&t.httpResponse.buffers.length>0){var n=r.util.buffer.concat(t.httpResponse.buffers);t.httpResponse.body=n}delete t.httpResponse.numBytes,delete t.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(t){t.httpResponse.statusCode&&(t.error.statusCode=t.httpResponse.statusCode,t.error.retryable===undefined&&(t.error.retryable=this.service.retryableError(t.error,this)))})}),Logger:(new r.SequentialExecutor).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(n){function o(){var t=r.util.date.getDate().getTime(),o=(t-i.startTime.getTime())/1e3,u=s.isTTY?!0:!1,a=n.httpResponse.statusCode,f=e("util").inspect(i.params,!0,!0),l="";return u&&(l+="[33m"),l+="[ALY "+i.service.serviceIdentifier+" "+a,l+=" "+o.toString()+"s "+n.retryCount+" retries]",u&&(l+="[0;1m"),l+=" "+i.operation+"("+f+")",u&&(l+="[0m"),l}var i=n.request,s=i.service.config.logger;if(!s)return;var u=o();typeof s.log=="function"?s.log(u):typeof s.write=="function"&&s.write(u+"\n")})}),Json:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.Json;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.Rest;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.RestJson;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Pop:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.Pop;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Top:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.Top;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.RestXml;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new r.SequentialExecutor).addNamedListeners(function(e){var t=r.ServiceInterface.Query;e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}},{"./core":5,"./sequential_executor":12,"./service_interface/json":14,"./service_interface/pop":15,"./service_interface/query":16,"./service_interface/rest":17,"./service_interface/rest_json":18,"./service_interface/rest_xml":19,"./service_interface/top":20,util:150}],7:[function(e,t,n){(function(t){var n=e("./core"),r=n.util.inherit;n.Endpoint=r({constructor:function(t){n.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof t=="undefined"||t===null)throw new Error("Invalid endpoint: "+t);if(!t.match(/^http/))throw new Error("错误的 endpoint 格式, 需要以 http 或者 https 开头");n.util.update(this,n.util.urlParse(t)),this.port?this.port=parseInt(this.port,10):this.port=this.protocol==="https:"?443:80}}),n.HttpRequest=r({constructor:function(t,n){this.method="POST",this.path=t.path||"/",this.headers={},this.body="",this.endpoint=t,this.region=n,this.setUserAgent()},setUserAgent:function(){this.headers["User-Agent"]=n.util.userAgent()},pathname:function(){return this.path.split("?",1)[0]},search:function(){return this.path.split("?",2)[1]||""},debug:function(){if(t.env.DEBUG=="aliyun"){console.log("-------- HttpRequest Start: --------"),console.log("method:",this.method),console.log("path:",this.path),console.log("headers:");for(var e in this.headers){if(e=="constructor")continue;console.log(e,":",this.headers[e])}}}}),n.HttpResponse=r({constructor:function(){this.statusCode=undefined,this.headers={},this.body=undefined}}),n.HttpClient=r({}),n.HttpClient.getInstance=function(){return this.singleton===undefined&&(this.singleton=new this),this.singleton}}).call(this,e("_process"))},{"./core":5,_process:125}],8:[function(e,t,n){var r=e("../core"),i=e("events").EventEmitter;e("../http"),r.XHRClient=r.util.inherit({handleRequest:function(t,n,s,o){var u=this,a=t.endpoint,f=new i,l=a.protocol+"//"+a.hostname;a.port!=80&&a.port!=443&&(l+=":"+a.port),l+=t.path;var c=new XMLHttpRequest;return t.stream=c,n.timeout&&(c.timeout=n.timeout),c.addEventListener("readystatechange",function(){try{if(c.status===0)return}catch(e){return}if(this.readyState===this.HEADERS_RECEIVED){try{c.responseType="arraybuffer"}catch(e){}f.statusCode=c.status,f.headers=u.parseHeaders(c.getAllResponseHeaders()),f.emit("headers",f.statusCode,f.headers)}else this.readyState===this.DONE&&u.finishRequest(c,f)},!1),c.upload.addEventListener("progress",function(e){f.emit("sendProgress",e)}),c.addEventListener("progress",function(e){f.emit("receiveProgress",e)},!1),c.addEventListener("timeout",function(){o(r.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),c.addEventListener("error",function(){o(r.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),s(f),c.open(t.method,l,!0),r.util.each(t.headers,function(e,t){e!=="Content-Length"&&e!=="User-Agent"&&e!=="Host"&&e!=="Date"&&c.setRequestHeader(e,t)}),t.body&&typeof t.body.buffer=="object"?c.send(t.body.buffer):c.send(t.body),f},parseHeaders:function(t){var n={};return r.util.arrayEach(t.split(/\r?\n/),function(e){var t=e.split(":",1)[0],r=e.substring(t.length+2);t.length>0&&(n[t]=r)}),n},finishRequest:function(t,n){var i;if(t.responseType==="arraybuffer"&&t.response){var s=t.response;i=new r.util.Buffer(s.byteLength);var o=new Uint8Array(s);for(var u=0;u<i.length;++u)i[u]=o[u]}try{!i&&typeof t.responseText=="string"&&(i=new r.util.Buffer(t.responseText))}catch(a){}i&&n.emit("data",i),n.emit("end")}}),r.HttpClient.prototype=r.XHRClient.prototype,r.HttpClient.streamsApiVersion=1},{"../core":5,"../http":7,events:122}],9:[function(e,t,n){var r=e("../core"),i=r.util.inherit;r.JSON={},r.JSON.Builder=i({constructor:function(t,n){this.rules=t,this.timestampFormat=n.timestampFormat},build:function(t){return JSON.stringify(this.translate(this.rules,t))},translate:function(t,n){if(n===null||n===undefined)return undefined;if(t.type=="structure"){var i={};return r.util.each.call(this,n,function(e,n){var r=t.members[e]||{},s=this.translate(r,n);s!==undefined&&(i[e]=s)}),i}if(t.type=="list"){var s=[];return r.util.arrayEach.call(this,n,function(e){var n=t.members||{},r=this.translate(n,e);r!==undefined&&s.push(r)}),s}if(t.type=="map"){var o={};return r.util.each.call(this,n,function(e,n){var r=t.members||{},i=this.translate(r,n);i!==undefined&&(o[e]=i)}),o}if(t.type=="timestamp"){var u=t.format||this.timestampFormat;return r.util.date.format(n,u)}return t.type=="integer"?parseInt(n,10):t.type=="float"?parseFloat(n):n}})},{"../core":5}],10:[function(e,t,n){var r=e("./core");r.ParamValidator=r.util.inherit({
validate:function(t,n,i){var s=(t||{}).members||{},o=t?t.xml:null;return o&&(s=r.util.merge(s,(s[o]||{}).members||{}),delete s[o]),this.validateStructure(s,n||{},i||"params")},validateStructure:function(t,n,r){this.validateType(r,n,["object"],"structure");for(var i in t){if(!t.hasOwnProperty(i))continue;var s=n[i],o=s===undefined||s===null;o&&(t[i].default?n[i]=t[i].default:t[i].required&&this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+r))}for(i in n){if(!n.hasOwnProperty(i))continue;var u=n[i],a=t[i];if(a!==undefined){var f=[r,i].join(".");this.validateMember(a,u,f)}else this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+r)}return!0},validateMember:function(t,n,r){var i=t.members||{};switch(t.type){case"structure":return this.validateStructure(i,n,r);case"list":return this.validateList(i,n,r);case"map":return this.validateMap(i,n,r);default:return this.validateScalar(t,n,r)}},validateList:function(t,n,r){this.validateType(r,n,[Array]);for(var i=0;i<n.length;i++)this.validateMember(t,n[i],r+"["+i+"]")},validateMap:function(t,n,r){this.validateType(r,n,["object"],"map");for(var i in n){if(!n.hasOwnProperty(i))continue;this.validateMember(t,n[i],r+"['"+i+"']")}},validateScalar:function(t,n,r){switch(t.type){case null:case undefined:case"string":return this.validateType(r,n,["string"]);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+t.type+" for "+r)}},fail:function(t,n){throw r.util.error(new Error(n),{code:t})},validateType:function(t,n,i,s){if(n===null||n===undefined)return;var o=!1;for(var u=0;u<i.length;u++){if(typeof i[u]=="string"){if(typeof n===i[u])return}else if(i[u]instanceof RegExp){if((n||"").toString().match(i[u]))return}else{if(n instanceof i[u])return;if(r.util.isType(n,i[u]))return;!s&&!o&&(i=i.slice()),i[u]=r.util.typeName(i[u])}o=!0}var a=s;a||(a=i.join(", ").replace(/,([^,]+)$/,", or$1"));var f=a.match(/^[aeiou]/i)?"n":"";this.fail("InvalidParameterType","Expected "+t+" to be a"+f+" "+a)},validateNumber:function(t,n){if(n===null||n===undefined)return;if(typeof n=="string"){var r=parseFloat(n);r.toString()===n&&(n=r)}return this.validateType(t,n,["number"])},validatePayload:function(n,i){if(i===null||i===undefined)return;if(typeof i=="string")return;if(i&&typeof i.byteLength=="number")return;if(r.util.isNode()){var s=e("stream").Stream;if(r.util.Buffer.isBuffer(i)||i instanceof s)return}var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(i)for(var u=0;u<o.length;u++){if(r.util.isType(i,o[u]))return;if(r.util.typeName(i.constructor)===o[u])return}this.fail("InvalidParameterType","Expected "+n+" to be a "+"string, Buffer, Stream, Blob, or typed array object")}})},{"./core":5,stream:145}],11:[function(e,t,n){(function(t){function i(e,t){this.currentState=t||null,this.states=e||{}}var n=e("./core"),r=n.util.inherit;i.prototype.runTo=function(t,n,r,i){typeof t=="function"&&(i=r,r=n,n=t,t=null);var s=this,o=s.states[s.currentState];o.fn.call(r||s,i,function(e){if(e){r.logger&&r.logger.log(s.currentState,"->",o.fail,e);if(!o.fail)return n?n(e):null;s.currentState=o.fail}else{r.logger&&r.logger.log(s.currentState,"->",o.accept);if(!o.accept)return n?n():null;s.currentState=o.accept}if(s.currentState===t)return n?n(e):null;s.runTo(t,n,r,e)})},i.prototype.addState=function(t,n,r,i){return typeof n=="function"?(i=n,n=null,r=null):typeof r=="function"&&(i=r,r=null),this.currentState||(this.currentState=t),this.states[t]={accept:n,fail:r,fn:i},this};var s=new i;s.setupStates=function(){var e=["success","error","complete"],t=function(n,r){try{var i=this,s=i.response.error;i.emit(i._asm.currentState,function(){i.response.error&&s!=i.response.error&&e.indexOf(this._asm.currentState)>=0&&(this._hardError=!0),r(i.response.error)})}catch(o){this.response.error=o,e.indexOf(this._asm.currentState)>=0&&(this._hardError=!0),r(o)}};this.addState("validate","build","error",t),this.addState("restart","build","error",function(e,t){e=this.response.error;if(!e)return t();if(!e.retryable)return t(e);this.response.retryCount<this.service.config.maxRetries?(this.response.retryCount++,t()):t(e)}),this.addState("build","afterBuild","restart",t),this.addState("afterBuild","sign","restart",t),this.addState("sign","send","retry",t),this.addState("retry","afterRetry","afterRetry",t),this.addState("afterRetry","sign","error",t),this.addState("send","validateResponse","retry",t),this.addState("validateResponse","extractData","extractError",t),this.addState("extractError","extractData","retry",t),this.addState("extractData","success","retry",t),this.addState("success","complete","complete",t),this.addState("error","complete","complete",t),this.addState("complete",null,"uncaughtException",t),this.addState("uncaughtException",function(e,t){try{n.SequentialExecutor.prototype.unhandledErrorCallback.call(this,e)}catch(r){if(this._hardError)throw e}t(e)})},s.setupStates(),n.Request=r({constructor:function(t,r,o){var u=new n.Endpoint(t.config.endpoint),a=t.config.region;this.service=t,this.operation=r,this.params=o||{},this.httpRequest=new n.HttpRequest(u,a),this.startTime=n.util.date.getDate(),this.response=new n.Response(this),this.restartCount=0,this._asm=new i(s.states,"validate"),n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(t){return t&&this.on("complete",function(e){try{t.call(e,e.error,e.data)}catch(n){throw e.request._hardError=!0,n}}),this.runTo(),this.response},build:function(t){return this._hardError=t?!1:!0,this.runTo("send",t)},runTo:function(t,n){return this._asm.runTo(t,n,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(t){t.error=n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback()),this},eachPage:function(t){function n(e){var r=t.call(e,e.error,e.data);if(r===!1)return;e.hasNextPage()?e.nextPage().on("complete",n).send():t.call(e,null,null)}this.on("complete",n).send()},eachItem:function(t){function r(e,r){if(e)return t(e,null);if(r===null)return t(null,null);var i=this.request.service.paginationConfig(this.request.operation),s=i.resultKey;Array.isArray(s)&&(s=s[0]);var o=n.util.jamespath.query(s,r);n.util.arrayEach(o,function(e){n.util.arrayEach(e,function(e){t(null,e)})})}this.eachPage(r)},isPageable:function(){return this.service.paginationConfig(this.operation)?!0:!1},createReadStream:function(){var i=e("stream"),s=this,o=null,u=!1;return n.HttpClient.streamsApiVersion===2?(o=new i.Readable,o._read=function(){o.push("")}):(o=new i.Stream,o.readable=!0),o.sent=!1,o.on("newListener",function(e){!o.sent&&(e==="data"||e==="readable")&&(e==="data"&&(u=!0),o.sent=!0,t.nextTick(function(){s.send(function(){})}))}),this.on("httpHeaders",function(t,r,i){if(t<300){this.httpRequest._streaming=!0,s.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),s.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),s.on("httpError",function(t,n){n.error=t,n.error.retryable=!1});var a=i.httpResponse.stream;o.response=i,o._read=function(){var e;while(e=a.read())o.push(e);o.push("")};var f=["end","error",u?"data":"readable"];n.util.arrayEach(f,function(e){a.on(e,function(t){o.emit(e,t)})})}}),this.on("error",function(e){o.emit("error",e)}),o},emitEvent:function(t,r,i){typeof r=="function"&&(i=r,r=null),i||(i=this.unhandledErrorCallback),r||(r=this.eventParameters(t,this.response));var s=n.SequentialExecutor.prototype.emit;s.call(this,t,r,function(e){e&&(this.response.error=e),i.call(this,e)})},eventParameters:function(t){switch(t){case"validate":case"sign":case"build":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}}}),n.util.mixin(n.Request,n.SequentialExecutor),n.Response=r({constructor:function(t){this.request=t,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse},nextPage:function(t){var r,i=this.request.service,s=this.request.operation;try{r=i.paginationConfig(s,!0)}catch(o){this.error=o}if(!this.hasNextPage()){if(t)t(this.error,null);else if(this.error)throw this.error;return null}var u=n.util.copy(this.request.params);if(!this.nextPageTokens)return t?t(null,null):null;var a=r.inputToken;typeof a=="string"&&(a=[a]);for(var f=0;f<a.length;f++)u[a[f]]=this.nextPageTokens[f];return i.makeRequest(this.request.operation,u,t)},hasNextPage:function(){return this.cacheNextPageTokens(),this.nextPageTokens?!0:this.nextPageTokens===undefined?undefined:!1},cacheNextPageTokens:function(){if(this.hasOwnProperty("nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=undefined;var t=this.request.service.paginationConfig(this.request.operation);if(!t)return this.nextPageTokens;this.nextPageTokens=null;if(t.moreResults&&!n.util.jamespath.find(t.moreResults,this.data))return this.nextPageTokens;var r=t.outputToken;return typeof r=="string"&&(r=[r]),n.util.arrayEach.call(this,r,function(e){var t=n.util.jamespath.find(e,this.data);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})}).call(this,e("_process"))},{"./core":5,_process:125,stream:145}],12:[function(e,t,n){(function(t){var n=e("./core"),r=n.util.nodeRequire("domain");n.SequentialExecutor=n.util.inherit({constructor:function(){this.domain=r&&r.active,this._events={}},listeners:function(t){return this._events[t]?this._events[t].slice(0):[]},on:function(t,n){return this._events[t]?this._events[t].push(n):this._events[t]=[n],this},onAsync:function(t,n){return n._isAsync=!0,this.on(t,n)},removeListener:function(t,n){var r=this._events[t];if(r){var i=r.length,s=-1;for(var o=0;o<i;++o)r[o]===n&&(s=o);s>-1&&r.splice(s,1)}return this},removeAllListeners:function(t){return t?delete this._events[t]:this._events={},this},emit:function(n,i,s){s||(s=this.unhandledErrorCallback),r&&this.domain instanceof r.Domain&&this.domain.enter(),t.env.DEBUG=="aliyun"&&console.log("emit",n);var o=this.listeners(n),u=o.length;return this.callListeners(o,i,s),u>0},callListeners:function(t,n,i){if(t.length===0)i.call(this),r&&this.domain instanceof r.Domain&&this.domain.exit();else{var s=t.shift();if(s._isAsync){var o=function(e){e?(i.call(this,e),r&&this.domain instanceof r.Domain&&this.domain.exit()):this.callListeners(t,n,i)}.bind(this);s.apply(this,n.concat([o]))}else try{s.apply(this,n),this.callListeners(t,n,i)}catch(u){i.call(this,u),r&&this.domain instanceof r.Domain&&this.domain.exit()}}},addListeners:function(t){var r=this;return t._events&&(t=t._events),n.util.each(t,function(e,t){typeof t=="function"&&(t=[t]),n.util.arrayEach(t,function(t){r.on(e,t)})}),r},addNamedListener:function(t,n,r){return this[t]=r,this.addListener(n,r),this},addNamedAsyncListener:function(t,n,r){return r._isAsync=!0,this.addNamedListener(t,n,r)},addNamedListeners:function(t){var n=this;return t(function(){n.addNamedListener.apply(n,arguments)},function(){n.addNamedAsyncListener.apply(n,arguments)}),this},unhandledErrorCallback:function(t){if(t){if(!(r&&this.domain instanceof r.Domain))throw t;t.domainEmitter=this,t.domain=this.domain,t.domainThrown=!1,this.domain.emit("error",t)}}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,n.SequentialExecutor.prototype.addAsyncListener=n.SequentialExecutor.prototype.onAsync}).call(this,e("_process"))},{"./core":5,_process:125}],13:[function(e,t,n){(function(t){var n=e("./core"),r=n.util.inherit;n.Service=r({constructor:function(t){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var r=this.loadServiceClass(t||{});if(r)return new r(t);this.initialize(t)},initialize:function(t){this.config=new n.Config(t)},loadServiceClass:function(t){if(!n.util.isEmpty(this.api))return;if(!this.constructor.services)return;return this.getLatestServiceClass(t.apiVersion)},getLatestServiceClass:function(t){return this.constructor.services[t]===null&&n.Service.defineServiceApi(this.constructor,t),this.constructor.services[t]},api:{},defaultRetryCount:3,makeRequest:function(t,r,i){typeof r=="function"&&(i=r,r=null),r=r||{};if(this.config.params){var s=this.api.operations[t];s&&(r=n.util.copy(r),n.util.each(this.config.params,function(e,t){s.input.members[e]&&(r[e]===undefined||r[e]===null)&&(r[e]=t)}))}var o=new n.Request(this,t,r);return this.addAllRequestListeners(o),i&&o.send(i),o},makeUnauthenticatedRequest:function(t,r,i){typeof r=="function"&&(i=r,r={});var s=this.makeRequest(t,r);return s.removeListener("sign",n.EventListeners.Core.SIGN),this.api.format==="query"&&s.addListener("build",function(t){t.httpRequest.method="GET",t.httpRequest.path="/?"+t.httpRequest.body,t.httpRequest.body="",delete t.httpRequest.headers["Content-Length"],delete t.httpRequest.headers["Content-Type"]}),i?s.send(i):s},addAllRequestListeners:function(t){var r=[n.events,n.EventListeners.Core,this.serviceInterface()];for(var i=0;i<r.length;i++)r[i]&&t.addListeners(r[i]);this.config.paramValidation||t.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&t.addListeners(n.EventListeners.Logger),this.setupRequestListeners(t)},setupRequestListeners:function(){},getSignerClass:function(){var t=this.api.signatureVersion;return n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.format){case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest":return n.EventListeners.Rest;case"rest-json":return n.EventListeners.RestJson;case"pop":return n.EventListeners.Pop;case"top":return n.EventListeners.Top;case"rest-xml":return n.EventListeners.RestXml}if(this.api.format)throw new Error("Invalid service `format' "+this.api.format+" in API config")},successfulResponse:function(t){return t.httpResponse.statusCode<300},numRetries:function(){return this.config.maxRetries!==undefined?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(){var t=this.numRetries(),n=[];for(var r=0;r<t;++r)n[r]=Math.pow(2,r)*30;return n},retryableError:function(t){return this.networkingError(t)?!0:this.throttledError(t)?!0:t.statusCode>=500?!0:!1},networkingError:function(t){return t.code=="NetworkingError"},throttledError:function(t){return t.code=="ProvisionedThroughputExceededException"},isRegionCN:function(){return this.config.region?this.config.region.match(/^cn-/)?!0:!1:!1},isRegionV4:function(){return this.isRegionCN()},paginationConfig:function(t,r){function i(e){if(r){var t=new Error;throw n.util.error(t,"No pagination configuration for "+e)}return null}return this.api.pagination?this.api.pagination[t]?this.api.pagination[t]:i(t):i("service")}}),n.util.update(n.Service,{defineMethods:function(t){n.util.each(t.prototype.api.operations,function(n){if(t.prototype[n])return;t.prototype[n]=function(e,t){return this.makeRequest(n,e,t)}})},defineService:function(t,i,s){Array.isArray(i)||(s=i,i=[]);var o=r(n.Service,s||{});if(typeof t=="string"){var u={};for(var a=0;a<i.length;a++)u[i[a]]=null;o.services=o.services||u,o.apiVersions=Object.keys(o.services).sort(),o.serviceIdentifier=o.serviceIdentifier||t}else o.prototype.api=t,n.Service.defineMethods(o);return o},defineServiceApi:function(s,o){var u=r(s,{serviceIdentifier:s.serviceIdentifier});if(typeof o=="string"){var a=s.serviceIdentifier+"-"+o,f=t+"/../apis/"+a+".json";try{if(n.util.isBrowser())u.prototype.api=e(a+".json");else{var l=e("fs");u.prototype.api=JSON.parse(l.readFileSync(f))}}catch(c){throw n.util.error(c,{message:"Could not find API configuration "+a})}s.services.hasOwnProperty(o)||s.apiVersions.push(o),s.services[o]=u}else setApi(o);return n.Service.defineMethods(u),u}})}).call(this,"/lib")},{"./core":5,fs:116}],14:[function(e,t,n){var r=e("../core");e("../json/builder"),r.ServiceInterface.Json={buildRequest:function(t){var n=t.httpRequest,i=t.service.api,s=i.targetPrefix+"."+i.operations[t.operation].name,o=i.jsonVersion||"1.0",u=i.operations[t.operation].input,a=new r.JSON.Builder(u,i);n.path="/",n.body=a.build(t.params||{}),n.headers["Content-Type"]="application/x-amz-json-"+o,n.headers["X-Amz-Target"]=s},extractError:function(t){var n={},i=t.httpResponse;if(i.body.length>0){var s=JSON.parse(i.body.toString());s.__type||s.code?n.code=(s.__type||s.code).split("#").pop():n.code="UnknownError",n.code==="RequestEntityTooLarge"?n.message="Request body must be less than 1 MB":n.message=s.message||s.Message||null}else n.code=i.statusCode,n.message=null;t.error=r.util.error(new Error,n)},extractData:function(t){t.data=JSON.parse(t.httpResponse.body.toString()||"{}")}}},{"../core":5,"../json/builder":9}],15:[function(e,t,n){var r=e("../core");e("./rest"),e("./json"),r.ServiceInterface.Pop={buildRequest:function(t){r.ServiceInterface.Rest.buildRequest(t),r.ServiceInterface.Pop.populateBody(t)},extractError:function(t){r.ServiceInterface.Json.extractError(t)},extractData:function(t){t.data=JSON.parse(t.httpResponse.body.toString())},populateBody:function(t){t.httpRequest.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";var n=t.params;n.Format="JSON",n.Version=t.service.api.apiVersion,n.AccessKeyId=t.service.config.accessKeyId,n.SignatureVersion="1.0",n.SignatureMethod="HMAC-SHA1",n.SignatureNonce=Math.round(Math.random()*1e6),n.Timestamp=r.util.date.iso8601(r.util.date.getDate());var i=[];r.util.each(n,function(e){i.push(e)}),i.sort(function(e,t){return e<t?-1:1});var s="";r.util.arrayEach.call(this,i,function(e){s+="&"+e+"="+r.util.popEscape(n[e])});var o="POST&%2F&"+r.util.popEscape(s.substr(1));n.Signature=r.util.crypto.hmac(t.service.config.secretAccessKey+"&",o,"base64","sha1");var u=r.util.queryParamsToString(n);t.httpRequest.body=u},buildJSON:function(t,n,i){var s=new r.JSON.Builder(n,i);return s.build(t)}}},{"../core":5,"./json":14,"./rest":17}],16:[function(e,t,n){var r=e("../core"),i=r.util.inherit;r.ServiceInterface.Query={buildRequest:function(t){var n=t.service.api.operations[t.operation],i=t.httpRequest;i.method="GET",i.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",i.params={Action:n.name,Version:t.service.api.apiVersion,Timestamp:r.util.date.iso8601(r.util.date.getDate()),Format:"json",AccessKeyId:t.service.config.accessKeyId,SignatureVersion:"1.0",SignatureMethod:"HMAC-SHA1",SignatureNonce:r.util.uuid()};var s=n.input;s&&(s=s.members);var o=new r.QueryParamSerializer(s,t.service.api);o.serialize(t.params,function(e,t){i.params[e]=t}),i.path="/?"+r.util.queryParamsToString(i.params)},extractError:function(t){var n=JSON.parse(t.httpResponse.body.toString());n.Code?t.error=r.util.error(new Error,{code:n.Code,message:n.Message,RequestId:n.RequestId}):t.error=r.util.error(new Error,{code:t.httpResponse.statusCode,message:null,RequestId:n.RequestId})},extractData:function(t){t.data=t.httpResponse.body.toString()}},r.QueryParamSerializer=i({constructor:function(t,n){this.rules=t,this.timestampFormat=n?n.timestampFormat:"iso8601"},serialize:function(t,n){this.serializeStructure("",t,this.rules,n)},serializeStructure:function(t,n,i,s){var o=this;r.util.each(n,function(e,n){var r=i[e].name||e,u=t?t+"."+r:r;o.serializeMember(u,n,i[e],s)})},serializeMap:function(t,n,i,s){var o=1,u=this;r.util.each(n,function(e,n){var r=i.flattened?".":".entry.",a=r+o++ +".",f=a+(i.keys.name||"key"),l=a+(i.members.name||"value");u.serializeMember(t+f,e,i.keys,s),u.serializeMember(t+l,n,i.members,s)})},serializeList:function(t,n,i,s){var o=this,u=i.members||{};r.util.arrayEach(n,function(e,n){var r="."+(n+1);if(i.flattened){if(u.name){var a=t.split(".");a.pop(),a.push(u.name),t=a.join(".")}}else r=".member"+r;o.serializeMember(t+r,e,u,s)})},serializeMember:function(t,n,i,s){if(n===null||n===undefined)return;if(i.type==="structure")this.serializeStructure(t,n,i.members,s);else if(i.type==="list")this.serializeList(t,n,i,s);else if(i.type==="map")this.serializeMap(t,n,i,s);else if(i.type==="timestamp"){var o=i.format||this.timestampFormat;s.call(this,t,r.util.date.format(n,o))}else s.call(this,t,String(n))}})},{"../core":5}],17:[function(e,t,n){var r=e("../core");r.ServiceInterface.Rest={buildRequest:function(t){r.ServiceInterface.Rest.populateMethod(t),r.ServiceInterface.Rest.populateURI(t),r.ServiceInterface.Rest.populateHeaders(t)},extractError:function(){},extractData:function(t){var n=t.request,i={},s=t.httpResponse,o=n.service.api.operations[n.operation],u=(o.output||{}).members||{},a={};r.util.each(s.headers,function(e,t){a[e.toLowerCase()]=t}),r.util.each(u,function(e,t){if(t.location==="header"){var n=(t.name||e).toLowerCase();t.type=="map"&&(i[e]={},r.util.each(s.headers,function(n,r){var s=n.match(new RegExp("^"+t.name+"(.+)","i"));s!==null&&(i[e][s[1]]=r)})),a[n]!==undefined&&(i[e]=a[n])}t.location==="status"&&(i[e]=parseInt(s.statusCode,10))}),t.data=i},populateMethod:function(t){t.httpRequest.method=t.service.api.operations[t.operation].http.method},populateURI:function(t){var n=t.service.api.operations[t.operation],i=n.http.uri,s=i.split(/\?/)[0],o=(n.input||{}).members||{},u=t.service.escapePathParam||r.ServiceInterface.Rest.escapePathParam,a=t.service.escapeQuerystringParam||r.ServiceInterface.Rest.escapeQuerystringParam;r.util.each.call(this,o,function(e,n){if(n.location=="uri"&&t.params[e]!=null){var r=s.match("{"+e+"}")?u(t.params[e]):a(t.params[e]);i=i.replace("{"+e+"}",r)}});var f=i.split("?")[0],l=i.split("?")[1];if(l){var c=[];r.util.arrayEach(l.split("&"),function(e){e.match("{\\w+}")||c.push(e)}),i=c.length>0?f+"?"+c.join("&"):f}else i=f;t.httpRequest.path=i},escapePathParam:function(t){return r.util.uriEscape(String(t))},escapeQuerystringParam:function(t){return r.util.uriEscape(String(t))},populateHeaders:function(t){var n=t.service.api.operations[t.operation],i=(n.input||{}).members||{};r.util.each.call(this,i,function(e,n){if(n.location==="header"&&t.params[e])if(n.type==="map")r.util.each(t.params[e],function(e,r){t.httpRequest.headers[n.name+e]=r});else{var i=t.params[e];if(n.type==="timestamp"){var s=n.format||t.service.api.timestampFormat;i=r.util.date.format(i,s)}t.httpRequest.headers[n.name||e]=i}}),t.service.config.securityToken&&(t.httpRequest.headers["x-oss-security-token"]=t.service.config.securityToken)}}},{"../core":5}],18:[function(e,t,n){var r=e("../core");e("./rest"),e("./json"),r.ServiceInterface.RestJson={buildRequest:function(t){r.ServiceInterface.Rest.buildRequest(t),r.ServiceInterface.RestJson.populateBody(t)},extractError:function(t){r.ServiceInterface.Json.extractError(t)},extractData:function(t){var n=t.request,i=n.service.api.operations[n.operation].output||{};if(i.payload&&i.members[i.payload])i.members[i.payload].streaming?t.data[i.payload]=t.httpResponse.body:t.data[i.payload]=t.httpResponse.body.toString();else{var s=t.data;r.ServiceInterface.Json.extractData(t),t.data=r.util.merge(s,t.data)}},populateBody:function(t){var n=t.service.api.operations[t.operation].input,i=n.payload,s={};if(typeof i=="string"){var o=n.members[i];s=t.params[i];if(s===undefined)return;o.type==="structure"?t.httpRequest.body=this.buildJSON(s,n,t.service.api):t.httpRequest.body=s}else i&&(r.util.arrayEach(i,function(e){t.params[e]!==undefined&&(s[e]=t.params[e])}),t.httpRequest.body=this.buildJSON(s,n,t.service.api))},buildJSON:function(t,n,i){var s=new r.JSON.Builder(n,i);return s.build(t)}}},{"../core":5,"./json":14,"./rest":17}],19:[function(e,t,n){var r=e("../core");e("../xml/builder"),e("../xml/parser"),e("./rest"),r.ServiceInterface.RestXml={buildRequest:function(t){r.ServiceInterface.Rest.buildRequest(t),r.ServiceInterface.RestXml.populateBody(t)},extractError:function(t){try{var n=(new r.XML.Parser({})).parse(t.httpResponse.body.toString());n.Errors&&(n=n.Errors),n.Error&&(n=n.Error),n.Code?t.error=r.util.error(new Error,{code:n.Code,message:n.Message}):t.error=r.util.error(new Error,{code:t.httpResponse.statusCode,message:null})}catch(i){t.error=r.util.error(new Error,{code:t.httpResponse.statusCode,message:t.httpResponse.body.toString()})}},extractData:function(t){r.ServiceInterface.Rest.extractData(t);var n=t.request,i=t.httpResponse,s=n.service.api.operations[n.operation],o=s.output.members,u=s.output,a=u.payload;if(a)o[a].streaming?t.data[a]=i.body:t.data[a]=i.body.toString();else if(i.body.length>0)try{var f=new r.XML.Parser(s.output||{});r.util.update(t.data,f.parse(i.body.toString()))}catch(l){}t.data.RequestId=i.headers["x-oss-request-id"]||i.headers["x-oss-requestid"]},populateBody:function(t){var n=t.service.api.operations[t.operation].input,i=n.payload,s={},o=null,u=t.params;if(typeof i=="string"){s=n.members[i],u=u[i];if(u===undefined)return;s.type==="structure"?(o=new r.XML.Builder(i,s.members,t.service.api),t.httpRequest.body=o.toXML(u)):t.httpRequest.body=u}else i&&(r.util.arrayEach(i,function(e){s[e]=n.members[e]}),o=new r.XML.Builder(n.wrapper,s,t.service.api),t.httpRequest.body=o.toXML(u))}}},{"../core":5,"../xml/builder":34,"../xml/parser":35,"./rest":17}],20:[function(e,t,n){var r=e("../core");e("./rest"),e("./json"),r.ServiceInterface.Top={buildRequest:function(t){r.ServiceInterface.Top.populateMethod(t),r.ServiceInterface.Top.populateBodyAndURI(t)},extractError:function(t){r.ServiceInterface.Json.extractError(t)},extractData:function(t){t.data=JSON.parse(t.httpResponse.body.toString())},populateMethod:function(t){t.httpRequest.method=t.service.api.operations[t.operation].http.method},populateBodyAndURI:function(t){t.httpRequest.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",t.httpRequest.headers["Cache-Control"]="no-cache",t.httpRequest.headers.Connection="Keep-Alive";var n=t.params;r.util.each(n,function(e){var t=n[e];t!==null&&typeof t=="object"&&(n[e]=JSON.stringify(t))});var i={format:"json",app_key:t.service.config.accessKeyId,sign_method:"md5",v:"2.0",timestamp:r.util.date.unixMilliseconds(r.util.date.getDate()),partner_id:"taobao-sdk-python-20151223",method:n.method};delete n.method;var s=[];r.util.each(i,function(e){s.push(e)}),r.util.each(n,function(e){s.push(e)}),s.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var o="";r.util.arrayEach.call(this,s,function(e){o+=e+(i[e]||n[e])});var u=t.service.config.secretAccessKey+o+t.service.config.secretAccessKey;i.sign=r.util.crypto.md5(u,"hex").toUpperCase(),t.httpRequest.body=r.util.queryParamsToString(n),t.httpRequest.path="/router/rest?"+r.util.queryParamsToString(i)},buildJSON:function(t,n,i){var s=new r.JSON.Builder(n,i);return s.build(t)}}},{"../core":5,"./json":14,"./rest":17}],21:[function(e,t,n){var r=e("../core"),i=e("url").parse;r.BatchCompute=r.Service.defineService("batchcompute",["2015-06-30","2015-11-11"],{initialize:function(t){r.Service.prototype.initialize.call(this,t)},setupRequestListeners:function(t){var n=this,i=r.ServiceInterface.RestJson;t.addListener("build",this.addContentType),t.removeListener("extractData",i.extractData),t.addListener("extractError",this.extractError),t.addListener("extractData",function(e){n.extractData(e,t.operation)})},addContentType:function(e){var t=e.httpRequest,n=t.headers;n["x-acs-version"]=e.service.config.apiVersion,e.operation==="updateJobPriority"&&(t.body=JSON.parse(t.body).priority+"",n["Content-Type"]="application/octet-stream")},extractData:function(t,n){t.data=JSON.parse(t.httpResponse.body.toString().trim()||"{}");var r=t.data;delete r.RequestId;var i=t.httpResponse.headers["request-id"];t.data={code:t.httpResponse.statusCode,message:t.httpResponse.headers.status,headers:t.httpResponse.headers,requestId:i||""};if(t.request.httpRequest.headers["x-acs-version"]=="2015-06-30")switch(n){case"listJobs":t.data.data=this.getFormatters().formatJobList(r);break;case"getJob":t.data.data=this.getFormatters().formatJob(r);break;case"getJobDescription":t.data.data=this.getFormatters().formatJobDescription(r);break;case"listTasks":t.data.data=this.getFormatters().formatTaskList(r);break;case"listImages":t.data.data=this.getFormatters().formatImageList(r);break;case"createJob":t.data.data=this.getFormatters().formatJob(r)}else t.data.data=r},getFormatters:function(){function e(e){switch(e){case 0:return"Init";case 1:return"Waiting";case 2:return"Running";case 3:return"Finished";case 4:return"Failed";case 5:return"Stopped";default:return"Unkowned"}}return{formatJob:function(e){return e.JobId=e.ResourceId,e.JobName=e.Name,e.CreationTime=e.CreateTime,delete e.Name,delete e.ResourceId,delete e.CreateTime,e["State"]=="Terminated"&&(e.State="Finished"),e},formatJobList:function(e){var t=this,n=[];return Object.keys(e).forEach(function(r){n.push(t.formatJob(e[r]))}),n.sort(function(e,t){return e.JobId>t.JobId?1:-1}),n},formatTaskList:function(t){var n=[];return Object.keys(t).forEach(function(r){var i=t[r];i.TaskName=r,i.State=e(i.State),i.InstanceList=i.InstanceStatusVector,delete i.InstanceStatusVector,delete i.UnfinishedInstances,i.InstanceList&&i.InstanceList.forEach(function(t){t.State=e(t.State),delete t.WorkerStartTime,delete t.WorkerEndTime}),n.push(t[r])}),n.sort(function(e,t){return e["StartTime"]==0?t["StartTime"]==0?e.TaskName>t.TaskName?1:-1:-1:t["StartTime"]==0?-1:e.StartTime>t.StartTime?1:-1}),n},formatImageList:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];r.ImageId=n,r.ImageName=r.Name,delete r.Name,t.push(e[n])}),t.sort(function(e,t){return e.ImageId>t.ImageId?1:-1}),t},formatJobDescription:function(e){var t=e.TaskDag.TaskDescMap;return Object.keys(t).forEach(function(e){var n=t[e];delete n.BlockDeviceMapping,delete n.CreateSnapshotAfterTerminated,delete n.LoadImage,delete n.SaveImage,delete n.LoadPreparedData,delete n.MaxReplica,delete n.MinReplica}),e}}},extractError:function(t){var n=t.httpResponse.headers,i=t.httpResponse.body,s=i.toString();try{s=JSON.parse(s)}catch(o){s={}}t.error=r.util.error(new Error(s.Message),{code:s.Code||s.ErrorCode,headers:n,requestId:n["request-id"]})}}),t.exports=r.BatchCompute},{"../core":5,url:147}],22:[function(e,t,n){var r=e("../core"),i=e("url").parse;r.OpenSearch=r.Service.defineService("opensearch",["2015-01-01"],{initialize:function(t){r.Service.prototype.initialize.call(this,t)},setupRequestListeners:function(t){t.addListener("build",this.addContentType),t.addListener("build",this.buildContent),t.removeListener("validate",r.EventListeners.Core.VALIDATE_REGION),t.addListener("extractError",this.extractError),t.addListener("extractData",this.extractData)},populateURI:function(t){var n=t.httpRequest.endpoint.hostname,s=t.params.projectName,o=s+"."+n;if(!/^[0-9.]+$/.test(n)){var u=t.httpRequest.endpoint.protocol,a=t.httpRequest.endpoint.port,f=i(u+"//"+o+":"+a);r.util.update(t.httpRequest,{endpoint:f})}t.httpRequest.headers.Host=o,delete t.httpRequest.headers.projectName},addContentType:function(t){var n=t.httpRequest;n.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"},buildContent:function(t){var n=t.service.api.operations[t.operation].input,i=n.payload,s={};if(typeof i=="string"){var o=n.members[i];s=t.params[i];if(s===undefined)return;o.type==="structure"?t.httpRequest.body=this.buildJSON(s,n,t.service.api):t.httpRequest.body=s}else if(i){var u=[];r.util.arrayEach(i,function(e){t.params[e]!==undefined&&(s[e]=t.params[e],e=="items"?u.push(e+"="+encodeURIComponent(JSON.stringify(t.params[e]))):u.push(e+"="+t.params[e]))}),t.httpRequest.body=u.join("&")}},willComputeChecksums:function(t){var n=t.service.api.operations[t.operation].input;if(n.ContentMD5)return!0},computeContentMd5:function(t){if(t.service.willComputeChecksums(t)){var n=r.util.crypto.md5(t.httpRequest.body,"hex").toUpperCase();t.httpRequest.headers["Content-MD5"]=n}},computeSha256:function(t){t.service.getSignerClass(t)===r.Signers.V4&&(t.httpRequest.headers["X-Amz-Content-Sha256"]=r.util.crypto.sha256(t.httpRequest.body||"","hex"))},escapePathParam:function(t){return r.util.uriEscapePath(String(t))},successfulResponse:function(t){var n=t.httpResponse;return n.statusCode<300},retryableError:function(t,n){var i=r.Service.prototype.retryableError;return i.call(this,t,n)},extractData:function(t){r.ServiceInterface.Rest.extractData(t);var n=t.request,i=n.service.api.operations[n.operation].output||{};if(i.payload&&i.members[i.payload])i.members[i.payload].streaming?t.data[i.payload]=t.httpResponse.body:t.data[i.payload]=t.httpResponse.body.toString();else{var s=t.data;r.ServiceInterface.Json.extractData(t
),t.data=r.util.merge(s,t.data)}},extractError:function(t){var n={},i=t.httpResponse;if(i.body.length>0){var s=JSON.parse(i.body.toString());s.__type||s.code?n.code=(s.__type||s.code).split("#").pop():n.code="UnknownError",n.code==="RequestEntityTooLarge"?n.message="Request body must be less than 1 MB":n.message=s.message||s.Message||null}else n.code=i.statusCode,n.message=null;t.error=r.util.error(new Error,n)}}),t.exports=r.OpenSearch},{"../core":5,url:147}],23:[function(e,t,n){var r=e("../core");r.OSS=r.Service.defineService("oss",["2013-10-15"],{initialize:function(t){r.Service.prototype.initialize.call(this,t)},setupRequestListeners:function(t){t.addListener("build",this.addContentType),t.addListener("build",this.populateURI),t.addListener("build",this.computeContentMd5),t.addListener("extractError",this.extractError),t.addListener("extractData",this.extractData)},populateURI:function(t){var n=t.httpRequest,r=t.params.Bucket;r&&(n.endpoint.host=n.endpoint.hostname=r+"."+n.endpoint.hostname,n.virtualHostedBucket=r,n.path=n.path.replace(new RegExp("^/"+r),""),n.path[0]!=="/"&&(n.path="/"+n.path))},addContentType:function(t){var n=t.httpRequest;n.headers["Content-Type"]||(n.headers["Content-Type"]="application/octet-stream");if(r.util.isBrowser()&&window.navigator.userAgent.match(/Firefox/)&&!n.headers["Content-Type"].match(/;/)){var i="; charset=UTF-8";n.headers["Content-Type"]+=i}},willComputeChecksums:function(t){var n=t.service.api.operations[t.operation].input.members;if(n.ContentMD5&&!t.params.ContentMD5)return!0},computeContentMd5:function(t){if(t.service.willComputeChecksums(t)){var n=r.util.crypto.md5(t.httpRequest.body,"base64");t.httpRequest.headers["Content-MD5"]=n}},escapePathParam:function(t){return r.util.uriEscapePath(String(t))},successfulResponse:function(t){var n=t.request,r=t.httpResponse;return n.operation==="completeMultipartUpload"&&r.body.toString().match("<Error>")?!1:r.statusCode<300},retryableError:function(t,n){if(n.operation=="completeMultipartUpload"&&t.statusCode===200)return!0;var i=r.Service.prototype.retryableError;return i.call(this,t,n)},extractData:function(t){var n=t.request;if(n.operation==="getBucketLocation"){var r=t.httpResponse.body.toString().match(/>(.+)<\/Location/);r&&(delete t.data._,t.data.LocationConstraint=r[1])}t.data.RequestId=t.httpResponse.headers["x-oss-request-id"]||t.httpResponse.headers["x-oss-requestid"]},extractError:function(t){var n={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},i=t.httpResponse.statusCode,s=t.httpResponse.body;if(n[i]&&s.length===0)t.error=r.util.error(new Error,{code:n[t.httpResponse.statusCode],message:null,headers:t.httpResponse.headers});else{var o;try{o=(new r.XML.Parser({})).parse(s.toString()),t.error=r.util.error(new Error,{code:o.Code||i,message:o.Message||null,headers:t.httpResponse.headers})}catch(u){o=s.toString(),t.error=r.util.error(new Error,{code:i,message:o,headers:t.httpResponse.headers})}}},getSignedUrl:function(t,n,i){function a(){delete o.httpRequest.headers["User-Agent"],o.service.getSignerClass()===r.Signers.V4?o.httpRequest.headers[u]=s:o.httpRequest.headers[u]=parseInt(r.util.date.unixSeconds()+s,10).toString()}function f(){var e={};r.util.each(o.httpRequest.headers,function(t,n){t===u&&(t="Expires"),e[t]=n}),delete o.httpRequest.headers[u];var t=e.Authorization.split(" ");t[0]==="OSS"&&(t=t[1].split(":"),e.OSSAccessKeyId=t[0],e.Signature=t[1]),delete e.Authorization,delete e.Host;var n=o.httpRequest.endpoint,i=r.util.urlParse(o.httpRequest.path),s=r.util.queryParamsToString(e);n.pathname=i.pathname,n.search=i.search?i.search+"&"+s:s}n=r.util.copy(n||{});var s=n.Expires||900;delete n.Expires;var o=this.makeRequest(t,n),u="presigned-expires";o.on("build",a),o.on("sign",f),o.removeListener("build",this.addContentType),o.removeAllListeners("afterBuild"),n.Body||o.removeListener("build",this.computeContentMd5);if(!i)return o.build(),r.util.urlFormat(o.httpRequest.endpoint);o.build(function(){o.response.error?i(o.response.error,null):i(null,r.util.urlFormat(o.httpRequest.endpoint))})}}),t.exports=r.OSS},{"../core":5}],24:[function(e,t,n){(function(n){var r=e("../core"),i=r.util.inherit;r.Signers.BatchCompute=i(r.Signers.RequestSigner,{addAuthorization:function(t,n){var i=this.request.headers;i["x-acs-date"]=r.util.date.rfc822(n),i["x-acs-signature-method"]="HMAC-SHA1",i["x-acs-signature-version"]="1.0",i["x-sdk-client"]="node.js/1.0.0",i.Accept="application/json";var s=this.sign(t.secretAccessKey,this.stringToSign()),o="acs "+t.accessKeyId+":"+s;i.Authorization=o},stringToSign:function(){var t=this.request;t.method!="GET"&&t.method!="HEAD"&&(t.headers["Content-Type"]=t.headers["Content-Type"]||"text/plain;charset=UTF-8");var n=[];n.push(t.method),n.push(t.headers.Accept||""),n.push(t.headers["Content-MD5"]||""),n.push(t.headers["Content-Type"]||""),n.push(t.headers["x-acs-date"]||t.headers.Date||"");var r=this.canonicalizedAmzHeaders();return r&&n.push(r),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var t=[];r.util.each(this.request.headers,function(e){e.match(/^x-acs-/i)&&t.push(e)}),t.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var n=[];return r.util.arrayEach.call(this,t,function(e){n.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),n.join("\n")},canonicalizedResource:function(){var t=this.request,n=t.path.split("?"),i=n[0],s=n[1],o="";o+=decodeURIComponent(i);if(s){var u=[],a=s.replace(/(^&*)|(&*$)/g,"").split("&");r.util.arrayEach.call(this,a,function(e){var t=e.split("="),n=t[0],r=t.length>1?decodeURIComponent(t[1]):"",i={name:n};r!==undefined&&(i.value=r),u.push(i)}),u.sort(function(e,t){return e.name<t.name?-1:1}),u.length&&(s=[],r.util.arrayEach(u,function(e){e.value===undefined?s.push(e.name):e.value!=null&&e.value!=""?s.push(e.name+"="+e.value):s.push(e.name)}),o+="?"+s.join("&"))}return o},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t,i,"base64","sha1")}}),t.exports=r.Signers.BatchCompute}).call(this,e("_process"))},{"../core":5,_process:125}],25:[function(e,t,n){(function(n){function s(e){var t="";for(var n=0;n<e;n++)t+=Math.floor(Math.random()*10);return t}var r=e("../core"),i=r.util.inherit;r.Signers.CMS=i(r.Signers.RequestSigner,{addAuthorization:function(t,n){var n=new Date,r={Format:"JSON",Version:"2015-10-20",AccessKeyId:t.accessKeyId,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:String(n.getTime())+s(4),Timestamp:n.toISOString().replace(/\.\d{3}/,"")},i=[];Object.keys(r).forEach(function(e){i.push(e+"="+encodeURIComponent(r[e]))}),this.request.path+=(this.request.path.indexOf("?")==-1?"?":"&")+i.join("&");var o=this.sign(t.secretAccessKey,this.stringToSign());this.request.path+="&Signature="+encodeURIComponent(o)},stringToSign:function(){var t=this.request,n=t.method+"&%2F&"+encodeURIComponent(this.canonicalizedQueryString());return n},canonicalizedQueryString:function(){var t=this,n=this.request,i=n.path.split("?")[1],s="";n.body&&(i+="&"+n.body);if(i){var o=[];r.util.arrayEach.call(this,i.split("&"),function(e){var t=e.indexOf("="),n=e.slice(0,t),r=e.slice(t+1),i={name:n};r!==undefined&&(i.value=decodeURIComponent(r)),o.push(i)}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(i=[],r.util.arrayEach(o,function(e){e.value===undefined?i.push(t.cmsEscape(e.name)):i.push(t.cmsEscape(e.name)+"="+t.cmsEscape(e.value))}),s+=i.join("&"))}return s},cmsEscape:function(e){return encodeURIComponent(e).replace(/\!/gi,"%21").replace(/\'/gi,"%27").replace(/\(/gi,"%28").replace(/\)/gi,"%29").replace(/\*/gi,"%2A")},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t+"&",i,"base64","sha1")}}),t.exports=r.Signers.CMS}).call(this,e("_process"))},{"../core":5,_process:125}],26:[function(e,t,n){(function(n){function s(e){var t="";for(var n=0;n<e;n++)t+=Math.floor(Math.random()*10);return t}var r=e("../core"),i=r.util.inherit;r.Signers.OpenSearch=i(r.Signers.RequestSigner,{addAuthorization:function(t,n){var n=new Date,r={Version:"v2",AccessKeyId:t.accessKeyId,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:String(n.getTime())+s(4),Timestamp:n.toISOString().replace(/\.\d{3}/,"")},i=[];Object.keys(r).forEach(function(e){i.push(e+"="+encodeURIComponent(r[e]))}),this.request.path+=(this.request.path.indexOf("?")==-1?"?":"&")+i.join("&");var o=this.sign(t.secretAccessKey,this.stringToSign());this.request.path+="&Signature="+encodeURIComponent(o)},stringToSign:function(){var t=this.request,n=t.method+"&%2F&"+encodeURIComponent(this.canonicalizedQueryString());return n},canonicalizedQueryString:function(){var t=this.request,n=t.path.split("?")[1],i="";t.body&&(n+="&"+t.body);if(n){var s=[];r.util.arrayEach.call(this,n.split("&"),function(e){var t=e.indexOf("="),n=e.slice(0,t),r=e.slice(t+1),i={name:n};r!==undefined&&(i.value=decodeURIComponent(r)),s.push(i)}),s.sort(function(e,t){return e.name<t.name?-1:1}),s.length&&(n=[],r.util.arrayEach(s,function(e){e.value===undefined?n.push(r.util.opensearchEscape(e.name)):n.push(r.util.opensearchEscape(e.name)+"="+r.util.opensearchEscape(e.value))}),i+=n.join("&"))}return i},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t+"&",i,"base64","sha1")}}),t.exports=r.Signers.OpenSearch}).call(this,e("_process"))},{"../core":5,_process:125}],27:[function(e,t,n){(function(n){var r=e("../core"),i=r.util.inherit;r.Signers.OSS=i(r.Signers.RequestSigner,{subResources:{acl:1,cors:1,lifecycle:1,"delete":1,location:1,logging:1,notification:1,partNumber:1,policy:1,requestPayment:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(t,n){this.request.headers["presigned-expires"]||(r.util.isBrowser()?this.request.headers["x-oss-date"]=r.util.date.rfc822(n):this.request.headers.Date=r.util.date.rfc822(n));var i=this.sign(t.secretAccessKey,this.stringToSign()),s="OSS "+t.accessKeyId+":"+i;this.request.headers.Authorization=s},stringToSign:function(){var t=this.request,n=[];n.push(t.method),n.push(t.headers["Content-MD5"]||""),n.push(t.headers["Content-Type"]||""),n.push(t.headers["presigned-expires"]||t.headers["x-oss-date"]||t.headers.Date||"");var r=this.canonicalizedHeaders();return r&&n.push(r),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedHeaders:function(){var t=[];r.util.each(this.request.headers,function(e){e.match(/^x-oss-/i)&&t.push(e)}),t.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var n=[];return r.util.arrayEach.call(this,t,function(e){n.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),n.join("\n")},canonicalizedResource:function(){var t=this.request,n=t.path.split("?"),i=n[0],s=n[1],o="";t.virtualHostedBucket&&(o+="/"+t.virtualHostedBucket),o+=decodeURIComponent(i);if(s){var u=[];r.util.arrayEach.call(this,s.split("&"),function(e){var t=e.split("=")[0],n=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var r={name:t};n!==undefined&&(this.subResources[t]?r.value=n:r.value=decodeURIComponent(n)),u.push(r)}}),u.sort(function(e,t){return e.name<t.name?-1:1}),u.length&&(s=[],r.util.arrayEach(u,function(e){e.value===undefined?s.push(e.name):s.push(e.name+"="+e.value)}),o+="?"+s.join("&"))}return o},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t,i,"base64","sha1")}}),t.exports=r.Signers.OSS}).call(this,e("_process"))},{"../core":5,_process:125}],28:[function(e,t,n){(function(n){var r=e("../core"),i=r.util.inherit;r.Signers.OTS=i(r.Signers.RequestSigner,{subResources:{acl:1,cors:1,lifecycle:1,"delete":1,location:1,logging:1,notification:1,partNumber:1,policy:1,requestPayment:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(t,n){this.request.headers["x-ots-date"]=r.util.date.rfc822(n),this.request.headers["x-ots-accesskeyid"]=t.accessKeyId;var i=this.sign(t.secretAccessKey,this.stringToSign());this.request.headers["x-ots-signature"]=i},stringToSign:function(){var t=this.request,n=[];n.push(t.path),n.push(t.method+"\n");var r=this.canonicalizedHeaders();return r&&n.push(r),n.join("\n")+"\n"},canonicalizedHeaders:function(){var t=[];r.util.each(this.request.headers,function(e){e.match(/^x-ots-/i)&&t.push(e)}),t.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var n=[];return r.util.arrayEach.call(this,t,function(e){n.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),n.join("\n")},canonicalizedResource:function(){var t=this.request,n=t.path.split("?"),i=n[0],s=n[1],o="";t.virtualHostedBucket&&(o+="/"+t.virtualHostedBucket),o+=decodeURIComponent(i);if(s){var u=[];r.util.arrayEach.call(this,s.split("&"),function(e){var t=e.split("=")[0],n=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var r={name:t};n!==undefined&&(this.subResources[t]?r.value=n:r.value=decodeURIComponent(n)),u.push(r)}}),u.sort(function(e,t){return e.name<t.name?-1:1}),u.length&&(s=[],r.util.arrayEach(u,function(e){e.value===undefined?s.push(e.name):s.push(e.name+"="+e.value)}),o+="?"+s.join("&"))}return o},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t,i,"base64","sha1")}}),t.exports=r.Signers.OSS}).call(this,e("_process"))},{"../core":5,_process:125}],29:[function(e,t,n){var r=e("../core"),i=r.util.inherit;r.Signers.POP=i(r.Signers.RequestSigner,{addAuthorization:function(t,n){}}),t.exports=r.Signers.POP},{"../core":5}],30:[function(e,t,n){var r=e("../core"),i=r.util.inherit;r.Signers.RequestSigner=i({constructor:function(t){this.request=t}}),r.Signers.RequestSigner.getVersion=function(t){switch(t){case"oss":return r.Signers.OSS;case"ots":return r.Signers.OTS;case"sls":return r.Signers.SLS;case"top":return r.Signers.TOP;case"pop":return r.Signers.POP;case"opensearch":return r.Signers.OpenSearch;case"batchcompute":return r.Signers.BatchCompute;case"cms":return r.Signers.CMS}throw new Error("Unknown signing version "+t)},e("./oss"),e("./ots"),e("./sls"),e("./opensearch"),e("./top"),e("./pop"),e("./batchcompute"),e("./cms")},{"../core":5,"./batchcompute":24,"./cms":25,"./opensearch":26,"./oss":27,"./ots":28,"./pop":29,"./sls":31,"./top":32}],31:[function(e,t,n){(function(n){var r=e("../core"),i=r.util.inherit;r.Signers.SLS=i(r.Signers.RequestSigner,{responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(t,n){this.request.headers.Date=r.util.date.rfc822(n);var i=this.sign(t.secretAccessKey,this.stringToSign()),s="LOG "+t.accessKeyId+":"+i;this.request.headers.Authorization=s},stringToSign:function(){var t=this.request,n=[];n.push(t.method),n.push(t.headers["Content-MD5"]||""),n.push(t.headers["Content-Type"]||""),n.push(t.headers.Date||"");var r=this.canonicalizedAmzHeaders();return r&&n.push(r),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var t=[];r.util.each(this.request.headers,function(e){e.match(/^x-log-/i)&&t.push(e)}),t.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var n=[];return r.util.arrayEach.call(this,t,function(e){n.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),n.join("\n")},canonicalizedResource:function(){var t=this.request,n=t.path.split("?"),i=n[0],s=n[1],o="";o+=decodeURIComponent(i);if(s){var u=[],a=s.replace(/(^&*)|(&*$)/g,"").split("&");r.util.arrayEach.call(this,a,function(e){var t=e.split("="),n=t[0],r=t.length>1?decodeURIComponent(t[1]):"",i={name:n};r!==undefined&&(i.value=r),u.push(i)}),u.sort(function(e,t){return e.name<t.name?-1:1}),u.length&&(s=[],r.util.arrayEach(u,function(e){e.value===undefined?s.push(e.name):s.push(e.name+"="+e.value)}),o+="?"+s.join("&"))}return o},sign:function(t,i){return n.env.DEBUG=="aliyun"&&(console.log("----------- sign string start -----------"),console.log(i),console.log("----------- sign string end -----------")),r.util.crypto.hmac(t,i,"base64","sha1")}}),t.exports=r.Signers.SLS}).call(this,e("_process"))},{"../core":5,_process:125}],32:[function(e,t,n){var r=e("../core"),i=r.util.inherit;r.Signers.TOP=i(r.Signers.RequestSigner,{addAuthorization:function(t,n){}}),t.exports=r.Signers.TOP},{"../core":5}],33:[function(e,t,n){(function(n){var r=e("./core"),i=e("../bower_components/jsSHA/src/sha.js"),s=e("../bower_components/spark-md5/spark-md5.js"),o=e("buffer").Buffer;r.util={engine:function(){return r.util.isBrowser()&&typeof navigator!="undefined"?navigator.userAgent:n.platform+"/"+n.version},userAgent:function(){return""},isBrowser:function(){return typeof window!="undefined"},isNode:function(){return!r.util.isBrowser()},nodeRequire:function(n){if(r.util.isNode())return e(n)},hexToBase64:function(e){return btoa(String.fromCharCode.apply(null,e.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))},topEscape:function(e){var t="",n=0;e=e.toString();var r=/(^[a-zA-Z0-9-_.~]*)/;while(n<e.length){var i=r.exec(e.substr(n));if(i!=null&&i.length>1&&i[1]!="")t+=i[1],n+=i[1].length;else{if(e[n]==" ")t+="%20";else{var s=e.charCodeAt(n),o=s.toString(16);t+="%"+(o.length<2?"0":"")+o.toUpperCase()}n++}}return t},popEscape:function(e){return e=e.toString(),e=encodeURIComponent(e).replace(/\!/gi,"%21").replace(/\'/gi,"%27").replace(/\(/gi,"%28").replace(/\)/gi,"%29").replace(/\*/gi,"%2A"),e},opensearchEscape:function(e){return encodeURIComponent(e).replace(/\!/gi,"%21").replace(/\'/gi,"%27").replace(/\(/gi,"%28").replace(/\)/gi,"%29").replace(/\*/gi,"%2A")},uriEscape:function(t){var n=encodeURIComponent(t);return n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),n=n.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}),n},uriEscapePath:function(t){var n=[];return r.util.arrayEach(t.split("/"),function(e){n.push(r.util.uriEscape(e))}),n.join("/")},urlParse:function(n){return e("url").parse(n)},urlFormat:function(n){return e("url").format(n)},uuid:function(){var t=(new Date).getTime();window.performance&&typeof window.performance.now=="function"&&(t+=performance.now());var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)});return n},queryParamsToString:function(t){var n=[],i=r.util.uriEscape,s=Object.keys(t).sort();return r.util.arrayEach(s,function(e){var s=t[e],o=i(e),u=o;if(Array.isArray(s)){var a=[];r.util.arrayEach(s,function(e){a.push(i(e))}),u=o+"="+a.sort().join("&"+o+"=")}else s!==undefined&&s!==null&&(u=o+"="+i(s));n.push(u)}),n.join("&")},readFileSync:function(n){return typeof window!="undefined"?null:e("fs").readFileSync(n,"utf-8")},base64:{encode:function(t){return(new o(t)).toString("base64")},decode:function(t){return(new o(t,"base64")).toString()}},Buffer:o,buffer:{concat:function(e){var t=0,n=0,r=null,i;for(i=0;i<e.length;i++)t+=e[i].length;r=new o(t);for(i=0;i<e.length;i++)e[i].copy(r,n),n+=e[i].length;return r}},string:{byteLength:function(n){if(n===null||n===undefined)return 0;typeof n=="string"&&(n=new o(n));if(typeof n.byteLength=="number")return n.byteLength;if(typeof n.length=="number")return n.length;if(typeof n.size=="number")return n.size;if(typeof n.path=="string")return e("fs").lstatSync(n.path).size;throw r.util.error(new Error("Cannot determine length of "+n),{object:n})}},jamespath:{query:function(t,n){if(!n)return[];var i=[],s=t.split(/\s+or\s+/);return r.util.arrayEach.call(this,s,function(e){var t=[n],s=e.split(".");r.util.arrayEach.call(this,s,function(e){var n=e.match("^(.+?)(?:\\[(-?\\d+|\\*)\\])?$"),i=[];r.util.arrayEach.call(this,t,function(e){n[1]==="*"?r.util.arrayEach.call(this,e,function(e){i.push(e)}):e.hasOwnProperty(n[1])&&i.push(e[n[1]])}),t=i,n[2]&&(i=[],r.util.arrayEach.call(this,t,function(e){if(Array.isArray(e))if(n[2]==="*")i=i.concat(e);else{var t=parseInt(n[2],10);t<0&&(t=e.length+t),i.push(e[t])}}),t=i);if(t.length===0)return r.util.abort});if(t.length>0)return i=t,r.util.abort}),i},find:function(t,n){return r.util.jamespath.query(t,n)[0]}},date:{getDate:function(){return new Date},top:function(t,n){function r(e){return e.toString().length<2?"0"+e:e}return n=n||"%Y-%M-%dT%H:%m:%sZ",n.replace(/%([a-zA-Z])/g,function(e,n){switch(n){case"Y":return t.getUTCFullYear();case"M":return r(t.getUTCMonth()+1);case"d":return r(t.getUTCDate());case"H":return r(t.getUTCHours());case"m":return r(t.getUTCMinutes());case"s":return r(t.getUTCSeconds());default:throw new Error("Unsupported format code: "+n)}})},iso8601:function(t){return t===undefined&&(t=r.util.date.getDate()),t.toISOString()},rfc822:function(t){return t===undefined&&(t=r.util.date.getDate()),t.toUTCString()},unixSeconds:function(t){return t===undefined&&(t=r.util.date.getDate()),Math.floor(t.getTime()/1e3)},unixMilliseconds:function(t){return t===undefined&&(t=r.util.date.getDate()),t.getTime()},from:function(t){return typeof t=="number"?t.toString().length==10?new Date(t*1e3):new Date(t):Object.prototype.toString.call(t)==="[object Date]"?t:new Date(t)},format:function(t,n){return n||(n="unixSeconds"),r.util.date[n](r.util.date.from(t))}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(t){var n=r.util.crypto.crc32Table,i=-1;typeof t=="string"&&(t=new o(t));for(var s=0;s<t.length;s++){var u=t.readUInt8(s);i=i>>>8^n[(i^u)&255]}return(i^-1)>>>0},hmac:function(t,n,r,s){r||(r="binary");if(r==="buffer")return r=undefined,"";s||(s="sha256");if(typeof n!="string")return"";var o;switch(s){case"md5":return"";case"sha1":o=new i("SHA-1","TEXT");break;case"sha256":o=new i("SHA-256","TEXT");break;case"sha512":o=new i("SHA-512","TEXT");break;default:return""}o.setHMACKey(t,"TEXT"),o.update(n);switch(r){case"binary":return o.getHMAC("BYTES");case"hex":return o.getHMAC("HEX");case"base64":return o.getHMAC("B64");default:return""}},md5:function(t,n){var i="";n||(n="binary");if(n==="buffer")return n=undefined,"";if(typeof t=="string")switch(n){case"binary":return s.hash(t,!0);case"hex":return s.hash(t);case"base64":return r.util.hexToBase64(s.hash(t));default:return""}else switch(n){case"binary":return s.ArrayBuffer.hash(t,!0);case"hex":return s.ArrayBuffer.hash(t);case"base64":return r.util.hexToBase64(s.ArrayBuffer.hash(t));default:return""}},sha256:function(t,n){return""},toHex:function(t){var n=[];for(var r=0;r<t.length;r++)n.push(("0"+t.charCodeAt(r).toString(16)).substr(-2,2));return n.join("")}},abort:{},each:function(t,n){for(var i in t)if(t.hasOwnProperty(i)){var s=n.call(this,i,t[i]);if(s===r.util.abort)break}},arrayEach:function(t,n){for(var i in t)if(t.hasOwnProperty(i)){var s=n.call(this,t[i],parseInt(i,10));if(s===r.util.abort)break}},update:function(t,n){return r.util.each(n,function(n,r){t[n]=r}),t},merge:function(t,n){return r.util.update(r.util.copy(t),n)},copy:function(t){if(t===null||t===undefined)return t;var n={};for(var r in t)n[r]=t[r];return n},isEmpty:function(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return!0},isType:function(t,n){return typeof n=="function"&&(n=r.util.typeName(n)),Object.prototype.toString.call(t)==="[object "+n+"]"},typeName:function(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString(),r=n.match(/^\s*function (.+)\(/);return r?r[1]:n},error:function(t,n){var i=null;return typeof t.message=="string"&&t.message!==""&&(typeof n=="string"||n&&n.message)&&(i=r.util.copy(t),i.message=t.message),t.message=t.message||null,typeof n=="string"?t.message=n:r.util.update(t,n),typeof Object.defineProperty=="function"&&(Object.defineProperty(t,"name",{writable:!0,enumerable:!1}),Object.defineProperty(t,"message",{enumerable:!0})),t.name=t.name||t.code||"Error",t.time=new Date,i&&(t.originalError=i),t},inherit:function(t,n){var i=null;if(n===undefined)n=t,t=Object,i={};else{var s=function(){};s.prototype=t.prototype,i=new s}return n.constructor===Object&&(n.constructor=function(){if(t!==Object)return t.apply(this,arguments)}),n.constructor.prototype=i,r.util.update(n.constructor.prototype,n),n.constructor.__super__=t,n.constructor},mixin:function(){var t=arguments[0];for(var n=1;n<arguments.length;n++)for(var r in arguments[n].prototype){var i=arguments[n].prototype[r];r!="constructor"&&(t.prototype[r]=i)}return t},hideProperties:function(t,n){if(typeof Object.defineProperty!="function")return;r.util.arrayEach(n,function(e){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0})})}},t.exports=r.util}).call(this,e("_process"))},{"../bower_components/jsSHA/src/sha.js":1,"../bower_components/spark-md5/spark-md5.js":2,"./core":5,_process:125,buffer:118,fs:116,url:147}],34:[function(e,t,n){var r=e("../core"),i=e("xmlbuilder"),s=r.util.inherit;r.XML.Builder=s({constructor:function(t,n,r){this.root=t,this.rules=n,this.xmlns=r.xmlnamespace,this.timestampFormat=r.timestampFormat},toXML:function(t){var n=i.create(this.root);return this.xmlns&&n.att("xmlns",this.xmlns),this.serializeStructure(this.rules,t,n),n.root().toString()},serializeStructure:function(t,n,i){r.util.each.call(this,t||{},function(e,t){var r=n[e];r!==undefined&&(t.attribute?i.att(t.name,r):this.serializeMember(e,t,r,i))})},serializeList:function(t,n,i,s){n.flattened?r.util.arrayEach.call(this,i,function(e){this.serializeMember(n.name||t,n.members,e,s)}):(s=s.ele(n.name||t),r.util.arrayEach.call(this,i,function(e){var t=n.members.name||"member";this.serializeMember(t,n.members,e,s)}))},serializeMember:function(t,n,i,s){if(i===null||i===undefined)return;var o=t;if(n.type==="structure")s=s.ele(o),this.serializeStructure(n.members,i,s);else if(n.type==="list")this.serializeList(o,n,i,s);else if(n.type==="timestamp"){var u=n.format||this.timestampFormat,a=r.util.date.format(i,u);s=s.ele(o,String(a))}else s=s.ele(o,String(i));this.applyNamespaces(s,n)},applyNamespaces:function(t,n){if(n.xmlns){var r="xmlns";n.xmlns.prefix&&(r+=":"+n.xmlns.prefix),t.att(r,n.xmlns.uri)}}})},{"../core":5,xmlbuilder:56}],35:[function(e,t,n){var r=e("../core"),i=r.util.inherit,s=e("xml2js");r.XML.Parser=i({constructor:function(t){this.rules=(t||{}).members||{}},options:{explicitCharkey:!1,trim:!1,normalize:!1,explicitRoot:!1,emptyTag:null,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,validator:null},parse:function(t){var n=null,i=null,o=new s.Parser(this.options);o.parseString(t,function(e,t){i=e,n=t});if(n)return delete n.xmlns,this.parseStructure(n,this.rules);if(i)throw r.util.error(i,{code:"XMLParserError"});return this.parseStructure({},this.rules)},parseStructure:function(t,n){var i={};return r.util.each.call(this,n,function(e,t){t.type=="list"&&(i[t.name||e]=[])}),r.util.each.call(this,t,function(e,t){if(e=="$")r.util.each.call(this,t,function(t,r){if(n[t]){var s=n[t];i[s.name||e]=this.parseMember([r],s)}});else{var s=n[e]||{};i[s.name||e]=this.parseMember(t,s)}}),i},parseMap:function(t,n){var i={},s=n.keys||{},o=n.members||{},u=s.name||"key",a=o.name||"value";return n.flattened||(t=t[0].entry),r.util.arrayEach.call(this,t,function(e){var t=this.parseMember(e[a],o);i[e[u][0]]=t}),i},parseList:function(t,n){var i=[],s=n.members||{},o=s.name||"member";return n.flattened?r.util.arrayEach.call(this,t,function(e){i.push(this.parseMember([e],s))}):r.util.arrayEach.call(this,t,function(e){r.util.arrayEach.call(this,e[o],function(e){i.push(this.parseMember([e],s))})}),i},parseMember:function(t,n){if(t[0]===null)return n.type==="structure"?{}:n.type==="list"?[]:n.type==="map"?{}:null;if(t[0].$&&t[0]["$"].encoding=="base64")return r.util.base64.decode(t[0]._);n.type||(typeof t[0]=="string"?n.type="string":t[0]._?(n.type="string",t=[t[0]._]):n.type="structure");if(n.type==="string")return t[0];if(n.type==="structure")return this.parseStructure(t[0],n.members||{});if(n.type==="list")return this.parseList(t,n);if(n.type==="map")return this.parseMap(t,n);if(n.type==="integer")return parseInt(t[0],10);if(n.type==="float")return parseFloat(t[0]);if(n.type==="timestamp")return this.parseTimestamp(t[0]);if(n.type==="boolean")return t[0]==="true";var i="unhandled type: "+n.type;throw r.util.error(new Error(i),{code:"XMLParserError"})},parseTimestamp:function(t){if(t.match(/^\d+$/))return new Date(t*1e3);if(t.match(/^\d{4}/))return new Date(t);if(t.match(/^\w{3},/))return new Date(t);throw r.util.error(new Error("unhandled timestamp format: "+t),{code:"TimestampParserError"})}})},{"../core":5,xml2js:38}],36:[function(e,t,n){(function(){var t;t=e("../lib/xml2js"),n.stripBOM=function(e){return e[0]==="﻿"?e.substring(1):e}}).call(this)},{"../lib/xml2js":38}],37:[function(e,t,n){(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(e){return e.toLowerCase()},n.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},n.stripPrefix=function(t){return t.replace(e,"")}}).call(this)},{}],38:[function(e,t,n){(function(t){(function(){var r,i,s,o,u,a,f,l={}.hasOwnProperty,c=function(e,t){function r(){this.constructor=e}for(var n in t)l.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},h=function(e,t){return function(
){return e.apply(t,arguments)}};f=e("sax"),s=e("events"),i=e("xmlbuilder"),r=e("./bom"),a=e("./processors"),o=function(e){return typeof e=="object"&&e!=null&&Object.keys(e).length===0},u=function(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)n=e[r],t=n(t);return t},n.processors=a,n.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,async:!1,strict:!0,attrNameProcessors:null,tagNameProcessors:null},.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,childkey:"$$",charsAsChildren:!1,async:!1,strict:!0,attrNameProcessors:null,tagNameProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:"  ",newline:"\n"},headless:!1}},n.ValidationError=function(e){function t(e){this.message=e}return c(t,e),t}(Error),n.Builder=function(){function e(e){var t,r,i;this.options={},i=n.defaults["0.2"];for(t in i){if(!l.call(i,t))continue;r=i[t],this.options[t]=r}for(t in e){if(!l.call(e,t))continue;r=e[t],this.options[t]=r}}return e.prototype.buildObject=function(e){var t,r,s,o,u;return t=this.options.attrkey,r=this.options.charkey,Object.keys(e).length===1&&this.options.rootName===n.defaults["0.2"].rootName?(u=Object.keys(e)[0],e=e[u]):u=this.options.rootName,s=function(e,n){var i,s,o,u,a,f,c,h;if(typeof n!="object")e.txt(n);else for(a in n){if(!l.call(n,a))continue;s=n[a];if(a===t){if(typeof s=="object")for(i in s)f=s[i],e=e.att(i,f)}else if(a===r)e=e.txt(s);else if(typeof s=="object"&&(s!=null?s.constructor:void 0)!=null&&(s!=null?(c=s.constructor)!=null?c.name:void 0:void 0)!=null&&(s!=null?(h=s.constructor)!=null?h.name:void 0:void 0)==="Array")for(u in s){if(!l.call(s,u))continue;o=s[u],typeof o=="string"?e=e.ele(a,o).up():e=arguments.callee(e.ele(a),o).up()}else typeof s=="object"?e=arguments.callee(e.ele(a),s).up():e=e.ele(a,s.toString()).up()}return e},o=i.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless}),s(o,e).end(this.options.renderOpts)},e}(),n.Parser=function(e){function i(e){this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this);var t,r,i;if(!(this instanceof n.Parser))return new n.Parser(e);this.options={},i=n.defaults["0.2"];for(t in i){if(!l.call(i,t))continue;r=i[t],this.options[t]=r}for(t in e){if(!l.call(e,t))continue;r=e[t],this.options[t]=r}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return c(i,e),i.prototype.assignOrPush=function(e,t,n){return t in e?(e[t]instanceof Array||(e[t]=[e[t]]),e[t].push(n)):this.options.explicitArray?e[t]=[n]:e[t]=n},i.prototype.reset=function(){var e,t,n,r;return this.removeAllListeners(),this.saxParser=f.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(e){return function(t){e.saxParser.resume();if(!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit("error",t)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=function(n){return function(i){var s,o,a,f,c;a={},a[t]="";if(!n.options.ignoreAttrs){c=i.attributes;for(s in c){if(!l.call(c,s))continue;!(e in a)&&!n.options.mergeAttrs&&(a[e]={}),o=i.attributes[s],f=n.options.attrNameProcessors?u(n.options.attrNameProcessors,s):s,n.options.mergeAttrs?n.assignOrPush(a,f,o):a[e][f]=o}}return a["#name"]=n.options.tagNameProcessors?u(n.options.tagNameProcessors,i.name):i.name,n.options.xmlns&&(a[n.options.xmlnskey]={uri:i.uri,local:i.local}),r.push(a)}}(this),this.saxParser.onclosetag=function(e){return function(){var n,i,s,u,a,f,l,c,h;f=r.pop(),a=f["#name"],delete f["#name"],n=f.cdata,delete f.cdata,c=r[r.length-1],f[t].match(/^\s*$/)&&!n?(i=f[t],delete f[t]):(e.options.trim&&(f[t]=f[t].trim()),e.options.normalize&&(f[t]=f[t].replace(/\s{2,}/g," ").trim()),Object.keys(f).length===1&&t in f&&!e.EXPLICIT_CHARKEY&&(f=f[t])),o(f)&&(f=e.options.emptyTag!==void 0?e.options.emptyTag:i);if(e.options.validator!=null){h="/"+function(){var e,t,n;n=[];for(e=0,t=r.length;e<t;e++)u=r[e],n.push(u["#name"]);return n}().concat(a).join("/");try{f=e.options.validator(h,c&&c[a],f)}catch(p){s=p,e.emit("error",s)}}return e.options.explicitChildren&&!e.options.mergeAttrs&&typeof f=="object"&&(u={},e.options.attrkey in f&&(u[e.options.attrkey]=f[e.options.attrkey],delete f[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in f&&(u[e.options.charkey]=f[e.options.charkey],delete f[e.options.charkey]),Object.getOwnPropertyNames(f).length>0&&(u[e.options.childkey]=f),f=u),r.length>0?e.assignOrPush(c,a,f):(e.options.explicitRoot&&(l=f,f={},f[a]=l),e.resultObject=f,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),n=function(e){return function(e){var n;n=r[r.length-1];if(n)return n[t]+=e,n}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(e){return function(e){var t;t=n(e);if(t)return t.cdata=!0}}(this)},i.prototype.parseString=function(e,n){var i;n!=null&&typeof n=="function"&&(this.on("end",function(e){return this.reset(),this.options.async?t.nextTick(function(){return n(null,e)}):n(null,e)}),this.on("error",function(e){return this.reset(),this.options.async?t.nextTick(function(){return n(e)}):n(e)}));if(e.toString().trim()==="")return this.emit("end",null),!0;try{return this.saxParser.write(r.stripBOM(e.toString())).close()}catch(s){i=s;if(!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",i),this.saxParser.errThrown=!0}},i}(s.EventEmitter),n.parseString=function(e,t,r){var i,s,o;return r!=null?(typeof r=="function"&&(i=r),typeof t=="object"&&(s=t)):(typeof t=="function"&&(i=t),s={}),o=new n.Parser(s),o.parseString(e,i)}}).call(this)}).call(this,e("_process"))},{"./bom":36,"./processors":37,_process:125,events:122,sax:39,xmlbuilder:56}],39:[function(e,t,n){(function(t){(function(n){function i(e,t){if(!(this instanceof i))return new i(e,t);var r=this;o(r),r.q=r.c="",r.bufferCheckPosition=n.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!!e||!!r.opt.noscript,r.state=O.BEGIN,r.ENTITIES=Object.create(n.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(x)),r.trackPosition=r.opt.position!==!1,r.trackPosition&&(r.position=r.line=r.column=0),M(r,"onready")}function s(e){var t=Math.max(n.MAX_BUFFER_LENGTH,10),i=0;for(var s=0,o=r.length;s<o;s++){var u=e[r[s]].length;if(u>t)switch(r[s]){case"textNode":D(e);break;case"cdata":_(e,"oncdata",e.cdata),e.cdata="";break;case"script":_(e,"onscript",e.script),e.script="";break;default:H(e,"Max buffer length exceeded: "+r[s])}i=Math.max(i,u)}e.bufferCheckPosition=n.MAX_BUFFER_LENGTH-i+e.position}function o(e){for(var t=0,n=r.length;t<n;t++)e[r[t]]=""}function u(e){D(e),e.cdata!==""&&(_(e,"oncdata",e.cdata),e.cdata=""),e.script!==""&&(_(e,"onscript",e.script),e.script="")}function c(e,t){return new h(e,t)}function h(e,t){if(!(this instanceof h))return new h(e,t);a.apply(this),this._parser=new i(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,l.forEach(function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t;n.on(e,t)},enumerable:!0,configurable:!1})})}function C(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function k(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function L(e,t){return k(e)?!!t.match(e):e[t]}function A(e,t){return!L(e,t)}function M(e,t,n){e[t]&&e[t](n)}function _(e,t,n){e.textNode&&D(e),M(e,t,n)}function D(e){e.textNode=P(e.opt,e.textNode),e.textNode&&M(e,"ontext",e.textNode),e.textNode=""}function P(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function H(e,t){return D(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,M(e,"onerror",t),e}function B(e){return e.closedRoot||j(e,"Unclosed root tag"),e.state!==O.BEGIN&&e.state!==O.TEXT&&H(e,"Unexpected end"),D(e),e.c="",e.closed=!0,M(e,"onend"),i.call(e,e.strict,e.opt),e}function j(e,t){if(!(typeof e=="object"&&e instanceof i))throw new Error("bad call to strictFail");e.strict&&H(e,t)}function F(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0}function I(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),i=r[0],s=r[1];return t&&e==="xmlns"&&(i="xmlns",s=""),{prefix:i,local:s}}function q(e){e.strict||(e.attribName=e.attribName[e.looseCase]());if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName))return e.attribName=e.attribValue="";if(e.opt.xmlns){var t=I(e.attribName,!0),n=t.prefix,r=t.local;if(n==="xmlns")if(r==="xml"&&e.attribValue!==E)j(e,"xml: prefix must be bound to "+E+"\n"+"Actual: "+e.attribValue);else if(r==="xmlns"&&e.attribValue!==S)j(e,"xmlns: prefix must be bound to "+S+"\n"+"Actual: "+e.attribValue);else{var i=e.tag,s=e.tags[e.tags.length-1]||e;i.ns===s.ns&&(i.ns=Object.create(s.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,_(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function R(e,t){if(e.opt.xmlns){var n=e.tag,r=I(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(j(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){_(e,"onopennamespace",{prefix:t,uri:n.ns[t]})});for(var s=0,o=e.attribList.length;s<o;s++){var u=e.attribList[s],a=u[0],f=u[1],l=I(a,!0),c=l.prefix,h=l.local,p=c==""?"":n.ns[c]||"",d={name:a,value:f,prefix:c,local:h,uri:p};c&&c!="xmlns"&&!p&&(j(e,"Unbound namespace prefix: "+JSON.stringify(c)),d.uri=c),e.tag.attributes[a]=d,_(e,"onattribute",d)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),_(e,"onopentag",e.tag),t||(!e.noscript&&e.tagName.toLowerCase()==="script"?e.state=O.SCRIPT:e.state=O.TEXT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function U(e){if(!e.tagName){j(e,"Weird empty close tag."),e.textNode+="</>",e.state=O.TEXT;return}if(e.script){if(e.tagName!=="script"){e.script+="</"+e.tagName+">",e.tagName="",e.state=O.SCRIPT;return}_(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var i=e.tags[t];if(i.name===r)break;j(e,"Unexpected close tag")}if(t<0){j(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",e.state=O.TEXT;return}e.tagName=n;var s=e.tags.length;while(s-->t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,_(e,"onclosetag",e.tagName);var u={};for(var a in o.ns)u[a]=o.ns[a];var f=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==f.ns&&Object.keys(o.ns).forEach(function(t){var n=o.ns[t];_(e,"onclosenamespace",{prefix:t,uri:n})})}t===0&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=O.TEXT}function z(e){var t=e.entity,n=t.toLowerCase(),r,i="";return e.ENTITIES[t]?e.ENTITIES[t]:e.ENTITIES[n]?e.ENTITIES[n]:(t=n,t.charAt(0)==="#"&&(t.charAt(1)==="x"?(t=t.slice(2),r=parseInt(t,16),i=r.toString(16)):(t=t.slice(1),r=parseInt(t,10),i=r.toString(10))),t=t.replace(/^0+/,""),i.toLowerCase()!==t?(j(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(r))}function W(e){var t=this;if(this.error)throw this.error;if(t.closed)return H(t,"Cannot write after close. Assign an onready handler.");if(e===null)return B(t);var n=0,r="";while(t.c=r=e.charAt(n++)){t.trackPosition&&(t.position++,r==="\n"?(t.line++,t.column=0):t.column++);switch(t.state){case O.BEGIN:r==="<"?(t.state=O.OPEN_WAKA,t.startTagPosition=t.position):A(p,r)&&(j(t,"Non-whitespace before first tag."),t.textNode=r,t.state=O.TEXT);continue;case O.TEXT:if(t.sawRoot&&!t.closedRoot){var i=n-1;while(r&&r!=="<"&&r!=="&")r=e.charAt(n++),r&&t.trackPosition&&(t.position++,r==="\n"?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,n-1)}r==="<"?(t.state=O.OPEN_WAKA,t.startTagPosition=t.position):(A(p,r)&&(!t.sawRoot||t.closedRoot)&&j(t,"Text data outside of root node."),r==="&"?t.state=O.TEXT_ENTITY:t.textNode+=r);continue;case O.SCRIPT:r==="<"?t.state=O.SCRIPT_ENDING:t.script+=r;continue;case O.SCRIPT_ENDING:r==="/"?t.state=O.CLOSE_TAG:(t.script+="<"+r,t.state=O.SCRIPT);continue;case O.OPEN_WAKA:if(r==="!")t.state=O.SGML_DECL,t.sgmlDecl="";else if(!L(p,r))if(L(T,r))t.state=O.OPEN_TAG,t.tagName=r;else if(r==="/")t.state=O.CLOSE_TAG,t.tagName="";else if(r==="?")t.state=O.PROC_INST,t.procInstName=t.procInstBody="";else{j(t,"Unencoded <");if(t.startTagPosition+1<t.position){var o=t.position-t.startTagPosition;r=(new Array(o)).join(" ")+r}t.textNode+="<"+r,t.state=O.TEXT}continue;case O.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===b?(_(t,"onopencdata"),t.state=O.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=O.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===w?(t.state=O.DOCTYPE,(t.doctype||t.sawRoot)&&j(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):r===">"?(_(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=O.TEXT):L(m,r)?(t.state=O.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case O.SGML_DECL_QUOTED:r===t.q&&(t.state=O.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case O.DOCTYPE:r===">"?(t.state=O.TEXT,_(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,r==="["?t.state=O.DOCTYPE_DTD:L(m,r)&&(t.state=O.DOCTYPE_QUOTED,t.q=r));continue;case O.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:t.doctype+=r,r==="]"?t.state=O.DOCTYPE:L(m,r)&&(t.state=O.DOCTYPE_DTD_QUOTED,t.q=r);continue;case O.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=O.DOCTYPE_DTD,t.q="");continue;case O.COMMENT:r==="-"?t.state=O.COMMENT_ENDING:t.comment+=r;continue;case O.COMMENT_ENDING:r==="-"?(t.state=O.COMMENT_ENDED,t.comment=P(t.opt,t.comment),t.comment&&_(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=O.COMMENT);continue;case O.COMMENT_ENDED:r!==">"?(j(t,"Malformed comment"),t.comment+="--"+r,t.state=O.COMMENT):t.state=O.TEXT;continue;case O.CDATA:r==="]"?t.state=O.CDATA_ENDING:t.cdata+=r;continue;case O.CDATA_ENDING:r==="]"?t.state=O.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=O.CDATA);continue;case O.CDATA_ENDING_2:r===">"?(t.cdata&&_(t,"oncdata",t.cdata),_(t,"onclosecdata"),t.cdata="",t.state=O.TEXT):r==="]"?t.cdata+="]":(t.cdata+="]]"+r,t.state=O.CDATA);continue;case O.PROC_INST:r==="?"?t.state=O.PROC_INST_ENDING:L(p,r)?t.state=O.PROC_INST_BODY:t.procInstName+=r;continue;case O.PROC_INST_BODY:if(!t.procInstBody&&L(p,r))continue;r==="?"?t.state=O.PROC_INST_ENDING:t.procInstBody+=r;continue;case O.PROC_INST_ENDING:r===">"?(_(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=O.TEXT):(t.procInstBody+="?"+r,t.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:L(N,r)?t.tagName+=r:(F(t),r===">"?R(t):r==="/"?t.state=O.OPEN_TAG_SLASH:(A(p,r)&&j(t,"Invalid character in tag name"),t.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:r===">"?(R(t,!0),U(t)):(j(t,"Forward-slash in opening tag not followed by >"),t.state=O.ATTRIB);continue;case O.ATTRIB:if(L(p,r))continue;r===">"?R(t):r==="/"?t.state=O.OPEN_TAG_SLASH:L(T,r)?(t.attribName=r,t.attribValue="",t.state=O.ATTRIB_NAME):j(t,"Invalid attribute name");continue;case O.ATTRIB_NAME:r==="="?t.state=O.ATTRIB_VALUE:r===">"?(j(t,"Attribute without value"),t.attribValue=t.attribName,q(t),R(t)):L(p,r)?t.state=O.ATTRIB_NAME_SAW_WHITE:L(N,r)?t.attribName+=r:j(t,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if(r==="=")t.state=O.ATTRIB_VALUE;else{if(L(p,r))continue;j(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",_(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",r===">"?R(t):L(T,r)?(t.attribName=r,t.state=O.ATTRIB_NAME):(j(t,"Invalid attribute name"),t.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(L(p,r))continue;L(m,r)?(t.q=r,t.state=O.ATTRIB_VALUE_QUOTED):(j(t,"Unquoted attribute value"),t.state=O.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case O.ATTRIB_VALUE_QUOTED:if(r!==t.q){r==="&"?t.state=O.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}q(t),t.q="",t.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:L(p,r)?t.state=O.ATTRIB:r===">"?R(t):r==="/"?t.state=O.OPEN_TAG_SLASH:L(T,r)?(j(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=O.ATTRIB_NAME):j(t,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(A(y,r)){r==="&"?t.state=O.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}q(t),r===">"?R(t):t.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(!t.tagName){if(L(p,r))continue;A(T,r)?t.script?(t.script+="</"+r,t.state=O.SCRIPT):j(t,"Invalid tagname in closing tag."):t.tagName=r}else r===">"?U(t):L(N,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=O.SCRIPT):(A(p,r)&&j(t,"Invalid tagname in closing tag"),t.state=O.CLOSE_TAG_SAW_WHITE);continue;case O.CLOSE_TAG_SAW_WHITE:if(L(p,r))continue;r===">"?U(t):j(t,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:switch(t.state){case O.TEXT_ENTITY:var u=O.TEXT,a="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:var u=O.ATTRIB_VALUE_QUOTED,a="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:var u=O.ATTRIB_VALUE_UNQUOTED,a="attribValue"}r===";"?(t[a]+=z(t),t.entity="",t.state=u):L(g,r)?t.entity+=r:(j(t,"Invalid character entity"),t[a]+="&"+t.entity+r,t.entity="",t.state=u);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&s(t),t}n.parser=function(e,t){return new i(e,t)},n.SAXParser=i,n.SAXStream=h,n.createStream=c,n.MAX_BUFFER_LENGTH=65536;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){this.__proto__=e}return t.prototype=e,new t}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){B(this)},write:W,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){u(this)}};try{var a=e("stream").Stream}catch(f){var a=function(){}}var l=n.EVENTS.filter(function(e){return e!=="error"&&e!=="end"});h.prototype=Object.create(a.prototype,{constructor:{value:h}}),h.prototype.write=function(n){if(typeof t=="function"&&typeof t.isBuffer=="function"&&t.isBuffer(n)){if(!this._decoder){var r=e("string_decoder").StringDecoder;this._decoder=new r("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},h.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},h.prototype.on=function(e,t){var n=this;return!n._parser["on"+e]&&l.indexOf(e)!==-1&&(n._parser["on"+e]=function(){var t=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),a.prototype.on.call(n,e,t)};var p="\r\n	 ",d="0124356789",v="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",m="'\"",g=d+v+"#",y=p+">",b="[CDATA[",w="DOCTYPE",E="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",x={xml:E,xmlns:S};p=C(p),d=C(d),v=C(v);var T=/[:_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=/[:_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-]/;m=C(m),g=C(g),y=C(y);var O=0;n.STATE={BEGIN:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},n.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(n.ENTITIES).forEach(function(e){var t=n.ENTITIES[e],r=typeof t=="number"?String.fromCharCode(t):t;n.ENTITIES[e]=r});for(var O in n.STATE)n.STATE[n.STATE[O]]=O;O=n.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n=16384,r=[],i,s,o=-1,u=arguments.length;if(!u)return"";var a="";while(++o<u){var f=Number(arguments[o]);if(!isFinite(f)||f<0||f>1114111||t(f)!=f)throw RangeError("Invalid code point: "+f);f<=65535?r.push(f):(f-=65536,i=(f>>10)+55296,s=f%1024+56320,r.push(i,s));if(o+1==u||r.length>n)a+=e.apply(null,r),r.length=0}return a};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(typeof n=="undefined"?sax={}:n)}).call(this,e("buffer").Buffer)},{buffer:118,stream:145,string_decoder:146}],40:[function(e,t,n){(function(){var n,r;r=e("lodash/object/create"),t.exports=n=function(){function e(e,t,n){this.stringify=e.stringify;if(t==null)throw new Error("Missing attribute name of element "+e.name);if(n==null)throw new Error("Missing attribute value for attribute "+t+" of element "+e.name);this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){return" "+this.name+'="'+this.value+'"'},e}()}).call(this)},{"lodash/object/create":110}],41:[function(e,t,n){(function(){var n,r,i,s,o;o=e("./XMLStringifier"),r=e("./XMLDeclaration"),i=e("./XMLDocType"),s=e("./XMLElement"),t.exports=n=function(){function e(e,t){var n,r;if(e==null)throw new Error("Root element needs a name");t==null&&(t={}),this.options=t,this.stringify=new o(t),r=new s(this,"doc"),n=r.element(e),n.isRoot=!0,n.documentObject=this,this.rootObject=n,t.headless||(n.declaration(t),(t.pubID!=null||t.sysID!=null)&&n.doctype(t))}return e.prototype.root=function(){return this.rootObject},e.prototype.end=function(e){return this.toString(e)},e.prototype.toString=function(e){var t,n,r,i,s,o,u,a;return i=(e!=null?e.pretty:void 0)||!1,t=(o=e!=null?e.indent:void 0)!=null?o:"  ",r=(u=e!=null?e.offset:void 0)!=null?u:0,n=(a=e!=null?e.newline:void 0)!=null?a:"\n",s="",this.xmldec!=null&&(s+=this.xmldec.toString(e)),this.doctype!=null&&(s+=this.doctype.toString(e)),s+=this.rootObject.toString(e),i&&s.slice(-n.length)===n&&(s=s.slice(0,-n.length)),s},e}()}).call(this)},{"./XMLDeclaration":48,"./XMLDocType":49,"./XMLElement":50,"./XMLStringifier":54}],42:[function(e,t,n){(function(){var n,r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("lodash/object/create"),r=e("./XMLNode"),t.exports=n=function(e){function t(e,n){t.__super__.constructor.call(this,e);if(n==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(n)}return s(t,e),t.prototype.clone=function(){return i(t.prototype,this)},t.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<![CDATA["+this.text+"]]>",s&&(o+=r),o},t}(r)}).call(this)},{"./XMLNode":51,"lodash/object/create":110}],43:[function(e,t,n){(function(){var n,r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("lodash/object/create"),r=e("./XMLNode"),t.exports=n=function(e){function t(e,n){t.__super__.constructor.call(this,e);if(n==null)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return s(t,e),t.prototype.clone=function(){return i(t.prototype,this)},t.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<!-- "+this.text+" -->",s&&(o+=r),o},t}(r)}).call(this)},{"./XMLNode":51,"lodash/object/create":110}],44:[function(e,t,n){(function(){var n,r;r=e("lodash/object/create"),t.exports=n=function(){function e(e,t,n,r,i,s){this.stringify=e.stringify;if(t==null)throw new Error("Missing DTD element name");if(n==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!i)throw new Error("Missing DTD attribute default");i.indexOf("#")!==0&&(i="#"+i);if(!i.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(s&&!i.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(n),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(s),this.defaultValueType=i}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<!ATTLIST "+this.elementName+" "+this.attributeName+" "+this.attributeType,this.defaultValueType!=="#DEFAULT"&&(o+=" "+this.defaultValueType),this.defaultValue&&(o+=' "'+this.defaultValue+'"'),o+=">",s&&(o+=r),o},e}()}).call(this)},{"lodash/object/create":110}],45:[function(e,t,n){(function(){var n,r;r=e("lodash/object/create"),t.exports=n=function(){function e(e,t,n){this.stringify=e.stringify;if(t==null)throw new Error("Missing DTD element name");n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(n)}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<!ELEMENT "+this.name+" "+this.value+">",s&&(o+=r),o},e}()}).call(this)},{"lodash/object/create":110}],46:[function(e,t,n){(function(){var n,r,i;r=e("lodash/object/create"),i=e("lodash/lang/isObject"),t.exports=n=function(){function e(e,t,n,r){this.stringify=e.stringify;if(n==null)throw new Error("Missing entity name");if(r==null)throw new Error("Missing entity value");this.pe=!!t,this.name=this.stringify.eleName(n);if(!i(r))this.value=this.stringify.dtdEntityValue(r);else{if(!r.pubID&&!r.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(r.pubID&&!r.sysID)throw new Error("System identifier is required for a public external entity");r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID)),r.nData!=null&&(this.nData=this.stringify.dtdNData(r.nData));if(this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<!ENTITY",this.pe&&(o+=" %"),o+=" "+this.name,this.value?o+=' "'+this.value+'"':(this.pubID&&this.sysID?o+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.sysID&&(o+=' SYSTEM "'+this.sysID+'"'),this.nData&&(o+=" NDATA "+this.nData)),o+=">",s&&(o+=r),o},e}()}).call(this)},{"lodash/lang/isObject":106,"lodash/object/create":110}],47:[function(e,t,n){(function(){var n,r;r=e("lodash/object/create"),t.exports=n=function(){function e(e,t,n){this.stringify=e.stringify;if(t==null)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(t),n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=
null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<!NOTATION "+this.name,this.pubID&&this.sysID?o+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.pubID?o+=' PUBLIC "'+this.pubID+'"':this.sysID&&(o+=' SYSTEM "'+this.sysID+'"'),o+=">",s&&(o+=r),o},e}()}).call(this)},{"lodash/object/create":110}],48:[function(e,t,n){(function(){var n,r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;i=e("lodash/object/create"),s=e("lodash/lang/isObject"),r=e("./XMLNode"),t.exports=n=function(e){function t(e,n,r,i){var o;t.__super__.constructor.call(this,e),s(n)&&(o=n,n=o.version,r=o.encoding,i=o.standalone),n||(n="1.0"),n!=null&&(this.version=this.stringify.xmlVersion(n)),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),i!=null&&(this.standalone=this.stringify.xmlStandalone(i))}return o(t,e),t.prototype.clone=function(){return i(t.prototype,this)},t.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<?xml",this.version!=null&&(o+=' version="'+this.version+'"'),this.encoding!=null&&(o+=' encoding="'+this.encoding+'"'),this.standalone!=null&&(o+=' standalone="'+this.standalone+'"'),o+="?>",s&&(o+=r),o},t}(r)}).call(this)},{"./XMLNode":51,"lodash/lang/isObject":106,"lodash/object/create":110}],49:[function(e,t,n){(function(){var n,r,i,s,o,u,a,f,l,c;l=e("lodash/object/create"),c=e("lodash/lang/isObject"),n=e("./XMLCData"),r=e("./XMLComment"),i=e("./XMLDTDAttList"),o=e("./XMLDTDEntity"),s=e("./XMLDTDElement"),u=e("./XMLDTDNotation"),f=e("./XMLProcessingInstruction"),t.exports=a=function(){function e(e,t,n){var r,i;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],c(t)&&(r=t,t=r.pubID,n=r.sysID),n==null&&(i=[t,n],n=i[0],t=i[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),n!=null&&(this.sysID=this.stringify.dtdSysID(n))}return e.prototype.clone=function(){return l(e.prototype,this)},e.prototype.element=function(e,t){var n;return n=new s(this,e,t),this.children.push(n),this},e.prototype.attList=function(e,t,n,r,s){var o;return o=new i(this,e,t,n,r,s),this.children.push(o),this},e.prototype.entity=function(e,t){var n;return n=new o(this,!1,e,t),this.children.push(n),this},e.prototype.pEntity=function(e,t){var n;return n=new o(this,!0,e,t),this.children.push(n),this},e.prototype.notation=function(e,t){var n;return n=new u(this,e,t),this.children.push(n),this},e.prototype.cdata=function(e){var t;return t=new n(this,e),this.children.push(t),this},e.prototype.comment=function(e){var t;return t=new r(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var n;return n=new f(this,e,t),this.children.push(n),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l,c,h,p,d;a=(e!=null?e.pretty:void 0)||!1,i=(l=e!=null?e.indent:void 0)!=null?l:"  ",u=(c=e!=null?e.offset:void 0)!=null?c:0,o=(h=e!=null?e.newline:void 0)!=null?h:"\n",t||(t=0),d=(new Array(t+u+1)).join(i),f="",a&&(f+=d),f+="<!DOCTYPE "+this.root().name,this.pubID&&this.sysID?f+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.sysID&&(f+=' SYSTEM "'+this.sysID+'"');if(this.children.length>0){f+=" [",a&&(f+=o),p=this.children;for(r=0,s=p.length;r<s;r++)n=p[r],f+=n.toString(e,t+1);f+="]"}return f+=">",a&&(f+=o),f},e.prototype.ele=function(e,t){return this.element(e,t)},e.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.up=function(){return this.root()},e.prototype.doc=function(){return this.document()},e}()}).call(this)},{"./XMLCData":42,"./XMLComment":43,"./XMLDTDAttList":44,"./XMLDTDElement":45,"./XMLDTDEntity":46,"./XMLDTDNotation":47,"./XMLProcessingInstruction":52,"lodash/lang/isObject":106,"lodash/object/create":110}],50:[function(e,t,n){(function(){var n,r,i,s,o,u,a,f,l=function(e,t){function r(){this.constructor=e}for(var n in t)c.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;o=e("lodash/object/create"),f=e("lodash/lang/isObject"),a=e("lodash/lang/isFunction"),u=e("lodash/collection/every"),i=e("./XMLNode"),n=e("./XMLAttribute"),s=e("./XMLProcessingInstruction"),t.exports=r=function(e){function t(e,n,r){t.__super__.constructor.call(this,e);if(n==null)throw new Error("Missing element name");this.name=this.stringify.eleName(n),this.children=[],this.instructions=[],this.attributes={},r!=null&&this.attribute(r)}return l(t,e),t.prototype.clone=function(){var e,n,r,i,s,u,a,f;r=o(t.prototype,this),r.isRoot&&(r.documentObject=null),r.attributes={},a=this.attributes;for(n in a){if(!c.call(a,n))continue;e=a[n],r.attributes[n]=e.clone()}r.instructions=[],f=this.instructions;for(i=0,s=f.length;i<s;i++)u=f[i],r.instructions.push(u.clone());return r.children=[],this.children.forEach(function(e){var t;return t=e.clone(),t.parent=r,r.children.push(t)}),r},t.prototype.attribute=function(e,t){var r,i;e!=null&&(e=e.valueOf());if(f(e))for(r in e){if(!c.call(e,r))continue;i=e[r],this.attribute(r,i)}else{a(t)&&(t=t.apply());if(!this.options.skipNullAttributes||t!=null)this.attributes[e]=new n(this,e,t)}return this},t.prototype.removeAttribute=function(e){var t,n,r;if(e==null)throw new Error("Missing attribute name");e=e.valueOf();if(Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},t.prototype.instruction=function(e,t){var n,r,i,o,u;e!=null&&(e=e.valueOf()),t!=null&&(t=t.valueOf());if(Array.isArray(e))for(n=0,u=e.length;n<u;n++)r=e[n],this.instruction(r);else if(f(e))for(r in e){if(!c.call(e,r))continue;i=e[r],this.instruction(r,i)}else a(t)&&(t=t.apply()),o=new s(this,e,t),this.instructions.push(o);return this},t.prototype.toString=function(e,t){var n,r,i,s,o,a,f,l,h,p,d,v,m,g,y,b,w,E,S,x;v=(e!=null?e.pretty:void 0)||!1,s=(g=e!=null?e.indent:void 0)!=null?g:"  ",d=(y=e!=null?e.offset:void 0)!=null?y:0,p=(b=e!=null?e.newline:void 0)!=null?b:"\n",t||(t=0),x=(new Array(t+d+1)).join(s),m="",w=this.instructions;for(i=0,f=w.length;i<f;i++)o=w[i],m+=o.toString(e,t);v&&(m+=x),m+="<"+this.name,E=this.attributes;for(h in E){if(!c.call(E,h))continue;n=E[h],m+=n.toString(e)}if(this.children.length===0||u(this.children,function(e){return e.value===""}))m+="/>",v&&(m+=p);else if(v&&this.children.length===1&&this.children[0].value!=null)m+=">",m+=this.children[0].value,m+="</"+this.name+">",m+=p;else{m+=">",v&&(m+=p),S=this.children;for(a=0,l=S.length;a<l;a++)r=S[a],m+=r.toString(e,t+1);v&&(m+=x),m+="</"+this.name+">",v&&(m+=p)}return m},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t.prototype.i=function(e,t){return this.instruction(e,t)},t}(i)}).call(this)},{"./XMLAttribute":40,"./XMLNode":51,"./XMLProcessingInstruction":52,"lodash/collection/every":58,"lodash/lang/isFunction":104,"lodash/lang/isObject":106,"lodash/object/create":110}],51:[function(e,t,n){(function(){var n,r,i,s,o,u,a,f,l,c,h,p={}.hasOwnProperty;h=e("lodash/lang/isObject"),c=e("lodash/lang/isFunction"),l=e("lodash/lang/isEmpty"),o=null,n=null,r=null,i=null,s=null,a=null,f=null,t.exports=u=function(){function t(t){this.parent=t,this.options=this.parent.options,this.stringify=this.parent.stringify,o===null&&(o=e("./XMLElement"),n=e("./XMLCData"),r=e("./XMLComment"),i=e("./XMLDeclaration"),s=e("./XMLDocType"),a=e("./XMLRaw"),f=e("./XMLText"))}return t.prototype.clone=function(){throw new Error("Cannot clone generic XMLNode")},t.prototype.element=function(e,t,n){var r,i,s,o,u,a,f;o=null,t==null&&(t={}),t=t.valueOf(),h(t)||(a=[t,n],n=a[0],t=a[1]),e!=null&&(e=e.valueOf());if(Array.isArray(e))for(i=0,u=e.length;i<u;i++)r=e[i],o=this.element(r);else if(c(e))o=this.element(e.apply());else if(h(e))for(s in e){if(!p.call(e,s))continue;f=e[s],c(f)&&(f=f.apply()),h(f)&&l(f)&&(f=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0?o=this.attribute(s.substr(this.stringify.convertAttKey.length),f):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&s.indexOf(this.stringify.convertPIKey)===0?o=this.instruction(s.substr(this.stringify.convertPIKey.length),f):h(f)?!this.options.ignoreDecorators&&this.stringify.convertListKey&&s.indexOf(this.stringify.convertListKey)===0&&Array.isArray(f)?o=this.element(f):(o=this.element(s),o.element(f)):o=this.element(s,f)}else!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0?o=this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0?o=this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0?o=this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0?o=this.raw(n):o=this.node(e,t,n);if(o==null)throw new Error("Could not create any elements with: "+e);return o},t.prototype.insertBefore=function(e,t,n){var r,i,s;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r},t.prototype.insertAfter=function(e,t,n){var r,i,s;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r},t.prototype.remove=function(){var e,t;if(this.isRoot)throw new Error("Cannot remove the root element");return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat(t=[])),t,this.parent},t.prototype.node=function(e,t,n){var r,i;return e!=null&&(e=e.valueOf()),t==null&&(t={}),t=t.valueOf(),h(t)||(i=[t,n],n=i[0],t=i[1]),r=new o(this,e,t),n!=null&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t;return t=new f(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new n(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new r(this,e),this.children.push(t),this},t.prototype.raw=function(e){var t;return t=new a(this,e),this.children.push(t),this},t.prototype.declaration=function(e,t,n){var r,s;return r=this.document(),s=new i(r,e,t,n),r.xmldec=s,r.root()},t.prototype.doctype=function(e,t){var n,r;return n=this.document(),r=new s(n,e,t),n.doctype=r,r},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;if(this.isRoot)return this;e=this.parent;while(!e.isRoot)e=e.parent;return e},t.prototype.document=function(){return this.root().documentObject},t.prototype.end=function(e){return this.document().toString(e)},t.prototype.prev=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");e=this.parent.children.indexOf(this);if(e<1)throw new Error("Already at the first node");return this.parent.children[e-1]},t.prototype.next=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[e+1]},t.prototype.importXMLBuilder=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t){return this.doctype(e,t)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.u=function(){return this.up()},t}()}).call(this)},{"./XMLCData":42,"./XMLComment":43,"./XMLDeclaration":48,"./XMLDocType":49,"./XMLElement":50,"./XMLRaw":53,"./XMLText":55,"lodash/lang/isEmpty":103,"lodash/lang/isFunction":104,"lodash/lang/isObject":106}],52:[function(e,t,n){(function(){var n,r;r=e("lodash/object/create"),t.exports=n=function(){function e(e,t,n){this.stringify=e.stringify;if(t==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(t),n&&(this.value=this.stringify.insValue(n))}return e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+="<?",o+=this.target,this.value&&(o+=" "+this.value),o+="?>",s&&(o+=r),o},e}()}).call(this)},{"lodash/object/create":110}],53:[function(e,t,n){(function(){var n,r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("lodash/object/create"),n=e("./XMLNode"),t.exports=r=function(e){function t(e,n){t.__super__.constructor.call(this,e);if(n==null)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return s(t,e),t.prototype.clone=function(){return i(t.prototype,this)},t.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+=this.value,s&&(o+=r),o},t}(n)}).call(this)},{"./XMLNode":51,"lodash/object/create":110}],54:[function(e,t,n){(function(){var e,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;t.exports=e=function(){function e(e){this.assertLegalChar=n(this.assertLegalChar,this);var t,i,s;this.allowSurrogateChars=e!=null?e.allowSurrogateChars:void 0,i=(e!=null?e.stringify:void 0)||{};for(t in i){if(!r.call(i,t))continue;s=i[t],this[t]=s}}return e.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},e.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},e.prototype.cdata=function(e){e=""+e||"";if(e.match(/]]>/))throw new Error("Invalid CDATA text: "+e);return this.assertLegalChar(e)},e.prototype.comment=function(e){e=""+e||"";if(e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return""+e||""},e.prototype.attName=function(e){return""+e||""},e.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},e.prototype.insTarget=function(e){return""+e||""},e.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},e.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/))throw new Error("Invalid encoding: "+e);return e},e.prototype.xmlStandalone=function(e){return e?"yes":"no"},e.prototype.dtdPubID=function(e){return""+e||""},e.prototype.dtdSysID=function(e){return""+e||""},e.prototype.dtdElementValue=function(e){return""+e||""},e.prototype.dtdAttType=function(e){return""+e||""},e.prototype.dtdAttDefault=function(e){return e!=null?""+e||"":e},e.prototype.dtdEntityValue=function(e){return""+e||""},e.prototype.dtdNData=function(e){return""+e||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.convertListKey="#list",e.prototype.assertLegalChar=function(e){var t,n;this.allowSurrogateChars?t=/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:t=/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,n=e.match(t);if(n)throw new Error("Invalid character ("+n+") in string: "+e+" at index "+n.index);return e},e.prototype.elEscape=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(this)},{}],55:[function(e,t,n){(function(){var n,r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("lodash/object/create"),n=e("./XMLNode"),t.exports=r=function(e){function t(e,n){t.__super__.constructor.call(this,e);if(n==null)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return s(t,e),t.prototype.clone=function(){return i(t.prototype,this)},t.prototype.toString=function(e,t){var n,r,i,s,o,u,a,f,l;return s=(e!=null?e.pretty:void 0)||!1,n=(u=e!=null?e.indent:void 0)!=null?u:"  ",i=(a=e!=null?e.offset:void 0)!=null?a:0,r=(f=e!=null?e.newline:void 0)!=null?f:"\n",t||(t=0),l=(new Array(t+i+1)).join(n),o="",s&&(o+=l),o+=this.value,s&&(o+=r),o},t}(n)}).call(this)},{"./XMLNode":51,"lodash/object/create":110}],56:[function(e,t,n){(function(){var n,r;r=e("lodash/object/assign"),n=e("./XMLBuilder"),t.exports.create=function(e,t,i,s){return s=r({},t,i,s),(new n(e,s)).root()}}).call(this)},{"./XMLBuilder":41,"lodash/object/assign":109}],57:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:undefined}t.exports=r},{}],58:[function(e,t,n){function a(e,t,n){var a=o(e)?r:s;n&&u(e,t,n)&&(t=undefined);if(typeof t!="function"||n!==undefined)t=i(t,n,3);return a(e,t)}var r=e("../internal/arrayEvery"),i=e("../internal/baseCallback"),s=e("../internal/baseEvery"),o=e("../lang/isArray"),u=e("../internal/isIterateeCall");t.exports=a},{"../internal/arrayEvery":60,"../internal/baseCallback":64,"../internal/baseEvery":68,"../internal/isIterateeCall":93,"../lang/isArray":102}],59:[function(e,t,n){function s(e,t){if(typeof e!="function")throw new TypeError(r);return t=i(t===undefined?e.length-1:+t||0,0),function(){var n=arguments,r=-1,s=i(n.length-t,0),o=Array(s);while(++r<s)o[r]=n[t+r];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,n[0],o);case 2:return e.call(this,n[0],n[1],o)}var u=Array(t+1);r=-1;while(++r<t)u[r]=n[r];return u[t]=o,e.apply(this,u)}}var r="Expected a function",i=Math.max;t.exports=s},{}],60:[function(e,t,n){function r(e,t){var n=-1,r=e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}t.exports=r},{}],61:[function(e,t,n){function r(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],62:[function(e,t,n){function i(e,t,n){var i=-1,s=r(t),o=s.length;while(++i<o){var u=s[i],a=e[u],f=n(a,t[u],u,e,t);if((f===f?f!==a:a===a)||a===undefined&&!(u in e))e[u]=f}return e}var r=e("../object/keys");t.exports=i},{"../object/keys":111}],63:[function(e,t,n){function s(e,t){return t==null?e:r(t,i(t),e)}var r=e("./baseCopy"),i=e("../object/keys");t.exports=s},{"../object/keys":111,"./baseCopy":65}],64:[function(e,t,n){function a(e,t,n){var a=typeof e;return a=="function"?t===undefined?e:s(e,t,n):e==null?o:a=="object"?r(e):t===undefined?u(e):i(e,t)}var r=e("./baseMatches"),i=e("./baseMatchesProperty"),s=e("./bindCallback"),o=e("../utility/identity"),u=e("../utility/property");t.exports=a},{"../utility/identity":114,"../utility/property":115,"./baseMatches":75,"./baseMatchesProperty":76,"./bindCallback":81}],65:[function(e,t,n){function r(e,t,n){n||(n={});var r=-1,i=t.length;while(++r<i){var s=t[r];n[s]=e[s]}return n}t.exports=r},{}],66:[function(e,t,n){var r=e("../lang/isObject"),i=function(){function e(){}return function(t){if(r(t)){e.prototype=t;var n=new e;e.prototype=undefined}return n||{}}}();t.exports=i},{"../lang/isObject":106}],67:[function(e,t,n){var r=e("./baseForOwn"),i=e("./createBaseEach"),s=i(r);t.exports=s},{"./baseForOwn":70,"./createBaseEach":83}],68:[function(e,t,n){function i(e,t){var n=!0;return r(e,function(e,r,i){return n=!!t(e,r,i),n}),n}var r=e("./baseEach");t.exports=i},{"./baseEach":67}],69:[function(e,t,n){var r=e("./createBaseFor"),i=r();t.exports=i},{"./createBaseFor":84}],70:[function(e,t,n){function s(e,t){return r(e,t,i)}var r=e("./baseFor"),i=e("../object/keys");t.exports=s},{"../object/keys":111,"./baseFor":69}],71:[function(e,t,n){function i(e,t,n){if(e==null)return;n!==undefined&&n in r(e)&&(t=[n]);var i=0,s=t.length;while(e!=null&&i<s)e=e[t[i++]];return i&&i==s?e:undefined}var r=e("./toObject");t.exports=i},{"./toObject":99}],72:[function(e,t,n){function o(e,t,n,u,a,f){return e===t?!0:e==null||t==null||!i(e)&&!s(t)?e!==e&&t!==t:r(e,t,o,n,u,a,f)}var r=e("./baseIsEqualDeep"),i=e("../lang/isObject"),s=e("./isObjectLike");t.exports=o},{"../lang/isObject":106,"./baseIsEqualDeep":73,"./isObjectLike":96}],73:[function(e,t,n){function d(e,t,n,c,d,v,m){var g=o(e),y=o(t),b=f,w=f;g||(b=p.call(e),b==a?b=l:b!=l&&(g=u(e))),y||(w=p.call(t),w==a?w=l:w!=l&&(y=u(t)));var E=b==l,S=w==l,x=b==w;if(x&&!g&&!E)return i(e,t,b);if(!d){var T=E&&h.call(e,"__wrapped__"),N=S&&h.call(t,"__wrapped__");if(T||N)return n(T?e.value():e,N?t.value():t,c,d,v,m)}if(!x)return!1;v||(v=[]),m||(m=[]);var C=v.length;while(C--)if(v[C]==e)return m[C]==t;v.push(e),m.push(t);var k=(g?r:s)(e,t,n,c,d,v,m);return v.pop(),m.pop(),k}var r=e("./equalArrays"),i=e("./equalByTag"),s=e("./equalObjects"),o=e("../lang/isArray"),u=e("../lang/isTypedArray"),a="[object Arguments]",f="[object Array]",l="[object Object]",c=Object.prototype,h=c.hasOwnProperty,p=c.toString;t.exports=d},{"../lang/isArray":102,"../lang/isTypedArray":108,"./equalArrays":85,"./equalByTag":86,"./equalObjects":87}],74:[function(e,t,n){function s(e,t,n){var s=t.length,o=s,u=!n;if(e==null)return!o;e=i(e);while(s--){var a=t[s];if(u&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}while(++s<o){a=t[s];var f=a[0],l=e[f],c=a[1];if(u&&a[2]){if(l===undefined&&!(f in e))return!1}else{var h=n?n(l,c,f):undefined;if(h===undefined?!r(c,l,n,!0):!h)return!1}}return!0}var r=e("./baseIsEqual"),i=e("./toObject");t.exports=s},{"./baseIsEqual":72,"./toObject":99}],75:[function(e,t,n){function o(e){var t=i(e);if(t.length==1&&t[0][2]){var n=t[0][0],o=t[0][1];return function(e){return e==null?!1:e[n]===o&&(o!==undefined||n in s(e))}}return function(e){return r(e,t)}}var r=e("./baseIsMatch"),i=e("./getMatchData"),s=e("./toObject");t.exports=o},{"./baseIsMatch":74,"./getMatchData":89,"./toObject":99}],76:[function(e,t,n){function h(e,t){var n=o(e),h=u(e)&&a(t),p=e+"";return e=c(e),function(o){if(o==null)return!1;var u=p;o=l(o);if((n||!h)&&!(u in o)){o=e.length==1?o:r(o,s(e,0,-1));if(o==null)return!1;u=f(e),o=l(o)}return o[u]===t?t!==undefined||u in o:i(t,o[u],undefined,!0)}}var r=e("./baseGet"),i=e("./baseIsEqual"),s=e("./baseSlice"),o=e("../lang/isArray"),u=e("./isKey"),a=e("./isStrictComparable"),f=e("../array/last"),l=e("./toObject"),c=e("./toPath");t.exports=h},{"../array/last":57,"../lang/isArray":102,"./baseGet":71,"./baseIsEqual":72,"./baseSlice":79,"./isKey":94,"./isStrictComparable":97,"./toObject":99,"./toPath":100}],77:[function(e,t,n){function r(e){return function(t){return t==null?undefined:t[e]}}t.exports=r},{}],78:[function(e,t,n){function s(e){var t=e+"";return e=i(e),function(n){return r(n,e,t)}}var r=e("./baseGet"),i=e("./toPath");t.exports=s},{"./baseGet":71,"./toPath":100}],79:[function(e,t,n){function r(e,t,n){var r=-1,i=e.length;t=t==null?0:+t||0,t<0&&(t=-t>i?0:i+t),n=n===undefined||n>i?i:+n||0,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var s=Array(i);while(++r<i)s[r]=e[r+t];return s}t.exports=r},{}],80:[function(e,t,n){function r(e){return e==null?"":e+""}t.exports=r},{}],81:[function(e,t,n){function i(e,t,n){if(typeof e!="function")return r;if(t===undefined)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)};case 5:return function(n,r,i,s,o){return e.call(t,n,r,i,s,o)}}return function(){return e.apply(t,arguments)}}var r=e("../utility/identity");t.exports=i},{"../utility/identity":114}],82:[function(e,t,n){function o(e){return s(function(t,n){var s=-1,o=t==null?0:n.length,u=o>2?n[o-2]:undefined,a=o>2?n[2]:undefined,f=o>1?n[o-1]:undefined;typeof u=="function"?(u=r(u,f,5),o-=2):(u=typeof f=="function"?f:undefined,o-=u?1:0),a&&i(n[0],n[1],a)&&(u=o<3?undefined:u,o=1);while(++s<o){var l=n[s];l&&e(t,l,u)}return t})}var r=e("./bindCallback"),i=e("./isIterateeCall"),s=e("../function/restParam");t.exports=o},{"../function/restParam":59,"./bindCallback":81,"./isIterateeCall":93}],83:[function(e,t,n){function o(e,t){return function(n,o){var u=n?r(n):0;if(!i(u))return e(n,o);var a=t?u:-1,f=s(n);while(t?a--:++a<u)if(o(f[a],a,f)===!1)break;return n}}var r=e("./getLength"),i=e("./isLength"),s=e("./toObject");t.exports=o},{"./getLength":88,"./isLength":95,"./toObject":99}],84:[function(e,t,n){function i(e){return function(t,n,i){var s=r(t),o=i(t),u=o.length,a=e?u:-1;while(e?a--:++a<u){var f=o[a];if(n(s[f],f,s)===!1)break}return t}}var r=e("./toObject");t.exports=i},{"./toObject":99}],85:[function(e,t,n){function i(e,t,n,i,s,o,u){var a=-1,f=e.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;while(++a<f){var c=e[a],h=t[a],p=i?i(s?h:c,s?c:h,a):undefined;if(p!==undefined){if(p)continue;return!1}if(s){if(!r(t,function(e){return c===e||n(c,e,i,s,o,u)}))return!1}else if(c!==h&&!n(c,h,i,s,o,u))return!1}return!0}var r=e("./arraySome");t.exports=i},{"./arraySome":61}],86:[function(e,t,n){function f(e,t,n){switch(n){case r:case i:return+e==+t;case s:return e.name==t.name&&e.message==t.message;case o:return e!=+e?t!=+t:e==+t;case u:case a:return e==t+""}return!1}var r="[object Boolean]",i="[object Date]",s="[object Error]",o="[object Number]",u="[object RegExp]",a="[object String]";t.exports=f},{}],87:[function(e,t,n){function o(e,t,n,i,o,u,a){var f=r(e),l=f.length,c=r(t),h=c.length;if(l!=h&&!o)return!1;var p=l;while(p--){var d=f[p];if(!(o?d in t:s.call(t,d)))return!1}var v=o;while(++p<l){d=f[p];var m=e[d],g=t[d],y=i?i(o?g:m,o?m:g,d):undefined;if(y===undefined?!n(m,g,i,o,u,a):!y)return!1;v||(v=d=="constructor")}if(!v){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w))return!1}return!0}var r=e("../object/keys"),i=Object.prototype,s=i.hasOwnProperty;t.exports=o},{"../object/keys":111}],88:[function(e,t,n){var r=e("./baseProperty"),i=r("length");t.exports=i},{"./baseProperty":77}],89:[function(e,t,n){function s(e){var t=i(e),n=t.length;while(n--)t[n][2]=r(t[n][1]);return t}var r=e("./isStrictComparable"),i=e("../object/pairs");t.exports=s},{"../object/pairs":113,"./isStrictComparable":97}],90:[function(e,t,n){function i(e,t){var n=e==null?undefined:e[t];return r(n)?n:undefined}var r=e("../lang/isNative");t.exports=i},{"../lang/isNative":105}],91:[function(e,t,n){function s(e){return e!=null&&i(r(e))}var r=e("./getLength"),i=e("./isLength");t.exports=s},{"./getLength":88,"./isLength":95}],92:[function(e,t,n){function s(e,t){return e=typeof e=="number"||r.test(e)?+e:-1,t=t==null?i:t,e>-1&&e%1==0&&e<t}var r=/^\d+$/,i=9007199254740991;t.exports=s},{}],93:[function(e,t,n){function o(e,t,n){if(!s(n))return!1;var o=typeof t;if(o=="number"?r(n)&&i(t,n.length):o=="string"&&t in n){var u=n[t];return e===e?e===u:u!==u}return!1}var r=e("./isArrayLike"),i=e("./isIndex"),s=e("../lang/isObject");t.exports=o},{"../lang/isObject":106,"./isArrayLike":91,"./isIndex":92}],94:[function(e,t,n){function u(e,t){var n=typeof e;if(n=="string"&&o.test(e)||n=="number")return!0;if(r(e))return!1;var u=!s.test(e);return u||t!=null&&e in i(t)}var r=e("../lang/isArray"),i=e("./toObject"),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=u},{"../lang/isArray":102,"./toObject":99}],95:[function(e,t,n){function i(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;t.exports=i},{}],96:[function(e,t,n){function r(e){return!!e&&typeof e=="object"}t.exports=r},{}],97:[function(e,t,n){function i(e){return e===e&&!r(e)}var r=e("../lang/isObject");t.exports=i},{"../lang/isObject":106}],98:[function(e,t,n){function l(e){var t=u(e),n=t.length,a=n&&e.length,l=!!a&&o(a)&&(i(e)||r(e)),c=-1,h=[];while(++c<n){var p=t[c];(l&&s(p,a)||f.call(e,p))&&h.push(p)}return h}var r=e("../lang/isArguments"),i=e("../lang/isArray"),s=e("./isIndex"),o=e("./isLength"),u=e("../object/keysIn"),a=Object.prototype,f=a.hasOwnProperty;t.exports=l},{"../lang/isArguments":101,"../lang/isArray":102,"../object/keysIn":112,"./isIndex":92,"./isLength":95}],99:[function(e,t,n){function i(e){return r(e)?e:Object(e)}var r=e("../lang/isObject");t.exports=i},{"../lang/isObject":106}],100:[function(e,t,n){function u(e){if(i(e))return e;var t=[];return r(e).replace(s,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t}var r=e("./baseToString"),i=e("../lang/isArray"),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,o=/\\(\\)?/g;t.exports=u},{"../lang/isArray":102,"./baseToString":80}],101:[function(e,t,n){function a(e){return i(e)&&r(e)&&o.call(e,"callee")&&!u.call(e,"callee")}var r=e("../internal/isArrayLike"),i=e("../internal/isObjectLike"),s=Object.prototype,o=s.hasOwnProperty,u=s.propertyIsEnumerable;t.exports=a},{"../internal/isArrayLike":91,"../internal/isObjectLike":96}],102:[function(e,t,n){var r=e("../internal/getNative"),i=e("../internal/isLength"),s=e("../internal/isObjectLike"),o="[object Array]",u=Object.prototype,a=u.toString,f=r(Array,"isArray"),l=f||function(e){return s(e)&&i(e.length)&&a.call(e)==o};t.exports=l},{"../internal/getNative":90,"../internal/isLength":95,"../internal/isObjectLike":96}],103:[function(e,t,n){function l(e){return e==null?!0:s(e)&&(i(e)||a(e)||r(e)||u(e)&&o(e.splice))?!e.length:!f(e).length}var r=e("./isArguments"),i=e("./isArray"),s=e("../internal/isArrayLike"),o=e("./isFunction"),u=e("../internal/isObjectLike"),a=e("./isString"),f=e("../object/keys");t.exports=l},{"../internal/isArrayLike":91,"../internal/isObjectLike":96,"../object/keys":111,"./isArguments":101,"./isArray":102,"./isFunction":104,"./isString":107}],104:[function(e,t,n){function u(e){return r(e)&&o.call(e)==i}var r=e("./isObject"),i="[object Function]",s=Object.prototype,o=s.toString;t.exports=u},{"./isObject":106}],105:[function(e,t,n){function l(e){return e==null?!1:r(e)?f.test(u.call(e)):i(e)&&s.test(e)}var r=e("./isFunction"),i=e("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,o=Object.prototype,u=Function.prototype.toString,a=o.hasOwnProperty,f=RegExp("^"+u.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=l},{"../internal/isObjectLike":96,"./isFunction":104}],106:[function(e,t,n){function r(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}t.exports=r},{}],107:[function(e,t,n){function u(e){return typeof e=="string"||r(e)&&o.call(e)==i}var r=e("../internal/isObjectLike"),i="[object String]",s=Object.prototype,o=s.toString;t.exports=u},{"../internal/isObjectLike":96}],108:[function(e,t,n){function M(e){return i(e)&&r(e.length)&&!!L[O.call(e)]}var r=e("../internal/isLength"),i=e("../internal/isObjectLike"),s="[object Arguments]",o="[object Array]",u="[object Boolean]",a="[object Date]",f="[object Error]"
,l="[object Function]",c="[object Map]",h="[object Number]",p="[object Object]",d="[object RegExp]",v="[object Set]",m="[object String]",g="[object WeakMap]",y="[object ArrayBuffer]",b="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",C="[object Uint16Array]",k="[object Uint32Array]",L={};L[b]=L[w]=L[E]=L[S]=L[x]=L[T]=L[N]=L[C]=L[k]=!0,L[s]=L[o]=L[y]=L[u]=L[a]=L[f]=L[l]=L[c]=L[h]=L[p]=L[d]=L[v]=L[m]=L[g]=!1;var A=Object.prototype,O=A.toString;t.exports=M},{"../internal/isLength":95,"../internal/isObjectLike":96}],109:[function(e,t,n){var r=e("../internal/assignWith"),i=e("../internal/baseAssign"),s=e("../internal/createAssigner"),o=s(function(e,t,n){return n?r(e,t,n):i(e,t)});t.exports=o},{"../internal/assignWith":62,"../internal/baseAssign":63,"../internal/createAssigner":82}],110:[function(e,t,n){function o(e,t,n){var o=i(e);return n&&s(e,t,n)&&(t=undefined),t?r(o,t):o}var r=e("../internal/baseAssign"),i=e("../internal/baseCreate"),s=e("../internal/isIterateeCall");t.exports=o},{"../internal/baseAssign":63,"../internal/baseCreate":66,"../internal/isIterateeCall":93}],111:[function(e,t,n){var r=e("../internal/getNative"),i=e("../internal/isArrayLike"),s=e("../lang/isObject"),o=e("../internal/shimKeys"),u=r(Object,"keys"),a=u?function(e){var t=e==null?undefined:e.constructor;return typeof t=="function"&&t.prototype===e||typeof e!="function"&&i(e)?o(e):s(e)?u(e):[]}:o;t.exports=a},{"../internal/getNative":90,"../internal/isArrayLike":91,"../internal/shimKeys":98,"../lang/isObject":106}],112:[function(e,t,n){function l(e){if(e==null)return[];u(e)||(e=Object(e));var t=e.length;t=t&&o(t)&&(i(e)||r(e))&&t||0;var n=e.constructor,a=-1,l=typeof n=="function"&&n.prototype===e,c=Array(t),h=t>0;while(++a<t)c[a]=a+"";for(var p in e)(!h||!s(p,t))&&(p!="constructor"||!l&&!!f.call(e,p))&&c.push(p);return c}var r=e("../lang/isArguments"),i=e("../lang/isArray"),s=e("../internal/isIndex"),o=e("../internal/isLength"),u=e("../lang/isObject"),a=Object.prototype,f=a.hasOwnProperty;t.exports=l},{"../internal/isIndex":92,"../internal/isLength":95,"../lang/isArguments":101,"../lang/isArray":102,"../lang/isObject":106}],113:[function(e,t,n){function s(e){e=i(e);var t=-1,n=r(e),s=n.length,o=Array(s);while(++t<s){var u=n[t];o[t]=[u,e[u]]}return o}var r=e("./keys"),i=e("../internal/toObject");t.exports=s},{"../internal/toObject":99,"./keys":111}],114:[function(e,t,n){function r(e){return e}t.exports=r},{}],115:[function(e,t,n){function o(e){return s(e)?r(e):i(e)}var r=e("../internal/baseProperty"),i=e("../internal/basePropertyDeep"),s=e("../internal/isKey");t.exports=o},{"../internal/baseProperty":77,"../internal/basePropertyDeep":78,"../internal/isKey":94}],116:[function(e,t,n){},{}],117:[function(e,t,n){arguments[4][116][0].apply(n,arguments)},{dup:116}],118:[function(e,t,n){(function(t){"use strict";function o(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.foo()===42&&typeof e.subarray=="function"&&e.subarray(1,1).byteLength===0}catch(t){return!1}}function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(u()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=f.prototype):(e===null&&(e=new f(t)),e.length=t),e}function f(e,t,n){if(!!f.TYPED_ARRAY_SUPPORT||this instanceof f){if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}return new f(e,t,n)}function l(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?m(e,t,n,r):typeof t=="string"?d(e,t,n):g(e,t)}function c(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number')}function h(e,t,n,r){return c(t),t<=0?a(e,t):n!==undefined?typeof r=="string"?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}function p(e,t){c(t),e=a(e,t<0?0:y(t)|0);if(!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;n++)e[n]=0;return e}function d(e,t,n){if(typeof n!="string"||n==="")n="utf8";if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=w(t,n)|0;return e=a(e,r),e.write(t,n),e}function v(e,t){var n=y(t.length)|0;e=a(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function m(e,t,n,r){t.byteLength;if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return r===undefined?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),f.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=f.prototype):e=v(e,t),e}function g(e,t){if(f.isBuffer(t)){var n=y(t.length)|0;return e=a(e,n),e.length===0?e:(t.copy(e,0,0,n),e)}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||et(t.length)?a(e,0):v(e,t);if(t.type==="Buffer"&&s(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return e|0}function b(e){return+e!=e&&(e=0),f.alloc(+e)}function w(e,t){if(f.isBuffer(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;var r=!1;for(;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":case undefined:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function E(e,t,n){var r=!1;if(t===undefined||t<0)t=0;if(t>this.length)return"";if(n===undefined||n>this.length)n=this.length;if(n<=0)return"";n>>>=0,t>>>=0;if(n<=t)return"";e||(e="utf8");for(;;)switch(e){case"hex":return B(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return P(this,t,n);case"binary":return H(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r){function u(e,t){return i===1?e[t]:e.readUInt16BE(t*i)}var i=1,s=e.length,o=t.length;if(r!==undefined){r=String(r).toLowerCase();if(r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le"){if(e.length<2||t.length<2)return-1;i=2,s/=2,o/=2,n/=2}}var a=-1;for(var f=0;n+f<s;f++)if(u(e,n+f)===u(t,a===-1?0:f-a)){a===-1&&(a=f);if(f-a+1===o)return(n+a)*i}else a!==-1&&(f-=f-a),a=-1;return-1}function T(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var s=t.length;if(s%2!==0)throw new Error("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;o++){var u=parseInt(t.substr(o*2,2),16);if(isNaN(u))return o;e[n+o]=u}return o}function N(e,t,n,r){return Z(K(t,e.length-n),e,n,r)}function C(e,t,n,r){return Z(Q(t),e,n,r)}function k(e,t,n,r){return C(e,t,n,r)}function L(e,t,n,r){return Z(Y(t),e,n,r)}function A(e,t,n,r){return Z(G(t,e.length-n),e,n,r)}function O(e,t,n){return t===0&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var s=e[i],o=null,u=s>239?4:s>223?3:s>191?2:1;if(i+u<=n){var a,f,l,c;switch(u){case 1:s<128&&(o=s);break;case 2:a=e[i+1],(a&192)===128&&(c=(s&31)<<6|a&63,c>127&&(o=c));break;case 3:a=e[i+1],f=e[i+2],(a&192)===128&&(f&192)===128&&(c=(s&15)<<12|(a&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:a=e[i+1],f=e[i+2],l=e[i+3],(a&192)===128&&(f&192)===128&&(l&192)===128&&(c=(s&15)<<18|(a&63)<<12|(f&63)<<6|l&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=u}return D(r)}function D(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]&127);return r}function H(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}function B(e,t,n){var r=e.length;if(!t||t<0)t=0;if(!n||n<0||n>r)n=r;var i="";for(var s=t;s<n;s++)i+=J(e[s]);return i}function j(e,t,n){var r=e.slice(t,n),i="";for(var s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+r[s+1]*256);return i}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,s){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;i++)e[n+i]=t>>>(r?i:3-i)*8&255}function U(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,s){return s||U(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,s){return s||U(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(e,t,n,r,52,8),n+8}function V(e){e=$(e).replace(X,"");if(e.length<2)return"";while(e.length%4!==0)e+="=";return e}function $(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function J(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||Infinity;var n,r=e.length,i=null,s=[];for(var o=0;o<r;o++){n=e.charCodeAt(o);if(n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);i=null;if(n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}}return s}function Q(e){var t=[];for(var n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t}function G(e,t){var n,r,i,s=[];for(var o=0;o<e.length;o++){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r)}return s}function Y(e){return r.toByteArray(V(e))}function Z(e,t,n,r){for(var i=0;i<r;i++){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function et(e){return e!==e}var r=e("base64-js"),i=e("ieee754"),s=e("isarray");n.Buffer=f,n.SlowBuffer=b,n.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:o(),n.kMaxLength=u(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,n){return l(null,e,t,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,n){return h(null,e,t,n)},f.allocUnsafe=function(e){return p(null,e)},f.allocUnsafeSlow=function(e){return p(null,e)},f.isBuffer=function(t){return t!=null&&!!t._isBuffer},f.compare=function(t,n){if(!f.isBuffer(t)||!f.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;var r=t.length,i=n.length;for(var s=0,o=Math.min(r,i);s<o;++s)if(t[s]!==n[s]){r=t[s],i=n[s];break}return r<i?-1:i<r?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,n){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return f.alloc(0);var r;if(n===undefined){n=0;for(r=0;r<t.length;r++)n+=t[r].length}var i=f.allocUnsafe(n),o=0;for(r=0;r<t.length;r++){var u=t[r];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},f.byteLength=w,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)S(this,n,n+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)S(this,n,n+3),S(this,n+1,n+2);return this},f.prototype.toString=function tt(){var e=this.length|0;return e===0?"":arguments.length===0?M(this,0,e):E.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:f.compare(this,t)===0},f.prototype.inspect=function(){var t="",r=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,n,r,i,s){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");n===undefined&&(n=0),r===undefined&&(r=t?t.length:0),i===undefined&&(i=0),s===undefined&&(s=this.length);if(n<0||r>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=r)return 0;if(i>=s)return-1;if(n>=r)return 1;n>>>=0,r>>>=0,i>>>=0,s>>>=0;if(this===t)return 0;var o=s-i,u=r-n,a=Math.min(o,u),l=this.slice(i,s),c=t.slice(n,r);for(var h=0;h<a;++h)if(l[h]!==c[h]){o=l[h],u=c[h];break}return o<u?-1:u<o?1:0},f.prototype.indexOf=function(t,n,r){typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n>>=0;if(this.length===0)return-1;if(n>=this.length)return-1;n<0&&(n=Math.max(this.length+n,0)),typeof t=="string"&&(t=f.from(t,r));if(f.isBuffer(t))return t.length===0?-1:x(this,t,n,r);if(typeof t=="number")return f.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"?Uint8Array.prototype.indexOf.call(this,t,n):x(this,[t],n,r);throw new TypeError("val must be string, number or Buffer")},f.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1},f.prototype.write=function(t,n,r,i){if(n===undefined)i="utf8",r=this.length,n=0;else if(r===undefined&&typeof n=="string")i=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(r)?(r|=0,i===undefined&&(i="utf8")):(i=r,r=undefined)}var s=this.length-n;if(r===undefined||r>s)r=s;if(t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");var o=!1;for(;;)switch(i){case"hex":return T(this,t,n,r);case"utf8":case"utf-8":return N(this,t,n,r);case"ascii":return C(this,t,n,r);case"binary":return k(this,t,n,r);case"base64":return L(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;f.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===undefined?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var i;if(f.TYPED_ARRAY_SUPPORT)i=this.subarray(t,n),i.__proto__=f.prototype;else{var s=n-t;i=new f(s,undefined);for(var o=0;o<s;o++)i[o]=this[o+t]}return i},f.prototype.readUIntLE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);var i=this[t],s=1,o=0;while(++o<n&&(s*=256))i+=this[t+o]*s;return i},f.prototype.readUIntBE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);var i=this[t+ --n],s=1;while(n>0&&(s*=256))i+=this[t+ --n]*s;return i},f.prototype.readUInt8=function(t,n){return n||F(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,n){return n||F(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,n){return n||F(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,n){return n||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},f.prototype.readUInt32BE=function(t,n){return n||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);var i=this[t],s=1,o=0;while(++o<n&&(s*=256))i+=this[t+o]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*n)),i},f.prototype.readIntBE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);var i=n,s=1,o=this[t+ --i];while(i>0&&(s*=256))o+=this[t+ --i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*n)),o},f.prototype.readInt8=function(t,n){return n||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},f.prototype.readInt16LE=function(t,n){n||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},f.prototype.readInt16BE=function(t,n){n||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},f.prototype.readInt32LE=function(t,n){return n||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,n){return n||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,n){return n||F(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,n){return n||F(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,n){return n||F(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,n){return n||F(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,n,r,i){t=+t,n|=0,r|=0;if(!i){var s=Math.pow(2,8*r)-1;I(this,t,n,r,s,0)}var o=1,u=0;this[n]=t&255;while(++u<r&&(o*=256))this[n+u]=t/o&255;return n+r},f.prototype.writeUIntBE=function(t,n,r,i){t=+t,n|=0,r|=0;if(!i){var s=Math.pow(2,8*r)-1;I(this,t,n,r,s,0)}var o=r-1,u=1;this[n+o]=t&255;while(--o>=0&&(u*=256))this[n+o]=t/u&255;return n+r},f.prototype.writeUInt8=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1},f.prototype.writeUInt16LE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):q(this,t,n,!0),n+2},f.prototype.writeUInt16BE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):q(this,t,n,!1),n+2},f.prototype.writeUInt32LE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):R(this,t,n,!0),n+4},f.prototype.writeUInt32BE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):R(this,t,n,!1),n+4},f.prototype.writeIntLE=function(t,n,r,i){t=+t,n|=0;if(!i){var s=Math.pow(2,8*r-1);I(this,t,n,r,s-1,-s)}var o=0,u=1,a=0;this[n]=t&255;while(++o<r&&(u*=256))t<0&&a===0&&this[n+o-1]!==0&&(a=1),this[n+o]=(t/u>>0)-a&255;return n+r},f.prototype.writeIntBE=function(t,n,r,i){t=+t,n|=0;if(!i){var s=Math.pow(2,8*r-1);I(this,t,n,r,s-1,-s)}var o=r-1,u=1,a=0;this[n+o]=t&255;while(--o>=0&&(u*=256))t<0&&a===0&&this[n+o+1]!==0&&(a=1),this[n+o]=(t/u>>0)-a&255;return n+r},f.prototype.writeInt8=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},f.prototype.writeInt16LE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):q(this,t,n,!0),n+2},f.prototype.writeInt16BE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):q(this,t,n,!1),n+2},f.prototype.writeInt32LE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):R(this,t,n,!0),n+4},f.prototype.writeInt32BE=function(t,n,r){return t=+t,n|=0,r||I(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):R(this,t,n,!1),n+4},f.prototype.writeFloatLE=function(t,n,r){return z(this,t,n,!0,r)},f.prototype.writeFloatBE=function(t,n,r){return z(this,t,n,!1,r)},f.prototype.writeDoubleLE=function(t,n,r){return W(this,t,n,!0,r)},f.prototype.writeDoubleBE=function(t,n,r){return W(this,t,n,!1,r)},f.prototype.copy=function(t,n,r,i){r||(r=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<r&&(i=r);if(i===r)return 0;if(t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-r&&(i=t.length-n+r);var s=i-r,o;if(this===t&&r<n&&n<i)for(o=s-1;o>=0;o--)t[o+n]=this[o+r];else if(s<1e3||!f.TYPED_ARRAY_SUPPORT)for(o=0;o<s;o++)t[o+n]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),n);return s},f.prototype.fill=function(t,n,r,i){if(typeof t=="string"){typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length);if(t.length===1){var s=t.charCodeAt(0);s<256&&(t=s)}if(i!==undefined&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n>>>=0,r=r===undefined?this.length:r>>>0,t||(t=0);var o;if(typeof t=="number")for(o=n;o<r;o++)this[o]=t;else{var u=f.isBuffer(t)?t:K((new f(t,i)).toString()),a=u.length;for(o=0;o<r-n;o++)this[o+n]=u[o%a]}return this};var X=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":119,ieee754:120,isarray:121}],119:[function(e,t,n){"use strict";function o(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var t=0,n=e.length;t<n;++t)r[t]=e[t],i[e.charCodeAt(t)]=t;i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63}function u(e){var t,n,r,o,u,a,f=e.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u=e[f-2]==="="?2:e[f-1]==="="?1:0,a=new s(f*3/4-u),r=u>0?f-4:f;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)o=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=o&255;return u===2?(o=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,a[l++]=o&255):u===1&&(o=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=o&255),a}function a(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function f(e,t,n){var r,i=[];for(var s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(a(r));return i.join("")}function l(e){var t,n=e.length,i=n%3,s="",o=[],u=16383;for(var a=0,l=n-i;a<l;a+=u)o.push(f(e,a,a+u>l?l:a+u));return i===1?(t=e[n-1],s+=r[t>>2],s+=r[t<<4&63],s+="=="):i===2&&(t=(e[n-2]<<8)+e[n-1],s+=r[t>>10],s+=r[t>>4&63],s+=r[t<<2&63],s+="="),o.push(s),o.join("")}n.toByteArray=u,n.fromByteArray=l;var r=[],i=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array;o()},{}],120:[function(e,t,n){n.read=function(e,t,n,r,i){var s,o,u=i*8-r-1,a=(1<<u)-1,f=a>>1,l=-7,c=n?i-1:0,h=n?-1:1,p=e[t+c];c+=h,s=p&(1<<-l)-1,p>>=-l,l+=u;for(;l>0;s=s*256+e[t+c],c+=h,l-=8);o=s&(1<<-l)-1,s>>=-l,l+=r;for(;l>0;o=o*256+e[t+c],c+=h,l-=8);if(s===0)s=1-f;else{if(s===a)return o?NaN:(p?-1:1)*Infinity;o+=Math.pow(2,r),s-=f}return(p?-1:1)*o*Math.pow(2,s-r)},n.write=function(e,t,n,r,i,s){var o,u,a,f=s*8-i-1,l=(1<<f)-1,c=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,d=r?1:-1,v=t<0||t===0&&1/t<0?1:0;t=Math.abs(t),isNaN(t)||t===Infinity?(u=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-o))<1&&(o--,a*=2),o+c>=1?t+=h/a:t+=h*Math.pow(2,1-c),t*a>=2&&(o++,a/=2),o+c>=l?(u=0,o=l):o+c>=1?(u=(t*a-1)*Math.pow(2,i),o+=c):(u=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));for(;i>=8;e[n+p]=u&255,p+=d,u/=256,i-=8);o=o<<i|u,f+=i;for(;f>0;e[n+p]=o&255,p+=d,o/=256,f-=8);e[n+p-d]|=v*128}},{}],121:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},{}],122:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||undefined}function i(e){return typeof e=="function"}function s(e){return typeof e=="number"}function o(e){return typeof e=="object"&&e!==null}function u(e){return e===void 0}t.exports=r,r.EventEmitter=r,r.prototype._events=undefined,r.prototype._maxListeners=undefined,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,a,f;this._events||(this._events={});if(e==="error")if(!this._events.error||o(this._events.error)&&!this._events.error.length)throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');n=this._events[e];if(u(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n)){s=Array.prototype.slice.call(arguments,1),f=n.slice(),r=f.length;for(a=0;a<r;a++)f[a].apply(this,s)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(u(this._maxListeners)?n=r.defaultMaxListeners:n=this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,s,u;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;n=this._events[e],s=n.length,r=-1;if(n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(u=s;u-->0;)if(n[u]===t||n[u].listener&&n[u].listener===t){r=u;break}if(r<0)return this;n.length===1?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events){if(t==="removeListener")continue;this.removeAllListeners(t)}return this.removeAllListeners("removeListener"),this._events={},this}n=this._events[e];if(i(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:i(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],123:[function(e,t,n){typeof Object.create=="function"?t.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],124:[function(e,t,n){t.exports=function(e){return e!=null&&!!(e._isBuffer||e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))}},{}],125:[function(e,t,n){function a(){if(!s||!o)return;s=!1,o.length?i=o.concat(i):u=-1,i.length&&f()}function f(){if(s)return;var e=setTimeout(a);s=!0;var t=i.length;while(t){o=i,i=[];while(++u<t)o&&o[u].run();u=-1,t=i.length}o=null,s=!1,clearTimeout(e)}function l(e,t){this.fun=e,this.array=t}function c(){}var r=t.exports={},i=[],s=!1,o,u=-1;r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];i.push(new l(e,t)),i.length===1&&!s&&setTimeout(f,0)},l.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=c,r.addListener=c,r.once=c,r.off=c,r.removeListener=c,r.removeAllListeners=c,r.emit=c,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],126:[function(e,t,n){(function(e){(function(r){function N(e){throw new RangeError(w[e])}function C(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(b,".");var i=e.split("."),s=C(i,t).join(".");return r+s}function L(e){var t=[],n=0,r=e.length,i,s;while(n<r)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(s=e.charCodeAt(n++),(s&64512)==56320?t.push(((i&1023)<<10)+(s&1023)+65536):(t.push(i),n--)):t.push(i);return t}function A(e){return C(e,function(e){var t="";return e>65535&&(e-=65536,t+=x(e>>>10&1023|55296),e=56320|e&1023),t+=x(e),t}).join("")}function O(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f}function M(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function _(e,t,n){var r=0;e=n?S(e/p):e>>1,e+=S(e/t);for(;e>E*c>>1;r+=f)e=S(e/E);return S(r+(E+1)*e/(e+h))}function D(e){var t=[],n=e.length,r,i=0,s=v,o=d,u,h,p,g,y,b,w,E,x;u=e.lastIndexOf(m),u<0&&(u=0);for(h=0;h<u;++h)e.charCodeAt(h)>=128&&N("not-basic"),t.push(e.charCodeAt(h));for(p=u>0?u+1:0;p<n;){for(g=i,y=1,b=f;;b+=f){p>=n&&N("invalid-input"),w=O(e.charCodeAt(p++)),(w>=f||w>S((a-i)/y))&&N("overflow"),i+=w*y,E=b<=o?l:b>=o+c?c:b-o;if(w<E)break;x=f-E,y>S(a/x)&&N("overflow"),y*=x}r=t.length+1,o=_(i-g,r,g==0),S(i/r)>a-s&&N("overflow"),s+=S(i/r),i%=r,t.splice(i++,0,s)}return A(t)}function P(e){var t,n,r,i,s,o,u,h,p,g,y,b=[],w,E,T,C;e=L(e),w=e.length,t=v,n=0,s=d;for(o=0;o<w;++o)y=e[o],y<128&&b.push(x(y));r=i=b.length,i&&b.push(m);while(r<w){for(u=a,o=0;o<w;++o)y=e[o],y>=t&&y<u&&(u=y);E=r+1,u-t>S((a-n)/E)&&N("overflow"),n+=(u-t)*E,t=u;for(o=0;o<w;++o){y=e[o],y<t&&++n>a&&N("overflow");if(y==t){for(h=n,p=f;;p+=f){g=p<=s?l:p>=s+c?c:p-s;if(h<g)break;C=h-g,T=f-g,b.push(x(M(g+C%T,0))),h=S(C/T)}b.push(x(M(h,0))),s=_(n,E,r==i),n=0,++r}}++n,++t}return b.join("")}function H(e){return k(e,function(e){return g.test(e)?D(e.slice(4).toLowerCase()):e})}function B(e){return k(e,function(e){return y.test(e)?"xn--"+P(e):e})}var i=typeof n=="object"&&n&&!n.nodeType&&n,s=typeof t=="object"&&t&&!t.nodeType&&t,o=typeof e=="object"&&e;if(o.global===o||o.window===o||o.self===o)r=o;var u,a=2147483647,f=36,l=1,c=26,h=38,p=700,d=72,v=128,m="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=f-l,S=Math.floor,x=String.fromCharCode,T;u={version:"1.4.1",ucs2:{decode:L,encode:A},decode:D,encode:P,toASCII:B,toUnicode:H};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return u});else if(i&&s)if(t.exports==i)s.exports=u;else for(T in u)u.hasOwnProperty(T)&&(i[T]=u[T]);else r.punycode=u})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],127:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,s){t=t||"&",n=n||"=";var o={};if(typeof e!="string"||e.length===0
)return o;var u=/\+/g;e=e.split(t);var a=1e3;s&&typeof s.maxKeys=="number"&&(a=s.maxKeys);var f=e.length;a>0&&f>a&&(f=a);for(var l=0;l<f;++l){var c=e[l].replace(u,"%20"),h=c.indexOf(n),p,d,v,m;h>=0?(p=c.substr(0,h),d=c.substr(h+1)):(p=c,d=""),v=decodeURIComponent(p),m=decodeURIComponent(d),r(o,v)?i(o[v])?o[v].push(m):o[v]=[o[v],m]:o[v]=m}return o};var i=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},{}],128:[function(e,t,n){"use strict";function s(e,t){if(e.map)return e.map(t);var n=[];for(var r=0;r<e.length;r++)n.push(t(e[r],r));return n}var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,u){return t=t||"&",n=n||"=",e===null&&(e=undefined),typeof e=="object"?s(o(e),function(o){var u=encodeURIComponent(r(o))+n;return i(e[o])?s(e[o],function(e){return u+encodeURIComponent(r(e))}).join(t):u+encodeURIComponent(r(e[o]))}).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],129:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":127,"./encode":128}],130:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":131}],131:[function(e,t,n){"use strict";function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),u.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){if(this.allowHalfOpen||this._writableState.ended)return;i(p,this)}function p(e){e.end()}function d(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var i=e("process-nextick-args"),s=e("core-util-is");s.inherits=e("inherits");var o=e("./_stream_readable"),u=e("./_stream_writable");s.inherits(c,o);var a=r(u.prototype);for(var f=0;f<a.length;f++){var l=a[f];c.prototype[l]||(c.prototype[l]=u.prototype[l])}},{"./_stream_readable":133,"./_stream_writable":135,"core-util-is":137,inherits:123,"process-nextick-args":139}],132:[function(e,t,n){"use strict";function s(e){if(!(this instanceof s))return new s(e);r.call(this,e)}t.exports=s;var r=e("./_stream_transform"),i=e("core-util-is");i.inherits=e("inherits"),i.inherits(s,r),s.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":134,"core-util-is":137,inherits:123}],133:[function(e,t,n){(function(n){"use strict";function v(e,t,n){if(d)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function g(t,n){m=m||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof m&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||r===0?r:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){m=m||e("./_stream_duplex");if(!(this instanceof y))return new y(t);this._readableState=new g(t,this),this.readable=!0,t&&typeof t.read=="function"&&(this._read=t.read),u.call(this)}function b(e,t,n,r,i){var s=T(t,n);if(s)e.emit("error",s);else if(n===null)t.reading=!1,N(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var o=new Error("stream.push() after EOF");e.emit("error",o)}else if(t.endEmitted&&i){var u=new Error("stream.unshift() after end event");e.emit("error",u)}else{var a;t.decoder&&!i&&!r&&(n=t.decoder.write(n),a=!t.objectMode&&n.length===0),i||(t.reading=!1),a||(t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e))),L(e,t)}else i||(t.reading=!1);return w(t)}function w(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}function S(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function x(e,t){return t.length===0&&t.ended?0:t.objectMode?e===0?0:1:e===null||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=S(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function T(e,t){var n=null;return!a.isBuffer(t)&&typeof t!="string"&&t!==null&&t!==undefined&&!e.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function N(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),P(e)}function L(e,t){t.readingMore||(t.readingMore=!0,r(A,e,t))}function A(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){h("maybeReadMore read 0"),e.read(0);if(n===t.length)break;n=t.length}t.readingMore=!1}function O(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&o(e,"data")&&(t.flowing=!0,P(e))}}function M(e){h("readable nexttick read 0"),e.read(0)}function _(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r(D,e,t))}function D(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;h("flow",t.flowing);if(t.flowing)do var n=e.read();while(null!==n&&t.flowing)}function H(e,t){var n=t.buffer,r=t.length,i=!!t.decoder,s=!!t.objectMode,o;if(n.length===0)return null;if(r===0)o=null;else if(s)o=n.shift();else if(!e||e>=r)i?o=n.join(""):n.length===1?o=n[0]:o=a.concat(n,r),n.length=0;else if(e<n[0].length){var u=n[0];o=u.slice(0,e),n[0]=u.slice(e)}else if(e===n[0].length)o=n.shift();else{i?o="":o=f.allocUnsafe(e);var l=0;for(var c=0,h=n.length;c<h&&l<e;c++){var p=n[0],d=Math.min(e-l,p.length);i?o+=p.slice(0,d):p.copy(o,l,0,d),d<p.length?n[0]=p.slice(d):n.shift(),l+=d}}return o}function B(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r(j,t,e))}function j(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function F(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}t.exports=y;var r=e("process-nextick-args"),i=e("isarray");y.ReadableState=g;var s=e("events").EventEmitter,o=function(e,t){return e.listeners(t).length},u;(function(){try{u=e("stream")}catch(t){}finally{u||(u=e("events").EventEmitter)}})();var a=e("buffer").Buffer,f=e("buffer-shims"),l=e("core-util-is");l.inherits=e("inherits");var c=e("util"),h=void 0;c&&c.debuglog?h=c.debuglog("stream"):h=function(){};var p;l.inherits(y,u);var d=typeof s.prototype.prependListener=="function",m,m;y.prototype.push=function(e,t){var n=this._readableState;return!n.objectMode&&typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=f.from(e,t),t="")),b(this,n,e,t,!1)},y.prototype.unshift=function(e){var t=this._readableState;return b(this,t,e,"",!0)},y.prototype.isPaused=function(){return this._readableState.flowing===!1},y.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var E=8388608;y.prototype.read=function(e){h("read",e);var t=this._readableState,n=e;if(typeof e!="number"||e>0)t.emittedReadable=!1;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?B(this):C(this),null;e=x(e,t);if(e===0&&t.ended)return t.length===0&&B(this),null;var r=t.needReadable;h("need readable",r);if(t.length===0||t.length-e<t.highWaterMark)r=!0,h("length less than watermark",r);if(t.ended||t.reading)r=!1,h("reading or ended",r);r&&(h("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=x(n,t));var i;return e>0?i=H(e,t):i=null,i===null&&(t.needReadable=!0,e=0),t.length-=e,t.length===0&&!t.ended&&(t.needReadable=!0),n!==e&&t.ended&&t.length===0&&B(this),i!==null&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("not implemented"))},y.prototype.pipe=function(e,t){function f(e){h("onunpipe"),e===i&&d()}function l(){h("onend"),e.end()}function d(){h("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",c),e.removeListener("error",g),e.removeListener("unpipe",f),i.removeListener("end",l),i.removeListener("end",d),i.removeListener("data",m),p=!0,s.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function m(t){h("ondata");var n=e.write(t);!1===n&&((s.pipesCount===1&&s.pipes===e||s.pipesCount>1&&I(s.pipes,e)!==-1)&&!p&&(h("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++),i.pause())}function g(t){h("onerror",t),w(),e.removeListener("error",g),o(e,"error")===0&&e.emit("error",t)}function y(){e.removeListener("finish",b),w()}function b(){h("onfinish"),e.removeListener("close",y),w()}function w(){h("unpipe"),i.unpipe(e)}var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,h("pipe count=%d opts=%j",s.pipesCount,t);var u=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,a=u?l:d;s.endEmitted?r(a):i.once("end",a),e.on("unpipe",f);var c=O(i);e.on("drain",c);var p=!1;return i.on("data",m),v(e,"error",g),e.once("close",y),e.once("finish",b),e.emit("pipe",i),s.flowing||(h("pipe resume"),i.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState;if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var s=I(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},y.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);e==="data"&&!1!==this._readableState.flowing&&this.resume();if(e==="readable"&&!this._readableState.endEmitted){var i=this._readableState;i.readableListening||(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading?i.length&&C(this,i):r(M,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,_(this,e)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){h("wrapped end");if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){h("wrapped data"),t.decoder&&(i=t.decoder.write(i));if(!(!t.objectMode||i!==null&&i!==undefined))return;if(!t.objectMode&&(!i||!i.length))return;var s=r.push(i);s||(n=!0,e.pause())});for(var i in e)this[i]===undefined&&typeof e[i]=="function"&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var s=["error","close","destroy","pause","resume"];return F(s,function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},r},y._fromList=H}).call(this,e("_process"))},{"./_stream_duplex":131,_process:125,buffer:118,"buffer-shims":136,"core-util-is":137,events:122,inherits:123,isarray:138,"process-nextick-args":139,"string_decoder/":146,util:117}],134:[function(e,t,n){"use strict";function s(e){this.afterTransform=function(t,n){return o(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,n!==null&&n!==undefined&&e.push(n),i(t);var s=e._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&e._read(s.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);r.call(this,e),this._transformState=new s(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(e){a(t,e)}):a(t)})}function a(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=u;var r=e("./_stream_duplex"),i=e("core-util-is");i.inherits=e("inherits"),i.inherits(u,r),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){throw new Error("Not implemented")},u.prototype._write=function(e,t,n){var r=this._transformState;r.writecb=n,r.writechunk=e,r.writeencoding=t;if(!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":131,"core-util-is":137,inherits:123}],135:[function(e,t,n){(function(n){"use strict";function l(){}function c(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function p(t,n){h=h||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof h&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||r===0?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){S(n,e)},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 O(this)}function d(t){h=h||e("./_stream_duplex");if(!(this instanceof d||this instanceof h))return new d(t);this._writableState=new p(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev)),u.call(this)}function v(e,t){var n=new Error("write after end");e.emit("error",n),r(t,n)}function m(e,t,n,i){var s=!0,o=!1;return n===null?o=new TypeError("May not write null values to stream"):!a.isBuffer(n)&&typeof n!="string"&&n!==undefined&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),r(i,o),s=!1),s}function g(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=f.from(t,n)),t}function y(e,t,n,r,i){n=g(t,n,r),a.isBuffer(n)&&(r="buffer");var s=t.objectMode?1:n.length;t.length+=s;var o=t.length<t.highWaterMark;o||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new c(n,r,i),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,n,r,i);return o}function b(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function w(e,t,n,i,s){--t.pendingcb,n?r(s,i):s(i),e._writableState.errorEmitted=!0,e.emit("error",i)}function E(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function S(e,t){var n=e._writableState,r=n.sync,s=n.writecb;E(n);if(t)w(e,n,r,t,s);else{var o=C(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&N(e,n),r?i(x,e,n,o,s):x(e,n,o,s)}}function x(e,t,n,r){n||T(e,t),t.pendingcb--,r(),L(e,t)}function T(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),s=t.corkedRequestsFree;s.entry=n;var o=0;while(n)i[o]=n,n=n.next,o+=1;b(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new O(t)}else{while(n){var u=n.chunk,a=n.encoding,f=n.callback,l=t.objectMode?1:u.length;b(e,t,!1,l,u,a,f),n=n.next;if(t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function k(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function L(e,t){var n=C(t);return n&&(t.pendingcb===0?(k(e,t),t.finished=!0,e.emit("finish")):k(e,t)),n}function A(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?r(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function O(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}t.exports=d;var r=e("process-nextick-args"),i=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:r;d.WritableState=p;var s=e("core-util-is");s.inherits=e("inherits");var o={deprecate:e("util-deprecate")},u;(function(){try{u=e("stream")}catch(t){}finally{u||(u=e("events").EventEmitter)}})();var a=e("buffer").Buffer,f=e("buffer-shims");s.inherits(d,u);var h;p.prototype.getBuffer=function(){var t=this.bufferedRequest,n=[];while(t)n.push(t),t=t.next;return n},function(){try{Object.defineProperty(p.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var h;d.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},d.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return typeof t=="function"&&(n=t,t=null),a.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=l),r.ended?v(this,n):m(this,r,e,n)&&(r.pendingcb++,i=y(this,r,e,t,n)),i},d.prototype.cork=function(){var e=this._writableState;e.corked++},d.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},d.prototype.setDefaultEncoding=function(t){typeof t=="string"&&(t=t.toLowerCase());if(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1)return this._writableState.defaultEncoding=t,this;throw new TypeError("Unknown encoding: "+t)},d.prototype._write=function(e,t,n){n(new Error("not implemented"))},d.prototype._writev=null,d.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!==null&&e!==undefined&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),!r.ending&&!r.finished&&A(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":131,_process:125,buffer:118,"buffer-shims":136,"core-util-is":137,events:122,inherits:123,"process-nextick-args":139,"util-deprecate":140}],136:[function(e,t,n){(function(t){"use strict";var r=e("buffer"),i=r.Buffer,s=r.SlowBuffer,o=r.kMaxLength||2147483647;n.alloc=function(t,n,r){if(typeof i.alloc=="function")return i.alloc(t,n,r);if(typeof r=="number")throw new TypeError("encoding must not be number");if(typeof t!="number")throw new TypeError("size must be a number");if(t>o)throw new RangeError("size is too large");var s=r,u=n;u===undefined&&(s=undefined,u=0);var a=new i(t);if(typeof u=="string"){var f=new i(u,s),l=f.length,c=-1;while(++c<t)a[c]=f[c%l]}else a.fill(u);return a},n.allocUnsafe=function(t){if(typeof i.allocUnsafe=="function")return i.allocUnsafe(t);if(typeof t!="number")throw new TypeError("size must be a number");if(t>o)throw new RangeError("size is too large");return new i(t)},n.from=function(n,r,s){if(typeof i.from!="function"||!!t.Uint8Array&&Uint8Array.from===i.from){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');if(typeof n=="string")return new i(n,r);if(typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer){var o=r;if(arguments.length===1)return new i(n);typeof o=="undefined"&&(o=0);var u=s;typeof u=="undefined"&&(u=n.byteLength-o);if(o>=n.byteLength)throw new RangeError("'offset' is out of bounds");if(u>n.byteLength-o)throw new RangeError("'length' is out of bounds");return new i(n.slice(o,o+u))}if(i.isBuffer(n)){var a=new i(n.length);return n.copy(a,0,0,n.length),a}if(n){if(Array.isArray(n)||typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return new i(n);if(n.type==="Buffer"&&Array.isArray(n.data))return new i(n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}return i.from(n,r,s)},n.allocUnsafeSlow=function(t){if(typeof i.allocUnsafeSlow=="function")return i.allocUnsafeSlow(t);if(typeof t!="number")throw new TypeError("size must be a number");if(t>=o)throw new RangeError("size is too large");return new s(t)}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{buffer:118}],137:[function(e,t,n){(function(e){function t(e){return Array.isArray?Array.isArray(e):m(e)==="[object Array]"}function r(e){return typeof e=="boolean"}function i(e){return e===null}function s(e){return e==null}function o(e){return typeof e=="number"}function u(e){return typeof e=="string"}function a(e){return typeof e=="symbol"}function f(e){return e===void 0}function l(e){return m(e)==="[object RegExp]"}function c(e){return typeof e=="object"&&e!==null}function h(e){return m(e)==="[object Date]"}function p(e){return m(e)==="[object Error]"||e instanceof Error}function d(e){return typeof e=="function"}function v(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}function m(e){return Object.prototype.toString.call(e)}n.isArray=t,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=s,n.isNumber=o,n.isString=u,n.isSymbol=a,n.isUndefined=f,n.isRegExp=l,n.isObject=c,n.isDate=h,n.isError=p,n.isFunction=d,n.isPrimitive=v,n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../../../insert-module-globals/node_modules/is-buffer/index.js")})},{"../../../../insert-module-globals/node_modules/is-buffer/index.js":124}],138:[function(e,t,n){arguments[4][121][0].apply(n,arguments)},{dup:121}],139:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,o,u;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:o=new Array(s-1),u=0;while(u<o.length)o[u++]=arguments[u];return e.nextTick(function(){t.apply(null,o)})}}!e.version||e.version.indexOf("v0.")===0||e.version.indexOf("v1.")===0&&e.version.indexOf("v1.8.")!==0?t.exports=n:t.exports=e.nextTick}).call(this,e("_process"))},{_process:125}],140:[function(e,t,n){(function(e){function n(e,t){function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var n=!1;return i}function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null==r?!1:String(r).toLowerCase()==="true"}t.exports=n}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],141:[function(e,t,n){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":132}],142:[function(e,t,n){(function(r){var i=function(){try{return e("stream")}catch(t){}}();n=t.exports=e("./lib/_stream_readable.js"),n.Stream=i||n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),!r.browser&&r.env.READABLE_STREAM==="disable"&&i&&(t.exports=i)}).call(this,e("_process"))},{"./lib/_stream_duplex.js":131,"./lib/_stream_passthrough.js":132,"./lib/_stream_readable.js":133,"./lib/_stream_transform.js":134,"./lib/_stream_writable.js":135,_process:125}],143:[function(e,t,n){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":134}],144:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":135}],145:[function(e,t,n){function s(){r.call(this)}t.exports=s;var r=e("events").EventEmitter,i=e("inherits");i(s,r),s.Readable=e("readable-stream/readable.js"),s.Writable=e("readable-stream/writable.js"),s.Duplex=e("readable-stream/duplex.js"),s.Transform=e("readable-stream/transform.js"),s.PassThrough=e("readable-stream/passthrough.js"),s.Stream=s,s.prototype.pipe=function(e,t){function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}function u(){if(o)return;o=!0,e.end()}function a(){if(o)return;o=!0,typeof e.destroy=="function"&&e.destroy()}function f(e){l();if(r.listenerCount(this,"error")===0)throw e}function l(){n.removeListener("data",i),e.removeListener("drain",s),n.removeListener("end",u),n.removeListener("close",a),n.removeListener("error",f),e.removeListener("error",f),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}var n=this;n.on("data",i),e.on("drain",s),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",u),n.on("close",a));var o=!1;return n.on("error",f),e.on("error",f),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:122,inherits:123,"readable-stream/duplex.js":130,"readable-stream/passthrough.js":141,"readable-stream/readable.js":142,"readable-stream/transform.js":143,"readable-stream/writable.js":144}],146:[function(e,t,n){function s(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}function u(e){return e.toString(this.encoding)}function a(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function f(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var r=e("buffer").Buffer,i=r.isEncoding||function(e){switch(e&&e.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}},o=n.StringDecoder=function(e){this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),s(e);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=u;return}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};o.prototype.write=function(e){var t="";while(this.charLength){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n;if(this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(r>=55296&&r<=56319){this.charLength+=this.surrogateSize,t="";continue}this.charReceived=this.charLength=0;if(e.length===0)return t;break}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,r=t.charCodeAt(i);if(r>=55296&&r<=56319){var s=this.surrogateSize;return this.charLength+=s,this.charReceived+=s,this.charBuffer.copy(this.charBuffer,s,0,s),e.copy(this.charBuffer,0,0,s),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){var t=e.length>=3?3:e.length;for(;t>0;t--){var n=e[e.length-t];if(t==1&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";e&&e.length&&(t=this.write(e));if(this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:118}],147:[function(e,t,n){"use strict";function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function E(e,t,n){if(e&&i.isObject(e)&&e instanceof s)return e;var r=new s;return r.parse(e,t,n),r}function S(e){return i.isString(e)&&(e=E(e)),e instanceof s?e.format():s.prototype.format.call(e)}function x(e,t){return E(e,!1,!0).resolve(t)}function T(e,t){return e?E(e,!1,!0).resolveObject(t):t}var r=e("punycode"),i=e("./util");n.parse=E,n.resolve=x,n.resolveObject=T,n.format=S,n.Url=s;var o=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r","\n","	"],l=["{","}","|","\\","^","`"].concat(f),c=["'"].concat(l),h=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=e("querystring");s.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),u=s!==-1&&s<e.indexOf("#")?"?":"#",f=e.split(u),l=/\\/g;f[0]=f[0].replace(l,"/"),e=f.join(u);var E=e;E=E.trim();if(!n&&e.split("#").length===1){var S=a.exec(E);if(S)return this.path=E,this.href=E,this.pathname=S[1],S[2]?(this.search=S[2],t?this.query=w.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=o.exec(E);if(x){x=x[0];var T=x.toLowerCase();this.protocol=T,E=E.substr(x.length)}if(n||x||E.match(/^\/\/[^@\/]+@[^@\/]+/)){var N=E.substr(0,2)==="//";N&&(!x||!y[x])&&(E=E.substr(2),this.slashes=!0)}if(!y[x]&&(N||x&&!b[x])){var C=-1;for(var k=0;k<p.length;k++){var L=E.indexOf(p[k]);L!==-1&&(C===-1||L<C)&&(C=L)}var A,O;C===-1?O=E.lastIndexOf("@"):O=E.lastIndexOf("@",C),O!==-1&&(A=E.slice(0,O),E=E.slice(O+1),this.auth=decodeURIComponent(A)),C=-1;for(var k=0;k<h.length;k++){var L=E.indexOf(h[k]);L!==-1&&(C===-1||L<C)&&(C=L)}C===-1&&(C=E.length),this.host=E.slice(0,C),E=E.slice(C),this.parseHost(),this.hostname=this.hostname||"";var M=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!M){var _=this.hostname.split(/\./);for(var k=0,D=_.length;k<D;k++){var P=_[k];if(!P)continue;if(!P.match(v)){var H="";for(var B=0,j=P.length;B<j;B++)P.charCodeAt(B)>127?H+="x":H+=P[B];if(!H.match(v)){var F=_.slice(0,k),I=_.slice(k+1),q=P.match(m);q&&(F.push(q[1]),I.unshift(q[2])),I.length&&(E="/"+I.join(".")+E),this.hostname=F.join(".");break}}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var R=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+R,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),E[0]!=="/"&&(E="/"+E))}if(!g[T])for(var k=0,D=c.length;k<D;k++){var z=c[k];if(E.indexOf(z)===-1)continue;var W=encodeURIComponent(z);W===z&&(W=escape(z)),E=E.split(z).join(W)}var X=E.indexOf("#");X!==-1&&(this.hash=E.substr(X),E=E.slice(0,X));var V=E.indexOf("?");V!==-1?(this.search=E.substr(V
),this.query=E.substr(V+1),t&&(this.query=w.parse(this.query)),E=E.slice(0,V)):t&&(this.search="",this.query={}),E&&(this.pathname=E),b[T]&&this.hostname&&!this.pathname&&(this.pathname="/");if(this.pathname||this.search){var R=this.pathname||"",$=this.search||"";this.path=R+$}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",s=!1,o="";this.host?s=e+this.host:this.hostname&&(s=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=w.stringify(this.query));var u=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||b[t])&&s!==!1?(s="//"+(s||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):s||(s=""),r&&r.charAt(0)!=="#"&&(r="#"+r),u&&u.charAt(0)!=="?"&&(u="?"+u),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),u=u.replace("#","%23"),t+s+n+u+r},s.prototype.resolve=function(e){return this.resolveObject(E(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(i.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}var n=new s,r=Object.keys(this);for(var o=0;o<r.length;o++){var u=r[o];n[u]=this[u]}n.hash=e.hash;if(e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){var a=Object.keys(e);for(var f=0;f<a.length;f++){var l=a[f];l!=="protocol"&&(n[l]=e[l])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){var c=Object.keys(e);for(var h=0;h<c.length;h++){var p=c[h];n[p]=e[p]}return n.href=n.format(),n}n.protocol=e.protocol;if(!e.host&&!y[e.protocol]){var d=(e.pathname||"").split("/");while(d.length&&!(e.host=d.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),d[0]!==""&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}else n.pathname=e.pathname;n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port;if(n.pathname||n.search){var v=n.pathname||"",m=n.search||"";n.path=v+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&n.pathname.charAt(0)==="/",w=e.host||e.pathname&&e.pathname.charAt(0)==="/",E=w||g||n.host&&e.pathname,S=E,x=n.pathname&&n.pathname.split("/")||[],d=e.pathname&&e.pathname.split("/")||[],T=n.protocol&&!b[n.protocol];T&&(n.hostname="",n.port=null,n.host&&(x[0]===""?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(d[0]===""?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(d[0]===""||x[0]===""));if(w)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=d;else if(d.length)x||(x=[]),x.pop(),x=x.concat(d),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(T){n.hostname=n.host=x.shift();var N=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;N&&(n.auth=N.shift(),n.host=n.hostname=N.shift())}n.search=e.search,n.query=e.query;if(!i.isNull(n.pathname)||!i.isNull(n.search))n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"");return n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;var C=x.slice(-1)[0],k=(n.host||e.host||x.length>1)&&(C==="."||C==="..")||C==="",L=0;for(var A=x.length;A>=0;A--)C=x[A],C==="."?x.splice(A,1):C===".."?(x.splice(A,1),L++):L&&(x.splice(A,1),L--);if(!E&&!S)for(;L--;L)x.unshift("..");E&&x[0]!==""&&(!x[0]||x[0].charAt(0)!=="/")&&x.unshift(""),k&&x.join("/").substr(-1)!=="/"&&x.push("");var O=x[0]===""||x[0]&&x[0].charAt(0)==="/";if(T){n.hostname=n.host=O?"":x.length?x.shift():"";var N=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;N&&(n.auth=N.shift(),n.host=n.hostname=N.shift())}E=E||n.host&&x.length,E&&!O&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null);if(!i.isNull(n.pathname)||!i.isNull(n.search))n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"");return n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},s.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":148,punycode:126,querystring:129}],148:[function(e,t,n){"use strict";t.exports={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}},{}],149:[function(e,t,n){t.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],150:[function(e,t,n){(function(t,r){function u(e,t){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),T(r.showHidden)&&(r.showHidden=!1),T(r.depth)&&(r.depth=2),T(r.colors)&&(r.colors=!1),T(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function f(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function c(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return S(i)||(i=c(e,i,r)),i}var s=h(e,t);if(s)return s;var o=Object.keys(t),u=l(o);e.showHidden&&(o=Object.getOwnPropertyNames(t));if(L(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(o.length===0){if(A(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(N(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(L(t))return p(t)}var f="",y=!1,b=["{","}"];g(t)&&(y=!0,b=["[","]"]);if(A(t)){var w=t.name?": "+t.name:"";f=" [Function"+w+"]"}N(t)&&(f=" "+RegExp.prototype.toString.call(t)),k(t)&&(f=" "+Date.prototype.toUTCString.call(t)),L(t)&&(f=" "+p(t));if(o.length!==0||!!y&&t.length!=0){if(r<0)return N(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var E;return y?E=d(e,t,r,u,o):E=o.map(function(n){return v(e,t,r,u,n,y)}),e.seen.pop(),m(E,f,b)}return b[0]+f+b[1]}function h(e,t){if(T(t))return e.stylize("undefined","undefined");if(S(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(E(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i){var s=[];for(var o=0,u=t.length;o<u;++o)H(t,String(o))?s.push(v(e,t,n,r,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(v(e,t,n,r,i,!0))}),s}function v(e,t,n,r,i,s){var o,u,a;a=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},a.get?a.set?u=e.stylize("[Getter/Setter]","special"):u=e.stylize("[Getter]","special"):a.set&&(u=e.stylize("[Setter]","special")),H(r,i)||(o="["+i+"]"),u||(e.seen.indexOf(a.value)<0?(b(n)?u=c(e,a.value,null):u=c(e,a.value,n-1),u.indexOf("\n")>-1&&(s?u=u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):u="\n"+u.split("\n").map(function(e){return"   "+e}).join("\n"))):u=e.stylize("[Circular]","special"));if(T(o)){if(s&&i.match(/^\d+$/))return u;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+u}function m(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(t===""?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function g(e){return Array.isArray(e)}function y(e){return typeof e=="boolean"}function b(e){return e===null}function w(e){return e==null}function E(e){return typeof e=="number"}function S(e){return typeof e=="string"}function x(e){return typeof e=="symbol"}function T(e){return e===void 0}function N(e){return C(e)&&M(e)==="[object RegExp]"}function C(e){return typeof e=="object"&&e!==null}function k(e){return C(e)&&M(e)==="[object Date]"}function L(e){return C(e)&&(M(e)==="[object Error]"||e instanceof Error)}function A(e){return typeof e=="function"}function O(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}function M(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}function P(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=/%[sdj%]/g;n.format=function(e){if(!S(e)){var t=[];for(var n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}var n=1,r=arguments,s=r.length,o=String(e).replace(i,function(e){if(e==="%%")return"%";if(n>=s)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"};default:return e}});for(var a=r[n];n<s;a=r[++n])b(a)||!C(a)?o+=" "+a:o+=" "+u(a);return o},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(T(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var s={},o;n.debuglog=function(e){T(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase();if(!s[e])if((new RegExp("\\b"+e+"\\b","i")).test(o)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow","boolean":"yellow","undefined":"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=g,n.isBoolean=y,n.isNull=b,n.isNullOrUndefined=w,n.isNumber=E,n.isString=S,n.isSymbol=x,n.isUndefined=T,n.isRegExp=N,n.isObject=C,n.isDate=k,n.isError=L,n.isFunction=A,n.isPrimitive=O,n.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!C(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":149,_process:125,inherits:123}],"oss-2013-10-15.json":[function(e,t,n){t.exports={format:"rest-xml",apiVersion:"2013-10-15",checksumFormat:"md5",endpointPrefix:"oss",serviceAbbreviation:"OSS",serviceFullName:"Aliyun Open Storage Service",signatureVersion:"oss",timestampFormat:"rfc822",xmlnamespace:"",operations:{abortMultipartUpload:{name:"AbortMultipartUpload",http:{method:"DELETE",uri:"/{Bucket}/{Key}?uploadId={UploadId}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},UploadId:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},completeMultipartUpload:{name:"CompleteMultipartUpload",http:{method:"POST",uri:"/{Bucket}/{Key}?uploadId={UploadId}"},input:{payload:"CompleteMultipartUpload",type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},Notification:{location:"header",name:"x-oss-notification"},CompleteMultipartUpload:{type:"structure",name:"CompleteMultipartUpload",members:{Parts:{type:"list",name:"Part",members:{type:"structure",members:{PartNumber:{type:"integer"},ETag:{}}},flattened:!0}}},UploadId:{required:!0,location:"uri"}}},output:{type:"structure",members:{Bucket:{},ETag:{},Expiration:{type:"timestamp",location:"header",name:"x-oss-expiration"},Key:{},Location:{},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},VersionId:{location:"header",name:"x-oss-version-id"}}}},copyObject:{name:"CopyObject",alias:"PutObjectCopy",http:{method:"PUT",uri:"/{Bucket}/{Key}"},input:{type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},Bucket:{required:!0,location:"uri"},CacheControl:{location:"header",name:"Cache-Control"},ContentDisposition:{location:"header",name:"Content-Disposition"},ContentEncoding:{location:"header",name:"Content-Encoding"},ContentLanguage:{location:"header",name:"Content-Language"},ContentType:{location:"header",name:"Content-Type"},CopySource:{required:!0,location:"header",name:"x-oss-copy-source"},CopySourceIfMatch:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-match"},CopySourceIfModifiedSince:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-modified-since"},CopySourceIfNoneMatch:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-unmodified-since"},Expires:{type:"timestamp",location:"header",name:"Expires"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"},Key:{required:!0,location:"uri"},Metadata:{type:"map",location:"header",name:"x-oss-meta-",members:{},keys:{}},MetadataDirective:{location:"header",name:"x-oss-metadata-directive"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},StorageClass:{location:"header",name:"x-oss-storage-class"},WebsiteRedirectLocation:{location:"header",name:"x-oss-website-redirect-location"}}},output:{type:"structure",members:{CopySourceVersionId:{location:"header",name:"x-oss-copy-source-version-id"},Expiration:{location:"header",name:"x-oss-expiration"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},ETag:{},LastModified:{}}}},createBucket:{name:"CreateBucket",alias:"PutBucket",http:{method:"PUT",uri:"/{Bucket}"},input:{payload:"CreateBucketConfiguration",type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},Bucket:{required:!0,location:"uri"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWrite:{location:"header",name:"x-oss-grant-write"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"}}},output:{type:"structure",members:{Location:{location:"header",name:"Location"}}}},createMultipartUpload:{name:"CreateMultipartUpload",alias:"InitiateMultipartUpload",http:{method:"POST",uri:"/{Bucket}/{Key}?uploads"},input:{type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},Bucket:{required:!0,location:"uri"},CacheControl:{location:"header",name:"Cache-Control"},ContentDisposition:{location:"header",name:"Content-Disposition"},ContentEncoding:{location:"header",name:"Content-Encoding"},ContentLanguage:{location:"header",name:"Content-Language"},ContentType:{location:"header",name:"Content-Type"},Expires:{type:"timestamp",location:"header",name:"Expires"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"},Key:{required:!0,location:"uri"},Metadata:{type:"map",location:"header",name:"x-oss-meta-",members:{},keys:{}},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},StorageClass:{location:"header",name:"x-oss-storage-class"},WebsiteRedirectLocation:{location:"header",name:"x-oss-website-redirect-location"}}},output:{type:"structure",members:{Bucket:{name:"Bucket"},Key:{},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},UploadId:{}}}},deleteBucket:{name:"DeleteBucket",http:{method:"DELETE",uri:"/{Bucket}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketLogging:{name:"DeleteBucketLogging",http:{method:"DELETE",uri:"/{Bucket}?logging"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketCors:{name:"DeleteBucketCors",http:{method:"DELETE",uri:"/{Bucket}?cors"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketLifecycle:{name:"DeleteBucketLifecycle",http:{method:"DELETE",uri:"/{Bucket}?lifecycle"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketPolicy:{name:"DeleteBucketPolicy",http:{method:"DELETE",uri:"/{Bucket}?policy"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketTagging:{name:"DeleteBucketTagging",http:{method:"DELETE",uri:"/{Bucket}?tagging"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteBucketWebsite:{name:"DeleteBucketWebsite",http:{method:"DELETE",uri:"/{Bucket}?website"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},deleteObject:{name:"DeleteObject",http:{method:"DELETE",uri:"/{Bucket}/{Key}?versionId={VersionId}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},MFA:{location:"header",name:"x-oss-mfa"},VersionId:{location:"uri"}}},output:{type:"structure",members:{DeleteMarker:{type:"boolean",location:"header",name:"x-oss-delete-marker"},VersionId:{location:"header",name:"x-oss-version-id"}}}},deleteObjects:{name:"DeleteObjects",alias:"DeleteMultipleObjects",http:{method:"POST",uri:"/{Bucket}?delete"},input:{payload:"Delete",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},Delete:{type:"structure",required:!0,members:{Objects:{type:"list",required:!0,name:"Object",members:{type:"structure",members:{Key:{required:!0},VersionId:{}}},flattened:!0},Quiet:{type:"boolean"}}},MFA:{location:"header",name:"x-oss-mfa"}}},output:{type:"structure",members:{Deleted:{type:"list",members:{type:"structure",members:{DeleteMarker:{type:"boolean"},DeleteMarkerVersionId:{},Key:{},VersionId:{}}},flattened:!0},Error:{type:"list",name:"Errors",members:{type:"structure",members:{Code:{},Key:{},Message:{},VersionId:{}}},flattened:!0}}}},getBucketAcl:{name:"GetBucketAcl",http:{method:"GET",uri:"/{Bucket}?acl"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{AccessControlList:{type:"list",name:"Grants",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},"xsi:type":{name:"Type",attribute:!0},URI:{}}},Permission:{}}}},Owner:{type:"structure",members:{DisplayName:{},ID:{}}}}}},getBucketCors:{name:"GetBucketCors",http:{method:"GET",uri:"/{Bucket}?cors"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{CORSRule:{type:"list",name:"CORSRules",members:{type:"structure",members:{AllowedHeader:{type:"list",name:"AllowedHeaders",members:{},flattened:!0},AllowedMethod:{type:"list",name:"AllowedMethods",members:{},flattened:!0},AllowedOrigin:{type:"list",name:"AllowedOrigins",members:{},flattened:!0},ExposeHeader:{type:"list",name:"ExposeHeaders",members:{},flattened:!0},MaxAgeSeconds:{type:"integer"}}},flattened:!0}}}},getBucketLifecycle:{name:"GetBucketLifecycle",http:{method:"GET",uri:"/{Bucket}?lifecycle"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{Rule:{type:"list",name:"Rules",members:{type:"structure",members:{Expiration:{type:"structure",members:{Date:{type:"timestamp",format:"iso8601"},Days:{type:"integer"}}},ID:{},Prefix:{},Status:{},Transition:{type:"structure",members:{Date:{type:"timestamp",format:"iso8601"},Days:{type:"integer"},StorageClass:{}}}}},flattened:!0}}}},getBucketLocation:{name:"GetBucketLocation",http:{method:"GET",uri:"/{Bucket}?location"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{LocationConstraint:{}}}},getBucketLogging:{name:"GetBucketLogging",http:{method:"GET",uri:"/{Bucket}?logging"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{LoggingEnabled:{type:"structure",members:{TargetBucket:{},TargetGrants:{type:"list",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},"xsi:type":{name:"Type",attribute:!0},URI:{}}},Permission:{}}}},TargetPrefix:{}}}}}},getBucketNotification:{name:"GetBucketNotification",http:{method:"GET",uri:"/{Bucket}?notification"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{TopicConfiguration:{type:"structure",members:{Event:{},Topic:{}}}}}},getBucketPolicy:{name:"GetBucketPolicy",http:{method:"GET",uri:"/{Bucket}?policy"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{Policy:{}},payload:"Policy"}},getBucketRequestPayment:{name:"GetBucketRequestPayment",http:{method:"GET",uri:"/{Bucket}?requestPayment"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{Payer:{}}}},getBucketTagging:{name:"GetBucketTagging",http:{method:"GET",uri:"/{Bucket}?tagging"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{TagSet:{type:"list",members:{type:"structure",name:"Tag",members:{Key:{},Value:{}}}}}}},getBucketVersioning:{name:"GetBucketVersioning",http:{method:"GET",uri:"/{Bucket}?versioning"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{MFADelete:{},Status:{}}}},getBucketWebsite:{name:"GetBucketWebsite",http:{method:"GET",uri:"/{Bucket}?website"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{ErrorDocument:{type:"structure",members:{Key:{}}},IndexDocument:{type:"structure",members:{Suffix:{}}},RedirectAllRequestsTo:{type:"structure",members:{HostName:{},Protocol:{}}},RoutingRules:{type:"list",members:{type:"structure",name:"RoutingRule",members:{Condition:{type:"structure",members:{HttpErrorCodeReturnedEquals:{},KeyPrefixEquals:{}}},Redirect:{type:"structure",members:{HostName:{},HttpRedirectCode:{},Protocol:{},ReplaceKeyPrefixWith:{},ReplaceKeyWith:{}}}}}}}}},getObject:{name:"GetObject",http:{method:"GET",uri:"/{Bucket}/{Key}?versionId={VersionId}&response-content-type={ResponseContentType}&response-content-language={ResponseContentLanguage}&response-expires={ResponseExpires}&response-cache-control={ResponseCacheControl}&response-content-disposition={ResponseContentDisposition}&response-content-encoding={ResponseContentEncoding}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},IfMatch:{location:"header",name:"If-Match"},IfModifiedSince:{type:"timestamp",location:"header",name:"If-Modified-Since"},IfNoneMatch:{location:"header",name:"If-None-Match"},IfUnmodifiedSince:{type:"timestamp",location:"header",name:"If-Unmodified-Since"},Key:{required:!0,location:"uri"},Range:{location:"header",name:"Range"},ResponseCacheControl:{location:"uri"},ResponseContentDisposition:{location:"uri"},ResponseContentEncoding:{location:"uri"},ResponseContentLanguage:{location:"uri"},ResponseContentType:{location:"uri"},ResponseExpires:{type:"timestamp",location:"uri"},VersionId:{location:"uri"}}},output:{type:"structure",members:{AcceptRanges:{location:"header",name:"accept-ranges"},Body:{type:"binary",streaming:!0},CacheControl:{location:"header",name:"Cache-Control"},ContentDisposition:{location:"header",name:"Content-Disposition"},ContentEncoding:{location:"header",name:"Content-Encoding"},ContentLanguage:{location:"header",name:"Content-Language"},ContentLength:{type:"integer",location:"header",name:"Content-Length"},ContentType:{location:"header",name:"Content-Type"},DeleteMarker:{type:"boolean",location:"header",name:"x-oss-delete-marker"},ETag:{location:"header",name:"ETag"},Expiration:{location:"header",name:"x-oss-expiration"},Expires:{type:"timestamp",location:"header",name:"Expires"},LastModified:{type:"timestamp",location:"header",name:"Last-Modified"},Metadata:{type:"map",location:"header",name:"x-oss-meta-",members:{},keys:{}},MissingMeta:{type:"integer",location:"header",name:"x-oss-missing-meta"},Restore:{location:"header",name:"x-oss-restore"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},VersionId:{location:"header",name:"x-oss-version-id"},WebsiteRedirectLocation:{location:"header",name:"x-oss-website-redirect-location"}},payload:"Body"}},getObjectAcl:{name:"GetObjectAcl",http:{method:"GET",uri:"/{Bucket}/{Key}?acl&versionId={VersionId}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},VersionId:{location:"uri"}}},output:{type:"structure",members:{AccessControlList:{type:"list",name:"Grants",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},"xsi:type":{name:"Type",attribute:!0},URI:{}}},Permission:{}}}},Owner:{type:"structure",members:{DisplayName:{},ID:{}}}}}},getObjectTorrent:{name:"GetObjectTorrent",http:{method:"GET",uri:"/{Bucket}/{Key}?torrent"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"}}},output:{type:"structure",members:{Body:{type:"binary",streaming:!0}},payload:"Body"}},headBucket:{name:"HeadBucket",http:{method:"HEAD",uri:"/{Bucket}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},headObject:{name:"HeadObject",http:{method:"HEAD",uri:"/{Bucket}/{Key}?versionId={VersionId}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},IfMatch:{location:"header",name:"If-Match"},IfModifiedSince:{type:"timestamp",location:"header",name:"If-Modified-Since"},IfNoneMatch:{location:"header",name:"If-None-Match"},IfUnmodifiedSince:{type:"timestamp",location:"header",name:"If-Unmodified-Since"},Key:{required:!0,location:"uri"},Range:{location:"header",name:"Range"},VersionId:{location:"uri"}}},output:{type:"structure",members:{AcceptRanges:{location:"header",name:"accept-ranges"},CacheControl:{location:"header",name:"Cache-Control"},ContentDisposition:{location:"header",name:"Content-Disposition"},ContentEncoding:{location:"header",name:"Content-Encoding"},ContentLanguage:{location:"header",name:"Content-Language"},ContentLength:{type:"integer",location:"header",name:"Content-Length"},ContentType:{location:"header",name:"Content-Type"},DeleteMarker:{type:"boolean",location:"header",name:"x-oss-delete-marker"},ETag:{location:"header",name:"ETag"},Expiration:{location:"header",name:"x-oss-expiration"},Expires:{type:"timestamp",location:"header",name:"Expires"},LastModified:{type:"timestamp",location:"header",name:"Last-Modified"},Metadata:{type:"map",location:"header",name:"x-oss-meta-",members:{},keys:{}},MissingMeta:{type:"integer",location:"header",name:"x-oss-missing-meta"},Restore:{location:"header",name:"x-oss-restore"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},VersionId:{location:"header",name:"x-oss-version-id"},WebsiteRedirectLocation:{location:"header",name:"x-oss-website-redirect-location"}}}},listBuckets:{name:"ListBuckets",alias:"GetService",http:{method:"GET",uri:"/"},input:{type:"structure",members:{}},output:{type:"structure",members:{Buckets:{type:"list",members:{type:"structure",name:"Bucket",members:{CreationDate:{type:"timestamp"},Name:{}}}},Owner:{type:"structure",members:{DisplayName:{},ID:{}}}}}},listMultipartUploads:{name:"ListMultipartUploads",http:{method:"GET",uri:"/{Bucket}?uploads&prefix={Prefix}&delimiter={Delimiter}&max-uploads={MaxUploads}&key-marker={KeyMarker}&upload-id-marker={UploadIdMarker}&encoding-type={EncodingType}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Delimiter:{location:"uri"},EncodingType:{location:"uri"},KeyMarker:{location:"uri"},MaxUploads:{type:"integer",location:"uri"},Prefix:{location:"uri"},UploadIdMarker:{location:"uri"}}},output:{type:"structure",members:{Bucket:{},CommonPrefixes:{type:"list",members:{type:"structure",members:{Prefix:{}}},flattened:!0},EncodingType:{location:"header",name:"Encoding-Type"},IsTruncated:{type:"boolean"},KeyMarker:{},MaxUploads:{type:"integer"},NextKeyMarker:{},NextUploadIdMarker:{},Prefix:{},UploadIdMarker:{},Upload:{type:"list",name:"Uploads",members:{type:"structure",members:{Initiated:{type:"timestamp"},Initiator:{type:"structure",members:{DisplayName:{},ID:{}}},Key:{},Owner:{type:"structure",members:{DisplayName:{},ID:{}}},StorageClass:{},UploadId:{}}},flattened:!0}}}},listObjectVersions:{name:"ListObjectVersions",alias:"GetBucketObjectVersions",http:{method:"GET",uri:"/{Bucket}?versions&delimiter={Delimiter}&key-marker={KeyMarker}&max-keys={MaxKeys}&prefix={Prefix}&version-id-marker={VersionIdMarker}&encoding-type={EncodingType}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Delimiter:{location:"uri"},EncodingType:{location:"uri"},KeyMarker:{location:"uri"},MaxKeys:{type:"integer",location:"uri"},Prefix:{location:"uri"},VersionIdMarker:{location:"uri"}}},output:{type:"structure",members:{CommonPrefixes:{type:"list",members:{type:"structure",members:{Prefix:{}}},flattened:!0},DeleteMarker:{type:"list",name:"DeleteMarkers",members:{type:"structure",members:{IsLatest:{type:"boolean"},Key:{},LastModified:{type:"timestamp"},Owner:{type:"structure",members:{DisplayName:{},ID:{}}},VersionId:{}}},flattened:!0},EncodingType:{location:"header",name:"Encoding-Type"},IsTruncated:{type:"boolean"},KeyMarker:{},MaxKeys:{type:"integer"},Name:{},NextKeyMarker:{},NextVersionIdMarker:{},Prefix:{},VersionIdMarker:{},Version:{type:"list",name:"Versions",members:{type:"structure",members:{ETag:{},IsLatest:{type:"boolean"},Key:{},LastModified:{type:"timestamp"},Owner:{type:"structure",members:{DisplayName:{},ID:{}}},Size:{},StorageClass:{},VersionId:{}}},flattened:!0}}}},listObjects:{name:"ListObjects",alias:"GetBucket",http:{method:"GET",uri:"/{Bucket}?delimiter={Delimiter}&marker={Marker}&max-keys={MaxKeys}&prefix={Prefix}&encoding-type={EncodingType}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Delimiter:{location:"uri"},EncodingType:{location:"uri"},Marker:{location:"uri"},MaxKeys:{type:"integer",location:"uri"},Prefix:{location:"uri"}}},output:{type:"structure",members:{CommonPrefixes:{type:"list",members:{type:"structure",members:{Prefix:{}}},flattened:!0},Contents:{type:"list",members:{type:"structure",members:{ETag:{},Key:{},LastModified:{type:"timestamp"},Owner:{type:"structure",members:{DisplayName:{},ID:{}}},Size:{type:"integer"},StorageClass:{}}},flattened:!0},EncodingType:{location:"header",name:"Encoding-Type"},IsTruncated:{type:"boolean"},Marker:{},MaxKeys:{type:"integer"},Name:{},NextMarker:{},Prefix:{}}}},listParts:{name:"ListParts",http:{method:"GET",uri:"/{Bucket}/{Key}?uploadId={UploadId}&max-parts={MaxParts}&part-number-marker={PartNumberMarker}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},MaxParts:{type:"integer",location:"uri"},PartNumberMarker:{type:"integer",location:"uri"},UploadId:{required:!0,location:"uri"}}},output:{type:"structure",members:{Bucket:{},Initiator:{type:"structure",members:{DisplayName:{},ID:{}}},IsTruncated:{type:"boolean"},Key:{},MaxParts:{type:"integer"},NextPartNumberMarker:{type:"integer"},Owner:{type:"structure",members:{DisplayName:{},ID:{}}},PartNumberMarker:{type:"integer"
},Part:{type:"list",name:"Parts",members:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"},PartNumber:{type:"integer"},Size:{type:"integer"}}},flattened:!0},StorageClass:{},UploadId:{}}}},putBucketAcl:{name:"PutBucketAcl",http:{method:"PUT",uri:"/{Bucket}?acl"},input:{payload:"AccessControlPolicy",type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},AccessControlPolicy:{type:"structure",members:{Grants:{type:"list",name:"AccessControlList",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},Type:{required:!0,name:"xsi:type",attribute:!0},URI:{}}},Permission:{}}}},Owner:{type:"structure",members:{DisplayName:{},ID:{}}}}},Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWrite:{location:"header",name:"x-oss-grant-write"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"}}},output:{type:"structure",members:{}}},putBucketCors:{name:"PutBucketCors",http:{method:"PUT",uri:"/{Bucket}?cors"},input:{payload:"CORSConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},CORSConfiguration:{type:"structure",members:{CORSRules:{type:"list",name:"CORSRule",members:{type:"structure",members:{AllowedHeaders:{type:"list",name:"AllowedHeader",members:{},flattened:!0},AllowedMethods:{type:"list",name:"AllowedMethod",members:{},flattened:!0},AllowedOrigins:{type:"list",name:"AllowedOrigin",members:{},flattened:!0},ExposeHeaders:{type:"list",name:"ExposeHeader",members:{},flattened:!0},MaxAgeSeconds:{type:"integer"}}},flattened:!0}}},ContentMD5:{location:"header",name:"Content-MD5"}}},output:{type:"structure",members:{}}},putBucketLifecycle:{name:"PutBucketLifecycle",http:{method:"PUT",uri:"/{Bucket}?lifecycle"},input:{payload:"LifecycleConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},LifecycleConfiguration:{type:"structure",members:{Rules:{type:"list",required:!0,name:"Rule",members:{type:"structure",members:{Expiration:{type:"structure",members:{Date:{type:"timestamp",format:"iso8601"},Days:{type:"integer"}}},ID:{},Prefix:{required:!0},Status:{required:!0},Transition:{type:"structure",members:{Date:{type:"timestamp",format:"iso8601"},Days:{type:"integer"},StorageClass:{}}}}},flattened:!0}}}}},output:{type:"structure",members:{}}},putBucketLogging:{name:"PutBucketLogging",http:{method:"PUT",uri:"/{Bucket}?logging"},input:{payload:"BucketLoggingStatus",type:"structure",members:{Bucket:{required:!0,location:"uri"},BucketLoggingStatus:{type:"structure",required:!0,members:{LoggingEnabled:{type:"structure",members:{TargetBucket:{},TargetGrants:{type:"list",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},Type:{required:!0,name:"xsi:type",attribute:!0},URI:{}}},Permission:{}}}},TargetPrefix:{}}}}},ContentMD5:{location:"header",name:"Content-MD5"}}},output:{type:"structure",members:{}}},putBucketNotification:{name:"PutBucketNotification",http:{method:"PUT",uri:"/{Bucket}?notification"},input:{payload:"NotificationConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},NotificationConfiguration:{type:"structure",required:!0,members:{TopicConfiguration:{type:"structure",required:!0,members:{Event:{},Topic:{}}}}}}},output:{type:"structure",members:{}}},putBucketPolicy:{name:"PutBucketPolicy",http:{method:"PUT",uri:"/{Bucket}?policy"},input:{payload:"Policy",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},Policy:{required:!0}}},output:{type:"structure",members:{}}},putBucketRequestPayment:{name:"PutBucketRequestPayment",http:{method:"PUT",uri:"/{Bucket}?requestPayment"},input:{payload:"RequestPaymentConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},RequestPaymentConfiguration:{type:"structure",required:!0,members:{Payer:{required:!0}}}}},output:{type:"structure",members:{}}},putBucketTagging:{name:"PutBucketTagging",http:{method:"PUT",uri:"/{Bucket}?tagging"},input:{payload:"Tagging",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},Tagging:{type:"structure",required:!0,members:{TagSet:{type:"list",required:!0,members:{type:"structure",required:!0,name:"Tag",members:{Key:{required:!0},Value:{required:!0}}}}}}}},output:{type:"structure",members:{}}},putBucketVersioning:{name:"PutBucketVersioning",http:{method:"PUT",uri:"/{Bucket}?versioning"},input:{payload:"VersioningConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},MFA:{location:"header",name:"x-oss-mfa"},VersioningConfiguration:{type:"structure",required:!0,members:{MFADelete:{},Status:{}}}}},output:{type:"structure",members:{}}},putBucketWebsite:{name:"PutBucketWebsite",http:{method:"PUT",uri:"/{Bucket}?website"},input:{payload:"WebsiteConfiguration",type:"structure",members:{Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},WebsiteConfiguration:{type:"structure",required:!0,members:{ErrorDocument:{type:"structure",members:{Key:{required:!0}}},IndexDocument:{type:"structure",members:{Suffix:{required:!0}}},RedirectAllRequestsTo:{type:"structure",members:{HostName:{required:!0},Protocol:{}}},RoutingRules:{type:"list",members:{type:"structure",name:"RoutingRule",members:{Condition:{type:"structure",members:{HttpErrorCodeReturnedEquals:{},KeyPrefixEquals:{}}},Redirect:{type:"structure",required:!0,members:{HostName:{},HttpRedirectCode:{},Protocol:{},ReplaceKeyPrefixWith:{},ReplaceKeyWith:{}}}}}}}}}},output:{type:"structure",members:{}}},putObject:{name:"PutObject",http:{method:"PUT",uri:"/{Bucket}/{Key}"},input:{payload:"Body",type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},AccessControlAllowOrigin:{location:"header",name:"Access-Control-Allow-Origin"},Body:{type:"binary",streaming:!0},Bucket:{required:!0,location:"uri"},CacheControl:{location:"header",name:"Cache-Control"},Notification:{location:"header",name:"x-oss-notification"},ContentDisposition:{location:"header",name:"Content-Disposition"},ContentEncoding:{location:"header",name:"Content-Encoding"},ContentLanguage:{location:"header",name:"Content-Language"},ContentLength:{type:"integer",location:"header",name:"Content-Length"},ContentMD5:{location:"header",name:"Content-MD5"},ContentType:{location:"header",name:"Content-Type"},Expires:{type:"timestamp",location:"header",name:"Expires"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"},Key:{required:!0,location:"uri"},Metadata:{type:"map",location:"header",name:"x-oss-meta-",members:{},keys:{}},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},StorageClass:{location:"header",name:"x-oss-storage-class"},WebsiteRedirectLocation:{location:"header",name:"x-oss-website-redirect-location"}}},output:{type:"structure",members:{ETag:{location:"header",name:"ETag"},Expiration:{type:"timestamp",location:"header",name:"x-oss-expiration"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},VersionId:{location:"header",name:"x-oss-version-id"}}}},putObjectAcl:{name:"PutObjectAcl",http:{method:"PUT",uri:"/{Bucket}/{Key}?acl"},input:{payload:"AccessControlPolicy",type:"structure",members:{ACL:{location:"header",name:"x-oss-acl"},AccessControlPolicy:{type:"structure",members:{Grants:{type:"list",name:"AccessControlList",members:{type:"structure",name:"Grant",members:{Grantee:{type:"structure",xmlns:{uri:"http://www.w3.org/2001/XMLSchema-instance",prefix:"xsi"},members:{DisplayName:{},EmailAddress:{},ID:{},Type:{required:!0,name:"xsi:type",attribute:!0},URI:{}}},Permission:{}}}},Owner:{type:"structure",members:{DisplayName:{},ID:{}}}}},Bucket:{required:!0,location:"uri"},ContentMD5:{location:"header",name:"Content-MD5"},GrantFullControl:{location:"header",name:"x-oss-grant-full-control"},GrantRead:{location:"header",name:"x-oss-grant-read"},GrantReadACP:{location:"header",name:"x-oss-grant-read-acp"},GrantWrite:{location:"header",name:"x-oss-grant-write"},GrantWriteACP:{location:"header",name:"x-oss-grant-write-acp"},Key:{required:!0,location:"uri"}}},output:{type:"structure",members:{}}},restoreObject:{name:"RestoreObject",alias:"PostObjectRestore",http:{method:"POST",uri:"/{Bucket}/{Key}?restore"},input:{payload:"RestoreRequest",type:"structure",members:{Bucket:{required:!0,location:"uri"},Key:{required:!0,location:"uri"},RestoreRequest:{type:"structure",members:{Days:{type:"integer",required:!0}}}}},output:{type:"structure",members:{}}},uploadPart:{name:"UploadPart",http:{method:"PUT",uri:"/{Bucket}/{Key}?partNumber={PartNumber}&uploadId={UploadId}"},input:{payload:"Body",type:"structure",members:{Body:{type:"binary",streaming:!0},Bucket:{required:!0,location:"uri"},ContentLength:{type:"integer",location:"header",name:"Content-Length"},ContentMD5:{location:"header",name:"Content-MD5"},Key:{required:!0,location:"uri"},PartNumber:{type:"integer",required:!0,location:"uri"},UploadId:{required:!0,location:"uri"}}},output:{type:"structure",members:{ETag:{location:"header",name:"ETag"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"}}}},uploadPartCopy:{name:"UploadPartCopy",http:{method:"PUT",uri:"/{Bucket}/{Key}?partNumber={PartNumber}&uploadId={UploadId}"},input:{type:"structure",members:{Bucket:{required:!0,location:"uri"},CopySource:{required:!0,location:"header",name:"x-oss-copy-source"},CopySourceIfMatch:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-match"},CopySourceIfModifiedSince:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-modified-since"},CopySourceIfNoneMatch:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{type:"timestamp",location:"header",name:"x-oss-copy-source-if-unmodified-since"},CopySourceRange:{location:"header",name:"x-oss-copy-source-range"},Key:{required:!0,location:"uri"},PartNumber:{type:"integer",required:!0,location:"uri"},UploadId:{required:!0,location:"uri"}}},output:{type:"structure",members:{CopySourceVersionId:{location:"header",name:"x-oss-copy-source-version-id"},ServerSideEncryption:{location:"header",name:"x-oss-server-side-encryption"},ETag:{},LastModified:{type:"timestamp"}}}}},pagination:{listMultipartUploads:{limitKey:"MaxUploads",moreResults:"IsTruncated",outputToken:["NextKeyMarker","NextUploadIdMarker"],inputToken:["KeyMarker","UploadIdMarker"],resultKey:"Uploads"},listObjectVersions:{moreResults:"IsTruncated",limitKey:"MaxKeys",outputToken:["NextKeyMarker","NextVersionIdMarker"],inputToken:["KeyMarker","VersionIdMarker"],resultKey:"Versions"},listObjects:{moreResults:"IsTruncated",limitKey:"MaxKeys",outputToken:"NextMarker or Contents[-1].Key",inputToken:"Marker",resultKey:["Contents","CommonPrefixes"]},listParts:{limitKey:"IsTruncated",outputToken:"NextPartNumberMarker",inputToken:"PartNumberMarker",resultKey:"Parts"}}}},{}]},{},[3]);