UNPKG

@smoothnlp/smoothnlp-api

Version:
8 lines 68 kB
!function(r){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=r,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=8)}([function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,q,M){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var n=M(13),i=M(14),s=M(15);function r(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=p.prototype:(null===t&&(t=new p(e)),t.length=e),t}function p(t,e,r){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(t,e,r);if("number"!=typeof t)return o(this,t,e,r);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}function o(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);p.TYPED_ARRAY_SUPPORT?(t=e).__proto__=p.prototype:t=c(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!p.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|l(e,r),o=(t=a(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(p.isBuffer(e)){var r=0|h(e.length);return 0===(t=a(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):c(t,e);if("Buffer"===e.type&&s(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(u(e),t=a(t,e<0?0:0|h(e)),!p.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e){var r=e.length<0?0:0|h(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function l(t,e){if(p.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(n)return I(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=p.from(e,n)),p.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a/=s=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var c=-1;for(i=r;i<a;i++)if(f(t,i)===f(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(a<r+u&&(r=a-u),i=r;0<=i;i--){for(var p=!0,h=0;h<u;h++)if(f(t,i+h)!==f(e,h)){p=!1;break}if(p)return i}return-1}function g(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?o<(n=Number(n))&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");i/2<n&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function b(t,e,r,n){return D(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function v(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function w(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,f=t[o],c=null,p=239<f?4:223<f?3:191<f?2:1;if(o+p<=r)switch(p){case 1:f<128&&(c=f);break;case 2:128==(192&(i=t[o+1]))&&127<(u=(31&f)<<6|63&i)&&(c=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&2047<(u=(15&f)<<12|(63&i)<<6|63&s)&&(u<55296||57343<u)&&(c=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&65535<(u=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&a)&&u<1114112&&(c=u)}null===c?(c=65533,p=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=p}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=T));return r}(n)}q.Buffer=p,q.SlowBuffer=function(t){+t!=t&&(t=0);return p.alloc(+t)},q.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),q.kMaxLength=r(),p.poolSize=8192,p._augment=function(t){return t.__proto__=p.prototype,t},p.from=function(t,e,r){return o(null,t,e,r)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(t,e,r){return function(t,e,r,n){return u(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},p.allocUnsafe=function(t){return f(null,t)},p.allocUnsafeSlow=function(t){return f(null,t)},p.isBuffer=function(t){return!(null==t||!t._isBuffer)},p.compare=function(t,e){if(!p.isBuffer(t)||!p.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=p.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},p.byteLength=l,p.prototype._isBuffer=!0,p.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 e=0;e<t;e+=2)y(this,e,e+1);return this},p.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 e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},p.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?w(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return w(this,e,r);case"ascii":return _(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return v(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t="",e=q.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},p.prototype.compare=function(t,e,r,n,o){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=e)return 0;if(o<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),u=this.slice(n,o),f=t.slice(e,r),c=0;c<a;++c)if(u[c]!==f[c]){i=u[c],s=f[c];break}return i<s?-1:s<i?1:0},p.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},p.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},p.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},p.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||o<r)&&(r=o),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,s,a,u,f,c,p,h,l,y=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return h=e,l=r,D(I(t,(p=this).length-h),p,h,l);case"ascii":return b(this,t,e,r);case"latin1":case"binary":return b(this,t,e,r);case"base64":return u=this,f=e,c=r,D(B(t),u,f,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=r,D(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,(i=this).length-s),i,s,a);default:if(y)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function A(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=e;i<r;++i)o+=U(t[i]);return o}function E(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function P(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,o,i){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function O(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function R(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function x(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(t,e,r,n,o){return o||x(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,o){return o||x(t,0,r,8),i.write(t,e,r,n,52,8),r+8}p.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),e<t&&(e=t),p.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=p.prototype;else{var o=e-t;r=new p(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},p.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},p.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t+--e],o=1;0<e&&(o*=256);)n+=this[t+--e]*o;return n},p.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},p.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},p.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*e)),n},p.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=e,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},p.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},p.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+r},p.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,255,0),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},p.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;0<=--i&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},p.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},p.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},p.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},p.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},p.prototype.copy=function(t,e,r,n){if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),e=e||0,0<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;0<=o;--o)t[o+e]=this[o+r];else if(i<1e3||!p.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},p.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(i=e;i<r;++i)this[i]=t;else{var s=p.isBuffer(t)?t:I(new p(t,n).toString()),a=s.length;for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var e=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function I(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(e-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(e-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function B(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,M(12))},function(t,r,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o;o="undefined"!=typeof window?window:"undefined"==typeof self?void console.warn("Using browser-only version of superagent in non-browser environment"):self;var i=e(16),s=e(17),a=e(18),u=e(5),f=e(19),c=e(21);function p(){}t.exports=function(t,e){return"function"==typeof e?new r.Request("GET",t).end(e):1===arguments.length?new r.Request("GET",t):new r.Request(t,e)};var h=r=t.exports;r.Request=v,h.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var l="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function y(t){if(!u(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&d(e,r,t[r]);return e.join("&")}function d(e,r,t){if(void 0!==t)if(null!==t)if(Array.isArray(t))t.forEach(function(t){d(e,r,t)});else if(u(t))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&d(e,"".concat(r,"[").concat(n,"]"),t[n]);else e.push(encodeURIComponent(r)+"="+encodeURIComponent(t));else e.push(encodeURIComponent(r))}function m(t){for(var e,r,n={},o=t.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function g(t){return/[/+]json($|[^-\w])/.test(t)}function b(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(e=(r=i[a]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=l(r.slice(e+1)),s[n]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function v(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var e,r=null,t=null;try{t=new b(n)}catch(t){return(r=new Error("Parser is unable to parse the response")).parse=!0,r.original=t,n.xhr?(r.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,r.status=n.xhr.status?n.xhr.status:null,r.statusCode=r.status):(r.rawResponse=null,r.status=null),n.callback(r)}n.emit("response",t);try{n._isResponseOK(t)||(e=new Error(t.statusText||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=r,e.response=t,e.status=t.status,n.callback(e,t)):n.callback(null,t)})}function w(t,e,r){var n=h("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}h.serializeObject=y,h.parseString=m,h.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},h.serialize={"application/x-www-form-urlencoded":y,"application/json":s},h.parse={"application/x-www-form-urlencoded":m,"application/json":JSON.parse},f(b.prototype),b.prototype._parseBody=function(t){var e=h.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&g(this.type)&&(e=h.parse["application/json"]),e&&t&&(0<t.length||t instanceof Object)?e(t):null)},b.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},h.Response=b,i(v.prototype),a(v.prototype),v.prototype.type=function(t){return this.set("Content-Type",h.types[t]||t),this},v.prototype.accept=function(t){return this.set("Accept",h.types[t]||t),this},v.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===n(e)&&null!==e&&(r=e,e=""),r=r||{type:"function"==typeof btoa?"basic":"auto"};return this._auth(t,e,r,function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")})},v.prototype.query=function(t){return"string"!=typeof t&&(t=y(t)),t&&this._query.push(t),this},v.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},v.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},v.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},v.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},v.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},v.prototype.buffer=v.prototype.ca,v.prototype.ca=v.prototype.agent,v.prototype.pipe=v.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},v.prototype._isHost=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},v.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||p,this._finalizeQueryString(),this._end()},v.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},v.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var r=this;this.xhr=h.getXHR();var n=this.xhr,t=this._formData||this._data;this._setTimeouts(),n.onreadystatechange=function(){var t=n.readyState;if(2<=t&&r._responseTimeoutTimer&&clearTimeout(r._responseTimeoutTimer),4===t){var e;try{e=n.status}catch(t){e=0}if(!e){if(r.timedout||r._aborted)return;return r.crossDomainError()}r.emit("end")}};function e(t,e){0<e.total&&(e.percent=e.loaded/e.total*100,100===e.percent&&clearTimeout(r._uploadTimeoutTimer)),e.direction=t,r.emit("progress",e)}if(this.hasListeners("progress"))try{n.addEventListener("progress",e.bind(null,"download")),n.upload&&n.upload.addEventListener("progress",e.bind(null,"upload"))}catch(t){}n.upload&&this._setUploadTimeout();try{this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(n.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof t&&!this._isHost(t)){var o=this._header["content-type"],i=this._serializer||h.serialize[o?o.split(";")[0]:""];!i&&g(o)&&(i=h.serialize["application/json"]),i&&(t=i(t))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&n.setRequestHeader(s,this.header[s]);this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send(void 0===t?null:t)},h.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(n){c.prototype[n.toLowerCase()]=function(t,e){var r=new h.Request(n,t);return this._setDefaults(r),e&&r.end(e),r}}),c.prototype.del=c.prototype.delete,h.get=function(t,e,r){var n=h("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},h.head=function(t,e,r){var n=h("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},h.options=function(t,e,r){var n=h("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},h.del=w,h.delete=w,h.patch=function(t,e,r){var n=h("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},h.post=function(t,e,r){var n=h("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},h.put=function(t,e,r){var n=h("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){"use strict";e.decode=e.parse=r(22),e.encode=e.stringify=r(23)},function(t,e,o){(function(r,t){function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var e,n;e=this,n=function(_,A){"use strict";function f(){this.basePath="http://service-1ffy5rfz-1259459016.ap-shanghai.apigateway.myqcloud.com/release".replace(/\/+$/,""),this.authentications={},this.defaultHeaders={},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,"undefined"==typeof window&&(this.agent=new _.agent),this.requestAgent=null}return f.prototype.paramToString=function(t){return null==t||null==t?"":t instanceof Date?t.toJSON():t.toString()},f.prototype.buildUrl=function(t,n){t.match(/^\//)||(t="/"+t);var e=this.basePath+t,o=this;return e=e.replace(/\{([\w-]+)\}/g,function(t,e){var r;return r=n.hasOwnProperty(e)?o.paramToString(n[e]):t,encodeURIComponent(r)})},f.prototype.isJsonMime=function(t){return Boolean(null!=t&&t.match(/^application\/json(;.*)?$/i))},f.prototype.jsonPreferredMime=function(t){for(var e=0;e<t.length;e++)if(this.isJsonMime(t[e]))return t[e];return t[0]},f.prototype.isFileParam=function(t){var e;try{e=o(24)}catch(t){}return!!(e&&e.ReadStream&&t instanceof e.ReadStream)||("function"==typeof r&&t instanceof r||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))},f.prototype.normalizeParams=function(t){var e={};for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r]&&null!=t[r]){var n=t[r];this.isFileParam(n)||Array.isArray(n)?e[r]=n:e[r]=this.paramToString(n)}return e},f.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"},f.prototype.buildCollectionParam=function(t,e){if(null==t)return null;switch(e){case"csv":return t.map(this.paramToString).join(",");case"ssv":return t.map(this.paramToString).join(" ");case"tsv":return t.map(this.paramToString).join("\t");case"pipes":return t.map(this.paramToString).join("|");case"multi":return t.map(this.paramToString);default:throw new Error("Unknown collection format: "+e)}},f.prototype.applyAuthToRequest=function(n,t){var o=this;t.forEach(function(t){var e=o.authentications[t];switch(e.type){case"basic":(e.username||e.password)&&n.auth(e.username||"",e.password||"");break;case"apiKey":if(e.apiKey){var r={};e.apiKeyPrefix?r[e.name]=e.apiKeyPrefix+" "+e.apiKey:r[e.name]=e.apiKey,"header"===e.in?n.set(r):n.query(r)}break;case"oauth2":e.accessToken&&n.set({Authorization:"Bearer "+e.accessToken});break;default:throw new Error("Unknown authentication type: "+e.type)}})},f.prototype.deserialize=function(t,e){if(null==t||null==e||204==t.status)return null;var r=t.body;return null!=r&&("object"!==c(r)||void 0!==r.length||Object.keys(r).length)||(r=t.text),f.convertToType(r,e)},f.prototype.callApi=function(t,e,r,n,o,i,s,a,u,f,c,p,h){var l=this,y=this.buildUrl(t,r),d=_(e,y);for(var m in this.applyAuthToRequest(d,u),o)if(o.hasOwnProperty(m)){var g=o[m];if("csv"===g.collectionFormat){if(null!=g.value){var b=g.value.map(this.paramToString).map(encodeURIComponent).join(",");d.query(encodeURIComponent(m)+"="+b)}}else n[m]=this.buildCollectionParam(g.value,g.collectionFormat)}"GET"===e.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),d.query(this.normalizeParams(n)),d.set(this.defaultHeaders).set(this.normalizeParams(i)),this.requestAgent&&d.agent(this.requestAgent),d.timeout(this.timeout);var v=this.jsonPreferredMime(f);if(v?"multipart/form-data"!=v&&d.type(v):d.header["Content-Type"]||d.type("application/json"),"application/x-www-form-urlencoded"===v)d.send(A.stringify(this.normalizeParams(s)));else if("multipart/form-data"==v){var w=this.normalizeParams(s);for(var m in w)w.hasOwnProperty(m)&&(this.isFileParam(w[m])?d.attach(m,w[m]):d.field(m,w[m]))}else a&&d.send(a);var T=this.jsonPreferredMime(c);return T&&d.accept(T),"Blob"===p?d.responseType("blob"):"String"===p&&d.responseType("string"),this.enableCookies&&("undefined"==typeof window?this.agent.attachCookies(d):d.withCredentials()),d.end(function(e,t){if(h){var r=null;if(!e)try{r=l.deserialize(t,p),l.enableCookies&&"undefined"==typeof window&&l.agent.saveCookies(t)}catch(t){e=t}h(e,r,t)}}),d},f.parseDate=function(t){return new Date(t.replace(/T/i," "))},f.convertToType=function(t,e){if(null==t)return t;switch(e){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return this.parseDate(String(t));case"Blob":return t;default:if(e===Object)return t;if("function"==typeof e)return e.constructFromObject(t);if(Array.isArray(e)){var r=e[0];return t.map(function(t){return f.convertToType(t,r)})}if("object"!==c(e))return t;var n,o;for(var i in e)if(e.hasOwnProperty(i)){o=e[n=i];break}var s={};for(var i in t)if(t.hasOwnProperty(i)){var a=f.convertToType(i,n),u=f.convertToType(t[i],o);s[a]=u}return s}},f.constructFromObject=function(t,e,r){if(Array.isArray(t))for(var n=0;n<t.length;n++)t.hasOwnProperty(n)&&(e[n]=f.convertToType(t[n],r));else for(var o in t)t.hasOwnProperty(o)&&(e[o]=f.convertToType(t[o],r))},f.instance=new f,f},"function"==typeof define&&define.amd?define(["superagent","querystring"],n):"object"===c(t)&&t.exports?t.exports=n(o(2),o(3)):(e.Company||(e.Company={}),e.Company.ApiClient=n(e.superagent,e.querystring))}).call(this,o(1).Buffer,o(0)(t))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===n(t)}},function(t,e,o){(function(r,t){function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var e,n;e=this,n=function(_,A){"use strict";function f(){this.basePath="http://service-m5j3awiv-1259459016.ap-shanghai.apigateway.myqcloud.com/release".replace(/\/+$/,""),this.authentications={},this.defaultHeaders={},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,"undefined"==typeof window&&(this.agent=new _.agent),this.requestAgent=null}return f.prototype.paramToString=function(t){return null==t||null==t?"":t instanceof Date?t.toJSON():t.toString()},f.prototype.buildUrl=function(t,n){t.match(/^\//)||(t="/"+t);var e=this.basePath+t,o=this;return e=e.replace(/\{([\w-]+)\}/g,function(t,e){var r;return r=n.hasOwnProperty(e)?o.paramToString(n[e]):t,encodeURIComponent(r)})},f.prototype.isJsonMime=function(t){return Boolean(null!=t&&t.match(/^application\/json(;.*)?$/i))},f.prototype.jsonPreferredMime=function(t){for(var e=0;e<t.length;e++)if(this.isJsonMime(t[e]))return t[e];return t[0]},f.prototype.isFileParam=function(t){var e;try{e=o(27)}catch(t){}return!!(e&&e.ReadStream&&t instanceof e.ReadStream)||("function"==typeof r&&t instanceof r||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))},f.prototype.normalizeParams=function(t){var e={};for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r]&&null!=t[r]){var n=t[r];this.isFileParam(n)||Array.isArray(n)?e[r]=n:e[r]=this.paramToString(n)}return e},f.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"},f.prototype.buildCollectionParam=function(t,e){if(null==t)return null;switch(e){case"csv":return t.map(this.paramToString).join(",");case"ssv":return t.map(this.paramToString).join(" ");case"tsv":return t.map(this.paramToString).join("\t");case"pipes":return t.map(this.paramToString).join("|");case"multi":return t.map(this.paramToString);default:throw new Error("Unknown collection format: "+e)}},f.prototype.applyAuthToRequest=function(n,t){var o=this;t.forEach(function(t){var e=o.authentications[t];switch(e.type){case"basic":(e.username||e.password)&&n.auth(e.username||"",e.password||"");break;case"apiKey":if(e.apiKey){var r={};e.apiKeyPrefix?r[e.name]=e.apiKeyPrefix+" "+e.apiKey:r[e.name]=e.apiKey,"header"===e.in?n.set(r):n.query(r)}break;case"oauth2":e.accessToken&&n.set({Authorization:"Bearer "+e.accessToken});break;default:throw new Error("Unknown authentication type: "+e.type)}})},f.prototype.deserialize=function(t,e){if(null==t||null==e||204==t.status)return null;var r=t.body;return null!=r&&("object"!==c(r)||void 0!==r.length||Object.keys(r).length)||(r=t.text),f.convertToType(r,e)},f.prototype.callApi=function(t,e,r,n,o,i,s,a,u,f,c,p,h){var l=this,y=this.buildUrl(t,r),d=_(e,y);for(var m in this.applyAuthToRequest(d,u),o)if(o.hasOwnProperty(m)){var g=o[m];if("csv"===g.collectionFormat){if(null!=g.value){var b=g.value.map(this.paramToString).map(encodeURIComponent).join(",");d.query(encodeURIComponent(m)+"="+b)}}else n[m]=this.buildCollectionParam(g.value,g.collectionFormat)}"GET"===e.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),d.query(this.normalizeParams(n)),d.set(this.defaultHeaders).set(this.normalizeParams(i)),this.requestAgent&&d.agent(this.requestAgent),d.timeout(this.timeout);var v=this.jsonPreferredMime(f);if(v?"multipart/form-data"!=v&&d.type(v):d.header["Content-Type"]||d.type("application/json"),"application/x-www-form-urlencoded"===v)d.send(A.stringify(this.normalizeParams(s)));else if("multipart/form-data"==v){var w=this.normalizeParams(s);for(var m in w)w.hasOwnProperty(m)&&(this.isFileParam(w[m])?d.attach(m,w[m]):d.field(m,w[m]))}else a&&d.send(a);var T=this.jsonPreferredMime(c);return T&&d.accept(T),"Blob"===p?d.responseType("blob"):"String"===p&&d.responseType("string"),this.enableCookies&&("undefined"==typeof window?this.agent.attachCookies(d):d.withCredentials()),d.end(function(e,t){if(h){var r=null;if(!e)try{r=l.deserialize(t,p),l.enableCookies&&"undefined"==typeof window&&l.agent.saveCookies(t)}catch(t){e=t}h(e,r,t)}}),d},f.parseDate=function(t){return new Date(t.replace(/T/i," "))},f.convertToType=function(t,e){if(null==t)return t;switch(e){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return this.parseDate(String(t));case"Blob":return t;default:if(e===Object)return t;if("function"==typeof e)return e.constructFromObject(t);if(Array.isArray(e)){var r=e[0];return t.map(function(t){return f.convertToType(t,r)})}if("object"!==c(e))return t;var n,o;for(var i in e)if(e.hasOwnProperty(i)){o=e[n=i];break}var s={};for(var i in t)if(t.hasOwnProperty(i)){var a=f.convertToType(i,n),u=f.convertToType(t[i],o);s[a]=u}return s}},f.constructFromObject=function(t,e,r){if(Array.isArray(t))for(var n=0;n<t.length;n++)t.hasOwnProperty(n)&&(e[n]=f.convertToType(t[n],r));else for(var o in t)t.hasOwnProperty(o)&&(e[o]=f.convertToType(t[o],r))},f.instance=new f,f},"function"==typeof define&&define.amd?define(["superagent","querystring"],n):"object"===c(t)&&t.exports?t.exports=n(o(2),o(3)):(e.Investment||(e.Investment={}),e.Investment.ApiClient=n(e.superagent,e.querystring))}).call(this,o(1).Buffer,o(0)(t))},function(t,e,o){(function(r,t){function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var e,n;e=this,n=function(_,A){"use strict";function f(){this.basePath="http://service-nl4at3t9-1259459016.ap-shanghai.apigateway.myqcloud.com/release".replace(/\/+$/,""),this.authentications={},this.defaultHeaders={},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,"undefined"==typeof window&&(this.agent=new _.agent),this.requestAgent=null}return f.prototype.paramToString=function(t){return null==t||null==t?"":t instanceof Date?t.toJSON():t.toString()},f.prototype.buildUrl=function(t,n){t.match(/^\//)||(t="/"+t);var e=this.basePath+t,o=this;return e=e.replace(/\{([\w-]+)\}/g,function(t,e){var r;return r=n.hasOwnProperty(e)?o.paramToString(n[e]):t,encodeURIComponent(r)})},f.prototype.isJsonMime=function(t){return Boolean(null!=t&&t.match(/^application\/json(;.*)?$/i))},f.prototype.jsonPreferredMime=function(t){for(var e=0;e<t.length;e++)if(this.isJsonMime(t[e]))return t[e];return t[0]},f.prototype.isFileParam=function(t){var e;try{e=o(30)}catch(t){}return!!(e&&e.ReadStream&&t instanceof e.ReadStream)||("function"==typeof r&&t instanceof r||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))},f.prototype.normalizeParams=function(t){var e={};for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r]&&null!=t[r]){var n=t[r];this.isFileParam(n)||Array.isArray(n)?e[r]=n:e[r]=this.paramToString(n)}return e},f.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"},f.prototype.buildCollectionParam=function(t,e){if(null==t)return null;switch(e){case"csv":return t.map(this.paramToString).join(",");case"ssv":return t.map(this.paramToString).join(" ");case"tsv":return t.map(this.paramToString).join("\t");case"pipes":return t.map(this.paramToString).join("|");case"multi":return t.map(this.paramToString);default:throw new Error("Unknown collection format: "+e)}},f.prototype.applyAuthToRequest=function(n,t){var o=this;t.forEach(function(t){var e=o.authentications[t];switch(e.type){case"basic":(e.username||e.password)&&n.auth(e.username||"",e.password||"");break;case"apiKey":if(e.apiKey){var r={};e.apiKeyPrefix?r[e.name]=e.apiKeyPrefix+" "+e.apiKey:r[e.name]=e.apiKey,"header"===e.in?n.set(r):n.query(r)}break;case"oauth2":e.accessToken&&n.set({Authorization:"Bearer "+e.accessToken});break;default:throw new Error("Unknown authentication type: "+e.type)}})},f.prototype.deserialize=function(t,e){if(null==t||null==e||204==t.status)return null;var r=t.body;return null!=r&&("object"!==c(r)||void 0!==r.length||Object.keys(r).length)||(r=t.text),f.convertToType(r,e)},f.prototype.callApi=function(t,e,r,n,o,i,s,a,u,f,c,p,h){var l=this,y=this.buildUrl(t,r),d=_(e,y);for(var m in this.applyAuthToRequest(d,u),o)if(o.hasOwnProperty(m)){var g=o[m];if("csv"===g.collectionFormat){if(null!=g.value){var b=g.value.map(this.paramToString).map(encodeURIComponent).join(",");d.query(encodeURIComponent(m)+"="+b)}}else n[m]=this.buildCollectionParam(g.value,g.collectionFormat)}"GET"===e.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),d.query(this.normalizeParams(n)),d.set(this.defaultHeaders).set(this.normalizeParams(i)),this.requestAgent&&d.agent(this.requestAgent),d.timeout(this.timeout);var v=this.jsonPreferredMime(f);if(v?"multipart/form-data"!=v&&d.type(v):d.header["Content-Type"]||d.type("application/json"),"application/x-www-form-urlencoded"===v)d.send(A.stringify(this.normalizeParams(s)));else if("multipart/form-data"==v){var w=this.normalizeParams(s);for(var m in w)w.hasOwnProperty(m)&&(this.isFileParam(w[m])?d.attach(m,w[m]):d.field(m,w[m]))}else a&&d.send(a);var T=this.jsonPreferredMime(c);return T&&d.accept(T),"Blob"===p?d.responseType("blob"):"String"===p&&d.responseType("string"),this.enableCookies&&("undefined"==typeof window?this.agent.attachCookies(d):d.withCredentials()),d.end(function(e,t){if(h){var r=null;if(!e)try{r=l.deserialize(t,p),l.enableCookies&&"undefined"==typeof window&&l.agent.saveCookies(t)}catch(t){e=t}h(e,r,t)}}),d},f.parseDate=function(t){return new Date(t.replace(/T/i," "))},f.convertToType=function(t,e){if(null==t)return t;switch(e){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return this.parseDate(String(t));case"Blob":return t;default:if(e===Object)return t;if("function"==typeof e)return e.constructFromObject(t);if(Array.isArray(e)){var r=e[0];return t.map(function(t){return f.convertToType(t,r)})}if("object"!==c(e))return t;var n,o;for(var i in e)if(e.hasOwnProperty(i)){o=e[n=i];break}var s={};for(var i in t)if(t.hasOwnProperty(i)){var a=f.convertToType(i,n),u=f.convertToType(t[i],o);s[a]=u}return s}},f.constructFromObject=function(t,e,r){if(Array.isArray(t))for(var n=0;n<t.length;n++)t.hasOwnProperty(n)&&(e[n]=f.convertToType(t[n],r));else for(var o in t)t.hasOwnProperty(o)&&(e[o]=f.convertToType(t[o],r))},f.instance=new f,f},"function"==typeof define&&define.amd?define(["superagent","querystring"],n):"object"===c(t)&&t.exports?t.exports=n(o(2),o(3)):(e.News||(e.News={}),e.News.ApiClient=n(e.superagent,e.querystring))}).call(this,o(1).Buffer,o(0)(t))},function(t,e,r){"use strict";var n=r(9),o=r(10),i=new n,s=new o,a={config:i,createServiceInstance:function(t){return s.setType(t).setConfig(i.build()).build()}};t.exports=a},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.source={}}return function(t,e,r){e&&n(t.prototype,e),r&&n(t,r)}(t,[{key:"build",value:function(){return this.source}},{key:"clean",value:function(){return this.source={},this}},{key:"set",value:function(t,e){return this.source[t]=e,this}},{key:"setAuthToken",value:function(t){return this.set("AuthToken",t)}},{key:"setHost",value:function(t){return this.set("Host",t)}}]),t}();t.exports=o},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(11),i=r(26),s=r(29),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,r){e&&n(t.prototype,e),r&&n(t,r)}(t,[{key:"setType",value:function(t){return this.type=t,this}},{key:"setConfig",value:function(t){return this.config=t,this}},{key:"configure",value:function(t){return this.config.Host&&(t.apiClient.basePath=this.config.Host),this.config.AuthToken&&(t.apiClient.authentications={type:"oauth2",accessToken:this.config.AuthToken}),t}},{key:"build",value:function(){var t;switch(this.type){case"company":t=new o.CompanyApi;break;case"investment":t=new i.InvestmentApi;break;case"news":t=new s.NewsApi;break;default:throw new Error("".concat(this.type," is not a supported API service."))}return this.configure(t)}}]),t}();t.exports=a},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(t,e){"use strict";return{ApiClient:t,CompanyApi:e}},"function"==typeof define&&define.amd?define(["ApiClient","api/CompanyApi"],r):"object"===e(t)&&t.exports&&(t.exports=r(n(4),n(25)))}).call(this,n(0)(t))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=p(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=p(t),o=n[0],i=n[1],s=new c(function(t,e,r){return 3*(e+r)/4-r}(0,o,i)),a=0,u=0<i?o-4:o;for(r=0;r<u;r+=4)e=f[t.charCodeAt(r)]<<18|f[t.charCodeAt(r+1)]<<12|f[t.charCodeAt(r+2)]<<6|f[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;2===i&&(e=f[t.charCodeAt(r)]<<2|f[t.charCodeAt(r+1)]>>4,s[a++]=255&e);1===i&&(e=f[t.charCodeAt(r)]<<10|f[t.charCodeAt(r+1)]<<4|f[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(u(t,i,s<i+16383?s:i+16383));1==n?(e=t[r-1],o.push(a[e>>2]+a[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],o.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return o.join("")};for(var a=[],f=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567