(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,122845,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),i=o[0],a=o[1],h=new s((i+a)*3/4-a),d=0,p=a>0?i-4:i;for(r=0;r

>16&255,h[d++]=t>>8&255,h[d++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]>4,h[d++]=255&t),1===a&&(t=n[e.charCodeAt(r)]>2,h[d++]=t>>8&255,h[d++]=255&t),h},t.fromByteArray=function(e){for(var t,n=e.length,s=n%3,o=[],i=0,a=n-s;i>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}(e,i,i+16383>a?a:i+16383));return 1===s?o.push(r[(t=e[n-1])>>2]+r[t>10]+r[t>>4&63]+r[ttypeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=o.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),s=r(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,s=t;if(("string"!=typeof s||""===s)&&(s="utf8"),!a.isEncoding(s))throw TypeError("Unknown encoding: "+s);var o=0|l(n,s),u=i(o),h=u.write(n,s);return h!==o&&(u=u.slice(0,h)),u}if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(S(e,ArrayBuffer)||e&&S(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(e,SharedArrayBuffer)||e&&S(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(ttypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(etypeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(h(e),e=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function l(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||S(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return v(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(e).length;default:if(s)return n?-1:v(e).length;t=(""+t).toLowerCase(),s=!0}}function f(e,t,r){var s,o,i,a=!1;if((void 0===t||tthis.length||((void 0===r||r>this.length)&&(r=this.length),r>>=0)>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||tn)&&(r=n);for(var s="",o=t;o0x7fffffff?r=0x7fffffff:r=e.length)if(s)return -1;else r=e.length-1;else if(ra&&(r=a-u),o=r;o>=0;o--){for(var p=!0,c=0;cr&&(e+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,s){if(S(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),te.length||nthis.length)throw RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,s>>>=0,this===e)return 0;for(var o=s-n,i=r-t,u=Math.min(o,i),h=this.slice(n,s),d=e.slice(t,r),p=0;p239?4:h>223?3:h>191?2:1;if(s+p127&&(d=u);break;case 3:o=e[s+1],i=e[s+2],(192&o)==128&&(192&i)==128&&(u=(15&h)2047&&(u57343)&&(d=u);break;case 4:o=e[s+1],i=e[s+2],a=e[s+3],(192&o)==128&&(192&i)==128&&(192&a)==128&&(u=(15&h)65535&&u65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),s+=p}var c=n,l=c.length;if(lr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,s,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>s||te.length)throw RangeError("Index out of range")}function P(e,t,r,n,s,o){if(r+n>e.length||r>>=0,o||P(e,t,r,4,34028234663852886e22,-34028234663852886e22),s.write(e,t,r,n,23,4),r+4}function A(e,t,r,n,o){return t*=1,r>>>=0,o||P(e,t,r,8,17976931348623157e292,-17976931348623157e292),s.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s,o,i,a,u,h,d,p,c=this.length-t;if((void 0===r||r>c)&&(r=c),e.length>0&&(rthis.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var o=t.length;n>o/2&&(n=o/2);for(var i=0;i>8,s.push(r%256),s.push(n);return s}(e,this.length-d),this,d,p);default:if(l)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,er&&(e=r),tr&&(t=r),t>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e],s=1,o=0;++o>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]|this[e+1]>>=0,t||q(e,2,this.length),this[e]>>=0,t||q(e,4,this.length),(this[e]|this[e+1]>>=0,t||q(e,4,this.length),0x1000000*this[e]+(this[e+1]>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e],s=1,o=0;++o=(s*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||q(e,t,this.length);for(var n=t,s=1,o=this[e+--n];n>0&&(s*=256);)o+=this[e+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||q(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||q(e,2,this.length);var r=this[e]|this[e+1]>>=0,t||q(e,2,this.length);var r=this[e+1]|this[e]>>=0,t||q(e,4,this.length),this[e]|this[e+1]>>=0,t||q(e,4,this.length),this[e]>>=0,t||q(e,4,this.length),s.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||q(e,4,this.length),s.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||q(e,8,this.length),s.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||q(e,8,this.length),s.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;w(this,e,t,r,s,0)}var o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;w(this,e,t,r,s,0)}var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var s=Math.pow(2,8*r-1);w(this,e,t,r,s-1,-s)}var o=0,i=1,a=0;for(this[t]=255&e;++o>>=0,!n){var s=Math.pow(2,8*r-1);w(this,e,t,r,s-1,-s)}var o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e>>=0,r||w(this,e,t,1,127,-128),e>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(nthis.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return s},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var s,o=e.charCodeAt(0);("utf8"===n&&o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&r56319||i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}s=r;continue}if(r-1&&o.push(239,191,189),s=r;continue}r=(s-55296-1&&o.push(239,191,189);if(s=null,r>6|192,63&r|128)}else if(r>12|224,r>>6&63|128,63&r|128)}else if(r>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function E(e){for(var t=[],r=0;r=t.length)&&!(s>=e.length);++s)t[s+r]=e[s];return s}function S(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r>1,d=-7,p=r?s-1:0,c=r?-1:1,l=e[t+p];for(p+=c,o=l&(1>=-d,d+=a;d>0;o=256*o+e[t+p],p+=c,d-=8);for(i=o&(1>=-d,d+=n;d>0;i=256*i+e[t+p],p+=c,d-=8);if(0===o)o=1-h;else{if(o===u)return i?NaN:1/0*(l?-1:1);i+=Math.pow(2,n),o-=h}return(l?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,s,o){var i,a,u,h=8*o-s-1,d=(1>1,c=5960464477539062e-23*(23===s),l=n?0:o-1,f=n?1:-1,y=+(t=1?t+=c/u:t+=c*Math.pow(2,1-p),t*u>=2&&(i++,u/=2),i+p>=d?(a=0,i=d):i+p>=1?(a=(t*u-1)*Math.pow(2,s),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,s),i=0));s>=8;e[r+l]=255&a,l+=f,a/=256,s-=8);for(i=i0;e[r+l]=255&i,l+=f,i/=256,h-=8);e[r+l-f]|=128*y}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},i=!0;try{n[e](r,r.exports,o),i=!1}finally{i&&delete s[e]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@types+_17065d7e52bb35ab2461ad2de866b948/node_modules/next/dist/compiled/buffer/",t.exports=o(230)},318631,(e,t,r)=>{"use strict";var n=e.i(122845);Object.defineProperty(r,"__esModule",{value:!0}),r.AuthAPI=void 0;let s=e.r(479252);r.AuthAPI=class{requestHandler;constructor(e){this.requestHandler=e}updateTokensFromCookies(){let e={accessToken:"access_token_from_cookies",idToken:"id_token_from_cookies",refreshToken:"refresh_token_from_cookies",expiresAt:Date.now()+36e5};this.requestHandler.setTokens(e)}async login(e){let t=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async sendPasswordlessEmail(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/passwordless/email",data:{email:e},requiresAuth:!1})}async loginWithPasswordlessEmail(e,t){let r=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/passwordless/email/login",data:{email:e,otp:t},requiresAuth:!1});return this.updateTokensFromCookies(),r}async loginWithApple(e){let t=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/sso/apple/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async loginWithGoogle(e){let t=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/sso/google/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async logout(){try{await this.requestHandler.request({method:s.HttpMethod.POST,path:"/logout"})}finally{this.requestHandler.clearTokens()}}async getMachineToken(e){let t=n.Buffer.from(`${e.clientId}:${e.clientSecret}`).toString("base64"),r=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/oauth/token",requiresAuth:!1,headers:{Authorization:`Basic ${t}`}}),o={accessToken:r.access_token,expiresAt:Date.now()+1e3*r.expires_in};return this.requestHandler.setTokens(o),r}async refreshToken(){let e=await this.requestHandler.request({method:s.HttpMethod.GET,path:"/refresh",requiresAuth:!1});return this.updateTokensFromCookies(),e}async register(e){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/register",data:e,requiresAuth:!1})}async registerPasswordless(e){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/passwordless/registration",data:e,requiresAuth:!1})}async verifyEmail(e,t){return await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/register/verify/email",data:{email:e,otp:t},requiresAuth:!1})}async resendVerificationEmail(){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/verification/email/resend",requiresAuth:!1})}async initiateStepUpAuthViaEmail(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/reauth/email",params:e?{platform:e}:void 0,requiresAuth:!0})}async validateStepUpAuthViaEmail(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/reauth/email/validation",data:{otp:e},requiresAuth:!0})}async stepUpAuthViaPassword(e,t){let r={password:e};t&&(r["g-recaptcha-response"]=t),await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/reauth/password",data:r})}async validateStepUpAuth(){await this.requestHandler.request({method:s.HttpMethod.GET,path:"/reauth/validation",requiresAuth:!0})}async forgotPassword(e,t,r){let n={};t&&(n.reset_password_url=t),r&&(n.platform=r),await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:n,requiresAuth:!1})}async resetPassword(e,t,r,n){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:n?{platform:n}:void 0,requiresAuth:!1})}async changePassword(e,t){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t},requiresAuth:!0})}async changeEmail(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/email/change",data:{email:e},requiresAuth:!0})}async getEntitlementToken(){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/entitlement/token",requiresAuth:!0})}async getUserId(){return await this.requestHandler.request({method:s.HttpMethod.GET,path:"/user/id",requiresAuth:!0})}async getUserInfo(){return await this.requestHandler.request({method:s.HttpMethod.GET,path:"/user/id/email",requiresAuth:!0})}}},622592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConsentAPI=void 0;let n=e.r(479252);r.ConsentAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getConsent(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent",params:{endpointID:e}})}async updateConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent",data:e})}async createConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent",data:e})}async deleteConsent(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent",params:{endpointID:e}})}async getUserConsent(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/user"})}async updateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user",data:e})}async createUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent/user",data:e})}async deleteUserConsent(){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/user"})}async getBulkConsent(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/bulk",params:r})}async deleteBulkConsent(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/bulk",params:r})}async migrateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/migration",data:e})}async updateUserConsentWebhook(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/update",data:e})}}},273929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.OpenWebAPI=void 0;let n=e.r(479252);r.OpenWebAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/openWeb/account",requiresAuth:!0})}async getCodeB(e){return this.requestHandler.request({method:n.HttpMethod.POST,path:"/openWeb/codeB",data:e,requiresAuth:!0})}}},63461,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PreferenceAPI=void 0;let n=e.r(479252);r.PreferenceAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference"})}async updatePreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference",data:e})}async createPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference",data:e})}async getWUPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/wu"})}async updateWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference/wu",data:e})}async createWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu",data:e})}async getUserPreference(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/preference/${e}`})}async deleteUserPreference(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/preference/${e}`})}async createUserWUPreference(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/preference/wu/${e}`,data:t})}async getMapSettings(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/preference/map-settings/${e}`})}async createMapSettings(e,t){return this.requestHandler.request({method:n.HttpMethod.POST,path:`/preference/map-settings/${e}`,data:t})}async updateMapSettings(e,t){return this.requestHandler.request({method:n.HttpMethod.PATCH,path:`/preference/map-settings/${e}`,data:t})}async deleteMapSettings(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/preference/map-settings/${e}`})}}},339222,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PurchaseAPI=void 0;let n=e.r(479252);r.PurchaseAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getPurchases(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/",params:t})}async createPurchase(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase/app/user",data:e})}async getPurchaseRecord(e,t,r){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/record",params:{platform:e,vendor:t,product:r}})}async getPurchaseToken(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/token",params:t})}async updatePurchase(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/purchase",data:e})}async createPurchaseTransaction(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase",data:e})}async getUserPurchases(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}`})}async deleteUserPurchases(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/purchase/${e}`})}async getUserPurchaseSnapshot(e,t){let r={};return t&&(r.platform=t),this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}/getSnapshot`,params:r})}async getUserPurchaseRecord(e,t,r,s){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}/record`,params:{platform:t,vendor:r,product:s}})}}},698254,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SegmentationAPI=void 0;let n=e.r(479252);r.SegmentationAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getEndpointSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/endpoint"})}async updateEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/endpoint",data:e})}async deleteEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/endpoint",data:{keys:e}})}async getEndpointMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/endpoint"})}async getAnonymousEndpointMetrics(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/segmentation/metrics/endpoint/${encodeURIComponent(e)}`,credentials:"omit"})}async getUserSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/user"})}async updateUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/user",data:e})}async deleteUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/user",data:{keys:e}})}async getUserMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/user"})}async getBulkSegmentation(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/bulk",params:r})}async deleteBulkSegmentation(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/bulk",params:r})}async updateBulkSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/bulk",data:e})}async updateKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/condition",data:e})}async deleteKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/condition",data:e})}async deleteKeyForIds(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key",data:e})}async deleteKeyForAll(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key/all",data:{key:e}})}}},168126,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SubscriptionAPI=void 0;let n=e.r(479252);r.SubscriptionAPI=class{requestHandler;constructor(e){this.requestHandler=e}async updateActivity(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/activity",data:e})}async updateAddress(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/address",data:e})}async createMultiple(e){return this.requestHandler.request({method:n.HttpMethod.PUT,path:"/subscription/create",data:e})}async create(e){return this.requestHandler.request({method:n.HttpMethod.POST,path:"/subscription/create",data:e})}async delete(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscription/delete",params:{subids:e}})}async updateEvent(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/event",data:e})}async find(e){let t={};return e.endpointId&&(t.endpointid=e.endpointId),e.address&&(t.address=e.address),e.userId&&(t.userid=e.userId),this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/find",params:t})}async findAll(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/findall",params:{endpoints:e}})}async updateLocation(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/location",data:e})}async update(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/update",data:e})}async updateAll(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/updateall",data:e})}async deleteAll(e){let t={};e.endpoints&&(t.endpoints=e.endpoints),e.userId&&(t.userid=e.userId),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscriptions",params:t})}}},401354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TripsAPI=void 0;let n=e.r(479252);r.TripsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async listTrips(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/preference/trips/${e}`})}async getTrip(e,t){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/preference/trips/${e}/${t}`})}async createTrip(e,t){return this.requestHandler.request({method:n.HttpMethod.POST,path:`/preference/trips/${e}`,data:t})}async updateTrip(e,t,r){return this.requestHandler.request({method:n.HttpMethod.PUT,path:`/preference/trips/${e}/${t}`,data:r})}async deleteTrip(e,t){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/preference/trips/${e}/${t}`})}}},391150,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ServerError=r.RateLimitError=r.ValidationError=r.NotFoundError=r.APIError=r.UPSXError=void 0;class n extends Error{constructor(e){super(e),this.name="UPSXError",Object.setPrototypeOf(this,n.prototype)}}r.UPSXError=n;class s extends n{code;data;constructor(e,t,r){super(e),this.name="APIError",this.code=t,this.data=r,Object.setPrototypeOf(this,s.prototype)}}r.APIError=s;class o extends s{constructor(e="Resource not found"){super(e,404),this.name="NotFoundError",Object.setPrototypeOf(this,o.prototype)}}r.NotFoundError=o;class i extends s{constructor(e="Invalid request",t){super(e,400,t),this.name="ValidationError",Object.setPrototypeOf(this,i.prototype)}}r.ValidationError=i;class a extends s{constructor(e="Rate limit exceeded"){super(e,429),this.name="RateLimitError",Object.setPrototypeOf(this,a.prototype)}}r.RateLimitError=a,r.ServerError=class e extends s{constructor(t="Server error",r=500){super(t,r),this.name="ServerError",Object.setPrototypeOf(this,e.prototype)}}},659393,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;let n=e.r(391150),s=e.r(479252);r.RequestHandler=class{baseUrl;timeout;defaultHeaders;tokens=null;constructor(e){this.baseUrl=e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl,this.timeout=e.timeout||3e4,this.defaultHeaders={"Content-Type":"application/json",Accept:"application/json",...e.headers}}setTokens(e){this.tokens=e}getTokens(){return this.tokens}clearTokens(){this.tokens=null}isAuthenticated(){return!!this.tokens?.accessToken}async request(e){let{method:t,path:r,params:o,data:i,headers:a={},requiresAuth:u=!1,timeout:h=this.timeout,credentials:d="include"}=e;if(u&&!this.isAuthenticated())throw new n.APIError("Authentication required");let p=`${this.baseUrl}${r.startsWith("/")?r:`/${r}`}`;if(o&&Object.keys(o).length>0){let e=new URLSearchParams;for(let[t,r]of Object.entries(o))void 0!==r&&e.append(t,String(r));let t=e.toString();t&&(p+=`?${t}`)}let c={...this.defaultHeaders,...a};this.tokens?.accessToken&&(c.Authorization=`Bearer ${this.tokens.accessToken}`);let l={method:t,headers:c,credentials:d};void 0!==i&&(t===s.HttpMethod.POST||t===s.HttpMethod.PUT||t===s.HttpMethod.PATCH)&&(l.body=JSON.stringify(i));try{let e=new AbortController,t=setTimeout(()=>e.abort(),h);l.signal=e.signal;let r=await fetch(p,l);if(clearTimeout(t),r.ok||await this.handleErrorResponse(r),204===r.status)return null;let n=r.headers.get("content-type");if(n&&n.includes("application/json"))return await r.json();return await r.text()}catch(e){if(e instanceof n.APIError)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new n.APIError("Request timeout",408);throw new n.APIError(`Network error: ${e.message}`,0)}}async handleErrorResponse(e){let t;try{t=await e.json()}catch{t={message:e.statusText}}let r=t.message||"Unknown error",s=e.status;throw new n.APIError(r,s,t)}}},981444,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPSXClient=void 0;let n=e.r(212840),s=e.r(688029),o=e.r(750413),i=e.r(318631),a=e.r(622592),u=e.r(273929),h=e.r(63461),d=e.r(339222),p=e.r(698254),c=e.r(168126),l=e.r(401354),f=e.r(659393);r.UPSXClient=class{account;applications;assets;auth;consent;openWeb;preference;purchase;segmentation;subscription;trips;requestHandler;constructor(e){this.requestHandler=new f.RequestHandler(e),this.auth=new i.AuthAPI(this.requestHandler),this.account=new n.AccountAPI(this.requestHandler),this.applications=new s.ApplicationsAPI(this.requestHandler),this.assets=new o.AssetsAPI(this.requestHandler),this.consent=new a.ConsentAPI(this.requestHandler),this.openWeb=new u.OpenWebAPI(this.requestHandler),this.preference=new h.PreferenceAPI(this.requestHandler),this.purchase=new d.PurchaseAPI(this.requestHandler),this.segmentation=new p.SegmentationAPI(this.requestHandler),this.subscription=new c.SubscriptionAPI(this.requestHandler),this.trips=new l.TripsAPI(this.requestHandler)}}},562235,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},926398,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},534293,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},470429,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},448436,(e,t,r)=>{"use strict";var n,s,o,i,a,u,h,d,p,c,l,f,y,m,g,H,q,w,P,T,A,b,v,E,M,U,S,O,I,_,C,k;Object.defineProperty(r,"__esModule",{value:!0}),r.LocationType=r.Role=r.PermissionType=r.ActivityCondition=r.WigetPropType=r.WigetPropPeriod=r.WigetPropCondition=r.WidgetType=r.StrikeTypeCode=r.GeometryType=r.InterruptionLevel=r.Weekday=r.Platform=r.Unit=r.ActivityType=r.AlertType=void 0,(q=n||(r.AlertType=n={}))[q.News=1]="News",q[q.AirQuality=2]="AirQuality",q[q.Avalanche=3]="Avalanche",q[q.Coastal=4]="Coastal",q[q.Miscellaneous=5]="Miscellaneous",q[q.RainFlood=6]="RainFlood",q[q.Temperature=7]="Temperature",q[q.Thunderstorm=8]="Thunderstorm",q[q.Visibility=9]="Visibility",q[q.Wind=10]="Wind",q[q.Lightning=11]="Lightning",q[q.Precipitation=12]="Precipitation",q[q.ExtremeCold=13]="ExtremeCold",q[q.ExtremeHeat=14]="ExtremeHeat",q[q.WinterPrecipitation=15]="WinterPrecipitation",q[q.HeavySnow=16]="HeavySnow",q[q.DenseFog=17]="DenseFog",q[q.HeavyRain=18]="HeavyRain",q[q.HighWind=19]="HighWind",q[q.Flux=20]="Flux",q[q.IcyForecast=21]="IcyForecast",q[q.Pollen=22]="Pollen",q[q.Flu=23]="Flu",q[q.DailyPrecip=24]="DailyPrecip",q[q.WebEmail=25]="WebEmail",q[q.DailyDigest=26]="DailyDigest",q[q.HeavyThunderstorm=27]="HeavyThunderstorm",q[q.Custom=28]="Custom",q[q.Activity=29]="Activity",(w=s||(r.ActivityType=s={}))[w.Running=1]="Running",w[w.Golfing=2]="Golfing",w[w.Hiking=3]="Hiking",w[w.Gardening=4]="Gardening",w[w.Tennis=5]="Tennis",w[w.Cycling=6]="Cycling",(P=o||(r.Unit=o={}))[P.English=1]="English",P[P.Metric=2]="Metric",P[P.Hybrid=3]="Hybrid",(T=i||(r.Platform=i={}))[T.Apple=1]="Apple",T[T.Android=2]="Android",T[T.Http=3]="Http",T[T.Web=4]="Web",T[T.Email=5]="Email",T[T.Sms=6]="Sms",(A=a||(r.Weekday=a={}))[A.Sunday=0]="Sunday",A[A.Monday=1]="Monday",A[A.Tuesday=2]="Tuesday",A[A.Wednesday=3]="Wednesday",A[A.Thursday=4]="Thursday",A[A.Friday=5]="Friday",A[A.Saturday=6]="Saturday",(b=u||(r.InterruptionLevel=u={}))[b.Passive=0]="Passive",b[b.Active=1]="Active",b[b.TimeSensitive=2]="TimeSensitive",b[b.Critical=3]="Critical",(v=h||(r.GeometryType=h={})).GeometryPoint="Point",v.GeometryMultiPoint="MultiPoint",v.GeometryPolygon="Polygon",v.GeometryMultiPolygon="MultiPolygon",v.GeometryLineString="LineString",v.GeometryMultiLineString="MultiLineString",v.GeometryCollection="GeometryCollection",v.Feature="Feature",v.FeatureCollection="FeatureCollection",(E=d||(r.StrikeTypeCode=d={}))[E.CloudToGround=0]="CloudToGround",E[E.CloudToCloud=1]="CloudToCloud",(M=p||(r.WidgetType=p={})).WXLocation="wxlocation",M.WXComparison="wxcomparison",(U=c||(r.WigetPropCondition=c={})).Humidity="humidity",U.Wind="wind",U.Pressure="pressure",U.Visibility="visibility",U.DewPoint="dewPoint",U.UV="uv",U.AirQuality="airQuality",U.Temperature="temperature",U.TemperatureFeelsLike="temperatureFeelsLike",U.Precip="precip",(S=l||(r.WigetPropPeriod=l={})).Daily="daily",S.Hourly="hourly",(O=f||(r.WigetPropType=f={})).Forecast="forecast",O.Historical="historical",(I=y||(r.ActivityCondition=y={}))[I.Poor=1]="Poor",I[I.Fair=2]="Fair",I[I.Good=3]="Good",(_=m||(r.PermissionType=m={}))[_.EndpointLookup=1]="EndpointLookup",_[_.LocationLookup=2]="LocationLookup",_[_.UserLookup=3]="UserLookup",_[_.NotificationMetric=4]="NotificationMetric",_[_.ClickMetric=5]="ClickMetric",_[_.AlertMap=6]="AlertMap",_[_.AlertNews=7]="AlertNews",_[_.AlertSegment=8]="AlertSegment",_[_.NotificationApps=9]="NotificationApps",_[_.NotificationTemplates=10]="NotificationTemplates",_[_.NotificationHeadlines=11]="NotificationHeadlines",_[_.NotificationDateFormats=12]="NotificationDateFormats",_[_.NotificationTranslations=13]="NotificationTranslations",_[_.Permissions=14]="Permissions",_[_.AgentActivity=15]="AgentActivity",_[_.DeleteSubscriptions=16]="DeleteSubscriptions",_[_.AlertSent=17]="AlertSent",_[_.Culture=18]="Culture",_[_.SendNotification=19]="SendNotification",_[_.Headlines=20]="Headlines",_[_.Templates=21]="Templates",_[_.UpdateAccountLockStatus=22]="UpdateAccountLockStatus",(C=g||(r.Role=g={}))[C.Admin=1]="Admin",C[C.User=2]="User",C[C.UnAuthorized=3]="UnAuthorized",C[C.AppAgent=4]="AppAgent",(k=H||(r.LocationType=H={}))[k.Globe=0]="Globe",k[k.PollenID=1]="PollenID",k[k.TideID=2]="TideID",k[k.ZoneID=3]="ZoneID",k[k.PostalKey=4]="PostalKey",k[k.CountyID=5]="CountyID",k[k.CityID=6]="CityID",k[k.AdminDistrict=7]="AdminDistrict",k[k.DmaID=8]="DmaID",k[k.TimeZone=9]="TimeZone",k[k.CountryCode=10]="CountryCode"},1799,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},728575,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},95443,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},867295,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},832922,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},770367,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},648875,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e.r(562235),r),s(e.r(926398),r),s(e.r(534293),r),s(e.r(470429),r),s(e.r(448436),r),s(e.r(1799),r),s(e.r(728575),r),s(e.r(95443),r),s(e.r(867295),r),s(e.r(832922),r),s(e.r(770367),r)},563033,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e.r(212840),r),s(e.r(688029),r),s(e.r(750413),r),s(e.r(622592),r),s(e.r(273929),r),s(e.r(63461),r),s(e.r(339222),r),s(e.r(698254),r),s(e.r(168126),r),s(e.r(401354),r)},245943,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.APIError=r.UPSXClient=void 0;let o=e.r(981444);Object.defineProperty(r,"UPSXClient",{enumerable:!0,get:function(){return o.UPSXClient}});let i=e.r(391150);Object.defineProperty(r,"APIError",{enumerable:!0,get:function(){return i.APIError}}),s(e.r(479252),r),s(e.r(648875),r),s(e.r(563033),r)},479252,(e,t,r)=>{"use strict";var n,s;Object.defineProperty(r,"__esModule",{value:!0}),r.HttpMethod=void 0,(s=n||(r.HttpMethod=n={})).GET="GET",s.POST="POST",s.PUT="PUT",s.DELETE="DELETE",s.PATCH="PATCH"},212840,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountAPI=void 0;let n=e.r(479252);r.AccountAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account"})}async updateAccount(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/account",data:e})}async getAccountId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account/id"})}async changeEmail(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/email/change",data:{email:e}})}async changePassword(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t}})}async forgotPassword(e,t,r){let s={};t&&(s.reset_password_url=t),r&&(s.platform=r),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:s,requiresAuth:!1})}async resetPassword(e,t,r,s){let o={};s&&(o.platform=s),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:o,requiresAuth:!1})}async getUserId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id"})}async getUserInfo(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id/email"})}async getUserAccountById(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/users/${e}/account`})}async getUserAccountByEmail(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/users/email/${encodeURIComponent(e)}/account`})}async updateAccountLockStatus(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/users/${e}/account/lockStatus`,data:{accountLockStatus:t}})}}},688029,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ApplicationsAPI=void 0;let n=e.r(479252);r.ApplicationsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getApplications(e,t){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications",params:{appId:e,endpointId:t}})}async createApplication(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications",data:e})}async addPartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/applications/app-id/${e}/endpoint-id/${t}`,data:r})}async deletePartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/partner/app-id/${e}/endpoint-id/${t}`,params:{partner:r}})}async updateLastActivity(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/applications/activity/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserApplications(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/applications/user/${e}`})}async createUserApplication(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/applications/user/${e}`,data:t})}async deleteUserApplications(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/user/${e}`})}async deleteUserApplication(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserEndpointIds(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications/endpoint-ids",params:{userID:e}})}}},750413,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AssetsAPI=void 0;let n=e.r(479252);r.AssetsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAssets(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets"})}async getUserAssets(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/assets/${e}`})}async deleteUserAssets(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/assets/${e}`})}async createWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/assets/wu/${e}`,data:t})}async updateWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/assets/wu/${e}`,data:t})}async createWUAssetsMigration(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/assets/migration/${e}`,data:t})}}}]);