New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dodgeball/trust-sdk-server

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dodgeball/trust-sdk-server - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

24

dist/cjs/Dodgeball.js

@@ -90,2 +90,26 @@ "use strict";

};
Dodgeball.prototype.track = function (_a) {
var userId = _a.userId, sessionId = _a.sessionId, sourceToken = _a.sourceToken, event = _a.event;
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
if (!event.eventTime) {
event.eventTime = Date.now();
}
return [4 /*yield*/, (0, utilities_1.makeRequest)({
url: (0, utilities_1.constructApiUrl)(this.config.apiUrl, this.config.apiVersion) + "track",
method: "POST",
headers: (0, utilities_1.constructApiHeaders)(this.secretKey, "", sourceToken, userId, sessionId),
data: __assign({}, event),
options: {},
})];
case 1:
response = _b.sent();
return [2 /*return*/];
}
});
});
};
Dodgeball.prototype.checkpoint = function (_a) {

@@ -92,0 +116,0 @@ var _b, _c, _d, _e, _f;

2

dist/cjs/utilities.js

@@ -68,3 +68,3 @@ "use strict";

error_1 = _d.sent();
logger_1.Logger.error("makeRequest", error_1).log();
logger_1.Logger.error("There was an error making a request.", error_1).log();
return [2 /*return*/, error_1];

@@ -71,0 +71,0 @@ case 3: return [2 /*return*/];

@@ -84,2 +84,26 @@ var __assign = (this && this.__assign) || function () {

};
Dodgeball.prototype.track = function (_a) {
var userId = _a.userId, sessionId = _a.sessionId, sourceToken = _a.sourceToken, event = _a.event;
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
if (!event.eventTime) {
event.eventTime = Date.now();
}
return [4 /*yield*/, makeRequest({
url: constructApiUrl(this.config.apiUrl, this.config.apiVersion) + "track",
method: "POST",
headers: constructApiHeaders(this.secretKey, "", sourceToken, userId, sessionId),
data: __assign({}, event),
options: {},
})];
case 1:
response = _b.sent();
return [2 /*return*/];
}
});
});
};
Dodgeball.prototype.checkpoint = function (_a) {

@@ -86,0 +110,0 @@ var _b, _c, _d, _e, _f;

@@ -62,3 +62,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

error_1 = _d.sent();
Logger.error("makeRequest", error_1).log();
Logger.error("There was an error making a request.", error_1).log();
return [2 /*return*/, error_1];

@@ -65,0 +65,0 @@ case 3: return [2 /*return*/];

@@ -1,2 +0,2 @@

import { DodgeballApiVersion, IDodgeballConfig, IDodgeballCheckpointResponse, ICheckpointOptions, VerificationOutcome, VerificationStatus } from "./types";
import { DodgeballApiVersion, IDodgeballConfig, IDodgeballCheckpointResponse, ICheckpointOptions, VerificationOutcome, VerificationStatus, ITrackOptions } from "./types";
export declare class Dodgeball {

@@ -19,2 +19,3 @@ secretKey: string;

};
track({ userId, sessionId, sourceToken, event, }: ITrackOptions): Promise<void>;
checkpoint({ checkpointName, event, sourceToken, userId, sessionId, useVerificationId, options, }: ICheckpointOptions): Promise<IDodgeballCheckpointResponse>;

@@ -21,0 +22,0 @@ isRunning(checkpointResponse: IDodgeballCheckpointResponse): boolean;

@@ -23,3 +23,3 @@ import { DodgeballLogLevel } from "./logger";

}
export interface IEvent {
export interface ICheckpointEvent {
ip: string;

@@ -30,2 +30,15 @@ data: {

}
export interface ITrackEvent {
type: string;
data: {
[key: string]: any;
};
eventTime?: number;
}
export interface ITrackOptions {
event: ITrackEvent;
sessionId: string;
userId?: string;
sourceToken?: string;
}
export interface ICheckpointResponseOptions {

@@ -40,3 +53,3 @@ sync?: boolean;

checkpointName: string;
event: IEvent;
event: ICheckpointEvent;
sourceToken: string;

@@ -43,0 +56,0 @@ sessionId: string;

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.exampleTypescriptPackage=t():e.exampleTypescriptPackage=t()}(this,(function(){return(()=>{var e={669:(e,t,r)=>{e.exports=r(609)},448:(e,t,r)=>{"use strict";var n=r(867),o=r(26),i=r(372),s=r(327),a=r(97),u=r(109),c=r(985),l=r(61),f=r(655),p=r(263);e.exports=function(e){return new Promise((function(t,r){var d,h=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}n.isFormData(h)&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(m+":"+_)}var E=a(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),y()}),(function(e){r(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var w=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;w&&(v[e.xsrfHeaderName]=w)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){b&&(r(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),b.send(h)}))}},609:(e,t,r)=>{"use strict";var n=r(867),o=r(849),i=r(321),s=r(185),a=function e(t){var r=new i(t),a=o(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return e(s(t,r))},a}(r(655));a.Axios=i,a.Cancel=r(263),a.CancelToken=r(972),a.isCancel=r(502),a.VERSION=r(288).version,a.all=function(e){return Promise.all(e)},a.spread=r(713),a.isAxiosError=r(268),e.exports=a,e.exports.default=a},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,r)=>{"use strict";var n=r(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(867),o=r(327),i=r(782),s=r(572),a=r(185),u=r(875),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[s,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;r.length;){var p=r.shift(),d=r.shift();try{f=p(f)}catch(e){d(e);break}}try{o=s(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=l},782:(e,t,r)=>{"use strict";var n=r(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,r)=>{"use strict";var n=r(793),o=r(303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},61:(e,t,r)=>{"use strict";var n=r(481);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},572:(e,t,r)=>{"use strict";var n=r(867),o=r(527),i=r(502),s=r(655),a=r(263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},26:(e,t,r)=>{"use strict";var n=r(61);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},527:(e,t,r)=>{"use strict";var n=r(867),o=r(655);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},655:(e,t,r)=>{"use strict";var n=r(867),o=r(16),i=r(481),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(s)})),e.exports=c},288:e=>{e.exports={version:"0.24.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},327:(e,t,r)=>{"use strict";var n=r(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},109:(e,t,r)=>{"use strict";var n=r(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,r)=>{"use strict";var n=r(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},867:(e,t,r)=>{"use strict";var n=r(849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},465:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Boolean]",a="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",E="[object Float32Array]",O="[object Float64Array]",w="[object Int8Array]",j="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",D="[object Uint16Array]",T="[object Uint32Array]",P=/\w*$/,R=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[m]=C[_]=C[s]=C[a]=C[E]=C[O]=C[w]=C[j]=C[A]=C[l]=C[f]=C[p]=C[h]=C[v]=C[g]=C[y]=C[x]=C[S]=C[D]=C[T]=!0,C["[object Error]"]=C[u]=C[b]=!1;var L="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,U=L||I||Function("return this")(),k=t&&!t.nodeType&&t,M=k&&e&&!e.nodeType&&e,V=M&&M.exports===k;function B(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function q(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function K(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function G(e,t){return function(r){return e(t(r))}}function J(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var X,$=Array.prototype,z=Function.prototype,W=Object.prototype,Y=U["__core-js_shared__"],Q=(X=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",Z=z.toString,ee=W.hasOwnProperty,te=W.toString,re=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=V?U.Buffer:void 0,oe=U.Symbol,ie=U.Uint8Array,se=G(Object.getPrototypeOf,Object),ae=Object.create,ue=W.propertyIsEnumerable,ce=$.splice,le=Object.getOwnPropertySymbols,fe=ne?ne.isBuffer:void 0,pe=G(Object.keys,Object),de=Ue(U,"DataView"),he=Ue(U,"Map"),ve=Ue(U,"Promise"),ge=Ue(U,"Set"),ye=Ue(U,"WeakMap"),be=Ue(Object,"create"),me=Fe(de),_e=Fe(he),Ee=Fe(ve),Oe=Fe(ge),we=Fe(ye),je=oe?oe.prototype:void 0,Ae=je?je.valueOf:void 0;function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){this.__data__=new Se(e)}function Pe(e,t,r){var n=e[t];ee.call(e,t)&&qe(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Re(e,t){for(var r=e.length;r--;)if(qe(e[r][0],t))return r;return-1}function Ne(e,t,r,n,o,d,b){var R;if(n&&(R=d?n(e,o,d,b):n(e)),void 0!==R)return R;if(!Xe(e))return e;var N=He(e);if(N){if(R=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,R)}else{var L=Me(e),I=L==u||L==c;if(Ge(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(L==p||L==i||I&&!d){if(H(e))return d?e:{};if(R=function(e){return"function"!=typeof e.constructor||Be(e)?{}:Xe(t=se(e))?ae(t):{};var t}(I?{}:e),!t)return function(e,t){return Le(e,ke(e),t)}(e,function(e,t){return e&&Le(t,$e(t),e)}(R,e))}else{if(!C[L])return d?e:{};R=function(e,t,r,n){var o,i=e.constructor;switch(t){case m:return Ce(e);case s:case a:return new i(+e);case _:return function(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case E:case O:case w:case j:case A:case x:case S:case D:case T:return function(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){return q(t?r(K(e),!0):K(e),B,new e.constructor)}(e,n,r);case f:case g:return new i(e);case h:return function(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,r){return q(t?r(J(e),!0):J(e),F,new e.constructor)}(e,n,r);case y:return o=e,Ae?Object(Ae.call(o)):{}}}(e,L,Ne,t)}}b||(b=new Te);var U=b.get(e);if(U)return U;if(b.set(e,R),!N)var k=r?function(e){return function(e,t,r){var n=t(e);return He(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,$e,ke)}(e):$e(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r););}(k||e,(function(o,i){k&&(o=e[i=o]),Pe(R,i,Ne(o,t,r,n,i,e,b))})),R}function Ce(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;Pe(r,s,void 0===a?e[s]:a)}return r}function Ie(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ue(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Xe(e)||(t=e,Q&&Q in t))&&(Je(e)||H(e)?re:R).test(Fe(e));var t}(r)?r:void 0}xe.prototype.clear=function(){this.__data__=be?be(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(be){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:ee.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=be&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,r=Re(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},Se.prototype.get=function(e){var t=this.__data__,r=Re(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Re(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Re(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new xe,map:new(he||Se),string:new xe}},De.prototype.delete=function(e){return Ie(this,e).delete(e)},De.prototype.get=function(e){return Ie(this,e).get(e)},De.prototype.has=function(e){return Ie(this,e).has(e)},De.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Se},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new De(n)}return r.set(e,t),this};var ke=le?G(le,Object):function(){return[]},Me=function(e){return te.call(e)};function Ve(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function Fe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qe(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=_||he&&Me(new he)!=l||ve&&Me(ve.resolve())!=d||ge&&Me(new ge)!=v||ye&&Me(new ye)!=b)&&(Me=function(e){var t=te.call(e),r=t==p?e.constructor:void 0,n=r?Fe(r):void 0;if(n)switch(n){case me:return _;case _e:return l;case Ee:return d;case Oe:return v;case we:return b}return t});var He=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Je(e)}var Ge=fe||function(){return!1};function Je(e){var t=Xe(e)?te.call(e):"";return t==u||t==c}function Xe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $e(e){return Ke(e)?function(e,t){var r=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(e)}(e)&&ee.call(e,"callee")&&(!ue.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var s in e)!t&&!ee.call(e,s)||o&&("length"==s||Ve(s,n))||r.push(s);return r}(e):function(e){if(!Be(e))return pe(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ne(e,!0,!0)}},433:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dodgeball=void 0;var a=r(855),u=r(441),c=r(833),l=r(915),f=s(r(465)),p=function(){function e(e,t){var r;if(null==e||0===(null==e?void 0:e.length))throw new a.DodgeballMissingConfigError("secretApiKey",e);if(this.secretKey=e,this.config=Object.assign((0,f.default)(l.DEFAULT_CONFIG),(0,f.default)(t||{})),Object.keys(a.DodgeballApiVersion).indexOf(this.config.apiVersion)<0)throw new a.DodgeballInvalidConfigError("config.apiVersion",this.config.apiVersion,Object.keys(a.DodgeballApiVersion));var n=null!==(r=this.config.logLevel)&&void 0!==r?r:u.DodgeballLogLevel.INFO;if(Object.keys(u.DodgeballLogLevel).indexOf(n)<0)throw new a.DodgeballInvalidConfigError("config.logLevel",n,Object.keys(u.DodgeballLogLevel));u.Logger.filterLevel=u.Severity[n]}return e.prototype.createErrorResponse=function(e,t){return{success:!1,errors:[{code:e,message:t}],version:a.DodgeballApiVersion.v1,verification:{id:"",status:a.VerificationStatus.FAILED,outcome:a.VerificationOutcome.ERROR}}},e.prototype.checkpoint=function(e){var t,r,s,f,p,d=e.checkpointName,h=e.event,v=e.sourceToken,g=e.userId,y=void 0===g?"":g,b=e.sessionId,m=void 0===b?"":b,_=e.useVerificationId,E=void 0===_?"":_,O=e.options,w=void 0===O?{}:O;return o(this,void 0,void 0,(function(){var e,o,g,b,_,O,j,A,x,S,D;return i(this,(function(i){switch(i.label){case 0:if(e=!w.timeout||w.timeout<=0,o=w.timeout&&w.timeout>5*l.BASE_CHECKPOINT_TIMEOUT_MS,g=e||o?l.BASE_CHECKPOINT_TIMEOUT_MS:null!==(t=w.timeout)&&void 0!==t?t:l.BASE_CHECKPOINT_TIMEOUT_MS,b=l.MAX_TIMEOUT,_={sync:null===w.sync||void 0===w.sync||w.sync,timeout:g,webhook:w.webhook},O=null,j=0,A=0,null==d)throw new a.DodgeballMissingParameterError("checkpointName",d);if(null==h)throw new a.DodgeballMissingParameterError("event",h);if(!h.hasOwnProperty("ip"))throw new a.DodgeballMissingParameterError("event.ip",h.ip);if(null==m)throw new a.DodgeballMissingParameterError("sessionId",m);if(!this.config.isEnabled)return[2,{success:!0,errors:[],version:a.DodgeballApiVersion.v1,verification:{id:"DODGEBALL_IS_DISABLED",status:a.VerificationStatus.COMPLETE,outcome:a.VerificationOutcome.APPROVED,stepData:{}}}];i.label=1;case 1:return!O&&j<3?[4,(0,c.makeRequest)({url:(0,c.constructApiUrl)(this.config.apiUrl,this.config.apiVersion)+"checkpoint",method:"POST",headers:(0,c.constructApiHeaders)(this.secretKey,E,v,y,m),data:{event:n({type:d},h),options:_},options:{}})]:[3,3];case 2:return O=i.sent(),j+=1,[3,1];case 3:if(!O)return[2,this.createErrorResponse(500,"Unknown evaluation error")];if(!O.success)return[2,O];x=(null===(r=O.verification)||void 0===r?void 0:r.status)!==a.VerificationStatus.PENDING,S=null===(s=O.verification)||void 0===s?void 0:s.id,i.label=4;case 4:return(e||(null!==(f=null==w?void 0:w.timeout)&&void 0!==f?f:l.BASE_CHECKPOINT_TIMEOUT_MS)>j*g)&&!x&&A<l.MAX_RETRY_COUNT?[4,(0,c.sleep)(g)]:[3,7];case 5:return i.sent(),g=g<b?2*g:g,[4,(0,c.makeRequest)({url:(0,c.constructApiUrl)(this.config.apiUrl,this.config.apiVersion)+"verification/"+S,method:"GET",headers:(0,c.constructApiHeaders)(this.secretKey,E,v,y,m)})];case 6:return(O=i.sent())&&O.success&&(D=null===(p=O.verification)||void 0===p?void 0:p.status)?(x=D!==a.VerificationStatus.PENDING,j+=1):A+=1,[3,4];case 7:return A>=l.MAX_RETRY_COUNT?(u.Logger.error("Service Unavailable: Maximum retry count exceeded").log(),[2,{success:!1,version:a.DodgeballApiVersion.v1,errors:[{code:503,message:"Service Unavailable: Maximum retry count exceeded"}],isTimeout:!0}]):(u.Logger.trace("Returning response:",{response:O}).log(),[2,O])}}))}))},e.prototype.isRunning=function(e){var t;if(e.success)switch(null===(t=e.verification)||void 0===t?void 0:t.status){case a.VerificationStatus.PENDING:case a.VerificationStatus.BLOCKED:return!0;default:return!1}return!1},e.prototype.isAllowed=function(e){var t,r;return e.success&&(null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.COMPLETE&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.APPROVED},e.prototype.isDenied=function(e){var t;return!!e.success&&(null===(t=e.verification)||void 0===t?void 0:t.outcome)===a.VerificationOutcome.DENIED},e.prototype.isUndecided=function(e){var t,r;return e.success&&(null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.COMPLETE&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.PENDING},e.prototype.hasError=function(e){var t,r,n;return!e.success&&((null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.FAILED&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.ERROR||(null===(n=e.errors)||void 0===n?void 0:n.length)>0)},e.prototype.isTimeout=function(e){return!e.success&&e.isTimeout},e}();t.Dodgeball=p},915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_RETRY_COUNT=t.MAX_TIMEOUT=t.BASE_CHECKPOINT_TIMEOUT_MS=t.DEFAULT_CONFIG=void 0;var n=r(441),o=r(855);t.DEFAULT_CONFIG={apiVersion:o.DodgeballApiVersion.v1,apiUrl:"https://api.dodgeballhq.com/",logLevel:n.DodgeballLogLevel.TRACE,isEnabled:!0},t.BASE_CHECKPOINT_TIMEOUT_MS=100,t.MAX_TIMEOUT=1e4,t.MAX_RETRY_COUNT=3},441:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogEntry=t.Severity=t.DodgeballLogLevel=void 0,(n=t.DodgeballLogLevel||(t.DodgeballLogLevel={})).TRACE="TRACE",n.INFO="INFO",n.ERROR="ERROR",n.NONE="NONE",function(e){e[e.TRACE=0]="TRACE",e[e.INFO=1]="INFO",e[e.ERROR=2]="ERROR",e[e.NONE=3]="NONE"}(r=t.Severity||(t.Severity={}));var o=function(){function e(e,t,n){void 0===t&&(t=r.INFO),void 0===n&&(n=null),this.severity=r.INFO,this.message="",this.date=new Date,this.message=e,this.severity=t,this.error=n}return e.prototype.setParameters=function(e){return this.parameters=e,this},e.prototype.setParameter=function(e,t){var r;return this.parameters=null!==(r=this.parameters)&&void 0!==r?r:{},this.parameters[e]=t,this},e.prototype.setSeverity=function(e){return this.severity=e,this},e.prototype.setError=function(e){return this.error=e,this},e.prototype.log=function(){return i.log(this)},e}();t.LogEntry=o;var i=function(){function e(){}return e.info=function(e,t){return new o(e,r.INFO).setParameters(t)},e.trace=function(e,t){return new o(e,r.TRACE).setParameters(t)},e.error=function(e,t){return new o(e,r.ERROR).setError(t)},e.formatError=function(e){return e?e instanceof Error?"\n message: transformed.message\n stack: transformed.stack\n name: transformed.name":e.toString():""},e.log=function(t){if(t.severity.valueOf()>=e.filterLevel.valueOf()){var n="\n Severity: "+r[t.severity]+"\n Date: "+t.date+"\n Message: "+t.message+"\n "+this.formatError(t.error);t.parameters&&(n=n+"\n parameters: "+t.parameters),console.log(n)}},e.filterLevel=r.TRACE,e}();t.Logger=i},855:function(e,t){"use strict";var r,n,o,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DodgeballMissingParameterError=t.DodgeballInvalidConfigError=t.DodgeballMissingConfigError=t.VerificationOutcome=t.VerificationStatus=t.DodgeballApiVersion=void 0,(t.DodgeballApiVersion||(t.DodgeballApiVersion={})).v1="v1",(o=t.VerificationStatus||(t.VerificationStatus={})).PENDING="PENDING",o.BLOCKED="BLOCKED",o.COMPLETE="COMPLETE",o.FAILED="FAILED",(n=t.VerificationOutcome||(t.VerificationOutcome={})).APPROVED="APPROVED",n.DENIED="DENIED",n.PENDING="PENDING",n.ERROR="ERROR";var s=function(e){function t(t,r){var n=this.constructor,o=e.call(this,"Dodgeball SDK Error\nMissing configuration: "+t+"\nProvided Value: "+r)||this;return Object.setPrototypeOf(o,n.prototype),o}return i(t,e),t}(Error);t.DodgeballMissingConfigError=s;var a=function(e){function t(t,r,n){var o=this.constructor,i=e.call(this,"Dodgeball SDK Error\nInvalid configuration: "+t+"\nProvided value: "+r+"\nAllowed values: "+n.join(", "))||this;return Object.setPrototypeOf(i,o.prototype),i}return i(t,e),t}(Error);t.DodgeballInvalidConfigError=a;var u=function(e){function t(t,r){var n=this.constructor,o=e.call(this,"Dodgeball SDK Error\nMissing parameter: "+t+"\nProvided value: "+r)||this;return Object.setPrototypeOf(o,n.prototype),o}return i(t,e),t}(Error);t.DodgeballMissingParameterError=u},833:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=t.constructApiHeaders=t.constructApiUrl=t.makeRequest=void 0;var s=i(r(669)),a=r(441);t.makeRequest=function(e){var t=e.url,r=e.method,i=e.headers,u=e.data,c=e.options;return n(void 0,void 0,void 0,(function(){var e,n,l,f;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=c?null!==(l=c.timeout)&&void 0!==l?l:0:null!==(f=null==u?void 0:u.timeout)&&void 0!==f?f:0,[4,(0,s.default)({method:r,url:t,headers:i,data:u,timeout:e})];case 1:return[2,o.sent().data];case 2:return n=o.sent(),a.Logger.error("makeRequest",n).log(),[2,n];case 3:return[2]}}))}))},t.constructApiUrl=function(e,t){return"/"!==e.charAt(e.length-1)&&(e+="/"),""+e+t+"/"},t.constructApiHeaders=function(e,t,r,n,o){void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o="");var i={"Dodgeball-Secret-Key":""+e};return t&&"null"!==t&&"undefined"!==t&&(i["Dodgeball-Verification-Id"]=""+t),r&&(i["Dodgeball-Source-Token"]=r),n&&(i["Dodgeball-Customer-Id"]=n),o&&(i["Dodgeball-Session-Id"]=o),i},t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.DodgeballApiVersion=e.DodgeballLogLevel=e.Dodgeball=void 0;var t=r(433);Object.defineProperty(e,"Dodgeball",{enumerable:!0,get:function(){return t.Dodgeball}});var o=r(441);Object.defineProperty(e,"DodgeballLogLevel",{enumerable:!0,get:function(){return o.DodgeballLogLevel}});var i=r(855);Object.defineProperty(e,"DodgeballApiVersion",{enumerable:!0,get:function(){return i.DodgeballApiVersion}})})(),n})()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.exampleTypescriptPackage=t():e.exampleTypescriptPackage=t()}(this,(function(){return(()=>{var e={669:(e,t,r)=>{e.exports=r(609)},448:(e,t,r)=>{"use strict";var n=r(867),o=r(26),i=r(372),s=r(327),a=r(97),u=r(109),c=r(985),l=r(61),f=r(655),p=r(263);e.exports=function(e){return new Promise((function(t,r){var d,h=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}n.isFormData(h)&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(m+":"+_)}var E=a(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),y()}),(function(e){r(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var w=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;w&&(v[e.xsrfHeaderName]=w)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){b&&(r(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),b.send(h)}))}},609:(e,t,r)=>{"use strict";var n=r(867),o=r(849),i=r(321),s=r(185),a=function e(t){var r=new i(t),a=o(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return e(s(t,r))},a}(r(655));a.Axios=i,a.Cancel=r(263),a.CancelToken=r(972),a.isCancel=r(502),a.VERSION=r(288).version,a.all=function(e){return Promise.all(e)},a.spread=r(713),a.isAxiosError=r(268),e.exports=a,e.exports.default=a},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,r)=>{"use strict";var n=r(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(867),o=r(327),i=r(782),s=r(572),a=r(185),u=r(875),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[s,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;r.length;){var p=r.shift(),d=r.shift();try{f=p(f)}catch(e){d(e);break}}try{o=s(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=l},782:(e,t,r)=>{"use strict";var n=r(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,r)=>{"use strict";var n=r(793),o=r(303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},61:(e,t,r)=>{"use strict";var n=r(481);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},572:(e,t,r)=>{"use strict";var n=r(867),o=r(527),i=r(502),s=r(655),a=r(263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},26:(e,t,r)=>{"use strict";var n=r(61);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},527:(e,t,r)=>{"use strict";var n=r(867),o=r(655);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},655:(e,t,r)=>{"use strict";var n=r(867),o=r(16),i=r(481),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(s)})),e.exports=c},288:e=>{e.exports={version:"0.24.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},327:(e,t,r)=>{"use strict";var n=r(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},109:(e,t,r)=>{"use strict";var n=r(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,r)=>{"use strict";var n=r(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},867:(e,t,r)=>{"use strict";var n=r(849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},465:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Boolean]",a="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",E="[object Float32Array]",O="[object Float64Array]",w="[object Int8Array]",j="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",D="[object Uint16Array]",T="[object Uint32Array]",P=/\w*$/,R=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[m]=C[_]=C[s]=C[a]=C[E]=C[O]=C[w]=C[j]=C[A]=C[l]=C[f]=C[p]=C[h]=C[v]=C[g]=C[y]=C[x]=C[S]=C[D]=C[T]=!0,C["[object Error]"]=C[u]=C[b]=!1;var L="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,U=L||I||Function("return this")(),k=t&&!t.nodeType&&t,M=k&&e&&!e.nodeType&&e,V=M&&M.exports===k;function B(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function q(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function K(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function G(e,t){return function(r){return e(t(r))}}function J(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var X,$=Array.prototype,z=Function.prototype,W=Object.prototype,Y=U["__core-js_shared__"],Q=(X=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",Z=z.toString,ee=W.hasOwnProperty,te=W.toString,re=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=V?U.Buffer:void 0,oe=U.Symbol,ie=U.Uint8Array,se=G(Object.getPrototypeOf,Object),ae=Object.create,ue=W.propertyIsEnumerable,ce=$.splice,le=Object.getOwnPropertySymbols,fe=ne?ne.isBuffer:void 0,pe=G(Object.keys,Object),de=Ue(U,"DataView"),he=Ue(U,"Map"),ve=Ue(U,"Promise"),ge=Ue(U,"Set"),ye=Ue(U,"WeakMap"),be=Ue(Object,"create"),me=Fe(de),_e=Fe(he),Ee=Fe(ve),Oe=Fe(ge),we=Fe(ye),je=oe?oe.prototype:void 0,Ae=je?je.valueOf:void 0;function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){this.__data__=new Se(e)}function Pe(e,t,r){var n=e[t];ee.call(e,t)&&qe(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Re(e,t){for(var r=e.length;r--;)if(qe(e[r][0],t))return r;return-1}function Ne(e,t,r,n,o,d,b){var R;if(n&&(R=d?n(e,o,d,b):n(e)),void 0!==R)return R;if(!Xe(e))return e;var N=He(e);if(N){if(R=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,R)}else{var L=Me(e),I=L==u||L==c;if(Ge(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(L==p||L==i||I&&!d){if(H(e))return d?e:{};if(R=function(e){return"function"!=typeof e.constructor||Be(e)?{}:Xe(t=se(e))?ae(t):{};var t}(I?{}:e),!t)return function(e,t){return Le(e,ke(e),t)}(e,function(e,t){return e&&Le(t,$e(t),e)}(R,e))}else{if(!C[L])return d?e:{};R=function(e,t,r,n){var o,i=e.constructor;switch(t){case m:return Ce(e);case s:case a:return new i(+e);case _:return function(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case E:case O:case w:case j:case A:case x:case S:case D:case T:return function(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){return q(t?r(K(e),!0):K(e),B,new e.constructor)}(e,n,r);case f:case g:return new i(e);case h:return function(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,r){return q(t?r(J(e),!0):J(e),F,new e.constructor)}(e,n,r);case y:return o=e,Ae?Object(Ae.call(o)):{}}}(e,L,Ne,t)}}b||(b=new Te);var U=b.get(e);if(U)return U;if(b.set(e,R),!N)var k=r?function(e){return function(e,t,r){var n=t(e);return He(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,$e,ke)}(e):$e(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r););}(k||e,(function(o,i){k&&(o=e[i=o]),Pe(R,i,Ne(o,t,r,n,i,e,b))})),R}function Ce(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;Pe(r,s,void 0===a?e[s]:a)}return r}function Ie(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ue(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Xe(e)||(t=e,Q&&Q in t))&&(Je(e)||H(e)?re:R).test(Fe(e));var t}(r)?r:void 0}xe.prototype.clear=function(){this.__data__=be?be(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(be){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:ee.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=be&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,r=Re(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},Se.prototype.get=function(e){var t=this.__data__,r=Re(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Re(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Re(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new xe,map:new(he||Se),string:new xe}},De.prototype.delete=function(e){return Ie(this,e).delete(e)},De.prototype.get=function(e){return Ie(this,e).get(e)},De.prototype.has=function(e){return Ie(this,e).has(e)},De.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Se},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new De(n)}return r.set(e,t),this};var ke=le?G(le,Object):function(){return[]},Me=function(e){return te.call(e)};function Ve(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function Fe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qe(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=_||he&&Me(new he)!=l||ve&&Me(ve.resolve())!=d||ge&&Me(new ge)!=v||ye&&Me(new ye)!=b)&&(Me=function(e){var t=te.call(e),r=t==p?e.constructor:void 0,n=r?Fe(r):void 0;if(n)switch(n){case me:return _;case _e:return l;case Ee:return d;case Oe:return v;case we:return b}return t});var He=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Je(e)}var Ge=fe||function(){return!1};function Je(e){var t=Xe(e)?te.call(e):"";return t==u||t==c}function Xe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $e(e){return Ke(e)?function(e,t){var r=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(e)}(e)&&ee.call(e,"callee")&&(!ue.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var s in e)!t&&!ee.call(e,s)||o&&("length"==s||Ve(s,n))||r.push(s);return r}(e):function(e){if(!Be(e))return pe(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ne(e,!0,!0)}},433:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dodgeball=void 0;var a=r(855),u=r(441),c=r(833),l=r(915),f=s(r(465)),p=function(){function e(e,t){var r;if(null==e||0===(null==e?void 0:e.length))throw new a.DodgeballMissingConfigError("secretApiKey",e);if(this.secretKey=e,this.config=Object.assign((0,f.default)(l.DEFAULT_CONFIG),(0,f.default)(t||{})),Object.keys(a.DodgeballApiVersion).indexOf(this.config.apiVersion)<0)throw new a.DodgeballInvalidConfigError("config.apiVersion",this.config.apiVersion,Object.keys(a.DodgeballApiVersion));var n=null!==(r=this.config.logLevel)&&void 0!==r?r:u.DodgeballLogLevel.INFO;if(Object.keys(u.DodgeballLogLevel).indexOf(n)<0)throw new a.DodgeballInvalidConfigError("config.logLevel",n,Object.keys(u.DodgeballLogLevel));u.Logger.filterLevel=u.Severity[n]}return e.prototype.createErrorResponse=function(e,t){return{success:!1,errors:[{code:e,message:t}],version:a.DodgeballApiVersion.v1,verification:{id:"",status:a.VerificationStatus.FAILED,outcome:a.VerificationOutcome.ERROR}}},e.prototype.track=function(e){var t=e.userId,r=e.sessionId,s=e.sourceToken,a=e.event;return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return a.eventTime||(a.eventTime=Date.now()),[4,(0,c.makeRequest)({url:(0,c.constructApiUrl)(this.config.apiUrl,this.config.apiVersion)+"track",method:"POST",headers:(0,c.constructApiHeaders)(this.secretKey,"",s,t,r),data:n({},a),options:{}})];case 1:return e.sent(),[2]}}))}))},e.prototype.checkpoint=function(e){var t,r,s,f,p,d=e.checkpointName,h=e.event,v=e.sourceToken,g=e.userId,y=void 0===g?"":g,b=e.sessionId,m=void 0===b?"":b,_=e.useVerificationId,E=void 0===_?"":_,O=e.options,w=void 0===O?{}:O;return o(this,void 0,void 0,(function(){var e,o,g,b,_,O,j,A,x,S,D;return i(this,(function(i){switch(i.label){case 0:if(e=!w.timeout||w.timeout<=0,o=w.timeout&&w.timeout>5*l.BASE_CHECKPOINT_TIMEOUT_MS,g=e||o?l.BASE_CHECKPOINT_TIMEOUT_MS:null!==(t=w.timeout)&&void 0!==t?t:l.BASE_CHECKPOINT_TIMEOUT_MS,b=l.MAX_TIMEOUT,_={sync:null===w.sync||void 0===w.sync||w.sync,timeout:g,webhook:w.webhook},O=null,j=0,A=0,null==d)throw new a.DodgeballMissingParameterError("checkpointName",d);if(null==h)throw new a.DodgeballMissingParameterError("event",h);if(!h.hasOwnProperty("ip"))throw new a.DodgeballMissingParameterError("event.ip",h.ip);if(null==m)throw new a.DodgeballMissingParameterError("sessionId",m);if(!this.config.isEnabled)return[2,{success:!0,errors:[],version:a.DodgeballApiVersion.v1,verification:{id:"DODGEBALL_IS_DISABLED",status:a.VerificationStatus.COMPLETE,outcome:a.VerificationOutcome.APPROVED,stepData:{}}}];i.label=1;case 1:return!O&&j<3?[4,(0,c.makeRequest)({url:(0,c.constructApiUrl)(this.config.apiUrl,this.config.apiVersion)+"checkpoint",method:"POST",headers:(0,c.constructApiHeaders)(this.secretKey,E,v,y,m),data:{event:n({type:d},h),options:_},options:{}})]:[3,3];case 2:return O=i.sent(),j+=1,[3,1];case 3:if(!O)return[2,this.createErrorResponse(500,"Unknown evaluation error")];if(!O.success)return[2,O];x=(null===(r=O.verification)||void 0===r?void 0:r.status)!==a.VerificationStatus.PENDING,S=null===(s=O.verification)||void 0===s?void 0:s.id,i.label=4;case 4:return(e||(null!==(f=null==w?void 0:w.timeout)&&void 0!==f?f:l.BASE_CHECKPOINT_TIMEOUT_MS)>j*g)&&!x&&A<l.MAX_RETRY_COUNT?[4,(0,c.sleep)(g)]:[3,7];case 5:return i.sent(),g=g<b?2*g:g,[4,(0,c.makeRequest)({url:(0,c.constructApiUrl)(this.config.apiUrl,this.config.apiVersion)+"verification/"+S,method:"GET",headers:(0,c.constructApiHeaders)(this.secretKey,E,v,y,m)})];case 6:return(O=i.sent())&&O.success&&(D=null===(p=O.verification)||void 0===p?void 0:p.status)?(x=D!==a.VerificationStatus.PENDING,j+=1):A+=1,[3,4];case 7:return A>=l.MAX_RETRY_COUNT?(u.Logger.error("Service Unavailable: Maximum retry count exceeded").log(),[2,{success:!1,version:a.DodgeballApiVersion.v1,errors:[{code:503,message:"Service Unavailable: Maximum retry count exceeded"}],isTimeout:!0}]):(u.Logger.trace("Returning response:",{response:O}).log(),[2,O])}}))}))},e.prototype.isRunning=function(e){var t;if(e.success)switch(null===(t=e.verification)||void 0===t?void 0:t.status){case a.VerificationStatus.PENDING:case a.VerificationStatus.BLOCKED:return!0;default:return!1}return!1},e.prototype.isAllowed=function(e){var t,r;return e.success&&(null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.COMPLETE&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.APPROVED},e.prototype.isDenied=function(e){var t;return!!e.success&&(null===(t=e.verification)||void 0===t?void 0:t.outcome)===a.VerificationOutcome.DENIED},e.prototype.isUndecided=function(e){var t,r;return e.success&&(null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.COMPLETE&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.PENDING},e.prototype.hasError=function(e){var t,r,n;return!e.success&&((null===(t=e.verification)||void 0===t?void 0:t.status)===a.VerificationStatus.FAILED&&(null===(r=e.verification)||void 0===r?void 0:r.outcome)===a.VerificationOutcome.ERROR||(null===(n=e.errors)||void 0===n?void 0:n.length)>0)},e.prototype.isTimeout=function(e){return!e.success&&e.isTimeout},e}();t.Dodgeball=p},915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_RETRY_COUNT=t.MAX_TIMEOUT=t.BASE_CHECKPOINT_TIMEOUT_MS=t.DEFAULT_CONFIG=void 0;var n=r(441),o=r(855);t.DEFAULT_CONFIG={apiVersion:o.DodgeballApiVersion.v1,apiUrl:"https://api.dodgeballhq.com/",logLevel:n.DodgeballLogLevel.TRACE,isEnabled:!0},t.BASE_CHECKPOINT_TIMEOUT_MS=100,t.MAX_TIMEOUT=1e4,t.MAX_RETRY_COUNT=3},441:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogEntry=t.Severity=t.DodgeballLogLevel=void 0,(n=t.DodgeballLogLevel||(t.DodgeballLogLevel={})).TRACE="TRACE",n.INFO="INFO",n.ERROR="ERROR",n.NONE="NONE",function(e){e[e.TRACE=0]="TRACE",e[e.INFO=1]="INFO",e[e.ERROR=2]="ERROR",e[e.NONE=3]="NONE"}(r=t.Severity||(t.Severity={}));var o=function(){function e(e,t,n){void 0===t&&(t=r.INFO),void 0===n&&(n=null),this.severity=r.INFO,this.message="",this.date=new Date,this.message=e,this.severity=t,this.error=n}return e.prototype.setParameters=function(e){return this.parameters=e,this},e.prototype.setParameter=function(e,t){var r;return this.parameters=null!==(r=this.parameters)&&void 0!==r?r:{},this.parameters[e]=t,this},e.prototype.setSeverity=function(e){return this.severity=e,this},e.prototype.setError=function(e){return this.error=e,this},e.prototype.log=function(){return i.log(this)},e}();t.LogEntry=o;var i=function(){function e(){}return e.info=function(e,t){return new o(e,r.INFO).setParameters(t)},e.trace=function(e,t){return new o(e,r.TRACE).setParameters(t)},e.error=function(e,t){return new o(e,r.ERROR).setError(t)},e.formatError=function(e){return e?e instanceof Error?"\n message: transformed.message\n stack: transformed.stack\n name: transformed.name":e.toString():""},e.log=function(t){if(t.severity.valueOf()>=e.filterLevel.valueOf()){var n="\n Severity: "+r[t.severity]+"\n Date: "+t.date+"\n Message: "+t.message+"\n "+this.formatError(t.error);t.parameters&&(n=n+"\n parameters: "+t.parameters),console.log(n)}},e.filterLevel=r.TRACE,e}();t.Logger=i},855:function(e,t){"use strict";var r,n,o,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DodgeballMissingParameterError=t.DodgeballInvalidConfigError=t.DodgeballMissingConfigError=t.VerificationOutcome=t.VerificationStatus=t.DodgeballApiVersion=void 0,(t.DodgeballApiVersion||(t.DodgeballApiVersion={})).v1="v1",(o=t.VerificationStatus||(t.VerificationStatus={})).PENDING="PENDING",o.BLOCKED="BLOCKED",o.COMPLETE="COMPLETE",o.FAILED="FAILED",(n=t.VerificationOutcome||(t.VerificationOutcome={})).APPROVED="APPROVED",n.DENIED="DENIED",n.PENDING="PENDING",n.ERROR="ERROR";var s=function(e){function t(t,r){var n=this.constructor,o=e.call(this,"Dodgeball SDK Error\nMissing configuration: "+t+"\nProvided Value: "+r)||this;return Object.setPrototypeOf(o,n.prototype),o}return i(t,e),t}(Error);t.DodgeballMissingConfigError=s;var a=function(e){function t(t,r,n){var o=this.constructor,i=e.call(this,"Dodgeball SDK Error\nInvalid configuration: "+t+"\nProvided value: "+r+"\nAllowed values: "+n.join(", "))||this;return Object.setPrototypeOf(i,o.prototype),i}return i(t,e),t}(Error);t.DodgeballInvalidConfigError=a;var u=function(e){function t(t,r){var n=this.constructor,o=e.call(this,"Dodgeball SDK Error\nMissing parameter: "+t+"\nProvided value: "+r)||this;return Object.setPrototypeOf(o,n.prototype),o}return i(t,e),t}(Error);t.DodgeballMissingParameterError=u},833:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=t.constructApiHeaders=t.constructApiUrl=t.makeRequest=void 0;var s=i(r(669)),a=r(441);t.makeRequest=function(e){var t=e.url,r=e.method,i=e.headers,u=e.data,c=e.options;return n(void 0,void 0,void 0,(function(){var e,n,l,f;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=c?null!==(l=c.timeout)&&void 0!==l?l:0:null!==(f=null==u?void 0:u.timeout)&&void 0!==f?f:0,[4,(0,s.default)({method:r,url:t,headers:i,data:u,timeout:e})];case 1:return[2,o.sent().data];case 2:return n=o.sent(),a.Logger.error("There was an error making a request.",n).log(),[2,n];case 3:return[2]}}))}))},t.constructApiUrl=function(e,t){return"/"!==e.charAt(e.length-1)&&(e+="/"),""+e+t+"/"},t.constructApiHeaders=function(e,t,r,n,o){void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o="");var i={"Dodgeball-Secret-Key":""+e};return t&&"null"!==t&&"undefined"!==t&&(i["Dodgeball-Verification-Id"]=""+t),r&&(i["Dodgeball-Source-Token"]=r),n&&(i["Dodgeball-Customer-Id"]=n),o&&(i["Dodgeball-Session-Id"]=o),i},t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.DodgeballApiVersion=e.DodgeballLogLevel=e.Dodgeball=void 0;var t=r(433);Object.defineProperty(e,"Dodgeball",{enumerable:!0,get:function(){return t.Dodgeball}});var o=r(441);Object.defineProperty(e,"DodgeballLogLevel",{enumerable:!0,get:function(){return o.DodgeballLogLevel}});var i=r(855);Object.defineProperty(e,"DodgeballApiVersion",{enumerable:!0,get:function(){return i.DodgeballApiVersion}})})(),n})()}));
{
"name": "@dodgeball/trust-sdk-server",
"version": "0.0.21",
"version": "0.0.22",
"description": "Dodgeball Server SDK",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc