"use strict";(self.webpackChunkgenerator_cam_inc=self.webpackChunkgenerator_cam_inc||[]).push([[121],{47668:function(t,e,i){i.r(e),i.d(e,{AccountGroup:function(){return z},AccountGroupApi:function(){return Pn},AccountGroupList:function(){return P},AmazonPayApi:function(){return jn},AmazonPayAuthSession:function(){return S},AmazonPayCheckoutLanguage:function(){return F},AmazonPayCheckoutSessionConfig:function(){return C},AmazonPayConnectedResult:function(){return H},AmazonPayLedgerCurrency:function(){return W},AmazonPayMerchantId:function(){return L},AmazonPayOnetimeId:function(){return M},AmazonPayPayloadJSON:function(){return k},AmazonPayProductType:function(){return R},AmazonPayPublicKeyId:function(){return A},AmazonPayRegistered:function(){return V},AmazonPaySandbox:function(){return K},AmazonPaySessionId:function(){return J},AmazonPaySignature:function(){return U},AmazonPaySigninConfig:function(){return Q},AmazonPaySigninRequestConfig:function(){return Y},AmazonPaySignup:function(){return tt},AmazonPaySignupPayload:function(){return ot},AmazonPayToken:function(){return at},AmazonPayTransferredSiteId:function(){return G},AmazonPayUnregistered:function(){return st},AmazonPayUserId:function(){return q},Ameba:function(){return ct},ApiClient:function(){return b},ApiPermissionApi:function(){return Sn},ApiRole:function(){return lt},ApiRoleApi:function(){return Fn},ApiRoleBase:function(){return pt},ApiRoleList:function(){return dt},ApiRolePrimaryId:function(){return ut},AppleApi:function(){return kn},AppleAuthToken:function(){return _t},AppleAuthTokenObject:function(){return ht},AppleAuthorization:function(){return yt},AppleConnectedResult:function(){return xt},AppleJwt:function(){return mt},AppleSigninPayload:function(){return bt},AppleSignup:function(){return ft},AppleSignupPayload:function(){return vt},AppleStartSession:function(){return Ot},AppleTmpUser:function(){return Tt},AppleUserId:function(){return gt},AuthJwt:function(){return wt},AuthJwtApi:function(){return An},AuthSessionId:function(){return j},Connected:function(){return It},CreatedAt:function(){return zt},EmailApi:function(){return Un},EmailProvisionPayload:function(){return Pt},EmailRestrictionApi:function(){return Cn},EmailSignin:function(){return jt},EmailSigninPayload:function(){return St},EmailSigninTrustedPayload:function(){return Ft},EmailSignup:function(){return kt},EmailSignupImmediately:function(){return At},EmailSignupImmediatelyPayload:function(){return Ut},EmailSignupPayload:function(){return Ct},EmailSignupProvision:function(){return Gt},EmailSignupProvisionPayload:function(){return Et},EmailSignupVerify:function(){return Ht},EmailSignupVerifyPayload:function(){return Wt},EmailUpdatePayload:function(){return Lt},EnvId:function(){return f},Exist:function(){return Mt},GoogleApi:function(){return Gn},GoogleAuthorization:function(){return Rt},GoogleConnectedResult:function(){return Nt},GoogleJwt:function(){return Dt},GoogleSignup:function(){return Bt},GoogleSignupPayload:function(){return Qt},GoogleStartSession:function(){return Yt},GoogleTmpUser:function(){return Xt},GoogleToken:function(){return Kt},GoogleTokenValues:function(){return Vt},GoogleUserId:function(){return Jt},Instagram:function(){return $t},LeaveQuestion:function(){return se},LeaveQuestionAnswer:function(){return ae},LeaveQuestionAnswerCreatePayload:function(){return ce},LeaveQuestionApi:function(){return qn},LeaveQuestionBase:function(){return ne},LeaveQuestionCheckbox:function(){return ee},LeaveQuestionElement:function(){return Zt},LeaveQuestionElementList:function(){return te},LeaveQuestionExtend:function(){return re},LeaveQuestionInputType:function(){return ie},LeaveQuestionList:function(){return ue},LeaveQuestionPrimaryId:function(){return oe},LegacyCarrierApi:function(){return En},LegacyCarrierAuthorization:function(){return de},LegacyCarrierConnectedResult:function(){return xe},LegacyCarrierId:function(){return he},LegacyCarrierJwt:function(){return ge},LegacyCarrierOnetimeId:function(){return be},LegacyCarrierRegistered:function(){return me},LegacyCarrierSignup:function(){return ve},LegacyCarrierSignupPayload:function(){return Oe},LegacyCarrierUnRegistered:function(){return fe},LegacyCarrierUserId:function(){return _e},LineAccessTokenObject:function(){return Te},LineApi:function(){return Hn},LineAuthorization:function(){return we},LineConnectedResult:function(){return Ie},LineJwt:function(){return ze},LineSignup:function(){return Pe},LineSignupPayload:function(){return Se},LineStartSession:function(){return Fe},LineTmpUser:function(){return ke},LineUser:function(){return je},MarougeUserName:function(){return Ae},Media:function(){return Ze},MediaBase:function(){return Ue},MediaExtend:function(){return Ve},MediaMeta:function(){return Ce},MediaOnetimeId:function(){return Ke},MediaOnetimeUrl:function(){return Je},MediaOperation:function(){return Ne},MediaOperationCrop:function(){return Ge},MediaOperationFilters:function(){return qe},MediaOperationFitIn:function(){return Ee},MediaOperationHorizontalAlign:function(){return He},MediaOperationSize:function(){return We},MediaOperationSmart:function(){return Le},MediaOperationTrim:function(){return Me},MediaOperationVerticalAlign:function(){return Re},MediaPrimaryId:function(){return De},MediaSigned:function(){return Qe},MediaStatus:function(){return Ye},MediaType:function(){return Be},Name:function(){return ti},NeirongSpace:function(){return T},NeirongSpaceProperties:function(){return O},NotificationLeftAccount:function(){return ei},NotificationRegisteredAccount:function(){return ii},Oauth2Api:function(){return Wn},Oauth2Authorization:function(){return ni},Oauth2Jwt:function(){return ri},Oauth2Session:function(){return oi},Oauth2SessionId:function(){return le},Oauth2Signin:function(){return si},Oauth2SigninNative:function(){return ai},Oauth2SigninNativePayload:function(){return ci},Oauth2SigninPayload:function(){return pi},OnetimeToken:function(){return ui},OpenIDConnectSetting:function(){return w},OrgId:function(){return g},Pager:function(){return pe},PasswordApi:function(){return Ln},PasswordProvisionPayload:function(){return li},PasswordResetPayload:function(){return di},PasswordTokenVerified:function(){return hi},PasswordTokenVerifyPayload:function(){return _i},ProfileBannerUrl:function(){return yi},ProxyOwnerAuthSetting:function(){return I},RedirectUrl:function(){return E},Registered:function(){return N},SignupMetaData:function(){return qt},SiteId:function(){return ye},SpaceId:function(){return v},SystemApi:function(){return Mn},ThumbnailUrl:function(){return xi},Token:function(){return D},Twitter:function(){return mi},TwitterApi:function(){return Rn},TwitterAuthorization:function(){return bi},TwitterConnectedResult:function(){return fi},TwitterOnetimeId:function(){return gi},TwitterSignup:function(){return Oi},TwitterSignupPayload:function(){return Ii},TwitterStartSession:function(){return zi},TwitterTmpUser:function(){return Pi},TwitterToken:function(){return ji},TwitterUserId:function(){return Ti},Type:function(){return Si},UpdatedAt:function(){return Fi},User:function(){return sn},UserAccountId:function(){return X},UserAllowUpdateAccountId:function(){return Ei},UserAmeba:function(){return Hi},UserApi:function(){return Nn},UserApiRole:function(){return Wi},UserAuth:function(){return an},UserAuthentication:function(){return ki},UserAuthenticatios:function(){return Li},UserBase:function(){return qi},UserBirthHour:function(){return Ai},UserBirthMinute:function(){return Ui},UserBirthday:function(){return et},UserBulkCreate:function(){return cn},UserBulkCreatePayload:function(){return pn},UserCreatePayload:function(){return un},UserData:function(){return $i},UserDescription:function(){return it},UserEmail:function(){return $},UserEmailUpdatePayload:function(){return ln},UserExist:function(){return dn},UserExtend:function(){return Xi},UserExternalLink:function(){return Mi},UserExternalLinks:function(){return Ri},UserFreeOption:function(){return Gi},UserFreeOptionProperties:function(){return Ci},UserGender:function(){return nt},UserId:function(){return B},UserIdList:function(){return hn},UserInstagram:function(){return Ni},UserLeaveVerified:function(){return yn},UserLeaveVerifiedPossible:function(){return _n},UserList:function(){return xn},UserMedia:function(){return Bi},UserMediaBase:function(){return Di},UserName:function(){return Z},UserOtherBase:function(){return Zi},UserOtherExtend:function(){return tn},UserOthersData:function(){return en},UserPasswordUpdatePayload:function(){return mn},UserPrefecture:function(){return rt},UserPrimaryId:function(){return vi},UserPrivacyStatus:function(){return Vi},UserPrivateBase:function(){return nn},UserPrivateData:function(){return on},UserPrivateExtend:function(){return rn},UserStatus:function(){return Ki},UserThumbnail:function(){return Ji},UserTwitter:function(){return wi},UserUpdatePayload:function(){return bn},UserYoutube:function(){return Yi},VerifyJwt:function(){return fn},YahooApi:function(){return Dn},YahooAuthorization:function(){return gn},YahooConnectedResult:function(){return vn},YahooJwt:function(){return On},YahooSignup:function(){return Tn},YahooSignupPayload:function(){return wn},YahooStartSession:function(){return In},YahooTmpUser:function(){return zn},Youtube:function(){return Qi},ZipMediaExtend:function(){return $e},ZipMediaExtendAssets:function(){return Xe}});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=r((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r=200&&t.status<300)},c.prototype.get=function(t){return this._header[t.toLowerCase()]},c.prototype.getHeader=c.prototype.get,c.prototype.set=function(t,e){if(s(t)){for(var i in t)this.set(i,t[i]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},c.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},c.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),s(t)){for(var i in t)this.field(i,t[i]);return this}if(Array.isArray(e)){for(var n in e)this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},c.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},c.prototype.withCredentials=function(t){return null==t&&(t=!0),this._withCredentials=t,this},c.prototype.redirects=function(t){return this._maxRedirects=t,this},c.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},c.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},c.prototype.send=function(t){var e=s(t),i=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&s(this._data))for(var n in t)this._data[n]=t[n];else"string"==typeof t?(i||this.type("form"),i=this._header["content-type"],this._data="application/x-www-form-urlencoded"==i?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||i||this.type("json"),this},c.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},c.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var i=this.url.substring(e+1).split("&");"function"==typeof this._sort?i.sort(this._sort):i.sort(),this.url=this.url.substring(0,e)+"?"+i.join("&")}}},c.prototype._appendQueryString=function(){console.trace("Unsupported")},c.prototype._timeoutError=function(t,e,i){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=i,this.timedout=!0,this.abort(),this.callback(n)}},c.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var p=function(t){return t.split(/ *; */).shift()},u=function(t){return t.split(/ *; */).reduce((function(t,e){var i=e.split(/ *= */),n=i.shift(),r=i.shift();return n&&r&&(t[n]=r),t}),{})},l=function(t){return t.split(/ *, */).reduce((function(t,e){var i=e.split(/ *; */),n=i[0].slice(1,-1);return t[i[1].split(/ *= */)[1].slice(1,-1)]=n,t}),{})},d=h;function h(t){if(t)return function(t){for(var e in h.prototype)t[e]=h.prototype[e];return t}(t)}h.prototype.get=function(t){return this.header[t.toLowerCase()]},h.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=p(e);var i=u(e);for(var n in i)this[n]=i[n];this.links={};try{t.link&&(this.links=l(t.link))}catch(r){}},h.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t};var _=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"],y=r((function(t,e){var i;function r(){}"undefined"!=typeof window?i=window:"undefined"!=typeof self?i=self:(console.warn("Using browser-only version of superagent in non-browser environment"),i=n);var c=e=t.exports=function(t,i){return"function"==typeof i?new e.Request("GET",t).end(i):1==arguments.length?new e.Request("GET",t):new e.Request(t,i)};e.Request=m,c.getXHR=function(){if(!(!i.XMLHttpRequest||i.location&&"file:"==i.location.protocol&&i.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 Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function u(t){if(!s(t))return t;var e=[];for(var i in t)l(e,i,t[i]);return e.join("&")}function l(t,e,i){if(null!=i)if(Array.isArray(i))i.forEach((function(i){l(t,e,i)}));else if(s(i))for(var n in i)l(t,e+"["+n+"]",i[n]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(i));else null===i&&t.push(encodeURIComponent(e))}function h(t){for(var e,i,n={},r=t.split("&"),o=0,s=r.length;o=500||t&&"timeout"in t&&"ECONNABORTED"==t.code||t&&"crossDomain"in t)}(t,e))return this._retry();var i=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),i(t,e)},m.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)},m.prototype.buffer=m.prototype.ca=m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.pipe=m.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},m.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},m.prototype.end=function(t){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||r,this._finalizeQueryString(),this._end()},m.prototype._end=function(){var t=this,e=this.xhr=c.getXHR(),i=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var i=e.readyState;if(i>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==i){var n;try{n=e.status}catch(r){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,i){i.total>0&&(i.percent=i.loaded/i.total*100),i.direction=e,t.emit("progress",i)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(a){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(p){return this.callback(p)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof i&&!this._isHost(i)){var r=this._header["content-type"],o=this._serializer||c.serialize[r?r.split(";")[0]:""];!o&&y(r)&&(o=c.serialize["application/json"]),o&&(i=o(i))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&e.setRequestHeader(s,this.header[s]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==i?i:null),this},c.get=function(t,e,i){var n=c("GET",t);return"function"==typeof e&&(i=e,e=null),e&&n.query(e),i&&n.end(i),n},c.head=function(t,e,i){var n=c("HEAD",t);return"function"==typeof e&&(i=e,e=null),e&&n.query(e),i&&n.end(i),n},c.options=function(t,e,i){var n=c("OPTIONS",t);return"function"==typeof e&&(i=e,e=null),e&&n.send(e),i&&n.end(i),n},c.del=b,c.delete=b,c.patch=function(t,e,i){var n=c("PATCH",t);return"function"==typeof e&&(i=e,e=null),e&&n.send(e),i&&n.end(i),n},c.post=function(t,e,i){var n=c("POST",t);return"function"==typeof e&&(i=e,e=null),e&&n.send(e),i&&n.end(i),n},c.put=function(t,e,i){var n=c("PUT",t);return"function"==typeof e&&(i=e,e=null),e&&n.send(e),i&&n.end(i),n}}));y.Request;const x=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},m=function(t,e,i,n){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(n){var r=encodeURIComponent(x(n))+i;return Array.isArray(t[n])?t[n].map((function(t){return r+encodeURIComponent(x(t))})).join(e):r+encodeURIComponent(x(t[n]))})).filter(Boolean).join(e):n?encodeURIComponent(x(n))+i+encodeURIComponent(x(t)):""};class b{constructor(){this.basePath="http://localhost/v1".replace(/\/+$/,""),this.authentications={apiKey:{type:"apiKey",in:"header",name:"x-fensi-id-api-key"},apiSecret:{type:"apiKey",in:"header",name:"x-fensi-id-api-secret"},internalApiKey:{type:"apiKey",in:"header",name:"x-fensi-id-internal-api-key"},internalApiSecret:{type:"apiKey",in:"header",name:"x-fensi-id-internal-api-secret"},jwt:{type:"apiKey",in:"header",name:"x-authorization"},signed:{type:"apiKey",in:"header",name:"x-fensi-user-id"}},this.defaultHeaders={},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,"undefined"==typeof window&&(this.agent=new y.agent),this.requestAgent=null}paramToString(t){return null==t||null==t?"":t instanceof Date?t.toJSON():t.toString()}buildUrl(t,e){t.match(/^\//)||(t="/"+t);var i=this.basePath+t;return i=i.replace(/\{([\w-]+)\}/g,((t,i)=>{var n;return n=e.hasOwnProperty(i)?this.paramToString(e[i]):t,encodeURIComponent(n)}))}isJsonMime(t){return Boolean(null!=t&&t.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(t){for(var e=0;e{var i=this.authentications[e];switch(i.type){case"basic":(i.username||i.password)&&t.auth(i.username||"",i.password||"");break;case"apiKey":if(i.apiKey){var n={};i.apiKeyPrefix?n[i.name]=i.apiKeyPrefix+" "+i.apiKey:n[i.name]=i.apiKey,"header"===i.in?t.set(n):t.query(n)}break;case"oauth2":i.accessToken&&t.set({Authorization:"Bearer "+i.accessToken});break;default:throw new Error("Unknown authentication type: "+i.type)}}))}deserialize(t,e){if(null==t||null==e||204==t.status)return null;var i=t.body;return(null==i||"object"==typeof i&&void 0===i.length&&!Object.keys(i).length)&&(i=t.text),b.convertToType(i,e)}callApi(t,e,i,n,r,o,s,a,c,p,u){var l=this.buildUrl(t,i),d=y(e,l);this.applyAuthToRequest(d,a),"GET"===e.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),d.query(this.normalizeParams(n)),d.set(this.defaultHeaders).set(this.normalizeParams(r)),this.requestAgent&&d.agent(this.requestAgent),d.timeout(this.timeout);var h=this.jsonPreferredMime(c);if(h?"multipart/form-data"!=h&&d.type(h):!d.header["Content-Type"]&&~["POST","PUT","PATCH"].indexOf(e.toUpperCase())&&d.type("application/json"),"application/x-www-form-urlencoded"===h)d.send(m(this.normalizeParams(o)));else if("multipart/form-data"==h){var _=this.normalizeParams(o);for(var x in _)_.hasOwnProperty(x)&&(this.isFileParam(_[x])?d.attach(x,_[x]):d.field(x,_[x]))}else s&&d.send(s);var b=this.jsonPreferredMime(p);return b&&d.accept(b),"Blob"===u?d.responseType("blob"):"String"===u&&d.responseType("string"),this.enableCookies&&("undefined"==typeof window?this.agent._attachCookies(d):d.withCredentials()),new Promise(((t,e)=>{d.end(((i,n)=>{if(i)e(i);else try{var r=this.deserialize(n,u);this.enableCookies&&"undefined"==typeof window&&this.agent._saveCookies(n),t({data:r,response:n})}catch(o){e(o)}}))}))}static parseDate(t){return new Date(t)}static convertToType(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 b.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 i=e[0];return t.map((t=>b.convertToType(t,i)))}if("object"==typeof e){var n,r;for(var o in e)if(e.hasOwnProperty(o)){n=o,r=e[o];break}var s={};for(var o in t)if(t.hasOwnProperty(o)){var a=b.convertToType(o,n),c=b.convertToType(t[o],r);s[a]=c}return s}return t}}static constructFromObject(t,e,i){if(Array.isArray(t))for(var n=0;n